EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 02-13-2007, 03:51 PM
Jida Jida is offline
A Berserk Golem
 
Join Date: Mar 2006
Server: Unrest
Posts: 58
Default

First off, Hello!

My name is John and I < collect data for an items site >

I want to increase the usefulness of my website and i am running into a road block.

I currently am trying to figure out to extract item information (stats) from within the game. I am using djpeg and gocr to accomplish this feat.

When i take something like



and run "djpeg -bmp -grayscale -colors 2 test.jpg test.bmp"

This means to change it to greyscale and to 2 colors, it ends up being something like this



You see my issue ... no OCR can read that .... (I can't use the color one in its current form due to it gives the OCR a hemorrhage)

Is it possible for a interface creator to create a small "mod" that changes ITEM links to have the following

A white background
black text for everything.
using standard fonts (or a way to change the font so i can muck with it till i get it working)
no images (if possible)


This will allow me to speed up the data extraction phase and serve everyone with updated fast information =)

If anyone has suggestions on how to extract information from item links using a different method, please let me know
________
MOTORCYCLE TIRES

Last edited by Jida : 04-04-2011 at 06:02 AM.
Reply With Quote
  #2  
Unread 02-13-2007, 04:56 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

This will work for items, but not skills. Will finish later, time for Star Trek.

Edit: Updated. Should work for items, spells, and effects.
Attached Files
File Type: xml eq2ui_examine.xml (33.8 KB, 242 views)
__________________
If it ain't broke, it needs more features!

Last edited by Deathbane27 : 02-13-2007 at 07:10 PM.
Reply With Quote
  #3  
Unread 02-13-2007, 10:49 PM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

I do something like that for recipes (and will eventually do items) only I dump the data to a /say stream and then use a special PHP-based parser to extract the data.

Never thought of using OCR frankly, how well does it work for you?
Reply With Quote
  #4  
Unread 02-14-2007, 08:38 AM
Jida Jida is offline
A Berserk Golem
 
Join Date: Mar 2006
Server: Unrest
Posts: 58
Default

As soon as i get home tomorrow I will take a look at this and see if the OCR feature work with the updated screen shot XML file.

Valentines day and all ;-)

What i will do is to make a C# program that connects to my MYSQL database and will generate a link biased on information in the tables. Then paste that into EQ2 via the standard game interface.

It will then take a screen shot and auto crop.

Once auto cropped it will be placed through the ocr using the djpeg and gocr programs i spoke about earlier (search Google for the terms if you want to know more).

the text scanned from the image will be parsed and placed into the web database.



IF i can get everything working correctly, the links will be auto validated and link information will be put into the website automatically =).

So, I HOPE that the XML uploaded by the generous developer works as I intended. =)
________
Anime Hentai

Last edited by Jida : 04-04-2011 at 06:02 AM.
Reply With Quote
  #5  
Unread 02-15-2007, 08:46 AM
Jida Jida is offline
A Berserk Golem
 
Join Date: Mar 2006
Server: Unrest
Posts: 58
Default

Well.. heres what I got.

The problems that I came up with are



Looks ok, but when changed to monochrome to go through the parser.



The issue is the lighter text is not transforming to B/W text.

Also, is there a way to space out the characters? I need more spacing to ensure the OCR reads the output properly. Also, a bigger font would give the ocr better pattern recognition.

The output at the moment looks like this


Code:
T_nspDks an allv tD their hD_ vilI_e.

mis spell _ui_ an Odygv StDne.

Ta_et       Raid orGmup Fhend
Pmer       LZlB
Ca_ing      30.O xDnds
R_st       3 minut_
Range       UptDLO.O_en
Level       L3

mde_      Odindion



TelepDm ta_et tD a _one land_h
_u must be a _ti_en tD benetit t_m an vd_y.
mis mAt wnnd be cast duhng combd
It nd a Cih _mer


R_en_

I really appreciate the help

John
________
Pov blowjob

Last edited by Jida : 04-04-2011 at 06:03 AM.
Reply With Quote
  #6  
Unread 02-15-2007, 07:15 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Hmm... Not sure if we can do anything about the lighter text, it's hard-coded to come up that color. Might be able to script around it. Edit: Nope, nothing I can do about it. Only option would be to make it white text on a black background, since that's closer to what the game is expecting when it's picking colors.

Here's with the font enlarged to 20 pt bold Arial.
Attached Files
File Type: xml eq2ui_examine.xml (33.6 KB, 229 views)
__________________
If it ain't broke, it needs more features!

Last edited by Deathbane27 : 02-15-2007 at 07:22 PM.
Reply With Quote
Reply



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:02 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI