Initial commit
This commit is contained in:
12
example/main.py
Normal file
12
example/main.py
Normal 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
12
example/setup.py
Normal 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']
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user