<?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/1016" />

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2020-10-01T02:07:55+00:00</updated>

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

		<entry>
		<author><name><![CDATA[tuannm]]></name></author>
		<updated>2020-10-01T02:07:55+00:00</updated>

		<published>2020-10-01T02:07:55+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2276#p2276</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2276#p2276"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2276#p2276"><![CDATA[
hi Realizator,<br><br>It finally works for me and I should accept that the average FPS is very low (~1.5 FPS with 2688x1024).<br>Thank you so much for your support.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=596">tuannm</a> — Thu Oct 01, 2020 2:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-09-30T09:11:19+00:00</updated>

		<published>2020-09-30T09:11:19+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2275#p2275</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2275#p2275"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2275#p2275"><![CDATA[
Hello Tuan,<br>I took a closer look at this issue. PiCamera video subsystem is not designed for the video with a very high resolution, and this caused a problem. I changed "use_video_port" to False, to use still image port, and it works. For the still port GPU does more processing work (like color adjustment, noise reduction, etc.), so you should achieve a relatively small actual FPS. As an example, I took a photo with the resolution, which exceeds your needs (3000x1100), and attached a sample code I used.<br>I also added image resize before showing it to the user, as it takes a lot of resources for Python to visualize this huge picture.<br><br>As we discussed in similar topics, direct capturing of extremely-high resolution images by means of Python is not the optimal way. It is better to use another approach for this task (like capturing by raspivid/raspiyuv and pass it to Python by pipe, for example).<dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://forum.stereopi.com/download/file.php?id=151">capture2.py.zip</a></dt></dl><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Wed Sep 30, 2020 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuannm]]></name></author>
		<updated>2020-09-30T00:33:40+00:00</updated>

		<published>2020-09-30T00:33:40+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2271#p2271</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2271#p2271"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2271#p2271"><![CDATA[
hi Realizator,<br><br>Thank you for your kindly support.<br>But it still didn't work for me. So, please see the short video for this clear issue.<br>Link: <a href="https://drive.google.com/file/d/1zKUkuLG8ScYmMVlG1yLHlFXS37MYe6r0/view?usp=sharing" class="postlink">https://drive.google.com/file/d/1zKUkuL ... sp=sharing</a><br>Even though, I changed cam_width = int((cam_width+63)/64)*64) but it still encoutered the same problem.<br>I don't know why 2560x960 seems to be a limited resolution for my case.<br><br>I hope to receive another solution.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=596">tuannm</a> — Wed Sep 30, 2020 12:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-09-29T15:03:31+00:00</updated>

		<published>2020-09-29T15:03:31+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2268#p2268</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2268#p2268"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2268#p2268"><![CDATA[
Hello Tuan,<br>Solution: use image witdh multiple by 64, but not 32. It should work.<br><br>Explanation: PiCamera capture requirements (for the width multiple of 32) is used for 1 camera. And we have a couple, so buffer should be able to keep a couple of frames, with the width of each multiple to 32.<br><br>If you take a look at your captured image actual resolution, it is 2624x992. It means PiCamera automatically adjust the width to be multiple of 64 (as 2624/64 = 41). And if you are using 2592, it is not multiple of 64 (2592/64 = 40,5).<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Tue Sep 29, 2020 3:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuannm]]></name></author>
		<updated>2020-09-29T02:34:10+00:00</updated>

		<published>2020-09-29T02:34:10+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2267#p2267</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2267#p2267"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2267#p2267"><![CDATA[
hi Realizator,<br><br>Let me send you the capture file that I use to get stereo images with a resolution of 2592x976.<br>Link: <a href="https://drive.google.com/file/d/1MQDAnyPseuwlLrKeU3dkggqGFDB3bvY0/view?usp=sharing" class="postlink">https://drive.google.com/file/d/1MQDAny ... sp=sharing</a><br>I set scale_factor=1, gpu_mem=256, (0 &lt; value.width &lt;= self.MAX_RESOLUTION.width*2) as you suggested in the previous post.<br><br>Thank you.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=596">tuannm</a> — Tue Sep 29, 2020 2:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-09-28T11:22:12+00:00</updated>

		<published>2020-09-28T11:22:12+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2265#p2265</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2265#p2265"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2265#p2265"><![CDATA[
