JeVoisBase  1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
PyClassificationDNN.PyClassificationDNN Class Reference

Object recognition using OpenCV Deep Neural Networks (DNN) More...

Public Member Functions

def __init__ (self)
 Constructor. More...
 
def process (self, inframe, outframe)
 JeVois main processing function. More...
 

Public Attributes

 confThreshold
 
 inpWidth
 
 inpHeight
 
 scale
 
 mean
 
 rgb
 
 classes
 
 net
 
 timer
 
 model
 

Detailed Description

Object recognition using OpenCV Deep Neural Networks (DNN)

This module runs an object classification deep neural network using the OpenCV DNN library. Classification (recognition) networks analyze a central portion of the whole scene and produce identity labels and confidence scores about what the object in the field of view might be.

This module supports detection networks implemented in TensorFlow, Caffe, Darknet, Torch, ONNX, etc as supported by the OpenCV DNN module.

Included with the standard JeVois distribution are:

  • SqueezeNet v1.1, Caffe model
  • more to come, please contribute!

See the module's constructor (init) code and select a value for model to switch network.

Object category names for models trained on ImageNet are at https://github.com/HoldenCaulfieldRye/caffe/blob/master/data/ilsvrc12/synset_words.txt

Sometimes it will make mistakes! The performance of SqueezeNet v1.1 is about 56.1% correct (mean average precision, top-1) on the ImageNet test set.

This module is adapted from the sample OpenCV code: https://github.com/opencv/opencv/blob/master/samples/dnn/classification.py

More pre-trained models are available on github in opencv_extra

Author
Laurent Itti
Videomapping:
YUYV 320 264 30.0 YUYV 320 240 30.0 JeVois PyClassificationDNN
Email:
itti@.nosp@m.usc..nosp@m.edu
Address:
880 W 1st St Suite 807, Los Angeles CA 90012, USA
Main URL:
http://jevois.org
Support URL:
http://jevois.org
Other URL:
http://jevois.org
License:
GPL v3
Distribution:
Unrestricted
Restrictions:
None

Definition at line 49 of file PyClassificationDNN.py.

Constructor & Destructor Documentation

◆ __init__()

def PyClassificationDNN.PyClassificationDNN.__init__ (   self)

Constructor.

Definition at line 52 of file PyClassificationDNN.py.

Member Function Documentation

◆ process()

Member Data Documentation

◆ classes

PyClassificationDNN.PyClassificationDNN.classes

◆ confThreshold

PyClassificationDNN.PyClassificationDNN.confThreshold

◆ inpHeight

PyClassificationDNN.PyClassificationDNN.inpHeight

◆ inpWidth

PyClassificationDNN.PyClassificationDNN.inpWidth

◆ mean

PyClassificationDNN.PyClassificationDNN.mean

◆ model

◆ net

◆ rgb

◆ scale

PyClassificationDNN.PyClassificationDNN.scale

◆ timer


The documentation for this class was generated from the following file: