Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
inovisao
pynovisao
Commits
e26eda40
Commit
e26eda40
authored
May 10, 2019
by
Diego André Sant'Ana
🤞
Browse files
ajuster versão kcurvatura
parent
19829b45
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
229 additions
and
164 deletions
+229
-164
.idea/inspectionProfiles/Project_Default.xml
.idea/inspectionProfiles/Project_Default.xml
+4
-0
.idea/workspace.xml
.idea/workspace.xml
+220
-162
src/extraction/kcurvature.py
src/extraction/kcurvature.py
+3
-1
src/interface/tk_interface.py
src/interface/tk_interface.py
+1
-1
src/pynovisao.py
src/pynovisao.py
+1
-0
No files found.
.idea/inspectionProfiles/Project_Default.xml
View file @
e26eda40
...
...
@@ -68,6 +68,10 @@
<option
value=
"E501"
/>
<option
value=
"W29"
/>
<option
value=
"E501"
/>
<option
value=
"W29"
/>
<option
value=
"E501"
/>
<option
value=
"W29"
/>
<option
value=
"E501"
/>
</list>
</option>
</inspection_tool>
...
...
.idea/workspace.xml
View file @
e26eda40
This diff is collapsed.
Click to expand it.
src/extraction/kcurvature.py
View file @
e26eda40
...
...
@@ -87,7 +87,9 @@ class KCURVATURE(Extractor):
#ret, thresh = cv2.threshold(np.copy(gray), 127, 255, 0)
edges
=
self
.
auto_canny
(
gray
,
1
)
if
cv2
.
getVersionMajor
()
in
[
2
,
4
]:
(
major
,
minor
,
_
)
=
cv2
.
__version__
.
split
(
"."
)
if
int
(
major
)
in
[
2
,
4
]:
# OpenCV 2, OpenCV 4 case
contour
,
hier
=
cv2
.
findContours
(
edges
.
copy
(),
cv2
.
RETR_CCOMP
,
cv2
.
CHAIN_APPROX_NONE
)
#print(contours)
...
...
src/interface/tk_interface.py
View file @
e26eda40
...
...
@@ -68,7 +68,7 @@ class TkInterface(Interface):
self
.
_root
=
Tk
.
Tk
()
self
.
_root
.
wm_title
(
self
.
title
)
self
.
_root
.
geometry
(
'%dx%d+%d+%d'
%
(
800
,
6
00
,
0
,
0
))
self
.
_root
.
geometry
(
'%dx%d+%d+%d'
%
(
800
,
8
00
,
0
,
0
))
self
.
_menus
=
[]
...
...
src/pynovisao.py
View file @
e26eda40
...
...
@@ -140,6 +140,7 @@ class Act(object):
def
onclick
(
event
):
"""Binds dataset generator event to click on image."""
print
(
event
)
if
event
.
xdata
!=
None
and
event
.
ydata
!=
None
and
int
(
event
.
ydata
)
!=
0
and
self
.
_dataset_generator
==
True
:
x
=
int
(
event
.
xdata
)
y
=
int
(
event
.
ydata
)
...
...
Write
Preview
Markdown
is supported
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