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 ETextReader.Read on this image. A ESample is only meant to be contained in ESampleList.
More...
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 ETextReader.Read on this image. A ESample is only meant to be contained in ESampleList.
License(s): EasyDeepOCR
◆ ESample() [1/6]
| eVision.EasyDeepOCR.ESample.ESample |
( |
| ) |
|
◆ ESample() [2/6]
◆ ESample() [3/6]
| eVision.EasyDeepOCR.ESample.ESample |
( |
string | path | ) |
|
◆ ESample() [4/6]
Creates a ESample.
- Parameters
-
| path | Path to the image. |
| texts | Texts of interest. |
◆ ESample() [5/6]
| eVision.EasyDeepOCR.ESample.ESample |
( |
string | path, |
|
|
eVision.ERegion | region ) |
Creates a ESample.
- Parameters
-
| path | Path to the image. |
| region | Region containing the texts of interest. |
◆ ESample() [6/6]
Creates a ESample.
- Parameters
-
| path | Path to the image. |
| region | Region containing the texts of interest. |
| texts | Texts of interest. |
◆ GetImage()
Returns the image of the sample.
- Parameters
-
| 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. |
◆ GetROI()
Returns the ROI enclosing the region of the sample. If no region is defined, the full image is returned.
- Parameters
-
| 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. |
◆ IsEqual()
Checks if this ESample instance is strictly equal to another ESample instance.
- Parameters
-
| other | Reference to the ESample instance to compare with |
◆ Load() [1/2]
◆ Load() [2/2]
| void eVision.EasyDeepOCR.ESample.Load |
( |
string | path | ) |
|
◆ ReplaceBasePath()
| void eVision.EasyDeepOCR.ESample.ReplaceBasePath |
( |
string | oldBasePath, |
|
|
string | 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.
- Parameters
-
| oldBasePath | Old base path to be replaced. |
| newBasePath | New path to replace the old base path with. |
◆ Save() [1/2]
◆ Save() [2/2]
| void eVision.EasyDeepOCR.ESample.Save |
( |
string | path | ) |
|
◆ AutomaticImageType
◆ HasRegion
| bool eVision.EasyDeepOCR.ESample.HasRegion |
|
get |
Returns whether there is a region attached to this sample.
◆ Image
Returns the image of the sample.
◆ ImagePath
| string eVision.EasyDeepOCR.ESample.ImagePath |
|
getset |
Path to the image of the sample.
◆ Region
◆ ROI
Returns the ROI enclosing the region of the sample. If no region is defined, the full image is returned.
◆ Texts