Ai Dreams Forum

Chatbots => Avatar Talk => Haptek => Topic started by: wgb14 on August 25, 2008, 06:01:25 pm

Title: Face detection for haptek characters
Post by: wgb14 on August 25, 2008, 06:01:25 pm
Hi all,

Attached are two files that will allow you to integrate Face detection with your Haptek characters. The control currently recognises left, right, far away, normal and close. All you have to do is to use the ActiveX wrapper to any development enviroment along with Haptek and you are ready to go. Please note that the control offers a number of properties and methods that I will explain  some other time. If you want download it and experiment with it. Its free!!! You will need to install OpenCV on your PC to make this work

This is just to say thanks to Freddy for his great Hap explorer.
Title: Re: Face detection for haptek characters
Post by: Maviarab on August 25, 2008, 06:09:52 pm
Sure folks will find it handy :) thanks.
Title: Re: Face detection for haptek characters
Post by: Freddy on August 25, 2008, 06:47:54 pm
Thanks  ;D  I will try and figure out how to use it!
Title: Re: Face detection for haptek characters
Post by: wgb14 on August 25, 2008, 07:29:44 pm
Actually it is quite simple

Call CtrlStart to initialise the control, Ctrl to stop it. The properties return the abs coordinates of the head (x,y) and descriptions (left right, etc). The property no face will return whether the face detection system can see the user or not. Thats all you need. The rest are settings of the control that you don't need to worry about. Let me know if you find any interesting applications.

I am still trying to find the solution for Haptek. It seems that the APi can load a script, pause it, but if you load another script the previous one is gone. If i will find a solution i will post it here.

Title: Re: Face detection for haptek characters
Post by: Freddy on August 25, 2008, 10:28:43 pm
Thanks.  Also see my comment on your other post regarding Hatpek.
Title: Re: Face detection for haptek characters
Post by: standog on August 26, 2008, 09:27:32 am
Thanks sounds good.
Sorry for being a bit thick, but where do you put the two .dll's
Title: Re: Face detection for haptek characters
Post by: wgb14 on August 26, 2008, 12:18:46 pm
It depende sont he kind of development enviroment that you are using. If it is .NET then put them in the bin -> debug folder and from the tollbox search for the ActiveX OpenCV wrapper. The ActiveX wrapper works like the old ocx technology. You can access its properties and methods almost from any program that supports ActiveX
Title: Re: Face detection for haptek characters
Post by: Freddy on August 26, 2008, 08:08:41 pm
I was assuming you could install OpenCV on windows, but I can only find information on Linux installation here:

http://opencvlibrary.sourceforge.net/

Got any pointers ?
Title: Re: Face detection for haptek characters
Post by: wgb14 on August 26, 2008, 10:21:17 pm
Are you sure? here is the link with both versions

http://sourceforge.net/project/showfiles.php?group_id=22870
Title: Re: Face detection for haptek characters
Post by: wgb14 on August 27, 2008, 01:42:35 am
It will take you some time to figure out how to use the control, but once you will make it, its fun. My character can now ask for me if i am away from the camera, or ask me to come close if i am too far away. I have also implemented perspective rendering which means that the character can follow the motionof my head to move in the 3d space. I would like to do more with OpenCV like gesture recognition but I don 't have the time now. Enjoy
Title: Re: Face detection for haptek characters
Post by: Freddy on August 27, 2008, 01:03:42 pm
Many thanks, I just couldn't find the Windows version for some reason.  What you have done sounds great, well done for figuring it out.
Title: Re: Face detection for haptek characters
Post by: wgb14 on August 27, 2008, 10:02:30 pm
Yes, for some reason you can not download it from Sourceforge. Can I perhaps upload it on the forum?
Title: Re: Face detection for haptek characters
Post by: Maviarab on August 28, 2008, 12:31:02 am
Sure thing wgb :)
Title: Re: Face detection for haptek characters
Post by: wgb14 on August 28, 2008, 04:09:03 am
Is there a direct link that I can use? It is quite difficult to upoload OpenCV as an attachment (it is 18 Mb). Oh! and by the way if you have the time please take a look at that and let me know what you think. I am trying to create a script crerator for Haptek completely based on taged text.

http://forums.msdn.microsoft.com/en-US/regexp/thread/8b5480fd-61e5-4d1d-83f8-221478764b4c
Title: Re: Face detection for haptek characters
Post by: Freddy on August 28, 2008, 12:02:33 pm
About OpenCV...rather than upload it to the forum can you email it to me ?  Use my address in my profile (just click on my name), when I have it I will put it on the server and provide a link.   Thanks.
Title: Re: Face detection for haptek characters
Post by: wgb14 on August 28, 2008, 02:54:56 pm
Fredy your email is hidden! You should be able to access it from here

http://rapidshare.com/files/140797919/OpenCV_1.0.exe.html
Title: Re: Face detection for haptek characters
Post by: Freddy on August 28, 2008, 03:31:18 pm
 :D  Oh dear Sorry!  For future reference you can use admin@aidreams.co.uk

Thanks for the link.
Title: Re: Face detection for haptek characters
Post by: wgb14 on August 28, 2008, 03:41:01 pm
No problem!!! enjoy!!! I am no wup for somethign even more complex (see my previous post). If you have any ideas please let me know. This utility should have been integreated into haptek itself, but If I am succesfull I will again giver it for free so everyone can enjoy