|
@@ -11,18 +11,18 @@ from datetime import datetime
|
|
|
# INFERENCE_SERVICE_URL = "http://127.0.0.1:7744"
|
|
# INFERENCE_SERVICE_URL = "http://127.0.0.1:7744"
|
|
|
# STORAGE_SERVICE_URL = "http://127.0.0.1:7745"
|
|
# STORAGE_SERVICE_URL = "http://127.0.0.1:7745"
|
|
|
|
|
|
|
|
-INFERENCE_SERVICE_URL = "http://192.168.31.243:7744"
|
|
|
|
|
-STORAGE_SERVICE_URL = "http://192.168.31.243:7745"
|
|
|
|
|
|
|
+INFERENCE_SERVICE_URL = "http://192.168.77.78:7744"
|
|
|
|
|
+STORAGE_SERVICE_URL = "http://192.168.77.78:7745"
|
|
|
|
|
|
|
|
# 2. 要处理的卡片信息
|
|
# 2. 要处理的卡片信息
|
|
|
formate_time = datetime.now().strftime("%Y-%m-%d_%H:%M")
|
|
formate_time = datetime.now().strftime("%Y-%m-%d_%H:%M")
|
|
|
CARD_NAME = f"卡 {formate_time}"
|
|
CARD_NAME = f"卡 {formate_time}"
|
|
|
|
|
|
|
|
# 3. 四张卡片图片的本地路径
|
|
# 3. 四张卡片图片的本地路径
|
|
|
-front_face_img_path = r"C:\Code\ML\Image\Card\_250915_many_capture_img\_250915_1643_no_reflect_hand_defect\7_front_coaxial_1_0.jpg"
|
|
|
|
|
-front_edge_img_path = r"C:\Code\ML\Image\Card\_250915_many_capture_img\_250915_1643_no_reflect_hand_defect\7_front_ring_0_1.jpg"
|
|
|
|
|
-back_face_img_path = r"C:\Code\ML\Image\Card\_250915_many_capture_img\_250915_1643_no_reflect_hand_defect\7_back_coaxial_1_0.jpg"
|
|
|
|
|
-back_edge_img_path = r"C:\Code\ML\Image\Card\_250915_many_capture_img\_250915_1643_no_reflect_hand_defect\7_back_ring_0_1.jpg"
|
|
|
|
|
|
|
+front_face_img_path = r"C:\Code\ML\Image\Card\_250915_many_capture_img\_250915_1643_no_reflect_hand_defect\45_front_coaxial_1_0.jpg"
|
|
|
|
|
+front_edge_img_path = r"C:\Code\ML\Image\Card\_250915_many_capture_img\_250915_1643_no_reflect_hand_defect\45_front_ring_0_1.jpg"
|
|
|
|
|
+back_face_img_path = r"C:\Code\ML\Image\Card\_250915_many_capture_img\_250915_1643_no_reflect_hand_defect\45_back_coaxial_1_0.jpg"
|
|
|
|
|
+back_edge_img_path = r"C:\Code\ML\Image\Card\_250915_many_capture_img\_250915_1643_no_reflect_hand_defect\45_back_ring_0_1.jpg"
|
|
|
IMAGE_PATHS = [
|
|
IMAGE_PATHS = [
|
|
|
front_edge_img_path,
|
|
front_edge_img_path,
|
|
|
front_face_img_path,
|
|
front_face_img_path,
|
|
@@ -233,4 +233,4 @@ if __name__ == "__main__":
|
|
|
# 在 Windows 上使用 ProactorEventLoop 可能会更稳定
|
|
# 在 Windows 上使用 ProactorEventLoop 可能会更稳定
|
|
|
if os.name == 'nt':
|
|
if os.name == 'nt':
|
|
|
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
|
|
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
|
|
|
- asyncio.run(main())
|
|
|
|
|
|
|
+ asyncio.run(main())
|