|
|
@@ -273,16 +273,17 @@ class RemoteControlV2(BaseClass):
|
|
|
print("开始单拍1-插入数据")
|
|
|
capture_one = DigiCam()
|
|
|
try:
|
|
|
- captrure_folder_path = capture_one.getCaptureFolderPath()
|
|
|
watch_dog = FileEventHandler()
|
|
|
+ if watch_dog.observer is None:
|
|
|
+ captrure_folder_path = capture_one.getCaptureFolderPath()
|
|
|
watch_dog.goods_art_no = record.goods_art_no
|
|
|
watch_dog.image_index = image_index
|
|
|
watch_dog.start_observer(captrure_folder_path)
|
|
|
print("开始单拍1-检查相机")
|
|
|
- camera_is_connect = capture_one.checkCameraConnect()
|
|
|
- if camera_is_connect is not True:
|
|
|
- self.sendSocketMessage(1, "相机未连接,请检查", device_status=-1)
|
|
|
- return
|
|
|
+ # camera_is_connect = capture_one.checkCameraConnect()
|
|
|
+ # if camera_is_connect is not True:
|
|
|
+ # self.sendSocketMessage(1, "相机未连接,请检查", device_status=-1)
|
|
|
+ # return
|
|
|
capture_one.run_capture_action("Capture")
|
|
|
print("开始单拍1-完成拍照")
|
|
|
time.sleep(1)
|