已有184人关注
MR智能视频打卡系统,运行出错
发表在Python图书答疑 2023-12-13 悬赏:1 学分 《Python OpenCV从入门到实践》第13章 MR智能视频打卡系统
是否精华
版块置顶:

[ERROR:0@0.244] global persistence.cpp:512 cv::FileStorage::Impl::open Can't open file: 'D:\Python 资料\Python OpenCV从入门到精通\sl\16\clock\cascades\haarcascade_frontalface_default.xml' in read mode

[ WARN:0@0.256] global loadsave.cpp:248 cv::findDecoder imread_('D:\Python 资料\Python OpenCV从入门到精通\sl\16\clock\data\faces\1000000000.png'): can't open/read file: check file path/integrity

[ WARN:0@0.257] global loadsave.cpp:248 cv::findDecoder imread_('D:\Python 资料\Python OpenCV从入门到精通\sl\16\clock\data\faces\2000000000.png'): can't open/read file: check file path/integrity

Traceback (most recent call last):

  File "D:\Python 资料\Python OpenCV从入门到精通\sl\16\clock\main.py", line 205, in <module>

    hr.load_emp_data()  # 数据初始化

  File "D:\Python 资料\Python OpenCV从入门到精通\sl\16\clock\service\hr_service.py", line 279, in load_emp_data

    io.load_employee_pic()  # 载入员工照片

  File "D:\Python 资料\Python OpenCV从入门到精通\sl\16\clock\util\io_tools.py", line 82, in load_employee_pic

    rs.train(photos, lables)  # 识别器训练样本

  File "D:\Python 资料\Python OpenCV从入门到精通\sl\16\clock\service\recognize_service.py", line 18, in train

    RECOGNIZER.train(photos, np.array(lables))  # 识别器开始训练

cv2.error: OpenCV(4.8.1) D:\a\opencv-python\opencv-python\opencv\modules\core\src\matrix.cpp:246: error: (-215:Assertion failed) s >= 0 in function 'cv::setSize'

请问这个该怎么操作?

分享到:
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照