Questions tagged [picamera]

140 questions
0
votes
1 answer

PiCamera and Schedule is not working together

i'm a bloddy starter at programming python and don't know, what i'm doing wrong. Im reading trough the documantaions from PiCamera and Schedule, but a combinded command is not working. So i want to do this with…
0
votes
1 answer

Get frames from Picamera and add opencv filters in realtime

According to this Picamera document, Picamera can capturing frame as openCV object. but seems not working . how can i get frames from Picamera and add opencv filters in realtime. Rpi 3b+ . Python 2.7 i need an example code please. import…
simo
  • 9
  • 4
0
votes
1 answer

Raspberry Pi Zero Picamera

My Picamera V1.3 is not detected vcgencmd get_camera prints... supported=1 detected=0, libcamera interfaces=1 But I can capture imgs and video per libcamera... Since I want to use either the picamera or the cv2 python library to record video, I '…
0
votes
0 answers

Why is the window so slow? And how can I fix it?

I am making a simple pi camera app using pygame. But for some reason the preview window is running terribly. Can someone help me fix this. It looks terrible like this. There must be a better way of achieving this. Code is shown below: import…
0
votes
0 answers

Python, host webpage streaming video

I have a raspberry pi and picamera. I want to set it up to stream video to a webpage that can be accessed over the internet. I already have coded it to work on my local network, but that's not the ultimate goal. Can you help or point me toward…
Zar
  • 1
  • 1
0
votes
0 answers

Raspberry Pi takes total 8 seconds to capture the image for two camera. How to reduce time?

I have two camera connected to RPi (1 USB camera and 1 RPi camera). I need to capture both images to do some processing on them right after image capture I have this code: file1 = 'imagecapture' + '_view1.png' file2 = 'imagecapture' +…
0
votes
0 answers

Memory Error Exception using PIL to Process Video Stream on Raspberry Pi

I have written a Python script that runs on a Raspberry Pi and utilizes the PiCamera library to capture video, the Python Image Library (PIL) to extract individual frames, and then does some image processing on it using DIPLib and OpenCV. The goal…
Brayton Larson
  • 67
  • 1
  • 1
  • 8
0
votes
1 answer

Importing picamera2 works in CLI bot in Thonny IDE

I have successfully installed picamera2 using this tutorial and I am able to run a script just fine from CLI. The script: from picamera2.picamera2 import * from time import sleep picam2 = Picamera2() picam2.start_preview(Preview.QTGL) config =…
Michael Kročka
  • 617
  • 7
  • 22
0
votes
1 answer

Gstreamer - stream with image overlay to youtube

trying to stream from my Jetson nano with picamera 2 to youtube with gstreamer. Streaming only video works, but i need to overlay video with image using multifilesrc(image will change over time). After many hours a was not sucesfull to incorporate…
0
votes
1 answer

How can I run two python script using the same pi camera in raspberry pi?

I am currently working on a project where I need to have a live stream video and a motion detection that when a motion is detected, the raspberry pi records a 10 second video. I have put each functionality in different python files. I am using a…
0
votes
1 answer

Fix Picamera in Python MMAL Error Raspberry Pi

I've tried many tutorials and installation to use the rapsberry 4 picamera with Python I'm using Picamera library and everytime I use this simple script or any picamera script to try the camera I got this error message: mmal:…
ElOrdo
  • 1
  • 1
0
votes
0 answers

How to read all the data from socket using tokio

I am trying to read data from the socket using tokio. The data is the bytes sent by Picamera, which I read from my code and write to a file. When I run the file it seems like there are some fragments lost in the middle. The code for the above…
log N
  • 925
  • 9
  • 33
0
votes
1 answer

Python3 PiCamera Module

I have a Raspberry Pi 3 with a Camera (Noir) and I found on python this pi camera module. So I have now when I am starting the python script a Webserver which allows me to see throw my camera. Thats fine and cool, but now I wanted to make with some…
user16332592
0
votes
0 answers

Fast-Forward issue with saved video from PiCam

I'm working on a code, which reads incoming videos from Raspberry Pi, performs face detection on the frames, places frames around the faces, and then write backs the frames into an MP4 file with the same FPS. I use OpenCV to open and read from the…
saman
  • 199
  • 4
  • 17
0
votes
0 answers

PHP program can't execute piCamera function in Python script

I am making a php program that executes a Python script in which a camera is recording. The camera is plugged to a Raspberry Pi. Here is the Python script (I am using Python3) : #import time import datetime import subprocess import os import…