Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-double-take

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-double-take

Node.js Wrapper for Double Take Facial Recognition HTTP API

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Double Take wrapper in Node.js

Unofficial Node.js Wrapper for Double Take Facial Recognition by Shinobi Systems (https://shinobi.video)

All HTTP API Requests seen in the Double Take Documentation should work with this wrapper.

For each available function you can find their possible parameters in the Double Take documentation.

Double Take documentation : https://documenter.getpostman.com/view/1013188/TzsWuAa8#intro

Initialize Wrapper

const apiHost = 'http://localhost:3000'
const doubleTake = require('node-double-take')

const {
    authPost,
    authPasswordPost,
    authPasswordPatch,
    authTokens,
    authTokensPost,
    authTokensDelete,
    cameraCamera,
    config,
    configPatch,
    configSecrets,
    configSecretsPatch,
    configTheme,
    configThemePatch,
    filesystemFolders,
    filesystemFoldersNamePost,
    filesystemFoldersNameDelete,
    logger,
    loggerDelete,
    match,
    matchDelete,
    proxy,
    recognize,
    recognizeTest,
    recognizeUploadPost,
    statusConfig,
    storageLatestFilename,
    storageMatchesFilename,
    storageTrainDelete,
    storageTrainNameFilename,
    train,
    trainIdPatch,
    trainAddNamePost,
    trainRemoveNameDelete,
    trainRetrainName,
    trainStatus,
    apiRequest,
    uploadFile,
} = doubleTake(apiHost);

Simple API Calls with apiRequest. First Parameter is the target, Second are the options.

Example of /auth

const authResponse = await authPost({
    password: 'password',
})

Example of /recognize/upload with file buffer.

const fileBuffer = fs.readFileSync(filePath);
const file = {
   fileData: fileBuffer,
   fileName: 'example.jpg',
}
recognizeUploadPost(file).then((data) => {
    console.log(data)
})

Example of /recognize/upload with createReadStream.

const file = {
   fileData: fs.createReadStream(filePath),
   fileName: 'example.jpg',
}
recognizeUploadPost(file).then((data) => {
    console.log(data)
})

Example of /config/theme

const themePatchResponse = await configThemePatch({
    "ui": "bootstrap4-dark-blue",
    "editor": "nord_dark"
})

Keywords

FAQs

Package last updated on 28 Mar 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc