global.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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. std::vector<int> IMAGE_SHAPE = {1920, 1080};
  22. std::vector<int> RESULT_SHAPE = {1280, 720};
  23. std::vector<int> METER_SHAPE = {512, 512};
  24. #define METER_TYPE_NUM 2
  25. MeterConfig_T meter_config[METER_TYPE_NUM] = {
  26. {25.0f/50.0f, 25.0f, "(MPa)"},
  27. {1.6f/32.0f, 1.6f, "(MPa)"}
  28. };