convert image to numpy array
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user