A sample is composed of an image, and optionally a region, together with one or several texts, which are visible in the image. More...
Public Member Functions | |
| None | __init__ (self) |
| Creates a eVision.EasyDeepOCR.ESample. | |
| None | __init__ (self, eVision.EasyDeepOCR.ESample other) |
| Creates a eVision.EasyDeepOCR.ESample. | |
| None | __init__ (self, str path) |
| Creates a eVision.EasyDeepOCR.ESample. | |
| None | __init__ (self, str path, list[eVision._eVision.EasyDeepOCR.EText] texts) |
| Creates a eVision.EasyDeepOCR.ESample. | |
| None | __init__ (self, str path, eVision.ERegion region) |
| Creates a eVision.EasyDeepOCR.ESample. | |
| None | __init__ (self, str path, eVision.ERegion region, list[eVision._eVision.EasyDeepOCR.EText] texts) |
| Creates a eVision.EasyDeepOCR.ESample. | |
| bool | IsEqual (self, eVision.EasyDeepOCR.ESample other) |
| Checks if this eVision.EasyDeepOCR.ESample instance is strictly equal to another eVision.EasyDeepOCR.ESample instance. | |
| None | Load (self, str path) |
| Loads the eVision.EasyDeepOCR.ESample. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Loads the eVision.EasyDeepOCR.ESample. | |
| None | Save (self, str path) |
| Saves the eVision.EasyDeepOCR.ESample. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Saves the eVision.EasyDeepOCR.ESample. | |
| eVision.EBaseROI | GetImage (self, eVision.EImageType imageType) |
| Returns the image of the sample. | |
| eVision.EBaseROI | GetROI (self, eVision.EImageType imageType) |
| Returns the ROI enclosing the region of the sample. | |
| None | ReplaceBasePath (self, str oldBasePath, str newBasePath) |
| Replaces the old base path with a new base path in the image path. | |
| eVision.EBaseROI | Image (self) |
| Returns the image of the sample. | |
| eVision.EBaseROI | ROI (self) |
| Returns the ROI enclosing the region of the sample. | |
| eVision.EImageType | AutomaticImageType (self) |
| Returns the image type of eVision.EasyDeepOCR.ESample.GetImage when called without arguments. | |
| str | ImagePath (self) |
| Path to the image of the sample. | |
| ImagePath (self, str value) | |
| Path to the image of the sample. | |
| list[eVision._eVision.EasyDeepOCR.EText] | Texts (self) |
| List of texts. | |
| Texts (self, list[eVision._eVision.EasyDeepOCR.EText] value) | |
| List of texts. | |
| eVision.ERegion | Region (self) |
| Region of the sample. | |
| Region (self, eVision.ERegion value) | |
| Region of the sample. | |
| bool | HasRegion (self) |
| Returns whether there is a region attached to this sample. | |
A sample is composed of an image, and optionally a region, together with one or several texts, which are visible in the image.
These texts indicate what outputs are expected when calling eVision.EasyDeepOCR.ETextReader.Read on this image. A eVision.EasyDeepOCR.ESample is only meant to be contained in eVision.EasyDeepOCR.ESampleList.
Remarks:
License(s): EasyDeepOCR
| None eVision.EasyDeepOCR.ESample.__init__ | ( | self | ) |
Creates a eVision.EasyDeepOCR.ESample.
| None eVision.EasyDeepOCR.ESample.__init__ | ( | self, | |
| eVision.EasyDeepOCR.ESample | other ) |
Creates a eVision.EasyDeepOCR.ESample.
| other | Another eVision.EasyDeepOCR.ESample to be copied in the new eVision.EasyDeepOCR.ESample. |
| None eVision.EasyDeepOCR.ESample.__init__ | ( | self, | |
| str | path ) |
Creates a eVision.EasyDeepOCR.ESample.
| path | Path to the image. |
| None eVision.EasyDeepOCR.ESample.__init__ | ( | self, | |
| str | path, | ||
| list[eVision._eVision.EasyDeepOCR.EText] | texts ) |
Creates a eVision.EasyDeepOCR.ESample.
| path | Path to the image. |
| texts | Texts of interest. |
| None eVision.EasyDeepOCR.ESample.__init__ | ( | self, | |
| str | path, | ||
| eVision.ERegion | region ) |
Creates a eVision.EasyDeepOCR.ESample.
| path | Path to the image. |
| region | Region containing the texts of interest. |
| None eVision.EasyDeepOCR.ESample.__init__ | ( | self, | |
| str | path, | ||
| eVision.ERegion | region, | ||
| list[eVision._eVision.EasyDeepOCR.EText] | texts ) |
Creates a eVision.EasyDeepOCR.ESample.
| path | Path to the image. |
| region | Region containing the texts of interest. |
| texts | Texts of interest. |
| eVision.EImageType eVision.EasyDeepOCR.ESample.AutomaticImageType | ( | self | ) |
Returns the image type of eVision.EasyDeepOCR.ESample.GetImage when called without arguments.
| eVision.EBaseROI eVision.EasyDeepOCR.ESample.GetImage | ( | self, | |
| eVision.EImageType | imageType ) |
Returns the image of the sample.
| imageType | Specifies the image type for loading the sample image. If not provided, the image type will be automatically determined based on the sample image files. |
| eVision.EBaseROI eVision.EasyDeepOCR.ESample.GetROI | ( | self, | |
| eVision.EImageType | imageType ) |
Returns the ROI enclosing the region of the sample.
If no region is defined, the full image is returned.
| imageType | Specifies the image type for loading the sample image. If not provided, the image type will be automatically determined based on the sample image files. |
| bool eVision.EasyDeepOCR.ESample.HasRegion | ( | self | ) |
Returns whether there is a region attached to this sample.
| eVision.EBaseROI eVision.EasyDeepOCR.ESample.Image | ( | self | ) |
Returns the image of the sample.
| str eVision.EasyDeepOCR.ESample.ImagePath | ( | self | ) |
Path to the image of the sample.
| eVision.EasyDeepOCR.ESample.ImagePath | ( | self, | |
| str | value ) |
Path to the image of the sample.
| bool eVision.EasyDeepOCR.ESample.IsEqual | ( | self, | |
| eVision.EasyDeepOCR.ESample | other ) |
Checks if this eVision.EasyDeepOCR.ESample instance is strictly equal to another eVision.EasyDeepOCR.ESample instance.
| other | Reference to the eVision.EasyDeepOCR.ESample instance to compare with |
| None eVision.EasyDeepOCR.ESample.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Loads the eVision.EasyDeepOCR.ESample.
| serializer | - |
| None eVision.EasyDeepOCR.ESample.Load | ( | self, | |
| str | path ) |
Loads the eVision.EasyDeepOCR.ESample.
| path | Path where to save the eVision.EasyDeepOCR.ESample. |
| eVision.ERegion eVision.EasyDeepOCR.ESample.Region | ( | self | ) |
Region of the sample.
| eVision.EasyDeepOCR.ESample.Region | ( | self, | |
| eVision.ERegion | value ) |
Region of the sample.
| None eVision.EasyDeepOCR.ESample.ReplaceBasePath | ( | self, | |
| str | oldBasePath, | ||
| str | newBasePath ) |
Replaces the old base path with a new base path in the image path.
Throws if the old base path is not contained in the image path.
| oldBasePath | Old base path to be replaced. |
| newBasePath | New path to replace the old base path with. |
| eVision.EBaseROI eVision.EasyDeepOCR.ESample.ROI | ( | self | ) |
Returns the ROI enclosing the region of the sample.
If no region is defined, the full image is returned.
| None eVision.EasyDeepOCR.ESample.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Saves the eVision.EasyDeepOCR.ESample.
| serializer | - |
| None eVision.EasyDeepOCR.ESample.Save | ( | self, | |
| str | path ) |
Saves the eVision.EasyDeepOCR.ESample.
| path | Path where to save the eVision.EasyDeepOCR.ESample. |
| list[eVision._eVision.EasyDeepOCR.EText] eVision.EasyDeepOCR.ESample.Texts | ( | self | ) |
List of texts.
| eVision.EasyDeepOCR.ESample.Texts | ( | self, | |
| list[eVision._eVision.EasyDeepOCR.EText] | value ) |
List of texts.