我试图在Ubuntu上使用SourceAFIS 1.7.0与单声道,并得到一些错误。如何让SourceAFIS在Ubuntu上工作?
1.
$单DatabaseAnalyzer.exe
扫描文件夹TestDatabase
运行提取基准
未处理的异常:System.IO.FileNotFoundException:未能加载 文件或组件'PresentationCore,Version = 4.0.0.0,Culture = neutral, PublicKeyToken = 31bf3856ad364e35'或其中之一它的依赖关系。
文件名: 'PresentationCore,版本= 4.0.0.0,文化=中性 公钥= 31bf3856ad364e35'
在DatabaseAnalyzer.DatabaseAnalyzer.RunExtractorBenchmark() < 0x40674790 + 0x00033>在:0在DatabaseAnalyzer。 DatabaseAnalyzer.RunMatcherBenchmark()< 0x40674600 + 0x000eb>在:0
在DatabaseAnalyzer.DatabaseAnalyzer.Run()< 0x40642a40 + 0x000bf>在 :0
在DatabaseAnalyzer.DatabaseAnalyzer.Main(System.String []参数) < 0x4063bd50 + 0x00037>在:0
[ERROR]致命未处理的异常信息:System.IO.FileNotFoundException: 无法加载文件或组件'PresentationCore,Version = 4.0.0.0, Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或其 依赖项之一。
文件名: 'PresentationCore,版本= 4.0.0.0,文化=中性 公钥= 31bf3856ad364e35' 在 DatabaseAnalyzer.DatabaseAnalyzer.RunExtractorBenchmark()< 0x40674790 + 0x00033>在:0在DatabaseAnalyzer.DatabaseAnalyzer.RunMatcherBenchmark( )< 0x40674600 + 0x000eb>在:0
在DatabaseAnalyzer.DatabaseAnalyzer.Run()< 0x40642a40 + 0x000bf>在 :0
在DatabaseAnalyzer.DatabaseAnalyzer.Main(SY stem.String []参数) < 0x4063bd50 + 0x00037>在:0
根据https://sourceforge.net/p/sourceafis/discussion/1051112/thread/dd8df289/#a006,的WinForms此处应该代替施加WPF的,并使用位图类来取代的BitmapImage类WPF的,但我不不知道该怎么做。有人有这样的经历吗?
这是所使用的原始功能WPF位图类
static MyPerson Enroll(string filename, string name)
{
Console.WriteLine("Enrolling {0}...", name);
// Initialize empty fingerprint object and set properties
MyFingerprint fp = new MyFingerprint();
fp.Filename = filename;
// Load image from the file
Console.WriteLine(" Loading image from {0}...", filename);
BitmapImage image = new BitmapImage(new Uri(filename, UriKind.RelativeOrAbsolute));
fp.AsBitmapSource = image;
// Above update of fp.AsBitmapSource initialized also raw image in fp.Image
// Check raw image dimensions, Y axis is first, X axis is second
Console.WriteLine(" Image size = {0} x {1} (width x height)", fp.Image.GetLength(1), fp.Image.GetLength(0));
// Initialize empty person object and set its properties
MyPerson person = new MyPerson();
person.Name = name;
// Add fingerprint to the person
person.Fingerprints.Add(fp);
// Execute extraction in order to initialize fp.Template
Console.WriteLine(" Extracting template...");
Afis.Extract(person);
// Check template size
Console.WriteLine(" Template size = {0} bytes", fp.Template.Length);
return person;
}
-
$单SourceAFIS.FingerprintAnalysis.exe
的入口点方法无法加载
我该如何解决这个更有意义的异常?
什么版本的单声道,什么发行版和版本是这样的? – user1623521
我正在使用Ubuntu15.10 64位和单声道4.4.0 –
您是如何安装mono的? – user1623521