23 lines
465 B
Markdown
23 lines
465 B
Markdown
|
|
||
|
Build array of images sorted by size:
|
||
|
|
||
|
```bash
|
||
|
python zoom_animation.py --annotations ../../datasets/COCO/annotations/instances_train2017.json --output zoom --category_id 18
|
||
|
```
|
||
|
|
||
|
Turn into png
|
||
|
|
||
|
```bash
|
||
|
cd zoom/dog
|
||
|
for file in *.svg; do inkscape -z -f "${file}" -w 640 -e "../dog_png/${file}.png"; done
|
||
|
```
|
||
|
|
||
|
Turn png into mp4
|
||
|
|
||
|
```bash
|
||
|
cd ../dog_png
|
||
|
#ffmpeg -r 1 -i %d_*.png -pix_fmt yuv420p bloch2.mp4
|
||
|
ffmpeg -f image2 -pattern_type glob -i '*.png' ../dog.mp4
|
||
|
|
||
|
```
|