Jump to content

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

no edit summary
No edit summary
Line 4: Line 4:


In this section will be explained an example for face redaction running on GPU.  
In this section will be explained an example for face redaction running on GPU.  
The first thing you want to do is to include the library header as follows:
<syntaxhighlight lang=cpp>
#include <rd/redaction.hpp>
</syntaxhighlight>
== Backend ==
== Backend ==
First, we create the backend object. The backend provides factories to create the redaction algorithm and buffers. It provides the user the ability to select the desired backend for the execution of the algorithm for object redaction. The backend could be CPU or GPU.  
First, we create the backend object. The backend provides factories to create the redaction algorithm and buffers. It provides the user the ability to select the desired backend for the execution of the algorithm for object redaction. The backend could be CPU or GPU.  
Cookies help us deliver our services. By using our services, you agree to our use of cookies.