{"id":262,"date":"2015-01-06T16:50:54","date_gmt":"2015-01-06T15:50:54","guid":{"rendered":"http:\/\/chriskrz.selfhost.bz\/?p=262"},"modified":"2020-03-22T15:10:18","modified_gmt":"2020-03-22T14:10:18","slug":"raspberry-pi-camera-module-roter-fleck-in-der-bildmitte","status":"publish","type":"post","link":"https:\/\/www.rustimation.eu\/index.php\/raspberry-pi-camera-module-roter-fleck-in-der-bildmitte\/","title":{"rendered":"Raspberry Pi Camera Module &#8211; Roter Fleck in der Bildmitte"},"content":{"rendered":"<h3>Echt nervig!<\/h3>\n<p>Da hat man mit viel M\u00fche mit dem Camera Module seine Live Cam oder Webcam zusammengebastelt und nach einem Firmwareupdate zeigt das Kameramodul auf einmal einen roten Fleck in der Mitte, vor allem, wenn ein hoher Wei\u00dfanteil im Bild zu sehen ist.<\/p>\n<p><!--more-->Gut zu sehen bei dieser Aufnahme hier:<a href=\"http:\/\/www.rustimation.eu\/wordpress\/wp-content\/uploads\/2015\/01\/20141231170003.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-263\" src=\"http:\/\/www.rustimation.eu\/wordpress\/wp-content\/uploads\/2015\/01\/20141231170003-1024x711.jpg\" alt=\"20141231170003\" width=\"604\" height=\"419\" \/><\/a><\/p>\n<p>Die rote Verf\u00e4rbung kommt nicht von der spezifischen Aufnahmesituation, sondern wird von der Kamerafirmware hineingerechnet.<\/p>\n<p>Nach etwas Recherche hat sich herausgestellt, dass das Problem ca. seit M\u00e4rz 2014 bekannt ist: <a href=\"http:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=43&amp;t=84416\">http:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=43&amp;t=84416<\/a><\/p>\n<h2>Fix f\u00fcr raspistill<\/h2>\n<p>Der ausgesprochen engagierte User 6by9 (wohl ein ex-Broadcom Engineer) hat f\u00fcr das Programm raspistill einen Fix bereitgestellt: ruft man <code>raspistill <\/code>mit dem Parameter <code>-st<\/code> auf, wird ein zus\u00e4tzlicher Analyselauf gestartet, der den Wei\u00dfabgleich korrigiert. Ein kompletter, einfach gehaltener Aufruf s\u00e4he demnach wie folgt aus:<\/p>\n<pre class=\"lang:sh decode:1 inline:1 \" >raspistill -st -o testbild.jpg<\/pre>\n<p>Die neue raspistill Version wird im Rahmen des \u00fcblichen Betriebssystemupdates geladen:<\/p>\n<pre class=\"lang:sh decode:true\">sudo apt-get update\r\nsudo apt-get upgrade<\/pre>\n<h2>Fix f\u00fcr Python picamera Library<\/h2>\n<p>Bis vor Kurzem bestand das Problem f\u00fcr Nutzer der Python <code>picamera <\/code>library weiter. Seit Anfang 2015 gibt es endlich die Version 1.9, welche ebenfalls eine Korrektur bereitstellt:<\/p>\n<p>Installiert wird das via <a href=\"https:\/\/github.com\/waveform80\/picamera\">Github <\/a>oder einfach mit dem Raspbian Update:<\/p>\n<pre class=\"lang:sh decode:true\">sudo apt-get update\r\nsudo apt-get upgrade<\/pre>\n<p>Verwendet wird der neue Parameter <code>still_stats<\/code> wie folgt:<\/p>\n<pre class=\"expand:true lang:python mark:4 decode:true \">import picamera\r\nwith picamera.PiCamera() as camera:\r\n    camera.resolution = (2592, 1944) # optional, Aufl\u00f6sung nach Wunsch\r\n    camera.still_stats = 'true'      # &lt;--- Das ist der neue Parameter\r\n    camera.start_preview()           # macht immer Sinn, \r\n    #Camera warm-up time             # die Kamera warmlaufen zu lassen\r\n    time.sleep(2)                    # auch im headless Betrieb\r\n    camera.capture('testbild.jpg')   # Kamera Output wegspeichern\r\n<\/pre>\n<p>Weitere Infos zur picamera Library gibt es hier: <a href=\"http:\/\/picamera.readthedocs.org\/en\/release-1.9\/\">http:\/\/picamera.readthedocs.org\/en\/release-1.9\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Echt nervig! Da hat man mit viel M\u00fche mit dem Camera Module seine Live Cam oder Webcam zusammengebastelt und nach einem Firmwareupdate zeigt das Kameramodul auf einmal einen roten Fleck in der Mitte, vor allem, wenn ein hoher Wei\u00dfanteil im Bild zu sehen ist.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,9,10],"tags":[15,22,28,34,36,40],"class_list":["post-262","post","type-post","status-publish","format-standard","hentry","category-kamera","category-python","category-raspberry-pi","tag-bug","tag-farbfehler","tag-kamera","tag-python-2","tag-raspberry-pi","tag-roter-fleck"],"_links":{"self":[{"href":"https:\/\/www.rustimation.eu\/index.php\/wp-json\/wp\/v2\/posts\/262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rustimation.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rustimation.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rustimation.eu\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rustimation.eu\/index.php\/wp-json\/wp\/v2\/comments?post=262"}],"version-history":[{"count":1,"href":"https:\/\/www.rustimation.eu\/index.php\/wp-json\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":1251,"href":"https:\/\/www.rustimation.eu\/index.php\/wp-json\/wp\/v2\/posts\/262\/revisions\/1251"}],"wp:attachment":[{"href":"https:\/\/www.rustimation.eu\/index.php\/wp-json\/wp\/v2\/media?parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rustimation.eu\/index.php\/wp-json\/wp\/v2\/categories?post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rustimation.eu\/index.php\/wp-json\/wp\/v2\/tags?post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}