Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/components/nodes/script.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ In the script node you can interface with GPIOs of the VPU using module GPIO. Cu

# Interrupts
GPIO.waitInterruptEvent(gpio = -1) # blocks until any interrupt or interrupt by specified gpio is fired. Interrupts with callbacks are ignored here
GPIO.hasInterruptEvent(gpio = -1) # returns whether interrupt happened on any or specfied gpio. Interrupts with callbacks are ignored here
GPIO.hasInterruptEvent(gpio = -1) # returns whether interrupt happened on any or specified gpio. Interrupts with callbacks are ignored here
GPIO.setInterrupt(gpio, edge, priority, callback = None) # adds interrupt to specified pin
GPIO.clearInterrupt(gpio) # clears interrupt of specified pin

Expand Down
4 changes: 2 additions & 2 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Kernel Virtual Machine
To access the OAK-D camera in the `Kernel Virtual Machine <https://www.linux-kvm.org/page/Main_Page>`__, there is a need to attach and detach USB
devices on the fly when the host machine detects changes in the USB bus.

OAK-D camera changes the USB device type when it is used by DepthAI API. This happens in backgound when the camera is used natively.
OAK-D camera changes the USB device type when it is used by DepthAI API. This happens in background when the camera is used natively.
But when the camera is used in a virtual environment the situation is different.

On your host machine, use the following code:
Expand Down Expand Up @@ -292,7 +292,7 @@ Note that when the device is disconnected from the USB bus, some udev environmen
that is why you need to use :code:`PRODUCT` environmental variable to identify which device has been disconnected.

The virtual machine where DepthAI API application is running should have defined a udev rules that identify the OAK-D camera.
The udev rule is decribed `here <https://docs.luxonis.com/en/latest/pages/faq/#does-depthai-work-on-the-nvidia-jetson-series>`__
The udev rule is described `here <https://docs.luxonis.com/en/latest/pages/faq/#does-depthai-work-on-the-nvidia-jetson-series>`__

Solution provided by `Manuel Segarra-Abad <https://github.com/maseabunikie>`__

Expand Down
2 changes: 1 addition & 1 deletion docs/source/samples/Script/script_json_communication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and when it's noon, it would send a simple message to the Script node which woul

**What it does:**

Host creates a dictionary, serializes it, sends it to the Script node. Script node recieves the Buffer message, deserializes the dictionary,
Host creates a dictionary, serializes it, sends it to the Script node. Script node receives the Buffer message, deserializes the dictionary,
changes values a bit, serializes the dictionary again and sends it to the host, which deserializes the changed dictionary and prints the new values.

Demo
Expand Down
2 changes: 1 addition & 1 deletion examples/ColorCamera/autoexposure_roi.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def displayFrame(name, frame):
cv2.imshow(name, frame)

while True:
# Instead of get (blocking), we use tryGet (nonblocking) which will return the available data or None otherwise
# Instead of get (blocking), we use tryGet (non-blocking) which will return the available data or None otherwise
inRgb = qRgb.tryGet()
inDet = qDet.tryGet()

Expand Down
2 changes: 1 addition & 1 deletion examples/MobileNet/mono_mobilenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def displayFrame(name, frame):
cv2.imshow(name, frame)

while True:
# Instead of get (blocking), we use tryGet (nonblocking) which will return the available data or None otherwise
# Instead of get (blocking), we use tryGet (non-blocking) which will return the available data or None otherwise
inRight = qRight.tryGet()
inDet = qDet.tryGet()

Expand Down
2 changes: 1 addition & 1 deletion examples/MobileNet/rgb_mobilenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def displayFrame(name, frame):
inRgb = qRgb.get()
inDet = qDet.get()
else:
# Instead of get (blocking), we use tryGet (nonblocking) which will return the available data or None otherwise
# Instead of get (blocking), we use tryGet (non-blocking) which will return the available data or None otherwise
inRgb = qRgb.tryGet()
inDet = qDet.tryGet()

Expand Down
2 changes: 1 addition & 1 deletion examples/MobileNet/rgb_mobilenet_4k.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def displayFrame(name, frame):
print("Resize video window with mouse drag!")

