Code Monkey home page Code Monkey logo

imageclipper's Introduction

openalpr

OpenALPR is an open source Automatic License Plate Recognition library written in C++ with bindings in C#, Java, Node.js, Go, and Python. The library analyzes images and video streams to identify license plates. The output is the text representation of any license plate characters.

Check out a live online demo here: http://www.openalpr.com/demo-image.html

User Guide

OpenALPR includes a command line utility. Simply typing "alpr [image file path]" is enough to get started recognizing license plate images.

For example, the following output is created by analyzing this image: Plate Image

user@linux:~/openalpr$ alpr ./samplecar.png

plate0: top 10 results -- Processing Time = 58.1879ms.
    - PE3R2X     confidence: 88.9371
    - PE32X      confidence: 78.1385
    - PE3R2      confidence: 77.5444
    - PE3R2Y     confidence: 76.1448
    - P63R2X     confidence: 72.9016
    - FE3R2X     confidence: 72.1147
    - PE32       confidence: 66.7458
    - PE32Y      confidence: 65.3462
    - P632X      confidence: 62.1031
    - P63R2      confidence: 61.5089

Detailed command line usage:

user@linux:~/openalpr$ alpr --help

USAGE: 

   alpr  [-c <country_code>] [--config <config_file>] [-n <topN>] [--seek
         <integer_ms>] [-p <pattern code>] [--clock] [-d] [-j] [--]
         [--version] [-h] <image_file_path>


Where: 

   -c <country_code>,  --country <country_code>
     Country code to identify (either us for USA or eu for Europe). 
     Default=us

   --config <config_file>
     Path to the openalpr.conf file

   -n <topN>,  --topn <topN>
     Max number of possible plate numbers to return.  Default=10

   --seek <integer_ms>
     Seek to the specified millisecond in a video file. Default=0

   -p <pattern code>,  --pattern <pattern code>
     Attempt to match the plate number against a plate pattern (e.g., md
     for Maryland, ca for California)

   --clock
     Measure/print the total time to process image and all plates. 
     Default=off

   -d,  --detect_region
     Attempt to detect the region of the plate image.  [Experimental] 
     Default=off

   -j,  --json
     Output recognition results in JSON format.  Default=off

   --,  --ignore_rest
     Ignores the rest of the labeled arguments following this flag.

   --version
     Displays version information and exits.

   -h,  --help
     Displays usage information and exits.

   <image_file_path>
     Image containing license plates


   OpenAlpr Command Line Utility

Binaries

Pre-compiled Windows binaries can be downloaded on the releases page

Install OpenALPR on Ubuntu 16.04 with the following commands:

sudo apt-get update && sudo apt-get install -y openalpr openalpr-daemon openalpr-utils libopenalpr-dev

Documentation

Detailed documentation is available at doc.openalpr.com

Integrating the Library

OpenALPR is written in C++ and has bindings in C#, Python, Node.js, Go, and Java. Please see this guide for examples showing how to run OpenALPR in your application: http://doc.openalpr.com/bindings.html

Compiling

Build Status

OpenALPR compiles and runs on Linux, Mac OSX and Windows.

OpenALPR requires the following additional libraries:

