A study and comparison between quantization based foveated video compression and interpolation based variable resolution technique.
- python 3.6 or higher
- numpy
- opencv
- imutils
- pillow (PIL)
- argparse
-
Make sure the required dependecies are installed
-
Unzip the
FoveatedCompression.zip -
Open terminal and
cdto the extracted directory
-
In the terminal write the command below and run.
`python detect_faces_vr_compression.py -i image/test1.jpg` -
Here,
image/test1.jpgis the location of the test image -
Press
qto iterate through the output images -
the output images are saved in the root directory
-
In the terminal write the command below and run.
`python fovea_video.py -v video/test5.mp4` -
Here, "video/test5.mp4" is the location of the test video
-
To change the quantization rate use the command below:
`python detect_faces_video.py -v video/test5.mp4 -q 70`Here,
-qis an optional argument. -
Press
qto stop streaming and close all window -
the output frames are saved in the
saved_framesfolder
The basic code structure is based on the example code of pyimagesearch.
If needed, please contact at rahmanje[at]ualberta[dot]ca, subho[at]ualberta[dot]ca, hanming[at]ualberta[dot]ca.



