Metadata-Version: 2.4
Name: video-intensity-plot
Version: 0.0.7
Summary: A Cli Tool to plot video intensity graph over timeline.
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: opencv-python>=4.11.0.86
Requires-Dist: plotly>=6.1.2
Requires-Dist: tqdm>=4.67.1
Dynamic: license-file

# Video Intensity Plot (viplot)
This tools plot the intensity of the pxiels over the timeline of a video.

## How does it work?
1) Takes a video and extact frames from it.
2) Transform each frame to grey scale.
3) sum up all the pixels and divide by the number of pixels.
4) plot the resulting value againt the coresponding frame timestamp.


## Installation and running
### Method 1(using uv)
The easy and recommended way of installing and running.
If you don't have uv already install it from [here](https://docs.astral.sh/uv/getting-started/installation/):
```
uvx video-intensity-plot video.mkv
```
### Method 2(using uv install from source)
If you don't have uv already install it from [here](https://docs.astral.sh/uv/getting-started/installation/):
```
git clone https://github.com/neerajnangireddy/video-intensity-graph
cd video-intensity-graph
uv run viplot video.mkv
```

### Method 3(using venv and pip install from source)
```
git clone https://github.com/neerajnangireddy/video-intensity-graph
cd video-intensity-graph
python3 -m venv .venv
source .venv/bin/activate
pip3 install opencv-python plotly tqdm
python3 viplot.py video.mkv
```

## Demo
[watch here](https://github.com/user-attachments/assets/dd22375f-882f-4326-8ab2-e07f7633990b)
