Skip to content

Commit

Permalink
Zero pad output id
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdawkins committed Aug 17, 2023
1 parent e4aa361 commit 4067042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/process_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,8 @@ def process_using_kwiver( input_path, options, is_image_list=False,
if not any_mosaic_attempted:
log_info( lb )
any_mosaic_attempted = True
output_mosaic_file = output_subdir + div + "mosaic" + str( fid_pair[0] ) + ".jpg"
padded_fid = str( fid_pair[0] ).rjust( 5, '0' )
output_mosaic_file = output_subdir + div + "mosaic" + padded_fid + ".jpg"
try:
create_mosaic.main_multi( output_mosaic_file, \
mosaic_args, step=1, start=fid_pair[0], stop=fid_pair[1] )
Expand Down

0 comments on commit 4067042

Please sign in to comment.