SRL Archive - OSR Help

Detecing Molly @ Molly Random Event


J J

2012-06-13 04:03:33

Idea #1
1. Find Molly's hair color
2. Check if it finds skin color within a small box under the hair
3. If 1 & 2 are true then it will check if it finds the shoe colors within a box under the hair/skin
4. If it finds the hair color + the skin color under the hair color and the shoe colors, correct molly has been found

The dark brown hair colors are nearly exactly the same as the shoe colors. If it finds the shoes there will be no skin color directly under it.

Idea #2
Filtering out the floor and assembling a DDTM by using ATPA bounds for each cluster of colors. Then checking the colors with the colors from the Molly at start.. not sure if this would work but:
The blue line with orange dots is like a DDTM / color grabbing around the head / body / legs (if wearing jeans)

Currently I'm leaning towards idea #1 because it seems like it would be pretty accurate. Unfortunately the brown hair color is nearly exactly the same as the shoes so I can't just use the hair color.

Does anyone know how I could filter the colors like Idea #2 and make boxes around each cluster of colors that is not filtered? Or is there anyone with a better idea? :P

[S]paz

2012-06-13 04:08:42

What about Hair Style? whilst the brown hair color might be the same as the shoes, could then look at the shape?

I would agree #1 would be my first port of call.

J J

2012-06-13 05:57:07

From: [S]paz
What about Hair Style? whilst the brown hair color might be the same as the shoes, could then look at the shape?

I would agree #1 would be my first port of call.

The main problem is the perspective at Molly. There is not only a perspective grid where they walk and change height/width, but at the left and right side the machine grabber also turns around so the angle changes aswell.

I have the code already to detect how the grid is turned and I have made TBoxes for each spot molly can stand on.. at any angle. But I need to connect Molly to the right tile, once that is done I can input the tile in my grabber function and it will move the molly extremely fast

Here is a video of the latest code, I used the dark part of the green skirt to detect Molly.
http://www.youtube.com/watch?v=LC7frlVsBlI
[youtube]LC7frlVsBlI[/youtube]

At first I was planning to find different things about their clothes, such as a light green part on a long green skirt and a dark green part at the bottom of a long green skirt. Unfortunately that is not possible for every possible Molly so I have to use different things. Probably going with the hair color + double check by using skin color to avoid finding the shoes.

putonajonny

2012-06-15 05:49:20

Do the ones with specific hair always stay with the same hairClothes?

J J

2012-06-15 11:58:40

From: putonajonny
Do the ones with specific hair always stay with the same hair?

Sorry, how do you mean that exactly? You mean that the same hair colored Molly's tend to stay near eachother?

J J

2012-06-17 12:49:26

Sorry for having two posts in a row, but I still need idea's to make the solver. I have lended out one account to putonajonny now and I still have another account in the random event. If any SRL Member has the time to work on a script that returns Molly's position I can lend you an account.