开发者

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:

  1. From the video camera
  2. 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.

  1. 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
  2. Use an image processing tool, like Imagemagick, to extract the information for a pixel.

Presto!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