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

Simple DNN network invoked from OpenCV in python. More...

Public Member Functions

def __init__ (self)
 [Optional] Constructor More...
 
def init (self)
 [Optional] JeVois parameters initialization More...
 
def freeze (self, doit)
 [Optional] Freeze some parameters that should not be changed at runtime More...
 
def load (self)
 [Required] Load the network from disk More...
 
def process (self, blobs)
 [Required] Main processing function: process input blobs through network and return output blobs blobs is a list of numpy arrays for the network's outputs Should return a tuple with (list of output blobs, list of info strings), where the info strings could contain some information about the network More...
 

Public Attributes

 net
 
 gflops
 
 dataroot
 
 intensors
 
 outtensors
 
 config
 
 model
 

Detailed Description

Simple DNN network invoked from OpenCV in python.

Author
Laurent Itti
Email:
itti@usc.edu
Address:
University of Southern California, HNB-07A, 3641 Watt Way, Los Angeles, CA 90089-2520, USA
Main URL:
http://jevois.org
Support URL:
http://jevois.org/doc
Other URL:
http://iLab.usc.edu
License:
GPL v3
Distribution:
Unrestricted
Restrictions:
None

Definition at line 22 of file PyNetOpenCV.py.

Constructor & Destructor Documentation

◆ __init__()

def PyNetOpenCV.PyNetOpenCV.__init__ (   self)

[Optional] Constructor

Definition at line 25 of file PyNetOpenCV.py.

Member Function Documentation

◆ freeze()

◆ init()

def PyNetOpenCV.PyNetOpenCV.init (   self)

[Optional] JeVois parameters initialization

Definition at line 31 of file PyNetOpenCV.py.

◆ load()

◆ process()

def PyNetOpenCV.PyNetOpenCV.process (   self,
  blobs 
)

[Required] Main processing function: process input blobs through network and return output blobs blobs is a list of numpy arrays for the network's outputs Should return a tuple with (list of output blobs, list of info strings), where the info strings could contain some information about the network

Definition at line 81 of file PyNetOpenCV.py.

References PyNetOpenCV.PyNetOpenCV.gflops, demo.int, PyNetOpenCV.PyNetOpenCV.net, Darknet.net, Yolo.net, and ObjectRecognition< NetType >.net.

Member Data Documentation

◆ config

PyNetOpenCV.PyNetOpenCV.config

Definition at line 46 of file PyNetOpenCV.py.

Referenced by PyNetOpenCV.PyNetOpenCV.freeze(), and PyNetOpenCV.PyNetOpenCV.load().

◆ dataroot

◆ gflops

PyNetOpenCV.PyNetOpenCV.gflops

Definition at line 27 of file PyNetOpenCV.py.

Referenced by PyNetOpenCV.PyNetOpenCV.process().

◆ intensors

PyNetOpenCV.PyNetOpenCV.intensors

◆ model

◆ net

◆ outtensors

PyNetOpenCV.PyNetOpenCV.outtensors

Definition at line 42 of file PyNetOpenCV.py.

Referenced by PyNetOpenCV.PyNetOpenCV.freeze().


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