DirectShow - order of adding filters causes image to look strange with Microsoft Lifecam Studio - directshow

I'm working on a video capture application using DirectShow and have noticed certain problems. In particular, with a Microsoft LifeCam Studio camera, the following strange situation occurs:
If the order of adding the capture filters is: video capture first, then audio (camera microphone), then the image from the camera gets a strong pinkish tint - looks like a black and white image run through a color transform to make it pink.
If I swap the order of adding the filters: audio (microphone) first, then video, then the problem goes away.
I've first noticed this in my application but have since verified that the same happens in Graph-Edit.
Is there any reasonable explanation for this phenomenon?

Related

Properly handling embedded images in Xamarin.Forms while using Live Player

Building and deploying on the real device takes ages. Xamarin Live Player is great and handy, but has some harsh limitations. I want to use the embedded images approach, that is working when the solution is built and deployed but falls into those limitations of the Live Player, and I am getting such exceptions:
[LogEntry: Time=2018. 05. 04. 9:42:31 +02:00, Level=Error, Title=Visualization Error, Message=Object of type 'NInterpret.InterpretedObject' doesn't match target type 'Xamarin.Forms.Xaml.IMarkupExtension' (TargetException)]
Is there any simple workaround to make the application show in Player? I could happily live with not showing the image at all (or at best showing a placeholder instead) when using Player and have the image shown as expected when using the regular flow.

Photoshop tvOS LSR extension gives error

We're trying to create a tvOS application icon for our new tvOS application. We've downloaded the necessary extensions and the example .psd. We've tried to generate a preview using the plugin but it keeps saying it's missing a background layer.
I've added the layer, named it background, and locked it, but the same error keeps popping up.
I haven't used the photoshop plugin, but what it probably means is that at least one layer has to be the right size (e.g. 400x240) and has to be opaque.
Also, for what it is worth, you don't need to create a separate layered image unless the layers are of a different size. You can just drag the individual layers directly into the assets.

How to get image from preview panel, DirectShow.Net

i am writing an app that preview then capture video from a Video Device (ex:Cam), i didn't found a solution to take a snapshot during capturing with a ASF format.
so i thought i could take a picture from the preview panel but the background-image didn't contain it, and the image property of is null if i use a Picturebox .
do anyone knew how Directshow use the panel or Picturebox to preview video?
Typical solution for capture with preview is to add a tee (smart tee) and then do writing and presentation on the outputs of that tee respectively. PlayCap DirectShow.NET sample shows how to visualize video feed. Video renderer provides methods to read back last presented video frame, so that you could make a snapshot out of it.
Separate parts of this task have been discussed many times, including here:
Preview a camera in DirectShow and capture a still image - in VB.net
VB.Net Directshow Webcam Snapshot
Capturing pictures from webcam at high resolution while previewing at a lower one using DirectShow.Net
DirectShow - Capture Webcam While Viewing It?

gif image file displays red "x" on IE

To start off, I have searched google & SO (Images are showing up as red x's on IE, shows up fine in other browsers), tried out the suggestions, but they did not resolve my issue.
I am trying to create a transparent image by following the code shown at: How do you Draw Transparent Image using System.Drawing?. I am using a 3rd party mapping control "Simplovation"
However, this is what I get when I run my webpage:
How can I get the actual image to appear?
I tried converting to RGB, but no luck.
Based on the code in "How do you Draw Transparent Image using System.Drawing" the actual image should appear like:
There could be a long list of potential problems here, let's address 3 of them:
Permissions
You imply that you are creating this image from code. How are you doing that? If the IIs worker process, running in the user context of the application pool account, is creating this image, does it create/save it to a location that is accesible anonymously? (or whatever your authentication model is)
File locked?
Again, since you are implying your are creating the image from code, to you close the file handle properly?
Path.
You say that the image Url is correct, but are you really 100% sure? Press F12 on IE and use the developer tools to determine if you get any type of HTTP error when IE is trying to request the image.
IE is very specific about the image type and actual image content. In other words, IE cannot display if image type and content doesn't match.
For example, renaming just file extension - bmp to gif - doesn't work in IE, although it is not an issue in other browser.
Easiest way to check is to browse that page in other browser. If you can see image in other browser, you can make sure that image format is not correct.

Decode QR-Code in scanned PDF

I'm trying to decode qr-codes in a PDF (generate by Scan2Mail with a Canon iR Scanner).
I know the quality is quite poor (see attached image), but with every single iOS app for qr-code scanning I can successfully scan the code within milliseconds filming the image below with the iPhone cam.
I tried to scan with zbarimg and zxing but nothing did work. Do you have ideas what to do? maybe enhance the image somehow with imagemagick?
It seems counter-intuitive that an image of an image decodes, when the original image doesn't. An app is seeing a stream of slightly different versions of the image. The original is damaged and distorted. The blur that results when the camera captures it can actually help remove the noise. Yes, zxing decodes this fine -- from the Barcode Scanner app.
Try running this through a light blur filter first.

Resources