PaddlePaddle / Mobile

Embedded and Mobile Deployment
Apache License 2.0
71 stars 29 forks source link

AICamera android: cannot run normally, because there is no resize process and yuv2rgb function return negative value? #90

Open youngstu opened 6 years ago

youngstu commented 6 years ago

Why push code that bugs exist and cannot run normally to github ? And to mislead others on purpose.

Xreki commented 6 years ago

What kind of error do you meet? We can successfully build the project, the only need is to put the paddle library and models in the right position. We provide a pre-built app, you can download through the QR code. https://github.com/PaddlePaddle/Mobile/tree/develop/Demo/Android/AICamera#quick-install

youngstu commented 6 years ago

I have tryied to run the given model such as face_mobilenet_160_91.paddle, pascal_mobilenet_300_66.paddle. Because the model size is different from camera frame size, the app cannot detect normally.

youngstu commented 6 years ago

Are you sure that you can run it accurately?

youngstu commented 6 years ago

Yeah, I can also build the project successfully but it can not detect anything.

youngstu commented 6 years ago

After I read the project source code, I find that there is no resize process that deals with the difference in size between camera frame size and the model input size.

youngstu commented 6 years ago

The pre-build app that i have tryied, it also failed to detect anying.

Xreki commented 6 years ago

After I read the project source code, I find that there is no resize process that deals with the difference in size between camera frame size and the model input size.

resize is done in c++ codes.

youngstu commented 6 years ago

vivo x9s looks like that it can not detect accurately and help to fix it. thank you.

youngstu commented 6 years ago

Can you help to give the right position to put model ?

Xreki commented 6 years ago

Models should be put under app/src/main/assets/models.