Last Update am Fr, 02 Okt 2020 20:02:02 +0200 by Andreas Potthoff
Die Kameramodule für den Raspberry Pi werden in den Generationen jeweils in zwei verschiedenen Versionen angeboten. Einmal die normale Version für Tageslicht mit einer grünen Platine und die Nachsichtversion (NoIR) mit einer schwarzen Platine. Die technischen Daten der jeweiligen Version sind gleich, allerdings verfügt die eine Version über einen IR-Filter und die andere eben nicht. Mit einer Infrarotbeleuchtung kann man mit der NoIR-Version Nachtaufnahmen anfertigen.
Der Fokus der Kameras ist nicht veränderbar und die Kameramodule verfügen über kein Mikrofon. Die Kamera der 1. Generation (v1.3) nimmt Fotos mit einer max. Auflösung von 2592 x 1944 Pixel auf, wobei die Kamera der 2. Generation (v2.3) eine max. Auflösung von 3280 x 2464 Pixel für Fotos hat.
Videos können von beiden Kamera-Versionen in den Formaten 640 x 480, 1280 x 720 und 1920 x 1080 Pixel aufgenommen werden. Die Bildfrequenz beträgt je nach Auflösung und Einstellung der Parameter 1 bis 90 Bilder pro Sekunde. Diese kleine Kameras benötigen für gute Aufnahmen viel Licht, da bei schlechtem Licht schnell ein Bildrauschen entstehen kann.
Einen Vergleich von Fotos zwischen den beiden Modulen kann ich hier leider nicht anbieten, da ich nur über das Kamera-Modul v2 verfüge. In der nachfolgenden Tabelle finden Sie die technischen Daten der beiden Kamera-Module für den Raspberry Pi in der Übersicht.
Raspberry Pi: Kamera Module
Feature | Modul v1 | Modul v2 |
---|---|---|
Released | 2013 Q2 | 2016 Q2 |
Preis | ca. 25 Euro | ca. 30 Euro |
Auflösung | 5 MegaPixel | 8 MegaPixel |
Sensortyp | OmniVision OV5647 Color CMOS | Sony IMX219PQ Color CMOS |
Sensorauflösung | 2592 × 1944 pixel | 3280 x 2464 pixel |
Pixelgröße | 1.4 µm × 1.4 µm | 1.12 µm × 1.12 µm |
Sensorgröße | 3.674 x 2.738 mm (1/4" format) | 3.674 x 2.760 mm (1/4" format) |
Objektiv | f=3.6 mm, f/2.9 | f=3.04 mm, f/2.0 |
Brennweite | 3.60 mm | 3.04 mm |
Fokusverhältnis (F-Stop) | 2.9 | 2.0 |
Bildwinkel | Horitontal: 53.5 Grad Vertikal: 41.4 Grad | Horizontal: 62.2 Grad Vertikal: 48.8 Grad |
Full-frame SLR Objektiv Entsprechung | 35 mm | 29 mm |
Video | 1080p: 30 fps, VGA: 90 fps | 1080p: 30 fps, VGA: 90 fps |
Bildformate | BMP, GIF, JPEG (accelerated), JPEG + RAW, PNG, RGB888, YUV420 | BMP, GIF, JPEG (accelerated), JPEG + RAW, PNG, RGB888, YUV420 |
Videoformate | RAW H.264 (accelerated) | RAW H.264 (accelerated) |
Automatische Weißabgleich-Modi | off, auto, cloud (6500K - 12000K), flash, fluorescent (2500K - 4500K), incandescent, horizon, shade, sun (5000K - 6500K), tungsten (2500K - 3500K) | off, auto, cloud (6500K - 12000K), flash, fluorescent (2500K - 4500K), incandescent, horizon, shade, sun (5000K - 6500K), tungsten (2500K - 3500K) |
Effektmodi | none, blackboard, blur, denoise, emboss, film, gpen, hatch, negative, oilpaint, pastel, posterise, saturation, sketch, solarise, watercolour, whiteboard not fully implemented: cartoon, colourbalance, colourpoint, colourswap, washedout | none, blackboard, blur, denoise, emboss, film, gpen, hatch, negative, oilpaint, pastel, posterise, saturation, sketch, solarise, watercolour, whiteboard not fully implemented: cartoon, colourbalance, colourpoint, colourswap, washedout |
Belichtungsmodi | auto, antishake, backlight, beach, fireworks, fixedfps, night, nightpreview, snow, sports, spotlight, verylong | auto, antishake, backlight, beach, fireworks, fixedfps, night, nightpreview, snow, sports, spotlight, verylong |
Zusätzliche Modi | burst/timelapse, circular buffer, demo, live preview on 3D models, segmented video, video with motion vectors | burst/timelapse, circular buffer, demo, live preview on 3D models, segmented video, video with motion vectors |
Messmodi | average, backlight, matrix, spot | average, backlight, matrix, spot |
Auslöser | keypress, timeout, UNIX signal | keypress, timeout, UNIX signal |
Installation:
Die Kameras verfügen über ein flexibles Flachbandkabel, welches direkt an das CSI (Camera Serial Interface) vom Raspberry Pi angeschlossen wird. Der CSI-Port befindet sich zwischen dem Ethernet- und HDMI-Anschluss. Das 15-polige Flachbandkabel wird nun mit dem CSI-Port verbunden. Hierzu zieht man den weißen Verschluss des CSI-Ports nach oben und setzt das Flachbandkabel ein, dabei muss die blaue Markierung des Flachbandkabels in Richtung Ethernet-Anschluss zeigen. Danach drückt man den Verschluss wieder nach unten und die Hardware-Installation der Kamera ist fertig.
Kamera in Raspbian aktivieren:
Raspbian Software aktualisieren:
sudo apt update sudo apt upgrade
Raspberry Pi Konfigurationstool starten:
sudo raspi-config
Kamera aktivieren:
- Wählen Sie Interfacing Options (Punkt 5) an,
- dann wählen sie Camera (Punkt P1) an,
- dann wählen Sie Ja und drücken Enter
Memory Split:
Für eine korrekte Funktionsweise sollte die Kamera (GPU) genügend RAM-Speicher zur Verfügung haben. Es werden mindestens 128 MB empfohlen.
- Wählen Sie Advanced Options (Punkt 7) an,
- dann wählen Sie Memory Split (Punkt A3) an,
- dann geben Sie die Zahl 128 ein und drücken Enter
Sie können auch 256 MB oder 512 MB vom gesamten RAM (1024 MB) für den Videospeicher zur Verfügung stellen. Für videolastige Anwendungen (z.B. KODI) ist das zu empfehlen. Die einzugebende Zahl beim Memory Split ist dann entsprechend anzupassen.
Nach der Änderung dieser Einstellungen muss der Raspberry Pi neu gebootet werden, damit die Änderungen wirksam sind. Dies geschieht in der Regel nach Beendigung von raspi-config automatisch.
Nach dem Neustart kann die Kamera getestet werden, indem ein Testbild gemacht wird. Um ein Einzelbild zu machen geben sie folgendes ein:
raspistill -v -o test.jpg
Der Bildschirm sollte nun für 5 Sekunden eine Vorschau der Kamera zeigen und dann ein Bild machen. Das Bild wird als test.jpg gespeichert, während einige Informationen auf dem Bildschirm angezeigt werden.
Software:
Die beiden Kommandozeilen-Programme raspistill und raspivid stellen umfangreiche Funktionen zur Verfügung um Aufnahmen mit der Kamera machen zu können. Nachfolgend finden Sie die Übersicht der verwendbaren Optionen und Parameter des jeweiligen Programms.
raspistill
Kommandoübersicht:
pi@raspberrypi:~ $ raspistill -? Runs camera for specific time, and take JPG capture at end if requested usage: raspistill [options] Image parameter commands -?, --help : This help information -w, --width : Set image width <size> -h, --height : Set image height <size> -q, --quality : Set jpeg quality <0 to 100> -r, --raw : Add raw bayer data to jpeg metadata -o, --output : Output filename <filename> (to write to stdout, use '-o -'). If not specified, no file is saved -l, --latest : Link latest complete image to filename <filename> -v, --verbose : Output verbose information during run -t, --timeout : Time (in ms) before takes picture and shuts down (if not specified, set to 5s) -th, --thumb : Set thumbnail parameters (x:y:quality) or none -d, --demo : Run a demo mode (cycle through range of camera options, no capture) -e, --encoding : Encoding to use for output file (jpg, bmp, gif, png) -x, --exif : EXIF tag to apply to captures (format as 'key=value') or none -tl, --timelapse : Timelapse mode. Takes a picture every <t>ms. %d == frame number (Try: -o img_%04d.jpg) -fp, --fullpreview : Run the preview using the still capture resolution (may reduce preview fps) -k, --keypress : Wait between captures for a ENTER, X then ENTER to exit -s, --signal : Wait between captures for a SIGUSR1 or SIGUSR2 from another process -g, --gl : Draw preview to texture instead of using video render component -gc, --glcapture : Capture the GL frame-buffer instead of the camera image -set, --settings : Retrieve camera settings and write to stdout -cs, --camselect : Select camera <number>. Default 0 -bm, --burst : Enable 'burst capture mode' -md, --mode : Force sensor mode. 0=auto. See docs for other modes available -dt, --datetime : Replace output pattern (%d) with DateTime (MonthDayHourMinSec) -ts, --timestamp : Replace output pattern (%d) with unix timestamp (seconds since 1970) -fs, --framestart : Starting frame number in output pattern(%d) -rs, --restart : JPEG Restart interval (default of 0 for none) Preview parameter commands -p, --preview : Preview window settings <'x,y,w,h'> -f, --fullscreen : Fullscreen preview mode -op, --opacity : Preview window opacity (0-255) -n, --nopreview : Do not display a preview window Image parameter commands -sh, --sharpness : Set image sharpness (-100 to 100) -co, --contrast : Set image contrast (-100 to 100) -br, --brightness : Set image brightness (0 to 100) -sa, --saturation : Set image saturation (-100 to 100) -ISO, --ISO : Set capture ISO -vs, --vstab : Turn on video stabilisation -ev, --ev : Set EV compensation - steps of 1/6 stop -ex, --exposure : Set exposure mode (see Notes) -awb, --awb : Set AWB mode (see Notes) -ifx, --imxfx : Set image effect (see Notes) -cfx, --colfx : Set colour effect (U:V) -mm, --metering : Set metering mode (see Notes) -rot, --rotation : Set image rotation (0-359) -hf, --hflip : Set horizontal flip -vf, --vflip : Set vertical flip -roi, --roi : Set region of interest (x,y,w,d as normalised coordinates [0.0-1.0]) -ss, --shutter : Set shutter speed in microseconds -awbg, --awbgains : Set AWB gains - AWB mode must be off -drc, --drc : Set DRC Level (see Notes) -st, --stats : Force recomputation of statistics on stills capture pass -a, --annotate : Enable/Set annotate flags or text -3d, --stereo : Select stereoscopic mode -dec, --decimate : Half width/height of stereo image -3dswap, --3dswap : Swap camera order for stereoscopic -ae, --annotateex : Set extra annotation parameters (text size, text colour(hex YUV), bg colour(hex YUV)) Notes Exposure mode options : off,auto,night,nightpreview,backlight,spotlight,sports,snow,beach,verylong,fixedfps,antishake,fireworks AWB mode options : off,auto,sun,cloud,shade,tungsten,fluorescent,incandescent,flash,horizon Image Effect mode options : none,negative,solarise,sketch,denoise,emboss,oilpaint,hatch,gpen,pastel,watercolour,film,blur,saturation,colourswap,washedout,posterise,colourpoint,colourbalance,cartoon Metering Mode options : average,spot,backlit,matrix Dynamic Range Compression (DRC) options : off,low,med,high Preview parameter commands -gs, --glscene : GL scene square,teapot,mirror,yuv,sobel,vcsm_square -gw, --glwin : GL window settings <'x,y,w,h'>
Beispiele:
Bildaufnahme (höchste Auflösung) nach 2 Sekunden und Speicherung als image.jpg:
raspistill -t 2000 -o image.jpg
Bildaufnahme mit anderer Auflösung:
raspistill -t 2000 -o image.jpg -w 640 -h 480
Bildaufnahme mit verringerter Qualität um Dateigröße zu reduzieren:
raspistill -t 2000 -o image.jpg -q 5
Vorschau auf den Koordinaten 100, 100 mit einer Breite von 300 und Höhe von 200 Pixeln:
raspistill -t 2000 -o image.jpg -p 100,100,300,200
Vorschau vollständig deaktivieren:
raspistill -t 2000 -o image.jpg -n
Speichern Sie das Bild als png-Datei (verlustfreie Komprimierung, aber langsamer
als JPEG). Beachten Sie, dass der Dateinamensuffix ignoriert wird, wenn
sie die Bildcodierung auswählen:
raspistill -t 2000 -o image.png –e png
Fügen Sie dem JPEG einige EXIF-Informationen hinzu. Hier wird das Artist-Tag auf Mooncake gesetzt und die GPS-Höhe auf 123,5 m:
raspistill -t 2000 -o image.jpg -x IFDO.Artist=Mooncake -x GPS.GPSAltitude=1235/10
Setzen von Prägestil-Bildeffekt:
raspistill -t 2000 -o image.jpg -ifx emboss
Setzen Sie die U- und V-Kanäle des YUV-Bildes auf bestimmte Werte (128: 128 erzeugt ein Graustufenbild):
raspistill -t 2000 -o image.jpg -cfx 128:128
Vorschau nur für zwei Sekunden ausführen, kein gespeichertes Bild:
raspistill -t 2000
Nehmen Sie Zeitraffer Bilder auf, eins alle 10 Sekunden für 10 Minuten (10
Minuten = 600000ms), genannt image_num_1_today.jpg,
image_num_2_today.jpg usw.:
raspistill -t 600000 -tl 10000 -o image_num_%d_today.jpg
Bildaufnahme und an stdout senden:
raspistill -t 2000 -o -
Bildaufnahme und Bilddaten in Datei senden:
raspistill -t 2000 -o - > my_file.jpg
raspivid
Kommandoübersicht:
pi@raspberrypi:~ $ raspivid -? Display camera output to display, and optionally saves an H264 capture at requested bitrate usage: raspivid [options] Image parameter commands -?, --help : This help information -w, --width : Set image width <size>. Default 1920 -h, --height : Set image height <size>. Default 1080 -b, --bitrate : Set bitrate. Use bits per second (e.g. 10MBits/s would be -b 10000000) -o, --output : Output filename <filename> (to write to stdout, use '-o -'). Connect to a remote IPv4 host (e.g. tcp://192.168.1.2:1234, udp://192.168.1.2:1234) To listen on a TCP port (IPv4) and wait for an incoming connection use -l (e.g. raspivid -l -o tcp://0.0.0.0:3333 -> bind to all network interfaces, raspivid -l -o tcp://192.168.1.1:3333 -> bind to a certain local IPv4) -v, --verbose : Output verbose information during run -t, --timeout : Time (in ms) to capture for. If not specified, set to 5s. Zero to disable -d, --demo : Run a demo mode (cycle through range of camera options, no capture) -fps, --framerate : Specify the frames per second to record -e, --penc : Display preview image *after* encoding (shows compression artifacts) -g, --intra : Specify the intra refresh period (key frame rate/GoP size). Zero to produce an initial I-frame and then just P-frames. -pf, --profile : Specify H264 profile to use for encoding -td, --timed : Cycle between capture and pause. -cycle on,off where on is record time and off is pause time in ms -s, --signal : Cycle between capture and pause on Signal -k, --keypress : Cycle between capture and pause on ENTER -i, --initial : Initial state. Use 'record' or 'pause'. Default 'record' -qp, --qp : Quantisation parameter. Use approximately 10-40. Default 0 (off) -ih, --inline : Insert inline headers (SPS, PPS) to stream -sg, --segment : Segment output file in to multiple files at specified interval <ms> -wr, --wrap : In segment mode, wrap any numbered filename back to 1 when reach number -sn, --start : In segment mode, start with specified segment number -sp, --split : In wait mode, create new output file for each start event -c, --circular : Run encoded data through circular buffer until triggered then save -x, --vectors : Output filename <filename> for inline motion vectors -cs, --camselect : Select camera <number>. Default 0 -set, --settings : Retrieve camera settings and write to stdout -md, --mode : Force sensor mode. 0=auto. See docs for other modes available -if, --irefresh : Set intra refresh type -fl, --flush : Flush buffers in order to decrease latency -pts, --save-pts : Save Timestamps to file for mkvmerge -cd, --codec : Specify the codec to use - H264 (default) or MJPEG -lev, --level : Specify H264 level to use for encoding -r, --raw : Output filename <filename> for raw video -rf, --raw-format : Specify output format for raw video. Default is yuv -l, --listen : Listen on a TCP socket H264 Profile options : baseline,main,high H264 Level options : 4,4.1,4.2 H264 Intra refresh options : cyclic,adaptive,both,cyclicrows Raw output format options : yuv,rgb,gray Preview parameter commands -p, --preview : Preview window settings <'x,y,w,h'> -f, --fullscreen : Fullscreen preview mode -op, --opacity : Preview window opacity (0-255) -n, --nopreview : Do not display a preview window Image parameter commands -sh, --sharpness : Set image sharpness (-100 to 100) -co, --contrast : Set image contrast (-100 to 100) -br, --brightness : Set image brightness (0 to 100) -sa, --saturation : Set image saturation (-100 to 100) -ISO, --ISO : Set capture ISO -vs, --vstab : Turn on video stabilisation -ev, --ev : Set EV compensation - steps of 1/6 stop -ex, --exposure : Set exposure mode (see Notes) -awb, --awb : Set AWB mode (see Notes) -ifx, --imxfx : Set image effect (see Notes) -cfx, --colfx : Set colour effect (U:V) -mm, --metering : Set metering mode (see Notes) -rot, --rotation : Set image rotation (0-359) -hf, --hflip : Set horizontal flip -vf, --vflip : Set vertical flip -roi, --roi : Set region of interest (x,y,w,d as normalised coordinates [0.0-1.0]) -ss, --shutter : Set shutter speed in microseconds -awbg, --awbgains : Set AWB gains - AWB mode must be off -drc, --drc : Set DRC Level (see Notes) -st, --stats : Force recomputation of statistics on stills capture pass -a, --annotate : Enable/Set annotate flags or text -3d, --stereo : Select stereoscopic mode -dec, --decimate : Half width/height of stereo image -3dswap, --3dswap : Swap camera order for stereoscopic -ae, --annotateex : Set extra annotation parameters (text size, text colour(hex YUV), bg colour(hex YUV)) Notes Exposure mode options : off,auto,night,nightpreview,backlight,spotlight,sports,snow,beach,verylong,fixedfps,antishake,fireworks AWB mode options : off,auto,sun,cloud,shade,tungsten,fluorescent,incandescent,flash,horizon Image Effect mode options : none,negative,solarise,sketch,denoise,emboss,oilpaint,hatch,gpen,pastel,watercolour,film,blur,saturation,colourswap,washedout,posterise,colourpoint,colourbalance,cartoon Metering Mode options : average,spot,backlit,matrix Dynamic Range Compression (DRC) options : off,low,med,high
Beispiele:
Videoaufnahme (höchste Auflösung) für 5 Sekunden und Speicherung als video.h264:
raspivid -t 5000 -o video.h264
Videoaufnahme mit einer bestimmten Bitrate (3.5MBits/s):
raspivid -t 5000 -o video.h264 -b 3500000
Videoaufnahme mit einer bestimmten Framerate (5fps):
raspivid -t 5000 -o video.h264 -fps 5
Kodiere einen 5 Sekunden Kamerastream und sende Bilddaten an stdout:
raspivid -t 5000 -o -
Kodiere einen 5 Sekunden Kamerastream und sende Bilddaten in Datei:
raspivid -t 5000 -o - > my_file.h264
Video4Linux2
Viele Linux-Programme benötigen das Gerät /dev/video0 um auf die Kamera zugreifen zu können. Früher war der v4l2-Treiber in Raspbian nicht enthalten und musste nachträglich manuell installiert werden. Der Video4Linux2 Treiber ist jetzt bereits in Raspbian enthalten. Um das Gerät /dev/video zu aktivieren geben Sie folgendes ein:
sudo modprobe v4l2_common sudo modprobe bcm2835-v4l2
Die Module können in die Datei /etc/modules eingetragen werden, damit das Kameramodul auch nach einem Neustart wieder als Video-Device erkannt wird:
echo "v4l2_common" | sudo tee -a /etc/modules echo "bcm2835-v4l2" | sudo tee -a /etc/modules
Ob das Device /dev/video0 verfügbar ist testen wir mit:
pi@raspberrypi:~ $ ls /dev/video* /dev/video0
Kommandoübersicht:
pi@raspberrypi:~ $ v4l2-ctl --help General/Common options: --all display all information available -C, --get-ctrl=<ctrl>[,<ctrl>...] get the value of the controls [VIDIOC_G_EXT_CTRLS] -c, --set-ctrl=<ctrl>=<val>[,<ctrl>=<val>...] set the value of the controls [VIDIOC_S_EXT_CTRLS] -D, --info show driver info [VIDIOC_QUERYCAP] -d, --device=<dev> use device <dev> instead of /dev/video0 if <dev> starts with a digit, then /dev/video<dev> is used -e, --out-device=<dev> use device <dev> for output streams instead of the default device as set with --device if <dev> starts with a digit, then /dev/video<dev> is used -h, --help display this help message --help-all all options --help-io input/output options --help-misc miscellaneous options --help-overlay overlay format options --help-sdr SDR format options --help-selection crop/selection options --help-stds standards and other video timings options --help-streaming streaming options --help-tuner tuner/modulator options --help-vbi VBI format options --help-vidcap video capture format options --help-vidout vidout output format options --help-edid edid handling options -k, --concise be more concise if possible. -l, --list-ctrls display all controls and their values [VIDIOC_QUERYCTRL] -L, --list-ctrls-menus display all controls and their menus [VIDIOC_QUERYMENU] -r, --subset=<ctrl>[,<offset>,<size>]+ the subset of the N-dimensional array to get/set for control <ctrl>, for every dimension an (<offset>, <size>) tuple is given. -w, --wrapper use the libv4l2 wrapper library. --list-devices list all v4l devices --log-status log the board status in the kernel log [VIDIOC_LOG_STATUS] --get-priority query the current access priority [VIDIOC_G_PRIORITY] --set-priority=<prio> set the new access priority [VIDIOC_S_PRIORITY] <prio> is 1 (background), 2 (interactive) or 3 (record) --silent only set the result code, do not print any messages --sleep=<secs> sleep <secs>, call QUERYCAP and close the file handle --verbose turn on verbose ioctl status reporting
Beispiele:
Vorschaufenster kontrollieren:
v4l2-ctl --overlay=1 # einschalten
v4l2-ctl --overlay=0 # ausschalten
Video aufnehmen:
v4l2-ctl --set-fmt-video=width=1920,height=1088,pixelformat=4
v4l2-ctl --stream-mmap=3 --stream-count=100 --stream-to=somefile.264
Bild aufnehmen:
v4l2-ctl --set-fmt-video=width=2592,height=1944,pixelformat=3
v4l2-ctl --stream-mmap=3 --stream-count=1 --stream-to=somefile.jpg
Video Bitrate setzen:
v4l2-ctl --set-ctrl video_bitrate=10000000
Unterstützte Formate anzeigen:
v4l2-ctl --list-formats
Beispielausgabe:
pi@raspberrypi:~ $ v4l2-ctl --list-formats ioctl: VIDIOC_ENUM_FMT Index : 0 Type : Video Capture Pixel Format: 'YU12' Name : Planar YUV 4:2:0 Index : 1 Type : Video Capture Pixel Format: 'YUYV' Name : YUYV 4:2:2 Index : 2 Type : Video Capture Pixel Format: 'RGB3' Name : 24-bit RGB 8-8-8 Index : 3 Type : Video Capture Pixel Format: 'JPEG' (compressed) Name : JFIF JPEG Index : 4 Type : Video Capture Pixel Format: 'H264' (compressed) Name : H.264 Index : 5 Type : Video Capture Pixel Format: 'MJPG' (compressed) Name : Motion-JPEG Index : 6 Type : Video Capture Pixel Format: 'YVYU' Name : YVYU 4:2:2 Index : 7 Type : Video Capture Pixel Format: 'VYUY' Name : VYUY 4:2:2 Index : 8 Type : Video Capture Pixel Format: 'UYVY' Name : UYVY 4:2:2 Index : 9 Type : Video Capture Pixel Format: 'NV12' Name : Y/CbCr 4:2:0 Index : 10 Type : Video Capture Pixel Format: 'BGR3' Name : 24-bit BGR 8-8-8 Index : 11 Type : Video Capture Pixel Format: 'YV12' Name : Planar YVU 4:2:0 Index : 12 Type : Video Capture Pixel Format: 'NV21' Name : Y/CrCb 4:2:0 Index : 13 Type : Video Capture Pixel Format: 'BGR4' Name : 32-bit BGRA/X 8-8-8-8
Problembehebung:
- Error: Failed to open video device /dev/video0: No such file or directory
Das Kernelmodul für die Kamera wurde nicht geladen. Damit /dev/video0 erreichbar ist geben Sie folgendes ein:
sudo modprobe v4l2_common sudo modprobe bcm2835-v4l2
- Error : raspistill/raspivid not found.
Führen Sie ein das Update / Upgrade aus:
sudo apt update sudo apt upgrade
- Error : ENOMEM displayed.
Prüfen Sie nochmals alle Verbindungen des Flachbandkabels.
- Error : ENOSPC displayed.
Geben Sie mehr Speicher für die GPU frei (min. 128 MB)