Skip to content
Discussion options

You must be logged in to vote

Hi @denivic 👋,

normally from my experience docTR works in the most cases more accure as EasyOCR would it be possible to share an example image to see what's going wrong ? :)

If you want to get the document orientation you can simply pass detect_orientation=True to the ocr_predictor (with ocr) otherwise you can use the following function:

def estimate_orientation(img: np.ndarray, n_ct: int = 50, ratio_threshold_for_lines: float = 5) -> float:

The detection_predictor returns the normalized boxes -> (113, 4, 2) (num_boxes, (coords - [[x1 y1], [x2 y2], [x3 y3], [x4 y4]])) to restore the values you need to multiply the values wi…

Replies: 8 comments 48 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by denivic
Comment options

You must be logged in to vote
24 replies
@felixT2K
Comment options

@felixdittrich92
Comment options

@felixdittrich92
Comment options

@denivic
Comment options

@felixdittrich92
Comment options

Comment options

You must be logged in to vote
16 replies
@denivic
Comment options

@felixdittrich92
Comment options

@felixdittrich92
Comment options

@felixdittrich92
Comment options

@denivic
Comment options

Comment options

You must be logged in to vote
6 replies
@denivic
Comment options

@felixT2K
Comment options

@denivic
Comment options

@felixT2K
Comment options

@felixT2K
Comment options

Comment options

You must be logged in to vote
1 reply
@felixdittrich92
Comment options

Comment options

You must be logged in to vote
1 reply
@felixdittrich92
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants