<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.stereopi.com/app.php/feed/topic/857" />

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2021-12-16T12:09:28+00:00</updated>

	<author><name><![CDATA[StereoPi Forum]]></name></author>
	<id>https://forum.stereopi.com/app.php/feed/topic/857</id>

		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2021-12-16T12:09:28+00:00</updated>

		<published>2021-12-16T12:09:28+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2992#p2992</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2992#p2992"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2992#p2992"><![CDATA[
Hello Stéphane,<br>To start with, PiCamera v1 was not developed for a few years, and RPF fixes the major bugs. PiCamera 2 is coming according to <a href="https://www.raspberrypi.com/news/new-old-functionality-with-raspberry-pi-os-legacy/#comment-1568529" class="postlink">Gordon's comment here</a>. So the only way to go for us is to find the issue and fix it ourselves.<br><br>Since raspistill works fine, the issue you are faced with is the Python memory issue. I remember <a href="https://forum.stereopi.com/viewtopic.php?p=1605&amp;sid=72a491729790f37a7d2345a0db1354f8#p1605" class="postlink">the row number to fix</a> is changing from release to release, but I hope you've selected the correct one. As a workaround, I'd try to use multiplication nit by 2 (*2 in the mentioned code) but by a bigger value.<br><br>I'm also curious why you need to work with such huge images using Python. It is really slow on the real-time operations with this resolution.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Dec 16, 2021 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[reds71]]></name></author>
		<updated>2021-12-15T22:57:25+00:00</updated>

		<published>2021-12-15T22:57:25+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2991#p2991</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2991#p2991"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2991#p2991"><![CDATA[
Hi,<br><br>I tried the stereoPi v2 with two V2 cameras, using <em class="text-italics">sensor_mode</em> '2' (3280x2464) 2fps with 512Mb of GPU mem, the <em class="text-italics">camera.py</em> fixes and I get :<br>"<em class="text-italics">picamera.exc.PiCameraMMALError: Failed to enable component: Out of resources</em>". BTW, <em class="text-italics">raspistill </em>works fine...<br><br>Did I hit a hard limit? Is <a href="https://github.com/waveform80/picamera/issues/608" class="postlink">https://github.com/waveform80/picamera/issues/608</a> being still open meaning that the RPi Fundation definitely abandoned the PiCamera libray support?<br><br>BR,<br><br>Stéphane<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1022">reds71</a> — Wed Dec 15, 2021 10:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jlurban@berkeley.edu]]></name></author>
		<updated>2020-07-13T01:45:22+00:00</updated>

		<published>2020-07-13T01:45:22+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2165#p2165</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2165#p2165"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2165#p2165"><![CDATA[
I think for now I will just lower the resolution. <br><br>If there is a way to get full resolution I'd definitely be interested, but I realize that I am probably misusing the stereopi too. If there is way for this to work with the stereopi that would be awesome. I'll look into the Jetson Nano for later, but right now I think I can get by without the full resolution for a bit.<br><br>Either way, still very happy with the stereopi! It is a lot of fun to work with and I'm excited to try out some new projects with it including the HQ cameras. The pictures on twitter looks awesome Eugene!<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=489">jlurban@berkeley.edu</a> — Mon Jul 13, 2020 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-07-09T21:26:13+00:00</updated>

		<published>2020-07-09T21:26:13+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2154#p2154</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2154#p2154"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2154#p2154"><![CDATA[
Pascalfaust, I put some photos of my current idea in <a href="https://twitter.com/StereoPi/status/1276463662274711552?s=20" class="postlink">this tweet</a>. Will test the new revision of this HQ housing in a few days <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_smile.gif" width="15" height="17" alt=":-)" title="Smile"><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Jul 09, 2020 9:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pascalfust]]></name></author>
		<updated>2020-07-09T21:07:13+00:00</updated>

		<published>2020-07-09T21:07:13+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2153#p2153</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2153#p2153"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2153#p2153"><![CDATA[
