gc.collect() output = "" try: with open(filename, 'wt') as f: for n,vec in feature_list: f.write(n) for v in vec: vec_str=",{0:.5f}".format(v) f.write(vec_str) f.write('\n') except: print("write error.") # # main # br.show_logo() br.exit_check() br.initialize_camera() feature_file = "/sd/features.csv" feature_list,feature_0,feature_100 = load(feature_file) task = kpu.load("/sd/model/mbnet751_feature.kmodel") print('[info]: Started.') info=kpu.netinfo(task) #a=kpu.set_layers(task,29) old_name='' marker_0_100=0
f.write('\n') except: print("write error.") def send_packet(message): data_packet = bytearray(message + '\x00') uart_Port.write(data_packet) vol = 10 # # main # br.show_logo(vol) br.exit_check() feature_file = "/sd/features.csv" feature_list, feature_0, feature_100 = load(feature_file) task = kpu.load("/sd/model/mbnet751_feature.kmodel") br.initialize_camera() print('[info]: Started.') info = kpu.netinfo(task) #a=kpu.set_layers(task,29) old_name = '' marker_0_100 = 0