Skip to content

Artificial limit on supported image formats #5052

@timminator

Description

@timminator

The used PIL and opencv backends support a lot more file formats than jpg, png, jpeg, bmp, pdf.

Checklist:

Example and Error:

paddleocr ocr -i Path\to\image.ppm
...
Not supported input file type! Only PDF and image files ended with suffix `jpg, png, jpeg, bmp, pdf` are supported! But recevied `C:\Users\Tim\Desktop\test2.ppm`.

Environment:
paddlex 3.4.2
paddlepaddle 3.2.2 (CPU version)
Windows
Python 3.12.8

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions