is there a way to access the pixels of a video?
Having a video file, there is any way to access single pixel values?
I have two cases where I would like to access the pi开发者_如何学Cxels:
- From the video camera
- From a video file What I need is geting a pixel information for a certain place with something like getPixel(posX, posY) and returning the RGB information
I have an algorithm that detects blobs (homogeneous parts) of an image and I would like to implement it in real time using the android video camera and offline processing analyzing a video file.
Yes, but you'll need to do some work.
- Extract a video frame from the source file with a tool such as FFmpeg. The result will be a JPEG or other such image file
- Use an image processing tool, like Imagemagick, to extract the information for a pixel.
Presto!
精彩评论