Abandoned [RELEASE] Trade Computer Extension

Status
Thread Closed: Not open for further replies.
Running BETA 7

And when I try to scan with OCR I get this
2015-06-07 14:59:19,030 CRITICAL:
File "EliteOCR", line 1077, in <module>
File "EliteOCR", line 1061, in main
File "EliteOCR", line 1013, in ocr
File "ocrmethods", line 23, in __init__
File "ocrmethods", line 59, in findAreas
File "ocrmethods", line 125, in getHUD

<type 'exceptions.IndexError'>: index 1080 is out of bounds for axis 0 with size 1080

2015-06-07 14:59:27,904 CRITICAL:
File "EliteOCR", line 1077, in <module>
File "EliteOCR", line 1061, in main
File "EliteOCR", line 1013, in ocr
File "ocrmethods", line 23, in __init__
File "ocrmethods", line 59, in findAreas
File "ocrmethods", line 125, in getHUD

<type 'exceptions.IndexError'>: index 1080 is out of bounds for axis 0 with size 1080

2015-06-07 15:02:16,821 CRITICAL:
File "EliteOCR", line 1077, in <module>
File "EliteOCR", line 1061, in main
File "EliteOCR", line 1013, in ocr
File "ocrmethods", line 23, in __init__
File "ocrmethods", line 59, in findAreas
File "ocrmethods", line 125, in getHUD

<type 'exceptions.IndexError'>: index 1080 is out of bounds for axis 0 with size 1080
 
Running BETA 7

And when I try to scan with OCR I get this
2015-06-07 14:59:19,030 CRITICAL:
File "EliteOCR", line 1077, in <module>
File "EliteOCR", line 1061, in main
File "EliteOCR", line 1013, in ocr
File "ocrmethods", line 23, in __init__
File "ocrmethods", line 59, in findAreas
File "ocrmethods", line 125, in getHUD

<type 'exceptions.IndexError'>: index 1080 is out of bounds for axis 0 with size 1080

2015-06-07 14:59:27,904 CRITICAL:
File "EliteOCR", line 1077, in <module>
File "EliteOCR", line 1061, in main
File "EliteOCR", line 1013, in ocr
File "ocrmethods", line 23, in __init__
File "ocrmethods", line 59, in findAreas
File "ocrmethods", line 125, in getHUD

<type 'exceptions.IndexError'>: index 1080 is out of bounds for axis 0 with size 1080

2015-06-07 15:02:16,821 CRITICAL:
File "EliteOCR", line 1077, in <module>
File "EliteOCR", line 1061, in main
File "EliteOCR", line 1013, in ocr
File "ocrmethods", line 23, in __init__
File "ocrmethods", line 59, in findAreas
File "ocrmethods", line 125, in getHUD

<type 'exceptions.IndexError'>: index 1080 is out of bounds for axis 0 with size 1080

Did you changed your FOV slider in ED? What version of EliteOCR you are using?
Perhaps seeebek can help you more with it: https://forums.frontier.co.uk/showthread.php?t=68771&highlight=eliteocr
 
Last edited:
Did you changed your FOV slider in ED? What version of EliteOCR you are using?

OCR Version 0.5.4.1

I am still having problems with those new commodities too OSIUM is showing being in the SALVAGE Category instead of the SAP 8 CORE CONTAINER the DB seems fine, but doesn't display in the TCE interface correctly here is my DB have a look

https://www.dropbox.com/s/9sexx0jjbmbhsa6/TCE.mdb?dl=0

I think I might have it entry 37 ought to have bee
IDTradegoodCategoryAvgPrice
37
ADVANCED CATALYSERS103055

I overwrote it trying to put in the new commodities fixed will test
 
Last edited:
OK I pretty sure I fixed the new commodities problem there displaying correctly now but OCR is still crashing with BETA 7



UPDATE:
Confirmed BETA 6 scans fine BETA 7 OCR crashes, updating to the latest OCR will let you know if that fixes it
 
Last edited:
OK I pretty sure I fixed the new commodities problem there displaying correctly now but OCR is still crashing with BETA 7



UPDATE:
Confirmed BETA 6 scans fine BETA 7 OCR crashes, updating to the latest OCR will let you know if that fixes it

Didnt change anything to OCRing in the V1.41 beta phase (1-7). Sent you a pm with your repaired database.
 
Last edited:
OK Eventure thanks for the DB fix, here is where I stand now BETA 6 scans fine and everything seems ok got the latest OCR installed 0.6.0.10 but with BETA 7 I get 1 screenshot scanned worth of prices and from there on nothing no matter how many times I hit the scan prices button also the save button is not showing up.

but at least the OCR is not crashing anymore :D

I have confirmed this behavior twice by installing patch BETA 7 scanning then patching back to BETA 6 and scanning the problem is clearly between 6 and 7
 
Last edited:
OK Eventure thanks for the DB fix, here is where I stand now BETA 6 scans fine and everything seems ok got the latest OCR installed 0.6.0.10 but with BETA 7 I get 1 screenshot scanned worth of prices and from there on nothing no matter how many times I hit the scan prices button also the save button is not showing up.

