Tinger před 2 roky
rodič
revize
b0a65f9770
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      utils/util.py

+ 1 - 1
utils/util.py

@@ -65,7 +65,7 @@ def str_include(str_long: "str", str_short: "str") -> "bool":
 
 
 def read_img(content: "str") -> "np.ndarray":
-    return cv2.imdecode(np.fromstring(content, np.uint8), 1)  # noqa
+    return cv2.imdecode(np.frombuffer(content, np.uint8), 1)  # noqa
 
 
 def rot_img(img: "np.ndarray") -> "list[np.ndarray]":