libanpr을 다루는 사람이 있습니까? 자동 차량 판 인식을위한 라이브러리입니다. 컴파일하려고했으나 해결할 수없는 많은 오류가있었습니다. 나는 한 페이지의 문서조차 찾지 못한다! 몇 사람이 도움을 줄 수 있습니까?libanpr 차량 판 인식을위한 문서화되지 않은 라이브러리
편집 :
솔루션.
리눅스에서는 컴파일 할 수 없었지만 윈도우에서는 컴파일했습니다. 내 문제는이 라이브러리에 대한 문서화 및 토론이 없다는 것입니다. 다음 코드를 시도했지만 실행시 충돌이 발생합니다. 디버깅 (단계별로) 할 때 코드가 작동하지만 결과를 얻으려면이 방법으로 작업 할 수 없습니다. 클래스 나 함수에 대해 잘 모르기 때문에 코드를 조작 할 수 없습니다 !!
해결책을 찾기 위해 나와 공유하고 싶은 사람이 있습니까 ??
#include "../source/AvcodecImgSrc.h"
#include "../locate/CarLocate.h"
#include "../plate/PlateCut.h"
#include "../ocr/PlateOcr.h"
#include "../exception/Exception.h"
static void show(const std::vector<OcrData>& plates) {
for (int i=0;i<plates.size();i++)
printf("%s\n", plates[i].getPlate().c_str());
}
int main(int argc, const char* argv[]) {
try {
AvcodecImgSrc src(argv[1], 400, 3450);
CarLocate car(2048/4, 1536/4, 8, 5);
PlateCut plate;
PlateOcr ocr;
while (src.hasNext()) {
NTCImg img = src.next();
int w = img.dimx();
int h = img.dimy();
int w2 = w/2;
int h2 = h/2;
NTCImg img2 = img.getScale(w2, h2);
int w4 = w/4;
int h4 = h/4;
NTCImg img4g = img.getScaleG(w4, h4);
std::vector<CarData> cars = car.locate(img4g);
for (int i=0;i<cars.size();i++) {
printf("CAR[%dx%d]!\n", cars[i].getRect().getWidth(), cars[i].getRect().getHeight());
}
std::vector<PlateData> plates = plate.cut(img2, CarData::scale2(cars));
for (int i=0;i<plates.size();i++) {
printf("PLATE[%dx%d]!\n", plates[i].getRect().getWidth(), plates[i].getRect().getHeight());
}
//show(ocr.run(plate.cut(cars)));
}
} catch (const Exception& ex) {
printf("Exception: %s\n", ex.getMsg().c_str());
} catch (const Err& err) {
printf("Err!\n");
}
}
이 lib는 3 살입니까? –
예,하지만 2013 년 4 월 19 일 이후로 업데이트되었습니다. – dervish