Hello Tuan,<br>Could you please share a code you are using for the image capture? I will try to run it on my device and find an issue.<br>I can suggest that automatic resolution adjustment in the code can cause this issue. The fastest way for me to fix this is to look at your code.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Mon Sep 28, 2020 11:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuannm]]></name></author>
		<updated>2020-09-27T00:26:52+00:00</updated>

		<published>2020-09-27T00:26:52+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2264#p2264</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2264#p2264"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2264#p2264"><![CDATA[
hi stereomaton,<br><br>I have already followed the rule for width and height values. For example width = 2592, height = 976, and the vertical stripes began to appear.<br>But it is fine for a resolution of 2560x960 or less. I expect to get a minimum resolution of 2688x1024 but it did not work.<br><br>I hope to receive your help.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=596">tuannm</a> — Sun Sep 27, 2020 12:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stereomaton]]></name></author>
		<updated>2020-09-27T00:16:56+00:00</updated>

		<published>2020-09-27T00:16:56+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2263#p2263</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2263#p2263"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2263#p2263"><![CDATA[
Someone else had a problem with vertical stripes, and it was related to the resolution used. See <a href="https://forum.stereopi.com/viewtopic.php?p=2057#p2057" class="postlink">https://forum.stereopi.com/viewtopic.php?p=2057#p2057</a><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=101">stereomaton</a> — Sun Sep 27, 2020 12:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuannm]]></name></author>
		<updated>2020-09-26T23:47:39+00:00</updated>

		<published>2020-09-26T23:47:39+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2262#p2262</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2262#p2262"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2262#p2262"><![CDATA[
Hi Realizator,<br><br>I really want to receive your help with another problem.<br>I tried to capture stereo images with a resolution of greater than 2560x960 but it did not work well. As you can see in the attached photo, there is something wrong on the right side of the images.<br>Image Link: <a href="https://drive.google.com/file/d/1kK2mK9XhlyNmeX2Tj4BENTrlj_oTctyZ/view?usp=sharing" class="postlink">https://drive.google.com/file/d/1kK2mK9 ... sp=sharing</a><br>I set scale_factor=1 to get the exact above resolution. And I also set all things similar to your suggestion (in <a href="https://forum.stereopi.com/viewtopic.php?f=9&amp;t=857" class="postlink">https://forum.stereopi.com/viewtopic.php?f=9&amp;t=857</a>).<br><br>When I reduce to 2560x960, it works well but the resolution is quite low for me. I want to increase it a little bit.<br><br>Thank you so much.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=596">tuannm</a> — Sat Sep 26, 2020 11:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuannm]]></name></author>
		<updated>2020-09-20T01:11:02+00:00</updated>

		<published>2020-09-20T01:11:02+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2257#p2257</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2257#p2257"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2257#p2257"><![CDATA[
Hi Realizator,<br>I prefer the second tip and it works well for me.<br>Thank you for your support.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=596">tuannm</a> — Sun Sep 20, 2020 1:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-09-19T13:34:41+00:00</updated>

		<published>2020-09-19T13:34:41+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2256#p2256</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2256#p2256"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2256#p2256"><![CDATA[
