Commit 45d8a421 authored by Fábio Prestes's avatar Fábio Prestes
Browse files

README.md atualizado, e ferramenta XML adicionada.

parent cfb38ff0
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -72,8 +72,13 @@ class Act(object):
self._image_name = None
self._image_path = None
self._xml_file = None
self._seg_folder = os.getcwd()
self._img_folder = os.getcwd()
current_path=os.getcwd()
current_path=current_path[-1::-1]
current_path=current_path[3::1]
current_path=current_path[-1::-1]
current_path=current_path+"data"
self._img_folder=current_path+"/images"
self._seg_folder=current_path+"/demo"
self._init_dataset(args["dataset"])
self._init_classes(args["classes"], args["colors"])
......@@ -1119,6 +1124,7 @@ class Act(object):
arquivos = []
#verificar arquivos em todas as pastas partindo de um diretório raiz
for pog, _, files in os.walk(os.path.abspath(pathIO)):
if (not pog.endswith('demo') and not pog.endswith('XML')):
#acha os arquivos de imagem na pasta de segmentos
for file in files:
if(file.endswith('.jpeg') or file.endswith('.tif') or file.endswith('.jpg') or file.endswith('.png')):##(-f)
......@@ -1179,7 +1185,7 @@ class Act(object):
def close_config_xml(config_xml):
config_xml.destroy()
def config_xml_directory(Button, E):
path = self.tk.utils.ask_directory(default_dir = os.getcwd())
path = self.tk.utils.ask_directory(default_dir = current_path)
if(Button == 1):
self._img_folder = path
E.delete(0,END)
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
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