# OpenCV for Robotics

**URL:** https://get-help.theconstruct.ai/c/course-support/opencvforrobotics/48.md

[Latest](https://get-help.theconstruct.ai/latest.md) · [Categories](https://get-help.theconstruct.ai/categories.md) · [Tags](https://get-help.theconstruct.ai/tags.md)

---

## [About the OpenCV for Robotics category](https://get-help.theconstruct.ai/t/about-the-opencv-for-robotics-category/4509)

<div class="topic-metadata">

**Author:** [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Replies:** 0\
**Last updated:** [July 20, 2020, 2:24pm UTC](https://get-help.theconstruct.ai/t/about-the-opencv-for-robotics-category/4509 "2020-07-20T14:24:33Z")

</div>

This category is for questions and discussions related to the OpenCV for Robotics course. Before posting a new question, please use the search button to see if a similar topic already exists.

---

## [Clarification request on Exercise 4.2 “prove()” function (choosing N matches)](https://get-help.theconstruct.ai/t/clarification-request-on-exercise-4-2-prove-function-choosing-n-matches/39420)

<div class="topic-metadata">

**Author:** [@metaphorce](https://get-help.theconstruct.ai/u/metaphorce)\
**Replies:** 1\
**Last updated:** [December 29, 2025, 11:25am UTC](https://get-help.theconstruct.ai/t/clarification-request-on-exercise-4-2-prove-function-choosing-n-matches/39420 "2025-12-29T11:25:57Z")

</div>

Hi, I’m working on Exercise 4.2 and I’m a bit confused by the provided solution, specifically the prove() function that is supposed to help choose the value of N in: good\_matches = matches\[:N\] From what I understand, p…

---

## [Wrong statement](https://get-help.theconstruct.ai/t/wrong-statement/39338)

<div class="topic-metadata">

**Author:** [@metaphorce](https://get-help.theconstruct.ai/u/metaphorce)\
**Replies:** 3\
**Last updated:** [December 29, 2025, 10:14am UTC](https://get-help.theconstruct.ai/t/wrong-statement/39338 "2025-12-29T10:14:28Z")

</div>

Hello everyone, In the OpenCV for Robotics tutorial, in the section where HOG is explained, I came across the following statement: “The distance to 40 and 60 is 5 and 15, respectively; therefore, the ratios will be 5/…

---

## [Example3.2 - Wrong source code in the tutorial of OpenCv in ROS](https://get-help.theconstruct.ai/t/example3-2-wrong-source-code-in-the-tutorial-of-opencv-in-ros/39327)

<div class="topic-metadata">

**Author:** [@metaphorce](https://get-help.theconstruct.ai/u/metaphorce)\
**Replies:** 3\
**Last updated:** [December 19, 2025, 9:22am UTC](https://get-help.theconstruct.ai/t/example3-2-wrong-source-code-in-the-tutorial-of-opencv-in-ros/39327 "2025-12-19T09:22:36Z")

</div>

Hello, In the example 3.2, the file called example\_video.py, there are several issues: 1. rospy.onespine() is not an official ros command (I searched for it and I couldn’t find any). the code shows me the video for less…

---

## [Direction of sobel operator may be wrong](https://get-help.theconstruct.ai/t/direction-of-sobel-operator-may-be-wrong/20640)

<div class="topic-metadata">

**Author:** [@MeineLiebeAxt](https://get-help.theconstruct.ai/u/MeineLiebeAxt)\
**Replies:** 6\
**Last updated:** [December 7, 2025, 4:59am UTC](https://get-help.theconstruct.ai/t/direction-of-sobel-operator-may-be-wrong/20640 "2025-12-07T04:59:42Z")

</div>

Hi, I am doing sobel exercise in unit2 of course “OpenCV for Robotics”. In course book the sobel operators are set like: #Apply the horizontal sobel operator with a kernel size of 3 sobelx = cv2.Sobel(img,cv2.CV\_64F,1,…

---

## [\[Bug\] Instructions unclear](https://get-help.theconstruct.ai/t/bug-instructions-unclear/32832)

<div class="topic-metadata">

**Author:** [@rasbot00\_2427](https://get-help.theconstruct.ai/u/rasbot00_2427)\
**Replies:** 1\
**Last updated:** [October 7, 2024, 8:12am UTC](https://get-help.theconstruct.ai/t/bug-instructions-unclear/32832 "2024-10-07T08:12:11Z")

</div>

This is an error report. Screenshot of the error Error details Should be .jpg not .png

---

## [Language support](https://get-help.theconstruct.ai/t/language-support/31113)

<div class="topic-metadata">

**Author:** [@hyerin](https://get-help.theconstruct.ai/u/hyerin)\
**Replies:** 4\
**Last updated:** [July 4, 2024, 10:24am UTC](https://get-help.theconstruct.ai/t/language-support/31113 "2024-07-04T10:24:06Z")

</div>

I am a Korean subscriber to this site to study ROS2. Thank you so much for providing quality materials! I’m wondering if all the courses have been updated in Korean. Chrome translation doesn’t work, so I wanted to ask! C…

---

## [Run Simulations Locally + Github Push](https://get-help.theconstruct.ai/t/run-simulations-locally-github-push/30532)

<div class="topic-metadata">

**Author:** [@mobina.jamali](https://get-help.theconstruct.ai/u/mobina.jamali)\
**Replies:** 1\
**Last updated:** [May 17, 2024, 12:52pm UTC](https://get-help.theconstruct.ai/t/run-simulations-locally-github-push/30532 "2024-05-17T12:52:18Z")

</div>

Thanks for the great course! For the final project, I’d like to run it locally on my system. I cloned ROSbot robot from their website, but I can’t find the pedestrian road simulation environment anywhere. Any idea how I …

---

## [Hog PeopleDetector() does not detect people](https://get-help.theconstruct.ai/t/hog-peopledetector-does-not-detect-people/25043)

<div class="topic-metadata">

**Author:** [@Dkae](https://get-help.theconstruct.ai/u/Dkae)\
**Replies:** 3\
**Last updated:** [June 30, 2023, 9:38am UTC](https://get-help.theconstruct.ai/t/hog-peopledetector-does-not-detect-people/25043 "2023-06-30T09:38:51Z")

</div>

Hi Community I am currently doing the OpenCV Course and I am testing something with the HogDescriptor PeopleDetector(). I did the exercise 3.5 and with the example image it works fine. Now I am testing the same with s…

---

## [Example 3.2 not running](https://get-help.theconstruct.ai/t/example-3-2-not-running/12079)

<div class="topic-metadata">

**Author:** [@nivostroff](https://get-help.theconstruct.ai/u/nivostroff)\
**Replies:** 2\
**Last updated:** [June 2, 2023, 8:09pm UTC](https://get-help.theconstruct.ai/t/example-3-2-not-running/12079 "2023-06-02T20:09:44Z")

</div>

Hello, I am trying to run example 3.2 and get the following error: Traceback (most recent call last): File “/home/user/catkin\_ws/src/unit3\_excercises/src/example\_video.py”, line 84, in load\_video\_object.video\_detect…

---

## [Pylance import issues](https://get-help.theconstruct.ai/t/pylance-import-issues/24392)

<div class="topic-metadata">

**Author:** [@sdanie20](https://get-help.theconstruct.ai/u/sdanie20)\
**Replies:** 3\
**Last updated:** [May 29, 2023, 8:30am UTC](https://get-help.theconstruct.ai/t/pylance-import-issues/24392 "2023-05-29T08:30:03Z")

</div>

Not a showstopper issue, but the editor keeps saying it couldn’t resolve some imports. It’s cv2 and numpy for me as of now. I tried adding the default interpreter path (/usr/bin/python) to the settings of the editor and …

---

## [Different output compared to examples with "OpenCV Basics for Robotic"](https://get-help.theconstruct.ai/t/different-output-compared-to-examples-with-opencv-basics-for-robotic/20796)

<div class="topic-metadata">

**Author:** [@MeineLiebeAxt](https://get-help.theconstruct.ai/u/MeineLiebeAxt)\
**Replies:** 1\
**Last updated:** [May 15, 2023, 1:37pm UTC](https://get-help.theconstruct.ai/t/different-output-compared-to-examples-with-opencv-basics-for-robotic/20796 "2023-05-15T13:37:50Z")

</div>

Hi, I am learning unit5 of “OpenCV Basics for Robotics”. There is a case to extract the polygon with corners which are centers of markers, out of the original image. I followed the step as what the case on course book s…

---

## [Expected Behavior for Exercise 2.2](https://get-help.theconstruct.ai/t/expected-behavior-for-exercise-2-2/13193)

<div class="topic-metadata">

**Author:** [@sara.aldhaheri](https://get-help.theconstruct.ai/u/sara.aldhaheri)\
**Replies:** 6\
**Last updated:** [April 4, 2023, 3:28pm UTC](https://get-help.theconstruct.ai/t/expected-behavior-for-exercise-2-2/13193 "2023-04-04T15:28:27Z")

</div>

According to the text, “you will see two important things. The first is a spectacular open-source pictura from NASA in the graphical tools, and the second is that in the direction you launch this file, you will have a ne…

---

## [OpenCV Exercise 2-5: Drone is stopped. How to move it?](https://get-help.theconstruct.ai/t/opencv-exercise-2-5-drone-is-stopped-how-to-move-it/22680)

<div class="topic-metadata">

**Author:** [@iisaac.saito](https://get-help.theconstruct.ai/u/iisaac.saito)\
**Replies:** 2\
**Last updated:** [February 25, 2023, 11:53am UTC](https://get-help.theconstruct.ai/t/opencv-exercise-2-5-drone-is-stopped-how-to-move-it/22680 "2023-02-25T11:53:10Z")

</div>

Looking at the solution of it, looks like exercise 2-5 wants the Drone to move around, but on the 3D sim it is stopped, and a camera image from the drone is looking to always the same direction. How can I move the drone…

---

## [\[Bug\] People Detection Launch File Fails](https://get-help.theconstruct.ai/t/bug-people-detection-launch-file-fails/21879)

<div class="topic-metadata">

**Author:** [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Replies:** 1\
**Last updated:** [January 25, 2023, 12:17pm UTC](https://get-help.theconstruct.ai/t/bug-people-detection-launch-file-fails/21879 "2023-01-25T12:17:39Z")

</div>

Screenshot of the error Error details When I launch people.launch, it runs for some seconds but no detection happens at all. Then it fails with the error in the screenshot

---

## [No solution in dokumentation](https://get-help.theconstruct.ai/t/no-solution-in-dokumentation/20851)

<div class="topic-metadata">

**Author:** [@Ephyly](https://get-help.theconstruct.ai/u/Ephyly)\
**Replies:** 1\
**Last updated:** [December 7, 2022, 9:48am UTC](https://get-help.theconstruct.ai/t/no-solution-in-dokumentation/20851 "2022-12-07T09:48:44Z")

</div>

Hello all, I can’t find the solution mentioned in the documentation. In “- End of expected behavior for exercise 2.5 -” the solution is mentioned with "If you get stuck, you will find the code below, but see it as a las…

---

## [Specific description of code in feature matching](https://get-help.theconstruct.ai/t/specific-description-of-code-in-feature-matching/20749)

<div class="topic-metadata">

**Author:** [@MeineLiebeAxt](https://get-help.theconstruct.ai/u/MeineLiebeAxt)\
**Replies:** 2\
**Last updated:** [December 1, 2022, 2:11pm UTC](https://get-help.theconstruct.ai/t/specific-description-of-code-in-feature-matching/20749 "2022-12-01T14:11:09Z")

</div>

Hi, I am learning unit4 “Feature Matching” - “OpenCV for Robotics”. I cannot really understand a part of code in despite of the comments. The whole code of process of feature matching in course book is shown as: #!/usr…

---

## [Cannot understant theroy of HOG](https://get-help.theconstruct.ai/t/cannot-understant-theroy-of-hog/20676)

<div class="topic-metadata">

**Author:** [@MeineLiebeAxt](https://get-help.theconstruct.ai/u/MeineLiebeAxt)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 4:46pm UTC](https://get-help.theconstruct.ai/t/cannot-understant-theroy-of-hog/20676 "2022-11-24T16:46:25Z")

</div>

Hi, I am learning unit3 in course “OpenCV for Robotics”. In theory of HOG, I found this point a little confused: The distance to 40 and 60 is 5 and 15, respectively; therefore, the ratios will be 5/20 and 15/20, s…

---

## [Different positions make differences](https://get-help.theconstruct.ai/t/different-positions-make-differences/20635)

<div class="topic-metadata">

**Author:** [@MeineLiebeAxt](https://get-help.theconstruct.ai/u/MeineLiebeAxt)\
**Replies:** 3\
**Last updated:** [November 23, 2022, 11:46am UTC](https://get-help.theconstruct.ai/t/different-positions-make-differences/20635 "2022-11-23T11:46:13Z")

</div>

Hi, I am doing Exercise: load\_image2.py of OPenCV of Robotics. I think this is a problem about python itself: when I do image-read in call\_back() of topic '/camera/rgb/image\_raw', and directly input msg into self.cv\_br…

---

## [Cannot save image from the drone](https://get-help.theconstruct.ai/t/cannot-save-image-from-the-drone/20634)

<div class="topic-metadata">

**Author:** [@MeineLiebeAxt](https://get-help.theconstruct.ai/u/MeineLiebeAxt)\
**Replies:** 2\
**Last updated:** [November 22, 2022, 12:25pm UTC](https://get-help.theconstruct.ai/t/cannot-save-image-from-the-drone/20634 "2022-11-22T12:25:39Z")

</div>

Hi, I am learning " OpenCV for Robotics". In first exercise, we need to show a picture from existed folder and save a picture from the drone. I can show picture from existed folder and from the drone: But I cannot f…

---

## [Facing an error while running a launch file for exercise 2.1](https://get-help.theconstruct.ai/t/facing-an-error-while-running-a-launch-file-for-exercise-2-1/20386)

<div class="topic-metadata">

**Author:** [@moseswesly06](https://get-help.theconstruct.ai/u/moseswesly06)\
**Replies:** 1\
**Last updated:** [November 10, 2022, 9:18am UTC](https://get-help.theconstruct.ai/t/facing-an-error-while-running-a-launch-file-for-exercise-2-1/20386 "2022-11-10T09:18:36Z")

</div>

Please help

---

## [No name 'aruco' in module 'cv2'pylint(no-name-in-module)](https://get-help.theconstruct.ai/t/no-name-aruco-in-module-cv2pylint-no-name-in-module/17636)

<div class="topic-metadata">

**Author:** [@ARobot](https://get-help.theconstruct.ai/u/ARobot)\
**Replies:** 1\
**Last updated:** [May 30, 2022, 8:26am UTC](https://get-help.theconstruct.ai/t/no-name-aruco-in-module-cv2pylint-no-name-in-module/17636 "2022-05-30T08:26:56Z")

</div>

The code is generating an error due to the lack of aruco module. the error is line 3 import cv2 import numpy as np from cv2 import aruco #Initialize the dictionary aruco\_dict = aruco.Dictionary\_get(aruco.DICT\_6X6\_…

---

## [Bug in Example 5.1](https://get-help.theconstruct.ai/t/bug-in-example-5-1/12305)

<div class="topic-metadata">

**Author:** [@steven.beyer](https://get-help.theconstruct.ai/u/steven.beyer)\
**Replies:** 9\
**Last updated:** [April 27, 2022, 10:12am UTC](https://get-help.theconstruct.ai/t/bug-in-example-5-1/12305 "2022-04-27T10:12:28Z")

</div>

In Example 5.1 (both example and solution code) there is an error in the image write command: cv2.imwrite(’/home/catkin\_ws/src/unit5/Tags/image\_’+str(i)+".jpg",img). The complete path for the filename should be: ‘/home/…

---

## [3 Issues with OpenCV course](https://get-help.theconstruct.ai/t/3-issues-with-opencv-course/16462)

<div class="topic-metadata">

**Author:** [@yuseialexs](https://get-help.theconstruct.ai/u/yuseialexs)\
**Replies:** 3\
**Last updated:** [March 31, 2022, 8:39am UTC](https://get-help.theconstruct.ai/t/3-issues-with-opencv-course/16462 "2022-03-31T08:39:08Z")

</div>

Hi all, I am having 3 issues with the OpenCV course (Unit 2). Every time I use a method from the cv2 library, I get an error: “Module ‘cv2’ has no ‘method\_name’ member.” How can I get rid of this error? When I im…

---

## [Exercise 3.1 frontalface.xml and eye.xml doesn't open](https://get-help.theconstruct.ai/t/exercise-3-1-frontalface-xml-and-eye-xml-doesnt-open/15777)

<div class="topic-metadata">

**Author:** [@김호석](https://get-help.theconstruct.ai/u/%EA%B9%80%ED%98%B8%EC%84%9D)\
**Replies:** 1\
**Last updated:** [February 28, 2022, 11:11am UTC](https://get-help.theconstruct.ai/t/exercise-3-1-frontalface-xml-and-eye-xml-doesnt-open/15777 "2022-02-28T11:11:49Z")

</div>

I am trying to do exercise 3.1, so i clicked the frontalface.xml and eye.xml in the description of exercise 3.1. But I get this kind of error which means github.com denied the connection.

---

## [C++ executable file not build](https://get-help.theconstruct.ai/t/c-executable-file-not-build/15453)

<div class="topic-metadata">

**Author:** [@BadhriROS](https://get-help.theconstruct.ai/u/BadhriROS)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 10:39am UTC](https://get-help.theconstruct.ai/t/c-executable-file-not-build/15453 "2022-02-22T10:39:21Z")

</div>

i am new to ROS currently working on ROS Kinetic,i have an issue when i run this linefollowing.cpp file using the command “rosrun roscv linefollowing.cpp” (where roscv is the package name & “linefollowing.cpp” is the .cp…

---

## [(image\_jpg:4375): dbind-WARNING \*\*: 07:21:13.220: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-yn8aXVkGWT: Connection refused](https://get-help.theconstruct.ai/t/image-jpg-4375-dbind-warning-0713-220-couldnt-connect-to-accessibility-bus-failed-to-connect-to-socket-tmp-dbus-yn8axvkgwt-connection-refused/15584)

<div class="topic-metadata">

**Author:** [@Joseph1001](https://get-help.theconstruct.ai/u/Joseph1001)\
**Replies:** 4\
**Last updated:** [February 21, 2022, 8:17am UTC](https://get-help.theconstruct.ai/t/image-jpg-4375-dbind-warning-0713-220-couldnt-connect-to-accessibility-bus-failed-to-connect-to-socket-tmp-dbus-yn8axvkgwt-connection-refused/15584 "2022-02-21T08:17:18Z")

</div>

I was working on the openCV course. While running a program, i can across the following error in the web shell. I also want to mention that the program works exactly as intended. Has anyone else come across similar warni…

---

## [Exercise 5.6 not able to show results](https://get-help.theconstruct.ai/t/exercise-5-6-not-able-to-show-results/14882)

<div class="topic-metadata">

**Author:** [@Geniussh](https://get-help.theconstruct.ai/u/Geniussh)\
**Replies:** 1\
**Last updated:** [January 21, 2022, 10:09am UTC](https://get-help.theconstruct.ai/t/exercise-5-6-not-able-to-show-results/14882 "2022-01-21T10:09:44Z")

</div>

I tried to run the solution code for Exercise 5.6 but it does not show anything in the graphical tool. Is it because homography is too slow to calculate on our server instance?

---

## [Catkin\_ws removed](https://get-help.theconstruct.ai/t/catkin-ws-removed/7545)

<div class="topic-metadata">

**Author:** [@sebastien.ambellouis](https://get-help.theconstruct.ai/u/sebastien.ambellouis)\
**Replies:** 1\
**Last updated:** [January 13, 2021, 9:10am UTC](https://get-help.theconstruct.ai/t/catkin-ws-removed/7545 "2021-01-13T09:10:37Z")

</div>

Hi, Two students that are following the course Opencv for robotics have lost their catkin\_ws after disconnecting. Is it a known problem ? And is it possible to retrieve a backup of their work ? Thanks a lot. BR Seb…

---

## [Module 'cv2' has no attribute 'xfeatures2d' (Example 4.3)](https://get-help.theconstruct.ai/t/module-cv2-has-no-attribute-xfeatures2d-example-4-3/13300)

<div class="topic-metadata">

**Author:** [@ziga.rupret](https://get-help.theconstruct.ai/u/ziga.rupret)\
**Replies:** 3\
**Last updated:** [October 23, 2021, 6:24pm UTC](https://get-help.theconstruct.ai/t/module-cv2-has-no-attribute-xfeatures2d-example-4-3/13300 "2021-10-23T18:24:44Z")

</div>

Hi I am working on chapter 4 and am getting the following alarm, i actually dont understand why i am getting it. as i can see the the predictive text does find this function? here is the code: #!/usr/bin/env python i…

[Next page](https://get-help.theconstruct.ai/c/course-support/opencvforrobotics/48.md?page=1)