Okay, some tips for you:<br><br>1. You can use raspistill for each camera, using a command "raspistill -cs 0 ..." for the first camera, and "raspistill -cs 1" for the second. Please check your system can show both images to be sure your cameras are connected correctly.<br><em class="text-italics">advanced tip</em>: original raspivid can't show a stereoscopic preview, even in -3d mode. But we did a fixed version, which can do this. This fixed version is used in our SLP image. To add a stereoscopic mode you need to add "-fs" key after "raspivid". You can find the fixed binary here in our SLP image: /opt/StereoPi/bin/raspivid<br><br>2. HQ cameras have a bigger resolution, and some new sensor modes. Try to turn on 2nd mode.<br>I.e., before fixes you can see a row like this:<div class="codebox"><p>Code: </p><pre><code>camera = PiCamera(stereo_mode='side-by-side', stereo_decimate=False)</code></pre></div>turn on 2nd sensor mode by adding 'sensor_mode = 2', to have a line like this:<div class="codebox"><p>Code: </p><pre><code>camera = PiCamera(stereo_mode='side-by-side', sensor_mode = 2, stereo_decimate=False)</code></pre></div>3. raspistill and raspivid are extremely optimized C-based applications. You won't be able to get the same speed in Python (I mean a video with the 2028x1128 resolution). For your focus adjustment procedure, I'd recommend you to decrease your resolution to have a higher FPS. And at the moment of taking a picture, you can turn on a higher resolution. This way you will get a smooth preview video for a focus adjustment, and a high-resolution photos.<br><br>If you are curious about the details, take a look at <a href="https://stereopi.com/blog/opencv-comparing-speed-c-and-python-code-raspberry-pi-stereo-vision" class="postlink">this article</a>, where we compared the performance of C++ and Python code for OpenCV.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Sat Sep 19, 2020 1:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuannm]]></name></author>
		<updated>2020-09-19T01:15:14+00:00</updated>

		<published>2020-09-19T01:15:14+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2255#p2255</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2255#p2255"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2255#p2255"><![CDATA[
Hello Realizator,<br><br>I think my issues here are a bit different from the previous topic. Even though I tried with resolution 2028x1128 (or whatever), I got an error like this: <br><br>File "/usr/lib/python3/dist-packages/picamera/camera.py", line 123, in capture, 'Timed out waiting for capture to end'<br>picamera.exc.PiCameraRuntimeError: Timed out waiting for capture to end<br><br>My target is that I actually want to activate the view of two cameras to manually change the focus lens before decide to capture the stereo images. Then, I tend to perform the depth map on the desktop (not on raspberry pi).<br><br>I did that with 1_test.py or 1_tmp.py (according to your advice from the previous topic) but it still was an error like above.<br>By the way, I cannot visualize the focus lens of the two cameras using raspistill command.<br><br>Please help me with code using two HQ cameras, <br>Thank you so much.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=596">tuannm</a> — Sat Sep 19, 2020 1:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-09-18T16:35:30+00:00</updated>

		<published>2020-09-18T16:35:30+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2253#p2253</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2253#p2253"/>
		<title type="html"><![CDATA[Re: Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2253#p2253"><![CDATA[
Hello Tuannm,<br>This issue was discussed <a href="https://forum.stereopi.com/viewtopic.php?f=9&amp;t=857" class="postlink">in this topic</a>.<br>12.3MPix can be captured as a photo, as RPi GPU able to process it. But the OpenCV code works with this as with video by default, and tries to request a lot of images per second. Even for modern phones, 4K is a limit for recording, and you are trying to capture ~8K video with real-time processing. Too many for the Raspberry Pi. <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_smile.gif" width="15" height="17" alt=":-)" title="Smile"><br>Usually for the real-time OpenCV video processing onboard it is better to reduce the camera resolution.<br>But if you wish to get the highest processing quality (i.e. depth map resolution), you can capture 12Mpix photos (like one per 2-3 seconds).<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Fri Sep 18, 2020 4:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tuannm]]></name></author>
		<updated>2020-09-18T08:26:22+00:00</updated>

		<published>2020-09-18T08:26:22+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2251#p2251</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2251#p2251"/>
		<title type="html"><![CDATA[Capture still images from HQ Camera 12.3MP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2251#p2251"><![CDATA[
Hi everyone,<br>I want to capture images using two HQ Cameras 12.3MP but when I use the code from the "stereopi-tutorial" package with 1_test.py file, it did not work. But that code works well for two V1 cameras. <br><br>This is the link of the code: <a href="https://github.com/realizator/stereopi-tutorial/blob/master/1_test.py" class="postlink">https://github.com/realizator/stereopi- ... /1_test.py</a><br><br>So, anyone knows how to modify the code properly, please help me.<br>Thank you guys so much.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=596">tuannm</a> — Fri Sep 18, 2020 8:26 am</p><hr />
]]></content>
	</entry>
	</feed>
