This guide will walk you through setting up a Python virtual environment, installing the necessary packages, and running the timelapse script.
-
Python Installed: Ensure you have Python 3.6 or higher installed on your system.
- You can check by running:
python3 --versionorpython --version.
- You can check by running:
-
Pip Installed: Verify that
pip, Python's package manager, is installed.- Check with:
pip --version.
- Check with:
mkdir timelapse_project
cd timelapse_projectCreate a virtual environment inside the project folder.
python3 -m venv venvThis will create a folder named venv containing the virtual environment.
-
On Linux/MacOS:
source venv/bin/activate -
On Windows:
.\venv\Scripts\activate
After activation, your terminal prompt should change to indicate the virtual environment is active.
Install the necessary Python packages:
pip install opencv-python tqdmTo confirm that the packages are installed:
pip listYou should see opencv-python and tqdm in the list of installed packages.
-
Copy the timelapse script (e.g.,
modified_timelapse_subfolders.py) into the project directory. -
Run the script:
python timelapse_subfolders.pyFollow the on-screen prompts to configure the video output.
When you're done, deactivate the virtual environment:
deactivate- If you need to install other packages in the future, ensure the virtual environment is activated before running
pip install. - For troubleshooting, check if the virtual environment is active and confirm Python and Pip versions.
This project and its documentation are available under the MIT License.