eVision Python API
Loading...
Searching...
No Matches
eVision.ESpot Class Reference

The eVision.ESpot store information about the detections produced by eVision.ESpotDetector. More...

Public Member Functions

None __init__ (self)
 Constructs an eVision.ESpot with default (invalid) values.
None __init__ (self, eVision.ESpot other)
 Copy constructor for eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float extension, eVision.ERGBColor color, float zoomX, float zoomY, float panX, float panY)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float extension, eVision.ERGBColor color, float zoomX, float zoomY, float panX)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float extension, eVision.ERGBColor color, float zoomX, float zoomY)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float extension, eVision.ERGBColor color, float zoomX)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float extension, eVision.ERGBColor color)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float extension)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float extension, eVision.ERGBColor color, float zoomX, float zoomY, float panX, float panY)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float extension, eVision.ERGBColor color, float zoomX, float zoomY, float panX)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float extension, eVision.ERGBColor color, float zoomX, float zoomY)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float extension, eVision.ERGBColor color, float zoomX)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float extension, eVision.ERGBColor color)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float extension)
 Draw the eVision.ESpot.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame)
 Draw the eVision.ESpot.
None Load (self, str path)
 Loads the eVision.ESpot.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.ESpot.
None Save (self, str path)
 Saves the eVision.ESpot.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.ESpot.
eVision.ESpot LocalToSensor (self, eVision.EFrame frame)
 Transforms a spot from local to sensor coordinates.
eVision.ESpot SensorToLocal (self, eVision.EFrame frame)
 Transforms a spot from sensor to local coordinates.

Properties

 Type = property(_Type__getter, None)
 Get the type of the spot, i.e.
 Polarity = property(_Polarity__getter, None)
 Get the polarity of the spot, i.e.
 Center = property(_Center__getter, None)
 Get the center point of the spot.
 Width = property(_Width__getter, None)
 Get the width of the bounding box of spot.
 Height = property(_Height__getter, None)
 Get the height of the bounding box of spot.
 Area = property(_Area__getter, None)
 Get the area of the spot (in number of pixels).
 Strength = property(_Strength__getter, None)
 Get the strength of the spot (the average grey scale value over the local image background).
 Box = property(_Box__getter, None)
 Returns the rotated rectangle representing the spot.
 Region = property(_Region__getter, None)
 Returns the eVision.ERegion of the spot (the pixels composing the spot).
 ROI = property(_ROI__getter, None)
 Returns the eVision.EROIBW8 of the spot (axis aligned bounding box).
 DLLabel = property(_DLLabel__getter, None)
 Returns the Deep Learning classification label.
 DLProbability = property(_DLProbability__getter, None)
 Returns the Deep Learning classification probability.

Detailed Description

The eVision.ESpot store information about the detections produced by eVision.ESpotDetector.

A spot is defined by a type (particle or scratch), a polarity (black or white) and a geometry. The geometry is an arbitrary rectangle, represented by a eVision.ERotatedBoundingBox.

Remarks:

License(s): EasySpotDetector

Deprecated
Deprecated in version 26.6. Scheduled to be removed in version 27.6.

Constructor & Destructor Documentation

◆ __init__() [1/2]

None eVision.ESpot.__init__ ( self)

Constructs an eVision.ESpot with default (invalid) values.

◆ __init__() [2/2]

None eVision.ESpot.__init__ ( self,
eVision.ESpot other )

Copy constructor for eVision.ESpot.

Parameters
otherThe other eVision.ESpot that we will copy into this one.

Member Function Documentation

