Commit graph

31 commits

Author SHA1 Message Date
Andrey Golovizin
dac3475579 Simplify Image.color() and make in return ints instead of floats. 2014-09-02 14:33:39 +02:00
Andrey Golovizin
9c8de1ce0f Make GlyphDB store GlyphData objects instead of just text. 2014-09-01 17:15:21 +02:00
Andrey Golovizin
a44091b570 Add Image.color and PageObject.color. 2014-09-01 14:53:59 +02:00
Andrey Golovizin
a56fa55709 Disable overlap check in image.combine(). 2014-08-26 17:41:22 +02:00
Andrey Golovizin
ee6aca6c80 Move Image._iter_lines() to Page class. 2014-08-26 17:09:52 +02:00
Andrey Golovizin
e55b66ddd6 Avoid unnecessary conversions in Image.bitmap to make it faster. 2014-08-25 16:43:53 +02:00
Andrey Golovizin
6a3f8b3143 Remove unneeded code. 2014-08-25 16:36:44 +02:00
Andrey Golovizin
c5d04ff6aa Add Image.fits() and PageObject.fits(). 2014-08-25 16:22:01 +02:00
Andrey Golovizin
08e4382b66 Add Image.toqimage(). 2014-08-21 23:20:30 +02:00
Andrey Golovizin
48b179e2e0 Use color images as dictionary keys, not bitmaps. 2014-08-21 23:11:31 +02:00
Andrey Golovizin
f79d6da2c7 Move Image.combine() and friends to module level, add support for more than 2 images. 2014-08-18 19:00:53 +02:00
Andrey Golovizin
ada771b5c9 Rename Letter to Glyph. 2014-08-18 15:44:36 +02:00
Andrey Golovizin
a537f2140c Remove Image.key, add Letter.key. 2014-08-15 18:09:43 +02:00
Andrey Golovizin
34d7d123d1 Strip trailing spaces from license headers. 2014-08-15 16:47:23 +02:00
Andrey Golovizin
50b40458bc Add Image.space(). 2014-08-15 14:21:38 +02:00
Andrey Golovizin
5f7e6abcb9 Add Image.bbox(), Image.overlaps() and Image.combine(). 2014-08-15 14:21:20 +02:00
Andrey Golovizin
26ba867089 Mask adjacent blobs when extracting blob images. 2014-08-15 11:57:33 +02:00
Andrey Golovizin
4ff37720d9 Use x, y, top, bottom instead of x1, y1, x2, y2. Add aliases: left=x, top=y. 2014-08-13 22:43:55 +02:00
Andrey Golovizin
3d2b2ba30a Get rid of image.SubImage.
Every Image now stores its own data itself.
2014-08-13 19:13:05 +02:00
Andrey Golovizin
b05cc3853e Use connected-component labeling for finding letters. 2014-08-12 18:20:45 +02:00
Andrey Golovizin
2450f7f002 Move _iter_lines() method from SubImage to Image. 2014-08-10 21:40:10 +02:00
Andrey Golovizin
0ae6f19e60 Make Image.unframe() return a new image, not a SubImage.
This is to make line and letter absolute positions relative to the page, not to the original framed image.
2014-08-10 21:39:41 +02:00
Andrey Golovizin
b5194ca018 Add image.SubImage, move page-related logic to page.* classes. 2014-08-09 13:53:37 +02:00
Andrey Golovizin
00590bd644 Add license information. 2014-08-09 00:23:52 +02:00
Andrey Golovizin
ee22008820 Strip vertical whitespace from letters. 2014-08-08 17:24:32 +02:00
Andrey Golovizin
81147f8a50 Reorder Letter, Line and Page classes to get dependencies right. 2014-08-08 17:01:27 +02:00
Andrey Golovizin
2012da7957 Clarify Image._iter_children() a little. 2014-08-08 17:00:14 +02:00
Andrey Golovizin
3d6c3de316 Add Page, Line and Letter classes. 2014-08-08 15:53:23 +02:00
Andrey Golovizin
bd86367606 Move _repr_png_ closer to the top. 2014-08-08 13:11:29 +02:00
Andrey Golovizin
c427d60030 Add docstrings. 2014-08-08 13:08:18 +02:00
Andrey Golovizin
b934788bc0 Initial commit. 2014-08-08 12:46:17 +02:00