ingressocr icon indicating copy to clipboard operation
ingressocr copied to clipboard

Improved agent name detection

Open cwestbye opened this issue 12 years ago • 5 comments

I was finding that the parsed agent name had trailing characters (probably from the share icon). Changing line 11 of the ingressocr script to truncate characters after the first space resolved this for me:

INGRESSUSER=$(grep -A2 AGENT $TEMPFILE | fgrep -v "LVL" | egrep "[a-z]" | tail -1 | cut -d' ' -f1)

cwestbye avatar Sep 27 '14 14:09 cwestbye

This didn't work with my sample image (http://i.imgur.com/6v0Qntd.png) but the current code (commit 9d6d01d7f83482624b02c20c10dd34341748563b) does. Can you provide a sample where your code works but the current doesn't? That way I can try to come up with something that works for both cases.

bvenable avatar Oct 03 '14 20:10 bvenable

Attached is a sample profile, that gives me an extra character after the agent name was parsed. profile_20140927_091946_1

cwestbye avatar Oct 04 '14 00:10 cwestbye

profile_20141006_201437_0

Here is an other profile which does not work with the current code. It tells me, my name is: tabachaC

I think the C is the Google+ Icon.

tabacha avatar Oct 07 '14 14:10 tabacha

Is this issue related to the agent names not being parsed at all ? I have a number of profiles where when ran through the script it leaves the Username blank

ikmyer avatar Oct 14 '14 18:10 ikmyer

We've made some improvements in this area using grayscale. Mostly it's an issue with the underlying OCR engine. I've looked into other engines but haven't yet found one that is perfect or even markedly better overall.

bvenable avatar Jan 19 '16 23:01 bvenable