A simple python script to create "timeslices"
π Try it out here: timeslicer on streamlit π
Based on https://github.com/loickt/timelapse_slicer by @loickt
First, you will need to download the zip, extract it, and move to the root of this repo using the cd command. It is recommended to use it in a venv (using conda for example)
To install everything:
make setup
You will need to install all the dependencies by launching the command (td add ffmpeg-python):
pip install -r requirements.txt
In order to create animated video, you will also need to install ffmepg. It is a bit more complicated, and I recommend this guide
It is recommended to put your pictures in the input folder as below :
π timelapse-slicer/ # this is root
βββ π input/
| βββ π image1.jpg
| |...
β...
You can also use the absolute path in the enter input file here later
Note : the files have to be in alphabetical order relatively to the time they were taken in order to produce coherent results
and then launch the web app using (on ubuntu) :
make run
and on windows :
streamlit run streamlit_timeslicer/app.py
A new window will open in your browser, if not use the "localhost" link given in the terminal.
In order to create a video check the video output box and complete the informations.
Click the run me button and enjoy !
There is a command line tool for fast slicing. To use it you will need to be ine then timeslicer folder.
A typical usage will be the following :
python3 main.py -i "input/" -o "output/"
if you need any help just use :
python3 main.py -h
You have the following parameters :
-i <inputfolder> -o <outputfolder> -v (video output (WIP)) -d (do not display the image)