首页 > 解决方案 > 为什么 camera_calibration.cpp 教程代码不能正确地从我的相机中读取?

问题描述

尝试在 OpenCV 教程代码示例的 calib3d 模块中以流模式运行 camera_calibration.cpp 时出现以下错误:Input does not exist: Invalid input detected. Application stopping.xml 输入文件中的输入行如下所示:<Input>0</Input>,这应该在我的系统。

标签: opencvcameracamera-calibration

解决方案


我通过将相机索引括在双引号中来解决此问题:<Input>0</Input>成为<Input>"0"</Input>. (简单的解析器......哦,好吧,希望这对某些人有所帮助。)


推荐阅读