You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The toYUYV() and toRGB() functions assume that the data from the device is in YUYV.
Webcams may give data in other formats too, like MPEG or H264.
Currently there is no way to get the "raw" data from the frame, using toYUYV on a MPEG frame returns garbage (i.e. the mpeg data padded with zeros to fill a whole "YUYV frame").
The text was updated successfully, but these errors were encountered:
Added cam.frameRaw() to get raw frame data at ad1b1c9 .
(It is published at 1.0.0 for node-4)
When MJPG format camera used, the returned data(as Uint8Array) is just JPEG compressed data.
(Sorry I don't know how to handle MPEG frames, required more info for programming with MPEG)
The
toYUYV()
andtoRGB()
functions assume that the data from the device is in YUYV.Webcams may give data in other formats too, like
MPEG
orH264
.Currently there is no way to get the "raw" data from the frame, using
toYUYV
on aMPEG
frame returns garbage (i.e. the mpeg data padded with zeros to fill a whole "YUYV frame").The text was updated successfully, but these errors were encountered: