ObjectDetectionOrtSessionHandler

Copyright (c) organization

Author

btran

namespace Ort
class ObjectDetectionOrtSessionHandler : public Ort::ImageRecognitionOrtSessionHandlerBase
#include <ObjectDetectionOrtSessionHandler.hpp>

An ObjectDetectionOrtSessionHandler class object. This class inherits ImageRecognitionOrtSessionHandlerBase and is used by TestObjectDetection.cpp under examples.

Public Functions

ObjectDetectionOrtSessionHandler(const uint16_t numClasses, const std::string &modelPath, const std::optional<size_t> &gpuIdx = std::nullopt, const std::optional<std::vector<std::vector<int64_t>>> &inputShapes = std::nullopt)

This calls ObjectDetectionOrtSessionHandler’s constructor. It also:

  1. Initializes m_numClasses with numClasses.

  2. Initializes an internal OrtSessionHandler with modelPath, gpuIdx and inputShapes.

~ObjectDetectionOrtSessionHandler()

Calls standard destructor. Is empty destructor.