-
Notifications
You must be signed in to change notification settings - Fork 23
Update to deal with market demand and supply level information #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -231,3 +231,4 @@ EliteOCR.spec | |
|
|
||
| # file generated during build | ||
| EliteOCRcmd.py | ||
| errorlog.txt | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -164,10 +164,13 @@ def bpcExport(self): | |
| # QMessageBox.warning(self.parent,"System and station names identical", "There are rows where system and station names are identical. Export aborted.") | ||
| # return | ||
| timescreenshot = datetime.strptime(row[9],"%Y-%m-%dT%H:%M:%S+00:00") | ||
| if allowedtime > timescreenshot: | ||
| QMessageBox.warning(self.parent,"Too old for BPC", "You have been using at least one screenshot which is too old. BPC format only allows screenshots younger than 2 hours. Export aborted.") | ||
| return | ||
|
|
||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why remove the age limit restriction?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am using BPC offline for the route optimization. And I am not instantly OCR all screenshots. So in case I have data from last day, I still can export and import to BPC, without messing with the time-stamps of the files. |
||
|
|
||
| #if allowedtime > timescreenshot: | ||
| # QMessageBox.warning(self.parent,"Too old for BPC", "You have been using at least one screenshot which is too old. BPC format only allows screenshots younger than 2 hours. Export aborted.") | ||
| # return | ||
|
|
||
|
|
||
| bpc_format.append([unicode(id)]+row) | ||
|
|
||
| self.exportToCsv(bpc_format, file) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or just change the detection factor from 2.6 to 4 because of the taller commodity lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe. It is difficult for me to understand, how this would change something.
The main problem I had, was that the columns are defined with areas, but the OCR deals with boxes/words, and does not use the area definition. In the new screenshot the demand/supply number is only some pixels away from the level information. So I was capturing the number and the level in one word.