Skip to content
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

just a couple of 'shadowed local variables' compiler warning fixes #9

Closed
wants to merge 18 commits into from

Conversation

GerHobbelt
Copy link

just a couple of 'shadowed local variables' compiler warning fixes that got through while I manually extracted the template work from my mainline (warnings due to running MSVC at Level 4)

I.e. these fixes are shutting up compilers which report things like "local variable X is shadowing local variable X in outer scope in function F".

stweil and others added 18 commits July 14, 2021 22:20
Up to now Tesseract used double for training and recognition
with "best" models.

This commit replaces double by a new data type TFloat which
is double by default, but float if FAST_FLOAT is defined.

Ideally this should allow faster training.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
…vector (8x32) (contrasting 4 double FPs: 4*64)
…6d scale01234567 = _mm256_loadu_ps(scales)`, i.e. loading float vectors into double vector types. Extract from tesseract-ocr#3490.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
…at got through while I manually extracted the template work from my mainline (warnings due to running MSVC at Level 4)
Copy link
Owner

@stweil stweil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase also to my latest branch (sorry that my changes interferred with your pull reuqests).

src/api/hocrrenderer.cpp Show resolved Hide resolved
src/ccstruct/blamer.cpp Show resolved Hide resolved
@stweil
Copy link
Owner

stweil commented Jul 15, 2021

I cherry-picked your commit with a slightly different fix for blamer.cpp.

@stweil stweil closed this Jul 15, 2021
@GerHobbelt
Copy link
Author

👍 & Thanks for the continuous work on tesseract!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants