TextAppearance Klasse

Ein -Objekt, das die Darstellung der Textzeile darstellt.

Neu in Version 2.1: Unterstützung für to_dict - und from_dict methoden

Vererbung
builtins.object
TextAppearance

Konstruktor

TextAppearance(**kwargs: Any)

Methoden

from_dict

Konvertiert ein Diktat in der Form einer TextAppearance in das Modell selbst.

to_dict

Gibt eine Diktatdarstellung von TextAppearance zurück.

from_dict

Konvertiert ein Diktat in der Form einer TextAppearance in das Modell selbst.

from_dict(data: Dict) -> TextAppearance

Parameter

data
dict
Erforderlich

Ein Wörterbuch in der Form "TextAppearance".

Gibt zurück

TextAppearance

Rückgabetyp

to_dict

Gibt eine Diktatdarstellung von TextAppearance zurück.

to_dict() -> Dict

Gibt zurück

dict

Rückgabetyp

Attribute

style_confidence

Die Zuverlässigkeit der Textzeilenformatvorlage.

style_confidence: float

style_name

Der Name der Textzeilenformatvorlage. Mögliche Werte sind: "other", "handwriting".

style_name: str