Represents a single instance of the pattern in the search field, as returned by the EasyFind or EasyMatch finding process. More...
Public Member Functions | |
| None | __init__ (self) |
| Constructs a eVision.EFoundPattern object. | |
| None | __init__ (self, eVision.EFoundPattern other) |
| Constructs a eVision.EFoundPattern object. | |
| eVision.ERegion | ToRegion (self) |
| Creates an eVision.ERegion from the eVision.EFoundPattern. | |
| eVision.EFrame | ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling) |
| Creates an eVision.EFrame from the eVision.EFoundPattern. | |
| eVision.EFrame | ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame frame) |
| Creates an eVision.EFrame from the eVision.EFoundPattern. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX, float panY) |
| Draws the found pattern. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX) |
| Draws the found pattern. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY) |
| Draws the found pattern. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX) |
| Draws the found pattern. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext) |
| Draws the found pattern. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Draws the found pattern. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Draws the found pattern. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY) |
| Draws the found pattern. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX) |
| Draws the found pattern. | |
| None | Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame) |
| Draws the found pattern. | |
| eVision.EPoint | Center (self) |
| Reference point of the instance. | |
| float | Angle (self) |
| Angle of the found instance, in clockwise direction and in the current angle unit. | |
| float | Scale (self) |
| Scaling factor of the found pattern, in units (not percent). | |
| float | ScaleX (self) |
| Horizontal Scaling factor of the found pattern, in units (not percent). | |
| float | ScaleY (self) |
| Vertical Scaling factor of the found pattern, in units (not percent). | |
| float | Score (self) |
| Matching score of the found pattern, in units (not percent). | |
| float | AreaRatio (self) |
| When the eVision.EFoundPattern was computed from an eVision.EMatcher: Ratio between the found pattern area inside the search ROI/Region and its complete area. | |
| int | LearntPatternIndex (self) |
| Returns the index of the pattern learnt by eVision.EPatternFinder.LearnPatterns or eVision.EMatcher.LearnPatterns corresponding to this eVision.EFoundPattern.__init__ or 0 if a single pattern was learnt. | |
| bool | DrawBoundingBox (self) |
| Flag indicating if the eVision.EFoundPattern.Draw method must draw the bounding box of the FoundPattern. | |
| DrawBoundingBox (self, bool value) | |
| Flag indicating if the eVision.EFoundPattern.Draw method must draw the bounding box of the FoundPattern. | |
| bool | DrawCenter (self) |
| Flag indicating if the eVision.EFoundPattern.Draw method must draw the center of the FoundPattern. | |
| DrawCenter (self, bool value) | |
| Flag indicating if the eVision.EFoundPattern.Draw method must draw the center of the FoundPattern. | |
| bool | DrawFeaturePoints (self) |
| Flag indicating if the eVision.EFoundPattern.Draw method must draw the feature points of the eVision.EFoundPattern.__init__ object. | |
| DrawFeaturePoints (self, bool value) | |
| Flag indicating if the eVision.EFoundPattern.Draw method must draw the feature points of the eVision.EFoundPattern.__init__ object. | |
| eVision.EDrawRegion | DrawRegion (self) |
| Flag indicating if the eVision.EFoundPattern.Draw method must draw the region of the eVision.EFoundPattern object (region that was used during Learn), its contour or neither. | |
| DrawRegion (self, eVision.EDrawRegion value) | |
| Flag indicating if the eVision.EFoundPattern.Draw method must draw the region of the eVision.EFoundPattern object (region that was used during Learn), its contour or neither. | |
| bool | HasRegion (self) |
| Indicates whether there is an eVision.ERegion associated with this eVision.EFoundPattern, i.e. | |
| bool | HasFeaturePoints (self) |
| Indicates whether there are feature points within this eVision.EFoundPattern. | |
| eVision.EQuadrangle | Quadrangle (self) |
| Returns the corners of the bounding box of the found pattern. | |
Represents a single instance of the pattern in the search field, as returned by the EasyFind or EasyMatch finding process.
Remarks:
eVision.EPatternFinder.Find and eVision.EMatcher.Match return a collection of instances of this class. An eVision.EFoundPattern object represents one found instance, with all the needed information about it.
License(s): EasyFind or EasyMatch
| None eVision.EFoundPattern.__init__ | ( | self | ) |
Constructs a eVision.EFoundPattern object.
| None eVision.EFoundPattern.__init__ | ( | self, | |
| eVision.EFoundPattern | other ) |
Constructs a eVision.EFoundPattern object.
| other | eVision.EFoundPattern object to be copied |
| float eVision.EFoundPattern.Angle | ( | self | ) |
Angle of the found instance, in clockwise direction and in the current angle unit.
Remarks:
This returned value is always comprised in the range [- a half turn, + a half turn].
| float eVision.EFoundPattern.AreaRatio | ( | self | ) |
When the eVision.EFoundPattern was computed from an eVision.EMatcher: Ratio between the found pattern area inside the search ROI/Region and its complete area.
When the eVision.EFoundPattern was computed from an eVision.EPatternFinder: returns 1.0.
| eVision.EPoint eVision.EFoundPattern.Center | ( | self | ) |
Reference point of the instance.
Remarks:
By default, this is its center. If the property eVision.EPatternFinder.Pivot has been changed in the eVision.EPatternFinder, the point returns the pivot_ in the instance.
| None eVision.EFoundPattern.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext ) |
Draws the found pattern.
Remarks:
This method draws different features of the eVision.EFoundPattern, according to the value of properties eVision.EFoundPattern.DrawFeaturePoints, eVision.EFoundPattern.DrawCenter, eVision.EFoundPattern.DrawBoundingBox and eVision.EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.
| graphicContext | Handle to the device context of the destination window. |
| None eVision.EFoundPattern.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame ) |
Draws the found pattern.
Remarks:
This method draws different features of the eVision.EFoundPattern, according to the value of properties eVision.EFoundPattern.DrawFeaturePoints, eVision.EFoundPattern.DrawCenter, eVision.EFoundPattern.DrawBoundingBox and eVision.EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the pattern. |
| None eVision.EFoundPattern.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX ) |
Draws the found pattern.
Remarks:
This method draws different features of the eVision.EFoundPattern, according to the value of properties eVision.EFoundPattern.DrawFeaturePoints, eVision.EFoundPattern.DrawCenter, eVision.EFoundPattern.DrawBoundingBox and eVision.EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the pattern. |
| zoomX | Horizontal zooming factor. |
| None eVision.EFoundPattern.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draws the found pattern.
Remarks:
This method draws different features of the eVision.EFoundPattern, according to the value of properties eVision.EFoundPattern.DrawFeaturePoints, eVision.EFoundPattern.DrawCenter, eVision.EFoundPattern.DrawBoundingBox and eVision.EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the pattern. |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| None eVision.EFoundPattern.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draws the found pattern.
Remarks:
This method draws different features of the eVision.EFoundPattern, according to the value of properties eVision.EFoundPattern.DrawFeaturePoints, eVision.EFoundPattern.DrawCenter, eVision.EFoundPattern.DrawBoundingBox and eVision.EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the pattern. |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| None eVision.EFoundPattern.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draws the found pattern.
Remarks:
This method draws different features of the eVision.EFoundPattern, according to the value of properties eVision.EFoundPattern.DrawFeaturePoints, eVision.EFoundPattern.DrawCenter, eVision.EFoundPattern.DrawBoundingBox and eVision.EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.
| graphicContext | Handle to the device context of the destination window. |
| frame | Frame associated with the pattern. |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| None eVision.EFoundPattern.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX ) |
Draws the found pattern.
Remarks:
This method draws different features of the eVision.EFoundPattern, according to the value of properties eVision.EFoundPattern.DrawFeaturePoints, eVision.EFoundPattern.DrawCenter, eVision.EFoundPattern.DrawBoundingBox and eVision.EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.
| graphicContext | Handle to the device context of the destination window. |
| zoomX | Horizontal zooming factor. |
| None eVision.EFoundPattern.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draws the found pattern.
Remarks:
This method draws different features of the eVision.EFoundPattern, according to the value of properties eVision.EFoundPattern.DrawFeaturePoints, eVision.EFoundPattern.DrawCenter, eVision.EFoundPattern.DrawBoundingBox and eVision.EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.
| graphicContext | Handle to the device context of the destination window. |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| None eVision.EFoundPattern.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draws the found pattern.
Remarks:
This method draws different features of the eVision.EFoundPattern, according to the value of properties eVision.EFoundPattern.DrawFeaturePoints, eVision.EFoundPattern.DrawCenter, eVision.EFoundPattern.DrawBoundingBox and eVision.EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.
| graphicContext | Handle to the device context of the destination window. |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| None eVision.EFoundPattern.Draw | ( | self, | |
| eVision.EDrawAdapter | None | graphicContext, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draws the found pattern.
Remarks:
This method draws different features of the eVision.EFoundPattern, according to the value of properties eVision.EFoundPattern.DrawFeaturePoints, eVision.EFoundPattern.DrawCenter, eVision.EFoundPattern.DrawBoundingBox and eVision.EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.
| graphicContext | Handle to the device context of the destination window. |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| bool eVision.EFoundPattern.DrawBoundingBox | ( | self | ) |
Flag indicating if the eVision.EFoundPattern.Draw method must draw the bounding box of the FoundPattern.
Remarks:
The default value is true.
| eVision.EFoundPattern.DrawBoundingBox | ( | self, | |
| bool | value ) |
Flag indicating if the eVision.EFoundPattern.Draw method must draw the bounding box of the FoundPattern.
Remarks:
The default value is true.
| bool eVision.EFoundPattern.DrawCenter | ( | self | ) |
Flag indicating if the eVision.EFoundPattern.Draw method must draw the center of the FoundPattern.
Remarks:
The default value is true.
| eVision.EFoundPattern.DrawCenter | ( | self, | |
| bool | value ) |
Flag indicating if the eVision.EFoundPattern.Draw method must draw the center of the FoundPattern.
Remarks:
The default value is true.
| bool eVision.EFoundPattern.DrawFeaturePoints | ( | self | ) |
Flag indicating if the eVision.EFoundPattern.Draw method must draw the feature points of the eVision.EFoundPattern.__init__ object.
Remarks:
When the eVision.EFoundPattern was computed from an eVision.EMatcher, there are no feature points to draw and setting this to true will throw an Exception.
When the eVision.EFoundPattern was computed from an eVision.EPatternFinder in which:
The default value is false.
| eVision.EFoundPattern.DrawFeaturePoints | ( | self, | |
| bool | value ) |
Flag indicating if the eVision.EFoundPattern.Draw method must draw the feature points of the eVision.EFoundPattern.__init__ object.
Remarks:
When the eVision.EFoundPattern was computed from an eVision.EMatcher, there are no feature points to draw and setting this to true will throw an Exception.
When the eVision.EFoundPattern was computed from an eVision.EPatternFinder in which:
The default value is false.
| eVision.EDrawRegion eVision.EFoundPattern.DrawRegion | ( | self | ) |
Flag indicating if the eVision.EFoundPattern.Draw method must draw the region of the eVision.EFoundPattern object (region that was used during Learn), its contour or neither.
If no region was used during learning, setting this to eVision.EDrawRegion.DrawContour or eVision.EDrawRegion.Draw will throw an exception. See eVision.EFoundPattern.HasRegion to check if a region was used during learning.
Remarks:
The default value is eVision.EDrawRegion.NoDraw.
| eVision.EFoundPattern.DrawRegion | ( | self, | |
| eVision.EDrawRegion | value ) |
Flag indicating if the eVision.EFoundPattern.Draw method must draw the region of the eVision.EFoundPattern object (region that was used during Learn), its contour or neither.
If no region was used during learning, setting this to eVision.EDrawRegion.DrawContour or eVision.EDrawRegion.Draw will throw an exception. See eVision.EFoundPattern.HasRegion to check if a region was used during learning.
Remarks:
The default value is eVision.EDrawRegion.NoDraw.
| bool eVision.EFoundPattern.HasFeaturePoints | ( | self | ) |
Indicates whether there are feature points within this eVision.EFoundPattern.
See eVision.EFoundPattern.DrawFeaturePoints to draw the feature points.
| bool eVision.EFoundPattern.HasRegion | ( | self | ) |
Indicates whether there is an eVision.ERegion associated with this eVision.EFoundPattern, i.e.
whether an eVision.ERegion was used during the learning of the pattern. See eVision.EFoundPattern.DrawRegion to draw the region.
| int eVision.EFoundPattern.LearntPatternIndex | ( | self | ) |
Returns the index of the pattern learnt by eVision.EPatternFinder.LearnPatterns or eVision.EMatcher.LearnPatterns corresponding to this eVision.EFoundPattern.__init__ or 0 if a single pattern was learnt.
| eVision.EQuadrangle eVision.EFoundPattern.Quadrangle | ( | self | ) |
Returns the corners of the bounding box of the found pattern.
| float eVision.EFoundPattern.Scale | ( | self | ) |
Scaling factor of the found pattern, in units (not percent).
Remarks:
Querying this will throw an Exception if eVision.EFoundPattern.ScaleX != eVision.EFoundPattern.ScaleY.
| float eVision.EFoundPattern.ScaleX | ( | self | ) |
Horizontal Scaling factor of the found pattern, in units (not percent).
Remarks:
eVision.EPatternFinder does not support anisotropic scaling. In that case, this will return the same result as eVision.EFoundPattern.Scale.
| float eVision.EFoundPattern.ScaleY | ( | self | ) |
Vertical Scaling factor of the found pattern, in units (not percent).
Remarks:
eVision.EPatternFinder does not support anisotropic scaling. In that case, this will return the same result as eVision.EFoundPattern.Scale.
| float eVision.EFoundPattern.Score | ( | self | ) |
Matching score of the found pattern, in units (not percent).
Remarks:
The matching score range is [-1.0..1.0].
| eVision.EFrame eVision.EFoundPattern.ToFrame | ( | self, | |
| bool | useAngle, | ||
| eVision.EFrameScaling | frameScaling ) |
Creates an eVision.EFrame from the eVision.EFoundPattern.
| useAngle | Whether to use the angle of the EFoundPattern in the frame. |
| frameScaling | How to handle the scale of the frame. |
| eVision.EFrame eVision.EFoundPattern.ToFrame | ( | self, | |
| bool | useAngle, | ||
| eVision.EFrameScaling | frameScaling, | ||
| eVision.EFrame | frame ) |
Creates an eVision.EFrame from the eVision.EFoundPattern.
| useAngle | Whether to use the angle of the EFoundPattern in the frame. |
| frameScaling | How to handle the scale of the frame. |
| frame | Parent frame. Used when the eVision.EFoundPattern was read using a frame. |
| eVision.ERegion eVision.EFoundPattern.ToRegion | ( | self | ) |
Creates an eVision.ERegion from the eVision.EFoundPattern.
If an eVision.ERegion was used to learn the pattern (see eVision.EFoundPattern.HasRegion), returns the learned region transformed to the position of the found pattern. Otherwise, return an eVision.ERegion representing all the pixels which are within the bounding box of the found pattern.