EasyLocateInference

Support

Required licenses

EasyLocate

Recommended images

In the Deep Learning Additional Resources, the images from the folder EasyLocate

Location

[…]C:\Users\Public\Documents\Euresys\Open eVision 24.02\Sample Programs
\[LANGUAGE] samples
\Deep Learning Inspection\EasyLocateInference

Purpose

This sample program demonstrates how to:

Perform an inference with EasyLocate.
Display the results.

Code highlights

In the Deep Learning Additional Resources, use:

For EasyLocate Axis Aligned Bounding Box:

- Images: EasyLocate/ElectronicComponentsBag/Images

- Tool: EasyLocate/ElectronicComponentsBag/Tool 1/ElectronicComponentsBag.edltool

For EasyLocate Interest Point:

- Images: EasyLocate/CeramicCapa/Images

- Tool: EasyLocate/CeramicCapa/Tool 1/CeramicCapa.edltool

1. Apply the EasyLocate tool on an image.
ELocatorResult m_Result = m_Locator->Apply(m_Img);
2. Draw the image.
if (!pDoc->m_Img.IsVoid())
{
  pDoc->m_Img.Draw(hDC, 2.f, 2.f, -20, -20);
}
3. Draw the detected bounding boxes or interest points.
pDoc->m_Result.Draw(hDC, true, true, 2.f, 2.f, -20, -20);