opencvservice

package
v0.0.0-...-b8f5ead Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera struct {
	// contains filtered or unexported fields
}

func OpenCamera

func OpenCamera(id int) (*Camera, error)

func (*Camera) Close

func (c *Camera) Close() error

func (*Camera) ID

func (c *Camera) ID() int

Returns camera number value registered in the system

func (*Camera) IsOpened

func (c *Camera) IsOpened() bool

func (*Camera) Read

func (c *Camera) Read(b []byte) (n int, err error)

Reading gocv.Mat to byte slice

func (*Camera) ReadMat

func (c *Camera) ReadMat() (*gocv.Mat, error)

type MatOption

type MatOption struct {
	// contains filtered or unexported fields
}

type OpenCVService

type OpenCVService struct {
	// contains filtered or unexported fields
}

func (*OpenCVService) Camera

func (o *OpenCVService) Camera() *Camera

Returns actual system camera instance

func (OpenCVService) CreateService

func (OpenCVService) CreateService() *manage.ServiceInfo

func (*OpenCVService) Start

func (o *OpenCVService) Start() error

Starting all process

func (*OpenCVService) Stop

func (o *OpenCVService) Stop() error

Stopping all active processes

type VideoRecord

type VideoRecord struct {
	// contains filtered or unexported fields
}

func OpenVideoRecord

func OpenVideoRecord(mat gocv.Mat) (*VideoRecord, error)

func (*VideoRecord) Close

func (v *VideoRecord) Close() error

func (*VideoRecord) IsOpened

func (v *VideoRecord) IsOpened() bool

func (*VideoRecord) Size

func (v *VideoRecord) Size() int64

func (*VideoRecord) Write

func (v *VideoRecord) Write(mat gocv.Mat) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL