DIYer22 / bpycv

Computer vision utils for Blender (generate instance annoatation, depth and 6D pose by one line code)
MIT License
464 stars 58 forks source link

why is orthographic camera not supported? #50

Closed PimAkker closed 7 months ago

PimAkker commented 7 months ago

Hi! Just a quick question: In camera_utils.py a check is performed so that the camera is perspective.

if camd.type != "PERSP":
      raise ValueError("Non-perspective cameras not supported")

Why is that? It seems to work fine if i disable this.

Does something happen that i'm not aware of or is this just an untested feature?

Thanks!

DIYer22 commented 7 months ago

Because the camera intrinsic format of OpenCV does not support orthographic cameras, tasks that require camera intrinsics (such as 6D pose) will result in an error.