handwriting_sample.writer package
Submodules
handwriting_sample.writer.exceptions module
handwriting_sample.writer.interface module
- class handwriting_sample.writer.interface.HandwritingSampleWriter[source]
Bases:
LoggableObjectClass implementing handwriting data writer
- write_to_json(sample, save_path, file_name=None, store_original_data=False, verbose=False)[source]
Stores HandwritingSample data to a JSON file.
- Parameters
sample (HandwritingSample) – instance of handwriting sample
save_path (str) – save path
file_name (str, optional) – file name (optional if meta data), defaults to None
store_original_data (bool, optional) – store original data, defaults to False
verbose (bool, optional) – verbosity of the logging, defaults to False
- Returns
True if stored, False otherwise
- Return type
bool
- write_to_svc(sample, save_path, file_name=None, store_original_data=False, verbose=False)[source]
Stores HandwritingSample data to an SVC file.
- Parameters
sample (HandwritingSample) – instance of handwriting sample
save_path (str) – save path
file_name (str, optional) – file name (optional if meta data), defaults to None
store_original_data (bool, optional) – store original data, defaults to False
verbose (bool, optional) – verbosity of the logging, defaults to False
- Returns
True if stored, False otherwise
- Return type
bool
handwriting_sample.writer.writers module
- class handwriting_sample.writer.writers.JSONFileWriter[source]
Bases:
LoggableObjectClass implementing JSON file writer
- class handwriting_sample.writer.writers.SVCFileWriter[source]
Bases:
LoggableObjectClass implementing SVC file writer