-
Notifications
You must be signed in to change notification settings - Fork 856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Face recognition segmentation fault #415
Comments
can you paste in the error you're getting? |
Hi, I'm getting this error too when using the PngStream from ar-drone. The err message in my case is
|
I also get segmentation faults often when streaming from h264 sources. |
I'm 99% certain that the reason for the segfault is not h264. I'm now convinced that it is the thread safety of What happens to me is that the rate of incoming frames is too fast for the face detection to keep up, causing multiple calls to the asynchronized wrapper of |
I'm observing the same issue and I'm not using h264. I use image.detectObject(cv.FACE_CASCADE) on images for doing smart crops and given a few hours and decent load the process will segfault (in libopencv_objdetect.so). I'll try to serialize all detectObject calls to see if this helps. |
i get my sample code is
EDIT: it turns out i can stop the error from happening if i set the video feed to 1 fps. |
Hi, |
Hello i use this code to run the face recognition with nodejs and display img in a window and i get a segmentation fault. If i remove the line with m.detectObject (no detection) and show the img then is ok.
var cv = require('opencv');
// camera properties
var camWidth = 320;
var camHeight = 240;
var camFps = 30;
var camInterval = 100 / camFps;
var window = new cv.NamedWindow('Video', 0)
// face detection properties
var rectColor = [0, 255, 0];
var rectThickness = 2;
// initialize camera
var camera = new cv.VideoCapture(0);
camera.setWidth(camWidth);
camera.setHeight(camHeight);
setInterval(function() {
camera.read(function(err, im) {
}, camInterval);
The text was updated successfully, but these errors were encountered: