4

[Errno 2] No such file or directory: '/proc/cpuinfo' That directory is missing. I don't think that you can install PiCamera on Windows.


3

If I've understood correctly, you want to capture 5 images, each with a different shutter speed, wait five minutes, and then repeat. In that case, capture_sequence isn't applicable as it would capture all frames with the same shutter speed. In that case, the code you want should look something like this: from picamera import PiCamera from time import sleep ...


3

According to the documentation you linked to, this camera doesn't come with an application to capture images. They offer a demo application, written in C, but other than that you have to write your own application to utilize this camera.


2

If you do not specify the default framerate in python then it will be set to 30fps. The players you are using expect a frame rate of 25fps. So your 30 second video should last 30seconds x 30fps/25fps = 36 seconds. See documentation, 10. API - picamera.camera Module, for the default frame rate. Try using camera.framerate=25 Camera must not be recording for ...


2

I am using a similar setup with a 12V power rail (from mains with a 12V power supply - not a battery) with a 5V/3A buck converter to power a Pi 1B for more than 3 years now without any issue. Also used this setup with a Pi Zero, Pi 2B and most recently Pi 3B+. The only suggestion I have is to not power the Pi over the microUSB port but directly over the 5V ...


2

Yes, it is perfectly safe. You lose two protections so take care. The microUSB socket is keyed so you can't mix up +ve and -ve. Take care when connecting. The microUSB socket feeds into a polyfuse which limits current to an amp or so. This mitigates against fire risks in the event of some faults. Perhaps add your own fuse. Alternatively you could wire ...


2

You can turn on the camera led through the pi’s GPIO using the python code below: #!/usr/bin/env python import time import RPi.GPIO as GPIO # Use GPIO numbering GPIO.setmode(GPIO.BCM)   # Set GPIO for camera LED # Use 5 for Model A/B and 32 for Model B+ CAMLED = 5    # Set GPIO to output GPIO.setup(CAMLED, GPIO.OUT, initial=False)  GPIO....


2

I reconnected all cables, removed screws and it didn't work at the end. I switched to another camera and it works fine. FYI: If you came here searching this, probably your camera is dead.


2

According to the comments section of the lensholder at Thingiverse one has to remove the PiCamera's lens. Note that removing the lens makes the camera susceptible to dust and damage. Be extra careful with the open sensor. tracyaf_2 Aug 31, 2017 This works excellent. FYI you will have to take out the existing Pi Camera Lens and vaqueram - in ...


2

Looking at the error message, you probably don't have the correct permissions. Try adding privileged: true to your docker-compose.yml file (or something like --privileged=true if you are using docker run). (I assume there was a typo when you posted your command. To test, it should be raspistill -o test.jpg.)


2

Yes you can control shutter speed and many other things. For example raspistill -ISO 800 -ss 6000000 -o out.jpeg Will set the ISO 800 and the shutter speed to the maximum 6,000,000 microseconds, or 6 seconds. Here’s the Raspberry Pi documentation.


2

Try including the full path to the python executable in rc.local, for example /usr/bin/python /home/me/Desktop/python/cameratest.py &


2

We have developed something that you want. You need to install the motion package on your raspberry pi. It will transmit streams over HTTP/HTTPS protocol with authentication. You should install motion then configure it to access the web page over any hosts over LAN or the internet. Then, add these streams to a web-view on your android application. ...


2

The camera preview most likely writes directly to the frame buffer. This is not captured by the VNC server application. you can solve this issue using fbcp in order to capture the HDMI output; adafruit used this method to run mine-craft pi using their TFT hat.


2

You can either install the GUI desktop stack and use whatever you like there, or else you need something that runs on the kernel's software framebuffer. I'm not sure if this is what the camera preview window does, since it was written for the Pi it probably uses custom GPU code. The only framebuffer image viewer I'm aware of is fbi: https://linux.die.net/man/...


2

A 2-meter ribbon cable can totally be a problem. It's easy to test: if you plug the default cable which came with the camera instead, and the noise goes away, then it's the cable. The camera was only tested with the cable which is sold with it. Not being able to work with a different cable (especially a 2-meter one) is not really the camera's fault. Those ...


