Versions in this module Expand all Collapse all v0 v0.1.0 Oct 29, 2026 Changes in this version + var ErrAccessDenied = &Error + var ErrBufferTooSmall = &Error + var ErrBusy = &Error + var ErrClosed = errors.New("hikrobot: camera is closed") + var ErrDisconnected = &Error + var ErrNodeAccess = &Error + var ErrNodeNotFound = &Error + var ErrNotSupported = &Error + var ErrParameter = &Error + var ErrTimeout = &Error + var ErrUnsupported = errors.New("hikrobot: MVS is not supported on this platform") + var ErrUnsupportedType = &Error + func DefaultRuntimePath() string + type AccessMode uint32 + const AccessControl + const AccessExclusive + const AccessMonitor + type BayerQuality uint32 + const BayerBalanced + const BayerFast + const BayerOptimal + const BayerOptimalPlus + type Camera struct + func (c *Camera) ClearImageBuffer() error + func (c *Camera) Close() error + func (c *Camera) Connected() bool + func (c *Camera) ConvertTo(f *Frame, dst PixelType, buf []byte) ([]byte, error) + func (c *Camera) Device() Device + func (c *Camera) EnumSymbol(key string, value uint32) (string, error) + func (c *Camera) Execute(key string) error + func (c *Camera) GetBool(key string) (bool, error) + func (c *Camera) GetEnum(key string) (EnumValue, error) + func (c *Camera) GetEnumString(key string) (string, error) + func (c *Camera) GetFloat(key string) (FloatValue, error) + func (c *Camera) GetInt(key string) (IntValue, error) + func (c *Camera) GetString(key string) (string, error) + func (c *Camera) Grab(timeout time.Duration) (*Frame, error) + func (c *Camera) Image(f *Frame) (*image.RGBA, error) + func (c *Camera) LoadFeatures(path string) error + func (c *Camera) OnException(fn func(Exception)) error + func (c *Camera) OptimalPacketSize() (int, error) + func (c *Camera) Preview(f *Frame, width int) (*image.RGBA, error) + func (c *Camera) SaveFeatures(path string) error + func (c *Camera) SetBayerQuality(q BayerQuality) error + func (c *Camera) SetBool(key string, value bool) error + func (c *Camera) SetEnum(key string, value uint32) error + func (c *Camera) SetEnumString(key, symbol string) error + func (c *Camera) SetFloat(key string, value float32) error + func (c *Camera) SetGrabStrategy(s GrabStrategy) error + func (c *Camera) SetImageNodeNum(n int) error + func (c *Camera) SetInt(key string, value int64) error + func (c *Camera) SetOutputQueueSize(n int) error + func (c *Camera) SetResend(enable bool, maxPercent int, timeout time.Duration) error + func (c *Camera) SetString(key, value string) error + func (c *Camera) StartGrabbing() error + func (c *Camera) StopGrabbing() error + type Converter struct + func (c *Converter) ConvertTo(f *Frame, dst PixelType, buf []byte) ([]byte, error) + func (c *Converter) Image(f *Frame) (*image.RGBA, error) + func (c *Converter) Preview(f *Frame, width int) (*image.RGBA, error) + func (c *Converter) SetBayerQuality(q BayerQuality) error + func (k *Converter) Close() error + type Device struct + IP netip.Addr + MAC net.HardwareAddr + Model string + Serial string + Transport Transport + UserName string + Vendor string + func (d Device) String() string + type EnumValue struct + Current uint32 + Supported []uint32 + type Error struct + Code uint32 + Op string + func (e *Error) Error() string + func (e *Error) Is(target error) bool + type Exception uint32 + const ExceptionDisconnected + const ExceptionVersionCheck + func (e Exception) String() string + type FloatValue struct + Current float32 + Max float32 + Min float32 + type Frame struct + DeviceTimestamp uint64 + Height int + HostTime time.Time + LostPackets uint32 + Number uint32 + PixelType PixelType + Width int + func NewFrame(width, height int, pixelType PixelType, data []byte) (*Frame, error) + func (f *Frame) Data() []byte + func (f *Frame) Release() + func (f *Frame) Retain() bool + type GrabStrategy uint32 + const GrabLatest + const GrabLatestOnly + const GrabOneByOne + const GrabUpcoming + type IntValue struct + Current int64 + Increment int64 + Max int64 + Min int64 + type PixelType uint32 + const BGR8Packed + const BGRA8Packed + const BayerBG10 + const BayerBG12 + const BayerBG8 + const BayerGB10 + const BayerGB12 + const BayerGB8 + const BayerGR10 + const BayerGR12 + const BayerGR8 + const BayerRG10 + const BayerRG12 + const BayerRG8 + const Mono10 + const Mono12 + const Mono16 + const Mono8 + const RGB8Packed + const RGBA8Packed + const YUV422 + const YUV422YUYV + func (p PixelType) BitsPerPixel() int + func (p PixelType) Is8BitRaw() bool + func (p PixelType) String() string + type SDK struct + func Load(path string) (*SDK, error) + func (s *SDK) Accessible(d Device, mode AccessMode) bool + func (s *SDK) Close() error + func (s *SDK) Devices(transports Transport) ([]Device, error) + func (s *SDK) Find(key string) (Device, error) + func (s *SDK) NewConverter() (*Converter, error) + func (s *SDK) Open(d Device) (*Camera, error) + func (s *SDK) OpenMode(d Device, mode AccessMode) (_ *Camera, err error) + func (s *SDK) Version() string + type Transport uint32 + const TransportCameraLink + const TransportGenTLCXP + const TransportGenTLCameraLnk + const TransportGenTLGigE + const TransportGenTLVirtual + const TransportGenTLXoC + const TransportGenTLXoF + const TransportGigE + const TransportUSB3 + func (t Transport) String() string