Skip to content

Commit 34cb297

Browse files
committed
* 输出相机解码失败原因,输出解码失败详细原因
1 parent 24f4d00 commit 34cb297

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## OpencvToolsV1.1.9
1+
## OpencvToolsV1.2.0
22
Opencv相关操作
33

44
### 打包为wheel文件
@@ -15,7 +15,7 @@ python setup.py sdist bdist_wheel
1515
> wheel-dir 为wheel 输出文件夹,后面接项目文件夹(即包含setup.py的文件夹)
1616
1717
### 更新日志
18-
* 输出相机解码失败原因
18+
* 输出相机解码失败原因,输出解码失败详细原因
1919
* 自动安装jade最新版本
2020
* 支持华为Ascend解码
2121
* 日志输出Ascend芯片解码

opencv_tools/jade_opencv_process.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,8 @@ def capture_reader(self):
905905
time.sleep(0.04)
906906
except Exception as e:
907907
self.JadeLog.WARNING(
908-
"相机类型为:{},相机解码失败,失败原因为:{},等待{}s,尝试重连".format(self.camera_type,e ,self.camera_reopen_times))
908+
"相机类型为:{},相机解码失败,失败原因为:{},发生异常文件{},发生异常所在的行数{},等待{}s,尝试重连".format(self.camera_type,e ,self.camera_reopen_times,
909+
e.__traceback__.tb_frame.f_globals["__file__"],e.__traceback__.tb_lineno))
909910
time.sleep(self.camera_reopen_times)
910911
self.judge_capture_reader()
911912
else:

opencv_tools/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# @Email : jadehh@1ive.com
77
# @Software : Samples
88
# @Desc :
9-
version = "1.1.9"
9+
version = "1.2.0"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
find_packages("opencv_tools", pack_list)
1313
setup(
1414
name="opencv_tools",
15-
version="1.1.9",
15+
version="1.2.0",
1616
keywords=("pip", "opencv_tools", ""),
1717
description="opencv_tools",
1818
long_description="",

0 commit comments

Comments
 (0)