Open ljvmiranda921 opened 3 years ago
Thanks for suggesting - that's a great idea!
A simple (but also less elegant) solution you might want to try for now is:
import matplotlib.pyplot as plt
import numpy as np
viz = lp.draw_box(...)
plt.imshow(np.array(viz))
It will give you some matplotlib coordinate axes and you could use them as guideline hints.
It works, thank you so much!
Motivation
Hi everyone, thanks for this library! I've been testing it out and it's quite good. I'd like to have a feature request of displaying coordinate guidelines in
draw_text
to aid in filtering relevant info that I want.My workflow
I've been using LayoutParser in tandem with Google Cloud Vision. After I get the image, I usually call
draw_text
. As an example (this is public information of an LGU spend from the Philippines):If I want to get the
Current Assets
for2017
, I'd still need to do some trial-and-error to filter the exact coordinates for my rectangle. Maybe I'd try 100 first, then 120, etc.Request: I'd appreciate it if this function also has an option to display coordinate guidelines, so that I can easily "guess-timate" parts I want to filter.
I'm interested to contribute so please let me know which part of the code I can inspect. Thank you!