Skip to content

jorketcode/Fastest_Image_Pattern_Matching

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastest_Image_Pattern_Matching

Using C++/MFC/OpenCV to build a NCC-Based Image Matching algorithm

The Pattern Matching algorithm is based on Normalized Cross Correlation, and the formular is as followed:

image

steps to build this project

  1. Download Visual Studio 2017 or newer versions
  2. Check on the option of "x86 and x64 version of C++ MFC"
  3. Install
  4. Open ELCVMatchTool.sln
  5. Upgrade if it is required
  6. Open this project's property page
  7. Modified "General-Output Directory" to the .exe directory you want
  8. Choose the SDK version you have in "General-Windows SDK Version"
  9. Choose the right toolset you have in "General-Platform Toolset" (for me, it is Visual Studio 2017 (v141))
  10. Go to "VC++ Directories", and type in "Include Directories" for your own OpenCV
  11. Type in "Library Directories" for your own OpenCV's library path
  12. Go to "Linker-Input", and type in library name (for me, it is opencv_world310d_vs2017.lib)
  13. Make sure that your opencv.dll is in the same directory as .exe of this project

usage of this project

  1. Drag Source Image to the Left Area
  2. Drag Pattern Image (Golden Sample) to the Right Top Area
  3. Push "Match" Button image

tests

Test 1

image

Test 2

image

Test 3

image

Test 4

image

Test 6

image

Parameters Setting

Demonstration Video Link

https://www.youtube.com/watch?v=2h_lN79SpMM&ab_channel=%E5%8A%89%E6%9F%8F%E5%AF%AC

Use this program to implement OCR detection

https://www.youtube.com/watch?v=lM0NK6xVNfg&ab_channel=%E5%8A%89%E6%9F%8F%E5%AF%AC

About

Using C++/MFC/OpenCV to build a NCC-Based Image Matching algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.4%
  • C 5.6%