image_blur_detection.h 569 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // Created by 阳坤 on 2022/2/23.
  3. //
  4. #ifndef JNI_IMAGE_BLUR_DETECTION_H
  5. #define JNI_IMAGE_BLUR_DETECTION_H
  6. /**
  7. * 默认模糊阀值
  8. */
  9. #define DEFAULT_BLUR_THRESHOLD 100
  10. /**
  11. * 默认像素值阀值
  12. */
  13. #define DEFAULT_PIX_THRESHOLD 0.7f
  14. #include "opencv2/opencv.hpp"
  15. #include "opencv2/imgcodecs.hpp"
  16. #include "opencv2/highgui.hpp"
  17. #include "vector"
  18. int image_blur_detection(const char *filename);
  19. int doDetection(cv::Mat mat);
  20. int bytes_blur_detection(uint8_t *data, int len);
  21. int image_color_ratio(cv::Mat image);
  22. #endif //JNI_IMAGE_BLUR_DETECTION_H