JeVoisBase  1.16
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
test-model Namespace Reference

Variables

string MODEL_FPATH = "face-detection-retail-0004.bin"
 
string ARCH_FPATH = "face-detection-retail-0004.xml"
 
float CONF_THRESH = 0.5
 
 net = cv2.dnn.readNet(ARCH_FPATH, MODEL_FPATH)
 
 vid_cap = cv2.VideoCapture(0)
 
 ret
 
 frame
 
 blob = cv2.dnn.blobFromImage(frame, size=(300, 300), ddepth=cv2.CV_8U)
 
 out = net.forward()
 
 conf = float(detect[2])
 
 xmin = int(detect[3] * frame.shape[1])
 
 ymin = int(detect[4] * frame.shape[0])
 
 xmax = int(detect[5] * frame.shape[1])
 
 ymax = int(detect[6] * frame.shape[0])
 
 color
 
 thickness
 

Variable Documentation

◆ ARCH_FPATH

string test-model.ARCH_FPATH = "face-detection-retail-0004.xml"

Definition at line 6 of file test-model.py.

◆ blob

test-model.blob = cv2.dnn.blobFromImage(frame, size=(300, 300), ddepth=cv2.CV_8U)

Definition at line 25 of file test-model.py.

Referenced by DetectionDNN.process().

◆ color

test-model.color

Definition at line 38 of file test-model.py.

Referenced by RoadFinder.process(), and ArUcoBlob.process().

◆ conf

test-model.conf = float(detect[2])

Definition at line 31 of file test-model.py.

Referenced by DetectionDNN.postprocess().

◆ CONF_THRESH

float test-model.CONF_THRESH = 0.5

Definition at line 7 of file test-model.py.

◆ frame

test-model.frame

◆ MODEL_FPATH

string test-model.MODEL_FPATH = "face-detection-retail-0004.bin"

Definition at line 5 of file test-model.py.

◆ net

◆ out

test-model.out = net.forward()

Definition at line 27 of file test-model.py.

Referenced by ObjectRecognition< tiny_dnn::sequential >.process().

◆ ret

test-model.ret

Definition at line 22 of file test-model.py.

Referenced by TensorFlow::JeVoisReporter.Report().

◆ thickness

test-model.thickness

Definition at line 38 of file test-model.py.

◆ vid_cap

test-model.vid_cap = cv2.VideoCapture(0)

Definition at line 16 of file test-model.py.

◆ xmax

test-model.xmax = int(detect[5] * frame.shape[1])

Definition at line 34 of file test-model.py.

◆ xmin

test-model.xmin = int(detect[3] * frame.shape[1])

Definition at line 32 of file test-model.py.

◆ ymax

test-model.ymax = int(detect[6] * frame.shape[0])

Definition at line 35 of file test-model.py.

◆ ymin

test-model.ymin = int(detect[4] * frame.shape[0])

Definition at line 33 of file test-model.py.