QVisionInference Class
The QVisionInference class runs AI inference on video frames. More...
| Header: | #include <QVisionInference> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS EdgeAi)target_link_libraries(mytarget PRIVATE Qt6::EdgeAi) |
| qmake: | QT += edgeai |
| Inherits: | QInferenceStep |
| Status: | Technical Preview |
Public Functions
| QVisionInference(const QString &model, const QString &labels = QString(), const QString &name = QString(), const QVariantMap &options = QVariantMap(), QObject *parent = nullptr) | |
| QString | labels() const |
| QString | mode() const |
| QString | model() const |
| QString | module() const |
| QString | name() const |
Detailed Description
QVisionInference takes video input and produces structured output, such as classifications or detections, according to the configured model(), labels(), module(), and mode(). Backend implementations, for example Edge Impulse, are created through QInferenceBackendFactory.
See also QInferenceStep, QInferenceVideoSource, and QInferenceResultParser.
Member Function Documentation
QVisionInference::QVisionInference(const QString &model, const QString &labels = QString(), const QString &name = QString(), const QVariantMap &options = QVariantMap(), QObject *parent = nullptr)
Constructs a QVisionInference with the given model, labels, optional name, and extra options such as "module" and "mode". Passes parent to QInferenceStep.
QString QVisionInference::labels() const
Returns the labels path or content.
See also model() and options().
QString QVisionInference::mode() const
Returns the inference mode.
See also module() and options().
QString QVisionInference::model() const
Returns the model path or identifier.
See also labels() and options().
QString QVisionInference::module() const
Returns the module identifier.
See also mode() and options().
QString QVisionInference::name() const
Returns the step name, taken from the "name" entry of the options map, which is set from the name constructor argument.
See also options().
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.