Open Xreki opened 6 years ago
Copy the PaddlePaddle's library to your project root
Add the include
directory to Header Search Paths
Add the Accelerate.framework
or veclib.framework
to your project, if your PaddlePaddle is built with IOS_USE_VECLIB_FOR_BLAS=ON
Add the libraries of paddle, libpaddle_capi_layers.a
and libpaddle_capi_engine.a
, and all the third party libraries to your project
Set -force_load
for libpaddle_capi_layers.a
We are planing to build a SSD (Single Shot MultiBox Detector) demo running on Android and iOS. PaddlePaddle has integrated the SSD algorithm and posted an example to demonstrate how to use the SSD model for object detection, https://github.com/PaddlePaddle/models/tree/develop/ssd.
Goals
To show PaddlePaddle's ability on mobile, we choose to run inference of SSD model on Android and iOS with following goals:
Tasks
300 x 300
, means[104, 117, 124]
ImageRecoginizer
with three inferfaces:init()
,infer()
,release()
Details
Input: pixels of a colored image
[RRRRRR][GGGGGG][BBBBBB]
Output
The inference's output type is
paddle_matrix
. The height of the matrix is the number of detected objects, and the width is fixed to 7.0.0
.person
.(xmin, ymin, xmax, ymax)
, the relative coordinate of the rectangle.Show
The rectangle, category, and score of the detected objects are wished to be correctly shown, like
Reference