def api_ctl2(self, pic_path66): if self.thread_run: return self.thread_run = False self.thread_run2 = False colorstr, textstr = api_pic(pic_path66) self.apistr = colorstr + textstr self.show_roi1(textstr, None, colorstr) self.show_roi2(textstr, None, colorstr) localtime = time.asctime(time.localtime(time.time())) value = [localtime, None, None, None, None, self.apistr, self.pic_source] print(localtime, "|", "|", "| ", self.apistr, "|", self.pic_source) img_excel.excel_add(value) img_sql.sql(value[0], value[1], value[2], value[3], value[4], value[5], value[6])
def api_ctl(self, pic_path): colorstr, textstr = api_pic(pic_path) print(colorstr, textstr) return textstr