- Edited
The DepthAI SDK makes it significantly faster and easier to develop applications for OAK cameras. In many cases, complex tasks that would otherwise take hundreds of lines of code can be done in a fraction of the time and space.
Take a look at the following people tracking and counting application, which was created from only 8 lines of code:
from depthai_sdk import OakCamera, BboxStyle
with OakCamera(replay='people-tracking-above-04') as oak:
camera = oak.create_camera('color', fps=30)
nn = oak.create_nn('person-detection-retail-0013', camera, tracker=True)
nn.config_nn(conf_threshold=0.2)
visualizer = oak.visualize(nn)
visualizer.detections(bbox_style=BboxStyle.CORNERS, color=(232, 36, 87), hide_label=True)
oak.start(blocking=True)
Feel free to head over to DepthAI SDK documentation page to get started.