Skip to content

Commit

Permalink
Added count for storage items
Browse files Browse the repository at this point in the history
  • Loading branch information
josdemmers committed Apr 27, 2022
1 parent 0c89d46 commit d4d7648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NewWorldCompanion.Services/OcrHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private void HandleOcrImageReadyEvent()
string ocrText = tesseract.Read(image).Trim().Replace('\n', ' ');
var mapping = _ocrMappings.FirstOrDefault(m => m.key.Equals(ocrText), new OcrMapping { key = ocrText, value = ocrText });
OcrText = mapping.value;
OcrText = _newWorldDataStore.GetLevenshteinItemName(OcrText);
OcrText = string.IsNullOrWhiteSpace(OcrText) ? string.Empty : _newWorldDataStore.GetLevenshteinItemName(OcrText);

image.Dispose();
tesseract.Dispose();
Expand Down

0 comments on commit d4d7648

Please sign in to comment.