Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions fileTreeUtilities/matchFrames.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import numpy as np
import fire, os
from pathlib import Path


rgbCameraList = ["Camera_Left_RGB", "Camera_Down_RGB"]
Expand Down Expand Up @@ -126,8 +127,10 @@ def main(datasetLocation, dryrun=True):
datasetLocation = os.path.realpath(datasetLocation)
renderFolders = [ f.parent for f in Path(datasetLocation).glob('**/120hzTimestamps.csv')]

( passed, failedRGBSeg, failedDepth, failedOther ) = [ checkRender() ]

# Process each render folder
for folder in renderFolders:
checkRender(str(folder), dryrun=dryrun)

if __name__ == '__main__':
fire.Fire(checkRender)

10 changes: 8 additions & 2 deletions renderUtilities/compressLosslessVideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import time
import numpy as np
import fire
from pathlib import Path


'''
Winter Guerra <winterg@mit.edu>
Expand All @@ -33,7 +35,9 @@ def compressLosslessVideo(input_folder, file_extension, output_folder=None):
output_folder = output_folder.replace(".", "")

# Make sure that output folder exists
process = subprocess.Popen("mkdir -p "+output_folder, shell=True)
# process = subprocess.Popen("mkdir -p "+output_folder, shell=True)
Path(output_folder).mkdir(parents=True, exist_ok=True)

process.wait()

# Find all raw image files in folder.
Expand Down Expand Up @@ -130,7 +134,9 @@ def compressVideoTarball(input_folder, file_extension, output_folder=None):
output_folder = output_folder.replace(".", "")

# Make sure that output folder exists
process = subprocess.Popen("mkdir -p "+output_folder, shell=True)
# process = subprocess.Popen("mkdir -p "+output_folder, shell=True)
Path(output_folder).mkdir(parents=True, exist_ok=True)

process.wait()

# Find all raw image files in folder.
Expand Down