Skip to content

Instantly share code, notes, and snippets.

@HsimWong
Created January 19, 2020 08:53
Show Gist options
  • Save HsimWong/3987d71f987fab2dc59e56b6beff18e0 to your computer and use it in GitHub Desktop.
Save HsimWong/3987d71f987fab2dc59e56b6beff18e0 to your computer and use it in GitHub Desktop.
Sample: Getting file list, number normalization
image_path="./images"
image_list=$(ls image_path)
for((i=1; i<=10; i++))
do
f="$(printf '%03d' $i)"
./test_jpeg_facedetect densebox_320_320 ${image_path}/$f.jpg
#mv facedetect_bb_output_12_0.bin ${f}_facedetect_bb_output_12_0.bin
#mv facedetect_pixel_conv_13_0.bin ${f}_facedetect_pixel_conv_13_0.bin
done
@HsimWong
Copy link
Author

remove certain string
echo $out | sed 's/***//g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment