简体   繁体   中英

How to get true raw data input from webcam? pref with python

Interested in getting the raw data that is streamed from a webcam..before it is transformed into binary -> pixels or whatever the sequence is.

From my understanding, libraries like opencv won't help with this.

Edit: kiss

in order to see the image output from a webcam using python you need to convert it from raw image data (the pixels) into a image that can be displayed one way you can do it is by using matplotlib more info here https://matplotlib.org/stable/tutorials/introductory/images.html this will display the image but will not convert it into other image formats such as .png .jpeg ext. but the data you are getting is probably pixel data which is the rawest image data you will get

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM