Ask Your Question

Asha's profile - activity

2020-09-04 13:25:13 -0600 received badge  Popular Question (source)
2015-02-12 03:52:07 -0600 asked a question which are the compatible javacv for opencv 2.4.3 and opencv 2.4.10

I install the opencv 2.4.3 and also have the javacv 0.3 bin.

The java code is`

import static com.googlecode.javacv.cpp.opencv_core.*;
import static com.googlecode.javacv.cpp.opencv_highgui.*;
import com.googlecode.javacv.CanvasFrame;
public class demo {

    /**
     * @Param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
         //Load image img1 as IplImage
        final IplImage image = cvLoadImage("manpng.png");

        //create canvas frame named 'Demo'
        final CanvasFrame canvas = new CanvasFrame("Demo");

        //Show image in canvas frame
        canvas.showImage(image);

        //This will close canvas frame on exit
        canvas.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);  
    }

}

There is no compile time errors. the run time error is

jniopencv_core.dll: Can't find dependent libraries

i already set the path environment variable as C:\opencv\build\x86\vc10\bin.

I used 32 bit system. is my javacv not compatible with opencv 2.4.3? I can't fix this please any one help to solve this....

`
2015-01-31 10:50:02 -0600 commented question How to replace a certain ROI with another image?

How to find the mDetected rect object from the detected face... please anyone help to solve it.

2015-01-30 01:39:51 -0600 asked a question crop detected face image using four points in opencv java

I detect the face using opencv 2.4.10.

I did it in java

The output of the image is shown below

image description

Anyone help to crop the detected face and save it as a new jpg image in opencv java

Thanks

2015-01-30 00:55:19 -0600 commented answer Image Crop

I try this code posted by @Amit

    Rect roi(r.x, r.y, r.width, r.height);
Mat image_roi = image(roi);
image_roi.copyTo(cropimage);
imwrite("cropimage.jpg",image_roi);

Error on image(roi) method could you please explain the image(roi) method? Is it is built-in method or the programmer want to write the definition for that image(roi) method? Help me to solve the error I am working in java project Thanks