mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
13 lines
371 B
C++
13 lines
371 B
C++
#pragma once
|
|
|
|
#include "common.h"
|
|
#include <jni.h>
|
|
#include <opencv2/opencv.hpp>
|
|
cv::Mat bitmap_to_cv_mat(JNIEnv *env, jobject bitmap);
|
|
|
|
cv::Mat resize_img(const cv::Mat &img, int height, int width);
|
|
|
|
void neon_mean_scale(const float *din, float *dout, int size,
|
|
const std::vector<float> &mean,
|
|
const std::vector<float> &scale);
|