Skip to content

Commit 9dac225

Browse files
Merge pull request #485 from luxonis/typos_fix
Fixed some typos
2 parents daa43e3 + 31a1685 commit 9dac225

File tree

11 files changed

+17
-17
lines changed

11 files changed

+17
-17
lines changed

docs/source/components/nodes/script.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ In the script node you can interface with GPIOs of the VPU using module GPIO. Cu
106106
107107
# Interrupts
108108
GPIO.waitInterruptEvent(gpio = -1) # blocks until any interrupt or interrupt by specified gpio is fired. Interrupts with callbacks are ignored here
109-
GPIO.hasInterruptEvent(gpio = -1) # returns whether interrupt happened on any or specfied gpio. Interrupts with callbacks are ignored here
109+
GPIO.hasInterruptEvent(gpio = -1) # returns whether interrupt happened on any or specified gpio. Interrupts with callbacks are ignored here
110110
GPIO.setInterrupt(gpio, edge, priority, callback = None) # adds interrupt to specified pin
111111
GPIO.clearInterrupt(gpio) # clears interrupt of specified pin
112112

docs/source/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Kernel Virtual Machine
241241
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
242242
devices on the fly when the host machine detects changes in the USB bus.
243243

244-
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.
244+
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.
245245
But when the camera is used in a virtual environment the situation is different.
246246

247247
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
292292
that is why you need to use :code:`PRODUCT` environmental variable to identify which device has been disconnected.
293293

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

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

docs/source/samples/Script/script_json_communication.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and when it's noon, it would send a simple message to the Script node which woul
1515

1616
**What it does:**
1717

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

2121
Demo

examples/ColorCamera/autoexposure_roi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def displayFrame(name, frame):
130130
cv2.imshow(name, frame)
131131

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

examples/MobileNet/mono_mobilenet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def displayFrame(name, frame):
7979
cv2.imshow(name, frame)
8080

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

examples/MobileNet/rgb_mobilenet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def displayFrame(name, frame):
8787
inRgb = qRgb.get()
8888
inDet = qDet.get()
8989
else:
90-
# Instead of get (blocking), we use tryGet (nonblocking) which will return the available data or None otherwise
90+
# Instead of get (blocking), we use tryGet (non-blocking) which will return the available data or None otherwise
9191
inRgb = qRgb.tryGet()
9292
inDet = qDet.tryGet()
9393

examples/MobileNet/rgb_mobilenet_4k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def displayFrame(name, frame):
8484
print("Resize video window with mouse drag!")
8585

8686
while True:
87-
# Instead of get (blocking), we use tryGet (nonblocking) which will return the available data or None otherwise
87+
# Instead of get (blocking), we use tryGet (non-blocking) which will return the available data or None otherwise
8888
inVideo = qVideo.tryGet()
8989
inPreview = qPreview.tryGet()
9090
inDet = qDet.tryGet()

examples/MonoCamera/mono_preview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
qRight = device.getOutputQueue(name="right", maxSize=4, blocking=False)
3434

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

examples/Script/script_json_communication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
script.setScript("""
1313
import json
1414
15-
# Recieve bytes from the host
15+
# Receive bytes from the host
1616
data = node.io['in'].get().getData()
1717
jsonStr = str(data, 'utf-8')
1818
dict = json.loads(jsonStr)

examples/StereoDepth/stereo_depth_from_host.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,14 @@ def handleKeypress(key, stereoDepthConfigInQueue):
230230
StereoConfigHandler.config.postProcessing.decimationFilter.decimationMode = nextDecimation
231231
if key == ord('a'):
232232
StereoConfigHandler.newConfig = True
233-
aligmentSettings = [dai.StereoDepthConfig.AlgorithmControl.DepthAlign.RECTIFIED_RIGHT,
233+
alignmentSettings = [dai.StereoDepthConfig.AlgorithmControl.DepthAlign.RECTIFIED_RIGHT,
234234
dai.StereoDepthConfig.AlgorithmControl.DepthAlign.RECTIFIED_LEFT,
235235
dai.StereoDepthConfig.AlgorithmControl.DepthAlign.CENTER,
236236
]
237-
currentAligment = StereoConfigHandler.config.algorithmControl.depthAlign
238-
nextAligment = aligmentSettings[(aligmentSettings.index(currentAligment)+1) % len(aligmentSettings)]
239-
print(f"Changing aligment mode to {nextAligment.name} from {currentAligment.name}")
240-
StereoConfigHandler.config.algorithmControl.depthAlign = nextAligment
237+
currentAlignment = StereoConfigHandler.config.algorithmControl.depthAlign
238+
nextAlignment = alignmentSettings[(alignmentSettings.index(currentAlignment)+1) % len(alignmentSettings)]
239+
print(f"Changing alignment mode to {nextAlignment.name} from {currentAlignment.name}")
240+
StereoConfigHandler.config.algorithmControl.depthAlign = nextAlignment
241241
elif key == ord('c'):
242242
StereoConfigHandler.newConfig = True
243243
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):
318318
print("Control disparity search range using the 'd' key.")
319319
print("Control disparity companding using the 'f' key.")
320320
print("Control census transform mean mode using the 'v' key.")
321-
print("Control depth aligment using the 'a' key.")
321+
print("Control depth alignment using the 'a' key.")
322322
print("Control decimation algorithm using the 'a' key.")
323323
print("Control temporal persistency mode using the 'r' key.")
324324
print("Control spatial filter using the 'w' key.")

0 commit comments

Comments
 (0)