Apollo  6.0
Open source self driving car software
project_feature.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 #pragma once
17 
18 #include <memory>
19 #include <string>
20 
22 #include "modules/perception/camera/lib/feature_extractor/tfe/proto/tracking_feature.pb.h"
26 
27 namespace apollo {
28 namespace perception {
29 namespace camera {
31  public:
32  bool Init(const FeatureExtractorInitOptions &init_options) override;
33  bool Extract(const FeatureExtractorOptions &options,
34  CameraFrame *frame) override;
35  std::string Name() const override;
36 
37  private:
38  std::shared_ptr<inference::Inference> inference_;
39  int gpu_id_ = 0;
40  tracking_feature::ExternalParam param_;
42 };
43 } // namespace camera
44 } // namespace perception
45 } // namespace apollo
Definition: camera_frame.h:33
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
std::string Name() const override
Definition: project_feature.h:30
Definition: base_feature_extractor.h:43
Definition: base_feature_extractor.h:46
Definition: base_feature_extractor.h:36
bool Extract(const FeatureExtractorOptions &options, CameraFrame *frame) override
bool Init(const FeatureExtractorInitOptions &init_options) override