summaryrefslogtreecommitdiff
path: root/utils/rkisp1/rkisp1-capture.sh
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-03-01 22:35:16 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-15 13:45:58 +0300
commit695304c43f4e468eef24eb23920d148044dc15eb (patch)
tree9da84b860e3bb9ddd4d3ecce2e0f37e7b4741318 /utils/rkisp1/rkisp1-capture.sh
parent090ac6941679a49ea3c96de492a9f0ec00b2dd0c (diff)
utils: rkisp1: Remove frames before starting capture
Delete frames previously captured before starting a new capture, to avoid mixing old and new frames. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'utils/rkisp1/rkisp1-capture.sh')
-rwxr-xr-xutils/rkisp1/rkisp1-capture.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh
index 4d09f5d5..d5ebe5b1 100755
--- a/utils/rkisp1/rkisp1-capture.sh
+++ b/utils/rkisp1/rkisp1-capture.sh
@@ -88,6 +88,7 @@ capture_frames() {
if [[ $save_file -eq 1 ]]; then
file_op="--file=/tmp/frame-#.bin"
+ rm -f /tmp/frame-*.bin
fi
yavta -c$frame_count -n5 -I -f $capture_format -s $capture_size \