Libraryless. Click here for Pure Java version (8394L/58K).
1 | sS ocr_checkForRegexp(BufferedImage img, S regexp) { |
2 | BWImage bw = new(img); |
3 | L<Rect> rects = autoSegment(bw, ocr_recognizeMultiLine_scored_g); |
4 | ret ocr_checkForRegexp(bw, rects, regexp); |
5 | } |
6 | |
7 | sS ocr_checkForRegexp(BWImage img, L<Rect> rects, S regexp) { |
8 | LS texts = ocr_recognizeMultiLine(img, rects); |
9 | if (nempty(texts)) print("Texts found: " + sfu(texts)); |
10 | ret regexpFirstGroup_any(regexp, texts); |
11 | } |
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: | 160 / 266 |
Version history: | 8 change(s) |
Referenced in: | [show references] |