diff options
-rw-r--r-- | main.cpp | 31 |
1 files changed, 11 insertions, 20 deletions
@@ -132,6 +132,16 @@ static struct ssd_layer_info ssd_input_info[SSD_NUM_OUTPUTS] { }, }; +struct SSDbox { + float top; + float left; + float bottom; + float right; + uint32_t id; + float score; +}; +static struct SSDbox SSDBoxes[MAX_ITEMS]; + std::vector<const char*> ssd_classes = { "person", "bicycle", @@ -234,26 +244,6 @@ std::vector<const char*> ssd_classes = { "???", }; - -struct SSDbox { - float top; - float left; - float bottom; - float right; - uint32_t id; - float score; -}; -struct SSDbox SSDBoxes[MAX_ITEMS]; - -struct SSDbox test[2] = { - [0] = { - .top = 3, - }, - [1] = { - .top = 3, - }, -}; - static int uint8_to_float(uint8_t *data, uint8_t *fdata, size_t length) { float *float_data = (float *)fdata; @@ -460,5 +450,6 @@ int main(int argc, char** argv) waitKey(1); } snpe.reset(); + free(data); return 0; } |