Questions tagged [picamera]

140 questions
0
votes
0 answers

Record video untill spefific time is reached

I am trying to record a video using camera.start_recording from picamerapackage until a specific predefined time is reached. I was trying to counter this problem using code similar to the following MWE. import picamera import time time_to_record =…
CR36
  • 13
  • 3
0
votes
1 answer

How to capture face with open-cv and Picamera?

I am looking for a simple way for to do real-time face detection and capture using open-cv and Picamera in Python. I figured out how to recognize the face from and image file, but I dont' know the rest. I am trying to have a real-time stream of…
Alen
  • 25
  • 1
  • 8
0
votes
1 answer

unable to capture images using python (image gets corrupted)

so i made a camera app for the hq camera but i cannot take any sort of pictures on my raspberry pi 4! from guizero import App, PushButton from picamera import PiCamera camera = PiCamera() app = App() def preview(): …
0
votes
1 answer

Where to write data for web server www-data user

I have a web server on a Pi with a Pi Camera. The goal is to click a button on a web page and have the camera take a picture and save it through a script in /usr/lib/cgi-bin/. Then I want to retrieve all of the pictures via ftp. This works, but I…
Rusty
  • 357
  • 5
  • 13
0
votes
1 answer

How to place overlay on top of picamera preview

So I have this bit of code almost working but the overlay takes over the entire HDMI output (fullscreen) when I only want it to appear on the camera preview window. import picamera import time image_folder="../images/" with picamera.PiCamera() as…
Patman
  • 95
  • 9
0
votes
1 answer

Read last frame from PiCamera Ring Buffer

I am building a motion detector using PiCamera that sends an image to a message queue to have ML detect a person (or not) which then responds back to the client. The motion detection code is mostly lifted from pyimagesearch.com and is working…
Lee Melbourne
  • 407
  • 5
  • 20
0
votes
0 answers

File size limit in making timelapse video on the fly with OpenCV, Picamera and an IR camera

I am creating a raspberry pi timelapse camera encoding video with CV2 videowriter Each image captured with picamera is added to the videowriter and once the intended number of images are taken the videowriter closes. However - while this works for a…
0
votes
1 answer

Raspberry Pi Camera: PermissionError when saving on a mounted USB stick

I have a simple project with my Raspberry Pi 4: When I take pictures with a Pi Camera, the pictures are saved in the home directory. But I want them to be saved on a USB stick. I created a target folder at /mount/mydisk to be the mount point of the…
Vani
  • 1
  • 1
0
votes
0 answers

Frame-rate drop while using custom python app in Deepstream SDK

Using the deepstream_app_config_yoloV3.txt and TRT engine file fp16.engine, I got a FPS of 15 on yolov3-spp and a FPS of 30 on yolov3-tiny . My question is this: Is there a way to recreate the fps I got running the deepstream_app_config_yoloV3.txt…
Bezal-el
  • 33
  • 1
  • 2
  • 8
0
votes
1 answer

I am using python and opencv to take an image; however, the image quality is not displaying the correct size image

I am using python and opencv to take an image; however, the image quality is not displaying the correct sized image. When I run: import cv2 cap = cv2.VideoCapture(0) width=cap.get(3) height=cap.get(4) print(width,height) This is printing the…
helloworld12345
  • 176
  • 1
  • 4
  • 22
0
votes
1 answer

Install python3-picamera on Ubuntu

I want to install picamera on Ubuntu 20.04. Following error is occurring after sudo pip install picamera. How do I install picamera ?. ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools,…
Daisuke Sugawara
  • 311
  • 4
  • 20
0
votes
0 answers

Is it possible to save the content inside an stream to a variable instead of a location?

Is it possible instead of copying a variable content to a given location ( stream.copy_to('motion.h264') ) save it in a variable to be further processed. Reason I would like to do so, is to be able to downgrade video resolution once the video buffer…
Bert
  • 29
  • 5
0
votes
1 answer

How to take video on a raspberry pi with a usb webcam

Hello I have a usb webcam and am too broke for the picamera, is there anyway I can write a python program that can record video??
Drew
  • 11
  • 1
  • 3
0
votes
2 answers

Use HTML interface to control a running python script on a lighttpd server

I am trying to find out what the best tool is for my project. I have a lighttpd server running on a raspberry pi (RPi) and a Python3 module which controls the camera. I need a lot of custom control of the camera, and I need to be able to change…
Rusty
  • 357
  • 5
  • 13
0
votes
1 answer

Cannot identify image file io.BytesIO on raspberry Pi using PiCamera library and PIL

I am having trouble using the output from PiCamera capture function (directed in a BytesIO stream) and opening it using the PIL library. Here is the code (based on the PiCamera basic examples): #Camera stuff camera = PiCamera() camera.resolution =…