A program that extracts the motion from your camera.
This is a program that I made using python, because I was interested on motion extraction (after watching Posy's excellent video)
This program is very easy to setup.
-
Using Git:
-
git clone https://github.com/ctih1/Momera
-
cd Momera
-
pip install -r requirements.txt
-
cd src
-
python3 main.py
-
If you do not want to alter any settings, you can skip this section. If have issues, like the program using the wrong camera, you should follow this guide
Key | Action |
---|---|
Q | Quit the application |
H | Disable motion extractor to see the input video |
K | Change camera (left) |
L | Change the camera (right) |
Mousewheel Up | Alter the frame delay by +1 |
Mousewheel Down | Alter the frame delay by -1 |
Enter | Enter change resolution mode, type using your keyboard, then hit enter to apply (WIDTHxHEIGHT@FPS) (ex: 1920x1080@30) |
You may see some notifications when doing actions, or when getting errors. They are pretty self-explanatory, but on some errors, it might be hard to find a cause. Here's the most common one:
Failed camera switch #x
There are two reasons why this might happen:
- This camera doesn't exist.
- The camera's width or height is listed as 0
- Clone the repo
- Make a new branch in the following format: ("fixes" or "features")/(what you did)
- Push your branch into GitHub
- Make a pull request to master