while True:
# Instead of get (blocking), we use tryGet (nonblocking) which will return the available data or None otherwise
# Instead of get (blocking), we use tryGet (non-blocking) which will return the available data or None otherwise
inVideo = qVideo.tryGet()
inPreview = qPreview.tryGet()
inDet = qDet.tryGet()
Expand Down
2 changes: 1 addition & 1 deletion examples/MonoCamera/mono_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
qRight = device.getOutputQueue(name="right", maxSize=4, blocking=False)

while True:
# Instead of get (blocking), we use tryGet (nonblocking) which will return the available data or None otherwise
# Instead of get (blocking), we use tryGet (non-blocking) which will return the available data or None otherwise
inLeft = qLeft.tryGet()
inRight = qRight.tryGet()

Expand Down
2 changes: 1 addition & 1 deletion examples/Script/script_json_communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
script.setScript("""
import json

# Recieve bytes from the host
# Receive bytes from the host
data = node.io['in'].get().getData()
jsonStr = str(data, 'utf-8')
dict = json.loads(jsonStr)
Expand Down
12 changes: 6 additions & 6 deletions examples/StereoDepth/stereo_depth_from_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,14 @@ def handleKeypress(key, stereoDepthConfigInQueue):
StereoConfigHandler.config.postProcessing.decimationFilter.decimationMode = nextDecimation
if key == ord('a'):
StereoConfigHandler.newConfig = True
aligmentSettings = [dai.StereoDepthConfig.AlgorithmControl.DepthAlign.RECTIFIED_RIGHT,
alignmentSettings = [dai.StereoDepthConfig.AlgorithmControl.DepthAlign.RECTIFIED_RIGHT,
dai.StereoDepthConfig.AlgorithmControl.DepthAlign.RECTIFIED_LEFT,
dai.StereoDepthConfig.AlgorithmControl.DepthAlign.CENTER,
]
currentAligment = StereoConfigHandler.config.algorithmControl.depthAlign
nextAligment = aligmentSettings[(aligmentSettings.index(currentAligment)+1) % len(aligmentSettings)]
print(f"Changing aligment mode to {nextAligment.name} from {currentAligment.name}")
StereoConfigHandler.config.algorithmControl.depthAlign = nextAligment
currentAlignment = StereoConfigHandler.config.algorithmControl.depthAlign
nextAlignment = alignmentSettings[(alignmentSettings.index(currentAlignment)+1) % len(alignmentSettings)]
print(f"Changing alignment mode to {nextAlignment.name} from {currentAlignment.name}")
StereoConfigHandler.config.algorithmControl.depthAlign = nextAlignment
elif key == ord('c'):
StereoConfigHandler.newConfig = True
censusSettings = [dai.StereoDepthConfig.CensusTransform.KernelSize.AUTO, dai.StereoDepthConfig.CensusTransform.KernelSize.KERNEL_5x5, dai.StereoDepthConfig.CensusTransform.KernelSize.KERNEL_7x7, dai.StereoDepthConfig.CensusTransform.KernelSize.KERNEL_7x9]
Expand Down Expand Up @@ -318,7 +318,7 @@ def __init__(self, config):
print("Control disparity search range using the 'd' key.")
print("Control disparity companding using the 'f' key.")
print("Control census transform mean mode using the 'v' key.")
print("Control depth aligment using the 'a' key.")
print("Control depth alignment using the 'a' key.")
print("Control decimation algorithm using the 'a' key.")
print("Control temporal persistency mode using the 'r' key.")
print("Control spatial filter using the 'w' key.")
Expand Down
2 changes: 1 addition & 1 deletion examples/mixed/mono_depth_mobilenetssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def show(name, frame):
disparityMultiplier = 255 / stereo.initialConfig.getMaxDisparity()

while True:
# Instead of get (blocking), we use tryGet (nonblocking) which will return the available data or None otherwise
# Instead of get (blocking), we use tryGet (non-blocking) which will return the available data or None otherwise
inRight = qRight.tryGet()
inDet = qDet.tryGet()
inDisparity = qDisparity.tryGet()
Expand Down