Commit Graph

773 Commits

Author SHA1 Message Date
Matt Hill
cf917e29ab Targeting correct versions of software in .net project 2015-10-01 20:27:04 -04:00
Matt Hill
c113bd804c Removed charheight/width from config, these are now vectors 2015-10-01 20:27:04 -04:00
Matt Hill
5f02b699c3 Fixed issue with must_match_pattern not returning enough values 2015-10-01 20:17:20 -04:00
Matt Hill
5db8a5ca80 Added missing header for utility 2015-09-30 22:23:01 -04:00
Matt Hill
088cd3ceac Added state detector check 2015-09-30 22:04:12 -04:00
Matt Hill
01cba7ca49 Fixed classifychars utility after multiline changes 2015-09-30 22:03:02 -04:00
Matt Hill
d5958e66f7 Commented out some debug code that caused crashing with variable sized histograms 2015-09-30 22:03:02 -04:00
Matt Hill
3c4000de64 Moved edge filter mask to later.
Previously multiline plates would not detect the second line's edge, since the mask was already applied to the other line.
2015-09-30 22:03:02 -04:00
Matt Hill
9ce8cf7d3c Added multiline context for postprocessing
Pattern matching can now apply line by line patterns for greater accuracy
2015-09-30 22:03:02 -04:00
Matt Hill
af6dcdb587 Doing edge detection for each line of a multiline plate 2015-09-30 22:03:02 -04:00
Matt Hill
3675cd82ab Calculating char gap by distance from midpoint (rather than edge).
More accurate for characters like "1" that don't fill up the full area, but still have the same distance between overall characters
2015-09-30 22:03:01 -04:00
Matt Hill
022e191fb9 Fixed a crash on multiline plates when no line is found 2015-09-30 22:03:01 -04:00
Matt Hill
7040310229 Improved method for finding lines of text on multiline plates.
Uses histograms (parallel to first horizontal line) for second line rather than blob matching.
2015-09-30 22:03:01 -04:00
Matt Hill
6830839592 Supporting auto-invert for multiline character analysis (do the invert before finding the second line) 2015-09-30 22:03:01 -04:00
Matt Hill
c93dee590c Added some commentary to the morph operation in char segmenter 2015-09-30 22:03:01 -04:00
Matt Hill
34701ef638 Reduced second order histogram pixel leniency from 2 to 0 2015-09-30 22:03:01 -04:00
Matt Hill
91d2f32f96 Added extra debug statement to char segmenter 2015-09-30 22:03:01 -04:00
Matt Hill
dc6b35d2a6 Using computed average char size rather than median 2015-09-30 22:03:01 -04:00
Matt Hill
b708d817ca Removed duplicate invert in char segmenter 2015-09-30 22:03:01 -04:00
Matt Hill
76f6f7b721 Removed debug output images 2015-09-30 22:03:01 -04:00
Matt Hill
f597edc99d Handle inverted plates in classifychars utility 2015-09-30 22:03:01 -04:00
Matt Hill
9ea566a8c8 Removed unnecessary static variables 2015-09-30 22:03:01 -04:00
Matt Hill
c2921081e7 Parameterized the speckle removal (based on char height) for each country 2015-09-30 22:03:01 -04:00
Matt Hill
61f37ba596 Added a must_match_pattern config option. When a text pattern is available, all non-matching values will be disregarded. 2015-09-30 22:03:01 -04:00
Matt Hill
c4d35e4e8d Resolves issue #150 Automatically apply pattern matching for countries with only one pattern 2015-09-30 22:03:01 -04:00
Matt Hill
c93667ed74 Fixed combineCloseBoxes logic issues that affected accuracy 2015-09-30 22:03:01 -04:00
Matt Hill
09b7178322 Moved min/max characters from global to country config 2015-09-30 22:03:00 -04:00
Matt Hill
b3afab7c60 Moved 1-dimensional histogram hit to histogram class 2015-09-30 22:03:00 -04:00
Matt Hill
354d6110f8 Using const for textcontour debug image 2015-09-30 22:03:00 -04:00
Matt Hill
f572827c8a Using correct HIstogram class name 2015-09-30 22:03:00 -04:00
Matt Hill
8d765d481d Added per-line values for character height.
Helps support multiline plates with different heights on each line
2015-09-30 22:03:00 -04:00
Matt Hill
75c6784369 Refactored histogram to support horizontal histograms 2015-09-30 22:03:00 -04:00
Matt Hill
7b59d3a238 Added function to get Y value for a point on a line segment 2015-09-30 22:03:00 -04:00
Kees-V
faa152eb1b Provide OpenCL information and instructions. 2015-09-24 18:28:25 +02:00
Matt Hill
8bb3264072 Support analysis for multiple training data sets in a single pass.
Iterate over each training data set and choose the best scoring plate when there are overlaps
This is useful when countries may have multiple different plate styles (e.g., EU single line and EU multi-line)
2015-09-15 23:10:41 -04:00
Matt Hill
5889ec6109 Made OpenCL GPU detector threadsafe 2015-09-14 20:36:29 -04:00
Matt Hill
ec24d1d147 Added support for OpenCL GPU acceleration 2015-09-12 20:14:13 -04:00
Matt Hill
54581ca0e1 Removed cmake file from opencv HINT 2015-09-12 17:42:41 -04:00
Matt Hill
32789bfe7a Added support for OpenCV 3 2015-09-12 17:15:02 -04:00
Matt Hill
83d6e06e14 Added always/never/auto invert config property to country config 2015-09-11 20:04:56 -04:00
Adi P.
8b50ebc1f1 Fixed best plate selection
When searching for best plate index if there are two results that matches the country template and if one of them is at index 0 than the second matching result will be selected as best result.
2015-09-01 14:11:14 +02:00
Matt Hill
582a2c747d Implements issue #187 -- Support wildcards in alpr executable 2015-08-27 20:55:00 -04:00
Matt Hill
8534e80af8 Added disqualification reason to debug output 2015-08-27 20:55:00 -04:00
John Kua
f18e1f7f95 Added check for Mac OS X/Darwin when loading the openalprpy library 2015-08-21 14:42:30 -04:00
Matt Hill
b2988e495b Moved linesegment class to statedetector 2015-08-15 12:13:52 -04:00
Matt Hill
1ea207ddea Fixes issue #183 2015-08-15 11:41:52 -04:00
Peter Rekdal Sunde
1d1472487f Refactor so that we only have a single method that calls m_Impl->recognize. 2015-08-13 18:00:01 +02:00
Peter Rekdal Sunde
ebae0af256 Use overload. 2015-08-13 17:59:57 +02:00
Peter Rekdal Sunde
455ebd9cfb Remove unused methods. 2015-08-13 11:40:34 +02:00
Peter Rekdal Sunde
ea749b737b Use overload. 2015-08-13 11:40:27 +02:00