Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
163 views
in Technique[技术] by (71.8m points)

image - Python if I'm capturing at 1080 by 1440 is there a way to only read the pixel value from every 10th pixel

So the current methods for capturing a downscaled image is to capture the full thing then downscale it, but I'm trying to go fast and thus don't want to capture the full image only every 10th pixel giving me an image 144 along and 108 down. which would result in a 10X speed increase because I don't have to get all the pixels from a full resolution just the few I want. Thanks in advance

question from:https://stackoverflow.com/questions/65545844/python-if-im-capturing-at-1080-by-1440-is-there-a-way-to-only-read-the-pixel-va

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I don't think this is possible due to driver/library limitations, I'm thinking they'd be sending you the entire frame, try looking into the library you're using


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...