[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

@@ -20,7 +20,11 @@ namespace fastdeploy {
FDLogger::FDLogger(bool verbose, const std::string& prefix) {
verbose_ = verbose;
line_ = "";
#ifdef __ANDROID__
prefix_ = std::string("[FastDeploy]") + prefix;
#else
prefix_ = prefix;
#endif
}
FDLogger& FDLogger::operator<<(std::ostream& (*os)(std::ostream&)) {
@@ -28,6 +32,9 @@ FDLogger& FDLogger::operator<<(std::ostream& (*os)(std::ostream&)) {
return *this;
}
std::cout << prefix_ << " " << line_ << std::endl;
#ifdef __ANDROID__
__android_log_print(ANDROID_LOG_INFO, prefix_.c_str(), "%s", line_.c_str());
#endif
line_ = "";
return *this;
}