No xming view and problem when running


i followed the tutorial, calibrated the camera successfully and everything is fine up to running
i get this message instead of the x,y,z position.
also the xming video does not turn on



ok i found the problem
there is a mistake in the code cloned from your github
my solution:
and changed: id_to_find from 129 to 72, marker_size from 40 to 19
and it worked fine


Thanks for the update!

I will adjust the repository, since the course does use Aruco 72 before 129. Of note, you will have to change it back to 129 and 40cm when you get to that point.


Unknown Error

pi@raspberrypi:~/pidronescripts/camera$ python

VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV

Showing video feed if X11 enabled.
Script will run until you exit.

Traceback (most recent call last):
File “”, line 53, in
gray_img = cv2.cvtColor(frame_np,cv2.COLOR_BGR2GRAY)
TypeError: src data type = 17 is not supported



Hmm that is odd.

  1. Are you converting the image to a np array right before line 53?
  2. Did you confirm with the mjgp_streamer that the camera is actually working? If the camera isn’t returning an actual image I bet the code would error at that point.