python-3.x - 树莓派中的 CV2.dnn_Detection
问题描述
我的简历版本是 4.1.0,因此我得到了这种类型的错误:
Traceback (most recent call last):
File "/home/pi/Desktop/Obj_Detection/ObjectDetectorModule.py", line 12, in <module>
net = cv2.dnn_DetectionModel(weightsPath,configPath)
AttributeError: module 'cv2.cv2' has no attribute 'dnn_DetectionModel'
解决方案
推荐阅读
- scala - Spark比较布尔列与字符串列的工作方式与比较值相等的int和字符串不同
- python-3.x - Python 权限 2.7 并在 Windows 10 上升级到 3.7
- firebird - JOOQ 将 CHAR OCTETS 列生成为 CHAR 而不是 BINARY
- java - java中如何判断字符串是否包含表情符号,以及如何过滤
- java - 如何为旧的 java 项目编写 Junit 测试用例?
- sonarqube - SonarQube 安装和服务器启动出错
- laravel - 在没有 DOCKER 的 VPS 中使用 gitlab ci 部署 laravel
- cron - 以编程方式完成作业后如何停止cron作业
- r - 新手麻烦为报告构建脚本
- java - SQLite 聚合查询