convert image to numpy array

This commit is contained in:
2021-04-06 17:48:02 +02:00
parent 230f442ce8
commit 4a87aa3d4d

View File

@ -1,4 +1,5 @@
from types import SimpleNamespace
import numpy as np
class PV:
@ -35,6 +36,7 @@ class Image:
width = self.pvs.width.get()
height = self.pvs.height.get()
fpicture = np.asarray(fpicture)
fpicture.shape = (width, height)
return fpicture