Skip to content

Use only recognition model #1678

Closed Answered by lucas2lab
lucas2lab asked this question in Q&A
Discussion options

You must be logged in to vote

Found it :)

from doctr.models import recognition_predictor
from doctr.io import DocumentFile

img = DocumentFile.from_images('/path/to/img.jpg')

model = recognition_predictor(pretrained=True)
model(img)

Replies: 1 comment

Comment options

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