Hi @michaelsalerno ,
I'm not sure I understand what you mean by "without service", can you elaborate?
Thanks!,
Filip
filipjeretina

- Sep 25, 2024
- Joined Mar 11, 2024
- 1 best answer
Maybe drop it to 5fps and see if that works, if yes, go up, until it doesn't work
hmm, no. You can play arround with the camera FPS and lower it until it works for you
I think it should also sort itself out if you give it a minute
Well, do you need to reset it many times? I think if it suits you, you should just let it run
on this error just try again, or power-cycle and try again
I think this version:
python -m pip install depthai-sdk==1.9.1.1
ahh, make sure to install the depthai_sdk version you had previously
- Edited
I would suggest you to copy the working version to your Desktop and leaving it alone. Maybe also run
python -m pip freeze
which will give you a list of all installed packages. And save this somewhere too.- Edited
I removed the versions since I wanted it to function and not be confined to a certain version, but maybe Ill try adding it back?
Yea
This seems like an environment error
Not sure why, but make sure you have depthai_sdk installed.
can install it viapython -m pip install depthai_sdk
Wait, it seems to be not working again
What is the issue now?
My apologies if I was short tempered, I was extremely nervous for tomorrows meeting and needed everything to be working well.
hahah, I get it. Really sorry for the inconvenience. But for the future. NEVER work inside of the installers repository.... It is not safe!!! And make backups of things!
power cycle the device and try again. this error seems unrelated
Does this improve your situation?
Okay so this is the file you are running:
#!/usr/bin/env python3 from depthai_sdk import OakCamera, TrackerPacket, Visualizer, TextPositionimport depthai as daifrom people_tracker import PeopleTrackerimport cv2 pt = PeopleTracker() with OakCamera() as oak: color_cam = oak.create_camera('color') tracker = oak.create_nn('person-detection-retail-0013', color_cam, tracker=True) tracker.config_nn(conf_threshold=0.6) tracker.config_tracker(tracker_type=dai.TrackerType.ZERO_TERM_COLOR_HISTOGRAM, track_labels=[1]) def cb(packet: TrackerPacket, vis: Visualizer): left, right, up, down = pt.calculate_tracklet_movement(packet.daiTracklets) vis.add_text(f"Up: {up}, Down: {down}", position=TextPosition.TOP_LEFT, size=1) vis.draw(packet.frame) cv2.imshow('People Tracker', packet.frame) oak.visualize(tracker.out.tracker, callback=cb) oak.start(blocking=True)
I was just confused with the error you sent here:
Maybe you can try to lower the fps on the camera:
color_cam = oak.create_camera('color', fps=10)
But also, please send the contents of this file:
C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker\main.pyTry to change this:
with dai.OakCamera(pipeline, maxUsbSpeed=dai.UsbSpeed.HIGH) as oak:
To
with dai.Device(pipeline, maxUsbSpeed=dai.UsbSpeed.HIGH) as oak:
michaelsalerno
This, and the script you ran to get the error are different. Please send the actual script you are runningDoes this work:
#!/usr/bin/env python3 from depthai_sdk import OakCamera, TrackerPacket, Visualizer, TextPosition import depthai as dai from people_tracker import PeopleTracker import cv2 pt = PeopleTracker() with OakCamera(replay='people-tracking-above-03') as oak: color_cam = oak.create_camera('color') tracker = oak.create_nn('person-detection-retail-0013', color_cam, tracker=True) tracker.config_nn(conf_threshold=0.6) tracker.config_tracker(tracker_type=dai.TrackerType.ZERO_TERM_COLOR_HISTOGRAM, track_labels=[1]) def cb(packet: TrackerPacket, vis: Visualizer): left, right, up, down = pt.calculate_tracklet_movement(packet.daiTracklets) vis.add_text(f"Up: {up}, Down: {down}", position=TextPosition.TOP_LEFT, size=1) vis.draw(packet.frame) cv2.imshow('People Tracker', packet.frame) oak.visualize(tracker.out.tracker, callback=cb) oak.start(blocking=True)