Commit e26eda40 authored by Diego André Sant'Ana's avatar Diego André Sant'Ana 🤞

ajuster versão kcurvatura

parent 19829b45
......@@ -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>
......
This diff is collapsed.
......@@ -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)
......
......@@ -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, 600, 0, 0))
self._root.geometry('%dx%d+%d+%d' % (800, 800, 0, 0))
self._menus = []
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment