diff --git a/docs/source/components/nodes/script.rst b/docs/source/components/nodes/script.rst index 1fe66a18a..61df4b082 100644 --- a/docs/source/components/nodes/script.rst +++ b/docs/source/components/nodes/script.rst @@ -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 diff --git a/docs/source/install.rst b/docs/source/install.rst index 17b718f0a..fa46a4a18 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -241,7 +241,7 @@ Kernel Virtual Machine To access the OAK-D camera in the `Kernel Virtual Machine `__, 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: @@ -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 `__ +The udev rule is described `here `__ Solution provided by `Manuel Segarra-Abad `__ diff --git a/docs/source/samples/Script/script_json_communication.rst b/docs/source/samples/Script/script_json_communication.rst index a880012da..f068aff40 100644 --- a/docs/source/samples/Script/script_json_communication.rst +++ b/docs/source/samples/Script/script_json_communication.rst @@ -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 diff --git a/examples/ColorCamera/autoexposure_roi.py b/examples/ColorCamera/autoexposure_roi.py index df8d6805e..013ce2698 100755 --- a/examples/ColorCamera/autoexposure_roi.py +++ b/examples/ColorCamera/autoexposure_roi.py @@ -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() diff --git a/examples/MobileNet/mono_mobilenet.py b/examples/MobileNet/mono_mobilenet.py index c54d2bccf..635dfc6af 100755 --- a/examples/MobileNet/mono_mobilenet.py +++ b/examples/MobileNet/mono_mobilenet.py @@ -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() diff --git a/examples/MobileNet/rgb_mobilenet.py b/examples/MobileNet/rgb_mobilenet.py index 47ab99fa0..e595cde17 100755 --- a/examples/MobileNet/rgb_mobilenet.py +++ b/examples/MobileNet/rgb_mobilenet.py @@ -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() diff --git a/examples/MobileNet/rgb_mobilenet_4k.py b/examples/MobileNet/rgb_mobilenet_4k.py index 42c89f408..5742814f2 100755 --- a/examples/MobileNet/rgb_mobilenet_4k.py +++ b/examples/MobileNet/rgb_mobilenet_4k.py @@ -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() diff --git a/examples/MonoCamera/mono_preview.py b/examples/MonoCamera/mono_preview.py index f69c79300..204164609 100755 --- a/examples/MonoCamera/mono_preview.py +++ b/examples/MonoCamera/mono_preview.py @@ -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() diff --git a/examples/Script/script_json_communication.py b/examples/Script/script_json_communication.py index 61711378f..e1fc915b6 100755 --- a/examples/Script/script_json_communication.py +++ b/examples/Script/script_json_communication.py @@ -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) diff --git a/examples/StereoDepth/stereo_depth_from_host.py b/examples/StereoDepth/stereo_depth_from_host.py index 84ac65e19..4d65aafa9 100755 --- a/examples/StereoDepth/stereo_depth_from_host.py +++ b/examples/StereoDepth/stereo_depth_from_host.py @@ -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] @@ -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.") diff --git a/examples/mixed/mono_depth_mobilenetssd.py b/examples/mixed/mono_depth_mobilenetssd.py index 7b4a1384e..1c678fa01 100755 --- a/examples/mixed/mono_depth_mobilenetssd.py +++ b/examples/mixed/mono_depth_mobilenetssd.py @@ -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()