tfjs-image-classification

1.0.1 • Public • Published

Image Classification : Machine Learning in Node.js with TensorFlow.js

Image Classification in Node.js with TensorFlow.js

Getting Started

Installation

Open it in GitHub Desktop or git clone the repository or download the zip & extract the project.

Open the terminal in the project folder and type npm install.

Testing

Go to the project folder, and Open the Terminal to that path.

You can use any image you have, just paste it in the project folder and give the name as the argument.

  • Run the file (classify.js) with an image file as an argument.
node classify.js rabbit.jpg
  • The result will be shown in the Terminal as :
Classification Results: [
  {
    className: 'Angora, Angora rabbit',
    probability: 0.9488762617111206
  },
  { className: 'hamster', probability: 0.023957064375281334 },
  {
    className: 'guinea pig, Cavia cobaya',
    probability: 0.016880817711353302
  }
]

First Author

Second Author

  • Anonymous

Readme

Keywords

none

Package Sidebar

Install

npm i tfjs-image-classification

Weekly Downloads

3

Version

1.0.1

License

none

Unpacked Size

911 kB

Total Files

6

Last publish

Collaborators

  • nilofer