Class GstreamerCamera
- java.lang.Object
-
- org.openpnp.model.AbstractModelObject
-
- org.openpnp.spi.base.AbstractHeadMountable
-
- org.openpnp.spi.base.AbstractCamera
-
- org.openpnp.machine.reference.camera.AbstractSettlingCamera
-
- org.openpnp.machine.reference.camera.AbstractBroadcastingCamera
-
- org.openpnp.machine.reference.camera.ReferenceCamera
-
- org.openpnp.machine.reference.camera.GstreamerCamera
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Runnable,Identifiable,Named,Solutions.Subject,Camera,HeadMountable,Locatable,Movable,MovableMountable,PropertySheetHolder,WizardConfigurable
public class GstreamerCamera extends ReferenceCamera
A Camera implementation based on an arbitrary gst_parse_launch pipeline.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openpnp.machine.reference.camera.ReferenceCamera
ReferenceCamera.CalibrationCallback, ReferenceCamera.FocusSensingMethod
-
Nested classes/interfaces inherited from class org.openpnp.machine.reference.camera.AbstractSettlingCamera
AbstractSettlingCamera.SettleMethod
-
Nested classes/interfaces inherited from class org.openpnp.spi.base.AbstractCamera
AbstractCamera.ListenerEntry
-
Nested classes/interfaces inherited from interface org.openpnp.spi.Camera
Camera.Looking, Camera.SettleOption
-
Nested classes/interfaces inherited from interface org.openpnp.spi.Locatable
Locatable.LocationOption
-
Nested classes/interfaces inherited from interface org.openpnp.spi.PropertySheetHolder
PropertySheetHolder.PropertySheet
-
-
Field Summary
-
Fields inherited from class org.openpnp.machine.reference.camera.ReferenceCamera
blueBalance, blueGamma, cropHeight, cropWidth, deinterlace, deleteAction, flipX, flipY, focusProvider, greenBalance, greenGamma, offsetX, offsetY, redBalance, redGamma, rotation, safeZ, scaleHeight, scaleWidth
-
Fields inherited from class org.openpnp.machine.reference.camera.AbstractBroadcastingCamera
captureNotifier, fps, suspendPreviewInTasks
-
Fields inherited from class org.openpnp.machine.reference.camera.AbstractSettlingCamera
BOOLEAN, CAPTURE, DATA, DIFFERENCE, heatMappedImages, maxRelativeMotion, minContrastRange, minMotionTemplateMatchScore, recordedImagePlayed, recordedImages, settleContrastEnhance, settleDebounce, settleDiagnostics, settleFullColor, settleGaussianBlur, settleGradients, settleMaskCircle, settleMethod, settleThreshold, settleTimeMs, settleTimeoutMs, THRESHOLD
-
Fields inherited from class org.openpnp.spi.base.AbstractCamera
afterCaptureLightOff, antiGlareLightOff, autoVisible, beforeCaptureLightOn, cameraPrimaryZ, cameraSecondaryZ, defaultZ, head, height, id, listeners, looking, name, roamingRadius, shownInMultiCameraView, unitsPerPixel, unitsPerPixelSecondary, userActionLightOn, visionProvider, width
-
Fields inherited from class org.openpnp.model.AbstractModelObject
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description GstreamerCamera()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()PropertySheetHolder[]getChildPropertySheetHolders()WizardgetConfigurationWizard()Gets a Wizard that can be used to configure this object.java.lang.StringgetGstPipeline()java.lang.StringgetPropertySheetHolderTitle()booleanhasNewFrame()java.awt.image.BufferedImageinternalCapture()protected booleanisOpen()voidopen()voidsetGstPipeline(java.lang.String newPipeString)-
Methods inherited from class org.openpnp.machine.reference.camera.ReferenceCamera
autoAdjustWhiteBalance, autoAdjustWhiteBalanceMapped, cancelCalibration, capture, captureRaw, captureTransformed, clearCalibrationCache, findIssues, flip, getAdvancedCalibration, getBlueBalance, getBlueGamma, getCalibratedHeadOffsets, getCalibration, getCaptureTryCount, getColorBalanceGraph, getCropHeight, getCropWidth, getFocusProvider, getFocusSensingMethod, getGreenBalance, getGreenGamma, getHeadOffsets, getHeight, getLightActuator, getOffsetX, getOffsetY, getPropertySheetHolderActions, getPropertySheets, getRedBalance, getRedGamma, getRotation, getScaleHeight, getScaleWidth, getUnitsPerPixel, getWidth, home, initWhiteBalanceLut, isAllowMachineActuators, isCalibrating, isCropped, isDeinterlace, isDeinterlaced, isFlipped, isFlipX, isFlipY, isOffset, isRotated, isScaled, isUndistorted, isWhiteBalanced, resetColorMaps, resetWhiteBalance, safeInternalCapture, setAllowMachineActuators, setBlueBalance, setBlueGamma, setCropHeight, setCropWidth, setDeinterlace, setFlipX, setFlipY, setFocusSensingMethod, setGreenBalance, setGreenGamma, setHeadOffsets, setLightActuator, setOffsetX, setOffsetY, setRedBalance, setRedGamma, setRotation, setScaleHeight, setScaleWidth, setUndistorted, startCalibration, transformImage, viewHasChanged
-
Methods inherited from class org.openpnp.machine.reference.camera.AbstractBroadcastingCamera
broadcastCapture, cameraViewHasChanged, captureCameraView, ensureOpen, getCaptureErrorImage, getLastTransformedImage, getPreviewFps, getThread, isBroadcasting, isPreviewSuspended, isSuspendPreviewInTasks, notifyCapture, reinitialize, run, setLastTransformedImage, setPreviewFps, setSuspendPreviewInTasks, start, startContinuousCapture, stop, stopContinuousCapture
-
Methods inherited from class org.openpnp.machine.reference.camera.AbstractSettlingCamera
commit, computeDifference, createHeatMapDiagnosticImage, createMask, enhanceContrast, getRecordedComputeMilliseconds, getRecordedImage, getRecordedImagePlayed, getRecordedImages, getRecordedSettleMilliseconds, getSettleContrastEnhance, getSettleDebounce, getSettleGaussianBlur, getSettleGraph, getSettleMaskCircle, getSettleMethod, getSettleThreshold, getSettleTimeMs, getSettleTimeoutMs, isSettleDiagnostics, isSettleFullColor, isSettleGradients, lightSettleAndCapture, playRecordedImage, setRecordedImagePlayed, setRecordedImages, setSettleContrastEnhance, setSettleDebounce, setSettleDiagnostics, setSettleFullColor, setSettleGaussianBlur, setSettleGradients, setSettleGraph, setSettleMaskCircle, setSettleMethod, setSettleThreshold, setSettleTimeMs, setSettleTimeoutMs, settleAndCapture
-
Methods inherited from class org.openpnp.spi.base.AbstractCamera
actuateLight, actuateLightAfterCapture, actuateLightBeforeCapture, ensureCameraVisible, estimateZCoordinateOfObject, getCameraAbsoluteZ, getCameraPhysicalLocation, getCameraPrimaryZ, getCameraRelativeZ, getCameraSecondaryZ, getCameraToolCalibratedOffset, getDefaultZ, getHead, getId, getLocation, getLooking, getName, getPropertySheetHolderIcon, getRoamingRadius, getUnitsPerPixel, getUnitsPerPixelAtZ, getUnitsPerPixelPrimary, getUnitsPerPixelSecondary, getVisionProvider, isAfterCaptureLightOff, isAntiGlareLightOff, isAutoVisible, isBeforeCaptureLightOn, isEnableUnitsPerPixel3D, isShownInMultiCameraView, isUnitsPerPixelAtZCalibrated, isUserActionLightOn, setAfterCaptureLightOff, setAntiGlareLightOff, setAutoVisible, setBeforeCaptureLightOn, setCameraPrimaryZ, setCameraSecondaryZ, setDefaultZ, setEnableUnitsPerPixel3D, setHead, setId, setLooking, setName, setRoamingRadius, setShownInMultiCameraView, setUnitsPerPixel, setUnitsPerPixelPrimary, setUnitsPerPixelSecondary, setUserActionLightOn, setVisionProvider, toString
-
Methods inherited from class org.openpnp.spi.base.AbstractHeadMountable
applyConfiguration, delay, getApproximativeLocation, getAxis, getAxisRotation, getAxisX, getAxisY, getAxisZ, getCoordinateAxisZ, getEffectiveSafeZ, getLocation, getMachine, getMappedAxes, getSafeZ, getSafeZZone, headMountableToRawZ, isInSafeZZone, isReachable, moveTo, moveTo, moveToSafeZ, moveToSafeZ, rawToHeadMountableZ, setAxis, setAxis, setAxisRotation, setAxisX, setAxisY, setAxisZ, setSafeZ, substituteUnchangedCoordinates, toAxesLocation, toHeadLocation, toHeadLocation, toHeadMountableLocation, toHeadMountableLocation, toMappedLocation, toRaw, toTransformed, waitForCompletion
-
Methods inherited from class org.openpnp.model.AbstractModelObject
addPropertyChangeListener, addPropertyChangeListener, dispose, dumpListeners, fireIndexedPropertyChange, firePropertyChange, isListener, isListener, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openpnp.spi.Camera
actuateLightBeforeCapture, settleAndCapture
-
Methods inherited from interface org.openpnp.spi.HeadMountable
delay, getCameraToolCalibratedOffset, getHead, setHead, toHeadLocation, toHeadMountableLocation, waitForCompletion
-
Methods inherited from interface org.openpnp.model.Identifiable
getId
-
Methods inherited from interface org.openpnp.spi.Locatable
getApproximativeLocation, getLocation
-
Methods inherited from interface org.openpnp.spi.Movable
getEffectiveSafeZ, getSafeZ, getSafeZZone, isInSafeZZone, isReachable, moveTo, moveTo, moveToSafeZ, moveToSafeZ
-
Methods inherited from interface org.openpnp.spi.MovableMountable
getAxis, getAxisRotation, getAxisX, getAxisY, getAxisZ, getMappedAxes, toRaw, toTransformed
-
Methods inherited from interface org.openpnp.model.Solutions.Subject
getSubjectIcon, getSubjectText
-
-
-
-
Method Detail
-
internalCapture
public java.awt.image.BufferedImage internalCapture()
- Specified by:
internalCapturein classReferenceCamera
-
hasNewFrame
public boolean hasNewFrame()
- Specified by:
hasNewFramein interfaceCamera- Overrides:
hasNewFramein classReferenceCamera- Returns:
- True if the Camera device has a new frame available (since the last one was captured).
-
open
public void open() throws java.lang.Exception- Overrides:
openin classAbstractBroadcastingCamera- Throws:
java.lang.Exception
-
isOpen
protected boolean isOpen()
- Overrides:
isOpenin classAbstractBroadcastingCamera
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classAbstractBroadcastingCamera- Throws:
java.io.IOException
-
getGstPipeline
public java.lang.String getGstPipeline()
-
setGstPipeline
public void setGstPipeline(java.lang.String newPipeString)
-
getConfigurationWizard
public Wizard getConfigurationWizard()
Description copied from interface:WizardConfigurableGets a Wizard that can be used to configure this object.- Returns:
-
getPropertySheetHolderTitle
public java.lang.String getPropertySheetHolderTitle()
-
getChildPropertySheetHolders
public PropertySheetHolder[] getChildPropertySheetHolders()
-
-