6.0.0-beta1
7/7/25

[#7593] PHP Facedetect face driver broken
Summary PHP Facedetect face driver broken
Queue Ansel
Type Enhancement
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester robb (at) wtg (dot) cw (dot) com
Created 10/28/2008 (6096 days ago)
Due
Updated 10/30/2008 (6094 days ago)
Assigned 10/29/2008 (6095 days ago)
Resolved 10/29/2008 (6095 days ago)
Milestone
Patch No

History
10/30/2008 06:04:56 PM robb (at) wtg (dot) cw (dot) com Comment #18 Reply to this comment
yupp, works for me too now.



Many thanks,



Rob
10/30/2008 05:20:03 PM Michael Rubinsky Comment #17 Reply to this comment
Ok. Driver actually works now.



However, the issues that I remember from when I first started playing 
with this are still there. The things that it calls faces are 
sometimes quite funny.



I think I've gone just about as far as I can with this though.
10/30/2008 03:31:02 PM robb (at) wtg (dot) cw (dot) com Comment #15 Reply to this comment
finds faces now (more than one in a single portrait!?), however 
ansel/faces/img.php?face=X doesn't display the found faces.


10/30/2008 03:06:51 PM CVS Commit Comment #14 Reply to this comment
10/30/2008 02:19:59 PM Michael Rubinsky Comment #13 Reply to this comment
I've not managed to get a single hit, even with obvious front profile
portraits.
Yea, definitely not very successful. The function calls into the 
library "work" and don't throw any errors, so there's not much we can 
do about that on our side.
10/30/2008 02:17:25 PM Michael Rubinsky Comment #12 Reply to this comment
I would suggest using that  module as opposed to the facedetect module.
would do, but only link I can find is dead

http://www.voltex.jp/downloads/opencv-php-0.0RC1.tar.gz
*sigh* well, that's disappointing.  I'll try to dig around google to 
see if I can find any new hosts for that project.



Duck, do you have any idea where it might have gone?


10/30/2008 01:40:31 PM robb (at) wtg (dot) cw (dot) com Comment #11 Reply to this comment
I haven't been able to get it to recognize anywhere near as many 
faces as the openCV library does.
I've not managed to get a single hit, even with obvious front profile 
portraits.
10/29/2008 11:42:26 PM robb (at) wtg (dot) cw (dot) com Comment #10 Reply to this comment
I would suggest using that  module as opposed to the facedetect module.
would do, but only link I can find is dead



http://www.voltex.jp/downloads/opencv-php-0.0RC1.tar.gz
10/29/2008 10:09:54 PM Michael Rubinsky Comment #9
State ⇒ Resolved
Reply to this comment
The compile so module name changed, so we were checking for the wrong 
module name.



Fixed in the sense that no errors are returned, and the function calls 
into the library work, but I haven't been able to get it to recognize 
anywhere near as many faces as the openCV library does.  I would 
suggest using that  module as opposed to the facedetect module.
10/29/2008 10:07:49 PM CVS Commit Comment #8 Reply to this comment
10/29/2008 09:00:29 PM Michael Rubinsky Summary ⇒ PHP Facedetect face driver broken
 
10/29/2008 09:00:02 PM Michael Rubinsky Comment #7
State ⇒ Assigned
Assigned to Michael Rubinsky
Reply to this comment
ok, downloaded and compiled the new version, and I can now confirm this.

I'll look when I get a chance.
10/29/2008 05:35:18 PM robb (at) wtg (dot) cw (dot) com Comment #6 Reply to this comment
Here is a link to my dev ansel server's test.php:
http://dev.theupstairsroom.com/horde/ansel/test.php

It's under PHP Module Capabilities.
ok, a cvs update has fixed this, I can now see the facedetect pecl detected
As far as it working, it worked the last I tried it.  Looking at the
page you linked to, it looks like the code is the same as in Ansel's
facedetect face driver, so I don't see any reason why it wouldn't.
That being said, I don't have it installed at the moment.

1) Be sure your running the latest CVS code either HEAD or FW_3
should be fine
default checkout would be HEAD right?
2) Make sure you actually select the desired face driver in Ansel's
configuration.
I have this...



$conf['faces']['defs'] = 
'/usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml';

$conf['faces']['driver'] = 'facedetect';

$conf['faces']['search'] = '7';



opencv is detected and the xml file is at location above
10/29/2008 05:16:34 PM Michael Rubinsky Comment #5 Reply to this comment
Here is a link to my dev ansel server's test.php:

http://dev.theupstairsroom.com/horde/ansel/test.php



It's under PHP Module Capabilities.





As far as it working, it worked the last I tried it.  Looking at the 
page you linked to, it looks like the code is the same as in Ansel's 
facedetect face driver, so I don't see any reason why it wouldn't. 
That being said, I don't have it installed at the moment.



1) Be sure your running the latest CVS code either HEAD or FW_3 should be fine

2) Make sure you actually select the desired face driver in Ansel's 
configuration.
10/29/2008 05:15:56 PM robb (at) wtg (dot) cw (dot) com Comment #4 Reply to this comment
when configured following errors occur...



Notice: Uninitialized string offset: 0 in 
/usr/share/horde/ansel/lib/Faces.php on line 135



Notice: Uninitialized string offset: 0 in 
/usr/share/horde/ansel/lib/Faces.php on line 136



Notice: Undefined index: x in /usr/share/horde/ansel/lib/Faces.php on line 135
10/29/2008 05:10:50 PM robb (at) wtg (dot) cw (dot) com Comment #3 Reply to this comment
documentation doesn't reflect this and ansel/test.php does not appear 
to have any test for horde having found the pecl



having compiled, installed and loaded php-facedetect ansel face 
detection does not work, is the current version (1.0.0) supported?
10/28/2008 04:22:15 PM Michael Rubinsky Comment #2
State ⇒ Resolved
Reply to this comment
Those are two separate libraries and support for both have been in 
Ansel from the beginning of the face detection code.




10/28/2008 04:17:39 PM robb (at) wtg (dot) cw (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Use PHP Facedetect for face detection
Queue ⇒ Ansel
Milestone ⇒
Patch ⇒ No
State ⇒ New
Reply to this comment
opencv-php appears to be dead, modify Ansel to support PHP Facedetect 
as an alternative



http://www.xarg.org/project/php-facedetect/

Saved Queries