Socket
Socket
Sign inDemoInstall

roboflow

Package Overview
Dependencies
239
Maintainers
8
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    roboflow

Roboflow.ai node module and CLI tools


Version published
Maintainers
8
Created

Readme

Source

Roboflow node library

Roboflow makes computer vision accessible to all developers. https://roboflow.ai

This project is under active development, use at your own risk

Node Module

The node module is currently a very basic wrapper around roboflow API endpoints.

You can use it like so:

const roboflow = require("roboflow");
const workspaceInfo = roboflow.getWorkspace(workspaceUrl, apiKey);

It currently includes the following functions, which are implemented in api.js:

  • getWorkspace(workspaceUrl, apiKey)
  • getProject(workspaceUrl, projectUrl, apiKey)
  • getVersion(workspaceUrl, projectUrl, version, apiKey)
  • getFormat(workspaceUrl, projectUrl, version, format, apiKey)
  • uploadImage(filepath, projectUrl, apiKey, options)
  • detectObject(filepath, modelUrl, apiKey, options)
  • classify(filepath, modelUrl, apiKey)
  • instanceSegmentation(filepath, modelUrl, apiKey)
  • semanticSegmentation(filepath, modelUrl, apiKey)

CLI tool

This package install a roboflow CLI you can use from your terminal.

To install this package and CLI globally:

npm i -g roboflow

Authorize the CLI

To authotize your CLI, run the following command.

roboflow auth

This will open a browser window and have you log into roboflow where you can select any workspaces you want the CLI to store auth credentials for (The CLi will download the api keys for the workspaces and store them in a config fle in the ~/.config/roboflow directory on your system).

Using the CLI

You can use the roboflow CLI to:

  • list your workspaces
  • select a default workspace to use
  • list your projects
  • upload images to your projects
  • use it to get inference results for local images (for any of your object detection, classification, or segmentation models)

For more info on how to use the CLI see the help an usage instructions by running:

roboflow -h

You can also get specific help for each of the available sucommands, like e.g.:

roboflow upload -h

or

roboflow detect -h

Keywords

FAQs

Last updated on 07 Oct 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc