Commit 4a046ba4 authored by Kelly Chang's avatar Kelly Chang

Merge branch 'master' of https://git.elphel.com/Elphel/master

parents cd29faff bd9683b4
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -35,16 +35,12 @@ def image_extractor(scenes): ...@@ -35,16 +35,12 @@ def image_extractor(scenes):
for scene in scenes: for scene in scenes:
files = os.listdir(scene) files = os.listdir(scene)
for file in files: for file in files:
image_folder.append(os.path.join(scene, file)) if file[-4:] == ".jp4" or file[-7:] == "_6.tiff":
images = []
for folder in image_folder:
ims = os.listdir(folder)
for im in ims:
if im[-4:] == ".jp4" or im[-7:] == "_6.tiff":
continue continue
else: else:
images.append(os.path.join(folder, im)) image_folder.append(os.path.join(scene, file))
return images #returns a list of file paths to .tiff files in the specified directory given in file_extractor return image_folder #returns a list of file paths to .tiff files in the specified directory given in file_extractor
def im_distribution(images, num): def im_distribution(images, num):
""" """
......
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