
Well, I was working on a surprise for the group, but I need some help first. I have a nifty multiple face detection program working in C#.net. So far I have it programmed to recognize my face, DJ Sures, Sarah Connor and Alan Turing. Minus my face, I figure all EZ-robots should know who the other three people are.
My C# app generates a change in variable and displays this in a label in the form to show who's name it is for the face it sees. For this to be useful for integration with ARC I need to get this variable out of my app an into EZ-Builder.
I see two ways to do this, one is write the data to a .txt file, have ARC keep checking this text file, read the text file, if the text changes then act on that. - This seems sloppy and slow.
Option 2 seems better which is to use TCP/IP and Telnet. I've viewed the tutorial here: http://www.ez-robot.com/Tutorials/Help.aspx?id=159 and I fundamental understand it. I can connect to ARC with Telnet. I
I'm sure I can tell my C# app to send telnet data. What I can't wrap my head around is how to I make a script in ARC to look for an incoming variable on the TCP/IP port such as "$Face_Name" so that ARC can then act on that data?
Can someone help me with that? Or is there a 3rd option I'm not thinking of yet that would be better? I'm looking forward to get this figured out so I can share my app with the group.
Thank you!
-Justin
Give me a minute or two and I'll knock up a quick script example for you.
Code:
It's that simple
All variables need to exist before using them in commands otherwise it'll throw that error. I usually define all variables as "null" or as 0 in the init script.
And yes, I changed it before you posted as I saw the potential problem
This is an awesome thing.... How are you adding faces to the recognition engine? Will it be something users will be able to easily (or not easily, but without C# programming skill) do?
I would love to have my robot recognize me, my wife, my cat, and a couple of friends, and treat everyone else as stranger (or when in "security mode" potentially hostile).
I also love your choice of default recognized faces. I would suggest adding Issac Asimov.
Alan
I'm getting so close I smell it. Thank you Rich!
Alan
How do you plan to share that? Will us be able to download it From here ?
Thanks!
Soon I'll upload it with source code and start a project page. I'm going to call it EZ-Face.
Thank you Rich and DJ! I'm looking forward to hearing the groups thoughts on it.
I think everyone has been thinking about when something like this would be here...
Cant wait to play with it.
Still waiting for my Roli to be shipped , but will have a play on ARC to get familiar with it.
Hais.