Image ROI error! (UserWarning: Attempting to set identical bottom==top)
I am trying to virtually split the image into blocks using this simple statement given in OpenCV tutorial in the above link.
imgp0 = img[55:55, 110:110]
Such a statement is giving an error saying.
UserWarning: Attempting to set identical bottom==top results in singular transformations; automatically expanding.bottom=-0.5, top=-0.5'bottom=%s, top=%s') % (bottom, top))
Whenever we give same coordinates for both this error pops up.
Is it an OpenCV issue? If not how can I fix it?
Its a warning, which is not the same as an error and will thus have no influence on the execution. Basically its saying you that Python given the same x or y coordinate twice will look at [x-0.5,x+0.5] to define the value. This will generate negative values if you hit the 0 border, hence the warning. But in your case it will not generate problems...