Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cant display the image after applyting exposed elbp function in python

I am trying to display an image after applying elbp function to a gray-scale image, the function was exposed manually in the face module for python. here's the code:

LBP = cv2.face.elbp(gray_roi,1,8)
cv2.imshow("Face",LBP)

But however, what I got is a pure black window,also I noticed that the cols and rows are always smaller than the original image by 2,here is the error information:

could not broadcast input array from shape (95,95) into shape (97,97)

I noticed one other ppl asked the same question but was using c++ instead:

link text

But what I cant understand is what he meant by normalized the image to fit the screen rendering range?