public class OpenCvVisionProvider extends java.lang.Object implements VisionProvider
VisionProvider.TemplateMatch
Constructor and Description |
---|
OpenCvVisionProvider() |
Modifier and Type | Method and Description |
---|---|
protected Mat |
getCameraImage() |
Wizard |
getConfigurationWizard() |
java.util.List<VisionProvider.TemplateMatch> |
getTemplateMatches(java.awt.image.BufferedImage template)
Attempt to find matches of the given template within the current camera frame.
|
java.awt.Point[] |
locateTemplateMatches(int roiX,
int roiY,
int roiWidth,
int roiHeight,
int coiX,
int coiY,
java.awt.image.BufferedImage templateImage_) |
void |
setCamera(Camera camera)
Sets the Camera that the VisionProvider should use for image capture.
|
protected Camera camera
public void setCamera(Camera camera)
VisionProvider
setCamera
in interface VisionProvider
public Wizard getConfigurationWizard()
getConfigurationWizard
in interface VisionProvider
protected Mat getCameraImage() throws java.lang.Exception
java.lang.Exception
public java.util.List<VisionProvider.TemplateMatch> getTemplateMatches(java.awt.image.BufferedImage template) throws java.lang.Exception
getTemplateMatches
in interface VisionProvider
template
- java.lang.Exception
public java.awt.Point[] locateTemplateMatches(int roiX, int roiY, int roiWidth, int roiHeight, int coiX, int coiY, java.awt.image.BufferedImage templateImage_) throws java.lang.Exception
locateTemplateMatches
in interface VisionProvider
java.lang.Exception