Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
wtm
BScProject18_EvenOddGame
Commits
e506c414
Commit
e506c414
authored
Apr 05, 2018
by
barros
Browse files
Update CA.py
parent
1aeb7fb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
CV_List/CA.py
View file @
e506c414
...
...
@@ -254,9 +254,7 @@ def doConvexityApproach(img, img2):
"""
thresh
=
binaryImage
(
img
)
contours
,
hierarchy
=
cv2
.
findContours
(
thresh
,
cv2
.
CHAIN_APPROX_NONE
,
cv2
.
RETR_LIST
)
a
,
contours
,
hierarchy
=
cv2
.
findContours
(
thresh
,
cv2
.
CHAIN_APPROX_NONE
,
cv2
.
RETR_LIST
)
cnt
=
contours
[
0
]
for
i
in
range
(
len
(
contours
)):
...
...
@@ -337,4 +335,4 @@ def doConvexityApproach(img, img2):
points
.
append
(
finalAngle
)
return
img2
,
points
return
img2
,
points
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment