tensor 超长Maximum supported image dimension is 65500 fix

This commit is contained in:
banqingyuan
2024-09-22 16:44:53 +08:00
parent f5d1ee9481
commit 027a085bf1
+1
View File
@@ -45,6 +45,7 @@ class OCRLocNode:
loc = word["location"]
rectangles.append([loc['left'], loc['top'], loc['width'], loc['height']])
print(f"Image shape: {image_np.shape}")
# 处理图像
processed_image = process_image_with_rectangles(image_np, rectangles)