[Bug Fix] fixed ppdet postprocess empty result error (#691)

* [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
This commit is contained in:
DefTruth
2022-11-24 18:56:38 +08:00
committed by GitHub
parent c18a9e32f9
commit 256f7c2269
4 changed files with 28 additions and 6 deletions

View File

@@ -24,6 +24,10 @@
#include <string>
#include <vector>
#ifdef __ANDROID__
#include <android/log.h> // NOLINT
#endif
#if defined(_WIN32)
#ifdef FASTDEPLOY_LIB
#define FASTDEPLOY_DECL __declspec(dllexport)
@@ -54,10 +58,15 @@ class FASTDEPLOY_DECL FDLogger {
line_ += ss.str();
return *this;
}
FDLogger& operator<<(std::ostream& (*os)(std::ostream&));
~FDLogger() {
if (!verbose_ && line_ != "") {
std::cout << line_ << std::endl;
#ifdef __ANDROID__
__android_log_print(ANDROID_LOG_INFO, prefix_.c_str(), "%s", line_.c_str());
#endif
}
}