Jump to content

AI Based Object Redaction/Examples/Library Examples: Difference between revisions

No edit summary
Line 40: Line 40:


=== Resolution ===
=== Resolution ===
Resolution is a structure that consists of two parameters: width and height. The resolution of the input video/image may differ from the resolution accepted by the AI model. We should create both of these resolutions with the AI model resolution as 640x480 in case of ONNX face detector.
Resolution is a structure that consists of two parameters: width and height. Here we define the input resolution as 1080x720.


<syntaxhighlight lang=cpp>
<syntaxhighlight lang=cpp>
#define CONVERT_WIDTH 640
#define INPUT_WIDTH 1080
#define CONVERT_HEIGHT 480
#define INPUT_HEIGHT 720
rd::Resolution input_resolution = rd::Resolution(INPUT_WIDTH, INPUT_HEIGHT);
rd::Resolution input_resolution = rd::Resolution(INPUT_WIDTH, INPUT_HEIGHT);
rd::Resolution convert_resolution = rd::Resolution(CONVERT_WIDTH, CONVERT_HEIGHT);
</syntaxhighlight>
</syntaxhighlight>


Cookies help us deliver our services. By using our services, you agree to our use of cookies.