May 31, 2016

OPENCV RASPBERRY PI2 (JESSIE) 4 -VIDEO



This posting is video

This post use RaspVid.c

Editing RaspVid.c

1
2
3
4
5
6
7
We  delete- all lines related to the preview component,
- all lines related to the encoder component.
- all lines related to inline command parsing and picture info…
We change :
- add the callback directly to the video_port  (line 286)
- create and attach the pool (to get/send message)  to the video port… (line 320)
- change format encoding to ENCODING_I420 in line (268) (instead of OPAQUE)
cs

And changing name.

1
mv Raspvid.c camcv.c
cs

If difficult editing, download below link

Download camcv_vid0.c

Changing name and cmake





Run camcv in window mode

1
./camcv
cs

You can see video.

If you want change pixel and color mode, editing Line 119~120 and Line 124

Frame in Pi 1


  • 320×240 color : FPS = 27,2
  • 320×240 gray : FPS = 28,6
  • 640×480 color : FPS = 8
  • 640×480 gray : FPS = 17


  • Frame in Pi 2


  • 320×240 color : FPS = 29.9
  • 320×240 gray : FPS = 29.9
  • 640×480 color : FPS = 24.3
  • 640×480 gray : FPS = 29.9
  • 1280x960 color : FPS=6.6
  • 1280x960 gray : FPS=15



  • No comments:

    Post a Comment