DenisTome / Lifting-from-the-Deep-release

Implementation of "Lifting from the Deep: Convolutional 3D Pose Estimation from a Single Image"

Home Page:https://denistome.github.io/papers/lifting-from-the-deep

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error in drawing.cpp for some images

edrdos101 opened this issue · comments

For some images (haven't figured out the correlation) when using draw_limbs, terminal throws this error:

_COLORS[lid], LIMB_DRAW_SIZE*_NORMALISATION_FACTOR , 16)
cv2.error: OpenCV(4.0.1) /tmp/opencv-20190105-31032-o160to/opencv-4.0.1/modules/imgproc/src/drawing.cpp:1811: error: (-215:Assertion failed) 0 < thickness && thickness <= MAX_THICKNESS in function 'line'

There seems to be no logical explanation why plotting works fine for some images while not for others...

FYI

I just changed the thickness value to a hard coded one in the draw.py file and it's ok now. ie

cv2.line(image, (x0, y0), (x1, y1),
                     _COLORS[lid], 5 , 16)

Alright thanks, it's quite weird anyway.