Documentation ¶
Index ¶
- Constants
- func DisableInterface(id string)
- func EnableInterface(id string)
- func GetDeviceId(index uint) (string, error)
- func GetInterfaceId(index uint) (string, error)
- func GetNumDevices() (uint, error)
- func GetNumInferface() (uint, error)
- func InterfaceGetDeviceAddress()
- func InterfaceGetDeviceId()
- func InterfaceGetDevicePhysicalId()
- func InterfaceGetNumDevices()
- func InterfaceOpenDevice()
- func OpenDevice()
- func Shutdown()
- func UpdateDeviceList()
- type BayerRG
- type Buffer
- type Camera
- func (c *Camera) AbortAcquisition() error
- func (c *Camera) ClearTriggers() error
- func (c *Camera) Close()
- func (c *Camera) CreateStream() (Stream, error)
- func (c *Camera) GVGetCurrentStreamChannel() (int, error)
- func (c *Camera) GVGetNumStreamChannels() (int, error)
- func (c *Camera) GVGetPacketDelay() (int64, error)
- func (c *Camera) GVGetPacketSize() (int, error)
- func (c *Camera) GVSelectStreamChannels(id int) error
- func (c *Camera) GVSetPacketDelay(delay int64) error
- func (c *Camera) GVSetPacketSize(size int) error
- func (c *Camera) GetAvailablePixelFormats()
- func (c *Camera) GetAvailablePixelFormatsAsDisplayNames()
- func (c *Camera) GetAvailablePixelFormatsAsStrings()
- func (c *Camera) GetBinning() (int, int, error)
- func (c *Camera) GetChunkMode() (bool, error)
- func (c *Camera) GetDevice() (Device, error)
- func (c *Camera) GetDeviceId() (string, error)
- func (c *Camera) GetExposureTime() (float64, error)
- func (c *Camera) GetExposureTimeAuto()
- func (c *Camera) GetExposureTimeBounds()
- func (c *Camera) GetFrameRate() (float64, error)
- func (c *Camera) GetFrameRateBounds() (float64, float64, error)
- func (c *Camera) GetGain() (float64, error)
- func (c *Camera) GetGainBounds() (float64, float64, error)
- func (c *Camera) GetHeight() (int, error)
- func (c *Camera) GetHeightBounds() (int, int, error)
- func (c *Camera) GetLineRate() (float64, error)
- func (c *Camera) GetModelName() (string, error)
- func (c *Camera) GetPayloadSize() (uint, error)
- func (c *Camera) GetPixelFormat()
- func (c *Camera) GetPixelFormatAsString()
- func (c *Camera) GetRegion() (int, int, int, int, error)
- func (c *Camera) GetSensorSize() (int, int, error)
- func (c *Camera) GetTriggerSource() (string, error)
- func (c *Camera) GetVendorName() (string, error)
- func (c *Camera) GetWidth() (int, error)
- func (c *Camera) GetWidthBounds() (int, int, error)
- func (c *Camera) IsExposureAutoAvailable() (bool, error)
- func (c *Camera) IsExposureTimeAvailable() (bool, error)
- func (c *Camera) IsGVDevice() (bool, error)
- func (c *Camera) IsNil() bool
- func (c *Camera) SetAcquisitionMode(mode int) error
- func (c *Camera) SetBinning()
- func (c *Camera) SetControlLostHandler(hdl func()) error
- func (c *Camera) SetExposureTime(time float64) error
- func (c *Camera) SetExposureTimeAuto(mode int) error
- func (c *Camera) SetFrameRate(frameRate float64) error
- func (c *Camera) SetGain(gain float64) error
- func (c *Camera) SetGainAuto()
- func (c *Camera) SetLineRate(lineRate float64)
- func (c *Camera) SetPixelFormat()
- func (c *Camera) SetPixelFormatFromString()
- func (c *Camera) SetRegion(x, y, width, height int) error
- func (c *Camera) SetTrigger(source string) error
- func (c *Camera) SetTriggerSource(source string) error
- func (c *Camera) SoftwareTrigger() error
- func (c *Camera) StartAcquisition() error
- func (c *Camera) StopAcquisition() error
- type Device
- func (d *Device) ExecuteCommand(feature string) error
- func (d *Device) GetFloatFeatureValue(feature string) (float64, error)
- func (d *Device) GetIntegerFeatureValue(feature string) (int64, error)
- func (d *Device) GetStringFeatureValue(feature string) (string, error)
- func (d *Device) IsNil() bool
- func (d *Device) LeaveControl() (bool, error)
- func (d *Device) SetFloatFeatureValue(feature string, value float64)
- func (d *Device) SetIntegerFeatureValue(feature string, value int64)
- func (d *Device) SetNodeFeatureValue(feature, value string)
- func (d *Device) SetStringFeatureValue(feature, value string)
- func (d *Device) TakeControl() (bool, error)
- type Stream
- func (s *Stream) Close()
- func (s *Stream) PopBuffer() (Buffer, error)
- func (s *Stream) PushBuffer(b Buffer)
- func (s *Stream) SetPropertyDouble(property string, value float32)
- func (s *Stream) SetPropertyLong(property string, value int64)
- func (s *Stream) TimeoutPopBuffer(t time.Duration) (Buffer, error)
- func (s *Stream) TryPopBuffer() (Buffer, error)
- type ThreadPriorityType
Constants ¶
View Source
const ( BUFFER_STATUS_UNKNOWN = C.ARV_BUFFER_STATUS_UNKNOWN BUFFER_STATUS_SUCCESS = C.ARV_BUFFER_STATUS_SUCCESS BUFFER_STATUS_CLEARED = C.ARV_BUFFER_STATUS_CLEARED BUFFER_STATUS_TIMEOUT = C.ARV_BUFFER_STATUS_TIMEOUT BUFFER_STATUS_MISSING_PACKETS = C.ARV_BUFFER_STATUS_MISSING_PACKETS BUFFER_STATUS_WRONG_PACKET_ID = C.ARV_BUFFER_STATUS_WRONG_PACKET_ID BUFFER_STATUS_SIZE_MISMATCH = C.ARV_BUFFER_STATUS_SIZE_MISMATCH BUFFER_STATUS_FILLING = C.ARV_BUFFER_STATUS_FILLING BUFFER_STATUS_ABORTED = C.ARV_BUFFER_STATUS_ABORTED )
View Source
const ( ACQUISITION_MODE_CONTINUOUS = C.ARV_ACQUISITION_MODE_CONTINUOUS ACQUISITION_MODE_SINGLE_FRAME = C.ARV_ACQUISITION_MODE_SINGLE_FRAME )
View Source
const ( AUTO_OFF = C.ARV_AUTO_OFF AUTO_ONCE = C.ARV_AUTO_ONCE AUTO_CONTINUOUS = C.ARV_AUTO_CONTINUOUS )
View Source
const ( DEVICE_ERROR_WRONG_FEATURE = C.ARV_DEVICE_ERROR_WRONG_FEATURE DEVICE_ERROR_FEATURE_NOT_FOUND = C.ARV_DEVICE_ERROR_FEATURE_NOT_FOUND DEVICE_ERROR_NOT_CONNECTED = C.ARV_DEVICE_ERROR_NOT_CONNECTED DEVICE_ERROR_PROTOCOL_ERROR = C.ARV_DEVICE_ERROR_PROTOCOL_ERROR DEVICE_ERROR_TRANSFER_ERROR = C.ARV_DEVICE_ERROR_TRANSFER_ERROR DEVICE_ERROR_TIMEOUT = C.ARV_DEVICE_ERROR_TIMEOUT DEVICE_ERROR_NOT_FOUND = C.ARV_DEVICE_ERROR_NOT_FOUND DEVICE_ERROR_INVALID_PARAMETER = C.ARV_DEVICE_ERROR_INVALID_PARAMETER DEVICE_ERROR_GENICAM_NOT_FOUND = C.ARV_DEVICE_ERROR_GENICAM_NOT_FOUND DEVICE_ERROR_NO_STREAM_CHANNEL = C.ARV_DEVICE_ERROR_NO_STREAM_CHANNEL DEVICE_ERROR_NOT_CONTROLLER = C.ARV_DEVICE_ERROR_NOT_CONTROLLER DEVICE_ERROR_UNKNOWN = C.ARV_DEVICE_ERROR_UNKNOWN )
Variables ¶
This section is empty.
Functions ¶
func DisableInterface ¶
func DisableInterface(id string)
func EnableInterface ¶
func EnableInterface(id string)
func GetDeviceId ¶
func GetInterfaceId ¶
func GetNumDevices ¶
func GetNumInferface ¶
func InterfaceGetDeviceAddress ¶
func InterfaceGetDeviceAddress()
func InterfaceGetDeviceId ¶
func InterfaceGetDeviceId()
func InterfaceGetDevicePhysicalId ¶
func InterfaceGetDevicePhysicalId()
func InterfaceGetNumDevices ¶
func InterfaceGetNumDevices()
func InterfaceOpenDevice ¶
func InterfaceOpenDevice()
func OpenDevice ¶
func OpenDevice()
func UpdateDeviceList ¶
func UpdateDeviceList()
Types ¶
type BayerRG ¶
type BayerRG struct { // Pix holds the image's pixels, in bayer order. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)]. Pix []uint8 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
func NewBayerRG ¶
func (*BayerRG) ColorModel ¶
type Camera ¶
type Camera struct { ThreadPriority ThreadPriorityType // contains filtered or unexported fields }
func (*Camera) AbortAcquisition ¶
func (*Camera) ClearTriggers ¶
func (*Camera) CreateStream ¶
func (*Camera) GVGetCurrentStreamChannel ¶
func (*Camera) GVGetNumStreamChannels ¶
func (*Camera) GVGetPacketDelay ¶
func (*Camera) GVGetPacketSize ¶
func (*Camera) GVSelectStreamChannels ¶
func (*Camera) GVSetPacketDelay ¶
func (*Camera) GVSetPacketSize ¶
func (*Camera) GetAvailablePixelFormats ¶
func (c *Camera) GetAvailablePixelFormats()
func (*Camera) GetAvailablePixelFormatsAsDisplayNames ¶
func (c *Camera) GetAvailablePixelFormatsAsDisplayNames()
func (*Camera) GetAvailablePixelFormatsAsStrings ¶
func (c *Camera) GetAvailablePixelFormatsAsStrings()
func (*Camera) GetChunkMode ¶
func (*Camera) GetDeviceId ¶
func (*Camera) GetExposureTime ¶
func (*Camera) GetExposureTimeAuto ¶
func (c *Camera) GetExposureTimeAuto()
func (*Camera) GetExposureTimeBounds ¶
func (c *Camera) GetExposureTimeBounds()
func (*Camera) GetFrameRate ¶
func (*Camera) GetLineRate ¶
func (*Camera) GetModelName ¶
func (*Camera) GetPayloadSize ¶
func (*Camera) GetPixelFormat ¶
func (c *Camera) GetPixelFormat()
func (*Camera) GetPixelFormatAsString ¶
func (c *Camera) GetPixelFormatAsString()
func (*Camera) GetTriggerSource ¶
func (*Camera) GetVendorName ¶
func (*Camera) IsExposureAutoAvailable ¶
func (*Camera) IsExposureTimeAvailable ¶
func (*Camera) IsGVDevice ¶
func (*Camera) SetAcquisitionMode ¶
func (*Camera) SetBinning ¶
func (c *Camera) SetBinning()
func (*Camera) SetControlLostHandler ¶
func (*Camera) SetExposureTime ¶
func (*Camera) SetExposureTimeAuto ¶
func (*Camera) SetFrameRate ¶
func (*Camera) SetGainAuto ¶
func (c *Camera) SetGainAuto()
func (*Camera) SetLineRate ¶
func (*Camera) SetPixelFormat ¶
func (c *Camera) SetPixelFormat()
func (*Camera) SetPixelFormatFromString ¶
func (c *Camera) SetPixelFormatFromString()
func (*Camera) SetTrigger ¶
func (*Camera) SetTriggerSource ¶
func (*Camera) SoftwareTrigger ¶
func (*Camera) StartAcquisition ¶
func (*Camera) StopAcquisition ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) ExecuteCommand ¶
func (*Device) GetFloatFeatureValue ¶
func (*Device) GetIntegerFeatureValue ¶
func (*Device) GetStringFeatureValue ¶
func (*Device) LeaveControl ¶
func (*Device) SetFloatFeatureValue ¶
func (*Device) SetIntegerFeatureValue ¶
func (*Device) SetNodeFeatureValue ¶
func (*Device) SetStringFeatureValue ¶
func (*Device) TakeControl ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) PushBuffer ¶
func (*Stream) SetPropertyDouble ¶
func (*Stream) SetPropertyLong ¶
func (*Stream) TimeoutPopBuffer ¶
func (*Stream) TryPopBuffer ¶
type ThreadPriorityType ¶
type ThreadPriorityType int
const ( ThreadPriorityNormal ThreadPriorityType = iota ThreadPriorityRealtime ThreadPriorityHigh )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.