openalpr.deb for ubuntu 14.04 lts ?

Visto 961 veces
Saltar al primer mensaje no leído

Alex Demenschonok

no leída,
28 ago 2014, 13:52:5228/8/14
a open...@googlegroups.com
hi, 
i've been following instruction and still getting error:

{code}

root:/usr/local/src/openalpr/src# cmake ./

Tesseract_INCLUDE_BASEAPI_DIR=/usr/include

Tesseract_INCLUDE_CCSTRUCT_DIR=Tesseract_INCLUDE_CCSTRUCT_DIR-NOTFOUND

Tesseract_INCLUDE_CCMAIN_DIR=Tesseract_INCLUDE_CCMAIN_DIR-NOTFOUND

Tesseract_INCLUDE_CCUTIL_DIR=Tesseract_INCLUDE_CCUTIL_DIR-NOTFOUND

Tesseract_INCLUDE_DIRS=/usr/include;/usr/include

Tesseract_LIB=/usr/lib/libtesseract.so

Leptonica_LIB=/usr/local/lib/liblept.so

Tesseract_LIBRARIES=/usr/lib/libtesseract.so;/usr/local/lib/liblept.so;/usr/lib/libtesseract.so;/usr/local/lib/liblept.so

CMake Error at cmake_modules/LibFindMacros.cmake:74 (message):

  Required library Tesseract NOT FOUND.


  Install the library (dev version) and try again.  If the library is already

  installed, use ccmake to set the missing variables manually.

Call Stack (most recent call first):

  cmake_modules/FindTesseract.cmake:72 (libfind_process)

  CMakeLists.txt:23 (FIND_PACKAGE)



-- Configuring incomplete, errors occurred!

See also "/usr/local/src/openalpr/src/CMakeFiles/CMakeOutput.log".
{code}

wondering has anyone compile deb package to install on Ubuntu 14.04 LTS ?
or virtualbox image to play with it.... 

thnx,

alex

Vladimir Radnovic

no leída,
28 ago 2014, 14:05:2228/8/14
a open...@googlegroups.com
Alex to you folov this https://github.com/openalpr/openalpr/wiki/Compilation-instructions-(Ubuntu-Linux)

I test and work 100%

tnx
vladimir
Se ha eliminado el mensaje

Tom Steven

no leída,
28 ago 2014, 15:54:2828/8/14
a open...@googlegroups.com
Hi Alex,

I got the same prob before and i think you need to update your CMakelist and openalpr.conf

Cheers,

Alex Demenschonok

no leída,
28 ago 2014, 16:14:4328/8/14
a open...@googlegroups.com
vladimir,
thank you for reply.
i've tried on two separate hosts running 14.04 and followed instructions "harder" ones.... dot to dot... till step 8
and got same error  "Required library Tesseract NOT FOUND."
while package is installed and working :

# tesseract -v

tesseract 3.02.02

 leptonica-1.70

  libjpeg 8d : libpng 1.2.50 : libtiff 4.0.3 : zlib 1.2.8




can you please list your  /usr/local/src/openalpr/openalpr/src/CMakeList.txt
from your successful install ?  

thnx,
alex

PS.  tesseract is installed :

Alex Demenschonok

no leída,
28 ago 2014, 16:17:4028/8/14
a open...@googlegroups.com
Tom,

would you be so kind and lst these two files ? i'll see diff with mine ones.

thnx,
alex

Alex Demenschonok

no leída,
28 ago 2014, 17:21:3828/8/14
a open...@googlegroups.com
hi...
i managed to fix CMakeList by including following lines:

SET(OpenCV_DIR    "/usr/local/lib")

SET(Tesseract_DIR "/usr/local/src/openalpr/tesseract-ocr")

SET(Tesseract_INCLUDE_BASEAPI_DIR "${Tesseract_DIR}/api")

SET(Tesseract_INCLUDE_CCSTRUCT_DIR "${Tesseract_DIR}/ccstruct")

SET(Tesseract_INCLUDE_CCMAIN_DIR " ${Tesseract_DIR}/ccmain")

SET(Tesseract_INCLUDE_CCUTIL_DIR "${Tesseract_DIR}/ccutil")

SET(Tesseract_INCLUDE_DIRS "/usr/local/include")

<skipped>


# cmake ./ -Wno-dev

-- Found Tesseract 

-- Configuring done

-- Generating done

-- Build files have been written to: /usr/local/src/openalpr/openalpr/src

# make clean

# make

[  1%] Building CXX object video/CMakeFiles/video.dir/videobuffer.cpp.o

Linking CXX static library libvideo.a

[  1%] Built target video

[  3%] Building CXX object openalpr/support/CMakeFiles/support.dir/filesystem.cpp.o

[  5%] Building CXX object openalpr/support/CMakeFiles/support.dir/timing.cpp.o

[  7%] Building CXX object openalpr/support/CMakeFiles/support.dir/tinythread.cpp.o

[  9%] Building CXX object openalpr/support/CMakeFiles/support.dir/platform.cpp.o

Linking CXX static library libsupport.a

[  9%] Built target support

[ 11%] Building CXX object openalpr/CMakeFiles/openalpr-static.dir/alpr.cpp.o

[ 13%] Building CXX object openalpr/CMakeFiles/openalpr-static.dir/alpr_impl.cpp.o

/usr/local/src/openalpr/openalpr/src/openalpr/alpr_impl.cpp: In member function ‘std::vector<AlprResult> AlprImpl::recognize(std::string, std::vector<AlprRegionOfInterest>)’:

/usr/local/src/openalpr/openalpr/src/openalpr/alpr_impl.cpp:182:38: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope

   cv::Mat img = cv::imread(filepath, CV_LOAD_IMAGE_COLOR);

                                      ^

make[2]: *** [openalpr/CMakeFiles/openalpr-static.dir/alpr_impl.cpp.o] Error 1

make[1]: *** [openalpr/CMakeFiles/openalpr-static.dir/all] Error 2

make: *** [all] Error 2


any ideas where to declare " CV_LOAD_IMAGE_COLOR" ?

thnx,
alex

Matt

no leída,
28 ago 2014, 20:57:1528/8/14
a open...@googlegroups.com
Alex,

CV_LOAD_IMAGE_COLOR is a constant declared within OpenCV (cv::CV_LOAD_IMAGE_COLOR).  Perhaps try removing the SET(OpenCV_DIR    "/usr/local/lib") directive.  It should be possible to find the OpenCV library without that, if it's installed via Ubuntu APT.

Did you compile and install OpenCV manually?  If so, try using a prefix of /usr/ (rather than /usr/local/).

-Matt

Alex Demenschonok

no leída,
29 ago 2014, 9:55:3629/8/14
a open...@googlegroups.com
Matt,

both suggestions did not help. i've installed OpenCV manually "harder" way.... my host is Ubuntu 14.04 lts server and does not have GUI installed. 
i will try to troubleshoot further and keep you posted.  it would be nice to have stable VM to download to play with this openalpr package 
without wasting time on compiling issues.

thnx,
alex

Matt

no leída,
31 ago 2014, 10:14:1131/8/14
a open...@googlegroups.com
Alex,

I agree about making things easier to run the binary.  A VM would be fairly significant maintenance, though.  I've packaged up the project for distribution with Debian (which Ubuntu could pick up downstream) but none of the Debian developers have picked it up yet.  Perhaps a private PPA repo would help make the install easier.

Your problem seems to be related to your install of OpenCV.  It's not finding the include directories.  The cmake script that I'm using to find OpenCV is standard (unlike the Tesseract one which I customized).  So something about your OpenCV install is probably unusual.
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos