camera

package
v0.0.0-...-9b663ca Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CameraCompanyHikvision = iota
	CameraCompanyDaHua
)

CameraCompany 摄像头厂家

Variables

This section is empty.

Functions

This section is empty.

Types

type Cameraer

type Cameraer interface {
	Capture() []byte
	GetDeviceInfo() map[string]string
}

Cameraer ..

type Dahua

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

Dahua ..

func NewDahua

func NewDahua(ip, user, password string) *Dahua

NewDahua with ip,user,password

func (*Dahua) Capture

func (d *Dahua) Capture() []byte

Capture ..

func (*Dahua) GetDeviceInfo

func (d *Dahua) GetDeviceInfo() map[string]string

GetDeviceInfo ..

type Hikvision

type Hikvision struct {
	DeviceName           string `xml:"deviceName" json:"device_name"`
	DeviceID             string `xml:"deviceID" json:"device_id"`
	DeviceDescription    string `xml:"deviceDescription" json:"device_description"`
	DeviceLocation       string `xml:"deviceLocation" json:"device_location"`
	SystemContact        string `xml:"systemContact" json:"system_contact"`
	Model                string `xml:"model" json:"model"`
	SerialNumber         string `xml:"serialNumber" json:"serial_number"`
	MacAddress           string `xml:"macAddress" json:"mac_address"`
	FirmwareVersion      string `xml:"firmwareVersion" json:"firmware_version"`
	FirmwareReleasedDate string `xml:"firmwareReleasedDate" json:"firmware_releasedDate"`
	EncoderVersion       string `xml:"encoderVersion" json:"encoder_version"`
	EncoderReleasedDate  string `xml:"encoderReleasedDate" json:"encoder_released_date"`
	BootVersion          string `xml:"bootVersion" json:"boot_version"`
	BootReleasedDate     string `xml:"bootReleasedDate" json:"boot_released_date"`
	HardwareVersion      string `xml:"hardwareVersion" json:"hardware_version"`
	DeviceType           string `xml:"deviceType" json:"device_type"`
	TelecontrolID        string `xml:"telecontrolID" json:"telecontrol_id"`
	SupportBeep          string `xml:"supportBeep" json:"support_beep"`
	SupportVideoLoss     string `xml:"supportVideoLoss" json:"support_video_loss"`
	FirmwareVersionInfo  string `xml:"firmwareVersionInfo" json:"firmware_version_info"`
	// contains filtered or unexported fields
}

Hikvision ..

func NewHikvision

func NewHikvision(ip, user, password string) *Hikvision

NewHikvision with ip,user,password

func (*Hikvision) Capture

func (h *Hikvision) Capture() []byte

Capture ..

func (*Hikvision) GetDeviceInfo

func (h *Hikvision) GetDeviceInfo() map[string]string

GetDeviceInfo ..

Jump to

Keyboard shortcuts

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