accord-net / framework

Machine learning, computer vision, statistics and general scientific computing for .NET
http://accord-framework.net
GNU Lesser General Public License v2.1
4.49k stars 1.99k forks source link

fast Template matching example not working on x32 bit windows 7 #1199

Open dabbourabd opened 6 years ago

dabbourabd commented 6 years ago

What would you like to submit? (put an 'x' inside the bracket that applies)

I am trying to run "fast template matching example" on windows 7 x64 bit

the project run successfully on x64 windows 7 but the same project not working on x32 Windows 7 and got the error "'System.BadImageFormatException' occurred in DotImaging.IO.dll" on (Gray[,] preparedBWImage = ImageIO.LoadGray(file).Clone();) command

notes: I am using accord.net v3.0.2 I copied "UnmanagedLibraries" into debug directory in project properties I tried to check and uncheck "perfer 32" and I got the same result

could you please help me to make the same project run on both x32 and x64 bit?????

blaisexen commented 6 years ago

hi @dabbourabd I think we have the same issue here, can I test your binary .exe file, please send it and I will do a test from my side.

I hope considerations from you.

dabbourabd commented 6 years ago

hi @blaisexen I could send the file as attachment but here is the link where I downloaded it I didn't modify anything in the code just build and run on x64 bit everything works correctly on x32 bit not

another question, please why is the file (https://github.com/accord-net/framework/releases/download/v3.8.0/Accord.NET-3.8.0-archive.rar) corrupted I can't extract it best regards

blaisexen commented 6 years ago

oh, that's the default samples,

but anyway thanks for reminding...

I can double check what's missing in my codes...