Open BennisonDevadoss opened 5 days ago
I guess that some of the 1000 images are large in size, which causes the memory request to exceed the limit when recognizing these images. At present, it is recommended to check the images sent for recognition to see if there are any images with particularly large sizes, such as 4000x7000. It is recommended to resize them in advance before sending them for OCR recognition.
Later, I will add this logic in the code to control the memory from exceeding the limit.
@SWHL, Thank you for the response! I have couple of follow-up questions based on your suggestions:
These two points are already under development, please refer to the develop branch, and they will be updated to the new version soon.
You can try it again with the rapidocr_onnxruntime==1.3.25
Problem Description:
While processing a large number of images (approximately 1000) using RapidOCR, I encountered the following errors midway through the process:
System Information:
rapidocr-onnxruntime 1.3.24
Reproducible Code:
Research & Findings:
These errors seem to be related to memory leaks during batch image processing. I am uncertain about how to resolve these issues within RapidOCR, especially when handling large numbers of images.
Additional Questions:
Any guidance or solutions would be greatly appreciated!