# EasyClassifyInference

| Support            | ![](assets/images/sample_programs/applies_to/cpp.svg) ![](assets/images/sample_programs/applies_to/cs.svg) ![](assets/images/sample_programs/applies_to/qt.svg) ![](assets/images/sample_programs/applies_to/python.svg)   |
|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Required licenses  | **EasyClassify**                                                                                                                                                                                                           |
| Recommended images | In the Deep Learning Additional Resources, the images from the folder `EasyClassify/MiniWaffles/Images`                                                                                                                    |
| Location           | `Deep Learning Inspection/EasyClassifyInference` and `Console samples/Deep Learning Inspection` *with Python*                                                                                                              |

## Purpose

This sample program demonstrates how to:

- Perform an inference with **EasyClassify**.
- Display the results.

![](assets/images/sample_programs/deep_learning_easyclassifyinference.webp)

## Code highlights

In the Deep Learning Additional Resources, use the tool `EasyClassify/MiniWaffles/Tool 1/MiniWaffles.edltool`.

1. Apply the classifier on an image and measure the inference time:
   ```c++
   Easy::StartTiming();
   m_DetectedClass = m_Classifier.Classify(m_Src).GetBestLabel();
   int elapsed = Easy::StopTiming(1000);
   m_DetectedClass = m_DetectedClass + "(" + std::to_string(elapsed) + " ms)";
   ```
