Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) - Jetson Nano
**• DeepStream Version - 6.0 ** • JetPack Version (valid for Jetson only) - 4.6 • TensorRT Version - 8.0 • NVIDIA GPU Driver Version (valid for GPU only) • Issue Type( questions, new requirements, bugs) - questions
I rotated my camera sensor by 90 degrees to cover the varied heights of persons for my facial recognition project. I, I use flip-method=3 in nvvideoconvert in-order to counter adjust the rotation so that frames reach nvinfer in the expected orientation. nvinfer is a face-detector which is NVIDIA’s FaceDetect model(FaceDetect | NVIDIA NGC). With this rotation + counter rotation, nvinfer couldn’t detect faces.
I’m attaching the code here inference_module.py (30.7 KB)
Any clue on why nvinfer couldn’t detect after rotation + counter rotation?
Root Cause & Fix:
Rotating the frame and resizing it stretches the pixels in a way that it becomes difficult for the detector. I enabled ‘enable-padding’ property in streammux to avoid this. Now the detector can detect even after rotation + counter rotation.