项目作者: neirolis

项目描述 :
HIKVISION ISAPI thermal reader
高级语言: Go
项目地址: git://github.com/neirolis/hikvision.git
创建时间: 2020-06-12T13:40:37Z
项目社区:https://github.com/neirolis/hikvision

开源协议:

下载


HIKVISION ISAPI

WIP! Has only 2 methods:

  1. ThermalCapabilites - /ISAPI/Thermal/capabilities
  2. ThermalJPEGWithData - /ISAPI/Thermal/channels/<id>/thermometry/jpegPicWithAppendData?format=json

Install

  1. go get github.com/neirolis/hikvision

Usage

  1. c, err := hikvision.New(addr, user, pass)
  2. if err != nil {...}
  3. resp, err := c.ThermalCapabilites()
  4. if err != nil {...}
  5. // where resp is:
  6. // type ThermalCapabilites struct {
  7. // RealTimethermometry bool `xml:"isSupportRealTimethermometry"`
  8. // Power bool `xml:"isSupportPower"`
  9. // RealtimeTempHumi bool `xml:"isSupportRealtimeTempHumi"`
  10. // ThermIntell bool `xml:"isSupportThermIntell"`
  11. // ThermalPip bool `xml:"isSupportThermalPip"`
  12. // ThermalIntelRuleDisplay bool `xml:"isSupportThermalIntelRuleDisplay"`
  13. // FaceThermometry bool `xml:"isSupportFaceThermometry"`
  14. // ThermalBlackBody bool `xml:"isSupportThermalBlackBody"`
  15. // ThermalStreamParam bool `xml:"isSupportThermalStreamParam"`
  16. // BodyTemperatureCompensation bool `xml:"isSupportBodyTemperatureCompensation"`
  17. // TemperatureCorrection bool `xml:"isSupportTemperatureCorrection"`
  18. // ClickToThermometry bool `xml:"isSupportClickToThermometry"`
  19. // ThermometryHistorySearch bool `xml:"isSupportThermometryHistorySearch"`
  20. // BurningPrevention bool `xml:"isSupportBurningPrevention"`
  21. // JpegPicWithAppendData bool `xml:"isSupportJpegPicWithAppendData"`
  22. // RealTimethermometryForHTTP bool `xml:"isSupportRealTimethermometryForHTTP"`
  23. // FaceSnapThermometry bool `xml:"isSupportFaceSnapThermometry"`
  24. // }
  25. data, err := c.ThermalJPEGWithData()
  26. if err != nil {...}
  27. // where data is:
  28. // type ThermalData struct {
  29. // Info JpegPictureWithAppendData `json:"JpegPictureWithAppendData"`
  30. // ThermalPic []byte
  31. // Temperatures []float32
  32. // VisiblePic []byte
  33. // }
  34. // type JpegPictureWithAppendData struct {
  35. // Channel int `json:"channel"`
  36. // JPEGPicLen int `json:"jpegPicLen"`
  37. // JPEGPicWidth int `json:"jpegPicWidth"`
  38. // JPEGPicHeight int `json:"jpegPicHeight"`
  39. // P2PDataLen int `json:"p2pDataLen"`
  40. // IsFreezedata bool `json:"isFreezedata"`
  41. // TemperatureDataLength int `json:"temperatureDataLength"`
  42. // Scale int `json:"scale"`
  43. // Offset int `json:"offset"`
  44. // VisiblePicLen int `json:"visiblePicLen"`
  45. // }