0

When I run my python script the contains:

import picamera
from time import sleep
camera = picamera.PiCamera()
camera.start_preview()
sleep(10)
camera.stop_preview()

The script just runs and shows no live feed. Is this supposed to happen, because everywhere I read this is wrong. How can I fix this?

1 Answer 1

0

I'm not sure about your screen configuration but I'll tell you this, as far as I know, camera preview only works on the screen attached to the raspberry pi directly, you cannot see the feed through vnc.

3
  • I use an lcd touchscreen. (PiTFT )
    – ToXicL 16
    Jan 5, 2018 at 12:20
  • I don’t use VNC
    – ToXicL 16
    Jan 5, 2018 at 12:41
  • It doesn't work with the PiTFT I think, unless you use the HDMI mirror option. Sep 23, 2020 at 2:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.