# Revision history [back]

### How to find if 2 rectangles are overlapping each other

Hello Forum,

For the following image below, how do i determine if the smaller rectangle is overlapped / partially overlapped with the larger one ? I have their coordinates in frame i.e. rect.x and rect.y.

Should I just use FLANN or is there a better way ? http://docs.opencv.org/modules/flann/doc/flann_fast_approximate_nearest_neighbor_search.html

### How to find if 2 rectangles are overlapping each other

Hello Forum,

For the following image below, how do i determine if the smaller rectangle is overlapped / partially overlapped with the larger one ? I have their coordinates in frame i.e. rect.x and rect.y.

Should I just use FLANN or Nearest Neighbour or is there a better way ? http://docs.opencv.org/modules/flann/doc/flann_fast_approximate_nearest_neighbor_search.html

 3 retagged sturkmen 5966 ●3 ●41 ●68 https://github.com/stu...

### How to find if 2 rectangles are overlapping each other

Hello Forum,

For the following image below, how do i determine if the smaller rectangle is overlapped / partially overlapped with the larger one ? I have their coordinates in frame i.e. rect.x and rect.y.

Should I just use FLANN or Nearest Neighbour or is there a better way ? http://docs.opencv.org/modules/flann/doc/flann_fast_approximate_nearest_neighbor_search.html

 4 retagged sturkmen 5966 ●3 ●41 ●68 https://github.com/stu...

### How to find if 2 rectangles are overlapping each other

Hello Forum,

For the following image below, how do i determine if the smaller rectangle is overlapped / partially overlapped with the larger one ? I have their coordinates in frame i.e. rect.x and rect.y.

Should I just use FLANN or Nearest Neighbour or is there a better way ? http://docs.opencv.org/modules/flann/doc/flann_fast_approximate_nearest_neighbor_search.html