Node.js meets OpenCV’s Deep Neural Networks — Fun with Tensorflow and Caffe

OpenCV — Node.js Tutorial Series

Image for post
Image for post

So what are we going to build today?

Tensorflow Inception

Classifying objects in an image

Prepare the input image

Pass the image through the network

Extract the result from the output blob

Test it!

banana:
banana (0.95)
husky:
Siberian husky (0.78)
Eskimo dog (0.21)
car:
sports car (0.57)
racer (0.12)
lenna:
sombrero (0.34)
cowboy hat (0.3)

COCO SSD

Classification with COCO

Why 7 entries?

Let’s see it in action!

Image for post
Image for post
Image for post
Image for post

Some final words

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store