Skip to content

Commit

Permalink
Tidy up scanner scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gandie committed Mar 24, 2024
1 parent bf415ca commit 2c827d2
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions zope/fs/mediapipe/holistic_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import subprocess
import pprint

os.chdir('/mediapipe')

def extract_frames(video_path):
'''
Expand Down Expand Up @@ -143,6 +142,8 @@ def scan(img_paths):

def main():

os.chdir('/mediapipe')

assert len(sys.argv) == 2, 'invalid args: one target video expected!'

tgt_vid_path = sys.argv[1]
Expand All @@ -159,22 +160,3 @@ def main():

if __name__ == '__main__':
main()













img_paths = [item for item in os.listdir() if item.endswith('.jpg')]
img_paths.sort(key=lambda x: int(x.split('.')[0]))



print('OK')

0 comments on commit 2c827d2

Please sign in to comment.