We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 867f8a8 commit 0383fb0Copy full SHA for 0383fb0
1 file changed
opencv_tools/jade_opencv_process.py
@@ -819,12 +819,14 @@ def open_gpu_capture(self):
819
Exit(0)
820
821
def opencv_cpu_capture(self):
822
- self.JadeLog.INFO("相机类型为:{},使用CPU解码,准备打开相机".format(self.camera_type))
823
if self.device == "Ascend":
824
from acllite import videocapture
825
self.capture = videocapture.VideoCapture(self.video_path)
+ self.JadeLog.INFO("相机类型为:{},使用Ascend芯片解码,准备打开相机".format(self.camera_type))
826
else:
827
self.capture = cv2.VideoCapture(self.video_path)
828
+ self.JadeLog.INFO("相机类型为:{},使用CPU解码,准备打开相机".format(self.camera_type))
829
+
830
if self.device == "Ascned":
831
ret,frame = self.capture.read()
832
if ret:
0 commit comments