Hi Eugene,<br>to be honest, I am "misusing" the StereoPi in a certain way, as I primarily want to capture still pictures with two cameras at frames rate of min 1fps. As such, I am not running after stereoscopic analyses but "simple" continuous, full resolution capture (without preview) of pics with two cameras.  <br>As such, I wouldn't dare to state that the StereoPi is showing design flaws, just probably not adapted to my specific requirements. <br><br>Interesting to hear about the application of the new Raspberry HQ cameras. Keep me updated about your results, as I've got also two waiting here, currently <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_smile.gif" width="15" height="17" alt=":-)" title="Smile"><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=336">pascalfust</a> — Thu Jul 09, 2020 9:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-07-09T20:56:47+00:00</updated>

		<published>2020-07-09T20:56:47+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2152#p2152</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2152#p2152"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2152#p2152"><![CDATA[
A few days ago I did a solution for the calibration of the FullHD images (3840x1088) with a couple of new HQ cameras. I used video mode capture and did a 3x scaling down of captured images for the preview window. I used 10 fps, it works fine, but a recording of the image takes some time. The average file size was 6Mb (as I used PNG for the lossless compression, instead of JPG). JPG is encoded by GPU, but PNG is by the main ARM kernel. I also increased GPU memory to 384 Mb in config.txt<br><br>Jlurban, I will try to test your code for a full-resolution solution on my setup (tomorrow or the day after tomorrow).<br><br>Pascalfaust, the best tool is the tool that fits your needs! Jetson Nano is a powerful thing, and it is bigger in all aspects (size, power consumption, and computational power). To say the truth, I did not expect that StereoPi will be used for capturing of stereoscopic image series at the sensor's full resolutions. So your and Jlurban's posts here really surprised me! <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_smile.gif" width="15" height="17" alt=":-)" title="Smile"><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Jul 09, 2020 8:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pascalfust]]></name></author>
		<updated>2020-07-09T18:48:15+00:00</updated>

		<published>2020-07-09T18:48:15+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2150#p2150</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2150#p2150"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2150#p2150"><![CDATA[
Without checking your code, I can confirm that I experienced similar issues. As you described, I experienced regularly freezing of the compute module with a camera seemingly active (LED lit). One distince difference to your case is, that I pushed the frame rate up as much as I could. However, I acknowledge similar issues at lower frame rates as well. <br>I tried with high speed SD cards (which proved efficient in other embedded solutions), but couldn't fix it. I furthermore installed a heat sink and a fan without any significant  improvement. <br>As I am looking for a reliable solution, I (unfortunately) had to switch to a Jetson Nano based approach. While consuming a bit more power, it proved more reliable, and even allowed parallel capture of highest resolution pics through two Raspberry Pi camera modules (V2) including GPS reading at frame rates of 3-5 fps. <br><br>Sorry for not providing a (better) solution for that problem...<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=336">pascalfust</a> — Thu Jul 09, 2020 6:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jlurban@berkeley.edu]]></name></author>
		<updated>2020-07-09T16:52:13+00:00</updated>

		<published>2020-07-09T16:52:13+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2149#p2149</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2149#p2149"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2149#p2149"><![CDATA[
It seems I've hit another issue with the full resolution. I have tried collecting images for the chess board calibration. I modified the 1_tmp.py script (see code below) to take successive images like in the second script of the tutorial (collecting the chess board images). The script works for a seemingly random number of images and then stops responding (i.e. Ctrl + C doesn't work) but appears to remain powered (LEDs still on, no connection lost on SSH). Is this a known bug and is there a work around? Is there a chance I'm hitting a hardware limitation like overheating?<br><br>I think my frame rate is very low 1 frame every ~7 seconds.<br><br><strong class="text-strong">Hardware configuration:</strong><br>-2x V2 camera module<br>-RPi 8Gb 3+ Compute module<br>- Power through pins<br>- Connection and operation through Ethernet cable with SSH<br><br><div class="codebox"><p>Code: </p><pre><code>import picamerafrom picamera import PiCameraimport timeimport cv2import numpy as npimport os# Camera settimgscam_width = 5184cam_height = 1944# Initialize the cameracamera = PiCamera(stereo_mode='side-by-side',stereo_decimate=False)camera.resolution=(cam_width, cam_height)camera.hflip = Truetime.sleep (2)print("starting....")for i in range(30):    print( "Image No. " + str(i))    for t in range(5):        print(str(5-t))        time.sleep(1)    print('Cheese!')        filename = "./calibData/chess_"+str(i)+"_"+str(cam_width)+"x"+str(cam_height)+".jpg"    time.sleep(2)    camera.capture (filename)</code></pre></div><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=489">jlurban@berkeley.edu</a> — Thu Jul 09, 2020 4:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pascalfust]]></name></author>
		<updated>2020-07-01T17:25:18+00:00</updated>

		<published>2020-07-01T17:25:18+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2121#p2121</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2121#p2121"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2121#p2121"><![CDATA[
