google-coral / pycoral

Python API for ML inferencing and transfer-learning on Coral devices
https://coral.ai
Apache License 2.0
359 stars 146 forks source link

Camera: select timeout VIDIOC_DQBUF: Resource temporarily unavailable #23

Closed dtlam26 closed 3 years ago

dtlam26 commented 3 years ago

I am trying to access the Coral Board camera as the tutorial. I have checked whether the cam is accessible or not:

 v4l2-ctl --list-formats-ext
    ioctl: VIDIOC_ENUM_FMT
            Type: Video Capture

            [0]: 'YUYV' (YUYV 4:2:2)
                    Size: Discrete 640x480

                            Interval: Discrete 0.033s (30.000 fps)
                    Size: Discrete 720x480
                            Interval: Discrete 0.033s (30.000 fps)
                    Size: Discrete 1280x720
                            Interval: Discrete 0.033s (30.000 fps)
                    Size: Discrete 1920x1080
                            Interval: Discrete 0.067s (15.000 fps)
                            Interval: Discrete 0.033s (30.000 fps)
                    Size: Discrete 2592x1944
                            Interval: Discrete 0.067s (15.000 fps)
                    Size: Discrete 0x0

But when I try the snapshot in Coral, it displays nothing. And when trying access through the OpenCV, it yields the error when read the cap.read() as select timeout VIDIOC_DQBUF: Resource temporarily unavailable

Any ideas?

Naveen-Dodda commented 3 years ago

This seems to be connection issue or problem with cable. Can you share dmesg

manoj7410 commented 3 years ago

@dtlam26 Has this issue been resolved ?

dtlam26 commented 3 years ago

I think that is cable problem :(. but how can I share dmesg?

manoj7410 commented 3 years ago

@dtlam26 You can run the command 'dmesg' on the terminal and paste the output here.

dtlam26 commented 3 years ago

I will attach the output here, thank you for your help.

manoj7410 commented 3 years ago

@dtlam26 Logs show that the camera is not connected. Reason can be either the cable is damaged or not connected properly.

google-coral-bot[bot] commented 3 years ago

Are you satisfied with the resolution of your issue? Yes No