-
Notifications
You must be signed in to change notification settings - Fork 4
/
OMR_scanner.cpp
30 lines (23 loc) · 967 Bytes
/
OMR_scanner.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <opencv2/opencv.hpp>
#include "Pixel.h"
#include "Edge.h"
#include "ImageAnalysis.h"
using namespace cv;
using namespace std;
void mouseClick(Mat img);
//Mat get_cropped();
int main() {
//Mat omrImg = imread("resource/testimage/omr2_marking1.jpg"); // 완벽
//Mat omrImg = imread("resource/testimage/omr2_marking2.jpg"); // 완벽
//Mat omrImg = imread("resource/testimage/card4.jpg"); // 완벽
//Mat omrImg = imread("resource/testimage/card7.jpg"); // 완벽
//Mat omrImg = imread("resource/testimage/card10.jpg"); // 완벽
//Mat omrImg = imread("resource/testimage/card11.jpg"); // 완벽
//Mat omrImg = imread("resource/testimage/card12.jpg"); // 완벽, size 1.5로
//Mat omrImg = imread("resource/testimage/card13.jpg"); // 완벽, size 1.5로
Mat omrImg = imread("resource/testimage/card8.jpg");
resize(omrImg, omrImg, Size(omrImg.cols / 4, omrImg.rows / 4));
mouseClick(omrImg);
//Mat crop = get_cropped();
waitKey();
}