Jump to content

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

Line 50: Line 50:
=== Format ===
=== Format ===


Format is an enumeration of values for the supported formats, which are: RGBA, RGB, GREY and YUV. The format of the input video/image may differ from the format accepted by the AI model. We should create both of these formats with the AI model format as RGB in case of ONNX face detector.
Format is an enumeration of values for the supported formats, which are: RGBA, RGB, GREY and YUV. Here we define the input format as YUY2.


<syntaxhighlight lang=cpp>
<syntaxhighlight lang=cpp>
rd::Format format = rd::Format::RGB;
rd::Format input_format = rd::Format::YUY2;
rd::Format input_format = rd::Format::INPUT_FORMAT;
</syntaxhighlight>
</syntaxhighlight>


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