1 /* 2 * Copyright (C) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include "label_detector.h" 17 #include "image_log.h" 18 19 #undef LOG_DOMAIN 20 #define LOG_DOMAIN LOG_TAG_DOMAIN_ID_PLUGIN 21 22 #undef LOG_TAG 23 #define LOG_TAG "LabelDetector" 24 25 namespace OHOS { 26 namespace PluginExample { 27 using std::string; 28 const string LabelDetector::RESULT_STR = "LabelDetector"; 29 LabelDetector()30LabelDetector::LabelDetector() 31 { 32 IMAGE_LOGD("call LabelDetector()."); 33 } 34 ~LabelDetector()35LabelDetector::~LabelDetector() 36 { 37 IMAGE_LOGD("call ~LabelDetector()."); 38 } 39 Prepare()40bool LabelDetector::Prepare() 41 { 42 IMAGE_LOGD("call Prepare()."); 43 return true; 44 } 45 Process()46string LabelDetector::Process() 47 { 48 IMAGE_LOGD("call Process()."); 49 return RESULT_STR; 50 } 51 } // namespace PluginExample 52 } // namespace OHOS 53