EMGU 3.2 VideoCapture constructor hangs application - c#

Hopefully someone can point me in the right direction. After spending many hours fighting this I am at my wits end. At this point I am just trying to get the EMGU example applications to run.
Just the facts ...
Applications hang at the line "_capture = new VideoCapture();"
All other versions of EMU were uninstalled
I am using the latest version of EMGU (3.2.0.2682)
No error message or exceptions are displayed
I am using a webcam, logitech C615
Camera works with logitech software
Using a coworker's computer the camera worked after a fresh install of EMGU
Any example program that uses VideoCapture also just hangs the app
The app I am focusing on is C:\Emgu\emgucv-windesktop 3.2.0.2682\bin\Example.CameraCapture.exe
Attaching a debugger provided no useful information
Once the applications are started the only way to kill them is to restart the pc
Other EMGU applications like faceDetection work just fine
List of running processes
I have a feeling it has something to do with a driver conflict, a library issue, or camera format issue. Any suggestions on how to troubleshoot this?

Turns out it was a conflict with a black magic video recorder device. I removed the card from the PC and everything started working. What a headache ...

NickJ, if there is a driver conflict it is not in EmguCV. Emgu CV includes no driver or drivers that might cause conflicts with a Camera. It only use existing drivers through OpenCV, which uses platform drivers to read camera stream or video files.
I long ago quit using EmguCV/OpenCv to handle my video capture. I found that these SDKs performed wonderfully at computer vision application and less wonderfully at capture.
I know people use them for capture and some have success but judging by the number of posts on SO asking about video capture I would suggest most have issues.
As for your specific problem I would be wondering how so many copies are getting started. You could download OpenCV, build it and debug through the code to see what is going on.
Doug

Related

problems with accessing webcam output in c# application

i know this is most likely a duplication and i am truly sorry for that but most of the solutions i found was either +7 years outdated, bugged or consume so much memory
all i need is an efficient way to access the webcam to record and display to use it in a computer vision project to detect moving objects and such, with an HD output (using HD camera of course)
also if there is a library that would help with the computer vision that would also be great
any information, tips or experience would be highly appreciated, thanks in advance and have a wonderful day.
You could use AForge.net, it's available as a nuget package and gets the job done.
Here is an example of it. It's a winform application, but I use this library in WPF app as well.
[EDIT] Actually, I think I found what you're looking for, download this. It's a piece of code that has been written for a french azure contest. It's a motion detector written with aforge.net. There is 2 part to it, the first is a wpf client that capture movement. The second is an azure website where the image captured is uploaded automatically.

How to find face, eyes from photo/image?

I am doing my project regarding image processing in c#. Here I don't know, how to find face, eyes from image (not webcam). The image will be stored in a specific folder. I am installing EmguCv package, but it not at all work. What are my questions means,
Is Emgu CV works Window 8 OS?
I am searching via net, all the contents are related to find face through webcam. But I want to find a face from photo/image. Please tell the solution.
Which is compatible image processing library for windows 8 and Visual Studio 2010?
Is there any source code satisfies my certain condition. Please post here.
Thank you.
You can use an SDK. Aforge should be what you need. Try looking at some of the examples provided from their own source code to point you in the right direction.
As far as I am concerned EmguCV is a dot-net port of famous library named OpenCV with good reliability that you can count on it and do your project.What's more, thanks to its nature which is a library (dll) you could easily use it in your project and run wherever CLR is running, including windows 8 OS.

Receiving error unable to find entry point named glBindFramebuffer when creating a new GraphicsDeviceManager object?

I have a Unable to find an entry point named 'glBindFramebuffer' in DLL 'opengl32.dll' when running a MonoGame Windows OpenGL project, So it seems the only way to solve this problem is to wrap a try and catch around it and then it will let you compile and run the program so my question is since I know that the new GraphicsDeviceManager fails will that result in a problem later on when deploying my game?.
I recently had the exact same error when I was trying to run my game in a virtual machine. It's essentially because you don't have the correct version of OpenGL installed. OpenGL normally comes with your graphics card drivers.
There is a discussion about this issue here:
https://github.com/mono/MonoGame/issues/998
In terms of deployment you basically have 3 options:
Use DirectX instead (plain old Microsoft XNA) or you can try MonoGame's DirectX implementation, but I'm not sure if it's complete.
If you are targeting other platforms (Android, iOS, etc) you'll be using OpenGL on the devices, but this should be okay.
Ensure your game has minimum requirements specified somewhere and handle the errors gracefully when it fails telling your users to update their graphics drivers.
That said, testing in different machine configurations is still a good idea.

Kinect Initialization error (Failed in native DLL. HRESULT=0x8004022b.)

I've been developing with kinect XBOX 360 for a while.
Today, after connecting a different kinect device (XBOX 360) i've started getting an error
on the initalization line:
kinect.Initialize(RuntimeOptions.UseSkeletalTracking | RuntimeOptions.UseDepthAndPlayerIndex | RuntimeOptions.UseColor);
The error I was getting:
Failed in native DLL. HRESULT=0x8004022b.
and the stack trace showed:
at Microsoft.Research.Kinect.Nui.SkeletonEngine..ctor(Runtime mainNui, CINuiInstanceHelper nuiInstance)
I've already tried :
Reinstalling all kinect related drivers and restarting.
Switching back to the old kinect sensor I was using.
Reinstalling the kinect sdk (the version i'm using is : Microsoft
Kinect 1.0 Beta2 SDK v.1.0.0.45
The following link - http://social.msdn.microsoft.com/Forums/en-US/kinectsdk/thread/5b9ffac3-86c0-4147-a6c7-f8e4bbc73c56 - talks about finding the registry key but I couldn't understand how to do it.
According to this link - http://msdn.microsoft.com/en-us/library/ms919477.aspx this is an error code:
VFW_E_SAMPLE_REJECTED This sample cannot be rendered. 0x8004022B 555
is there a way I could use it to solve the problem?
I'm running win7 64 bit.
Try using the Kinect for Windows SDK 1.5. It's been out for a couple of weeks now.
The API should mostly be the same as in 1.0 beta, but you will have to change the names of some namespaces when using them.
Also, you will still be able to use the Kinect for Xbox360 for development purposes, unless you want to use near mode for depth acquisition.
Like Chris Ortner said, you should switch to the full version as it is much more efficient. You can find it here. If you are fearing that you must convert all of your code, look here and here. If you are worried about converting code like getDisplayPosition, see Converting Kinect Methods from Beta 2, to Version 1. If you need any more help converting, just ask! Hope this helps!
I had this error. It was nothing to do with drivers or versions.
The Kinect sensor uses a lot of the USB bandwidth, so it is essential to have it on its own USB controller. Try the different USB ports until it works. You can use the Device Manager to see which devices are on which controllers: View > Devices by connection.
Thanks a lot for your help.
I prefer not to change to kinect for windows to timelines.
I was able to solve this issue thanks to this link which worked like a charm.
The steps to resolve this issue were:
1.Uninstall all kinect drivers from all the USB ports.
2.Uninstall the kinect sdk.
3.Reinstall the Kinect SDK.
4.Disabled network adapter.
5.Plug in the kinect sensor.
The idea is to reinstall all the drivers and prevent it from obtaining drivers from Windows Update.
I appreciate your help.
Thanks,
Oded

How do I get an VIDEO from a WIA camera?

I'm developing small app in C# 3.5 for Windows XP that will automatically download images and video from a camera to a PC, on camera plug-in via USB.
I have a Canon ixus 50 camera and I figure out how to get images from that camera to the PC, but I just can't figure out how to get/download AVI format videos. Can someone help me please?
It's true that I'm using WIA 2.0, but it seems to be working for now. :)
I have never ever managed to get WIA properly working.
Sometimes it worked almost fine for photos but there was no video.
Some other times it would never work on my customers' PCs (same camera, same PC specs).
Finally I completely gave WIA up and managed to create my custom control based on DirectX.
What I've found
Using Expression SDK to get image/video: http://www.codeproject.com/Articles/202464/How-to-use-a-WebCam-in-C-with-the-NET-Framework-4
DirectShow: http://www.codeproject.com/Articles/18511/Webcam-using-DirectShow-NET.
DirectX Capture (AVI): http://www.codeproject.com/Articles/3566/DirectX-Capture-Class-Library.
Keep in mind
It's really easy to work with. Requires some Expression (SDK) DLL and for that it will work only in x86 and you will have to set your app from AnyCPU or x64 to x86. Period.
Works really fine but this is more to static pics.
Never tested but looks really close to your needs. Can't say if it works but I'll go that way for testing, at least.
My thoughts
WIA is rather simple and easy. I've used it on Delphi and Clarion software (both are native Win32). It's somewhat fine but nowadays WIA is not the way to go.
Many webcams simply won't work with WIA and you'll have to tell your customers to change their webcam to a strangly-named chinese/korean/wtf brand just to keep your app working.
Try the last option. At least, download and run the code.
Hope it helps.

Categories

Resources