GithubHelp home page GithubHelp logo

Problem with showing preview about usbcamera HOT 4 OPEN

Al3xMa avatar Al3xMa commented on July 20, 2024
Problem with showing preview

from usbcamera.

Comments (4)

secile avatar secile commented on July 20, 2024

Hello. Thank you for using my library and sending me a question.

I don't know reason why, but it seems that your camera Logitech brio is not support 'Preview Pin'.
As far as I know, even if camera do not support 'Preview Pin',
DirectShow's component Capture Graph Builder will make 'Preview Pin' automatically
by inserting Smart Tee filter.

This is described in comment line 292 and below. or see also link below.
https://learn.microsoft.com/en-us/windows/win32/directshow/previewing-video

So, I believed all camera supports 'Preview Pin'.

I do not have any idea to fix this problem at present,
so, as a plan B, is it possible to adopt '2. use Timer and GetBitmap()' approach to show preview?

// 2. use Timer and GetBitmap().
var timer = new System.Windows.Threading.DispatcherTimer();
timer.Interval = TimeSpan.FromMilliseconds(1000.0 / 30);
timer.Tick += (s, ev) => Preview = camera.GetBitmap();
timer.Start();

from usbcamera.

secile avatar secile commented on July 20, 2024

If you can use GraphEdit, I have some items I would like you to try.
GraphEdit is tool for test DirectShow created by Microsoft.
As to GraphEdit, show page below.

https://learn.microsoft.com/en-us/windows/win32/directshow/using-graphedit?ranMID=46128&ranEAID=wizKxmN8no4&ranSiteID=wizKxmN8no4-1yUTJ264eGGZk13yddGnyQ&epi=wizKxmN8no4-1yUTJ264eGGZk13yddGnyQ&irgwc=1&OCID=AID2200057_aff_7794_1243925&tduid=(ir__ib09dtywykkfbyq9klrj3irq2n2x6r6bpdcwhd6d00)(7794)(1243925)(wizKxmN8no4-1yUTJ264eGGZk13yddGnyQ)()&irclickid=_ib09dtywykkfbyq9klrj3irq2n2x6r6bpdcwhd6d00

By using GraphEdit, I want you to check Logitech brio has a Preview Pin or not.

from usbcamera.

Al3xMa avatar Al3xMa commented on July 20, 2024

Thanks for quick response!

If i try with the second, timer option, i get this:

image

I have managed to setup GrapEdit and i inserted my device in it as shown in screenshot below. What do you want me to try?
image

from usbcamera.

secile avatar secile commented on July 20, 2024

By using timer, you got black image, right?
Something is wrong...

Does another app can use Logitech BRIO? for instance, windows camera app can use the camera?

thank you for sending screen shot.
there are 2 Capture Pin. does the camera has 2 dual cameras like in camera and out camera? I have never tested dual camera. It can be the reason.

from usbcamera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.