New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

catternaut

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catternaut

Leverage the full power of Google's Cloud Vision resources to answer the age-old question: Is this a cat, or not?

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Catternaut

###Leverage the full power of Google's Cloud Vision resources to answer the age-old question: ###Is this a cat, or not?

####Prep Instructions subject to change, especially that bit about credentials

  • npm install catternaut
  • Add GOOGLE_APPLICATION_CREDENTIALS and GCLOUD_PROJECT to your environmental variables
    • Get them after registering with Google through this page.

####Usage

import { catternaut } from 'catternaut';

catternaut('http://animalpetdoctor.homestead.com/acat1.jpg');
// => true

catternaut('http://cdn2-www.dogtime.com/assets/uploads/gallery/30-impossibly-cute-puppies/impossibly-cute-puppy-8.jpg');
// => false

supports the following image file types: JPEG, PNG8, PNG24, GIF, Animated GIF (first frame only), BMP, WEBP, RAW, ICO src

####What is this wizardry?

Google offers a computer vision service in the cloud. Uploading an image to that service will return a JSON object of labels for items in the photo, in addition to the model's confidence rating for each label. This NPM module utilizes this service to determine if there is a cat in an uploaded image, or not.

Based heavily on work done by @AbhiGulati — ty, d00d

FAQs

Package last updated on 08 Jun 2016

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