but at least the OCR is not crashing anymore :D

I have confirmed this behavior twice by installing patch BETA 7 scanning then patching back to BETA 6 and scanning the problem is clearly between 6 and 7

What shows the OCR Debug window? You can activate it at the Options panel.
 
Selecting old panel display not save state upon exit (As in, I have to reselect it whenever I load TCE up)
Is that by design, or have I come across a bug?

I ask, before the new panel causes my windows taskbar to appear on top of everything which obscures a small bit of TCE (My taskbar is to the right side, not at the bottom like normal people), so I always switch back to old, which I have to do each loadup
No big deal, more curious than anything

Edit: A small unimportant feature request, would it be possible to allow us to tell TCE, that an entered station has no commodity market?
I realize most people won't have a use for it, but I often take on the really good smuggling bulletin missions that has me go to stations that don't sell/buy anything, and I since I put all stations into the DB regardless (abit OCD of me), just more so I'm not told that station needs an update to prices
Obviously it's only a minor thing, so if it's to much hassle to add, no worries
 
Last edited:
Selecting old panel display not save state upon exit (As in, I have to reselect it whenever I load TCE up)
Is that by design, or have I come across a bug?

I ask, before the new panel causes my windows taskbar to appear on top of everything which obscures a small bit of TCE (My taskbar is to the right side, not at the bottom like normal people), so I always switch back to old, which I have to do each loadup
No big deal, more curious than anything

Edit: A small unimportant feature request, would it be possible to allow us to tell TCE, that an entered station has no commodity market?
I realize most people won't have a use for it, but I often take on the really good smuggling bulletin missions that has me go to stations that don't sell/buy anything, and I since I put all stations into the DB regardless (abit OCD of me), just more so I'm not told that station needs an update to prices
Obviously it's only a minor thing, so if it's to much hassle to add, no worries

Its only for the session, but beta 7 should have fixed cut off panels. So are your panels fine without selecting the old panel display mode? Why not set your taskbar to hide automatically?

For stations without a commodity market select "NONE" for the economy.
 
Last edited:
Its only for the session, but beta 7 should have fixed cut off panels. So are your panels fine without selecting the old panel display mode? Why not set your taskbar to hide automatically?

The panels are fine, it's just causes a focus issue where with ED which causes the taskbar to come into focus over the top of everything
I can't simply hide it, as when doing non ED stuff, I tend to need it visable at a glance

For stations without a commodity market select "NONE" for the economy.
Awesome, thank you
 
What shows the OCR Debug window? You can activate it at the Options panel.


Will do and will let you know when I can weekdays after all :p

OK here is what the debug log shows

2015-06-08 13:31:55,131 CRITICAL:
File "EliteOCR", line 1215, in <module>
File "EliteOCR", line 1199, in main
File "EliteOCR", line 1159, in ocr
File "\ocr", line 19, in __init__
File "\ocr", line 46, in makeStationImgClean

<type 'exceptions.TypeError'>: 'NoneType' object has no attribute '__getitem__'

Just ran it now I don't get this with BETA 6 everything scans ok and prices seem correct.


To just let you know Eventure I have posted my issues with Seeebek in his EliteOcr thread as well giving him the same errorlog as I placed here.
 
Last edited:
OK Eventure thanks for the DB fix, here is where I stand now BETA 6 scans fine and everything seems ok got the latest OCR installed 0.6.0.10 but with BETA 7 I get 1 screenshot scanned worth of prices and from there on nothing no matter how many times I hit the scan prices button also the save button is not showing up.

but at least the OCR is not crashing anymore :D

I have confirmed this behavior twice by installing patch BETA 7 scanning then patching back to BETA 6 and scanning the problem is clearly between 6 and 7

I have the same problem with Beta 7. When I look at what was exported by eliteOCR in the exports directory. I can see that the station name is messed up (most of the time) here is an example :

<?xml version="1.0" encoding="UTF-8"?>
<ocrresult>
<setup>
<language>eng</language>
<inputfile>C:\Games\Elite TCE\TCE\OCR_BMP\Screenshot.bmp</inputfile>
<resolution>1920x1080</resolution>
<marketWidth>1225</marketWidth>
<filetimestamp>2015-06-08T19:30:14+00:00</filetimestamp>
<ocrtime>2015-06-08T19:30:15+00:00</ocrtime>
</setup>
<location>
<system fromlog="true"></system>
<station conf="1.0">Lobachevsky S5Tion T</station>
</location>

What shows the OCR Debug window? You can activate it at the Options panel.

I tried this, but a command window opens on top, and until I close it the OCR doesn't run. I don't see any useful output in the command window.
 
I tried this, but a command window opens on top, and until I close it the OCR doesn't run. I don't see any useful output in the command window.

The command window will just tell you there was an error and to look in the errorlog.txt file which is in you EliteOCR directory

Question did you do the calibration? What version of EliteOCR are you running?
 
Last edited:
The command window will just tell you there was an error and to look in the errorlog.txt file which is in you EliteOCR directory

Question did you do the calibration? What version of EliteOCR are you running?

