Code Monkey home page Code Monkey logo

Comments (5)

l1npengtul avatar l1npengtul commented on July 28, 2024 1

Fixed cea3de7. Please wait for 0.10.

from nokhwa.

l1npengtul avatar l1npengtul commented on July 28, 2024

This would be possible - we could add the color format to CameraFormat
I will release this as 0.10 and push the current main branch to 0.11

from nokhwa.

l1npengtul avatar l1npengtul commented on July 28, 2024

The proposed API changes would be:
New PixelBuffer Enum Type added for CameraFormat
Custom buffer type for pixelbuffer built on top of Cow[u8]

from nokhwa.

l1npengtul avatar l1npengtul commented on July 28, 2024

It would be helpful if you listed the output of v4l2-ctl --list-formats-ext and v4l2-ctl --all of your IR camera.

from nokhwa.

iamkroot avatar iamkroot commented on July 28, 2024

Thanks for the quick reply! Here you go-

$ v4l2-ctl -d 2 -V --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'GREY' (8-bit Greyscale)
		Size: Discrete 640x360
			Interval: Discrete 0.067s (15.000 fps)
			Interval: Discrete 0.033s (30.000 fps)

$ v4l2-ctl -d 2 --all
Driver Info:
	Driver name      : uvcvideo
	Card type        : Video Capture 12
	Bus info         : usb-0000:04:00.3-3
	Driver version   : 5.15.12
	Capabilities     : 0x84a00001
		Video Capture
		Metadata Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : uvcvideo
	Model            : USB2.0 HD UVC WebCam: USB2.0 IR
	Serial           : 0x0001
	Bus info         : usb-0000:04:00.3-3
	Media version    : 5.15.12
	Hardware revision: 0x00001964 (6500)
	Driver version   : 5.15.12
Interface Info:
	ID               : 0x03000002
	Type             : V4L Video
Entity Info:
	ID               : 0x00000001 (1)
	Name             : Video Capture 12
	Function         : V4L2 I/O
	Flags            : default
	Pad 0x01000007   : 0: Sink
	  Link 0x02000013: from remote pad 0x100000a of entity 'IR Microsoft Extended Controls ' (Video Pixel Formatter): Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 9: ok)
Format Video Capture:
	Width/Height      : 640/360
	Pixel Format      : 'GREY' (8-bit Greyscale)
	Field             : None
	Bytes per Line    : 640
	Size Image        : 230400
	Colorspace        : sRGB
	Transfer Function : Rec. 709
	YCbCr/HSV Encoding: ITU-R 601
	Quantization      : Default (maps to Full Range)
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 640, Height 360
	Default     : Left 0, Top 0, Width 640, Height 360
	Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 640, Height 360, Flags: 
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 640, Height 360, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 30.000 (30/1)
	Read buffers     : 0

from nokhwa.

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.