Skip to content

Commit 0383fb0

Browse files
committed
update 日志输出Ascned芯片解码
1 parent 867f8a8 commit 0383fb0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

opencv_tools/jade_opencv_process.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,12 +819,14 @@ def open_gpu_capture(self):
819819
Exit(0)
820820

821821
def opencv_cpu_capture(self):
822-
self.JadeLog.INFO("相机类型为:{},使用CPU解码,准备打开相机".format(self.camera_type))
823822
if self.device == "Ascend":
824823
from acllite import videocapture
825824
self.capture = videocapture.VideoCapture(self.video_path)
825+
self.JadeLog.INFO("相机类型为:{},使用Ascend芯片解码,准备打开相机".format(self.camera_type))
826826
else:
827827
self.capture = cv2.VideoCapture(self.video_path)
828+
self.JadeLog.INFO("相机类型为:{},使用CPU解码,准备打开相机".format(self.camera_type))
829+
828830
if self.device == "Ascned":
829831
ret,frame = self.capture.read()
830832
if ret:

0 commit comments

Comments
 (0)