Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bartekpacia/pendulum
- Owner: bartekpacia
- Created: 2020-04-03T18:41:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-28T12:11:12.000Z (over 2 years ago)
- Last Synced: 2024-12-12T15:13:00.455Z (about 1 month ago)
- Topics: opencv, opencv-python, physics, python
- Language: Python
- Homepage: https://www.youtube.com/watch?v=HlnGRJhO-9I
- Size: 23.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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