未能找到重载函数匹配,求助各位大佬
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 6.4k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
编译报错:
严重性 代码 说明 项目 文件 行 禁止显示状态 详细信息
错误 C2672 “cv::Algorithm::load”: 未找到匹配的重载函数 libeasypr C:\Users\Codegod、\Desktop\EasyPR-master\EasyPR-master\src\core\chars_identify.cpp 22
问题代码显示
CharsIdentify::CharsIdentify() {
LOAD_ANN_MODEL(ann_, kDefaultAnnPath);//问题:ann_ = ml::ANN_MLP::load(kDefaultAnnPath);
LOAD_ANN_MODEL(annChinese_, kChineseAnnPath);
LOAD_ANN_MODEL(annGray_, kGrayAnnPath);
kv_ = std::shared_ptr(new Kv);
kv_->load(kChineseMappingPath);
extractFeature = getGrayPlusProject;
}
void CharsIdentify::LoadModel(std::string path) {
if (path != std::string(kDefaultAnnPath)) {
if (!ann_->empty())
ann_->clear();
LOAD_ANN_MODEL(ann_, path);
}
}
void CharsIdentify::LoadChineseModel(std::string path) {
if (path != std::string(kChineseAnnPath)) {
if (!annChinese_->empty())
annChinese_->clear();
LOAD_ANN_MODEL(annChinese_, path);
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/core/chars_identify.cpp at line 22 and inspect the LOAD_ANN_MODEL calls in CharsIdentify, especially the cv::Algorithm::load and ml::ANN_MLP::load references shown in the report. Reproduce the build error and check the project's expected OpenCV API and version. Done means the project builds with the model-loading calls resolved, with the compatible dependency or required change identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100