Behold! My latest Project! (Map extractor from image files)
Don't you hate it when you want to give somebody's timing map a shot, but you are too fucking lazy to manually transcribe it over from the screenshot that they posted? Me too!
In fact, I'm so lazy, that I decided to write a program to do it for me :idea: It is about 85% complete at this point, but thus far does exactly what I want it to. Here is the breakdown. Someone posts this online: http://boostedmiata.com/timing/nov-09.jpg You decide that you want to give it a shot. You right click and copy that image and paste it into mspaint/gimp/photoshop/whatever. Then, you need to select only the portion of the map that contains values, leave the scale portions out of it, create a new image, and paste that in. Then save it to a directory you can find easily. Basically, you want to end up with this: http://lh4.ggpht.com/_tMYIeupe-9Q/TB...brainytest.JPG The program goes through and whites out everything that isn't numeric, leaving you with this: http://lh4.ggpht.com/_tMYIeupe-9Q/TB...Hwjg/strip.gif (I'm still playing around with various color thresholds to reduce artifacts and fragmenting) THEN It uses OCR (Optical Character Recognition) to rip the numbers out of that image in a text format. This is as far as I've gotten as of right now: http://lh6.ggpht.com/_tMYIeupe-9Q/TB...0/results1.JPG The end result will most likely have a GUI (based on either WxWidgets or GTK, I haven't decided yet) and will automatically be able to generate .vex files (you decide the scale at runtime) and will be able to handle ms1 and ms2 maps. Back to work for now, I'll post up progress and a final version when I'm done. |
You know, while your at work, your suppose to be working not jacking off on some personal program.
|
I dont know, all I read was
NerdNerd Nerd Nerdnerdnerdnerd Nerdiness and i'm a nerd. J/k, very creative lol. |
or you ask someone to export their timing table and you simply import it?
|
Originally Posted by SKMetalworks
(Post 587152)
You know, while your at work, your suppose to be working not jacking off on some personal program.
|
Originally Posted by Braineack
(Post 587155)
or you ask someone to export their timing table and you simply import it?
|
Apple and Macromedia and Google all just sued you.
|
Originally Posted by mgeoffriau
(Post 587158)
Apple and Macromedia and Google all just sued you.
OCR is nothing new. I bet Adobe Acrobat could get the text for you. |
Where did you get the ocr engine? Is it OS, in C/++, and whats the overhead? I've actually been thinking about a small personal project I want to use something similar using a spare camera and arduino in real time. I might be able to adapt that OCR for my use if you have the source.
|
Originally Posted by mgeoffriau
(Post 587158)
Apple and Macromedia and Google all just sued you.
|
Originally Posted by neogenesis2004
(Post 587160)
Where did you get the ocr engine? Is it OS, in C/++, and whats the overhead? I've actually been thinking about a small personal project I want to use something similar using a spare camera and arduino in real time. I might be able to adapt that OCR for my use if you have the source.
http://code.google.com/p/tesseract-ocr/ |
I dunno wtf you're talking about but I think I like it
|
Originally Posted by Jeff_Ciesielski
(Post 587164)
I'm using the python interface to Google's Tesseract engine for the OCR.
http://code.google.com/p/tesseract-ocr/ |
Originally Posted by Jeff_Ciesielski
(Post 587162)
I'll be releasing the Iphone App later this year ;)
|
well, I downloaded the source. Holy tons of files batman!
|
Originally Posted by neogenesis2004
(Post 587175)
well, I downloaded the source. Holy tons of files batman!
|
Figure out how to control the MS from my iPhone with TS and then I will be impressed. Lol
__________________ Best Car Insurance | Auto Protection Today | FREE Trade-In Quote |
Well, the source is like a 5.5MB footprint. Probably much less in binary. How large is the executable you downloaded? Also, it only supports TIFF and some BMPs which blows my nuts. Why it doesn't support RAW binary images is beyond me.... If it did I could probably store it on external memory and call it from there. sadface :(
|
Originally Posted by levnubhin
(Post 587183)
Figure out how to control the MS from my iPhone with TS and then I will be impressed. Lol
|
Wouldn't take too much to connect this to MS. You'd have to engineer a method of marrying it to your phone though.
http://www.sparkfun.com/commerce/pro...oducts_id=9913 PS: I love that site. If you're into embedded stuff you will <3 it. |
All times are GMT -4. The time now is 03:06 PM. |
© 2024 MH Sub I, LLC dba Internet Brands