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

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>
......
......@@ -2,7 +2,10 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="ff50dbe9-96fb-4654-a170-8d858ba3f6c3" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/src/extraction/extractor_frame_video.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/extraction/extractor_frame_video.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/extraction/kcurvature.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/extraction/kcurvature.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/interface/tk_interface.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/interface/tk_interface.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/pynovisao.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/pynovisao.py" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
......@@ -14,88 +17,97 @@
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/extraction/extractor_frame_video.py">
<entry file="file://$PROJECT_DIR$/src/interface/tk_interface.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="416">
<caret line="30" column="10" selection-start-line="30" selection-start-column="10" selection-end-line="30" selection-end-column="10" />
<state relative-caret-position="15">
<caret line="68" column="25" selection-start-line="68" selection-start-column="25" selection-end-line="68" selection-end-column="25" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/lib/python2.7/lib-tk/Tkinter.py">
<entry file="file://$PROJECT_DIR$/requeriments.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-12384">
<caret line="1826" selection-start-line="1826" selection-end-line="1826" />
<state relative-caret-position="345">
<caret line="23" selection-start-line="23" selection-end-line="23" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/extraction/kcurvature.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="89" column="8" selection-start-line="89" selection-start-column="8" selection-end-line="89" selection-end-column="8" />
<folding>
<element signature="e#172#190#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/lib/python2.7/posixpath.py">
<entry file="file://$PROJECT_DIR$/INSTALL.sh">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="177">
<caret line="97" selection-start-line="97" selection-end-line="97" />
<state relative-caret-position="135">
<caret line="9" selection-start-line="9" selection-end-line="9" selection-end-column="74" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/lib/python2.7/genericpath.py">
<entry file="file:///usr/local/lib/python2.7/dist-packages/matplotlib/cbook.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="408">
<caret line="109" selection-start-line="109" selection-end-line="109" />
<state relative-caret-position="7905">
<caret line="551" selection-start-line="551" selection-end-line="551" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/extraction/feature_extraction.py">
<entry file="file:///usr/local/lib/python2.7/dist-packages/matplotlib/backend_bases.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="387">
<caret line="153" column="30" lean-forward="true" selection-start-line="153" selection-start-column="30" selection-end-line="153" selection-end-column="30" />
<folding>
<element signature="e#212#221#0" expanded="true" />
</folding>
<state relative-caret-position="28275">
<caret line="1916" selection-start-line="1916" selection-end-line="1916" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/../people-counting-opencv/people_counter.py">
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="405">
<caret line="48" column="11" selection-start-line="48" selection-start-column="10" selection-end-line="48" selection-end-column="13" />
<folding>
<element signature="e#510#567#0" expanded="true" />
</folding>
<state relative-caret-position="5550">
<caret line="401" selection-start-line="401" selection-end-line="401" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/../people-counting-opencv/pyimagesearch/centroidtracker.py">
<entry file="file://$PROJECT_DIR$/src/segmentation/segmenter.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="6" column="38" lean-forward="true" selection-start-line="6" selection-start-column="38" selection-end-line="6" selection-end-column="38" />
<state relative-caret-position="150">
<caret line="10" column="32" selection-start-line="10" selection-start-column="32" selection-end-line="10" selection-end-column="32" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/classification/weka_classifiers.py">
<entry file="file://$PROJECT_DIR$/src/segmentation/skimage_segmenter.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="45">
<caret line="12" column="9" selection-start-line="12" selection-start-column="9" selection-end-line="12" selection-end-column="9" />
<state relative-caret-position="1545">
<caret line="112" column="32" selection-start-line="112" selection-start-column="32" selection-end-line="112" selection-end-column="32" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/classification/classifier.py">
<entry file="file://$PROJECT_DIR$/src/segmentation/slic.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-990">
<caret line="14" column="6" selection-start-line="14" selection-start-column="6" selection-end-line="14" selection-end-column="6" />
<state relative-caret-position="2385">
<caret line="167" selection-start-line="167" selection-end-line="167" />
<folding>
<element signature="e#448#485#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
......@@ -111,13 +123,6 @@
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>tkMessageBox</find>
<find>Uti</find>
<find>self.extractors</find>
<find>Tk</find>
<find>tk</find>
<find>Util</find>
<find>call</find>
<find>upd</find>
<find>parent</find>
<find>.update_idletasks()</find>
......@@ -141,6 +146,13 @@
<find>tae</find>
<find>self.weight_path</find>
<find>board</find>
<find>event</find>
<find>add_image(</find>
<find>add_image</find>
<find>save</find>
<find>self._image</find>
<find>sa</find>
<find>sav</find>
</findStrings>
</component>
<component name="Git.Settings">
......@@ -172,11 +184,9 @@
<option value="$PROJECT_DIR$/requeriments.txt" />
<option value="$PROJECT_DIR$/src/classification/__init__.py" />
<option value="$PROJECT_DIR$/src/util/x11_colors.py" />
<option value="$PROJECT_DIR$/src/interface/tk_interface.py" />
<option value="$PROJECT_DIR$/src/interface/interface.py" />
<option value="$PROJECT_DIR$/src/classification/segnet_keras.py" />
<option value="$PROJECT_DIR$/src/classification/cnn_keras.py" />
<option value="$PROJECT_DIR$/src/extraction/kcurvature.py" />
<option value="$PROJECT_DIR$/INSTALL_WITH_CONDA.sh" />
<option value="$PROJECT_DIR$/src/main.py" />
<option value="$PROJECT_DIR$/README.md" />
......@@ -185,9 +195,11 @@
<option value="$PROJECT_DIR$/src/interface/tk/tk_canvas.py" />
<option value="$PROJECT_DIR$/src/extraction/feature_extraction.py" />
<option value="$PROJECT_DIR$/src/extraction/extractor_frame_video.py" />
<option value="$PROJECT_DIR$/src/pynovisao.py" />
<option value="$PROJECT_DIR$/../people-counting-opencv/pyimagesearch/centroidtracker.py" />
<option value="$PROJECT_DIR$/../people-counting-opencv/people_counter.py" />
<option value="$PROJECT_DIR$/src/pynovisao.py" />
<option value="$PROJECT_DIR$/src/interface/tk_interface.py" />
<option value="$PROJECT_DIR$/src/extraction/kcurvature.py" />
</list>
</option>
</component>
......@@ -206,6 +218,50 @@
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="pynovisao" type="b2602c69:ProjectViewProjectNode" />
<item name="pynovisao" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="pynovisao" type="b2602c69:ProjectViewProjectNode" />
<item name="pynovisao" type="462c0819:PsiDirectoryNode" />
<item name="data" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="pynovisao" type="b2602c69:ProjectViewProjectNode" />
<item name="pynovisao" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="pynovisao" type="b2602c69:ProjectViewProjectNode" />
<item name="pynovisao" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="classification" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="pynovisao" type="b2602c69:ProjectViewProjectNode" />
<item name="pynovisao" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="extraction" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="pynovisao" type="b2602c69:ProjectViewProjectNode" />
<item name="pynovisao" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="interface" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="pynovisao" type="b2602c69:ProjectViewProjectNode" />
<item name="pynovisao" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="segmentation" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="pynovisao" type="b2602c69:ProjectViewProjectNode" />
<item name="pynovisao" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="util" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="pynovisao" type="b2602c69:ProjectViewProjectNode" />
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
......@@ -346,10 +402,10 @@
<method v="2" />
</configuration>
<list>
<item itemvalue="Python.main" />
<item itemvalue="Python.all_user_input_widgets" />
<item itemvalue="Python.extractor_frame_video" />
<item itemvalue="Python.feature_extraction" />
<item itemvalue="Python.main" />
<item itemvalue="Python.tk_interface" />
</list>
<recent_temporary>
......@@ -366,6 +422,7 @@
</component>
<component name="ToolWindowManager">
<frame x="67" y="25" width="1853" height="1055" extended-state="6" />
<editor active="true" />
<layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.3431694" />
<window_info id="Structure" order="1" weight="0.25" />
......@@ -485,6 +542,11 @@
<line>43</line>
<option name="timeStamp" value="15" />
</line-breakpoint>
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
<url>file://$PROJECT_DIR$/src/segmentation/skimage_segmenter.py</url>
<line>149</line>
<option name="timeStamp" value="17" />
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
<watches-manager>
......@@ -504,58 +566,6 @@
</expressions>
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/interface/tk/tk_menu.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="570">
<caret line="38" column="8" selection-start-line="38" selection-start-column="8" selection-end-line="38" selection-end-column="8" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/interface/tk/tk_customframe.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="525">
<caret line="35" column="11" lean-forward="true" selection-start-line="35" selection-start-column="11" selection-end-line="35" selection-end-column="11" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/.PyCharmEdu2018.3/system/python_stubs/348993582/posix.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="7565">
<caret line="548" column="4" selection-start-line="548" selection-start-column="4" selection-end-line="548" selection-end-column="4" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/interface/tk/tk_customdialog.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="10" selection-start-line="10" selection-end-line="11" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/segmentation/segmenter.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="180">
<caret line="12" column="6" selection-start-line="12" selection-start-column="6" selection-end-line="12" selection-end-column="6" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/segmentation/slic.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="165">
<caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
<folding>
<element signature="e#448#485#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/extraction/lbp.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
<caret line="16" column="6" selection-start-line="16" selection-start-column="6" selection-end-line="16" selection-end-column="6" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/extraction/glcm.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
......@@ -686,13 +696,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/interface/tk_interface.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="165">
<caret line="11" selection-start-line="11" selection-end-line="11" selection-end-column="29" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/util/file_utils.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
......@@ -745,16 +748,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/extraction/kcurvature.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="165">
<caret line="17" column="37" selection-start-line="17" selection-start-column="37" selection-end-line="17" selection-end-column="37" />
<folding>
<element signature="e#172#190#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/classification/cnn_keras.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="5910">
......@@ -766,13 +759,6 @@
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/INSTALL_WITH_CONDA.sh" />
<entry file="file://$PROJECT_DIR$/requeriments.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="345">
<caret line="23" selection-start-line="23" selection-end-line="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/extraction/image_moments.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="810">
......@@ -790,16 +776,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/main.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="330">
<caret line="26" selection-start-line="26" selection-end-line="26" />
<folding>
<element signature="e#1043#1058#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="5310">
......@@ -807,88 +783,170 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/INSTALL.sh">
<entry file="file://$PROJECT_DIR$/src/extraction/extractor_frame_video.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="135">
<caret line="9" selection-start-line="9" selection-end-line="9" selection-end-column="74" />
<state relative-caret-position="450">
<caret line="30" column="10" selection-start-line="30" selection-start-column="10" selection-end-line="30" selection-end-column="10" />
</state>
</provider>
</entry>
<entry file="file:///usr/lib/python2.7/genericpath.py">
<entry file="file:///usr/lib/python2.7/posixpath.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="408">
<caret line="109" selection-start-line="109" selection-end-line="109" />
<state relative-caret-position="1365">
<caret line="97" selection-start-line="97" selection-end-line="97" />
</state>
</provider>
</entry>
<entry file="file:///usr/lib/python2.7/posixpath.py">
<entry file="file:///usr/lib/python2.7/genericpath.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="177">
<caret line="97" selection-start-line="97" selection-end-line="97" />
<state relative-caret-position="1620">
<caret line="109" selection-start-line="109" selection-end-line="109" />
</state>
</provider>
</entry>
<entry file="file:///usr/lib/python2.7/lib-tk/Tkinter.py">
<entry file="file://$PROJECT_DIR$/src/extraction/feature_extraction.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-12384">
<caret line="1826" selection-start-line="1826" selection-end-line="1826" />
<state relative-caret-position="2085">
<caret line="153" column="30" selection-start-line="153" selection-start-column="30" selection-end-line="153" selection-end-column="30" />
<folding>
<element signature="e#212#221#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/extraction/extractor_frame_video.py">
<entry file="file://$PROJECT_DIR$/../people-counting-opencv/pyimagesearch/centroidtracker.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="416">
<caret line="30" column="10" selection-start-line="30" selection-start-column="10" selection-end-line="30" selection-end-column="10" />
<state relative-caret-position="60">
<caret line="6" column="38" selection-start-line="6" selection-start-column="38" selection-end-line="6" selection-end-column="38" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/classification/weka_classifiers.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="45">
<state relative-caret-position="180">
<caret line="12" column="9" selection-start-line="12" selection-start-column="9" selection-end-line="12" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/classification/classifier.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-990">
<state relative-caret-position="180">
<caret line="14" column="6" selection-start-line="14" selection-start-column="6" selection-end-line="14" selection-end-column="6" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../people-counting-opencv/people_counter.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="405">
<caret line="48" column="11" selection-start-line="48" selection-start-column="10" selection-end-line="48" selection-end-column="13" />
<folding>
<element signature="e#510#567#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/data/demo.jpg">
<provider selected="true" editor-type-id="images" />
</entry>
<entry file="file:///usr/lib/python2.7/lib-tk/Tkinter.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="16965">
<caret line="1131" selection-start-line="1131" selection-end-line="1131" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/pynovisao.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="349">
<caret line="757" column="8" lean-forward="true" selection-start-line="756" selection-start-column="126" selection-end-line="757" selection-end-column="8" />
<state relative-caret-position="4980">
<caret line="361" column="50" selection-start-line="361" selection-start-column="50" selection-end-line="361" selection-end-column="50" />
<folding>
<element signature="e#202#212#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/extraction/feature_extraction.py">
<entry file="file://$PROJECT_DIR$/src/main.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="387">
<caret line="153" column="30" lean-forward="true" selection-start-line="153" selection-start-column="30" selection-end-line="153" selection-end-column="30" />
<state relative-caret-position="615">
<caret line="45" column="16" selection-start-line="45" selection-start-column="16" selection-end-line="45" selection-end-column="16" />
<folding>
<element signature="e#212#221#0" expanded="true" />
<element signature="e#1043#1058#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../people-counting-opencv/pyimagesearch/centroidtracker.py">
<entry file="file:///usr/local/lib/python2.7/dist-packages/matplotlib/cbook.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="60">
<caret line="6" column="38" lean-forward="true" selection-start-line="6" selection-start-column="38" selection-end-line="6" selection-end-column="38" />
<state relative-caret-position="7905">
<caret line="551" selection-start-line="551" selection-end-line="551" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../people-counting-opencv/people_counter.py">
<entry file="file:///usr/local/lib/python2.7/dist-packages/matplotlib/backend_bases.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="405">
<caret line="48" column="11" selection-start-line="48" selection-start-column="10" selection-end-line="48" selection-end-column="13" />
<state relative-caret-position="28275">
<caret line="1916" selection-start-line="1916" selection-end-line="1916" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="5550">
<caret line="401" selection-start-line="401" selection-end-line="401" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/segmentation/segmenter.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="10" column="32" selection-start-line="10" selection-start-column="32" selection-end-line="10" selection-end-column="32" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/segmentation/skimage_segmenter.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1545">
<caret line="112" column="32" selection-start-line="112" selection-start-column="32" selection-end-line="112" selection-end-column="32" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/segmentation/slic.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2385">
<caret line="167" selection-start-line="167" selection-end-line="167" />
<folding>
<element signature="e#510#567#0" expanded="true" />
<element signature="e#448#485#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/interface/tk_interface.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15">
<caret line="68" column="25" selection-start-line="68" selection-start-column="25" selection-end-line="68" selection-end-column="25" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/INSTALL.sh">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="135">
<caret line="9" selection-start-line="9" selection-end-line="9" selection-end-column="74" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/requeriments.txt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="345">
<caret line="23" selection-start-line="23" selection-end-line="23" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/extraction/kcurvature.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="89" column="8" selection-start-line="89" selection-start-column="8" selection-end-line="89" selection-end-column="8" />
<folding>
<element signature="e#172#190#0" expanded="true" />
</folding>
</state>
</provider>
......
......@@ -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(In