Ask Your Question

khalifa's profile - activity

2015-06-09 08:21:50 -0600 commented question OpenCV Crash when processing in paralelle

Parallel calls: simultaneous calls in in perfoormance test

I use OpenCV in a java program

Load library System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

//Conversion image en BufferedImage InputStream inputStreamImage = new ByteArrayInputStream(bytesImageResize); BufferedImage bImageFromConvert = ImageIO.read(inputStreamImage);

        Mat matImage = retourneByteToMat(bytesImageResize);
        validateFace(matImage);
2015-06-09 08:01:13 -0600 commented question OpenCV Crash when processing in paralelle

public int detectFace(Mat matImage) throws URISyntaxException, WrongFaceException, IOException { URL urlCascadeFace = OpenCvService.class.getResource(DETECT_FACE_XML); CascadeClassifier visageDetector = new CascadeClassifier(Paths.get(urlCascadeFace.toURI()).toFile().getPath()); MatOfRect faceDetections = new MatOfRect(); Mat matrice = matImage.clone(); //Detection du visage visageDetector.detectMultiScale(matrice, faceDetections); if (faceDetections.toArray().length > 0) { return faceDetections.toArray().length; } else { throw new WrongFaceException(); } }

2015-06-09 07:59:05 -0600 commented question OpenCV Crash when processing in paralelle

private void validateFace(Mat matImage) throws URISyntaxException, WrongFaceException, IOException { int faces = openCvService.detectFace(matImage); if(faces != 1){ throw new WrongFaceException(); }

2015-06-09 07:57:14 -0600 commented question OpenCV Crash when processing in paralelle

Parallel calls: simultaneous calls in in perfoormance test

I use OpenCV in a java program

Load library System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

//Conversion image en BufferedImage InputStream inputStreamImage = new ByteArrayInputStream(bytesImageResize); BufferedImage bImageFromConvert = ImageIO.read(inputStreamImage);

            Mat matImage = retourneByteToMat(bytesImageResize);
            validateFace(matImage);
2015-06-09 05:21:17 -0600 asked a question OpenCV Crash when processing in paralelle

Hello,

I use OpenCV (2.4.10) for the detection of the face and eyes in an image.

The treatment is going very well with sequential calls but we begin to make calls in parallel was a crash at the lib (trace PJ).

The concern occurs on linux like wiondows.

Can someone tell me if the lib supports parallelism?

If this is the case, what may come my error ?

thankshs_err_pid30121.tiff