mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-12 09:10:44 -06:00
feat: Add document scanner package
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include <opencv2/opencv.hpp>
|
||||
|
||||
using namespace cv;
|
||||
using namespace std;
|
||||
|
||||
|
||||
class ImageProcessor {
|
||||
public:
|
||||
static Mat process_image(Mat img, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
|
||||
|
||||
private:
|
||||
static Mat crop_and_transform(Mat img, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
|
||||
};
|
||||
Reference in New Issue
Block a user