◆ Draw() [1/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.

◆ Draw() [2/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
frameFrame associated with the spot. Usually, frame used to detect the spot.

◆ Draw() [3/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float extension )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
frameFrame associated with the spot. Usually, frame used to detect the spot.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.

◆ Draw() [4/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float extension,
eVision.ERGBColor color )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
frameFrame associated with the spot. Usually, frame used to detect the spot.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.
colorColor of the draw rectangle.

◆ Draw() [5/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float extension,
eVision.ERGBColor color,
float zoomX )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
frameFrame associated with the spot. Usually, frame used to detect the spot.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.
colorColor of the draw rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [6/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float extension,
eVision.ERGBColor color,
float zoomX,
float zoomY )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
frameFrame associated with the spot. Usually, frame used to detect the spot.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.
colorColor of the draw rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [7/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float extension,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
frameFrame associated with the spot. Usually, frame used to detect the spot.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.
colorColor of the draw rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [8/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float extension,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX,
float panY )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
frameFrame associated with the spot. Usually, frame used to detect the spot.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.
colorColor of the draw rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [9/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float extension )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.

◆ Draw() [10/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float extension,
eVision.ERGBColor color )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.
colorColor of the draw rectangle.

◆ Draw() [11/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float extension,
eVision.ERGBColor color,
float zoomX )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.
colorColor of the draw rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [12/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float extension,
eVision.ERGBColor color,
float zoomX,
float zoomY )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.
colorColor of the draw rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [13/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float extension,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.
colorColor of the draw rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [14/14]

None eVision.ESpot.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float extension,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX,
float panY )

Draw the eVision.ESpot.

Parameters
drawAdaptereVision.EDrawAdapter that will be used to draw.
extensionExtension in pixels of the draw rectangle around the spot. Only used for eVision.ESpotType.Particle.
colorColor of the draw rectangle.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Load() [1/2]

None eVision.ESpot.Load ( self,
eVision.ESerializer | None serializer )

Loads the eVision.ESpot.

The given eVision.ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

None eVision.ESpot.Load ( self,
str path )

Loads the eVision.ESpot.

The given eVision.ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ LocalToSensor()

eVision.ESpot eVision.ESpot.LocalToSensor ( self,
eVision.EFrame frame )

Transforms a spot from local to sensor coordinates.

Parameters
frameReference frame in which the region is defined.

◆ Save() [1/2]

None eVision.ESpot.Save ( self,
eVision.ESerializer | None serializer )

Saves the eVision.ESpot.

The given eVision.ESerializer must have been created for writing.

Parameters
serializerThe eVision.ESerializer object that is written to.

◆ Save() [2/2]

None eVision.ESpot.Save ( self,
str path )

Saves the eVision.ESpot.

The given eVision.ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ SensorToLocal()

eVision.ESpot eVision.ESpot.SensorToLocal ( self,
eVision.EFrame frame )

Transforms a spot from sensor to local coordinates.

Parameters
frameReference frame in which the region is defined.

Property Documentation

◆ Area

eVision.ESpot.Area = property(_Area__getter, None)
static

Get the area of the spot (in number of pixels).

◆ Box

eVision.ESpot.Box = property(_Box__getter, None)
static

Returns the rotated rectangle representing the spot.

◆ Center

eVision.ESpot.Center = property(_Center__getter, None)
static

Get the center point of the spot.

◆ DLLabel

eVision.ESpot.DLLabel = property(_DLLabel__getter, None)
static

Returns the Deep Learning classification label.

This information is available when the Deep Learning classification has been activated by eVision.ESpotDetector.DLClassifierPath. See also eVision.ESpot.DLProbability.

◆ DLProbability

eVision.ESpot.DLProbability = property(_DLProbability__getter, None)
static

Returns the Deep Learning classification probability.

This information is available when the Deep Learning classification has been activated by eVision.ESpotDetector.DLClassifierPath. See also eVision.ESpot.DLLabel.

◆ Height

eVision.ESpot.Height = property(_Height__getter, None)
static

Get the height of the bounding box of spot.

◆ Polarity

eVision.ESpot.Polarity = property(_Polarity__getter, None)
static

Get the polarity of the spot, i.e.

whether it is eVision.ESpotPolarity.White, eVision.ESpotPolarity.Black or eVision.ESpotPolarity.Any. A Spot's polarity is the same as the polarity setting of the detector when the spot was detected.

◆ Region

eVision.ESpot.Region = property(_Region__getter, None)
static

Returns the eVision.ERegion of the spot (the pixels composing the spot).

◆ ROI

eVision.ESpot.ROI = property(_ROI__getter, None)
static

Returns the eVision.EROIBW8 of the spot (axis aligned bounding box).

The returned ROI is not attached to an image.

◆ Strength

eVision.ESpot.Strength = property(_Strength__getter, None)
static

Get the strength of the spot (the average grey scale value over the local image background).

◆ Type

eVision.ESpot.Type = property(_Type__getter, None)
static

Get the type of the spot, i.e.

whether it is a eVision.ESpotType.Scratch or a eVision.ESpotType.Particle.

◆ Width

eVision.ESpot.Width = property(_Width__getter, None)
static

Get the width of the bounding box of spot.