Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCV unable to display images taken on the beaglebone. #451

Open
AhmedSamara opened this issue Feb 3, 2016 · 6 comments
Open

OpenCV unable to display images taken on the beaglebone. #451

AhmedSamara opened this issue Feb 3, 2016 · 6 comments

Comments

@AhmedSamara
Copy link
Member

We plugged the beaglebone into an HDMI port so we could view the output of the openCV frames, and they're not working.

We can view the output on mplayer, so the webcam has drivers installed and everything and works, but openCV can't take pictures. We also previously tested OpenCV and proved that it worked on the BBB, so this is a new problem. Possibly related to #450

Whenever we run qr_feed.py (or anything that takes pictures with OpenCV) we get this error:

VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
select timeout
select timeout
select timeout
select timeout
select timeout
select timeout
@AhmedSamara
Copy link
Member Author

@AhmedSamara
Copy link
Member Author

cam.get(3) and cam.get(4) showed a resolution of 640x480.

We tried changing it to the proper resolution using cam.set(3), cam.set(4) f 1280x720, but that also didn't fix it. We got a new error though:

HIGHGUI ERROR: V4L: Propery <unknown property string>(100) not supported by device
select timeout

@AhmedSamara
Copy link
Member Author

Solved this by setting the resolution with

cam.set(3,1280)
cam.set(4,720)

@AhmedSamara
Copy link
Member Author

This no longer works.

Trying these isntructions:

http://dumb-looks-free.blogspot.com/2014/05/beaglebone-black-bbb-with-logitech-c270.html
But couldn't find repo qv412.

@AhmedSamara
Copy link
Member Author

Well, it still doesn't work.
Even simply running:

import cv2

cam = cv2.VideoCapture(0)
#cam.set(3,600)
#cam.set(4,400)

ret, frame = cam.read()

print "X: ", cam.get(3)
print "Y: ", cam.get(4)

(We tried setting the resolution manually for every setting we
Gives the error:

VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
X:  640.0
Y:  480.0

give the select timeout error.

@BrettGoldbach is working on this with me.

@dfarrell07 @mynameis7 @kvijay1995

Do any of you have any ideas on what could be wrong?

@AhmedSamara
Copy link
Member Author

It works using a logitech c920, which is an HD camera that we can't use for our project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant