We changed our privacy policy. Read more.

Hot answers tagged

2

Did you call your file picamera.py? If so, the file will try to import itself. Rename it, and make sure there's no picamera.py or picamera.pyc.


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 ...


2

I use the serial debug console for a long time. You only need a really cheep USB to TTL serial adapter that you connect to pins 6, 8, 10 on the RasPi. I got some for about 3 € from china. Then you can use a serial terminal program to have the same text console (command line) than with ssh. For more details look at What is the correct way to connect serial ...


2

Running Raspberry OS under emulation will not give you access to the Pi Camera on the hardware doing the emulation. I'd suggest you ask your friend to provide you with a collection of the images you are trying to recognise. Then write your Python code on your PC in Python. If you are careful the Python code should port easily over to your friend's Raspberry ...


2

According to the log, the camera connects to the bus and then immediately disconnects. I'd say a power issue is most likely. Disconnect all USB devices and plug just the webcam, see if it stays connected in that case. Try shorter cables to supply power to the Pi, or a different power supply. If you have a multimeter, check the voltage on the 5V pin, and, if ...


1

I use raspistill -t 10 -v -md 3 -bm -ex off -ag 1 -ISO 800 -st -ss 2000000 -a 1052 And get a 2 second exposure. I have found that raspistill takes 5 exposures before it takes the exposure that returns an image. This means that call will take 5-6 times the shutter speed. In this case 10 seconds for the 5 exposures you don't see and then 2 seconds for the ...


1

Compute Module IO Board + Compute Module 4 Instructions: Connect Camera Module to Compute Module IO board using Raspberry Pi Zero Camera Cable Single Camera: sudo wget https://datasheets.raspberrypi.org/cmio/dt-blob-cam1.bin -O /boot/dt-blob.bin OR Dual Camera: sudo wget https://datasheets.raspberrypi.org/cmio/dt-blob-dualcam.bin -O /boot/dt-blob.bin ...


1

The camera takes some time to meter the exposure and determine the white balance. raspistill takes the option -t followed by some integer number of milliseconds as its "preview" time. If no value is specified, it defaults to 5000, or 5 seconds.


1

I made the same question on raspberry Pi's forums, here . @6by9 replied and solved my question. His reply is: Schematics for v2 and HQ camera modules are published (off the camera hardware page), as are reduced schematics for all the versions of Pi (eg Pi4). Only the v1 camera module had an LED fitted. v2 and HQ don't. 3rd party products will vary. Pi4 and ...


1

@Ghanima nailed it! I got about 27.5 cm from the end of the lens to the surface of my laptop screen with the aperture wide open for minimum depth of field. I then added a second "6 mm" spacer bought at a local security camera store (equivalent to the "extension tube" concept mentioned in the question) and the distance shortened to 33 mm. ...


1

It is likely able to focus on things 25 to 35 cm in front of the lens. Note that this answer is inferring that from documents on the web only. The author of this answer has not been able to test it and can neither comment on image quality. Multiple vendors of the "Raspberry Pi HQ 16 mm C-Mount Telephoto lens" list it as model: PT3611614M10MP (...


1

Confirmed, power supply was to blame. According to info from the web, Pi Zero W may draw up to 1.3 amps, while a cheap charger may be supplying less than 0.5 amps. Model 4 can draw up to 3 amps, which very few standard chargers will supply, lucky I got Raspberrys own power supply for that one.


1

The problem appears to be related to the line that raspi-config inserts into config.txt, gpu_mem=128 Remove the SD card, put into another computer, remove this line. The camera now works.


1

Typical, just when you ask a question, you get it to work. Following suggestions from https://www.raspberrypi.org/forums/viewtopic.php?t=60088 The problem appears to be that you are trying to connect an X client to the X display of a different user, and it does not have the correct authentication cookie. I tried running the script without root privileges (...


1

It all boils down to the two devices sharing the same interface to achieve this. If there is an adaptor for your camera to the CSI port of the pi, then it should be pretty straightforward. Alternately, you can see if there it can be connected via the USB. . After you create this physical connection, then you'll have to determine the appropriate software - ...


1

There was slight change in click behaviour on the most recent update. I use MotionEyeOS but the behaviour should be the same. Click twice on the streamed image and a menu should overlay the top of it allowing access to the functionality you desire, assuming the logged in user has the requisite permission and they are both enabled in the settings.


1

Casing is important: import picamera import time camera= picamera.PiCamera() camera.capture("example.jpg") Should solve your problem :)


1

4 lane allows a higher data rate from the sensor, but only if the sensor and the board it's mounted on supports the extra lanes. None of the official raspberry pi cameras do, though I think there may be some third party 4-lane sensors available. None of the regular Pi models support 4 lane, only the compute module does and only on one of the two ports. ...


1

try to unplug one webcam use command ls /dev/video* to detect which are active/assigned (write down it) plug the another webcam repeat ls /dev/video* (write down and compare with previous list) the first on both list is cam0, the first new number on second list (vs first list) is your second cam example of my outputs and working commands..i waste one week ...


1

It seems there are some issues with timestamps in BCM2835 (for instance, Pi Zero) which affect the standard kernel driver for the RPi camera: https://github.com/raspberrypi/linux/issues/1836 The fix should be available on kernel release 5.8.


1

I have been through the same issue with the same hardware and to have the IR LED on only by night. To do so, you need to turn the little screw/potentiometer (in the red circle) that set the limit of the dim light before it go to turn on the IR LED. Once you found the right configuration to your usage you should be ready to play :)


1

you can show the display preview indicating the weight and height as follows: raspivid -t 0 -fps 25 -w 640 -h 480 Change the resolution as you prefer.


1

This line cam = serial.Serial('/dev/video0',38400,timeout=0.1) will never work. You cannot read a video device as if it was a serial device, or a file, or a network interface, etc. You must configure the camera (with frame size and format, not the baudrate!) and tell it to start a photo / video capture, before you can use read() to get the actual data. ...


1

Use showmewebcam showmewebcam boot from SD card showmewebcam-usbboot no SD card needed uses USBBoot.


1

A 47000uF capacitor across the 5V GPIO pins fixed it for me. Started with 100uF with no luck, didn't have anything in between handy so went with what I had, been running for weeks now with no problem compared to a day or two at best before. Pi zero running RPI cam control FWIW.


1

My problem was a little connector between camera len (im not sure what kind of device is it) and board. Just smoothly "click" it on place. I marked it on photo, red color:


1

You have to go into the .conf file and change stream_maxrate to the desired framerate.


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