|
@@ -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]":
|