1 Creating your own corner detector {#tutorial_generic_corner_detector}
2 =================================
7 In this tutorial you will learn how to:
9 - Use the OpenCV function @ref cv::cornerEigenValsAndVecs to find the eigenvalues and eigenvectors
10 to determine if a pixel is a corner.
11 - Use the OpenCV function @ref cv::cornerMinEigenVal to find the minimum eigenvalues for corner
13 - Implement our own version of the Harris detector as well as the Shi-Tomasi detector, by using
14 the two functions above.
23 This tutorial code's is shown lines below. You can also download it from
24 [here](https://github.com/opencv/opencv/tree/3.4/samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp)
26 @include samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp
30 This tutorial code's is shown lines below. You can also download it from
31 [here](https://github.com/opencv/opencv/tree/3.4/samples/java/tutorial_code/TrackingMotion/generic_corner_detector/CornerDetectorDemo.java)
33 @include samples/java/tutorial_code/TrackingMotion/generic_corner_detector/CornerDetectorDemo.java
37 This tutorial code's is shown lines below. You can also download it from
38 [here](https://github.com/opencv/opencv/tree/3.4/samples/python/tutorial_code/TrackingMotion/generic_corner_detector/cornerDetector_Demo.py)
40 @include samples/python/tutorial_code/TrackingMotion/generic_corner_detector/cornerDetector_Demo.py
49 ![](images/My_Harris_corner_detector_Result.jpg)
51 ![](images/My_Shi_Tomasi_corner_detector_Result.jpg)