Commit Graph

49 Commits

Author SHA1 Message Date
DefTruth
2613e9c5d0 [Android] support fastdeploy build with static deps(60Mb->29~31Mb) (#1176)
* [Android] support fastdeploy build with static deps(70Mb->17~19Mb)

* [Android] support fastdeploy build with static deps(60Mb->29~30Mb)

* fixed ci

* fixed ci

* [staticlib] support fd android static lib

* [static] optimize bundle_static_library func

* [staticlib] add api_helpers.h -> staticlib headers

* [staticlib] add api_helpers.h -> staticlib headers

* [staticlib] add api_helpers.h -> staticlib headers

* [staticlib] Fixed Paddle Lite paddle_use_kernels.h to support fd armv7 static lib

* [staticlib] Add strip -> fd static lib target

* [staticlib] optimize bundle_static_library func

* [staticlib] add strip for fd static lib on  mac osx

* [staticlib] move api_helpers -> lite/option

* [staticlib] optimize bundle_static_library

* [staticlib] add Android limit
2023-01-30 19:39:56 +08:00
Jack Zhou
a906ddd8ea Merge branch 'develop' into add_batch_size_for_uie 2022-12-28 10:51:40 +08:00
zhoushunjie
e36ee2e1d5 fix uie jaa 2022-12-28 02:36:13 +00:00
Winter
7ce999f08e [Android] Add some face alignment app example code (#981) 2022-12-27 14:51:07 +08:00
Winter
9f9f567092 [Android] Add some matting app example code (#977)
add matting module
2022-12-27 14:49:55 +08:00
DefTruth
4e261f702f [Android] Update SDK download links -> dailybuild 0.0.0 (#950)
* [Android] Update SDK download links

* [Android] Revert c++ sdk download link

* [Android] Update c++ sdk download link

* [Android] Update c++ sdk download link

* [Android] Update c++ sdk download link

* [Android] Update c++ sdk download link

* [Android] Update c++ sdk download link
2022-12-22 19:51:49 +08:00
DefTruth
d4faddc0aa [Android] add Android UIE JNI support (#885)
* [UIE] init UIE JNI codes

* [UIE] init UIE JNI codes

* [Android] Add UIE SchemaNode

* [Android] Add UIE SchemaNode

* [Android] Add AllocateUIECxxSchemaNodeFromJava func

* [Android] Add AllocateUIECxxSchemaNodeFromJava func

* Delete README_Ру́сский_язы́к.md

* Delete README_한국어.md

* [Android] add uie utils jni

* [Android] add uie-nano model download task

* [Android] add uie jni support

* [Java] remove log

* [Java] remove log
2022-12-22 10:14:02 +08:00
Winter
c85b229e5b [Android] Add Super Resolution app module (#880)
* add Superscript.

* change "superscript" to "super resolution".

* delete camera page,add album select button.

* VoiceAssistant and SuperResolution add SettingsActivity.

* VoiceAssistant and SuperResolution add SettingsActivity.

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
2022-12-20 15:28:01 +08:00
Winter
c4852a8440 [Android] Change text package name (#866)
* [Android]add VoiceAssistant.

* Create VoiceAssistantDemo

* Update and rename VoiceAssistantDemo to VoiceAssistantDemo.md

* Update VoiceAssistantDemo.md

* Delete VoiceAssistantDemo.md

* [Android]1.delete about core folder.
2.build and configure bdasr_V3_20210628_cfe8c44.aar file.

* change app/build.gradle etc.

* Update build.gradle

* change package name.

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
2022-12-14 12:53:38 +08:00
Winter
e877f0fd07 [Android] add VoiceAssistant app example (#834)
* [Android]add VoiceAssistant.

* Create VoiceAssistantDemo

* Update and rename VoiceAssistantDemo to VoiceAssistantDemo.md

* Update VoiceAssistantDemo.md

* Delete VoiceAssistantDemo.md

* [Android]1.delete about core folder.
2.build and configure bdasr_V3_20210628_cfe8c44.aar file.

* change app/build.gradle etc.

* Update build.gradle

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
2022-12-11 12:57:59 +08:00
DefTruth
195132a1c7 [Android] Update Android build scripts & app download tasks (#835)
* [Android] Add ERNIE3.0 intent and slot task jni support

* [Bug Fix] fix app sdk download tasks

* [Bug Fix] fix app sdk download tasks

* [JNI] remove empty .cc files

* [Android] Update Android build scripts
2022-12-09 15:53:26 +08:00
Winter
8b2f2314ca [Android] change welcome page. (#792)
* Remove redundant code for segmentation.

* Classification Documentation and example improvement.

* Ocr Documentation and example improvement.

* 1.detection、face、seg module add "svPreview.enableCamera();".
2.java/android add fastdepolyUi module.

* examples/vision/ to add OCRv3.

* Modify UI directory name.

* Refresh examples\vision,change OCR README.md

* Update ui module

* Update ui module

* [Android] add enableCamera method.

* [Android] add welcome page.

* [Android] add text:“Power by EasyEdge”.

* [Android] change welcome page.

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
2022-12-05 10:55:31 +08:00
Winter
0d53ebb060 [Android] add app welcome page (#766)
* Remove redundant code for segmentation.

* Classification Documentation and example improvement.

* Ocr Documentation and example improvement.

* 1.detection、face、seg module add "svPreview.enableCamera();".
2.java/android add fastdepolyUi module.

* examples/vision/ to add OCRv3.

* Modify UI directory name.

* Refresh examples\vision,change OCR README.md

* Update ui module

* Update ui module

* [Android] add enableCamera method.

* [Android] add welcome page.

* [Android] add text:“Power by EasyEdge”.

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
2022-12-01 14:55:12 +08:00
DefTruth
63f60aa35c [Android] Add PP-OCRv3 int8 docs and fix NULL cls result error (#762)
* [Android] Update ppseg jni via new api and optimize jni vis funcs

* delete local refs

* [Android] Add PPTinyPose jni and java api

* [Android] Update gradle download tasks info

* [Android] Add PPTinyPose Android app example

* update app build.gradle

* [Android] Add PP-OCRv3 int8 docs and fix NULL cls result error
2022-12-01 11:16:40 +08:00
DefTruth
8e4a38ce21 [Android] Support PPTinyPose on Android (#746)
* [Android] Update ppseg jni via new api and optimize jni vis funcs

* delete local refs

* [Android] Add PPTinyPose jni and java api

* [Android] Update gradle download tasks info

* [Android] Add PPTinyPose Android app example

* update app build.gradle
2022-11-30 16:29:20 +08:00
Winter
298a4084c2 [Android] Update ui module structure. (#706)
* Remove redundant code for segmentation.

* Classification Documentation and example improvement.

* Ocr Documentation and example improvement.

* 1.detection、face、seg module add "svPreview.enableCamera();".
2.java/android add fastdepolyUi module.

* examples/vision/ to add OCRv3.

* Modify UI directory name.

* Refresh examples\vision,change OCR README.md

* Update ui module

* Update ui module

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
2022-11-29 21:48:02 +08:00
DefTruth
bfffbc7712 [Android] Update ppseg jni via new api and optimize jni vis func (#734)
* [Android] Update ppseg jni via new api and optimize jni vis funcs

* delete local refs
2022-11-29 09:34:34 +08:00
DefTruth
e53838c475 [Bug Fix] add enableCamera method to fix app crash (#696)
* [Android] Add CxxBuffer to native PaddleSegModel

* [Android] Add PaddleSeg android app example

* [Android] Add SCRFD android app example

* [Doc] fix typos

* [Android] revert camera setting changes

* [Bug Fix] fixed ppdet postprocess empty result error

* [Android] add enableCamera method to fix app crash
2022-11-25 09:01:35 +08:00
DefTruth
c2714000b5 [Android] Add SCRFD android app example (#682)
* [Android] Add CxxBuffer to native PaddleSegModel

* [Android] Add PaddleSeg android app example

* [Android] Add SCRFD android app example

* [Doc] fix typos

* [Android] revert camera setting changes
2022-11-23 21:08:27 +08:00
DefTruth
ff5fb248ff [Android] Add CxxBuffer to native and Java PaddleSegModel (#677)
[Android] Add CxxBuffer to native PaddleSegModel
2022-11-23 16:10:11 +08:00
DefTruth
efc800adec [Doc] Update Android SDK usage docs (#657)
* [Bug Fix] fix android app detail page errors

* [Android] fix realtime camera mode and shutter

* [Bug Fix] fix AllocateSegmentationResultFromJava error

* [Bug Fix] fix camera preview size setting problem

* [Model] use uint8 buffer instead of fp32 in ppseg postprocess

* [Model] revert changes in ppseg

* [Model] revert postprocess changes in ppseg

* [Android] add fastdeploy android sdk download task

* [Bug Fix] fix yolov5face scale error in small image

* [Doc] Update Android SDK docs

* [Doc] Update Android SDK usage docs
2022-11-22 17:00:07 +08:00
DefTruth
823b3f7015 [Bug Fix] fix yolov5face scale error in small image (#649)
* [Bug Fix] fix android app detail page errors

* [Android] fix realtime camera mode and shutter

* [Bug Fix] fix AllocateSegmentationResultFromJava error

* [Bug Fix] fix camera preview size setting problem

* [Model] use uint8 buffer instead of fp32 in ppseg postprocess

* [Model] revert changes in ppseg

* [Model] revert postprocess changes in ppseg

* [Android] add fastdeploy android sdk download task

* [Bug Fix] fix yolov5face scale error in small image
2022-11-21 21:11:52 +08:00
Winter
04566e5fe4 [Android] Remove redundant code for segmentation app (#642)
Remove redundant code for segmentation.

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
2022-11-21 18:44:37 +08:00
DefTruth
7ceb082077 [Android] add fastdeploy android sdk download task (#646)
* [Bug Fix] fix android app detail page errors

* [Android] fix realtime camera mode and shutter

* [Bug Fix] fix AllocateSegmentationResultFromJava error

* [Bug Fix] fix camera preview size setting problem

* [Model] use uint8 buffer instead of fp32 in ppseg postprocess

* [Model] revert changes in ppseg

* [Model] revert postprocess changes in ppseg

* [Android] add fastdeploy android sdk download task
2022-11-21 15:22:28 +08:00
DefTruth
10ac610df6 [Bug Fix] fix camera preview size setting problem (#638)
* [Bug Fix] fix android app detail page errors

* [Android] fix realtime camera mode and shutter

* [Bug Fix] fix AllocateSegmentationResultFromJava error

* [Bug Fix] fix camera preview size setting problem

* [Model] use uint8 buffer instead of fp32 in ppseg postprocess

* [Model] revert changes in ppseg

* [Model] revert postprocess changes in ppseg
2022-11-21 10:52:11 +08:00
DefTruth
1609ce1bab [Bug Fix] fix AllocateFaceDetectionResultFromJava error (#628)
* [Bug Fix] fix android app detail page errors

* [Android] fix realtime camera mode and shutter

* [Bug Fix] fix AllocateSegmentationResultFromJava error
2022-11-18 11:12:16 +08:00
DefTruth
c19dcce77c [Bug Fix] fix realtime camera mode and shutter (#625)
* [Bug Fix] fix android app detail page errors

* [Android] fix realtime camera mode and shutter
2022-11-17 23:46:59 +08:00
DefTruth
595375e70c [Bug Fix] fix android app detail page errors (#624) 2022-11-17 21:37:58 +08:00
Winter
a4904269d5 [Android] Configure face recognition and segmentation details page (#619)
* 1.Classification Code submission;
2.Specification code format.

* Specification code format.

* Update strings.xml

* 1.Display ocr, detection and classification results.
2.Specification code format.

* Configure face recognition and semantic segmentation details page.

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
2022-11-17 19:18:47 +08:00
DefTruth
3c5e8cd95d [Android] Add PaddleSeg Android app example (#620)
[Android] Add PaddleSeg Android app example
2022-11-17 16:12:07 +08:00
DefTruth
bd53d48f9a [Bug Fix] fix CopyShutterBitmap and async camera pause (#617)
* [Backend] fix lite backend save model error

* [Backend] fixed typos

* [FlyCV] optimize the integration of FlyCV

* [cmake] close some tests options

* [cmake] close some test option

* [FlyCV] remove un-need warnings

* [FlyCV] remove un-need GetMat method

* [FlyCV] optimize FlyCV codes

* [cmake] remove un-need cmake function in examples/CMakelists

* [cmake] support gflags for Android

* [Android] Run button shutter in sub Ui Thread

* [Android] Update CameraSurfaceView

* [Android] Update Android SDK usage docs

* [Android] Add facedet Android app example

* [cmake] fix FastDeploy.cmake.in errors for Android

* [Doc] update SetProcLibCpuNumThreads API doc

* [Bug Fix] fix CopyShutterBitmap and async camera pause
2022-11-17 10:59:47 +08:00
DefTruth
ac805c26d9 [Bug Fix] fix FastDeploy.cmake.in errors for Android (#616)
* [Backend] fix lite backend save model error

* [Backend] fixed typos

* [FlyCV] optimize the integration of FlyCV

* [cmake] close some tests options

* [cmake] close some test option

* [FlyCV] remove un-need warnings

* [FlyCV] remove un-need GetMat method

* [FlyCV] optimize FlyCV codes

* [cmake] remove un-need cmake function in examples/CMakelists

* [cmake] support gflags for Android

* [Android] Run button shutter in sub Ui Thread

* [Android] Update CameraSurfaceView

* [Android] Update Android SDK usage docs

* [Android] Add facedet Android app example

* [cmake] fix FastDeploy.cmake.in errors for Android

* [Doc] update SetProcLibCpuNumThreads API doc
2022-11-16 22:33:04 +08:00
DefTruth
606494a571 [Android] Add facedet Android app example (#614)
* [Backend] fix lite backend save model error

* [Backend] fixed typos

* [FlyCV] optimize the integration of FlyCV

* [cmake] close some tests options

* [cmake] close some test option

* [FlyCV] remove un-need warnings

* [FlyCV] remove un-need GetMat method

* [FlyCV] optimize FlyCV codes

* [cmake] remove un-need cmake function in examples/CMakelists

* [cmake] support gflags for Android

* [Android] Run button shutter in sub Ui Thread

* [Android] Update CameraSurfaceView

* [Android] Update Android SDK usage docs

* [Android] Add facedet Android app example
2022-11-16 17:56:18 +08:00
DefTruth
fd5328239d [Doc] Update Android SDK usage docs (#605)
* [Backend] fix lite backend save model error

* [Backend] fixed typos

* [FlyCV] optimize the integration of FlyCV

* [cmake] close some tests options

* [cmake] close some test option

* [FlyCV] remove un-need warnings

* [FlyCV] remove un-need GetMat method

* [FlyCV] optimize FlyCV codes

* [cmake] remove un-need cmake function in examples/CMakelists

* [cmake] support gflags for Android

* [Android] Run button shutter in sub Ui Thread

* [Android] Update CameraSurfaceView

* [Android] Update Android SDK usage docs
2022-11-16 11:11:02 +08:00
DefTruth
7084a94bdc [Android] Run button shutter in sub Ui Thread (#598)
* [Backend] fix lite backend save model error

* [Backend] fixed typos

* [FlyCV] optimize the integration of FlyCV

* [cmake] close some tests options

* [cmake] close some test option

* [FlyCV] remove un-need warnings

* [FlyCV] remove un-need GetMat method

* [FlyCV] optimize FlyCV codes

* [cmake] remove un-need cmake function in examples/CMakelists

* [cmake] support gflags for Android

* [Android] Run button shutter in sub Ui Thread

* [Android] Update CameraSurfaceView
2022-11-15 18:59:42 +08:00
Winter
a24004ac8d [Android] Add classification app examples (#590)
* 1.Classification Code submission;
2.Specification code format.

* Specification code format.

* Update strings.xml

Co-authored-by: DefTruth <31974251+DefTruth@users.noreply.github.com>
2022-11-15 12:53:26 +08:00
DefTruth
8c79183ea4 [Android] fix JNI OCRResult allocate errors (#588)
* [FlyCV] Add global SetProcLibCpuNumThreads method

* [Android] Support segmentation and facedet in Android

* [Android] add JNI instance check to j_runtime_option_obj

* [Model] fixed ppseg flycv resize error

* [FlyCV] fix FlyCV resize flags

* [cmake] remove un-need lite compile option

* [Android] add PaddleSegModel JNI and fix some bugs

* [Android] bind PaddleSegModel via JNI

* [Android] bind VisSegmentation via JNI

* [Android] bind YOLOv5Face and SCRFD via JNI

* [Android] fix NewJavaFaceDetectionResultFromCxx error

* [Android] remove un-need option in Java RuntimeOption

* [Android] fixed OcrMainActivity setting errors

* [Android] Update Android SDK usage docs

* [Android] Update Android SDK usage docs

* [Android] fix JNI OCRResult allocate errors
2022-11-14 21:33:16 +08:00
DefTruth
9c1bd4d2f0 [Android] Update Android SDK usage docs (#586)
* [FlyCV] Add global SetProcLibCpuNumThreads method

* [Android] Support segmentation and facedet in Android

* [Android] add JNI instance check to j_runtime_option_obj

* [Model] fixed ppseg flycv resize error

* [FlyCV] fix FlyCV resize flags

* [cmake] remove un-need lite compile option

* [Android] add PaddleSegModel JNI and fix some bugs

* [Android] bind PaddleSegModel via JNI

* [Android] bind VisSegmentation via JNI

* [Android] bind YOLOv5Face and SCRFD via JNI

* [Android] fix NewJavaFaceDetectionResultFromCxx error

* [Android] remove un-need option in Java RuntimeOption

* [Android] fixed OcrMainActivity setting errors

* [Android] Update Android SDK usage docs

* [Android] Update Android SDK usage docs
2022-11-14 19:31:20 +08:00
DefTruth
8c6b1935c2 [Android] fixed OcrMainActivity setting errors (#578)
* [FlyCV] Add global SetProcLibCpuNumThreads method

* [Android] Support segmentation and facedet in Android

* [Android] add JNI instance check to j_runtime_option_obj

* [Model] fixed ppseg flycv resize error

* [FlyCV] fix FlyCV resize flags

* [cmake] remove un-need lite compile option

* [Android] add PaddleSegModel JNI and fix some bugs

* [Android] bind PaddleSegModel via JNI

* [Android] bind VisSegmentation via JNI

* [Android] bind YOLOv5Face and SCRFD via JNI

* [Android] fix NewJavaFaceDetectionResultFromCxx error

* [Android] remove un-need option in Java RuntimeOption

* [Android] fixed OcrMainActivity setting errors
2022-11-14 12:50:15 +08:00
DefTruth
f1ebcf7a13 [Android] remove unnecessary option in Java RuntimeOption (#577)
* [FlyCV] Add global SetProcLibCpuNumThreads method

* [Android] Support segmentation and facedet in Android

* [Android] add JNI instance check to j_runtime_option_obj

* [Model] fixed ppseg flycv resize error

* [FlyCV] fix FlyCV resize flags

* [cmake] remove un-need lite compile option

* [Android] add PaddleSegModel JNI and fix some bugs

* [Android] bind PaddleSegModel via JNI

* [Android] bind VisSegmentation via JNI

* [Android] bind YOLOv5Face and SCRFD via JNI

* [Android] fix NewJavaFaceDetectionResultFromCxx error

* [Android] remove un-need option in Java RuntimeOption
2022-11-14 10:48:02 +08:00
DefTruth
6a368f3448 [Android] Support segmentation and facedet in Android (#567)
* [FlyCV] Add global SetProcLibCpuNumThreads method

* [Android] Support segmentation and facedet in Android

* [Android] add JNI instance check to j_runtime_option_obj

* [Model] fixed ppseg flycv resize error

* [FlyCV] fix FlyCV resize flags

* [cmake] remove un-need lite compile option

* [Android] add PaddleSegModel JNI and fix some bugs

* [Android] bind PaddleSegModel via JNI

* [Android] bind VisSegmentation via JNI

* [Android] bind YOLOv5Face and SCRFD via JNI

* [Android] fix NewJavaFaceDetectionResultFromCxx error
2022-11-13 17:47:50 +08:00
DefTruth
7460b2561d [Android] Update fastdeploy Android app ui module (#531)
Revert "[Android] Revert update fastdeploy Android app ui module (#530)"

This reverts commit 628b2d130d.
2022-11-08 19:13:50 +08:00
DefTruth
628b2d130d [Android] Revert update fastdeploy Android app ui module (#530)
Revert "[Android] Update fastdeploy Android app ui module"
2022-11-08 18:59:25 +08:00
Winter
277c86e612 modify2 2022-11-08 15:36:55 +08:00
DefTruth
09227b2ffc append Merge branch 'develop' into gbd_android 2022-11-08 10:50:01 +08:00
WinterGeng
87823173bb specification has submitted code. 2022-11-07 18:50:53 +08:00
WinterGeng
3fd54d6884 1.Move EasyEdge Ui code to fastdeploy;
2.Add photo recognition, real-time recognition, album selection recognition, detail page display and other functions.
2022-11-03 10:32:43 +08:00
DefTruth
04704c8411 [Android] Support PP-OCRv2 & PP-OCRv3 in Android (#445)
* [Android] Add Android build docs and demo (#26)

* [Backend] Add override flag to lite backend

* [Docs] Add Android C++ SDK build docs

* [Doc] fix android_build_docs typos

* Update CMakeLists.txt

* Update android.md

* [Doc] Add PicoDet Android demo docs

* [Doc] Update PicoDet Andorid demo docs

* [Doc] Update PaddleClasModel Android demo docs

* [Doc] Update fastdeploy android jni docs

* [Doc] Update fastdeploy android jni usage docs

* [Android] init fastdeploy android jar package

* [Backend] support int8 option for lite backend

* [Model] add Backend::Lite to paddle model

* [Backend] use CopyFromCpu for lite backend.

* [Android] package jni srcs and java api into aar

* Update infer.cc

* Update infer.cc

* [Android] Update package build.gradle

* [Android] Update android app examples

* [Android] update android detection app

* [Android] Support PP-OCRv2 & PP-OCRv3 in Android

* [Android] bind ORCResult with JNI

* [Android] move static class jni method to instance method

* [Android] bind VisOcr and VisClassification via JNI

* [Android] Add PP-OCRv2 & v3 android demo
2022-10-28 10:56:47 +08:00
DefTruth
a51e5a6e55 [Android] Add android aar package (#416)
* [Android] Add Android build docs and demo (#26)

* [Backend] Add override flag to lite backend

* [Docs] Add Android C++ SDK build docs

* [Doc] fix android_build_docs typos

* Update CMakeLists.txt

* Update android.md

* [Doc] Add PicoDet Android demo docs

* [Doc] Update PicoDet Andorid demo docs

* [Doc] Update PaddleClasModel Android demo docs

* [Doc] Update fastdeploy android jni docs

* [Doc] Update fastdeploy android jni usage docs

* [Android] init fastdeploy android jar package

* [Backend] support int8 option for lite backend

* [Model] add Backend::Lite to paddle model

* [Backend] use CopyFromCpu for lite backend.

* [Android] package jni srcs and java api into aar

* Update infer.cc

* Update infer.cc

* [Android] Update package build.gradle

* [Android] Update android app examples

* [Android] update android detection app
2022-10-26 17:01:14 +08:00