This just removed everything that I have been working on for the past couple months

@jakaskerl @filipjeretina

I need to talk to someone ASAP, right now, I have to give a field demonstration tomorrow and I need certain codes to be fixed immediately. Please give me a contact, phone number, or personal email so I can fix these issues and be able to at least give a field demonstration tomorrow.

I clicked the link that you sent me, and my files were in the Depthai folder with the other information, when I did this it deleted everything from that folder

it is all gone

None of the files I had in that folder are present anymore

everything from that folder has been removed

I need that folder ASAP

@filipjeretina and @jakaskerl

The below code is for a person tracking model that was developed and put out in the depthai experiments code, I had this functioning and was going to be used for not only a field demonstration, but also for research. Now when I try to run this code, It does not function as it did before. There is a 12 second delay in the video feed and then it crashes after I move infront of the camera.

I am using a windows computer and I believe a USB2, can you adjust the code so it functions on my computer?

#!/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)

    If you had these files open in a code editor, they might still be cached somewhere, but not sure where, in the stackoverflow question I posted there are instructions for some editors, including vscode

    @filipjeretina

    (venv) C:\Users\sale4088\AppData\Local\Programs\DepthAI\venv\Scripts>git reset --hard

    fatal: not a git repository (or any of the parent directories): .git

    @filipjeretina

    I do not know what I am doing.

    I had these functional and it took a lot of people to help me make this possible

    Now everything is lost because of the codes that you sent me.

    I NEED YOUR HELP TO FIX THIS

    If the code above is fixed than I am able to make it through my field demo and research

    PLEASE HELP ME MAKE THIS CODE FUNCTION

    @filipjeretina

    My field demo is tomorrow,

    I just need the code to stop crashing and to reduce the lag time between the display and the camera

    If that is done than it should be enough for the time to get me through what I need to get through

    @filipjeretina

    (venv) C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker>python3 main.p

    Traceback (most recent call last):

    File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker\main.py", line 10, in <module>

    with dai.OakCamera(pipeline, maxUsbSpeed=dai.UsbSpeed.HIGH) as oak:

    AttributeError: module 'depthai' has no attribute 'OakCamera'

    (venv) C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-trackerpython3 main.py

    C:\Users\sale4088\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\depthai_sdk\oak_camera.py:219: UsbWarning: Device connected in USB2 mode! This might cause some issues. In such case, please try using a (different) USB3 cable, or force USB2 mode 'with OakCamera(usbSpeed=depthai.UsbSpeed.HIGH)'

    warnings.warn("Device connected in USB2 mode! This might cause some issues. "

    Closing OAK camera

    [18443010F141790E00] [1.7] [1723829068.552] [host] [warning] Device crashed, but no crash dump could be extracted.