# easy_find_learn

| Support            | ![](assets/images/sample_programs/applies_to/python.svg)   |
|--------------------|------------------------------------------------------------|
| Required licenses  | **EasyFind**                                               |
| Recommended images | Any image from the folder `Sample Images/EasyFind`         |
| Location           | `Qt samples/EasyFindLearn`                                 |

## Purpose

This sample program demonstrates how to:

- Learn a pattern.
- Find it in an image using in a Qt application.

![](assets/images/sample_programs/python_specific-easyfind.webp)

## Code highlights

1. Learn a pattern from an image.
   ```c++
   self.finder.Learn(self.roi)
   ```
2. Find the learned pattern in an image.
   ```c++
   self.found_patterns = self.finder.Find(self.image)
   ```
