opencv - 为什么 camera_calibration.cpp 教程代码不能正确地从我的相机中读取?
问题描述
尝试在 OpenCV 教程代码示例的 calib3d 模块中以流模式运行 camera_calibration.cpp 时出现以下错误:Input does not exist: Invalid input detected. Application stopping.
xml 输入文件中的输入行如下所示:<Input>0</Input>
,这应该在我的系统。
解决方案
我通过将相机索引括在双引号中来解决此问题:<Input>0</Input>
成为<Input>"0"</Input>
. (简单的解析器......哦,好吧,希望这对某些人有所帮助。)
推荐阅读
- mongodb - Model.find() 返回一个对象或对象数组?[蒙哥达]
- flutter - 带导航的 Flutter Provider
- c++ - 如何找到包含 QtVirtualKeyboard 的窗口
- r - 为什么 R PerformanceAnalytics 中的 TrackingError 函数与使用其发布的公式的手动计算不一致
- mysql - MySQL“IN”操作符在使用左连接和分组的大量值上运行缓慢
- java - 如何使用 REST Assured 将 Pact 测试的动态 id 从提供者注入到消费者
- java - 插入新实体:Spring Data JPA vs. Hibernate 的 EntityManager
- python - 围绕外部数据构建对象模型
- .net - 为什么 HttpCachePolicy 默认值 (Private) 会导致服务器缓存响应?
- json - 我们如何在 Unity3d 中解析 JSON?