Skip to content
/ Momera Public

A program that extracts the motion from your camera.

Notifications You must be signed in to change notification settings

ctih1/Momera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Momera

A program that extracts the motion from your camera. image

Introduction

This is a program that I made using python, because I was interested on motion extraction (after watching Posy's excellent video)

Installation

This program is very easy to setup.

  • Using Git:

    1. git clone https://github.com/ctih1/Momera

    2. cd Momera

    3. pip install -r requirements.txt

    4. cd src

    5. python3 main.py

Usage

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)

Notifications

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

Contribution

  1. Clone the repo
  2. Make a new branch in the following format: ("fixes" or "features")/(what you did)
  3. Push your branch into GitHub
  4. Make a pull request to master