- Tesseract OCR v3.0.4 (https://github.com/tesseract-ocr/tesseract)
- OpenCV v2.4.8+ (http://opencv.org/)

After cloning this GitHub repository, you should download and extract Tesseract and OpenCV source code into their own directories. Compile both libraries.

Please follow these detailed compilation guides for your respective operating system:

If all went well, there should be an executable named alpr along with libopenalpr-static.a and libopenalpr.so that can be linked into your project.

Docker

# Build docker image
docker build -t openalpr https://github.com/openalpr/openalpr.git
# Download test image
wget http://plates.openalpr.com/h786poj.jpg
# Run alpr on image
docker run -it --rm -v $(pwd):/data:ro openalpr -c eu h786poj.jpg

Questions

Please post questions or comments to the Google group list: https://groups.google.com/forum/#!forum/openalpr

Contributions

Improvements to the OpenALPR library are always welcome. Please review the OpenALPR design description and get started.

Code contributions are not the only way to help out. Do you have a large library of license plate images? If so, please upload your data to the anonymous FTP located at upload.openalpr.com. Do you have time to "tag" plate images in an input image or help in other ways? Please let everyone know by posting a note in the forum.

License

Affero GPLv3 http://www.gnu.org/licenses/agpl-3.0.html

Commercial-friendly licensing available. Contact: [email protected]

imageclipper's People

Contributors

matthill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

imageclipper's Issues

Make files for windows

Guy there are files that are generated by cmake in windows.. but when i run make or make i get an error that no makefile found
make

Compile Error Mac OS Big Sur 11.1

(alpr) Daemon-Hunter:imageclipper choejur$ make
Scanning dependencies of target imageclipper
[ 50%] Building CXX object CMakeFiles/imageclipper.dir/src/imageclipper.cpp.o
In file included from /Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:47:
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/cvdrawwatershed.h:72:5: error: no matching function for call to 'cvRectangle'
    cvRectangle( clone, cvPoint( rect.x, rect.y ), cvPoint( rect.x + rect.width, rect.y + rect.height ), CV_RGB(255, 255, 0), 1 );
    ^~~~~~~~~~~
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/imgproc/imgproc_c.h:1001:14: note: candidate function not viable: no known conversion from
      'cv::Scalar' (aka 'Scalar_<double>') to 'CvScalar' for 4th argument
CVAPI(void)  cvRectangle( CvArr* img, CvPoint pt1, CvPoint pt2,
             ^
In file included from /Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:49:
In file included from /Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:33:
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvcreateaffine.h:62:5: error: use of undeclared identifier '__BEGIN__'
    __BEGIN__;
    ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvcreateaffine.h:96:5: error: use of undeclared identifier '__END__'
    __END__;
    ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvcreateaffine.h:63:5: error: use of undeclared label 'exit'
    CV_ASSERT( rect.width > 0 && rect.height > 0 );
    ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/core_c.h:2745:9: note: expanded from macro 'CV_ASSERT'
        CV_ERROR( CV_StsInternal, "Assertion: " #Condition " failed" ); \
        ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/core_c.h:2714:5: note: expanded from macro 'CV_ERROR'
    __CV_EXIT__;                                                   \
    ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/core_c.h:2750:33: note: expanded from macro '__CV_EXIT__'
#define __CV_EXIT__        goto exit
                                ^
In file included from /Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:49:
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:39:39: error: no viable conversion from 'cv::Scalar'
      (aka 'Scalar_<double>') to 'CvScalar'
                             CvScalar color = CV_RGB(255, 255, 255), 
                                      ^       ~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/types_c.h:1378:16: note: candidate constructor (the implicit copy constructor) not viable:
      no known conversion from 'cv::Scalar' (aka 'Scalar_<double>') to 'const CvScalar &' for 1st argument
typedef struct CvScalar
               ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/matx.hpp:173:27: note: candidate template ignored: could not match
      'Matx<type-parameter-0-0, 4, 1>' against 'CvScalar'
    template<typename T2> operator Matx<T2, m, n>() const;
                          ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/matx.hpp:395:27: note: candidate template ignored: could not match
      'Vec<type-parameter-0-0, 4>' against 'CvScalar'
    template<typename T2> operator Vec<T2, cn>() const;
                          ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/types.hpp:645:27: note: candidate template ignored: could not match
      'Scalar_<type-parameter-0-0>' against 'CvScalar'
    template<typename T2> operator Scalar_<T2>() const;
                          ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:39:39: note: passing argument to parameter 'color' here
                             CvScalar color = CV_RGB(255, 255, 255), 
                                      ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:39:39: error: missing default argument on parameter 'color'
                             CvScalar color = CV_RGB(255, 255, 255), 
                                      ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:46:47: error: no viable conversion from 'cv::Scalar'
      (aka 'Scalar_<double>') to 'CvScalar'
                                     CvScalar color = CV_RGB(255, 255, 0), 
                                              ^       ~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/types_c.h:1378:16: note: candidate constructor (the implicit copy constructor) not viable:
      no known conversion from 'cv::Scalar' (aka 'Scalar_<double>') to 'const CvScalar &' for 1st argument
typedef struct CvScalar
               ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/matx.hpp:173:27: note: candidate template ignored: could not match
      'Matx<type-parameter-0-0, 4, 1>' against 'CvScalar'
    template<typename T2> operator Matx<T2, m, n>() const;
                          ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/matx.hpp:395:27: note: candidate template ignored: could not match
      'Vec<type-parameter-0-0, 4>' against 'CvScalar'
    template<typename T2> operator Vec<T2, cn>() const;
                          ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/types.hpp:645:27: note: candidate template ignored: could not match
      'Scalar_<type-parameter-0-0>' against 'CvScalar'
    template<typename T2> operator Scalar_<T2>() const;
                          ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:46:47: note: passing argument to parameter 'color' here
                                     CvScalar color = CV_RGB(255, 255, 0), 
                                              ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:46:47: error: missing default argument on parameter 'color'
                                     CvScalar color = CV_RGB(255, 255, 0), 
                                              ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:84:5: error: use of undeclared identifier '__BEGIN__'
    __BEGIN__;
    ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:177:5: error: use of undeclared identifier '__END__'
    __END__;
    ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:85:5: error: use of undeclared label 'exit'
    CV_ASSERT( rect.width > 0 && rect.height > 0 );
    ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/core_c.h:2745:9: note: expanded from macro 'CV_ASSERT'
        CV_ERROR( CV_StsInternal, "Assertion: " #Condition " failed" ); \
        ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/core_c.h:2714:5: note: expanded from macro 'CV_ERROR'
    __CV_EXIT__;                                                   \
    ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/core_c.h:2750:33: note: expanded from macro '__CV_EXIT__'
#define __CV_EXIT__        goto exit
                                ^
In file included from /Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:50:
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvcropimageroi.h:64:5: error: use of undeclared identifier '__BEGIN__'
    __BEGIN__;
    ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvcropimageroi.h:135:5: error: use of undeclared identifier '__END__'
    __END__;
    ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvcropimageroi.h:65:5: error: use of undeclared label 'exit'
    CV_ASSERT( rect.width > 0 && rect.height > 0 );
    ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/core_c.h:2745:9: note: expanded from macro 'CV_ASSERT'
        CV_ERROR( CV_StsInternal, "Assertion: " #Condition " failed" ); \
        ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/core_c.h:2714:5: note: expanded from macro 'CV_ERROR'
    __CV_EXIT__;                                                   \
    ^
/usr/local/Cellar/opencv@3/3.4.13_2/include/opencv2/core/core_c.h:2750:33: note: expanded from macro '__CV_EXIT__'
#define __CV_EXIT__        goto exit
                                ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:265:5: error: no matching function for call to 'cvShowImageAndRectangle'
    cvShowImageAndRectangle( param->w_name, param->img, 
    ^~~~~~~~~~~~~~~~~~~~~~~
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:201:13: note: candidate function not viable: requires at least 5
      arguments, but 4 were provided
CVAPI(void) cvShowImageAndRectangle( const char* w_name, 
            ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:396:28: warning: using the result of an assignment as a condition without
      parentheses [-Wparentheses]
                if( tmpimg = cvQueryFrame( param->cap ) )
                    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:396:28: note: place parentheses around the assignment to silence this
      warning
                if( tmpimg = cvQueryFrame( param->cap ) )
                           ^
                    (                                  )
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:396:28: note: use '==' to turn this assignment into an equality
      comparison
                if( tmpimg = cvQueryFrame( param->cap ) )
                           ^
                           ==
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:620:17: error: no matching function for call to 'cvShowImageAndRectangle'
                cvShowImageAndRectangle( param->w_name, param->img, 
                ^~~~~~~~~~~~~~~~~~~~~~~
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:201:13: note: candidate function not viable: requires at least 5
      arguments, but 4 were provided
CVAPI(void) cvShowImageAndRectangle( const char* w_name, 
            ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:691:9: error: no matching function for call to 'cvShowImageAndRectangle'
        cvShowImageAndRectangle( param->w_name, param->img, 
        ^~~~~~~~~~~~~~~~~~~~~~~
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:201:13: note: candidate function not viable: requires at least 5
      arguments, but 4 were provided
CVAPI(void) cvShowImageAndRectangle( const char* w_name, 
            ^
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/imageclipper.cpp:818:9: error: no matching function for call to 'cvShowImageAndRectangle'
        cvShowImageAndRectangle( param->w_name, param->img, 
        ^~~~~~~~~~~~~~~~~~~~~~~
/Users/choejur/Desktop/OpenALPR/utilities/imageclipper/src/opencvx/cvdrawrectangle.h:201:13: note: candidate function not viable: requires at least 5
      arguments, but 4 were provided
CVAPI(void) cvShowImageAndRectangle( const char* w_name, 
            ^
1 warning and 18 errors generated.
make[2]: *** [CMakeFiles/imageclipper.dir/src/imageclipper.cpp.o] Error 1
make[1]: *** [CMakeFiles/imageclipper.dir/all] Error 2
make: *** [all] Error 2

Compile error in Ubuntu 14.04

I get this error when trying to compile. I've linked OpenCV_DIR and libboost_system and libboost_filesystem correctly.

leonard:~/dev/sandbox/imageclipper$

 make
[ 50%] Building CXX object CMakeFiles/imageclipper.dir/src/imageclipper.cpp.o
In file included from /home/leonard/dev/sandbox/imageclipper/src/opencvx/cvdrawrectangle.h:33:0,
                 from /home/leonard/dev/sandbox/imageclipper/src/imageclipper.cpp:49:
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvcreateaffine.h: In function ‘void cvCreateAffine(CvMat*, CvRect32f, CvPoint2D32f)’:
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvcreateaffine.h:62:5: error: ‘__BEGIN__’ was not declared in this scope
     __BEGIN__;
     ^
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvcreateaffine.h:96:5: error: ‘__END__’ was not declared in this scope
     __END__;
     ^
In file included from /usr/local/include/opencv/cv.h:63:0,
                 from /home/leonard/dev/sandbox/imageclipper/src/imageclipper.cpp:34:
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvcreateaffine.h:63:5: error: label ‘exit’ used but not defined
     CV_ASSERT( rect.width > 0 && rect.height > 0 );
     ^
In file included from /home/leonard/dev/sandbox/imageclipper/src/imageclipper.cpp:49:0:
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvdrawrectangle.h: In function ‘void cvDrawRectangle(IplImage*, CvRect32f, CvPoint2D32f, CvScalar, int, int, int)’:
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvdrawrectangle.h:84:5: error: ‘__BEGIN__’ was not declared in this scope
     __BEGIN__;
     ^
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvdrawrectangle.h:177:5: error: ‘__END__’ was not declared in this scope
     __END__;
     ^
In file included from /usr/local/include/opencv/cv.h:63:0,
                 from /home/leonard/dev/sandbox/imageclipper/src/imageclipper.cpp:34:
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvdrawrectangle.h:85:5: error: label ‘exit’ used but not defined
     CV_ASSERT( rect.width > 0 && rect.height > 0 );
     ^
In file included from /home/leonard/dev/sandbox/imageclipper/src/imageclipper.cpp:50:0:
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvcropimageroi.h: In function ‘void cvCropImageROI(const IplImage*, IplImage*, CvRect32f, CvPoint2D32f)’:
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvcropimageroi.h:64:5: error: ‘__BEGIN__’ was not declared in this scope
     __BEGIN__;
     ^
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvcropimageroi.h:135:5: error: ‘__END__’ was not declared in this scope
     __END__;
     ^
In file included from /usr/local/include/opencv/cv.h:63:0,
                 from /home/leonard/dev/sandbox/imageclipper/src/imageclipper.cpp:34:
/home/leonard/dev/sandbox/imageclipper/src/opencvx/cvcropimageroi.h:65:5: error: label ‘exit’ used but not defined
     CV_ASSERT( rect.width > 0 && rect.height > 0 );
     ^
make[2]: *** [CMakeFiles/imageclipper.dir/src/imageclipper.cpp.o] Error 1
make[1]: *** [CMakeFiles/imageclipper.dir/all] Error 2
make: *** [all] Error 2

Error in make

Hi,

I was having errors when "make", it's related to BEGIN and END not defined and another errors related to CV_ASSERT, however, when I added the following to header files raising the error, it was solved.

define BEGIN {

define END goto exit; exit: ; }

/proceeds to "resource release" stage/

define EXIT goto exit

Why is that although the cxcore is included where these macros should be defined.

Where are the make files?

I was able to successfully cmake it.. but as soon as i tried to make it. it send an error "make: *** No targets specified and no makefile found. Stop."
I am using windows .. i tried both cmake and nmake but same error

Compile error in Mac osx

Got the following error message:

/Users/xxx/Projects/ocr/imageclipper/src/opencvx/cvcreateaffine.h:62:5: error: 
      use of undeclared identifier '__BEGIN__'
    __BEGIN__;
    ^
/Users/xxx/Projects/ocr/imageclipper/src/opencvx/cvcreateaffine.h:96:5: error: 
      use of undeclared identifier '__END__'
    __END__;
    ^
/Users/xxx/Projects/ocr/imageclipper/src/opencvx/cvcreateaffine.h:63:5: error: 
      use of undeclared label 'exit'
    CV_ASSERT( rect.width > 0 && rect.height > 0 );
    ^
/usr/local/include/opencv2/core/core_c.h:2754:9: note: expanded from macro
      'CV_ASSERT'
        CV_ERROR( CV_StsInternal, "Assertion: " #Condition " failed" ); \
        ^
/usr/local/include/opencv2/core/core_c.h:2723:5: note: expanded from macro
      'CV_ERROR'
    __CV_EXIT__;                                                   \
    ^
/usr/local/include/opencv2/core/core_c.h:2759:33: note: expanded from macro
      '__CV_EXIT__'
#define __CV_EXIT__        goto exit
                                ^
In file included from /Users/a635219/Projects/ocr/imageclipper/src/imageclipper.cpp:49:
/Users/a635219/Projects/ocr/imageclipper/src/opencvx/cvdrawrectangle.h:84:5: error: 
      use of undeclared identifier '__BEGIN__'
    __BEGIN__;
    ^
/Users/xxx/Projects/ocr/imageclipper/src/opencvx/cvdrawrectangle.h:177:5: error: 
      use of undeclared identifier '__END__'
    __END__;
    ^
/Users/xxx/Projects/ocr/imageclipper/src/opencvx/cvdrawrectangle.h:85:5: error: 
      use of undeclared label 'exit'
    CV_ASSERT( rect.width > 0 && rect.height > 0 );
    ^
/usr/local/include/opencv2/core/core_c.h:2754:9: note: expanded from macro
      'CV_ASSERT'
        CV_ERROR( CV_StsInternal, "Assertion: " #Condition " failed" ); \
        ^
/usr/local/include/opencv2/core/core_c.h:2723:5: note: expanded from macro
      'CV_ERROR'
    __CV_EXIT__;                                                   \
    ^
/usr/local/include/opencv2/core/core_c.h:2759:33: note: expanded from macro
      '__CV_EXIT__'
#define __CV_EXIT__        goto exit
                                ^
In file included from /Users/a635219/Projects/ocr/imageclipper/src/imageclipper.cpp:50:
/Users/xxx/Projects/ocr/imageclipper/src/opencvx/cvcropimageroi.h:64:5: error: 
      use of undeclared identifier '__BEGIN__'
    __BEGIN__;
    ^
/Users/xxx/Projects/ocr/imageclipper/src/opencvx/cvcropimageroi.h:135:5: error: 
      use of undeclared identifier '__END__'
    __END__;
    ^
/Users/xxx/Projects/ocr/imageclipper/src/opencvx/cvcropimageroi.h:65:5: error: 
      use of undeclared label 'exit'
    CV_ASSERT( rect.width > 0 && rect.height > 0 );
    ^
/usr/local/include/opencv2/core/core_c.h:2754:9: note: expanded from macro
      'CV_ASSERT'
        CV_ERROR( CV_StsInternal, "Assertion: " #Condition " failed" ); \
        ^
/usr/local/include/opencv2/core/core_c.h:2723:5: note: expanded from macro
      'CV_ERROR'
    __CV_EXIT__;                                                   \
    ^
/usr/local/include/opencv2/core/core_c.h:2759:33: note: expanded from macro
      '__CV_EXIT__'
#define __CV_EXIT__        goto exit

Runtime error

The project compiles fine but gives runtime error: segmentation fault (core dumped)

Kindly Help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.