-
Notifications
You must be signed in to change notification settings - Fork 202
Adding code examples in docs #917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Erol444
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, do we have UVC node docs page already?
examples/UVC/uvc_disparity.py
Outdated
| parser = argparse.ArgumentParser() | ||
| parser.add_argument('-fb', '--flash-bootloader', default=False, action="store_true") | ||
| parser.add_argument('-f', '--flash-app', default=False, action="store_true") | ||
| parser.add_argument('-l', '--load-and-exit', default=False, action="store_true") | ||
| args = parser.parse_args() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe remove this flashing capability for disparity/mono - it only makes sense for uvc_rgb, more as a showcase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uvc node is not yet added since not all tests were run yet. The .rsts should have references to it though.
docs/source/samples/UVC/uvc_rgb.rst
Outdated
| ================== | ||
|
|
||
| This example demonstrates how to use the RGB camera on your OAK device as a UVC webcam. The UVC feature allows you to use your OAK device as a regular webcam in applications like OpenCV's :code:`cv2.VideoCapture()`, native camera apps, and more. | ||
| This example demonstrates how to use the RGB camera on your OAK device as a UVC webcam. The :ref:`UVC` feature allows you to use your OAK device as a regular webcam in applications like OpenCV's :code:`cv2.VideoCapture()`, native camera apps, and more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs failing to build because:
/home/docs/checkouts/readthedocs.org/user_builds/luxonis-depthai-python/checkouts/917/docs/source/samples/UVC/uvc_disparity.rst:8: WARNING: undefined label: uvc
/home/docs/checkouts/readthedocs.org/user_builds/luxonis-depthai-python/checkouts/917/docs/source/samples/UVC/uvc_mono.rst:8: WARNING: undefined label: uvc
/home/docs/checkouts/readthedocs.org/user_builds/luxonis-depthai-python/checkouts/917/docs/source/samples/UVC/uvc_rgb.rst:4: WARNING: undefined label: uvc
/home/docs/checkouts/readthedocs.org/user_builds/luxonis-depthai-python/checkouts/917/docs/source/tutorials/code_samples.rst:76: WARNING: undefined label: feature motion estimation
Co-authored-by: Erol444 <erol123444@gmail.com>
Erol444
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs building fails:
/home/docs/checkouts/readthedocs.org/user_builds/luxonis-depthai-python/checkouts/917/docs/source/components/device.rst:69: WARNING: Explicit markup ends without a blank line; unexpected unindent.
/home/docs/checkouts/readthedocs.org/user_builds/luxonis-depthai-python/checkouts/917/docs/source/components/device.rst:231: WARNING: Title level inconsistent:
Blocking behaviour
******************
/home/docs/checkouts/readthedocs.org/user_builds/luxonis-depthai-python/checkouts/917/docs/source/components/device.rst:244: WARNING: Title level inconsistent:
Non-Blocking behaviour
**********************
/home/docs/checkouts/readthedocs.org/user_builds/luxonis-depthai-python/checkouts/917/docs/source/components/device.rst:253: WARNING: Title level inconsistent:
Some additional information
***************************
/home/docs/checkouts/readthedocs.org/user_builds/luxonis-depthai-python/checkouts/917/docs/source/tutorials/debugging.rst:4: WARNING: undefined label: blocking behaviour
I think you'd just need to update the title consistency @jakaskerl
Added:
Changed: