Questions tagged [picamera]

140 questions
6
votes
1 answer

picamera: capture a frame while continuous capture in background

I'm capturing a timelapse with the picamera module for python: from picamera import PiCamera, Color class EggAlertCam: def __init__(self): self.camera = PiCamera() self.camera.start_preview() def…
Gui13
  • 12,993
  • 17
  • 57
  • 104
6
votes
4 answers

decode and show H.264 chucked video sequence with python from pi camera

I would like to decode the H.264 video sequences and show them on the screen. The video sequences are from the pi camera and I capture with the following code import io import picamera stream = io.BytesIO() while True: with picamera.PiCamera()…
Aung Myo Htut
  • 61
  • 1
  • 1
  • 3
5
votes
1 answer

OSError: libmmal.so: cannot open shared object file: No such file or directory while trying to run picamera on Raspbian

I am trying to open camera with the picamera module in my Raspberry pi B+ with has Raspbian 64 bit OS installed in it. I get this error: Traceback (most recent call last): File "/home/pi/Documents/hydroponics/scripts/picamera_test.py", line 1, in…
Harsh Muriki
  • 121
  • 1
  • 1
  • 8
5
votes
0 answers

Raspberry pi camera on jetson nano wont work

Im using raspberry pi camera v2 on jetson nano. It works fine using gstreamer with python but trying to run it through javascrip wont work. This is some of my approaches: APPROACH 1: With navigator:
acroscene
  • 845
  • 4
  • 16
  • 45
4
votes
0 answers

Is there a way to play H264 video stream in Flutter?

I want to play H264 video stream(raspberry pi's camera) at my flutter application(Android) via Bluetooth, now I can read and transfer h264 compressed data use picamera in Python, but I haven't any ideas to show it in Flutter, I'm not familiar with…
injoker1
  • 163
  • 10
3
votes
1 answer

OpenCV VideoCapture and (-215:Assertion failed) !_src.empty() in function 'cvtColor'

This code originally worked fine. But when I run it again, the following error appears. I searched a lot about the error, but couldn't find a solution. Any help would be appreciated. cv2.error: OpenCV(4.4.0)…
HaileyM
  • 31
  • 1
  • 1
  • 4
3
votes
0 answers

calculating precise (ms resolution) system timestamps for picamera frames

I'm trying to calculate timestamps for picamera relative to the system clock in as precise a way as possible but it's not clear to me from the documentation how this can be done. I can set the clock_mode to "raw" and get times relative to camera…
Keith
  • 2,820
  • 5
  • 28
  • 39
2
votes
2 answers

How to take images with Raspberry Pi since "raspistill" and "raspivid" are deprecated

Since the Raspberry Pi is transitioning from using the old raspistill and raspivid to the newer libcamera how should I take an image now if I don't want to use the CLI nor C as programming language? I can't find any wrapper for libcamera in any…
2
votes
0 answers

How to capture a video stream from a raspberry pi on a remote computer in Python

I have an desktop application in Python that needs to capture a video stream from a Raspberry Pi Zero, display it in a PyQt widget and store its last frame in a numpy array for ML purposes. The application can communicate with both Wi-Fi or…
Juleaume
  • 83
  • 1
  • 8
2
votes
0 answers

Is there a way to set CameraX imageAnalysis or preview to take in video feed from an external raspberry pi camera.?

I am using CameraX version 1.0.0-alpha05. The reason of using this version because I am following a pytorch object detection android sample code. I know of the existance of ssh @.local -Y "mplayer tv://device=/dev/video0" but…
Ryan
  • 356
  • 1
  • 6
  • 26
2
votes
1 answer

Raspberry pi camera module issue OSError

I am trying to run Raspberry Pi camera module on Raspberry Pi 3 Model B using Python but I am getting this error: OSError: libmmal.so: cannot open shared object file: no such file or directory
2
votes
0 answers

Issue installing picamera (ERROR: Command errored out with exit status 1:)

Im trying to install picamera (pip install picamera) and I get the following error: ERROR: Command errored out with exit status 1: Can someone please help? Python 3.9.1 pip 20.3.3 Full error message: ERROR: Command errored out with exit status 1: …
EladLevy
  • 21
  • 1
2
votes
1 answer

Error accessing picamera in Docker container running on Raspberry Pi

I'm running a Docker container using docker-compose on Raspberry Pi 4 and would like to use the picamera module in Python to access a PiHQCam. I tried to get it to work using this tutorial:…
Alex
  • 95
  • 1
  • 10
2
votes
0 answers

Reducing Lag in Pi Camera

I found a code that can scan a barcode using the Raspberry Pi camera V2.1. It works as expected and can detect a barcode when I present it to the camera. But if I move the camera around a little, there is a lag in the video. I tried increasing the…
Jeff Boker
  • 803
  • 1
  • 9
  • 25
2
votes
1 answer

Running PiCamera on Ubuntu in C++

I'm trying to get my PiCamera Module v2.1 running on my RaspberryPi4. Unfortunately I must install the Ubuntu 19.10 64bit distribution. So far so good. I've installed Opencv4. There was some big trouble because it seems like Ubuntu does not come…
mAI
  • 111
  • 1
  • 10
1
2 3
9 10