luxonis / depthai-python

DepthAI Python Library
MIT License
362 stars 192 forks source link

Due to the inability of the lens to focus,oak-d-lite can be calibrated. #1055

Open fjz0911fang123 opened 4 months ago

fjz0911fang123 commented 4 months ago

Hi there, I was using depthai python to calibrate the Oak-d-lite camera and found that the RGB lens couldn't focus. The calibration program cannot be executed. But starting the camera alone, all lenses focus well. Could you help me take a look at this issue? Thank you very much!

Erol444 commented 4 months ago

Hi @fjz0911fang123 , Any terminal logs / screenshots would be helpful for us in order to help you.

fjz0911fang123 commented 4 months ago

Hi @Erol444 ,thank you very much for your attention to my question.The following is the log output by the console,when I run 'python3 calibrate.py -s 2.47 --board OAK-D-LITE -nx 15 -ny 8'

Cam: rgb and focus: True Cam: left and focus: False Cam: right and focus: False Saving dataset to: dataset Sensor name for rgb is IMX214 Sensor name for left is OV7251 Sensor name for right is OV7251 Starting image capture. Press the [ESC] key to abort. Will take 39 total images. Start capturing... new minimum: {'ts': 0.14534599999999998, 'indicies': {'rgb': 0, 'left': 0, 'right': 0}} min required: 0.2 new minimum: {'ts': 0.065214000000001, 'indicies': {'rgb': 1, 'left': 0, 'right': 0}} min required: 0.2 Time stamp of rgb is 1:38:19.946550 Markers count ... 0 Total markers needed -> 24 Status of rgb is False Time stamp of left is 1:38:19.913937 Markers count ... 42 Total markers needed -> 24 py: Saved image as: dataset/left/p0_0.png Status of left is True Time stamp of right is 1:38:19.913949 Markers count ... 42 Total markers needed -> 24 py: Saved image as: dataset/right/p0_0.png Status of right is True py: Capture failed, unable to find chessboard! Fix position and press spacebar again

Erol444 commented 4 months ago

@fjz0911fang123 could you send over the dataset/left/p0_0.png?