Open diamondbarcode opened 4 years ago
You are saying that you have a program that does nothing at 240fps and gets slower when you call face detection of every frame of video. I'm not sure what else you would expect to happen? It takes time to run a model on every frame of video and that particular model is not GPU accelerated by default.
You can try changing with the size of the image you pass to the function and whether or not you use the CNN model to see how that impacts the speed of face detection. Check out some of the various examples.
When I try an example from" https://github.com/dusty-nv/jetson-inference " to detect objects it stays around 300 to 240(u see I quote out the test). I think I may do it wrong or I do not know how to offload work to GPU.
I try the CNN model it performs worse then DNN(in other tests example). I am sorry I don't know how to approach this I just learning about this AI world in less than a month.
dlip : 19.21.0 cv2: 4.4.0 Cuda Support
Description
I just add this line to my python test code and my video out drop frame from 240~300 to 5~10 not sure what cause.
What I Did
add : faceLOC=face_recognition.face_locations(frame) to code