cd /home/pi/openalprCompile openALPR:
cmake ./makesudo make installsudo cp -r /usr/local/lib/* /lib
--
You received this message because you are subscribed to a topic in the Google Groups "OpenALPR" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openalpr/-vckIsPe618/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openalpr+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think I mentioned it in another post, but you can use the ffmpeg installation for debian/ubuntu on the raspberry pie. That's how I got it to work.link here https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
--
Yes that's what I use.
--
This is so helpful.Thanks so much.I will try it out and see if I can replicate.
On Feb 8, 2016, at 09:01, Timis Daniel <daniel....@gmail.com> wrote:
Yes, my focus is only on ALPRD. I think ALPR is not phased in any way by camera drivers, streams, etc, as it works with exiting images.--
You received this message because you are subscribed to a topic in the Google Groups "OpenALPR" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openalpr/-vckIsPe618/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openalpr+unsubscribe@googlegroups.com.
curl http://www.linux-projects.org/listing/uv4l_repo/lrkey.asc | sudo apt-key add -
Add the following line to the file /etc/apt/sources.list :
deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy main
cd /home/pi/openalpr/libraries/opencv-3.1.0
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=OFF \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=/home/pi/openalpr/libraries/opencv_contrib-3.1.0/modules \
-D BUILD_EXAMPLES=ON
CMake Error: The source directory "/home/pi/openalpr/libraries/opencv-3.1.0/build/CMAKE_BUILD_TYPE=RELEASE" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
> Have you added the repository key and link to apt?
> Add the following line to the file /etc/apt/sources.list
cd /home/pi/openalpr/libraries/opencv-3.1.0 | |
mkdir build | |
cd build | |
cmake -D CMAKE_BUILD_TYPE=RELEASE \ | |
-D CMAKE_INSTALL_PREFIX=/usr/local \ | |
-D INSTALL_C_EXAMPLES=OFF \ | |
-D INSTALL_PYTHON_EXAMPLES=ON \ | |
-D OPENCV_EXTRA_MODULES_PATH=/home/pi/openalpr/libraries/opencv_contrib-3.1.0/modules \ |
-D BUILD_EXAMPLES=ON .. | |
make -j4 | |
sudo make install | |
sudo ldconfig | |
cd ~/.virtualenvs/cv/lib/python2.7/site-packages/ | |
ln -s /usr/local/lib/python2.7/site-packages/cv2.so cv2.so | |
# Compile openALPR: | |
cd /home/pi/openalpr/src | |
# nano CMakeLists.txt | |
# add the following lines in the section near the top that has SET() statements | |
# SET(OpenCV_DIR "/home/pi/openalpr/libraries/opencv-2.4.11/release") | |
# SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract") | |
# do this using sed | |
sed -i '11 i SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")' /home/pi/openalpr/src/CMakeLists.txt | |
sed -i '11 i SET(OpenCV_DIR "~/openalpr/libraries/opencv-3.1.0/build")' /home/pi/openalpr/src/CMakeLists.txt | |
cmake ./ | |
make -j4 |
sudo make install | |
sudo cp -r /usr/local/lib/* /lib |
$ workon cv
$ python
>>> import cv2
>>> cv2.__version__
'3.0.0'
>>> import fileinput
>>> import picamera
INFO - Running OpenALPR daemon in the foreground.
INFO - Using: /etc/openalpr/alprd.conf for daemon configuration
INFO - Using: /data/plates-capt/ for storing valid plate images
INFO - country: eu -- config file: /etc/openalpr/openalpr.conf
INFO - Stream 1: http://127.0.0.1:8080/stream/video.mjpeg
WARN - Error connecting to Beanstalk. Will retry. (1)
INFO - Starting camera 1
INFO - Video stream connecting...
WARN - Stream http://127.0.0.1:8080/stream/video.mjpeg?openalprfiletype=file.mjpg failed to open. (2)
INFO - Video stream connecting...
; Determines whether images that contain plates should be stored to disk
store_plates = 1
store_plates_location = /data/plates-capt/ <-- folder empty, I guess something is missing
; upload address is the destination to POST to
upload_data = 1
upload_address = http://127.0.0.1:9000/push/ <-- I guess this is relativ to the root of the web server, but where is that defined ?
OK, but alpr should work by now.When I feed a still image to alpr, it get's correctly decoded, but I can't see any effect, besides seeing the license plate displayed on screen.Should't the counter be incremented and/or a copy of the pic put aside ? or does it work ONLY for moving license plates ?Here under an extract of: /etc/openalpr/alprd.conf; Determines whether images that contain plates should be stored to disk
store_plates = 1
store_plates_location = /data/plates-capt/ <-- folder empty, I guess something is missing
alprd -f brings a "failed to open", it would be nice to know ; open whatINFO - Running OpenALPR daemon in the foreground.INFO - Using: /etc/openalpr/alprd.conf for daemon configurationINFO - Using: /data/plates-capt/ for storing valid plate imagesINFO - country: eu -- config file: /etc/openalpr/openalpr.confINFO - Stream 1: http://127.0.0.1:8080/stream/video.mjpegINFO - Starting camera 1INFO - Video stream connecting...WARN - Stream http://127.0.0.1:8080/stream/video.mjpeg?openalprfiletype=file.mjpg failed to open.Maybe several symptoms stem from the same cause, hence solving one problem solves them all :-)
[daemon]
; country determines the training dataset used for recognizing plates. Valid values are: us, eu country = us
; text name identifier for this location site_id = your-unique-sitename
; Declare each stream on a separate line ; each unique stream should be defined as stream = [url]
stream = http://127.0.0.1/example_video_stream.mjpeg ;stream = http://127.0.0.1/example_second_stream.mjpeg ;stream = webcam
; topn is the number of possible plate character variations to report topn = 10
; Determines whether images that contain plates should be stored to disk
store_plates = 0 store_plates_location = /var/lib/openalpr/plateimages/
; upload address is the destination to POST to
upload_data = 0 upload_address = http://localhost:9000/push/
My configRaspberry Pi 2 Model B,ARMv7, 700 Mhz1GB RAM, 32GB diskintegrated network cameraRaspian JessieThanks again
Can't help you on that matter right now,
Hey everyoneI got a new Pi for xmas (well, it was a drone that magically turned into a PI)I started playing with openALPR installs and noticed the tutorials were a bit out of date and whatever,so I went through it and beat it up a bit and came up with a non-optimized installation that uses current versions of packages and seems to work.This can be obviously improved upon, but I hope it makes it a little easier for noobs like me who are just looking for a recently tested tutorial that requires a minimum of googling around.a copy of this is posted as a gist here:https://gist.github.com/amstanley/9da7febc9a3e3c2228eethe core steps are based on https://barclaysapps.wordpress.com/2014/07/06/openalpr-install-for-rpi-and-udoo-and-tre-and-yun/ and updated for new packages.This is not optimized for space or whatever, but does work.how to read:this is a heading, as denoted by the:on a line where you see some text -> some more textthis is the text in the original tutorial -> this is what you should type insteadnote: this is a note: don't type this.installed and tested on a raspberry pi 2 model B 1GB using raspbian installed via noobs on a 32 GB memory card.note that an 8GB card will fill before this tutorial ends, so you will need a card bigger than that.Not tested on a 16GB card so no idea if that will work or not.installation steps:Install Dependencies:sudo apt-get install autoconf automake libtoolsudo apt-get install libpng12-devsudo apt-get install libjpeg62-dev -> sudo apt-get install libjpeg62-turbo-devsudo apt-get install libtiff4-dev -> sudo apt-get install libtiff5-devsudo apt-get install zlib1g-devsudo apt-get install git-coresudo apt-get install cmakesudo apt-get install liblog4cplus-dev libcurl3-dev uuid-dev -> sudo apt-get install libcurl4-openssl-dev liblog4cplus-1.0-4 liblog4cplus-dev uuid-devClone openalpr:cd /home/ubuntu ( or /home/pi )git clone https://github.com/openalpr/openalpr.gitCreate a directory and download libraries:cd openalprmkdir librariescd librariesusing browser, nav to https://github.com/tesseract-ocr/tesseract and 'download zip' thenmv /home/pi/Downloads/tesseract-master.zip .using browser navigate to https://github.com/tesseract-ocr/tessdata and 'download zip' thenmv /home/pi/Downloads/tessdata-master.zip .wget http://www.leptonica.org/source/leptonica-1.70.tar.gz -> wget http://www.leptonica.org/source/leptonica-1.71.tar.gzdon't do this:mv opencv-2.4.8.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fopencvlibrary%2Ffiles%2Fopencv-unix%2F2.4.8%2Fopencv-2.4.8.zip%2Fdownload opencv-2.4.8.zipinstead do this:extract the packages:tar -zxvf tesseract-ocr-3.02.02.tar.gz -> unzip tesseract-master.ziptar -zxvf leptonica-1.70.tar.gz -> tar -zxvf leptonica-1.71.tar.gzunzip opencv-2.4.8.zip -> unzip opencv-2.4.11.zipcompile leptonica:cd leptonica-1.70 -> cd leptonica-1.71./configuremakemake install -> sudo make installnote generates following message:Libraries have been installed in:/usr/local/libIf you ever happen to want to link against installed librariesin a given directory, LIBDIR, you must either use libtool, andspecify the full pathname of the library, or use the `-LLIBDIR'flag during linking and do at least one of the following:- add LIBDIR to the `LD_LIBRARY_PATH' environment variableduring execution- add LIBDIR to the `LD_RUN_PATH' environment variableduring linking- use the `-Wl,-rpath -Wl,LIBDIR' linker flag- have your system administrator add LIBDIR to `/etc/ld.so.conf'See any operating system documentation about shared libraries formore information, such as the ld(1) and ld.so(8) manual pages.compile tesseract:cd ../tesseract-ocr -> cd ../tesseract-master./autogen.sh./configuremake
sudo make installsudo ldconfig
export TESSDATA_PREFIX=/home/pi/openalpr/libraries/tesseract-ocr/tessdata ->export TESSDATA_PREFIX=/home/pi/openalpr/libraries/tessdata-masterNote: according to https://groups.google.com/forum/#!searchin/openalpr/raspberry$20pi/openalpr/m9bv54833nk/47eu4JyHsTUJafter sudo ldconfig you should 'make install LANGS="eng"' to set language preference. Not sure how this makes sense but may try it if I run into trouble. (update: I did not)extract the tesseract language data:cd ..tar -zxvf tesseract-ocr-3.02.eng.tar.gz -> unzip tessdata-master.zipcompile opencv:cd opencv-2.4.8 -> cd opencv-2.4.11mkdir releasecd releasecmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..makesudo make installupdate the cmake lists for openALPR:cd ../../../srcnano CMakeLists.txtChange line 22 and 23 to:SET(OpenCV_DIR "/usr/local/lib")SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract-ocr")-> none of this seems required, so skipCompile openALPR:cmake ./make
sudo make installsudo cp -r /usr/local/lib/* /lib
note: seems like this last step is just a path issue... surely better way to do this)test the library (from https://github.com/openalpr/openalpr/wiki/Compilation-instructions-(Ubuntu-Linux)):alpr -c us ea7the.jpgresult:plate0: 10 results- EA7THE confidence: 92.4795- EA7TBE confidence: 84.0421- EA7TRE confidence: 83.1932- EA7TE confidence: 82.0527- EA7T8E confidence: 81.7845- EA7TME confidence: 80.8062- EA7THB confidence: 76.6468- EA7TH6 confidence: 76.6153- EA7TH confidence: 75.2232- EA7TBB confidence: 68.2095alpr -c eu h786poj.jpg
make -j4 |
sudo make install | |
sudo cp -r /usr/local/lib/* /lib |
# sudo cp /home/pi/openalpr/libraries/opencv-2.4.11/release/lib/* /lib | |
# note: seems like this last step is just a path issue... surely better way to do this) | |
To unsubscribe from this group and all its topics, send an email to openalpr+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to openalpr+u...@googlegroups.com.
Hey, I had problems running the ./configure on tesseract-master.It fails with an error like "syntax error near unexpected token `-mavx,'". Here https://github.com/tesseract-ocr/tesseract/wiki/Compiling it says to double check the autoconf-archive package.. I did that and the error still persists.
Any ideas?
Thanks in advance.
Hey, I had problems running the ./configure on tesseract-master.It fails with an error like "syntax error near unexpected token `-mavx,'". Here https://github.com/tesseract-ocr/tesseract/wiki/Compiling it says to double check the autoconf-archive package.. I did that and the error still persists.Any ideas?
Solution: runin tesseract-master folder.
git init