update image shape for angle class from [3,32,100] to [3,48,192] (#1021)
This commit is contained in:
parent
6947196684
commit
3573388b7f
|
@ -59,7 +59,7 @@ public:
|
|||
class ClsResizeImg {
|
||||
public:
|
||||
virtual void Run(const cv::Mat &img, cv::Mat &resize_img,
|
||||
const std::vector<int> &rec_image_shape = {3, 32, 320});
|
||||
const std::vector<int> &rec_image_shape = {3, 48, 192});
|
||||
};
|
||||
|
||||
} // namespace PaddleOCR
|
|
@ -21,7 +21,7 @@ cv::Mat Classifier::Run(cv::Mat &img) {
|
|||
img.copyTo(src_img);
|
||||
cv::Mat resize_img;
|
||||
|
||||
std::vector<int> rec_image_shape = {3, 32, 100};
|
||||
std::vector<int> rec_image_shape = {3, 48, 192};
|
||||
int index = 0;
|
||||
float wh_ratio = float(img.cols) / float(img.rows);
|
||||
|
||||
|
|
Loading…
Reference in New Issue