Пример #1
0
 public void extract(Mat image, HandColorProfile handColor)
 {
     if (!handColor.getHasColor())
     {
         return;
     }
     mask               = handColor.getMask(image);
     contour            = getContours(mask);
     hull               = getConvexHull(contour);
     hullDefectVertices = filterVertices(getDefects());
 }
Пример #2
0
 void showCamera(Mat image)
 {
     if (handColor.getHasColor())
     {
         image = handGesture.getFeature(image);
     }
     if (Input.GetKeyDown(KeyCode.Return))
     {
         DateTime date = System.DateTime.Now;
         Cv2.ImWrite(date.Ticks + "", image);
     }
     windowCap.ThrowIfDisposed();
     windowCap.ShowImage(image);
 }