changed frombuffer call
This commit is contained in:
1 parent
864ee647ec
commit
b185261edc
1 file changed
+1
-1
@@ -18,7 +18,7 @@ class Symbol:
|
||||
if isinstance(data["image"], str):
|
||||
# Decode from base64
|
||||
image_bytes = base64.b64decode(data["image"])
|
||||
image_array = np.frombuffer(image_bytes, dtype=np.int32)
|
||||
image_array = np.frombuffer(image_bytes, dtype=np.uint8)
|
||||
else:
|
||||
# From list/array
|
||||
image_array = np.array(data["image"], dtype=np.int32)
|
||||
|
||||
Reference in new issue
Block a user