JeVoisBase  1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
test-model Namespace Reference

Variables

str MODEL_FPATH = "face-detection-retail-0004.bin"
 
str 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

str 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.

◆ color

test-model.color

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

◆ conf

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

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

◆ CONF_THRESH

float test-model.CONF_THRESH = 0.5

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

◆ frame

test-model.frame

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

◆ MODEL_FPATH

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

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

◆ net

test-model.net = cv2.dnn.readNet(ARCH_FPATH, MODEL_FPATH)

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

◆ out

test-model.out = net.forward()

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

◆ ret

test-model.ret

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

◆ 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.