mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Disable FB swap
This commit is contained in:
parent
a4d1687dfe
commit
a8146eaeba
@ -107,9 +107,9 @@ def fb_dump():
|
|||||||
|
|
||||||
if (size[2] > 2):
|
if (size[2] > 2):
|
||||||
try:
|
try:
|
||||||
#img = Image.frombytes("RGB", (size[0], size[1]), buff, "jpeg", "RGB", "")
|
#print(size[0], size[1], size[2])
|
||||||
__write_img(buff, "/tmp/swap.jpeg")
|
#__write_img(buff, "/tmp/swap.jpeg")
|
||||||
img = Image.open("/tmp/swap.jpeg")
|
img = Image.frombytes("RGB", (size[0], size[1]), buff, "jpeg", "RGB", "")
|
||||||
buff = np.fromstring(img.tobytes(), dtype=np.uint8)
|
buff = np.fromstring(img.tobytes(), dtype=np.uint8)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print "JPEG decode error (%s)"%e
|
print "JPEG decode error (%s)"%e
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user