SourCherry
Posts: 1
Joined: Fri Oct 27, 2017 4:49 pm

Live Preview to TFT Screen

Fri Oct 27, 2017 4:53 pm

For my engineering class project I need to get my 3.5" raspberry pi tft screen to show what the camera sees. I've managed this using fbcp and a short python code using "camera.start_preview" but the video is very laggy and I need to be able to see fast moving objects. Any advice or help? Thanks offered in advance :)

User avatar
HermannSW
Posts: 6247
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany

Re: Live Preview to TFT Screen

Sat Oct 28, 2017 3:29 pm

Hi,

depends on the resolution of your display, the camera type (Raspberry or USB) and what Pi you have.

As you can see you can get 25fps for 320x240 TFT LCD with Pi Zero, Raspberry camera and gstreamer:
Image

The gstreamer command I used is this:

Code: Select all

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=320,height=240,framerate=30/1 ! videoconvert ! fpsdisplaysink text-overlay=true video-sink="videoconvert ! fbdevsink device=/dev/fb1"
(The trick to get fpsdisplaysink output to a framebuffer device is a videoconvert in video-sink)
https://github.com/Hermann-SW/RSA_numbers_factored
https://stamm-wilbrandt.de/GS_cam_1152x192@304fps
https://hermann-sw.github.io/planar_graph_playground
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/

Return to “Camera board”