Apollo  6.0
Open source self driving car software
camera_lib_calibrator_laneline_app_util.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 <algorithm>
19 #include <string>
20 #include <vector>
21 
22 #include <boost/filesystem.hpp>
23 #include <opencv2/opencv.hpp>
24 
28 
29 namespace adu {
30 namespace perception {
31 namespace obstacle {
32 
33 // void change_suffix(std::string file_path, std::string suffix,
34 // std::string *file_path_changed);
35 
36 bool load_filename(std::string path, std::string suffix,
37  std::vector<std::string> *name_list);
38 
39 // bool load_ref_camera_p_mat(const std::string &filename, float p_mat[12]);
40 bool load_ref_camera_k_mat(const std::string &filename, float k_mat[9], int *w,
41  int *h);
42 
43 // void draw_2d_bbox(cv::Mat *image, float left, float top, float right,
44 // float bottom, const cv::Scalar &color);
45 
46 // void draw_2d_face(cv::Mat *image, const float corners_2d[16],
47 // const int idx_points[4], const cv::Scalar &color);
48 
49 void write_text_on_image(cv::Mat *image, float left, float top,
50  const char *text, const CvFont &font,
51  const cv::Scalar &color);
52 
53 // void add_noise_to_vector_radius(float *x, int n, float radius,
54 // bool set_seed = false);
55 
56 // void add_noise_to_vector_ratio(float *x, int n, float ratio,
57 // bool set_seed = false);
58 
59 } // namespace obstacle
60 } // namespace perception
61 } // namespace adu
Definition: camera_lib_calibrator_laneline_app_util.h:29
bool load_ref_camera_k_mat(const std::string &filename, float k_mat[9], int *w, int *h)
void write_text_on_image(cv::Mat *image, float left, float top, const char *text, const CvFont &font, const cv::Scalar &color)
bool load_filename(std::string path, std::string suffix, std::vector< std::string > *name_list)