esp-who/components/common/include/app_common.hpp

34 lines
929 B
C++
Raw Normal View History

#pragma once
#include <list>
#include "dl_detect_define.hpp"
#include "app_define.h"
/**
* @brief Draw detection result on RGB565 image.
*
* @param image_ptr image
* @param image_height height of image
* @param image_width width of image
* @param results detection results
*/
void draw_detection_result(uint16_t *image_ptr, int image_height, int image_width, std::list<dl::detect::result_t> &results);
/**
* @brief Draw detection result on RGB888 image.
*
* @param image_ptr image
* @param image_height height of image
* @param image_width width of image
* @param results detection results
*/
void draw_detection_result(uint8_t *image_ptr, int image_height, int image_width, std::list<dl::detect::result_t> &results);
/**
* @brief Print detection result in terminal
*
* @param results detection results
*/
void print_detection_result(std::list<dl::detect::result_t> &results);