FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge remote-tracking branch 'origin/main' into HEAD · moratom/depthai-python@84be781 · GitHub

Repository navigation

Commit 84be781

Browse files
SzabolcsGergely
committed
Merge remote-tracking branch 'origin/main' into HEAD
2 parents 180310d + 7563093 commit 84be781

45 files changed

Lines changed: 81 additions & 57 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎depthai-core‎

Submodule depthai-core updated 67 files
-1.67 KB
LoadingViewer requires iframe.

‎docs/source/components/device.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ When you create the device in the code, firmware is uploaded together with the p
2626
print('USB speed:',device.getUsbSpeed())
2727
print('Connected cameras:',device.getConnectedCameras())
2828
29-
# Input queue, to send message from the host to the device (you can recieve the message on the device with XLinkIn)
29+
# Input queue, to send message from the host to the device (you can receive the message on the device with XLinkIn)
3030
input_q = device.getInputQueue("input_name", maxSize=4, blocking=False)
3131
32-
# Output queue, to recieve message on the host from the device (you can send the message on the device with XLinkOut)
32+
# Output queue, to receive message on the host from the device (you can send the message on the device with XLinkOut)
3333
output_q = device.getOutputQueue("output_name", maxSize=4, blocking=False)
3434
3535
while True:
@@ -91,7 +91,7 @@ the host to process every frame, thus providing only the latest data (:code:`blo
9191
However, if there are a lot of dropped/overwritten frames, because the host isn't able to process them fast enough
9292
(eg. one-threaded environment which does some heavy computing), the :code:`maxSize` could be set to a higher
9393
number, which would increase the queue size and reduce the number of dropped frames.
94-
Specifically, at 30 FPS, a new frame is recieved every ~33ms, so if your host is able to process a frame in that time, the :code:`maxSize`
94+
Specifically, at 30 FPS, a new frame is received every ~33ms, so if your host is able to process a frame in that time, the :code:`maxSize`
9595
could be set to :code:`1`, otherwise to :code:`2` for processing times up to 66ms and so on.
9696

9797
If, however, there is a need to have some intervals of wait between retrieving messages, one could specify that differently.

‎docs/source/components/messages/nn_data.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
NNData
22
======
33

4-
This message carries tensors and its data. You can recieve this message from the :ref:`NeuralNetwork` node or you could create this message
4+
This message carries tensors and its data. You can receive this message from the :ref:`NeuralNetwork` node or you could create this message
55
on the host, populate the tensor with the data and send the message to the :code:`input` of the :ref:`NeuralNetwork` node.
66

77
Reference

‎docs/source/components/nodes/neural_network.rst‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
NeuralNetwork
22
=============
33

4-
Runs a neural inference on input data. Neural network has to be a :code:`.blob` type. Instructions on how to compile your neural network (NN) to :code:`.blob`
5-
can be found `here <https://docs.luxonis.com/en/latest/pages/model_conversion/>`__.
4+
This node runs neural inference on input data. Any OpenVINO neural networks can be run using this node, as long as the VPU `supports all layers <https://docs.luxonis.com/en/latest/pages/model_conversion/#unsupported-layer-type-layer-type>`__.
5+
This allows you to pick from **200+ pre-trained model** from `Open Model Zoo <https://github.com/openvinotoolkit/open_model_zoo>`__ and `DepthAI Model Zoo <https://github.com/luxonis/depthai-model-zoo>`__
6+
and directly run it on the OAK device.
7+
8+
Neural network has to be in :code:`.blob` format to be compatible with the VPU. Instructions on how to compile
9+
your neural network (NN) to :code:`.blob` can be found `here <https://docs.luxonis.com/en/latest/pages/model_conversion/>`__.
610

711

812
How to place it

‎docs/source/components/nodes/object_tracker.rst‎

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,28 @@ Zero term tracking performs object association, which means that it does not con
5353
Object association would mean that detected objects from an external detector are mapped with tracked objects which has been detected and is being tracked from
5454
previous frames.
5555

56-
Supported object tracker types:
56+
Short term tracking
57+
###################
5758

59+
Short-term tracking allows to track objects between frames, thereby reducing the need to run object detection on each frame. This works great with NN
60+
models that can't achieve 30FPS (eg. `YoloV5 <https://github.com/luxonis/depthai-experiments/tree/master/gen2-yolov5>`__); tracker can
61+
provide tracklets when there was no inference, so the whole system can run at 30FPS.
62+
63+
Supported object tracker types
64+
##############################
65+
66+
- :code:`SHORT_TERM_KCF`: Kernelized Correlation Filter tracking. KCF utilizes properties of circulant matrix to enhance the processing speed. Paper `here <https://www.robots.ox.ac.uk/~joao/publications/henriques_tpami2015.pdf>`__.
67+
- :code:`SHORT_TERM_IMAGELESS`: Short-term tracking allows to track objects on frames where object detection was skipped, by extrapolating object trajectory from previous detections.
5868
- :code:`ZERO_TERM_COLOR_HISTOGRAM`: Utilizes position, shape and input image information such as RGB histogram to perform object tracking.
5969
- :code:`ZERO_TERM_IMAGELESS`: Only utilizes rectangular shape of detected object and position information for object tracking. It does not use color information of tracking objects. It achieves higher throughput than ZERO_TERM_COLOR_HISTOGRAM. User needs to consider the trade-off between throughput and accuracy when choosing the object tracker type.
6070

71+
A similar comparison of object trackers with more information can be found `here <https://github.com/openvinotoolkit/dlstreamer_gst/wiki/Object-tracking#object-tracking-types>`__.
72+
73+
Maximum number of tracked objects
74+
#################################
75+
76+
:code:`SHORT_TERM_KCF` can track up to 60 objects at once, while all other trackers can (theoretically) track up to 1000 objects at once.
77+
6178
Usage
6279
#####
6380

@@ -69,7 +86,7 @@ Usage
6986
objectTracker = pipeline.create(dai.node.ObjectTracker)
7087

7188
objectTracker.setDetectionLabelsToTrack([15]) # Track only person
72-
# Possible tracking types: ZERO_TERM_COLOR_HISTOGRAM, ZERO_TERM_IMAGELESS
89+
# Possible tracking types: ZERO_TERM_COLOR_HISTOGRAM, ZERO_TERM_IMAGELESS, SHORT_TERM_IMAGELESS, SHORT_TERM_KCF
7390
objectTracker.setTrackerType(dai.TrackerType.ZERO_TERM_COLOR_HISTOGRAM)
7491
# Take the smallest ID when new object is tracked, possible options: SMALLEST_ID, UNIQUE_ID
7592
objectTracker.setTrackerIdAssigmentPolicy(dai.TrackerIdAssigmentPolicy.SMALLEST_ID)
@@ -83,7 +100,7 @@ Usage
83100
auto objectTracker = pipeline.create<dai::node::ObjectTracker>();
84101

85102
objectTracker->setDetectionLabelsToTrack({15}); // Track only person
86-
// Possible tracking types: ZERO_TERM_COLOR_HISTOGRAM, ZERO_TERM_IMAGELESS
103+
// Possible tracking types: ZERO_TERM_COLOR_HISTOGRAM, ZERO_TERM_IMAGELESS, SHORT_TERM_IMAGELESS, SHORT_TERM_KCF
87104
objectTracker->setTrackerType(dai::TrackerType::ZERO_TERM_COLOR_HISTOGRAM);
88105
// Take the smallest ID when new object is tracked, possible options: SMALLEST_ID, UNIQUE_ID
89106
objectTracker->setTrackerIdAssigmentPolicy(dai::TrackerIdAssigmentPolicy::SMALLEST_ID);

‎docs/source/samples/ColorCamera/rgb_camera_control.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An output is a displayed RGB cropped frame, that can be manipulated using the fo
1616
#. `k` and `l` will decrease/increase the sensitivity iso
1717
#. `,` and `.` will decrease/increase the focus range
1818

19-
.. rubric:: Similiar samples:
19+
.. rubric:: Similar samples:
2020

2121
- :ref:`Mono Camera Control`
2222
- :ref:`Depth Crop Control`

‎docs/source/samples/ColorCamera/rgb_preview.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Please check out :ref:`ColorCamera` node to get a better view.
1111

1212
If you want to get higher resolution RGB frames sample please visit :ref:`RGB video`.
1313

14-
.. rubric:: Similiar samples:
14+
.. rubric:: Similar samples:
1515

1616
- :ref:`RGB Video` (higher resolution)
1717
- :ref:`Mono Preview`

‎docs/source/samples/ColorCamera/rgb_video.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RGB video
44
This example shows how to use high resolution video at low latency. Compared to :ref:`RGB Preview`, this demo outputs NV12 frames whereas
55
preview frames are BGR and are not suited for larger resoulution (eg. 1920x1080). Preview is more suitable for either NN or visualization purposes.
66

7-
.. rubric:: Similiar samples:
7+
.. rubric:: Similar samples:
88

99
- :ref:`RGB Preview` (lower resolution)
1010

‎docs/source/samples/MobileNet/mono_mobilenet.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Mono & MobilenetSSD
44
This example shows how to run MobileNetv2SSD on the right grayscale camera and how to display the
55
neural network results on a preview of the right camera stream.
66

7-
.. rubric:: Similiar samples:
7+
.. rubric:: Similar samples:
88

99
- :ref:`RGB & MobilenetSSD`
1010
- :ref:`RGB & MobileNetSSD @ 4K`

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL