I want to save face image as dataset to train a face classify model use detectNet-camera.
I just want to save face area not the whole image.
I try to add code to save the image in Jetson-inference detectNet-camera like below.
Save image in “if( !net->DrawBoxes((float*)imgRGBA, (float*)imgRGBA, camera->GetWidth(), camera->GetHeight(),
bbCUDA + (lastStart * 4), (n - lastStart) + 1, lastClass) )”
int imgW = bb - bb; int imgH = bb - bb; saveImageRGBA(filename, (float4*)imgCPU,imgW , imgH ,255.0f );
But the app crash and just save one broken image when start.
By the way, I can’t log in this forum use Safari.
How to search topic in this forum?