Ask Your Question

tsvetanakos's profile - activity

2017-01-04 14:20:05 -0600 received badge  Famous Question (source)
2016-04-05 18:57:41 -0600 received badge  Notable Question (source)
2016-01-27 03:13:25 -0600 received badge  Popular Question (source)
2015-05-17 03:29:41 -0600 commented question Why I'm getting The method rectangle(Mat, Point, Point, Scalar) is undefined for the type Core in openCV 3?

Thanks! I fixed it using Imgproc.rectangle() I already replaced highgui with imgcodecs I love this library! I'm going ahead to test the video face recognition. :)

2015-05-17 03:05:39 -0600 asked a question Why I'm getting The method rectangle(Mat, Point, Point, Scalar) is undefined for the type Core in openCV 3?

I'm trying to follow THIS simple JAVA tutorial that detects a face and draws a rectangle, but at this line of code:

Core.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height),new Scalar(0, 255, 0));

I'm getting the following error:

The method rectangle(Mat, Point, Point, Scalar) is undefined for the type Core

I'm using openCV 3 and it seems that the rectangle method is removed, or changed, but there is no documentation.

Can someone give me a push? I know that I'm missing an extremely small point here, but I'm unable to spot it.

2015-05-17 02:52:29 -0600 received badge  Supporter (source)
2015-05-17 02:52:13 -0600 received badge  Critic (source)