1 Feature Detection {#tutorial_feature_detection}
4 @prev_tutorial{tutorial_corner_subpixels}
5 @next_tutorial{tutorial_feature_description}
10 In this tutorial you will learn how to:
12 - Use the @ref cv::FeatureDetector interface in order to find interest points. Specifically:
13 - Use the cv::xfeatures2d::SURF and its function cv::xfeatures2d::SURF::detect to perform the
15 - Use the function @ref cv::drawKeypoints to draw the detected keypoints
17 \warning You need the <a href="https://github.com/opencv/opencv_contrib">OpenCV contrib modules</a> to be able to use the SURF features
18 (alternatives are ORB, KAZE, ... features).
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/features2D/feature_detection/SURF_detection_Demo.cpp)
29 @include samples/cpp/tutorial_code/features2D/feature_detection/SURF_detection_Demo.cpp
33 This tutorial code's is shown lines below. You can also download it from
34 [here](https://github.com/opencv/opencv/tree/3.4/samples/java/tutorial_code/features2D/feature_detection/SURFDetectionDemo.java)
35 @include samples/java/tutorial_code/features2D/feature_detection/SURFDetectionDemo.java
39 This tutorial code's is shown lines below. You can also download it from
40 [here](https://github.com/opencv/opencv/tree/3.4/samples/python/tutorial_code/features2D/feature_detection/SURF_detection_Demo.py)
41 @include samples/python/tutorial_code/features2D/feature_detection/SURF_detection_Demo.py
50 -# Here is the result of the feature detection applied to the `box.png` image:
52 ![](images/Feature_Detection_Result_a.jpg)
54 -# And here is the result for the `box_in_scene.png` image:
56 ![](images/Feature_Detection_Result_b.jpg)