Skip to content

Commit 2ec4db3

Browse files
Update experiments
1 parent da3c364 commit 2ec4db3

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,4 @@ cython_debug/
161161
# and can be added to the global gitignore or merged into this file. For a more nuclear
162162
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
163163
.idea/
164+
/sdk/sdk-class-saver-jpeg/data/

sdk/sdk-crowdcounting/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ def callback(ctx: CallbackContext):
3131
color = oak.create_camera('color', fps=5)
3232
nn = oak.create_nn('models/vgg_openvino_2021.4_6shave.blob', color)
3333

34-
oak.callback(nn.out.main, callback=callback, record_path='recordings/video.mp4')
34+
oak.callback(nn.out.main, callback=callback)
3535
oak.start(blocking=True)

sdk/sdk-facemesh/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def callback(ctx: CallbackContext):
4444
else:
4545
applied_effect = frame
4646

47-
cv2.imshow("Demo", np.hstack([frame, applied_effect]))
47+
cv2.imshow("FaceMesh", np.hstack([frame, applied_effect]))
4848

4949

5050
with OakCamera() as oak:

sdk/sdk-human-pose/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def callback(ctx: CallbackContext):
2727
cv2.imshow('Human pose estimation', frame)
2828

2929

30-
with OakCamera(replay='ballet-man-1-720p.mp4') as oak:
30+
with OakCamera(replay='input.mp4') as oak:
3131
color = oak.create_camera('color')
3232

3333
human_pose_nn = oak.create_nn('human-pose-estimation-0001', color)
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from depthai_sdk import OakCamera, BboxStyle
22

33
with OakCamera(replay='people-tracking-above-04') as oak:
4-
camera = oak.create_camera('color', fps=30, encode='h264')
4+
camera = oak.create_camera('color')
55

6-
det = oak.create_nn('person-detection-retail-0013', camera)
7-
det.config_nn(confThreshold=0.1)
6+
det = oak.create_nn('person-detection-retail-0013', camera, tracker=True)
7+
det.config_nn(conf_threshold=0.1)
88

9-
visualizer = oak.visualize(det.out.main)
9+
visualizer = oak.visualize(det.out.tracker)
1010
visualizer.detections(bbox_style=BboxStyle.CORNERS, color=(232, 36, 87), hide_label=True)
11+
visualizer.tracking(line_color=(114, 210, 252), deletion_lost_threshold=2, line_thickness=3, fading_tails=3)
1112

1213
oak.start(blocking=True)
-2.37 MB
Binary file not shown.

0 commit comments

Comments
 (0)