convert image to numpy array
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
class PV:
|
class PV:
|
||||||
@ -35,6 +36,7 @@ class Image:
|
|||||||
width = self.pvs.width.get()
|
width = self.pvs.width.get()
|
||||||
height = self.pvs.height.get()
|
height = self.pvs.height.get()
|
||||||
|
|
||||||
|
fpicture = np.asarray(fpicture)
|
||||||
fpicture.shape = (width, height)
|
fpicture.shape = (width, height)
|
||||||
return fpicture
|
return fpicture
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user