Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting another error #2

Open
noorulain3 opened this issue Mar 13, 2020 · 0 comments
Open

I am getting another error #2

noorulain3 opened this issue Mar 13, 2020 · 0 comments

Comments

@noorulain3
Copy link

ValueError Traceback (most recent call last)
in
55 return n
56
---> 57 boundingBox = findBB(binary)
58 cropImg = binary[boundingBox[0]:boundingBox[1], boundingBox[2]:boundingBox[3]]
59 centroid = findCentroid(cropImg)

in findBB(im)
13 for x in range(h):
14 for y in range(w):
---> 15 if (im[x,y] == 0):
16 right = x if x > right else right
17 left = x if x < left else left

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

I have tried a lot but still not able to solve this error. Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant