【发布时间】:2017-01-23 02:19:59
【问题描述】:
我从 MitrocontrollersAndMore 获得有关使用 c++ 进行车牌识别的源代码示例。但是我发现了一些错误。例如,我在这段代码中有错误:
for (auto &vectorOfMatchingChars : vectorOfVectorsOfMatchingCharsInScene) { // for each group of matching chars
PossiblePlate possiblePlate = extractPlate(imgOriginalScene, vectorOfMatchingChars); // attempt to extract plate
if (possiblePlate.imgPlate.empty() == false) { // if plate was found
vectorOfPossiblePlates.push_back(possiblePlate); // add to vector of possible plates
}
}
错误是在 ':' 标记之前的预期初始化程序,预期在输入末尾的主表达式,预期是 ';'在输入结束时等。我必须怎么做才能解决这些错误?
【问题讨论】:
-
您已启用标准 C++11