Ai Dreams Forum
Chatbots => Avatar Talk => Haptek => Topic started 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.
-
Sure folks will find it handy :) thanks.
-
Thanks ;D I will try and figure out how to use it!
-
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.
-
Thanks. Also see my comment on your other post regarding Hatpek.
-
Thanks sounds good.
Sorry for being a bit thick, but where do you put the two .dll's
-
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
-
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 ?
-
Are you sure? here is the link with both versions
http://sourceforge.net/project/showfiles.php?group_id=22870
-
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
-
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.
-
Yes, for some reason you can not download it from Sourceforge. Can I perhaps upload it on the forum?
-
Sure thing wgb :)
-
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
-
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.
-
Fredy your email is hidden! You should be able to access it from here
http://rapidshare.com/files/140797919/OpenCV_1.0.exe.html
-
:D Oh dear Sorry! For future reference you can use admin@aidreams.co.uk
Thanks for the link.
-
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