Browse Source

Added unit test for dpm.

pull/27/head
Canming Huang 8 years ago
parent
commit
3687eb1b40
  1. 11
      Emgu.CV.Test/AutoTestVarious.cs
  2. 4
      Emgu.CV.Test/Emgu.CV.Test.csproj

11
Emgu.CV.Test/AutoTestVarious.cs

@ -24,7 +24,7 @@ using Emgu.CV.Stitching;
using Emgu.CV.Text;
using Emgu.CV.Structure;
using Emgu.CV.Bioinspired;
using Emgu.CV.Dpm;
#if !(__IOS__ || NETFX_CORE)
using Emgu.CV.Dnn;
using Emgu.CV.Cuda;
@ -3436,6 +3436,15 @@ namespace Emgu.CV.Test
CvInvoke.Imwrite("board.png", boardImage);
}
[Test]
public void TestDPM()
{
Mat m = EmguAssert.LoadMat("pedestrian.png");
DpmDetector detector = DpmDetector.Create(new String[] {"inriaperson.xml"}, new string[] {"person"});
ObjectDetection[] result = detector.Detect(m);
}
[Test]
public void TestNiBlack()
{

4
Emgu.CV.Test/Emgu.CV.Test.csproj

@ -150,6 +150,10 @@
<Link>synset_words.txt</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\opencv_contrib\modules\dpm\samples\data\inriaperson.xml">
<Link>inriaperson.xml</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\opencv_contrib\modules\text\samples\trained_classifierNM1.xml">
<Link>trained_classifierNM1.xml</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

Loading…
Cancel
Save