DIYer22 / bpycv

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

demo-inst.png is all zeros? #36

Closed singhularAdi closed 2 years ago

singhularAdi commented 2 years ago

Demo-inst turns out to be all zeros but the final renders seem to be okay, what could be causing this?

demo-inst demo-vis(inst_rgb_depth)

DIYer22 commented 2 years ago

demo-inst.png is not all zeros, but low brightness.

>>> np.unique(cv2.imread("demo-inst.png", cv2.IMREAD_UNCHANGED))
array([   0, 1001, 1003, 1005, 1007, 1009, 1011, 1013, 1015, 1019, 2002,
       2004, 2006, 2008, 2010, 2012, 2014, 2016, 2018], dtype=uint16)