few_shot_gaze icon indicating copy to clipboard operation
few_shot_gaze copied to clipboard

after python calibrate_camera.py , keeping show tips and try press any key is not respond

Open nmbtwzt opened this issue 6 years ago • 6 comments

I want to run the demo , i follow each step of the instructions to "2. Camera and Monitor calibration", run "python calibrate_camera.py" , the terminal show "Calibrate camera once. Print pattern.png, paste on a clipboard, show to camera and capture non-blurry images in which points are detected well.Press s to save frame, c to continue to next frame and q to quit collecting data and proceed to calibration." But now i press s 、c 、 q or any others key , it nothing to next step and keeping this state long time until i press ctrl+z to stop. I don't konw how to solve this , please help me , thank you.

nmbtwzt avatar Apr 17 '20 08:04 nmbtwzt

same problem. did u solve this?

TranThanh96 avatar Oct 03 '20 03:10 TranThanh96

calibrate_camera.py is running a big while loop to capture the checkerboard image and detect the key points. If it is able to capture the key points, an image is display and then you can hit "s" to save the frame, "q" to quit. The loop continues to run and pressing "s, c, q" will not do anything until the captured image containing the checkerboard pattern appears in a window.

Move the image around your webcam (left, right, up, down, forward, backward) during the calibration and eventually you will see a window pop up.

allangu avatar Oct 22 '20 05:10 allangu

In the code, after I hit 's', the program will stopped and show 'segmentation fault(core dumped)'. After I calibrate the camera in my way, in collect_data function, when I hit 'l', 'r', 'u',or 'd', the same problem come out again.

SophieZhou avatar Jul 05 '22 01:07 SophieZhou

I am running the project on my jetson nano but I am connected to my jetson nano in headless mode so I don't have a monitor connected to it. Is the camera calibration meant to be ran with a monitor connected to the device?

farev avatar Jul 05 '23 22:07 farev

I ran it with a monitor connected to the jetson nano and still no video image appeared. The camera is on and everything else seems to be working properly so I don't know what the problem may be.

farev avatar Jul 05 '23 22:07 farev

How it was previously mentioned above you need to print out the pattern.png image and then when you place that in front of the camera the calibration works.

farev avatar Jul 05 '23 23:07 farev