Questions tagged [picamera]
140 questions
0
votes
1 answer
django StreamingHttpResponse picamera runs but does not render the stream, please advise
I hope I find you well.
I am really struggling with a personal project and would be really grateful if someone could please set me straight.
I wish to stream video from a picamera in django. I saw some cv2 implementations, had some trouble with cv2…

user2519486
- 43
- 5
0
votes
0 answers
Have to reset resolution between each picture with PiCamera
I am using Picamera library in Python in combination ith the new HQ camera and I found that if I want to
use the image port and take pictures in a loop, I must set the resolution again and again in the loop. Is this normal behaviour? It seems stupid…

Zacharie McCormick
- 63
- 8
0
votes
1 answer
For what "sleep" in recipes PiCamera?
In most part recipes for PiCamera it is time.sleep() before camera.capture (official tutorial). Here it is only comment: "# Camera warm-up time".
But how exactly it warms? For what?
Do I need make warm-up if I use camera.capture in a cycle? Or it…

Timur
- 488
- 4
- 14
0
votes
0 answers
Picamera multiprocess
I'm trying to use a separate process to take pictures. This code was modified from being a Thread to being a multiprocess (by me, this is why it doesn't work). When i create an instance of this class and then run it with obj.start() a popup appears…

Cătălina Sîrbu
- 1,253
- 9
- 30
0
votes
1 answer
Python Django - ModuleNotFoundError: No module named 'picamera'
I'm making my first Django-based web page, and trying to live stream video from my raspberry pi to said web page, but for some reason, I can't import the 'picamera'-module in Django... I have written a script that outputs the camera-feed, and it…
0
votes
2 answers
stream video and send response using python sockets
I modified the picamera script from https://picamera.readthedocs.io/en/latest/recipes2.html#rapid-capture-and-streaming to be able to stream video from my raspberry to my computer and at the same time send commands from the computer to the…

Lucibus
- 45
- 1
- 7
0
votes
1 answer
How to integrates or call GUI script (gui.py) to source script (main.py)?
what kind of module, syntax, function or do i need to use classes (oop)? i am still a baby python3, opencv4....please help
gui.py
'''
from guizero import App, PushButton
def do_nothing()
print('Button was pressed')
…
0
votes
0 answers
Issues with controlling picamera using MQTT messages
I am trying to start a camera recording using Pi Zero W (which acts as MQTT client) upon receiving message and stop the recording on receiving the stop message. Below is my code:
continueRecording = 1
Broker = "192.168.0.105"
pub_topic =…

Shiny
- 115
- 1
- 9
0
votes
0 answers
How do I specify the video port instead of still port in opencv on a raspberry pi?
When I use PiCamera, I have capture stills or video. They describe that there is a difference between the two. I find stills are slower when capturing continuously. Video is a faster frame rate.
When I use VideoCapture in OpenCV, it seems to capture…

joels
- 7,249
- 11
- 53
- 94
0
votes
1 answer
PiCamera not detected
I started working with a fresh Raspi. Enabled the camera module from raspi-config, rebooted my RPi.
When I then ran this simple code:
from picamera import PiCamera
import time
camera=PiCamera()
camera.start_preview()
I get this long error saying…

Karan Varma
- 1
- 1
-1
votes
1 answer
How to edit a python(2.7) package from the command line in Linux machine. Note that I use python 3.9 in my machine
I couldn’t make changes in the file, how to edit this file and save it?!
this is the file

Montaser Mohamed
- 3
- 1
-1
votes
1 answer
Raspberry Pi Camera Module undetectable by common applications
I bought a 5 mp camera module available at Amazon for my raspberry pi 4 2 gb model. Then I configured it for use and tested it with raspistill and raspivid, it is working as expected. But since it is a module connected to the CSI port and not a USB…

Popcorn Movies
- 37
- 1
- 11
-1
votes
1 answer
python for Raspberry 0W surveillance camera write to NAS
I have made a raspi0 PIR cam and am trying to get it to write to my network storage device. The .py writes to the drive but just keeps re-saving over the same file unless I ctrl C and manually restart.
from picamera import PiCamera
import time
from…

KSW74
- 1
-1
votes
1 answer
Segmentation fault while using Raspberry Pi 4 and PiCam
I am working on a project for University, and I am attempting to create a program that takes a picture using the PiCam every 4 seconds or so and then calculates the luminosity of the image.
The programs functions on the first loop, but it breaks…

Miller Timlin
- 1
- 2
-1
votes
1 answer
Store 10 seconds of unencoded video buffer using Python
I am trying to save 10 seconds of buffered video using Python script, in particular '.rgb' format.
In order to do so, I have been using a PiCamera connected to a Raspberry Pi.
Based on the script below, if I choose to save the video using h264…

Bert
- 29
- 5