# Loading a Classifier and Classifying a New Image

This code snippet shows how load a trained classifier and classify a new image.

## C++

```cpp
#include <eVision/EasyDeepLearning/EasyClassify/EClassifier.h>
```

```cpp
using namespace eVision;
using namespace eVision::EasyDeepLearning;

// Image and classifier constructor
EClassifier classifier;
EImageBW8 srcImage;

// String and probability for the most probable result
std::string label;
float probability;

// Load classifier and image
classifier.Load("classier_path");
srcImage.Load("image_path");

// Classify image
EClassificationResult result = classifier.Classify(srcImage);

// Get the most probable label
label = result.GetBestLabel();
probability = result.GetBestProbability();
```

## C#

```cs
using eVision;
using eVision.EasyDeepLearning;
```

```cs
// Image and classifier constructor
EClassifier classifier = new EClassifier();
EImageBW8 srcImage = new EImageBW8();

// String and probability for the most probable result
string label;
float probability;

// Load classifier and image
classifier.Load("classier_path");
srcImage.Load("image_path");

// Classify image
EClassificationResult result = classifier.Classify(srcImage);

// Get the most probable label
label = result.BestLabel;
probability = result.BestProbability;
```

## Python

```py
import eVision
from eVision import EasyDeepLearning as edl

# Image and classifier constructor
classifier = edl.EClassifier()
src_image = eVision.EImageBW8()

# Load classifier and image
classifier.Load("classier_path")
src_image.Load("image_path")

# Classify image
result = classifier.Classify(src_image)

# Get the most probable label
label = result.BestLabel
probability = result.BestProbability
```
