global.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
  2. //
  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. #include <iostream>
  15. #include <vector>
  16. #include <limits>
  17. #include <opencv2/opencv.hpp>
  18. #include <opencv2/highgui.hpp>
  19. #include <opencv2/core/core.hpp>
  20. #include "meter_reader/global.h"
  21. // The size of inputting images of the detector
  22. std::vector<int> IMAGE_SHAPE = {1920, 1080};
  23. // The size of visualized prediction
  24. std::vector<int> RESULT_SHAPE = {1280, 720};
  25. // The size of inputting images of the segmenter,
  26. // also the size of circular meters
  27. std::vector<int> METER_SHAPE = {512, 512};
  28. // The configuration information of a meter,
  29. // composed of scale value, range, unit
  30. #define METER_TYPE_NUM 2
  31. MeterConfig_T meter_config[METER_TYPE_NUM] = {
  32. {25.0f/50.0f, 25.0f, "(MPa)"},
  33. {1.6f/32.0f, 1.6f, "(MPa)"}
  34. };