Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ctih1/momera

A program that extracts the motion from your camera.
https://github.com/ctih1/momera

camera cv2 extraction extractor fast linux macos motion motion-extraction opencv opencv-python python python3 webcam windows

Last synced: about 16 hours ago
JSON representation

A program that extracts the motion from your camera.

Awesome Lists containing this project

README

        

# Momera
A program that extracts the motion from your camera.
![image](https://github.com/ctih1/Momera/assets/78687256/cf7080e4-4673-4d5c-a244-abb42b0db809)

## 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