Go Back   Champions of Regnum > English > The Inn

The Inn A place to gather around and chat about almost any subject

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09-07-2007, 03:03 AM   #11
ArcticWolf
Duke
 
ArcticWolf's Avatar
 
Join Date: Nov 2006
Location: 0x00CAFE
Posts: 3,366
ArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of lightArcticWolf is a glorious beacon of light
Default

Quote:
Originally Posted by Eli2
@ Xephandor:
What do you need the code for ?
You don't even have to use a Neural network.
Getting computer written text is very easy to do because every letter displayed is exactly the same.
And since you don't know the alpha channel only rgb you have to convert an int to a bool and hope there is enough information left. ^^
It is really no rocket science.
Of course this method sits nicely in a RegnumInterface Class.
Oh and YES i used Strings instead of booleans, my XMLEncoder thanked me and my cpu/ram did not mind.

Edit:
I forgot, the whitespace detection is not implemented jet.

The parameters:
img is a Small part of the screenshot containing the text.
r,b,g is the text color.

debug
if true, lines not containing to a letter are colored red.
if false, the detected text parts are white the rest is black.
I just want to learn, I'm studying programming languages and I thought it would be something new to me (in fact, it is :P) and maybe useful in my future... And since I'm a noob on this any help would be most welcomed!

So thanks a bunch for the code!!!! I really appreciate when people share their work. It seems clean, simple and effective. The kind of work I'd like to do

Don't worry about ram or CPU, people have plenty of this
__________________
I don't have a solution, but I admire the problem.
ArcticWolf no ha iniciado sesión   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:51 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved