Emgu cv showing webcam stream as flipped image - c#

I implemented a simple application to get video steam form a normal web camera , and show on a windows application using CAPTURE class.
The application works and i can see the video on the image box , but the frames in the video is flipped (my left side is shown in right side).
I tried with multiple cameras and the same problem remains.When i connect the same camera in other application such as skype, there is no flip problem.
Is it a normal behaviour in capture class?
How can solve this problem?
I followed this tutorial
Thanks in advance

You can use the Flip() method. Just ensure that the frame is not corrupted or null before calling it!
http://www.emgu.com/wiki/files/2.0.0.0/html/304d1f22-93fd-d920-1f4a-285c14594050.htm

Related

Avoid OK Retry button for Xamarin Camera

I am using the Camera code base from
https://github.com/rasmuschristensen/XamarinFormsImageGallery
to open camera, take picture and show in the gallery. In the droid project, after taking the picture, the dialog asks either to keep the photo or discard it using OK and Retry button. Is there anyway, I can avoid this step and go to next step.
Regards
Using the Media plugin you won't be able to do it. This plugin use the standard way of capturing photos in Android which rely on the device actual camera app. The save/retry functionality is part of the Camera App and we don't have access to it as this will be different between Android "providers" (Samsung, LG, Sony, etc)
One way to avoid this is capturing the photo within your own app using the SurfaceView and not using the camera app. I found this example but unfortunately is written in Java but I think it's not too hard to translate into Xamarin/C#.

Interop.quartztypelib odd behavior

I'm being annoyed by an odd behavior of Interop.quartztypelib in making media player with c#. With the help this link
http://www.codeproject.com/Articles/2632/DirectShow-MediaPlayer-in-C?msg=4853463#xx4853463xx
I created my own video player with Interop.quartztypelib. There's an important function for me to implement is that my application shall be able to capture the video image, just like you click "ALT" + "Printscreen" to make a screenshot of an active window in windows. But surprisingly I found that in the image captured by my application (I use
Graphics.CopyFromScreen
in my code), there's no video image on the video screen! I got the image of my form (the video player) but not the image of the video being played! And clicking "ALT" + "Printscreen" just gives me the same result!
I'm wondering if this Interop.quartztypelib doesn't support image capture. Anybody knows if there's a way to do settings to enable this? Thanks.
Printscreen doesn't do that
You need to implement some way of switching out of overlay, or some other way of getting a still. There is some trick with hardware acceleration, buts its not really applicable to you as the application dev. You're probably have to get antiquated with rendering api's.
For OpenGL api I think it would be glReadPixels.
For directX here's a SO question. I'm going to guess its directX in your case.

How can I stream video from the camera to a <Image>

Im making an app that should let the user see video from the camera on the back of the phone in a small frame in my app (300x300)
But im having some problems fetching the stream. I've tried a CameraCaptureTask but does not work on my phone. I seems to open the video app and them close it, returning to the app, right away
Check out the Basic Camera Sample from here: Code Samples for Windows Phone
It's an excellent, fully featured example of probably everything you'll need for your project.
Here's the 'walkthrough' version if you're interested: How to: Create a Base Camera Application for Windows Phone

Show video stream from Video Server (axis 240Q) to WPF/WINFORM and draw Ellipse on the video (on run time)

I get video via lan from Video Server that bring me the video to my browser.
what I want to do is:
create app in winform or WPF that show the video and to draw on it(on the video control) Ellipse with 1.Location parameter and 2.diameter X 2 (because it`s Ellipse).
thanks.
i think i solve this by use Web Browser Control and draw with GDI(custom control) on it.
what do you think?

How Do I Show A Live Video Feed On A C# Form?

I have a C# Windows Form Application and a live video feed. I need a way to display the live video feed on one of the forms. Does anyone have any ideas?
We're using a robot and getting the video feed off a camera attached to it, so we will not be using the internet at all.
Thanks!
Check out AForge.Net. Here is a tutorial for pulling webcam data and displaying in a form.

Categories