2

Picamera does not seem to support TIFF. Here's a list of supported formats from the documentation: 'jpeg' - Write a JPEG file 'png' - Write a PNG file 'gif' - Write a GIF file 'bmp' - Write a Windows bitmap file 'yuv' - Write the raw image data to a file in YUV420 format 'rgb' - Write the raw image data to a file in 24-bit RGB format 'rgba' - Write the raw ...


1

I'll turn my comment into an answer: Yes, it certainly is possible. I've read through a couple guides and my personal choice would be this Github. The readme provides a pretty good tutorial on how to get object detection working with TensorFlow on a Raspberry Pi. There are a few special instructions for users with a USB webcam instead of a Pi Camera, but ...


1

It's probably too late for this answer to help you, but hopefully this'll help future readers. I found a PiCamera docs page that has advice for the topic. The short version is this: set the shutter_speed set the iso set exposure_mode to 'off' set awb_mode to off set awb_gains Digital_gain and analog_gain can't be set; they stay at what the auto-...


1

I found one not very good solution, which is suitable to my problem for now. I managed to output the whole video signal (not only the camera video) via 3.5mm TV output. Then I ran a script to make the camera video full screen, and got the camera video on the receiver screen.


1

Never mind. Looks like I needed to add the -vcodec parameter. var params = [ '-i', 'pipe:0', // Tell avconv to expect an input stream (via its stdin) '-f', 'flv', '-vcodec', 'copy', '-strict', 'experimental', URL ];


1

Example from here : import picamera import picamera.array import numpy as np class MyMotionDetector(picamera.array.PiMotionAnalysis): def analyse(self, a): a = np.sqrt( np.square(a['x'].astype(np.float)) + np.square(a['y'].astype(np.float)) ).clip(0, 255).astype(np.uint8) # If there're more than 10 ...


1

For anyone having the same issues: It turns out that the above code uses too little CPU load and therefore does not shoot up the frequency. When I checked, my CPU was constantly running at 700 Hz. To achieve the required FPS on the above resolution, I changed my cpufreq governor from ondemand to performance. This might not be the only or the best solution, ...


1

You can control the shutter speed in python with the package picamera. Installation for python 3: sudo apt-get install python3-picamera Documentation for the shutter speed method: https://picamera.readthedocs.io/en/latest/api_camera.html#picamera.PiCamera.shutter_speed: shutter_speed Retrieves or sets the shutter speed of the camera in microseconds. This ...


1

You need to move the second instance of setting to Altimeter mode INSIDE the loop import datetime import picamera import time import smbus2 bus = smbus2.SMBus(1) # MPL3115A2 address, 0x60(96) # Select control register, 0x26(38) # 0xB9(185) Active mode, OSR = 128, Altimeter mode bus.write_byte_data(0x60, 0x26, 0xB9) # MPL3115A2 address, 0x60(96) # ...


1

one answer no one would like to hear when asking a question is probably "it depends", but in your case: it really depends. As you have a concrete use case, you could start with a simple project: By setting up motion (https://motion-project.github.io/motion_config.html) and playing around with the configuration options for a motion, e.g., how long should a ...


1

Do you have any TCP errors or retransmissions on the active network interface? It may be that your connection is so poor that TCP ends up losig data and then your program crashes since there's no code handling data loss. Check out the output of netstat -s | grep retransmitted and ifconfig | grep error some time after activating the network interface (ideally,...


1

I have the same issue. Raspberry Pi 3 B+, Raspbian Stretch 9, camera module v1.3, saving to SD. Using following flags, should be 12 pictures over 1 hour. raspistill -v -bm -vf -hf -awb cloud -br 60 -sa 40 -t 3600000 -tl 300000 -q 100 -o image%04d.jpg I was getting the issue where mmal skips frames and names an image randomly (or by time stamp?) and then ...


1

You can try zbarcam. You can call it in a way that it terminates after successfully scanning a code, so while the user will have to aim without any visual clues, you can reliably tell them when the program has finished scanning. zbarcam will output the QR code contents on the standard output, which can optionally be redirected to a file, whichever you find ...


Only top voted, non community-wiki answers of a minimum length are eligible