# Source code of "flann.knnMatch" and "cv2.SIFT\_create()"

**URL:** <https://forum.opencv.org/t/source-code-of-flann-knnmatch-and-cv2-sift-create/7420>\
**Category:** Python\
**Created:** [February 3, 2022, 9:29am UTC](https://forum.opencv.org/t/source-code-of-flann-knnmatch-and-cv2-sift-create/7420 "2022-02-03T09:29:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akash\_Pandey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/akash_pandey/32/1562_2.png) [@Akash\_Pandey](https://forum.opencv.org/u/Akash_Pandey)\
**Post date:** [February 3, 2022, 9:29am UTC](https://forum.opencv.org/t/source-code-of-flann-knnmatch-and-cv2-sift-create/7420/1 "2022-02-03T09:29:33Z")

</div>

Hi,  
I am searching for the source code “flann.knnMatch” and “cv2.SIFT\_create()” of these in python, but only function definitions are written. Can any body point me out to the source code of these, it will be great help.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 3, 2022, 9:42am UTC](https://forum.opencv.org/t/source-code-of-flann-knnmatch-and-cv2-sift-create/7420/2 "2022-02-03T09:42:52Z")

</div>

> [@Akash\_Pandey](#):
>
> I am searching for the source code “flann.knnMatch” and “cv2.SIFT\_create()” of these in python

opencv is actually a c++ library, there is no python src code for this  
however, have a look [here](https://github.com/opencv/opencv/blob/4.x/modules/features2d/src/sift.dispatch.cpp) and [here](https://github.com/opencv/opencv/blob/4.x/modules/features2d/src/matchers.cpp)

---

<div class="post-metadata">

**Author:** ![Akash\_Pandey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/akash_pandey/32/1562_2.png) [@Akash\_Pandey](https://forum.opencv.org/u/Akash_Pandey)\
**Post date:** [February 3, 2022, 9:44am UTC](https://forum.opencv.org/t/source-code-of-flann-knnmatch-and-cv2-sift-create/7420/3 "2022-02-03T09:44:58Z")

</div>

@berak thanks for quick response
