FightsEstimator estimator interface.
More...
#include <IFightsEstimator.h>
FightsEstimator estimator interface.
- Note
- This estimator is designed for video analysis to find the fights. The video should be passes as an array of frames in the Format::R8G8B8 format, grouped by batches with size M. Note: the M value could be known by getBathSize() call
virtual ResultValue<FSDKError, IFightsEstimatorContextPtr> fsdk::IFightsEstimator::estimate |
( |
Span< const Image > |
framesBatch, |
|
|
IFightsEstimatorContextPtr |
context |
|
) |
| const |
|
pure virtualnoexcept |
Esimates current fight state for the batch from the video for analysis.
- Parameters
-
[in] | framesBatch | source frames batch. |
[in] | [out] | context - context structure with current state of processing. |
- Returns
- ResultValue with error code and the IFightsEstimatorContext object.
- See Also
- Image, Span, ResultValue, IFightsEstimatorContext and FSDKError for details.
- Note
- The context in an input-output parrameter. At the first call the context should be empty (IFightsEstimatorContextPtr{}). And it will be returned by the call. At the next calls the contenxt should contain the object from the previous call.
virtual size_t fsdk::IFightsEstimator::getMinBatchCount |
( |
| ) |
const |
|
pure virtualnoexcept |
Returns the minimun count of batches from the video for analysis.
- Note
- The estimator will return IFightsEstimatorContext::State::NotReady until all required frames batches have been passed for processing.
- See Also
- IFightsEstimatorContext::State for details.
Validates input batch of frames in a single function call.
- Parameters
-
[in] | framesBatch | source frames batch. |
[out] | errors | output span of errors for each image. |
- Returns
- Result with error code.
- See Also
- Image, Span, Result and FSDKError for details.
- Note
- Images format must be Format::R8G8B8,
- See Also
- Format.
- Note
- all spans should be based on user owned continuous collections.
-
all spans should be equal size.
The documentation for this struct was generated from the following file: