# Blob Detection and uart transport
import sensor, image, time,socket
from pyb import UART
import json
uart = UART(1, 115200,timeout_char=1000)
while(True):
if uart.any():
a=uart.read().decode()
print(a)
if(a==12):
img = sensor.snapshot()
elif(a==123):
print(0)