Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-tools-x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-tools-x393
Commits
2e0a7227
Commit
2e0a7227
authored
Sep 25, 2020
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts to create preview videos for footage
parent
ab168e7e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
0 deletions
+53
-0
batch_timestamp-annotate_jpegs.py
batch_timestamp-annotate_jpegs.py
+35
-0
LWIR_jpeg_to_mov.sh
lwir/LWIR_jpeg_to_mov.sh
+5
-0
LWIR_tiff_to_jpeg.sh
lwir/LWIR_tiff_to_jpeg.sh
+5
-0
VISIBLE_annotated_to_mov.sh
lwir/VISIBLE_annotated_to_mov.sh
+5
-0
VISIBLE_jpeg_annotate.sh
lwir/VISIBLE_jpeg_annotate.sh
+3
-0
No files found.
batch_timestamp-annotate_jpegs.py
0 → 100644
View file @
2e0a7227
#!/usr/bin/env python3
import
sys
import
os
import
subprocess
try
:
src
=
sys
.
argv
[
1
]
except
IndexError
:
src
=
"."
try
:
dst
=
sys
.
argv
[
2
]
except
IndexError
:
dst
=
"."
lst
=
os
.
listdir
(
src
)
lst
.
sort
()
for
f
in
lst
:
path
=
os
.
path
.
join
(
src
,
f
)
if
os
.
path
.
isfile
(
path
):
print
(
"Annotating "
+
f
)
border
=
f
"-border 15 -bordercolor '#00000080'"
label
=
f
"-pointsize 100 -background none -fill white label:'{f}'"
gravity
=
f
"-gravity southwest -geometry +30+30"
cmd
=
f
"convert {border} {label} miff:- | composite {gravity} - {src}/{f} {dst}/{f}"
subprocess
.
check_output
(
cmd
,
shell
=
True
)
#convert 1562389949_821613_0.jpeg -pointsize 100 -fill black -undercolor white -gravity southwest -annotate +10+10 "filename" test.jpeg
lwir/LWIR_jpeg_to_mov.sh
0 → 100755
View file @
2e0a7227
#!/bin/sh
rm
lwir.mov
cat
lwir_jpeg/
*
.jpeg | ffmpeg
-framerate
20
-f
image2pipe
-i
- lwir.mov
lwir/LWIR_tiff_to_jpeg.sh
0 → 100755
View file @
2e0a7227
#!/usr/bin/sh
#convert 1562389844_064093_0.tiff -crop 160x120+0+0 -auto-level test.jpeg
mogrify
-crop
160x120+0+0
-auto-level
-format
jpeg
-path
./lwir_jpeg lwir/
*
.tiff
lwir/VISIBLE_annotated_to_mov.sh
0 → 100755
View file @
2e0a7227
#!/bin/sh
rm
visible.mov
cat
visible_jpeg_annotated/
*
.jpeg | ffmpeg
-framerate
20
-f
image2pipe
-i
- visible.mov
lwir/VISIBLE_jpeg_annotate.sh
0 → 100755
View file @
2e0a7227
#!/bin/sh
python3 batch_timestamp_annotate_jpegs.py visible_jpeg visible_jpeg_annotated
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment