geaxgx / depthai_blazepose

MIT License
322 stars 68 forks source link

RGB Image out of focus in xyz mode on D-Lite #14

Open goaaats opened 2 years ago

goaaats commented 2 years ago

Hello!

When running in xyz mode on an OAK D-Lite, the RGB image is out of focus, as it is set manually during initialization in https://github.com/geaxgx/depthai_blazepose/blob/main/BlazeposeDepthaiEdge.py#L238.

The comment mentions a calibration process - is this something I can replicate myself? I couldn't find any information on it in this repo.

Thank you, and sorry if I'm missing something obvious :)

geaxgx commented 2 years ago

Thanks for reporting. It seems that using the constant focus value of 130 does not work well with the OAK-D lite. I have confirmed your issue with my own model. So I have modified the code to use instead of 130 the actual focus value used during calibration. It should work better.