Libraryless. Click here for Pure Java version (8394L/58K).
sS ocr_checkForRegexp(BufferedImage img, S regexp) { BWImage bw = new(img); L<Rect> rects = autoSegment(bw, ocr_recognizeMultiLine_scored_g); ret ocr_checkForRegexp(bw, rects, regexp); } sS ocr_checkForRegexp(BWImage img, L<Rect> rects, S regexp) { LS texts = ocr_recognizeMultiLine(img, rects); if (nempty(texts)) print("Texts found: " + sfu(texts)); ret regexpFirstGroup_any(regexp, texts); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025116 |
Snippet name: | ocr_checkForRegexp |
Eternal ID of this version: | #1025116/9 |
Text MD5: | 1e634826b113e2e0a0dcd4959f5fe767 |
Transpilation MD5: | 7792d4867d6d41f65d456510b1475bd0 |
Author: | stefan |
Category: | javax / visual bots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-05 23:00:32 |
Source code size: | 417 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 227 / 345 |
Version history: | 8 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |