Comments (12)
Hey @joaobdc , you need to enable UI Desktop experience for windows server because Microsoft never enabled that feature on Windows Server by default,
You can follow these above steps :
Enable Desktop Experience on Window Server
Hope this solution can help you :)
from emgucv.
- The default .net runtime is 32 Bit... (BadImageFormatException usually means a 32 bit app found / tried to load a 64 bit dll)
from emgucv.
Thanks @sopheakmorm. After hours of investigation our Windows 2012R2 server needed this Desktop Experience feature. After installing this, all working as expected 👍
from emgucv.
@sopheakmorm you're awesome, saved my day.
from emgucv.
Thanks for the solution. This fixed it for us as well.
emgucv team - is this requirement documented anywhere?
from emgucv.
After copying the x64 dlls directly to the bin directory of the build the error changed to:
System.TypeInitializationException: The type initializer for 'Emgu.CV.CvInvoke' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)
at Emgu.CV.CvInvoke..cctor()
--- End of inner exception stack trace ---
at Emgu.CV.CvInvoke.cvCreateImageHeader(Size size, IplDepth depth, Int32 channels)
at Emgu.CV.Image`2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels)
at Emgu.CV.Image`2.set_Bitmap(Bitmap value)
at VerifyID.Managers.ImageTreatmentsManager.ExtractDocumentFromImage(Bitmap bitmap)
at VerifyID.VerifyWorker.ExecuteOCR(BigIdRequest request, BigIdEvent bigIdEvent)
from emgucv.
Wich Windows Server version are you running?
Had the same problem on WS 2012 R2, I then tested on WS 2016 Standard and it worked.
There is something about Microsoft Mainstream support for older versions that avoids EmguCV to work properly.
from emgucv.
Try to copy both x86 and x64 folder and configure build for "Any CPU", so it will depend only on your IIS AppPool settings (if you have no any other dependences built for specific architecture).
from emgucv.
Good job @Ralpharoo
from emgucv.
@sopheakmorm OMG this take several hours from me.
You are really awesome . 🥇
from emgucv.
Subhanallah, Alhamdulillah... Jazakallah khoir @sopheakmorm Thanks a lot
from emgucv.
I have same issue when i publish website on IIS Server, are there any solutions if i can not "Enable Desktop Experience on Window Server". Because i am using share hosting. My Services Provider do not allow "Enable Desktop Experience on Window Server".
Thanks All
from emgucv.
Related Issues (20)
- Wrongly converted parameter arguments for process method in AlignExposures class HOT 1
- [Feature] Add getter/setter in Feature2D algorithms
- Missing custom Aruco board definition
- [BUG] An error occurs when the file path contains Chinese characters
- [BUG] Emgu prevents apps from running on iPhone 6/iOS 12 HOT 7
- Timeline of .Net 8.0 support HOT 7
- [BUG] Features2DToolbox.DrawMatches singlePointColor argument is ignored, it always uses the matchColor argument
- EMGUCV 4.8 VideoCapture.Set is not setting desired Width and Height
- [BUG]AvaloniaUI Project with Emgu.CV.runtime.debian-arm64, encountered Segmentation fault error during runtime HOT 1
- [QUESTION] How to Optimize Image Stitching HOT 3
- [FEATURE] Adding GStreamer when building a project on Debian
- [FEATURE] - Support use of ReadOnly/Span in APIs HOT 5
- [Question] Replace OpenCv default dlls with other OpenCv build HOT 17
- [BUG] For certain FPS settings VideoWriter creation fails with "make sure you have the specific codec installed" HOT 1
- Attempting to JIT compile method "(wrapper native-to-managed) int Emgu.CV.CvInvoke:CvErrorHandler (int,intptr,intptr,intptr,int,intptr)" while running in aot-only mode. HOT 2
- [BUG] ./cmake_configure run ends with an error HOT 1
- [BUG] Emgu on Raspberrypi error - global cap_v4l.cpp:1134 tryIoctl HOT 1
- [BUG] GetSpan with ROI crash application with violation of memory access HOT 1
- [BUG/QUESTION] DllNotFoundException cvextern on Ubuntu raspberry pi arm64 - What am I missing? HOT 1
- [BUG] Emgu.CV.runtime.maui.mini - CvInvokeIOS constructor crashes immediately upon app start HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emgucv.