增加註解
debug資料庫
This commit is contained in:
parent
8b97362ac2
commit
92d16344e2
@ -186,7 +186,6 @@ class Screwdriver_Detection(QtWidgets.QMainWindow, Ui_Screwdriver_Detection_Wind
|
|||||||
self.label_NGAmount.setText(_translate("Screwdriver_Detection_Window", self.translations.get(lang, {}).get('label_NGAmount_Text', "")))
|
self.label_NGAmount.setText(_translate("Screwdriver_Detection_Window", self.translations.get(lang, {}).get('label_NGAmount_Text', "")))
|
||||||
self.label_passAmount.setText(_translate("Screwdriver_Detection_Window", self.translations.get(lang, {}).get('label_passAmount_Text', "")))
|
self.label_passAmount.setText(_translate("Screwdriver_Detection_Window", self.translations.get(lang, {}).get('label_passAmount_Text', "")))
|
||||||
|
|
||||||
|
|
||||||
def Recipe_Change(self):
|
def Recipe_Change(self):
|
||||||
self.pushButton_Recipe_End.setEnabled(False)
|
self.pushButton_Recipe_End.setEnabled(False)
|
||||||
self.pushButton_Load_Recipe.setEnabled(False)
|
self.pushButton_Load_Recipe.setEnabled(False)
|
||||||
@ -202,8 +201,10 @@ class Screwdriver_Detection(QtWidgets.QMainWindow, Ui_Screwdriver_Detection_Wind
|
|||||||
self.recipe_model = 'Milwaukee'
|
self.recipe_model = 'Milwaukee'
|
||||||
|
|
||||||
elif self.engineer_mode_window.comboBox_recipe.currentText() == 'KleinTool':
|
elif self.engineer_mode_window.comboBox_recipe.currentText() == 'KleinTool':
|
||||||
self.awm_Key_for_Recipe = 'M11-2303002'
|
# ----------------------20250224修改 調整為更改公單後會換成對應模型--------------------------
|
||||||
self.dbwindow.awm_key = 'M11-2303002'
|
self.recipe_model = 'KleinTool'
|
||||||
|
# self.awm_Key_for_Recipe = 'M11-2303002'
|
||||||
|
# self.dbwindow.awm_key = 'M11-2303002'
|
||||||
|
|
||||||
self.dev_logger.info(f'Recipe_Change {self.MYINI.recipe} --> {self.engineer_mode_window.comboBox_recipe.currentText()}')
|
self.dev_logger.info(f'Recipe_Change {self.MYINI.recipe} --> {self.engineer_mode_window.comboBox_recipe.currentText()}')
|
||||||
self.MYINI.recipe_change(self.engineer_mode_window.comboBox_recipe.currentText())
|
self.MYINI.recipe_change(self.engineer_mode_window.comboBox_recipe.currentText())
|
||||||
|
15
test.py
15
test.py
@ -1,15 +0,0 @@
|
|||||||
import cv2
|
|
||||||
|
|
||||||
# 讀取圖片
|
|
||||||
image = cv2.imread(r'D:\Screwdriver_image\Milwaukee_0826\AOI_Origin\20240823_181249_torxtamperproof_1_16_0_0_0.png')
|
|
||||||
|
|
||||||
# 旋轉圖片 90 度 (順時針)
|
|
||||||
rotated_image = cv2.rotate(image, cv2.ROTATE_90_CLOCKWISE)
|
|
||||||
|
|
||||||
# 顯示圖片
|
|
||||||
cv2.imshow('Rotated Image', rotated_image)
|
|
||||||
cv2.waitKey(0)
|
|
||||||
cv2.destroyAllWindows()
|
|
||||||
|
|
||||||
# 保存旋轉後的圖片
|
|
||||||
cv2.imwrite(r'D:\Screwdriver_image\save_image\rotated_image.jpg', rotated_image)
|
|
Loading…
x
Reference in New Issue
Block a user