You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`im.draw_line(line, stroke={color}, stroke_width=1)`|`im.draw_lines(list_of_lines, **kwargs)`| Draws a line from a `line`-like object, or a 4-tuple bounding box.|
195
+
|`im.draw_vline(location, stroke={color}, stroke_width=1)`|`im.draw_vlines(list_of_locations, **kwargs)`| Draws a vertical line at the x-coordinate indicated by `location`.|
196
+
|`im.draw_hline(location, stroke={color}, stroke_width=1)`|`im.draw_hlines(list_of_locations, **kwargs)`| Draws a horizontal line at the y-coordinate indicated by `location`.|
197
+
|`im.draw_rect(bbox_or_obj, fill={color}, stroke={color}, stroke_width=1)`|`im.draw_rects(list_of_rects, **kwargs)`| Draws a rectangle from a `rect`, `char`, etc., or 4-tuple bounding box.|
198
+
|`im.draw_circle(center_or_obj, radius=5, fill={color}, stroke={color})`|`im.draw_circles(list_of_circles, **kwargs)`| Draws a circle at `(x, y)` coordinate or at the center of a `char`, `rect`, etc.|
197
199
198
200
Note: The methods above are built on Pillow's [`ImageDraw` methods](http://pillow.readthedocs.io/en/latest/reference/ImageDraw.html), but the parameters have been tweaked for consistency with SVG's `fill`/`stroke`/`stroke_width` nomenclature.
199
201
@@ -242,10 +244,11 @@ By default, `extract_tables` uses the page's vertical and horizontal lines (or r
242
244
"join_tolerance": 3,
243
245
"edge_min_length": 3,
244
246
"text_word_threshold": 3,
245
-
"text_tolerance": 1,
247
+
"keep_blank_chars": False,
248
+
"text_tolerance": 3,
246
249
"text_x_tolerance": None,
247
250
"text_y_tolerance": None,
248
-
"intersection_tolerance": 1,
251
+
"intersection_tolerance": 3,
249
252
"intersection_x_tolerance": None,
250
253
"intersection_y_tolerance": None,
251
254
}
@@ -261,6 +264,7 @@ By default, `extract_tables` uses the page's vertical and horizontal lines (or r
261
264
|`"join_tolerance"`| Line segments on the same infinite line, and whose ends are within `join_tolerance` of one another, will be "joined" into a single line segment.|
262
265
|`"edge_min_length"`| Edges shorter than `edge_min_length` will be discarded before attempting to reconstruct the table.|
263
266
|`"text_word_threshold"`| When using the `text` strategy, at least `text_word_threshold` words must share the same alignment.|
267
+
|`"keep_blank_chars"`| When using the `text` strategy, consider `" "` chars to be *parts* of words and not word-separators.|
264
268
|`"text_tolerance"`, `"text_x_tolerance"`, `"text_y_tolerance"`| When the `text` strategy searches for words, it will expect the individual letters in each word to be no more than `text_tolerance` pixels apart.|
265
269
|`"intersection_tolerance"`, `"intersection_x_tolerance"`, `"intersection_y_tolerance"`| When combining edges into cells, orthogonal edges most be within `intersection_tolerance` pixels to be considered intersecting.|
0 commit comments