🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

hikivisioncontroller

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hikivisioncontroller

controller of hikivision's IP Camera

2.0.2
latest
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

#hikivision IP Cameras PTZ Controller and Video Graber Node.js implements based on hik's offical SDK

Usage example:

var {context,controller,graber}=require("hikivisioncontroller");

(async()=>{
let c=new context();
await c.init("192.168.1.200","admin","iampassword");//get an IP-Camera's context

let g=new graber(c);//start a graber of the camera images
g.onjpg(console.log);//images data callback

let ct=new controller(c);//start a PTZ Controller
await ct.refreshXYZ();//make Controller know the X,Y,Zoom Values now.


//Xrange:0-1 Yrange:0-1 ZoomRange:0-2
await ct.goX(0.7);// goX
console.log(ct.getXYZ());

await ct.goY(0.1);//then goY
console.log(ct.getXYZ());

//or something else...

})();

Keywords

hikivision

FAQs

Package last updated on 26 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts