Ask Your Question

Robby18's profile - activity

2019-01-21 04:10:28 -0600 received badge  Famous Question (source)
2017-11-18 09:35:36 -0600 received badge  Notable Question (source)
2017-01-01 09:51:46 -0600 received badge  Popular Question (source)
2014-06-30 07:49:57 -0600 commented answer How to create a semi transparent shape?

Thanks for the reply. I have just one last question, how do you use "alpha component" in the class Scalar? http://docs.opencv.org/modules/core/doc/drawing_functions.html

2014-06-30 07:41:01 -0600 received badge  Scholar (source)
2014-06-29 02:26:49 -0600 received badge  Student (source)
2014-06-28 10:34:05 -0600 asked a question How to create a semi transparent shape?

Hi,

I would like to know, how to create a semi-transparent form like this: http://tellthattomycamera.wordpress.com/

I tried this:

rectangle (img, Point (100,100), Point (300,300), Scalar (0,125,125,0.4), CV_FILLED);

But does not work.

I know that the functions do not support alpha-transparency when the target image is 4-channel. But i use a 3-channel image (from webcam).

So why doesn't it work?

Thanks

2014-06-26 18:48:52 -0600 commented question How to detect biggest face in Java

Thanks for the reply. However it does not work. In the documentation it says that: flags - Parameters with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade.

So that means that tag does not work with the new version 2.4.9, right?

So how can I do?

2014-06-25 17:22:29 -0600 received badge  Editor (source)
2014-06-25 17:18:59 -0600 asked a question How to detect biggest face in Java

Hi,

I have a question to ask, how do I find the biggest face in an image? When I did this program in C + + code was as follows:

cascade.detectMultiScale (Img, objects, 1.1f, 4, CASCADE_FIND_BIGGEST_OBJECT, Size (20, 20));

Where, exactly, I used the tag: CASCADE_FIND_BIGGEST_OBJECT

to identify the largest face.

But in Java as I do? In the documentation http://docs.opencv.org/java/org/opencv/objdetect/CascadeClassifier.html#detectMultiScale(org.opencv.core.Mat, org.opencv.core.MatOfRect, double, int, int, org.opencv.core.Size, org.opencv.core.Size))

I read this:

flags - Parameters with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade.

So how do I?

Thank you.

[Edit.]

Solved:

I solved it this way:

MatOfRect faceDetections = new MatOfRect(); 
faceDetector.detectMultiScale (image, faceDetections);
Rect biggestFace=new Rect(); 
for (Rect rect: faceDetections.toArray ()) 
{ 
if (rect.area ()> biggestFace.area ()) 
{ 
biggestFace = rect; 
} 
}