def getDtct(): while True: global pos, size pos, size = dtct.obj_dtct() pos = int(pos) size = int(size) pos = int(pos) + 500 if (size > 200): size = '9' else: size = str(size / 20) size = size[0]
import obj_detection as dtct #import cloudy as cldy while True: pos, size = dtct.obj_dtct() if (size > 100): size = '9' else: size = str(int(size / 10)) print('1', size, pos) dtct.stop_dtct()