Initial commit

This commit is contained in:
2022-11-29 14:54:11 -05:00
commit 2e2bc89d55
12 changed files with 824 additions and 0 deletions

12
example/main.py Normal file
View File

@@ -0,0 +1,12 @@
from depthai_sdk import OakCamera
def run():
with OakCamera(replay='https://www.youtube.com/watch?v=Y1jTEyb3wiI') as oak:
color = oak.create_camera('color')
nn = oak.create_nn('vehicle-detection-0202', color)
oak.visualize([nn.out.passthrough], fps=True)
oak.visualize(nn, scale=2 / 3, fps=True)
oak.start(blocking=True)
if __name__ == "__main__":
run()

12
example/setup.py Normal file
View File

@@ -0,0 +1,12 @@
from setuptools import setup
requires = ["depthai_sdk"]
setup(
name='depthai-example',
version='0.1',
py_modules=[
'main'
],
entry_points={
'console_scripts': ['depthai-example = main:run']
},
)