//// Created by fujiayi on 2020/7/3.//#pragma once#include <vector>#include <opencv2/opencv.hpp>externconststd::vector<int>REC_IMAGE_SHAPE;cv::Matget_rotate_crop_image(constcv::Mat&srcimage,conststd::vector<std::vector<int>>&box);cv::Matcrnn_resize_img(constcv::Mat&img,floatwh_ratio);template<classForwardIterator>inlinesize_targmax(ForwardIteratorfirst,ForwardIteratorlast){returnstd::distance(first,std::max_element(first,last));}