JeVoisBase  1.18
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
PythonParallel Namespace Reference

Classes

class  PythonParallel
 Simple example of parallel image processing using OpenCV in Python on JeVois. More...
 

Functions

def computefunc (inimggray, th1, th2)
 Image processing function, several instances will run in parallel It is just defined as a free function here to emphasize the fact that class member data will not be shared anyway across the workers. More...
 

Function Documentation

◆ computefunc()

def PythonParallel.computefunc (   inimggray,
  th1,
  th2 
)

Image processing function, several instances will run in parallel It is just defined as a free function here to emphasize the fact that class member data will not be shared anyway across the workers.

NOTE: Do not attempt to use jevois.sendSerial() or any other functions of module jevois here, it will not work because computefunc() is running in a completely different process than jevois-daemon is. Just return any strings you wish to send out, and let your process() or processNoUSB() function do the sendSerial() instead.

Definition at line 14 of file PythonParallel.py.