Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bartekpacia/pendulum

Measuring gravitational acceleration by analyzing video feed of a swinging mathematical pendolinum.
https://github.com/bartekpacia/pendulum

opencv opencv-python physics python

Last synced: 9 days ago
JSON representation

Measuring gravitational acceleration by analyzing video feed of a swinging mathematical pendolinum.

Awesome Lists containing this project

README

        

# pendulum

Measuring gravitational acceleration using mathematical pendolinum.

Never use it with amplitude > 10°. [Learn why][small-angle-approx].

> Lenght of the rope in videos in this repo is 0.62 m.

### Prerequisities

- Python 3.10

1. Install OpenCV

```
brew install opencv
```

2. Installing Python bindings for OpenCV

```
pip install opencv-python opencv-python-headless
```

### Usage

First argument is the name of the video file in the current directory.

Second argument is the length of the rope in meters.

Example:

```
$ python app.py film1_fhd.mp4 0.62
```

[small-angle-approx]: https://en.wikipedia.org/wiki/Pendulum_(mechanics)#Small-angle_approximation