[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 24 KB, 617x439, Result.png [View same] [iqdb] [saucenao] [google]
1986460 No.1986460 [Reply] [Original]

Hey all. You know those "color puzzles" we've been doing lately? Well, I was bored in a class today, so I wrote a program that will solve them for me. I want you guys to try it out, so give it all you got. The only possible issue is detecting which regions border which other regions, so just remember to:

Have a pure white background, and non-white lines.
No JPGs, but that's obvious.
Also, it works best with a LARGE image and THIN borders. Although it doesn't mess up unless you make a pretty crappy drawing.

Pic related, it's a random scribble I threw through the program.

>> No.1986494
File: 23 KB, 856x854, jkagf.png [View same] [iqdb] [saucenao] [google]
1986494

easy one

>> No.1986493
File: 27 KB, 1033x1022, mapthis.png [View same] [iqdb] [saucenao] [google]
1986493

>> No.1986543
File: 60 KB, 856x854, Result.png [View same] [iqdb] [saucenao] [google]
1986543

>>1986494
Haven't looked closely, but it looks right. I trust it.

>> No.1986555
File: 91 KB, 1033x1022, Result.png [View same] [iqdb] [saucenao] [google]
1986555

>>1986493
That one took it a few seconds, but it made it through.

>> No.1986563

I wish EK were here... I wanted to impress her. :P

>> No.1986589

I think I speak on behalf of all of us when I say...


Source. Code. Now.

>> No.1986591

>>1986555
there are five colors in that one

>> No.1986605
File: 533 KB, 960x1440, mapthis.png [View same] [iqdb] [saucenao] [google]
1986605

>>1986563
>her
>hahaha oh wow.scr

>> No.1986615
File: 30 KB, 960x540, fourcolortheorem.png [View same] [iqdb] [saucenao] [google]
1986615

i'm pretty sure this is impossible... unless i have the rules wrong or something

>> No.1986617

>>1986591
Nice try, but black doesn't count.

I'll show some source code when I have some stuff perfected; it's not working on this one image, and I have no idea why.

>> No.1986626
File: 26 KB, 960x540, Result.png [View same] [iqdb] [saucenao] [google]
1986626

>>1986615
Didn't even need the program for that one, but I used it anyway.

>> No.1986634

>>1986591
Oh, I just noticed, the green. Yeah, that's because those small regions are so scrunched in. I really should have made the color black instead, but I made it green for debugging. I'm working on that.

>> No.1986635

>>1986617
red, orange, pink, blue, green

The greens could all be blue, but they're not. They're green.

>> No.1986647
File: 34 KB, 663x543, magnets and miracles.png [View same] [iqdb] [saucenao] [google]
1986647

can you run this through your magical miracle machine brOP?

>> No.1986676

Neat. Could you post the source?

>> No.1986692
File: 6 KB, 433x435, map.png [View same] [iqdb] [saucenao] [google]
1986692

>> No.1986696

>>1986647
It's not liking that one; again with the few green regions. I'll get back to you when I figure it out.

>> No.1986736
File: 41 KB, 663x543, Result.png [View same] [iqdb] [saucenao] [google]
1986736

>>1986647
Ok, here you go, I <span class="math">\it{think}[/spoiler] I fixed the problem.

>> No.1986738

>>1986736
I think it would be better if it didn't use white.

>> No.1986755

>>1986563
>implying girls browse /sci/

>> No.1986763

>>1986736
oh my god it's ronald mcdonald

>> No.1986770

>>1986755
you're a douche, which is lucky for you: since it'll be the closest you get to a vagina.

>> No.1986774
File: 105 KB, 576x720, butthurt-ad.jpg [View same] [iqdb] [saucenao] [google]
1986774

>>1986770
oh hai
i'll just leave this here for you, you might need it

>> No.1986786

>>1986774
thanx, use it much?

>> No.1986796
File: 49 KB, 200x190, 1283568557463.png [View same] [iqdb] [saucenao] [google]
1986796

>>1986786
>>1986774
u both mad

>> No.1986803
File: 32 KB, 469x428, Trollface_HD.jpg [View same] [iqdb] [saucenao] [google]
1986803

>>1986786
I'm not the one bashing people because they dare shatter your dreams of meeting a girl through /sci/. Pic related: this is worse than white knighting, because in this case the girls actually exist.

>> No.1986804

OP, here; just wanted to point out that I'm not taking any part in this conversation.

>> No.1986829

>>1986803
>I'm not the one bashing people because they dare shatter your dreams of meeting a girl through /sci/.

okay you caught me, i'm just butthurting for a /sci/ girl sooooo bad.

you win.

>> No.1986852
File: 10 KB, 250x250, 1283567177162.jpg [View same] [iqdb] [saucenao] [google]
1986852

>>1986829
>>1986803
oh my god you two are both such butthurt faggots just stop already. Just take a break from the internet until you can calm down and stop being such failures

>> No.1986867

>>1986852
OP here. I agree. I was joking, guys.

>> No.1986880

Can you do more pictures or post source code?

>> No.1986907

>>1986880
just scribble some lines in msPaint and post them in this thread and he'll probably convert them

>> No.1986910

>>1986852
you're right. i'm sorry.
moar pictures please.

captcha: Voyager cashiple

>> No.1986912

OP here. Disregard that, I suck cocks.

>> No.1986918

>>1986796
>>1986852
Don't be angry, bro. You just mad cause we stylin' on you.

>> No.1986928
File: 32 KB, 300x274, 1283567440351.jpg [View same] [iqdb] [saucenao] [google]
1986928

>>1986918
>get called out on being a butthurt faggot
>continue to be a butthurt faggot
I give up

>> No.1986937

>>1986928
i was butthurt, i said my sorry.
i don't know who the other troller is

>> No.1986939

>>1986928
>rage

>> No.1987012

SOURCE CODE NOW!