-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp_config.h
More file actions
48 lines (40 loc) · 1.62 KB
/
app_config.h
File metadata and controls
48 lines (40 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
******************************************************************************
* @file app_config.h
* @author GPM Application Team
*
******************************************************************************
* @attention
*
* Copyright (c) 2023 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
#ifndef APP_CONFIG
#define APP_CONFIG
#define USE_DCACHE
/*Defines: CMW_MIRRORFLIP_NONE; CMW_MIRRORFLIP_FLIP; CMW_MIRRORFLIP_MIRROR; CMW_MIRRORFLIP_FLIP_MIRROR;*/
#define CAMERA_FLIP CMW_MIRRORFLIP_NONE
#define ASPECT_RATIO_CROP (1) /* Crop both pipes to nn input aspect ratio; Original aspect ratio kept */
#define ASPECT_RATIO_FIT (2) /* Resize both pipe to NN input aspect ratio; Original aspect ratio not kept */
#define ASPECT_RATIO_FULLSCREEN (3) /* Resize camera image to NN input size and display a maximized image. See Doc/Build-Options.md#aspect-ratio-mode */
#define ASPECT_RATIO_MODE ASPECT_RATIO_FULLSCREEN
#define COLOR_BGR (0)
#define COLOR_RGB (1)
#define COLOR_MODE COLOR_RGB
#define NB_CLASSES 5
#define CLASSES_TABLE const char* classes_table[NB_CLASSES] = {\
"daisy",\
"dandelion",\
"rose",\
"sunflower",\
"tulip"}
/* Display */
#define WELCOME_MSG_1 "mobilenet_v1_0.25_96_tfs_int8.tflite"
#define WELCOME_MSG_2 ((char *[2]) {"Model Running in STM32 MCU", "internal memory"})
#endif