فهرست منبع

Merge remote-tracking branch 'origin/dev' into dev

myhloli 3 ماه پیش
والد
کامیت
2ccad698d1
1فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 11 0
      mineru/model/table/rec/unet_table/wired_table_rec_utils.py

+ 11 - 0
mineru/model/table/rec/unet_table/wired_table_rec_utils.py

@@ -109,6 +109,17 @@ class ONNXRuntimeError(Exception):
 
 
 class LoadImage:
+    """
+    Utility class for loading and converting images from various input types to a numpy ndarray.
+
+    Supported input types:
+        - str or pathlib.Path: Path to an image file.
+        - bytes: Image data in bytes format.
+        - numpy.ndarray: Already loaded image array.
+
+    The class attempts to load the image and convert it to a numpy ndarray in BGR format.
+    Raises LoadImageError for unsupported types or if the image cannot be loaded.
+    """
     def __init__(
         self,
     ):