/*
 * Copyright 2019 Xilinx Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
### How to use it ###
compile:
sh build.sh

run in edge: 
./demo_yolov3 /usr/share/vitis_ai_library/models/yolov3_voc/yolov3_voc.elf \
    demo_yolov3.jpg

result:
RESULT: 6       1       133.408 139.665 255.254 0.999673
RESULT: 6       113.796 142.11  190.103 182.402 0.990521
RESULT: 6       402.753 129.565 512     251.411 0.970362
RESULT: 6       351.843 144.018 415.105 168.457 0.873677

run in cloud:
./demo_yolov3 /usr/share/vitis_ai_library/models/yolov3_voc/yolov3_voc.xmodel \
    demo_yolov3.jpg demo_yolov31.jpg demo_yolov32.jpg demo_yolov33.jpg demo_yolov34.jpg

result:
batch_index 0 image_name demo_yolov3.jpg
RESULT: 6       1       133.408 139.665 255.254 0.999673
RESULT: 6       113.796 142.11  190.103 182.402 0.990521
RESULT: 6       402.753 129.565 512     251.411 0.970362
RESULT: 6       351.843 144.018 415.105 168.457 0.873677
batch_index 1 image_name demo_yolov31.jpg
RESULT: 7       51.0207 65.7519 375     457.579 0.999553
batch_index 2 image_name demo_yolov32.jpg
RESULT: 1       165.139 179.089 273.721 242.273 0.999781
RESULT: 6       2.27726 203.58  48.0624 332.974 0.785776
RESULT: 13      2.27726 203.58  48.0624 332.974 0.391412
RESULT: 14      191.481 109.595 258.098 231.15  0.998233
batch_index 3 image_name demo_yolov33.jpg
RESULT: 7       185.304 131.255 364.327 230.15  0.999244
batch_index 4 image_name demo_yolov34.jpg 
RESULT: 12      186.825 31.3578 374.325 334     0.994684

