This demo shows how you can achieve lossless zooming on the device. Demo will zoom into the first face it detects. It will crop 4K frames into 1080P, centered around the face. Demo uses face-detection-retail-0004 NN model.
You can turn MJPEG
on or off. It's set to True
by default, so cropped 1080P stream will get encoded into MJPEG on the device. On the host, it will just get decoded and shown to the user, but you could also save the MJPEG stream or stream it elsewhere.
python3 -m pip install -r requirements.txt
Run the application
python3 main.py