Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #355 from jakaskerl/master
Browse files Browse the repository at this point in the history
Updated docs for QT troubleshoot
  • Loading branch information
Erol444 authored Jan 23, 2024
2 parents 23c66d2 + 9c5a82c commit 76380fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/pages/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -846,13 +846,13 @@ How Do I Force USB2 Mode?

USB2 Communication may be desirable if you'd like to use extra-long USB cables and don't need USB3 speeds.

You can force USB2 mode by setting :code:`usb2Mode` to :code:`True` when creating the device (note - it works for gen2):
You can force USB2 mode by setting :code:`maxUsbSpeed` to :code:`dai.UsbSpeed.HIGH` when creating the device (note - it works for gen2):

.. code-block:: python
dai.Device(pipeline, usb2Mode=True)
dai.Device(pipeline, maxUsbSpeed=dai.UsbSpeed.HIGH)
The other way is using the :code:`-usbs usb2` (or :code:`--usbSpeed usb2`) command line option as below:
The other way is using the :code:`-usbs usb2` (or :code:`--usbSpeed usb2`) command line option as below (this option only works with depthai_demo.py script):

.. code-block:: bash
Expand Down
21 changes: 21 additions & 0 deletions source/pages/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,27 @@ CTRL-C Is Not Stopping It!

If you are trying to kill a program with :code:`CTLR-C`, and it's not working, try :code:`CTRL-\ ` instead. Usually this will work.

Nothing happening when running a DepthAI script
###############################################

If upon running a DepthAI script, nothing happens (the script just hangs) and you cannot :code:`CTRL-C` out of it.
Try running :code:`cam_test.py` script from the :code:`depthai-python/utilities` folder. The script should error out with something like:

.. code-block:: bash
QObject::moveToThread: Current thread (0x55b9d0a00320) is not the object's thread (0x55b9d0cad7e0).
Cannot move to target thread (0x55b9d0a00320)
.
.
.
Aborted (Signal sent by tkill() 32104 1001)
Aborted (core dumped)
This means there is a problem with PyQt5 installation. Follow this `issue <https://github.com/wkentaro/labelme/issues/842>`__ for a resolution.
"DLL load failed while importing cv2" on Windows
################################################
Expand Down

0 comments on commit 76380fd

Please sign in to comment.