File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ model : luxonis/scrfd-person-detection:25g-640x640
2+ platform : RVC4
Original file line number Diff line number Diff line change 1+ model : luxonis/yunet:320x240
2+ platform : RVC4
Original file line number Diff line number Diff line change 77from arguments import initialize_argparser
88from depthai_nodes .node .extended_neural_network import ExtendedNeuralNetwork
99from depthai_nodes .node .stage_2_neural_network import Stage2NeuralNetwork
10-
10+ import os
11+ from pathlib import Path
1112
1213logger = logging .getLogger (__name__ )
1314
1718frame_type = dai .ImgFrame .Type .BGR888i
1819HIGH_RES_WIDTH , HIGH_RES_HEIGHT = 2000 , 2000
1920LOW_RES_WIDTH , LOW_RES_HEIGHT = 640 , 640
20- PEOPLE_DETECTION_MODEL = "luxonis/scrfd-person-detection:25g-640x640"
21- FACE_DETECTION_MODEL = "luxonis/yunet:320x240"
21+ SCRIPT_DIR = Path (os .path .dirname (os .path .abspath (__file__ )))
22+ DEPTHAI_MODELS_DIR = SCRIPT_DIR / "depthai_models"
23+ PEOPLE_DETECTION_MODEL = dai .NNModelDescription .fromYamlFile (
24+ DEPTHAI_MODELS_DIR / "scrfd-person-detection.yaml"
25+ )
26+ FACE_DETECTION_MODEL = dai .NNModelDescription .fromYamlFile (
27+ DEPTHAI_MODELS_DIR / "yunet.yaml"
28+ )
2229if not args .fps_limit :
2330 args .fps_limit = 13
2431
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ build_steps = [
1414 " chmod +x /etc/service/backend/run" ,
1515]
1616
17+ depthai_models = { yaml_path = " ./backend/src/depthai_models" }
18+
1719[static_frontend ]
1820dist_path = " ./frontend/dist"
1921
@@ -28,4 +30,4 @@ oauth_url = "https://auth.docker.io/token"
2830auth_type = " repository"
2931auth_name = " luxonis/oakapp-base"
3032image_name = " luxonis/oakapp-base"
31- image_tag = " 1.2.6"
33+ image_tag = " 1.2.6"
You can’t perform that action at this time.
0 commit comments