|
@@ -699,10 +699,7 @@ namespace OTSIncAReportApp.DataOperation.DataAccess
|
|
|
OpenCvSharp.Point[][] contours;
|
|
|
HierarchyIndex[] hierarchy;
|
|
|
Cv2.FindContours(result, out contours, out hierarchy, RetrievalModes.External, ContourApproximationModes.ApproxNone, null);
|
|
|
- using (new Window("InputImage", WindowMode.Normal, result_bse))
|
|
|
- {
|
|
|
- Cv2.WaitKey(0);
|
|
|
- }
|
|
|
+
|
|
|
if (contours.Count() == 1)
|
|
|
{
|
|
|
Rect minRect = Cv2.BoundingRect(contours[0]);//外接矩形
|