示例#1
0
 /// <summary>
 /// Find rectangular regions in the given image that are likely to contain objects and corresponding confidence levels
 /// </summary>
 /// <param name="image">The image to detect objects in</param>
 /// <param name="overlapThreshold">Threshold for the non-maximum suppression algorithm</param>
 /// <returns>Array of detected objects</returns>
 public MCvObjectDetection[] Detect(Mat image, float overlapThreshold = 0.5f)
 {
    using (VectorOfObjectDetection vod = new VectorOfObjectDetection())
    {
       cveLSVMDetectorDetect(_ptr, image, vod, overlapThreshold);
       return vod.ToArray();
    }
 }
 /// <summary>
 /// Find rectangular regions in the given image that are likely to contain objects and corresponding confidence levels
 /// </summary>
 /// <param name="image">The image to detect objects in</param>
 /// <param name="overlapThreshold">Threshold for the non-maximum suppression algorithm</param>
 /// <returns>Array of detected objects</returns>
 public MCvObjectDetection[] Detect(Mat image, float overlapThreshold = 0.5f)
 {
     using (VectorOfObjectDetection vod = new VectorOfObjectDetection())
     {
         CvInvoke.cveLSVMDetectorDetect(_ptr, image, vod, overlapThreshold);
         return(vod.ToArray());
     }
 }