You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I get
in utils/image.py
if (len(screenCnt) == 4):
screenCntList.append(screenCnt)
assert len(screenCntList) == 1
Please help me understand, what does it mean?
p.s. Thanks for your project
The text was updated successfully, but these errors were encountered:
Basically, in these lines, each contour (object) that is found is checked to see if it has 4 corners.
If it does, the 4 corners are stored together in an array.
This happens in:
if (len(screenCnt) == 4):
screenCntList.append(screenCnt)
In this case it is assumed that there is only one "rectangle" on the image.
Therefore the check by assert len(screenCntList) == 1 whether it is really only one object.
I.e. screenCntList is to be seen basically as a multidimensional array in which the first dimension represents the object or the contour and in the second dimension the four corners.
Of course the whole thing is implemented only very rudimentary with a lot of optimism ;-)
Hi I get
in utils/image.py
if (len(screenCnt) == 4):
screenCntList.append(screenCnt)
assert len(screenCntList) == 1
Please help me understand, what does it mean?
p.s. Thanks for your project
The text was updated successfully, but these errors were encountered: