Abandoned [RELEASE] Trade Computer Extension

Status
Thread Closed: Not open for further replies.
Is an API guaranteed, or just speculation? I don't know enough on the topic. Regarding EliteOCR, I understand that it's presently focused on commodities, but I'm trying to think ahead with this. You may be interested in http://sourceforge.net/projects/capture2text/ which is a very powerful program written in AHK that makes calls to libraries like tesseract and leptonica for OCR. Its current form allows the user to press WIN+Q to start drawing a box around the screen, and even shows parsing in real-time at the top of the screen. A click will save the parsed data to clipboard, but you can modify the AHK script to do anything you want with it. If you look at the script, it can be easily modified to run entirely from commands with args on where to grab imagery from the screen without having to go through any of the manual selection process. There's also an output folder that allows you to see both the original and binarized images from the most recent capture. I've done some testing, and it's definitely able to get the job done. My problem is I'm new to all this OCR, so I'm not exactly sure how to train this sucker. I started with https://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3 but quickly got overwhelmed. seeebek's trainer UI is pretty awesome by comparison. It sounds like the training results from EliteOCR may be able to be used by Capture2Text, but I just don't know enough right now to be sure. Of course, all this Capture2Text stuff is moot if seeebek ever decides to provide a simplified version of EliteOCR that just parses a portion of screen based on coordinate args, rather than trying to solve one whole problem (commodities only) in one chunk. Then I imagine we could still take advantage of his great trainer and have the flexibility to parse anything desired. But maybe I'm oversimplifying things =)

It can be done with the options I mentioned above, and I'm sure I can manage it somehow, but I'm hesitant since you're already talking about about making changes to your UI, which is to be expected. How would you prefer to digest any info parsed from such a script?

Thinking ahead is good, but we get an API (sometimes) to read all those data. The time needed for any other OCR is nearly equal to me. So i enhancing TCE in aspects, that not covered with the data collection.
 
Last edited:
In 1.39f, I'm getting random freezing again, like reported a while back. Appears random and this time the switching to Task Manager trick doesn't work - only way is to force TCE to close. Therefore no bug report.

Also, on setting new stations, the Rare Commodity drop down only appears to have a 'None' option.
 
In 1.39f, I'm getting random freezing again, like reported a while back. Appears random and this time the switching to Task Manager trick doesn't work - only way is to force TCE to close. Therefore no bug report.

Also, on setting new stations, the Rare Commodity drop down only appears to have a 'None' option.

For your freeze, could you try to Quit TCE,
Right click TCE.xlsm and TCE Setup.xlsm
in Properties, select UNBLOCK
then click APPLY and OK
and try TCE again and report back to tell if it helped at all.


Rare is not in use yet, it is there in preparation for the next TCE version with the extended LogBook
 
In 1.39f, I'm getting random freezing again, like reported a while back. Appears random and this time the switching to Task Manager trick doesn't work - only way is to force TCE to close. Therefore no bug report.

Also, on setting new stations, the Rare Commodity drop down only appears to have a 'None' option.

What UI you are using? Classic or compact? Freezing you mean TCE stops detecting you in space? The Rare Commodities are not included yet, it is a placeholder for it atm.

@TCE pauses detection, if panels stay open, beside:
- Ship Logbook panel
- Star System Summary panel

Next version update you will have the position detection status at the Options panel. You can also change the intervall ( 5 to 30 seconds) and the possibility to reinitialize the process.
 
Last edited:
I have to say that since the latest update in both TCE and EliteOCR they are working almost perfectly.
Had a lot of trouble with OCR a few weeks ago, but now it is almost perfect. I didn't do any of the training some have mentioned, just unzipped it, put it in the TCE OCR folder and played the game. Just an occasional missed commodity or incorrect price, but a second scan cures that.
My total scan time is around 1.9 seconds, a lot faster than before.
Have put UAC back to it's recommended settings and have had no problems with it.

A big thank you to Eventure and Seeebek for making Elite much more interesting and playable, and keep up the great work you are both doing.
 
In Excel 2007, what i am using, it is the ALLOW button at security area (not tab).

Not sure if you'd be getting the allow checkbox since you actually made the file !
Unless you re-download it from your website.
Unblock.jpg

as you can see, it says :

This file came from another computer and might be blocked to help protect this computer.


but since you made it, for you, it is not the case !
 
Not sure if you'd be getting the allow checkbox since you actually made the file !
Unless you re-download it from your website

as you can see, it says :

This file came from another computer and might be blocked to help protect this computer.


but since you made it, for you, it is not the case !

Thats correct, i didn't get the button, only on downloaded files.
unblock.JPG
Will add a note to the FAQ.
 
Last edited:
Here's what I was talking about regarding creating a .bat file pointing to the .xlsm and then creating a shortcut to that .bat and allowing the *shortcut* to run as administrator without mucking with the .xlsm at all.

tce_bat_admin.png
 
Last edited:
Here's what I was talking about regarding creating a .bat file pointing to the .xlsm and then creating a shortcut to that .bat and allowing the *shortcut* to run as administrator without mucking with the .xlsm at all.


Yeah, I have not tested it, but that should work too !!!

Since you do have to copy the xlsm files when you use anything but the installer,
I find it easy to unblock them while I'm at it anyway.

But your way, it would take care of it for the people using the installer
and work for anybody new to TCE who has not bothered to read the FAQ
or as missed that particular piece of information !

And I can't see any problem in using both methods at the same time !!! :)

The hardest part is getting the batch file to adapt automatically to everybody's different Excel's and TCE's path.

The only drawback that I can see is that it leaves yet another program/window running in the background
that "could potentially" cause some problems with Windows focus.
 
Last edited:
My problem is I'm new to all this OCR, so I'm not exactly sure how to train this sucker. I started with https://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3 but quickly got overwhelmed. seeebek's trainer UI is pretty awesome by comparison. It sounds like the training results from EliteOCR may be able to be used by Capture2Text, but I just don't know enough right now to be sure. Of course, all this Capture2Text stuff is moot if seeebek ever decides to provide a simplified version of EliteOCR that just parses a portion of screen based on coordinate args, rather than trying to solve one whole problem (commodities only) in one chunk. Then I imagine we could still take advantage of his great trainer and have the flexibility to parse anything desired. But maybe I'm oversimplifying things =)
Don't touch tesseract. I wasted 3 months with it. What I use no (openCV mlp) is much better, easier to train and far more accurate.
I will have a look and see if I can quickly get a ocr for system map done. The advantage there is, that the colors are constant. No HUD customization applies.

If you are still interested to try it yourself have a look at opencv. It is available for any system and has wrappers for many languages.
 
Just tried unblock in Windows 8.1, and on TCE start up got following:

Error in Startsequence
Error Line: 10

Error: (5) Invalid procedure call or argument
 
No.
In fact I could not find an unblock option when right clicking on the TCE.xlsm.
Maybe it's not there in Windows 8.1

Just tried unblock in Windows 8.1, and on TCE start up got following:

Error in Startsequence
Error Line: 10

Error: (5) Invalid procedure call or argument

Folks, I run 8.1 too. Just use the batch file method I posted above.

Thee hardest part is getting the batch file to adapt automatically to everybody's different Excel's and TCE's path.

The only drawback that I can see is that it leaves yet another program/window running in the background
that "could potentially" cause some problems with Windows focus.

The .bat can sit in the same dir as the .xlsm and use a relative instead of an absolute path. I'm not certain, but I'm guessing each user would have to create the shortcut and allow it to run as admin. I'm guessing downloaded shortcuts don't keep that option, but we could test it.

Leaving the window in the background is a little ugly, but it's no different than any other background app (like a web browser or TrackIR window) that many people leave running while playing.
 
Don't touch tesseract. I wasted 3 months with it. What I use no (openCV mlp) is much better, easier to train and far more accurate.
I will have a look and see if I can quickly get a ocr for system map done. The advantage there is, that the colors are constant. No HUD customization applies.

If you are still interested to try it yourself have a look at opencv. It is available for any system and has wrappers for many languages.

I appreciate the advice. One of the tough parts is the transparency of the text window that pops up in the middle when you select a station or such, but I checked the binarized output, and it looked good. I just don't know if there are any systems where a particularly bright object might sit behind that text.

As I said before, you needn't tackle the whole nav-map problem at once. If you're able to provide a command-line utility that merely provides parsing output on coordinate args (preferably with binarized and original pics output somewhere), then I could call that from within a simple AHK script, and we'd have the flexibility to do parsing in creative places (and with the pics, AHK could create a simple error-checking overlay), especially as changes are made to the game.

I'd love to muck through your source and figure it out myself, but I've never seen eye-to-eye with Python for some reason.
 
The hardest part is getting the batch file to adapt automatically to everybody's different Excel's and TCE's path.

The .bat can sit in the same dir as the .xlsm and use a relative instead of an absolute path. I'm not certain, but I'm guessing each user would have to create the shortcut and allow it to run as admin. I'm guessing downloaded shortcuts don't keep that option, but we could test it.

I was mistaken. Apparently when a relative path is used, Windows executes that from the location of the shortcut rather than the original .bat file sitting next to the .xlsm. So each user would have to manually copy/paste their TCE directory path into the .bat, which is not a hard thing to do from Windows Explorer anyway. OR the installer could just do it for them =) Maybe someone with more batch talent knows a way to reference the original batch file's directory in lieu of the shortcut's, but I couldn't find any such thing after a quick Google.
 
Last edited:
Status
Thread Closed: Not open for further replies.
Back
Top Bottom