Commit graph

  • 49db236899 Glyph.detect_diacritic(): adjust apostrophe window. Andrey Golovizin 2014-08-25 16:56:09 +02:00
  • e55b66ddd6 Avoid unnecessary conversions in Image.bitmap to make it faster. Andrey Golovizin 2014-08-25 16:43:53 +02:00
  • 00508d1919 Remove unneeded conversion from int to float. Andrey Golovizin 2014-08-25 16:37:36 +02:00
  • 6a3f8b3143 Remove unneeded code. Andrey Golovizin 2014-08-25 16:36:44 +02:00
  • ead1751ed1 Display glyph elevation in glyph DB editor. Andrey Golovizin 2014-08-25 16:29:31 +02:00
  • d2567ea409 Rename glypheditor to glyphdbedit. Andrey Golovizin 2014-08-25 16:25:00 +02:00
  • 3ed91dff53 Rewrite diacritic detection code, apostrophes are now detected correctly. Andrey Golovizin 2014-08-25 16:23:17 +02:00
  • c5d04ff6aa Add Image.fits() and PageObject.fits(). Andrey Golovizin 2014-08-25 16:22:01 +02:00
  • 00a6b14e4c Show baselines in GUI. Andrey Golovizin 2014-08-25 16:21:08 +02:00
  • 9b8a52e4c0 Line._combine_diacritics(): do not lose freestanding diacritic-like symbols. Andrey Golovizin 2014-08-25 16:02:26 +02:00
  • 7c6faa6acd Decrease minimal line interval. Andrey Golovizin 2014-08-25 16:01:29 +02:00
  • dd847b4e98 Tweak diacritic detection to include ? and ! characters. Andrey Golovizin 2014-08-25 15:30:28 +02:00
  • 4f621493e5 Line.baseline: fix detecting baselines at image boundaries. Andrey Golovizin 2014-08-25 15:30:10 +02:00
  • 6d2a6b325b Use ordered dict for storing glyphs. Andrey Golovizin 2014-08-25 15:29:01 +02:00
  • 4f435b3a38 Tweac diacritic detection: decrease right-side detection window. Andrey Golovizin 2014-08-25 14:04:09 +02:00
  • fa4e76e256 Show filename in window title. Andrey Golovizin 2014-08-25 13:57:49 +02:00
  • 4bb1513cd9 Fix a typo. Andrey Golovizin 2014-08-25 13:52:24 +02:00
  • 9322bc1283 Open image files in alphabetical order. Andrey Golovizin 2014-08-25 13:49:31 +02:00
  • ce11d6e097 Tweak diacritic detection: diacritic should not be below letter top. Andrey Golovizin 2014-08-25 13:49:16 +02:00
  • ad3fffd7bc Disable score-based dicritic detection, use the first matching body. Andrey Golovizin 2014-08-25 13:41:03 +02:00
  • a7f2c332ca Fix Line._combine_diacritics(): the first 5 glyphs were not examined. Andrey Golovizin 2014-08-25 13:26:01 +02:00
  • 34f58f0471 Plug glyph db editor into the main menu. Andrey Golovizin 2014-08-25 13:12:36 +02:00
  • 95b0c62927 Add main menu. Andrey Golovizin 2014-08-25 12:52:48 +02:00
  • 603d860a2c Remove debug print. Andrey Golovizin 2014-08-25 12:39:11 +02:00
  • e7b9571377 Implement glyph sorting. Andrey Golovizin 2014-08-25 12:38:59 +02:00
  • 79a1a95a43 Add table header. Andrey Golovizin 2014-08-25 12:31:33 +02:00
  • 8a875d90bd Implement deleting glyphs. Andrey Golovizin 2014-08-25 12:14:08 +02:00
  • cf8575152e Display glyph images in the glyph editor. Andrey Golovizin 2014-08-21 23:24:07 +02:00
  • 08e4382b66 Add Image.toqimage(). Andrey Golovizin 2014-08-21 23:20:30 +02:00
  • 48b179e2e0 Use color images as dictionary keys, not bitmaps. Andrey Golovizin 2014-08-21 23:11:31 +02:00
  • c32415d843 Add GLyphDBEditor (actually a viewer for now). Andrey Golovizin 2014-08-21 22:47:57 +02:00
  • 182a49b359 Move glyph database logic to picelocr.glyphdb. Andrey Golovizin 2014-08-21 21:52:22 +02:00
  • 9656abe9b2 Attach diacritic to the closest body if multiple possibilities found. Andrey Golovizin 2014-08-21 21:40:37 +02:00
  • 5babd24450 Save glyph database on exit, load on startup. Andrey Golovizin 2014-08-21 21:19:57 +02:00
  • a929d1011b Accept a single directory argument on the command line. Andrey Golovizin 2014-08-21 21:09:01 +02:00
  • a666a9f85b Change Line.glyphs to be a list instead of an iterator. Andrey Golovizin 2014-08-18 19:02:01 +02:00
  • f79d6da2c7 Move Image.combine() and friends to module level, add support for more than 2 images. Andrey Golovizin 2014-08-18 19:00:53 +02:00
  • 6d824a46d6 Scroll to highlighted glyphs. Andrey Golovizin 2014-08-18 17:52:39 +02:00
  • ae20b22229 Do not center on new pages (preserve current position instead). Andrey Golovizin 2014-08-18 17:48:13 +02:00
  • d54c28fbc1 Make PageView properly update its scroll position when a new page is displayed. Andrey Golovizin 2014-08-18 17:47:50 +02:00
  • 47dcb5be7f Implement proper diacritic detection. Andrey Golovizin 2014-08-18 15:50:43 +02:00
  • ada771b5c9 Rename Letter to Glyph. Andrey Golovizin 2014-08-18 15:44:36 +02:00
  • c5cb68f063 Implement basic learning mode. Andrey Golovizin 2014-08-15 18:10:49 +02:00
  • a537f2140c Remove Image.key, add Letter.key. Andrey Golovizin 2014-08-15 18:09:43 +02:00
  • 08a6d004e7 Add OCREngine class. Andrey Golovizin 2014-08-15 18:09:28 +02:00
  • 6c3c93a39d Add GlyphEdit class. Andrey Golovizin 2014-08-15 18:09:20 +02:00
  • 34d7d123d1 Strip trailing spaces from license headers. Andrey Golovizin 2014-08-15 16:47:23 +02:00
  • f9be7be65e Tweak display colors. Andrey Golovizin 2014-08-15 14:42:07 +02:00
  • c4b170cc21 Implement correction for optical distance between letters. Andrey Golovizin 2014-08-15 14:40:02 +02:00
  • ce4252e361 Split lines into letters according to letter distances, ditch page.Word. Andrey Golovizin 2014-08-15 14:25:02 +02:00
  • 50b40458bc Add Image.space(). Andrey Golovizin 2014-08-15 14:21:38 +02:00
  • 5f7e6abcb9 Add Image.bbox(), Image.overlaps() and Image.combine(). Andrey Golovizin 2014-08-15 14:21:20 +02:00
  • 3407bac38b Add utils.pairwise(). Andrey Golovizin 2014-08-15 14:20:34 +02:00
  • 26ba867089 Mask adjacent blobs when extracting blob images. Andrey Golovizin 2014-08-15 11:57:33 +02:00
  • 4ff37720d9 Use x, y, top, bottom instead of x1, y1, x2, y2. Add aliases: left=x, top=y. Andrey Golovizin 2014-08-13 22:43:55 +02:00
  • 360ed844c2 Use absolute coordinates in Line.baseline. Andrey Golovizin 2014-08-13 20:25:01 +02:00
  • cd4aec6f11 GUI: make Ctrl-C in console work. Andrey Golovizin 2014-08-13 20:00:10 +02:00
  • 3ceda0a73f Reduce min_space between words from 10 to 5. Andrey Golovizin 2014-08-13 19:59:17 +02:00
  • a15cd7c4a2 Add Word.baseline and Letter.elevation. Andrey Golovizin 2014-08-13 19:55:31 +02:00
  • e3217d28b8 Make baseline be exactly _below_ the letter. Andrey Golovizin 2014-08-13 19:53:29 +02:00
  • 3d2b2ba30a Get rid of image.SubImage. Andrey Golovizin 2014-08-13 19:13:05 +02:00
  • 37c38cb9b2 Correct the dimensions of displayed letter boxes. Andrey Golovizin 2014-08-13 18:01:17 +02:00
  • 7ce6fa42c1 Add Line.baseline property. Andrey Golovizin 2014-08-13 15:30:04 +02:00
  • b756ea484b Add Page.lines, Line.words, Line.letters and Word.letters properties. Andrey Golovizin 2014-08-13 15:20:35 +02:00
  • e8d7d1f4d1 Add utils.collect_iterable decorator. Andrey Golovizin 2014-08-13 15:19:44 +02:00
  • 9155905398 Remove extra margins from GUI. Andrey Golovizin 2014-08-12 20:28:28 +02:00
  • b05cc3853e Use connected-component labeling for finding letters. Andrey Golovizin 2014-08-12 18:20:45 +02:00
  • 74570e6760 Organize imports. Andrey Golovizin 2014-08-10 23:07:53 +02:00
  • e9f034f54b Add proof-of-concept GUI. Andrey Golovizin 2014-08-10 22:57:08 +02:00
  • 163d02e6c6 Remove duplicate code. Andrey Golovizin 2014-08-10 21:40:43 +02:00
  • ed159cc2e6 Fix a typo. Andrey Golovizin 2014-08-10 21:40:25 +02:00
  • 2450f7f002 Move _iter_lines() method from SubImage to Image. Andrey Golovizin 2014-08-10 21:40:10 +02:00
  • 0ae6f19e60 Make Image.unframe() return a new image, not a SubImage. Andrey Golovizin 2014-08-10 21:39:41 +02:00
  • b5194ca018 Add image.SubImage, move page-related logic to page.* classes. Andrey Golovizin 2014-08-09 13:53:37 +02:00
  • e3a68c3043 Add more classifiers to setup.py. Andrey Golovizin 2014-08-09 00:24:08 +02:00
  • 00590bd644 Add license information. Andrey Golovizin 2014-08-09 00:23:52 +02:00
  • 79769a7770 Add setup.py. Andrey Golovizin 2014-08-08 23:09:40 +02:00
  • ee22008820 Strip vertical whitespace from letters. Andrey Golovizin 2014-08-08 17:24:32 +02:00
  • 81147f8a50 Reorder Letter, Line and Page classes to get dependencies right. Andrey Golovizin 2014-08-08 17:01:27 +02:00
  • 2012da7957 Clarify Image._iter_children() a little. Andrey Golovizin 2014-08-08 17:00:14 +02:00
  • 3d6c3de316 Add Page, Line and Letter classes. Andrey Golovizin 2014-08-08 15:53:23 +02:00
  • bd86367606 Move _repr_png_ closer to the top. Andrey Golovizin 2014-08-08 13:11:29 +02:00
  • c427d60030 Add docstrings. Andrey Golovizin 2014-08-08 13:08:18 +02:00
  • b934788bc0 Initial commit. Andrey Golovizin 2014-08-08 12:46:17 +02:00