TinyTrainable
 
Loading...
Searching...
No Matches
RecognizeCommands Class Reference

#include <recognize_commands.h>

Public Member Functions

 RecognizeCommands (int32_t average_window_duration_ms=1000, uint8_t detection_threshold=200, int32_t suppression_ms=1500, int32_t minimum_count=3)
 
TfLiteStatus ProcessLatestResults (const TfLiteTensor *latest_results, const int32_t current_time_ms, const char **found_command, uint8_t *score, bool *is_new_command)
 

Private Attributes

int32_t average_window_duration_ms_
 
uint8_t detection_threshold_
 
int32_t suppression_ms_
 
int32_t minimum_count_
 
PreviousResultsQueue previous_results_
 
const char * previous_top_label_
 
int32_t previous_top_label_time_
 

Constructor & Destructor Documentation

◆ RecognizeCommands()

RecognizeCommands::RecognizeCommands ( int32_t  average_window_duration_ms = 1000,
uint8_t  detection_threshold = 200,
int32_t  suppression_ms = 1500,
int32_t  minimum_count = 3 
)
explicit

Member Function Documentation

◆ ProcessLatestResults()

TfLiteStatus RecognizeCommands::ProcessLatestResults ( const TfLiteTensor *  latest_results,
const int32_t  current_time_ms,
const char **  found_command,
uint8_t *  score,
bool *  is_new_command 
)

Member Data Documentation

◆ average_window_duration_ms_

int32_t RecognizeCommands::average_window_duration_ms_
private

◆ detection_threshold_

uint8_t RecognizeCommands::detection_threshold_
private

◆ minimum_count_

int32_t RecognizeCommands::minimum_count_
private

◆ previous_results_

PreviousResultsQueue RecognizeCommands::previous_results_
private

◆ previous_top_label_

const char* RecognizeCommands::previous_top_label_
private

◆ previous_top_label_time_

int32_t RecognizeCommands::previous_top_label_time_
private

◆ suppression_ms_

int32_t RecognizeCommands::suppression_ms_
private

The documentation for this class was generated from the following files: