提交 ede7a67e 编写于 作者: JOKER0810's avatar JOKER0810

Update mainFunction.py

上级 e9740244
......@@ -73,7 +73,7 @@ class MyWindow(QMainWindow,LogIn.Ui_LogIn):
hand_pose = judge_handpose(handpoint_list) #通过各个关键点的位置判断手是什么姿势
if hand_pose == 'Thumb_up' and len(self.gesture_lines) > 10:
cv2.imwrite('picture/character.jpg', self.img_black)
cv2.imwrite('character.jpg', self.img_black)
self.my_thread.start() #开启识别文字图片的线程
self.img_black = np.zeros((h, w, c), dtype='uint8') #重置黑底图片
self.gesture_lines = [] #重置文字各个点的坐标
......@@ -169,7 +169,7 @@ class MyThread(QThread): # 线程类
def run(self): # 线程执行函数
try:
word = baiduOCR('picture/character.jpg') #文字识别
word = baiduOCR('character.jpg') #文字识别
self.my_signal.emit(word) # 释放自定义的信号
except:
self.my_signal2.emit()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册