ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Face detection
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Wil

France
4 Posts

Posted - Dec 02 2019 :  04:20:47  Show Profile  Reply
Hello,
I am trying to make an application that would allow in addition to changes Tag, a detection of faces. I downloaded the evaluation version IEVision to test before buying it. I would like to know if the DLLs of the commercial version are the same as the ones I downloaded, because the detection made with an opencv-based tool, always detects more face than Ievision. Why this difference? Do you use these features? Should we parameterize components differently? Thank you for your opinion.
cordially

xequte

4888 Posts

Posted - Dec 02 2019 :  13:22:11  Show Profile  Reply
Hi Wil

The demo and purchased DLLs are the same. For face detection we use OpenCV, so should not be betting a different result from another OpenCV demo. If you are, please give us more details so we can investigate.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Wil

France
4 Posts

Posted - Dec 03 2019 :  03:44:47  Show Profile  Reply
I have several examples but I can not insert a screenshot to show you the difference. I can also provide you pictures on which the number of detected faces is different. If you tell me how to attach a photo, I put them online. Your forum asks me to connect while I am already.
cordially
Go to Top of Page

xequte

4888 Posts

Posted - Dec 03 2019 :  04:07:01  Show Profile  Reply
Hi Wil

You can email me the images at sales@xequte.com

What is the other OpenCV demo you are using?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

4888 Posts

Posted - Dec 04 2019 :  04:26:18  Show Profile  Reply
Thanks for emailing the files.

Our Face Detection demo "merges" all overlapping rectangles, so if you have two faces close together it merges them.

This is done by:

m_objectsFinder.mergeAllRects();


We've now modified the example (IEVision\GetFaces) to maintain the faces as separated. The new code is:

var
  i, j, count: integer;
  rects:TIEVisionVectorRect;
  objName:AnsiString;

      for i := 0 to CheckListBox1.Items.Count-1 do
      begin
        objName := AnsiString( CheckListBox1.Items[i] );
        count := m_objectsFinder.getFoundRectCount(PAnsiChar(objName));
        for j := 0 to count - 1 do
        begin
          with m_objectsFinder.getFoundRect(PAnsiChar(objName), j) do
          begin
            ImageEnView1.LayersAdd( iesRectangle, Rect(x, y, x+width, y+height), clRed, 2 );
            ImageEnMView1.SetImageRect(ImageEnMView1.AppendImage(), ImageEnView1.IEBitmap, x, y, x+width, y+height);
          end;
        end;
      end;


Whereas, before it was:

      // merge intersecting rectangles of all searched objects
      rects := m_objectsFinder.mergeAllRects();

      // loop among rectangles
      for i := 0 to rects.size - 1 do
        with rects.getRect(i) do
        begin
          ImageEnView1.LayersAdd( iesRectangle, Rect(x, y, x+width, y+height), clRed, 2 );
          ImageEnMView1.SetImageRect(ImageEnMView1.AppendImage(), ImageEnView1.IEBitmap, x, y, x+width, y+height);
        end;


This now gives the same result as in the other demo.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Wil

France
4 Posts

Posted - Dec 04 2019 :  08:22:48  Show Profile  Reply
Hello,
I corrected the code as you have proposed and genial it works perfectly. Thank you for your efficiency and your speed to find a solution that will certainly interest your customers. Thanks again.
best regard
Go to Top of Page

xequte

4888 Posts

Posted - Dec 04 2019 :  13:43:06  Show Profile  Reply
Glad to help

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: