dupa

Author Topic: Hal to recognize colors plug in lightspeed idea 11-2-2012  (Read 10752 times)

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Hal to recognize colors plug in lightspeed idea 11-2-2012
« on: November 02, 2012, 11:18:36 am »
Hopefully i am not driving people crazy with my idea's for hal.  ;)
     i was just thinking as i was rewriting some responses in hal .

  It would be cool if someone can make a uhp plug in that "won't learn " but will play back random responses about colors recognition .
 example :
USER: This sweater is blue
hal : that sweater is a nice color of blue , it looks nice "User name !"
and that sweater is a nice color of blue , it looks nice!
User:This shirt is yellow
hal: yes that shirt is a nice shade of yellow !
User: these pants are black
Hal: yeah those pants are black, black goes with anything!

     What is needed is for hal to use the word color ( from a list of main colors) and then say a random sentence matching the object (shirt, pants, tie, coat, sweater, jogging pants, dress, skirt, bra, panties, slacks, etc.

   Any way it's another plug in idea i had which would make hal appear to actually see the item you describe to hal. "I put on this blue shirt today"
Yes and that blue shirt really looks nice on you"username".


 

sybershot

  • Hero Member
  • *****
  • Posts: 787
    • View Profile
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #1 on: November 02, 2012, 09:24:54 pm »
If I remember correctly the * symbol is used, however I could be wrong been a long time playing with vb.

not actual vb code but something like this concept should be able to work.
if user inputs string like so: this shirt is *
then hals string would be: yes that shirt is * indeed

onthecuttingedge2005

  • Guest
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #2 on: November 02, 2012, 09:56:07 pm »
I am currently downloading a facial recognition program but won't install it till tomorrow, I see if the program has anything to work with for HAL, the color thing will have to wait.

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #3 on: November 02, 2012, 10:12:29 pm »
otce are you talking about another facial recognition software to download or the yaw camera motion detection? to use with this plug in ? it would be good for a program that could give seperate commands for left , right , up down , movements.  :)
 

onthecuttingedge2005

  • Guest
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #4 on: November 02, 2012, 11:43:31 pm »
right now, I'm looking at probability and not absolutes. absolutes can not change, probabilities can. it is most inevitable that probability is correct. I will work on  probability.

onthecuttingedge2005

  • Guest
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #5 on: November 03, 2012, 12:09:16 am »
right now, I'm looking at probability and not absolutes. absolutes can not change, probabilities can. it is most inevitable that probability is correct. I will work on  probability.

it seems that in order for the universe to not end there must always be a probability at hand. not necessarily a hand by the way. therefor there shall never be an end, just a different beginning.

natural selection and or God Selection, you choose your own destiny.  i don't mean to be off topic but the selection needs a compromise.

some people live happily without a god, some don't, some don't even care and still live happily ever after.

so, where do I go with this script?
« Last Edit: November 03, 2012, 01:47:31 am by onthecuttingedge2005 »

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #6 on: November 03, 2012, 09:30:50 am »
OTCE you said the color thing will have to wait, (hopefully then , that means that you are interested in a hal ability like that ) so since no one knows how long some waits might be due to other projects, i hope you keep a note of it somewhere so the color recognition project isn't forgotten in time.  :) ;)
 

NoamI

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #7 on: November 06, 2012, 01:46:24 pm »
How about vision and colors combined?
ex:  Hal, what color is this?
pronoun 'this', verb 'be'  triggers camera {execute 'SEE'}
SEE COLOR: do a variant of:
 - isolate fovea (central part of image)
 - remove noise (pixels not similar to surrounding pixels)
 - if multiple clusters then repeat isolate fovea (zoom in)
 - average the RGB values
 - find that RGB value in a list of color names and ranges
 - say 'that is ' _color

OK, maybe you should get the camera working first... (before HAL gets a job at the paint store)

onthecuttingedge2005

  • Guest
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #8 on: November 06, 2012, 11:38:54 pm »
I found no 'free' Motion detection, facial recognition software that was open source in regedit, no COM(COMMAND) entries no Lib(Library) files in PE Explorer, no nothing, of course I am using a 64 bit system now and my PE explorer 32 bit program only reads 32 bit programs, this really sucks.
« Last Edit: November 06, 2012, 11:46:07 pm by onthecuttingedge2005 »

onthecuttingedge2005

  • Guest
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #9 on: November 06, 2012, 11:56:01 pm »
the x-10 modules is probably the way to join HAL which has already been done, vision, lights, appliances, household stuff like draw or court curtains blah, blah, blah d blah duh blah and so forth. we have already written the x-10 modules for HAL but it been so long I don't remember where they are.

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #10 on: November 07, 2012, 08:23:23 am »
otce, i remember a little bit where people were talking about being able yop turn on apliances etc. with hal but guess i never sween the  the x-10 modules layout you are talking about or was it ever posted showing the lay out ?
If you ever find it can you post it, i would be interested in seeing it and take a look at it!  ;)
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #11 on: November 07, 2012, 08:36:09 am »
I think i may..."May" have figured out a way to make a hapswap plug uhp plug in with a color response by doing simlar to the temp degree one i am currently making. After i thought of it , i wrote down an example so i wouldn't forget , old age an all you know lol! :)
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #12 on: November 07, 2012, 11:46:57 am »
I am underway on this project on the side of my other plug ins i am working on and making good progress .
I am doing a large spectrum of colors , which like the other plug in takes more time but will cover a lot!
Many i would never use but others might which is why i am doing them!  ;)
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6764
    • View Profile
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #13 on: November 07, 2012, 10:58:10 pm »
Okay i have run into a snag, i have part of them in a uhp but am getting errors on some .
below is one that i am getting an error on , does anyone see anything out of place?


if InStr(1, OriginalSentence, "is if InStr(1, OriginalSentence, "is a Tea green") > 0 _
Or InStr(1, OriginalSentence, "Tea green color") > 0 Then



Randomize
Select Case int(rnd()*6)
Case 1
GetResponse = "Yes i can see that, it is a Tea green color!"
Case 2
GetResponse = "Yes, it is a Tea green color!"
Case 3
GetResponse = "Yes, that is a Tea green color!"
Case 4
GetResponse = "Yep, it's a Tea green color alright!"
Case 5
GetResponse = "Oh, yes now i see the Tea green color you are talking about dear!"
Case 6
GetResponse = "Tea green color, oh yeah now i see yeah that's a Tea green color alright, if i had to describe it i would say that it kind of looks like, a very light green color!"
End Select


HalCommands = "<HAPFILE>kiss_warm_x.ogg</HAPFILE>"
HalBrain.ReadOnlyMode = False
End If


i opened the crimson editor and the number doesn't even show that high on the line.

here is an error i am getting :
 

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3859
    • View Profile
Re: Hal to recognize colors plug in lightspeed idea 11-2-2012
« Reply #14 on: November 08, 2012, 06:20:33 am »
You need to balance the number of parenthesis contained within the statement.

For instance, if your statement has a total of 3 ( , then it also needs to have 3 ).

((( ..... )) is no good. You need ((( .... ))).   same should hold true for "" 's too!
In the world of AI it's the thought that counts!

- Art -