Class CameraSolutions
- java.lang.Object
-
- org.openpnp.machine.reference.solutions.CameraSolutions
-
- All Implemented Interfaces:
Solutions.Subject
public class CameraSolutions extends java.lang.Object implements Solutions.Subject
-
-
Constructor Summary
Constructors Constructor Description CameraSolutions(ReferenceCamera camera)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addCapturePropertyAutoSolution(Solutions solutions, java.lang.String propertyName, OpenPnpCaptureCamera.CapturePropertyHolder property, java.lang.String valueName, java.util.function.Function<Solutions.Issue,java.lang.Boolean> valueSetter, java.lang.String uri)
protected boolean
addCapturePropertyValueSolution(Solutions solutions, java.lang.String propertyName, OpenPnpCaptureCamera.CapturePropertyHolder property, java.lang.String valueName, java.lang.Integer suggestedValue, java.lang.String uri)
void
calibrateCameraSettling(Solutions.Issue issue, ReferenceMachine machine, HeadMountable movable, Location location)
static OpenPnpCaptureCamera
createReplacementCamera(ReferenceCamera oldCamera)
Create a replacement OpenPnpCaptureCamera for this camera with some of the generic settings transferred.void
findIssues(Solutions solutions)
Report any detected issue and proposed solution in the list.static void
replaceCamera(Camera camera)
Replace a camera with the same Id at the same place in the cameras list.protected void
setStaticExposure(OpenPnpCaptureCamera camera, OpenPnpCaptureCamera.CapturePropertyHolder exposureProperty, long adaptMilliseconds, int maxSteps)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openpnp.model.Solutions.Subject
getSubjectIcon, getSubjectText
-
-
-
-
Constructor Detail
-
CameraSolutions
public CameraSolutions(ReferenceCamera camera)
-
-
Method Detail
-
findIssues
public void findIssues(Solutions solutions)
Description copied from interface:Solutions.Subject
Report any detected issue and proposed solution in the list.- Specified by:
findIssues
in interfaceSolutions.Subject
-
setStaticExposure
protected void setStaticExposure(OpenPnpCaptureCamera camera, OpenPnpCaptureCamera.CapturePropertyHolder exposureProperty, long adaptMilliseconds, int maxSteps) throws java.lang.Exception, java.lang.InterruptedException
- Throws:
java.lang.Exception
java.lang.InterruptedException
-
addCapturePropertyAutoSolution
protected boolean addCapturePropertyAutoSolution(Solutions solutions, java.lang.String propertyName, OpenPnpCaptureCamera.CapturePropertyHolder property, java.lang.String valueName, java.util.function.Function<Solutions.Issue,java.lang.Boolean> valueSetter, java.lang.String uri)
-
addCapturePropertyValueSolution
protected boolean addCapturePropertyValueSolution(Solutions solutions, java.lang.String propertyName, OpenPnpCaptureCamera.CapturePropertyHolder property, java.lang.String valueName, java.lang.Integer suggestedValue, java.lang.String uri)
-
calibrateCameraSettling
public void calibrateCameraSettling(Solutions.Issue issue, ReferenceMachine machine, HeadMountable movable, Location location) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createReplacementCamera
public static OpenPnpCaptureCamera createReplacementCamera(ReferenceCamera oldCamera)
Create a replacement OpenPnpCaptureCamera for this camera with some of the generic settings transferred.- Returns:
-
replaceCamera
public static void replaceCamera(Camera camera) throws java.lang.Exception
Replace a camera with the same Id at the same place in the cameras list.- Parameters:
camera
-- Throws:
java.lang.Exception
-
-