GithubHelp home page GithubHelp logo

Comments (8)

secile avatar secile commented on July 20, 2024

Thank you for your request and sorry for late reply.

I want to confirm.
What you request is that UsbCamera class's access modifier is currently 'internal' and change it to 'public'?

Could you tell me the reason. Are you going to make UsbCamera class to dll?
Thank you.

from usbcamera.

Mrgaton avatar Mrgaton commented on July 20, 2024

i mean i like to put the class in my Data.cs And make Public class for acces the camera class from other parts of code

from usbcamera.

Mrgaton avatar Mrgaton commented on July 20, 2024

image

from usbcamera.

Mrgaton avatar Mrgaton commented on July 20, 2024

all thath tring to do this
image

from usbcamera.

Mrgaton avatar Mrgaton commented on July 20, 2024

i use your class to my c# webcam online server and is so good

from usbcamera.

secile avatar secile commented on July 20, 2024

To make UsbCamera class public, you have to make DirectShow class (in line 772) public too.
Could you try it?

from usbcamera.

Mrgaton avatar Mrgaton commented on July 20, 2024

oh yea it works thanks man one question how i can get the device max frame ratte?

or someshimg like
image

from usbcamera.

secile avatar secile commented on July 20, 2024

You can get max/min frame interval from Caps.MinFrameInterval and Caps.MaxFrameInterval in VideoFormat member.
The value means duration in 100-nanosecond unit. You can translate into frame rates as follows.

frame rate = 10,000,000 / frame duration.
(for example, value=333333 means 30 fps.)

You can change frame interval by modifying TimePerFrame value in VideoFormat member from MinFrameInterval to MaxFrameInterval, but as long as I tested, devices all I have returns same value in MinFrameInterval and MaxFrameInterval.

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.