Good to hear - congrats and lot of success with your  project<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=336">pascalfust</a> — Wed Jul 01, 2020 5:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-07-01T16:59:23+00:00</updated>

		<published>2020-07-01T16:59:23+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2120#p2120</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2120#p2120"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2120#p2120"><![CDATA[
Whoa, great! Congratulations! <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_smile.gif" width="15" height="17" alt=":-)" title="Smile"><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Wed Jul 01, 2020 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jlurban@berkeley.edu]]></name></author>
		<updated>2020-07-01T16:56:11+00:00</updated>

		<published>2020-07-01T16:56:11+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2119#p2119</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2119#p2119"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2119#p2119"><![CDATA[
Switching to a 2A power supply fixed it! Thank you Eugene and Pascalfust for the quick responses!<br><ol style="list-style-type:decimal"><li> I modified my picamera.py adding the `*1`</li><li> 1_test.py works</li><li> I'm using a fresh Raspberry OS and OpenCV installed on it</li></ol><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=489">jlurban@berkeley.edu</a> — Wed Jul 01, 2020 4:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-07-01T16:32:03+00:00</updated>

		<published>2020-07-01T16:32:03+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2118#p2118</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2118#p2118"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2118#p2118"><![CDATA[
<blockquote class="uncited"><div>The USB ports offen lack power, sometimes limiting to 2 amps. The stereopi, however, might ask for mor than that</div></blockquote>Actually, USB 2.0 is limited by 0.5A (500 mA). But I agree, to catch up that problem we need at least to exclude the power issue.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Wed Jul 01, 2020 4:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pascalfust]]></name></author>
		<updated>2020-07-01T16:30:14+00:00</updated>

		<published>2020-07-01T16:30:14+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2117#p2117</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2117#p2117"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2117#p2117"><![CDATA[
The USB ports offen lack power, sometimes limiting to 2 amps. The stereopi, however, might ask for mor than that<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=336">pascalfust</a> — Wed Jul 01, 2020 4:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-07-01T16:28:07+00:00</updated>

		<published>2020-07-01T16:28:07+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2116#p2116</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2116#p2116"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2116#p2116"><![CDATA[
Jlurban, I put an update to my previous answer. Please take a look <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_smile.gif" width="15" height="17" alt=":-)" title="Smile"><br><strong class="text-strong">UPD&gt;</strong> As for your power source - please try to provide power from the dedicated power adaptor, like a phone or tablet charger, able to provide at least 2A current.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Wed Jul 01, 2020 4:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jlurban@berkeley.edu]]></name></author>
		<updated>2020-07-01T16:24:34+00:00</updated>

		<published>2020-07-01T16:24:34+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2115#p2115</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2115#p2115"/>
		<title type="html"><![CDATA[Re: Set max resolution]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2115#p2115"><![CDATA[
Hi Eugene,<br><br>Right now I am using the 1_tmp.py script that you provided earlier in this thread without any modifications.<br><br>I also changed the settings in the `/boot/config.txt` file and the `/usr/..../picamera.py` file.<br><br>A small FPS is perfectly acceptable and photo capture would be preferred. Ideally I could get a full-resolution raw image stereo pair. <br><br>In terms of a power source I am using the pins powered through a USB power cable plugged into a powered Computer Dock and USB hub for my laptop. If you suggest another way please let me know.<br><br>I'll try disabling all GUI and imshow features and see if that helps.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=489">jlurban@berkeley.edu</a> — Wed Jul 01, 2020 4:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
