Mobile icon indicating copy to clipboard operation
Mobile copied to clipboard

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

Open youngstu opened this issue 6 years ago • 10 comments

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

youngstu avatar Apr 27 '18 11:04 youngstu

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

Xreki avatar Apr 27 '18 11:04 Xreki

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 avatar Apr 27 '18 12:04 youngstu

Are you sure that you can run it accurately?

youngstu avatar Apr 27 '18 12:04 youngstu

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

youngstu avatar Apr 27 '18 12:04 youngstu

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 avatar Apr 27 '18 12:04 youngstu

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

youngstu avatar Apr 27 '18 12:04 youngstu

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.

Xreki avatar Apr 27 '18 12:04 Xreki

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

youngstu avatar Apr 27 '18 12:04 youngstu

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

youngstu avatar Apr 27 '18 12:04 youngstu

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

Xreki avatar Apr 28 '18 02:04 Xreki