Browse Source

答题卡

黄贺彬 4 years ago
parent
commit
844fb2e21a
2 changed files with 3 additions and 1 deletions
  1. 3 1
      OpenCVTest/Program.cs
  2. BIN
      OpenCVTest/答题卡.docx

+ 3 - 1
OpenCVTest/Program.cs

@@ -7,6 +7,7 @@ namespace OpenCVTest
     {
         static void Main(string[] args)
         {
+            //源码  https://gitee.com/CrazyIterBin/opencvsharp.git
             Mat base_img = Cv2.ImRead(@"F:/20191204104138.jpg");
             get_answer_from_sheet(base_img);
         }
@@ -24,7 +25,8 @@ namespace OpenCVTest
             Mat img = new Mat();
             Cv2.Add(h, v,img);
             Cv2.ConvertScaleAbs(img,img);
-            Cv2.GaussianBlur(img, img, new Size { Width = 3, Height = 3 }, 0); 
+            Cv2.GaussianBlur(img, img, new Size { Width = 3, Height = 3 }, 0);
+            //Cv2.Threshold(img, img, 120, 255, cv2);
         }
     }
 }

BIN
OpenCVTest/答题卡.docx