I am using version 0.6.0.10. I did do the calibration in EliteOCR before I installed TCE. And I also reran the calibration on the "instance" of EliteOCR that I copied to the TCE directory, with TCE up on the screen (thinking that maybe the overlap was confusing EliteOCR). The station name is generally not correct for me.


Here is an example of the output (i snipped some lines to make it shorter) from doing a screenshot and executing my "standalone" version of EliteOCR

System;Station;Commodity;Sell;Buy;Demand;;Supply;;Date;
...
Antal;Lobachevsky Station;Indium;6635;;9968841;High;;;2015-06-08T22:41:55+00:00;
...
Antal;Lobachevsky Station;Bauxite;273;;573812;High;;;2015-06-08T22:41:55+00:00;


Same result from running the embedded EliteOCR
System;Station;Commodity;Sell;Buy;Demand;;Supply;;Date;
...
Antal;Lobachevsky Station;Indium;6635;;9968841;High;;;2015-06-08T22:41:55+00:00;
...
Antal;Lobachevsky Station;Bauxite;273;;573812;High;;;2015-06-08T22:41:55+00:00;

I did go back and test the released version of TCE (not the beta) and I have the OCR problem with station names there also. When TCE opens I get this error. Maybe that is the cause ?


error.jpg

Once I hit ok TCE opens normally and seems to work ok. Except for the OCR being wonky.
 
I can confirm that Canada and Thailand both use format 1 "normally"

I haven't quit by the way, it's just that since the 1.3 Update I can barely play !
Lag and disconnection are very bad.
Hopefully it will resolve itself so that I can get back to bugging you up again :)
 
Last edited:
The option's panel does not save any choices between sessions, I assume this is intended, is it possible to get it save, or would that require abit to much work?
 
I am using version 0.6.0.10. I did do the calibration in EliteOCR before I installed TCE. And I also reran the calibration on the "instance" of EliteOCR that I copied to the TCE directory, with TCE up on the screen (thinking that maybe the overlap was confusing EliteOCR). The station name is generally not correct for me.


My suggestion try training EliteOCR as per Seesbek's instructions below

There are a few things you have to tell me:
1. EliteOCR version
2. Your HUD brightness
3. Game language

What you can always do is to perform "machine learning". Basically in Settings->Learning Wizard you go to the second screen chose some of your screenshots and click on OCR. Then check every single entry and correct it. If there are two letters in one field then just leave it empty so it would be ignored. If you have very many errors in this training snippets then there is definitely a problem with the brightness of your HUD.
Once you corrected all the entries go to next step and save the images to "user learning images" and then click on "perform training". Warning! this can take multiple minutes (in some cases even 5 minutes or more).
After you did it on 3-5 screenshots your results should be significantly better.

This is hapening because I had to change the image processing in order to support HUD colors. Unfortunately I cannot train EliteOCR for every Resolution, FOV and HUD color. It is easier to provide the user a tool to train the OCR themselves.
 
The option's panel does not save any choices between sessions, I assume this is intended, is it possible to get it save, or would that require abit to much work?

All selections at the Options panel are saved, beside OCR Debug and the Panel Display Mode (only for testing). You can check your TCE.ini, there are all listed.

You said, the new panel display causes a focus issue? It should also happen with the old display mode, because the difference between the old and the new is, that with the new mode, all userforms widths and heights are dependent on their original size, so they fit exactly. The old mode gives an userform (panel) a much larger space to display, but it cant be seen, because the background of the userform is transparent.

So please tell me, what is the difference for you between the two modes. I can make it, that the selection is saved, but i thought, i could replace the old with the new one, so there is no need in saving or selecting, because i remove the selection, if all goes well.
 
Last edited:
My suggestion try training EliteOCR as per Seesbek's instructions below

I have calibrated EliteOCR. I have not changed hud colours or brightness. If I remember correctly last time I calibrated EliteOCR said I had a 99% success rate.

EliteOCR works fine when run standalone, I have exported dozens of stations this way and have not see the station name be incorrect. When run thru TCE it seems to be working intermitently. I can't quite figure out what is causing the issue. I do know that when I "scan" the metals section at Lobachevsky Station in Antal. It gets this prob. Oddly the first page of the commodities screen doesn't seem to ever have an issue, just the metals section ? Maybe the station name is too long ? I can't speculate why it works for certain sections of the commodities page and not others.
 
I have calibrated EliteOCR. I have not changed hud colours or brightness. If I remember correctly last time I calibrated EliteOCR said I had a 99% success rate.

EliteOCR works fine when run standalone, I have exported dozens of stations this way and have not see the station name be incorrect. When run thru TCE it seems to be working intermitently. I can't quite figure out what is causing the issue. I do know that when I "scan" the metals section at Lobachevsky Station in Antal. It gets this prob. Oddly the first page of the commodities screen doesn't seem to ever have an issue, just the metals section ? Maybe the station name is too long ? I can't speculate why it works for certain sections of the commodities page and not others.

The station name is not important. TCE takes only the commodity data.
Please upload your database and i will check it, if there is a problem.
 
Last edited:
Status
Thread Closed: Not open for further replies.
Back
Top Bottom