Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Facerecognition in EG. Is it possible???

Got a good idea? You can suggest new features here.
Post Reply
soundman33
Posts: 12
Joined: Mon Jul 26, 2010 3:51 pm

Facerecognition in EG. Is it possible???

Post by soundman33 »

Hey guys,

i have a question... :roll: Is it possible to build a plugin for one of these programs?

http://www.keylemon.com/

http://www.luxand.com/

The idea behind is that the plugin generates an Event with the file name if a matching file is found.
So EG can recognise who is looking into the webcam. This in combination with TTS could be realy amazing.

Thx for your help.

soundman33 :D
shaggy79
Experienced User
Posts: 129
Joined: Sun Jul 13, 2014 4:57 pm

Re: Facerecognition in EG. Is it possible???

Post by shaggy79 »

Hi soundman33,
Did you get this working :?:
I would be very interested in this too. :P

Paul.
shaggy79
Experienced User
Posts: 129
Joined: Sun Jul 13, 2014 4:57 pm

Re: Facerecognition in EG. Is it possible???

Post by shaggy79 »

Is this Possible :?: 8)
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: Facerecognition in EG. Is it possible???

Post by WharfRat »

Long ago (November 2000), I read an article in Dr. Dobb's Journal about a library called OpenCV.

It showed a guy standing in front of a video camera, waving his arms around like an orchestra conductor.
They used OpenCV with a video camera to analyze the movements and output sound from a music synthesizer.

OpenCV can now be found at SourceForge.
It has matured considerably since then, and even has Python bindings to it.

Granted, the learning curve is going to be steep.
First, learn Python.
Second, learn the OpenCV API.
There are many books you can read, and even find on the Internet, I can give you some links.
So, yes, it is very possible.

I have imagined doing something like that before, but I always get sidetracked by many other interesting things.

I can see many possible scenarios that could be implemented:
face recognition
gesture recognition
  • sign language
    battle language (like in Dune, or even what they do in the military on patrol)
    semaphore (wave a flag in each hand around, they once did a scene from Wuthering Heights on Monty Python using semaphore)
    giant barcodes on sheets of paper
    etc.
Many possibilites there if you want to get your hands dirty.

WharfRat.
Last edited by WharfRat on Tue Sep 02, 2014 5:07 pm, edited 1 time in total.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
shaggy79
Experienced User
Posts: 129
Joined: Sun Jul 13, 2014 4:57 pm

Re: Facerecognition in EG. Is it possible???

Post by shaggy79 »

All that is way over my head. :oops: But thanks for the info. :idea:
Not really good at these kind of things. Have looked at some vids on YouTube but just can't get my head round it at all. :cry:

Cheers Paul.
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: Facerecognition in EG. Is it possible???

Post by WharfRat »

Well, if things are way over your head, try slaying the beast instead.

First of all, anyone using EventGhost should learn Python.

Learning Python, 5th Edition
The first five chapters should teach you enough to get you going.
You can try it out in PyCrust (Help menu / Python Shell).
Lucky for us, BitMonster did EG in Python.
EG would have failed dismally if we had to use C++ for everything.

After that, skim through the following books:

Practical Computer Vision with SimpleCV
a gentle introduction to computer vision (no OpenCV here)

Programming Computer Vision with Python
computer vision that goes from PIL (included in EventGhost) all the way to an introduction to OpenCV

Learning OpenCV
this gets into OpenCV, but from a C/C++ perspective

After browsing through the three computer vision books, go back to the DDJ article.

Then you can decide if you are up to it or not.
Linear algebra is just matrix math.
Instead of multipling 2 numbers, like 3 x 2, you multiply a bunch of numbers by another bunch to get a bunch of numbers as a result.
If you feel brave, try installing some of the packages from the last two books, then play around.

Even if you decide that computer vision is not for you, at the very least you must tackle Python.

WharfRat.
Last edited by WharfRat on Tue Sep 02, 2014 3:51 pm, edited 1 time in total.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Facerecognition in EG. Is it possible???

Post by krambriw »

Well spoken, I can only agree,,,

We all started from scratch, I'm still a novis in python, I do trial & error all the time, learning hopefully something new

I would recommend to start playing with simple python scripts, also to explore the python shell available in EventGhost, that is in fact very powerful and provides all details of the *inner secrets* of EG

When you are ready to start writing your first plugin (there are many simpler ones you could start with), get yourself & install a good editor like Notepad++ or UltraEdit

Best regards, Walter
shaggy79
Experienced User
Posts: 129
Joined: Sun Jul 13, 2014 4:57 pm

Re: Facerecognition in EG. Is it possible???

Post by shaggy79 »

@ Wharfrat, 8)

Thanks for the info and links, I will definitely have a go at it again. :shock:
It all looks so confusing to me. :P I would like to learn at least some Python.

@ krambriw, 8)

I also agree,
Like I said I would like to learn it but it all just seems gobbledygook to me. :oops:
I have watched a few videos on youtube but it just lost me. :shock: :P
As soon as I get time I will go through the links.

Thanks again both of you,
Paul. :?: :shock: :P
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: Facerecognition in EG. Is it possible???

Post by WharfRat »

Forget YouTube.

This will be easier.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1640" Guid="{6D556CB2-5062-4521-AE37-54FA5A4D8CBB}" Time="1409827301.53">
    <Autostart Name="Autostart" />
    <Macro Name="Python command" Expanded="True">
        <Action>
            EventGhost.PythonCommand(u"print('hello world!')")
        </Action>
    </Macro>
    <Macro Name="Python script" Expanded="True">
        <Action>
            EventGhost.PythonScript(u"print('hello world!')\nprint('And now for something completely different...')")
        </Action>
    </Macro>
</EventGhost>
test_python.zip
(420 Bytes) Downloaded 213 times
Load test_python.xml into EventGhost.
Right-click the Actions in each Macro to see what is in them.
Execute each Macro.

The difference between them is a Python command can only have one statement, Python scripts can have many.

Then try the following:

Start PyCrust (in EventGhost use the Help / Python Shell menu item).
type print('Hello world!') and then press the Enter key.
To exit PyCrust, just close the PyCrust window.

Keep this in mind: we use Stackless Python, the Python version is 2.6, and PyCrust is like IDLE.

Now read the Learning Python book as follows:
Skim through chapters 1 to 3, but start paying attention from page 48 'What Not to Type: Prompts and Comments'.
Later in chapter 3, skip the command Line stuff, and the File Icon stuff.
The important stuff starts in chapter 4.
But you must definitely try the Python code you see in the book with PyCrust.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: Facerecognition in EG. Is it possible???

Post by WharfRat »

If you have never written a program before, then an easier book is Think Python.

After going through Think Python, you can go back to Learning Python, 5th Edition for more details.

If you look around that website, you will also find other Python books which may be useful as well.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
animacha
Posts: 1
Joined: Thu Oct 30, 2014 10:31 am

Re: Facerecognition in EG. Is it possible???

Post by animacha »

Hello,
I am new user and I was looking for a way to interact with eventghost with my rfid (mirror) when I saw what you're asking for. I'm not sure to understand your purpose cause I'm french but I suggest you to have look on the Sarah (like Eureka) project page : http://encausse.wordpress.com/s-a-r-a-h/
It's in french but you have the wiki in english : https://github.com/JpEncausse/SARAH-Documentation/wiki
Don't know a lot about the face recognition and gesture cause I need to install Sarah on my new pc in order to work with my kinect 360, I only know that it exists and eventghost plugin already exists.
Hope this will help.
Post Reply