https://github.com/ajayrawat12/generate_heatmap
Generate HeatMaps from videos
https://github.com/ajayrawat12/generate_heatmap
opencv python
Last synced: 10 months ago
JSON representation
Generate HeatMaps from videos
- Host: GitHub
- URL: https://github.com/ajayrawat12/generate_heatmap
- Owner: ajayrawat12
- License: other
- Created: 2018-03-06T09:23:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:55:00.000Z (over 3 years ago)
- Last Synced: 2025-03-31T02:33:56.621Z (about 1 year ago)
- Topics: opencv, python
- Language: Python
- Homepage: https://pypi.org/project/generate-heatmap/
- Size: 33.2 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
GENERATE HEATMAP
=================
To generate the heatmaps from the specific camera's in a location.
To Use Simply do::
>>> generate_heatmap -i /Users/abc/heat_data/ew_grnd -p /Users/abc/heat_data/ewPickle -r EWGrndMorning -hl /Users/abc/heat_data/heatmaps/
-v /Users/abc/heat_data/CCTV_Videos/ -b /Users/abc/heat_data/baseImages/ewGcL.png -pass “XXXXXX” -u http://xxxx.abc.com/xxxxxxx -hc 1234
INSTALLATION
============
pip install generate-heatmap
ADDITIONAL DEPENDENCIES
=======================
CV2, you can install opencv for your specific platforms
either by using conda , miniconda or manually downloading and installing it.
External installation links, using conda_ and windows_.
.. _conda: https://anaconda.org/conda-forge/opencv
.. _windows: https://docs.opencv.org/3.3.1/d5/de5/tutorial_py_setup_in_windows.html
DESCRIPTION
===========
generate_heatmap is a command line program to generate heatmaps of the video you have in your local system.
Its a great way to understand how your space is being used by the community or Members.
It requires Python Interpreter, version 3.5+, and its not platform specific. It should work on Ubuntu, Windows or on MacOs.
USAGE
======
1. (-v or --vloc): Give the videos folder location, Download the videos and keep it in this folder.
2. (-i or --imgloc): Create a images folder, where all images generated from the videos will be stored.
3. (-p or --pickleloc): Create a pickle folder, pickle file will be stored to generate heatmap from it.
4. (-r or --reqdata): Give name to your heatmap image, name of the output heatmap image.
5. (-hl or --heatloc): Heatmap Folder, where final heatmap image will be stored.
6. (-b or --baseurl): Keep the base image of the video in one place and pass it as, (This image will be a reference image for the downloaded videos.)
Optional Parameters:
7. -pass, password of the api for your authentication.
8. -u , API EndPoint where heatmap image will be sent.
9. -hc, heatcode to identify which req image is this.
WORKING
========
1.Goes through the videos folder, and generates the images from all the videos available in the folder, It can process multiple videos also in a folder for same camera view in a folder.
2.Processing of the images is the next step, It processess all the images in a folder generated by cv2, compares all the images and generates the pickle file of the heatmap.
3.Heatmap generation is the last step, by taking the pickle file generate the heatmap image.