You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ g++ src/*.cpp -l:libopencv_core.so.2.4.9 -l:libopencv_highgui.so.2.4.9 -l:libopencv_video.so.2.4.9 -l:libopencv_calib3d.so.2.4.9 -l:libopencv_contrib.so.2.4.9 -l:libopencv_features2d.so.2.4.9 -l:libopencv_flann.so.2.4.9 -l:libopencv_gpu.so.2.4.9 -l:libopencv_imgproc.so.2.4.9 -l:libopencv_legacy.so.2.4.9 -l:libopencv_ml.so.2.4.9 -l:libopencv_nonfree.so.2.4.9 -l:libopencv_objdetect.so.2.4.9 -l:libopencv_ocl.so.2.4.9 -l:libopencv_photo.so.2.4.9 -l:libopencv_stitching.so.2.4.9 -l:libopencv_superres.so.2.4.9 -ltesseract -llept -std=c++11 -o rusalpr
src/anpr.cpp: In member function ‘bool Anpr::recognizeLetters()’:
src/anpr.cpp:419:45: error: conversion from ‘IplImage* {aka _IplImage*}’ to non-scalar type ‘cv::Mat’ requested
cv::Mat recimage = cvCreateImage(cv::Size(100, 100), 8, 1
^
src/anpr.cpp:430:32: error: conversion from ‘IplImage* {aka _IplImage*}’ to non-scalar type ‘cv::Mat’ requested
cv::Mat gray = cvCreateImage(subImg.size(), 8, 1);
^
In file included from /usr/local/include/opencv2/core.hpp:59:0,
from /usr/local/include/opencv2/core/types_c.h:101,
from /usr/local/include/opencv2/core/core_c.h:48,
from /usr/local/include/opencv/cv.h:63,
from src/anpr.h:13,
from src/anpr.cpp:1:
/usr/local/include/opencv2/core/mat.hpp: In instantiation of ‘class cv::Mat_<unsigned int>’:
/usr/local/include/opencv2/core/mat.inl.hpp:1225:46: required from ‘cv::MatIterator_<_Tp> cv::Mat::begin() [with _Tp = unsigned int]’
src/anpr.cpp:135:37: required from here
/usr/local/include/opencv2/core/mat.hpp:2153:50: error: no type named ‘channel_type’ in ‘class cv::DataType<unsigned int>’
typedef typename DataType<_Tp>::channel_type channel_type;
^
In file included from /usr/local/include/opencv2/core/mat.hpp:3642:0,
from /usr/local/include/opencv2/core.hpp:59,
from /usr/local/include/opencv2/core/types_c.h:101,
from /usr/local/include/opencv2/core/core_c.h:48,
from /usr/local/include/opencv/cv.h:63,
from src/anpr.h:13,
from src/anpr.cpp:1:
/usr/local/include/opencv2/core/mat.inl.hpp:1582:1: error: no type named ‘channel_type’ in ‘class cv::DataType<unsigned int>’
Mat_<_Tp>::Mat_(const Vec<typename DataType<_Tp>::channel_type, n>& v
^
/usr/local/include/opencv2/core/mat.inl.hpp:1591:1: error: no type named ‘channel_type’ in ‘class cv::DataType<unsigned int>’
Mat_<_Tp>::Mat_(const Matx<typename DataType<_Tp>::channel_type, m, n
^
/usr/local/include/opencv2/core/mat.inl.hpp:1600:1: error: no type named ‘channel_type’ in ‘class cv::DataType<unsigned int>’
Mat_<_Tp>::Mat_(const Point_<typename DataType<_Tp>::channel_type>& p
^
/usr/local/include/opencv2/core/mat.inl.hpp:1609:1: error: no type named ‘channel_type’ in ‘class cv::DataType<unsigned int>’
Mat_<_Tp>::Mat_(const Point3_<typename DataType<_Tp>::channel_type>&
^
/usr/local/include/opencv2/core/mat.inl.hpp:1938:1: error: no type named ‘channel_type’ in ‘class cv::DataType<unsigned int>’
Mat_<_Tp>::operator Vec<typename DataType<_Tp>::channel_type, n>() co
^
/usr/local/include/opencv2/core/mat.inl.hpp:1951:1: error: no type named ‘channel_type’ in ‘class cv::DataType<unsigned int>’
Mat_<_Tp>::operator Matx<typename DataType<_Tp>::channel_type, m, n>(
^
Предполагаю, что проблема с версией opencv
The text was updated successfully, but these errors were encountered:
Версия opencv 3.1.0
Версия тесеракта и лептоники
Получаю следующие ошибки
Предполагаю, что проблема с версией opencv
The text was updated successfully, but these errors were encountered: