Jump to content

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

Line 122: Line 122:
== Download buffer to CPU memory ==
== Download buffer to CPU memory ==


When using GPU the output buffer must be allocated to CPU memory. To accomplish the allocation use the <code>copyToHost</code> method to download the output buffer to CPU memory.
When using GPU the output buffer must be moved back to CPU memory. To accomplish this, use the <code>copyToHost</code> method to download the output buffer to CPU memory.


<syntaxhighlight lang=cpp>
<syntaxhighlight lang=cpp>
Line 128: Line 128:
</syntaxhighlight>
</syntaxhighlight>


The output final buffer contains the modified image where the detected faces have been redact.
The output final buffer contains the modified image where the detected faces have been redacted.


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