1 Creating your own corner detector {#tutorial_generic_corner_detector}
2 =================================
4 @prev_tutorial{tutorial_good_features_to_track}
5 @next_tutorial{tutorial_corner_subpixels}
11 In this tutorial you will learn how to:
13 - Use the OpenCV function @ref cv::cornerEigenValsAndVecs to find the eigenvalues and eigenvectors
14 to determine if a pixel is a corner.
15 - Use the OpenCV function @ref cv::cornerMinEigenVal to find the minimum eigenvalues for corner
17 - Implement our own version of the Harris detector as well as the Shi-Tomasi detector, by using
18 the two functions above.
27 This tutorial code's is shown lines below. You can also download it from
28 [here](https://github.com/opencv/opencv/tree/3.4/samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp)
30 @include samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp
34 This tutorial code's is shown lines below. You can also download it from
35 [here](https://github.com/opencv/opencv/tree/3.4/samples/java/tutorial_code/TrackingMotion/generic_corner_detector/CornerDetectorDemo.java)
37 @include samples/java/tutorial_code/TrackingMotion/generic_corner_detector/CornerDetectorDemo.java
41 This tutorial code's is shown lines below. You can also download it from
42 [here](https://github.com/opencv/opencv/tree/3.4/samples/python/tutorial_code/TrackingMotion/generic_corner_detector/cornerDetector_Demo.py)
44 @include samples/python/tutorial_code/TrackingMotion/generic_corner_detector/cornerDetector_Demo.py
53 ![](images/My_Harris_corner_detector_Result.jpg)
55 ![](images/My_Shi_Tomasi_corner_detector_Result.jpg)