git clone https://github.com/twqa/OpenCV_Workshop.git
project structure --> Modules --> 1_test --> click "+" at the bottom --> JARs or directories... --> add /your/path/opencv-310.jar (/opt/local/share/OpenCV/java/opencv-310.jar)
Edit Configurations... --> default --> Application --> Configuration --> add -Djava.library.path=/your/path/OpenCV/java/ (-Djava.library.path=/opt/local/share/OpenCV/java/) to VM options
Edit Configurations... --> default --> Junit --> Configuration --> add -Djava.library.path=/your/path/OpenCV/java/ (-Djava.library.path=/opt/local/share/OpenCV/java/) to VM options
1.1完成matchAndFindLoc函数,获取最佳匹配位置
1.2完成getMatchArea函数,画出匹配区域