Ask Your Question

Astrgan's profile - activity

2018-11-16 01:53:35 -0600 received badge  Popular Question (source)
2015-12-24 01:51:17 -0600 received badge  Student (source)
2014-02-14 08:59:38 -0600 asked a question How to use opencv_createsamples to create many pictures?

Hello How to Use the opencv_createsamples make a lot of pictures (250) copies for training cascades Haar?

Please show an example.

P.S. sorry for my bad English

2014-02-05 06:51:08 -0600 received badge  Supporter (source)
2014-02-04 10:21:32 -0600 asked a question How to convert ROI in gray (monochrome) on android?

Hello. How to convert ROI in gray (monochrome) on android?

I try that, but it does not work:

public Mat onCameraFrame(CvCameraViewFrame inputFrame) {

      Mat image = inputFrame.rgba();
      Rect roi = new Rect(300, 50, 50, 10);
      Imgproc.cvtColor(image.submat(roi), image.submat(roi), Imgproc.COLOR_RGBA2GRAY);
      return image;
}

and

public Mat onCameraFrame(CvCameraViewFrame inputFrame) {

   Mat image = inputFrame.rgba();
   Rect roi = new Rect(300, 50, 50, 10);
   Mat sub =image.submat(roi);
   Imgproc.cvtColor(sub, sub, Imgproc.COLOR_RGBA2GRAY);
   sub.copyTo(image.submat(roi));
   return image;

}

2013-11-02 04:21:10 -0600 asked a question If you use the openCV library for programming on the desktop, how to display the image on the screen (window)?

If you use the openCV library for programming on the desktop, how to display the image on the screen (window)?

P.S Sorry,my english is bad

2013-10-31 13:45:32 -0600 received badge  Editor (source)
2013-10-31 13:44:47 -0600 asked a question How output image in window (java)?

How output image in window (java)?

On С was:

IplImage* image = cvLoadImage("C:\\image.png",1);
cvNamedWindow("image.png",CV_WINDOW_AUTOSIZE);
cvShowImage("image.png",image)