Coder Social home page Coder Social logo

isobota / hikvision-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from loozhengyuan/hikvision-sdk

0.0 0.0 0.0 4.19 MB

海康威视 Hikvision SDK for Intelligence Security API (ISAPI).

License: GNU General Public License v3.0

Shell 0.44% Makefile 1.77% Go 97.79%

hikvision-sdk's Introduction

Hikvision ISAPI Go SDK

PkgGoDev Go Report Card ci

Important: This package is still under heavy development, only a partial implementation of the API is available.

Hikvision Go SDK for Intelligence Security API (ISAPI).

This implementation is heavily dependent on the ISAPI Core Protocol. The latest available copy of this specification document was updated on Sep 2019.

Installation

To install the SDK, use go get to fetch the latest version:

go get -u github.com/loozhengyuan/hikvision-sdk/hikvision

Once installed, you may import it directly into your Go application:

import "github.com/loozhengyuan/hikvision-sdk/hikvision"

Usage

package main

import (
	"fmt"

	"github.com/loozhengyuan/hikvision-sdk/hikvision"
)

func main() {
	// Create client object
	c, err := hikvision.NewClient(
		"YOUR_SERVER_HOST",
		"YOUR_SERVER_USERNAME",
		"YOUR_SERVER_PASSWORD",
	)
	if err != nil {
		fmt.Printf("error: %v\n", err)
	}

	// Send request
	d, err := c.GetDeviceInfo()
	if err != nil {
		fmt.Printf("error: %v\n", err)
	}
	fmt.Printf("%+v\n", d)

	// Print device information
	fmt.Printf("Model: %s\n", d.Model)
	fmt.Printf("Serial Number: %s\n", d.SerialNumber)
}

Contributing

There's still lots of work to be done! Only a small subset of the APIs are implemented, so pull requests are welcome.

License

GPL-3.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.