Banuba SDK
Loading...
Searching...
No Matches
feature.hpp
Go to the documentation of this file.
1/// \file
2/// \addtogroup Recognizer
3/// @{
4///
5// AUTOGENERATED FILE - DO NOT MODIFY!
6// This file was generated by Djinni from recognizer.djinni
7
8#pragma once
9
11#include <bnb/utils/defs.hpp>
12#include <cstdint>
13#include <memory>
14#include <string>
15
16namespace bnb { namespace interfaces {
17
18class BNB_EXPORT feature {
19public:
20 virtual ~feature() {}
21
22 /**must return unique id (e.g. a feature pointer or a true random number(most likely) satisfies this criteria) */
23 virtual int64_t id() = 0;
24
25 virtual std::string name() = 0;
26
27 virtual bool requires_main_thread() = 0;
28
29 virtual void clean() = 0;
30
31 virtual void process(const std::shared_ptr<::bnb::interfaces::frame_data> & frame_data) = 0;
32
33 virtual void postprocess(const std::shared_ptr<::bnb::interfaces::frame_data> & fd, const std::shared_ptr<::bnb::interfaces::frame_data> & future_fd) = 0;
34};
35
36} } // namespace bnb::interfaces
37/// @}
38
virtual int64_t id()=0
must return unique id (e.g.
getters throw exceptions when data are not available android NNs usually output gpu masks