<?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/forum/9" />

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2025-06-16T17:04:41+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2025-06-16T17:04:41+00:00</updated>

		<published>2025-06-16T17:04:41+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3531#p3531</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3531#p3531"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: Images swapped]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3531#p3531"><![CDATA[
Hi NMO,<br><br>Due to the difference on the ribbon cable connector position on the camera, you have to "swap" cameras in settings according to your model. <br><br>To do this in OpenCV you should set "letf" and "right" arrays appropriately. In script 3 you can see <a href="https://github.com/realizator/stereopi-fisheye-robot/blob/114776178d1e62ad8809c0260d3360b536ca2b94/3_pairs_cut.py#L64-L65" class="postlink">these lines here</a>.<br><br>In SLP you can just set a checkbox "swap cameras" in settings.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Mon Jun 16, 2025 5:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NMO]]></name></author>
		<updated>2025-06-14T12:19:00+00:00</updated>

		<published>2025-06-14T12:19:00+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3530#p3530</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3530#p3530"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Images swapped]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3530#p3530"><![CDATA[
I just have assembled my StereoPi cam. I tried the 1_test.py and noticed that the images are swapped. The picture from the left cam is shown on the right side and vice versa. Is that normal?<br><br>EDIT: I noticed that this happens on SLP2 as well.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1401">NMO</a> — Sat Jun 14, 2025 12:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neaveeng]]></name></author>
		<updated>2022-10-19T22:31:06+00:00</updated>

		<published>2022-10-19T22:31:06+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3305#p3305</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3305#p3305"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: raspbian bullseye and stereomode]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3305#p3305"><![CDATA[
OMFG I'm an idiot! It turns out that setting the stamp on the image messages was somehow breaking everything!<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=391">neaveeng</a> — Wed Oct 19, 2022 10:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neaveeng]]></name></author>
		<updated>2022-10-17T10:56:38+00:00</updated>

		<published>2022-10-17T10:56:38+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3304#p3304</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3304#p3304"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: raspbian bullseye and stereomode]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3304#p3304"><![CDATA[
I'm guessing for the side by side feature in picamera it did something under the hood to sync them that it hidden in the broadcom stack somewhere then?<br><br>These camera modules are the ov5647 waveshare g type, I don't suppose you know of a guide for doing the hack on these do you please as I've not been able to find one and wouldn't risk trying to figure it out myself. It looks like arducam mod these with the same hack but I can find any details there either <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_sad.gif" width="15" height="17" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=391">neaveeng</a> — Mon Oct 17, 2022 10:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2022-10-17T09:29:07+00:00</updated>

		<published>2022-10-17T09:29:07+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3300#p3300</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3300#p3300"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: Libcamera Dual Cam Support]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3300#p3300"><![CDATA[
Wow, this post looks interesting! Thank you for sharing!<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Mon Oct 17, 2022 9:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2022-10-17T09:26:55+00:00</updated>

		<published>2022-10-17T09:26:55+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3299#p3299</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3299#p3299"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: raspbian bullseye and stereomode]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3299#p3299"><![CDATA[
Hey neaveeng,<br><br>You might have two issues under the hood here. The first is a hardware unsync, and the second is a software unsync due to independent thread processing for each image.<br><br>As for the first issue - it depends on which cameras you use. For HQ cams, this can be done relatively quickly (but on the old MMAL subsystem only) using their hardware sync feature. If you have V1/V2 cameras, the simplest way to hardware sync them is to use an oscillator trick. Each camera module has an oscillator soldered, so you need to unsolder one on the 1st camera and wire it to the oscillator from the 2nd camera. Yup, that's dirty, but this is the only way for the old V1/V2 modules.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Mon Oct 17, 2022 9:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neaveeng]]></name></author>
		<updated>2022-10-16T23:31:32+00:00</updated>

		<published>2022-10-16T23:31:32+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3297#p3297</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3297#p3297"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Libcamera Dual Cam Support]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3297#p3297"><![CDATA[
I've just come across this thread in which there are lots of details regarding adding dual cam support to libcamera. I don't have the brain power to understand it right now but thought I'd share here before I forget.<br><br><a href="https://forums.raspberrypi.com/viewtopic.php?t=336508" class="postlink">https://forums.raspberrypi.com/viewtopic.php?t=336508</a><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=391">neaveeng</a> — Sun Oct 16, 2022 11:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neaveeng]]></name></author>
		<updated>2022-10-16T21:32:51+00:00</updated>

		<published>2022-10-16T21:32:51+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3296#p3296</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3296#p3296"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: raspbian bullseye and stereomode]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3296#p3296"><![CDATA[
I've taken a different tack and I'm trying to use CV2 to publish images from left and right, I'm using threading to run the two publishers in parallel and it's publishing fine. The problem is ROS is saying the images aren't sync'd. Even setting approximate sync it doesn't work.<br><br><a href="https://github.com/NeaveEng/stereocam_node/blob/main/src/stereo_node.py" class="postlink">https://github.com/NeaveEng/stereocam_n ... eo_node.py</a><br><br>Is there any way to get sync'd images using open cv like this? You've mentioned something about sync'ing in hardware, could that work here and if so how do I do that please?<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=391">neaveeng</a> — Sun Oct 16, 2022 9:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neaveeng]]></name></author>
		<updated>2022-09-29T21:43:06+00:00</updated>

		<published>2022-09-29T21:43:06+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3278#p3278</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3278#p3278"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: raspbian bullseye and stereomode]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3278#p3278"><![CDATA[
Cool, I'll do some tinkering too. I can't imagine I'll have better luck than you but not knowing how anything works I may stumble on something by accident! <img alt="🤣" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f923.svg"><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=391">neaveeng</a> — Thu Sep 29, 2022 9:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2022-09-29T18:19:37+00:00</updated>

		<published>2022-09-29T18:19:37+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3276#p3276</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3276#p3276"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: raspbian bullseye and stereomode]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3276#p3276"><![CDATA[
Hey neaveeng,<br><br>Things are moving slowly... I'm still trying to find the combination of picamera1/2 and lib camera to get a stable result.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Sep 29, 2022 6:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neaveeng]]></name></author>
		<updated>2022-09-21T14:34:59+00:00</updated>

		<published>2022-09-21T14:34:59+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3269#p3269</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3269#p3269"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: raspbian bullseye and stereomode]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3269#p3269"><![CDATA[
Any update on the libcamera testing please? I'm really starting to feel the pain of having to remain on the old 32bit OS is all, if there's an example script you could share for capturing simultaneous images on Bullseye 64bit I'd massively appreciate it.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=391">neaveeng</a> — Wed Sep 21, 2022 2:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2022-09-09T18:37:22+00:00</updated>

		<published>2022-09-09T18:37:22+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3253#p3253</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3253#p3253"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: raspbian bullseye and stereomode]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3253#p3253"><![CDATA[
I've played with Picamera 2 today. Well, it's working in some cases, but I wasn't able to get the stable stream from both cams at the same time.<br><br>After digging I localized the issue using on of the simplest examples, and <a href="https://github.com/raspberrypi/picamera2/issues/310" class="postlink">opened an issue on GitHub</a>.<br><br>While they are fixing this, I'm going to play with transferring two videos from libcamera to python script over pipe, with no Picamera/Picamera2 at all. We used this approach in our C++ examples (here is an <a href="https://stereopi.com/blog/opencv-comparing-speed-c-and-python-code-raspberry-pi-stereo-vision" class="postlink">article</a>).<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Fri Sep 09, 2022 6:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2022-09-08T09:10:29+00:00</updated>

		<published>2022-09-08T09:10:29+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3246#p3246</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3246#p3246"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: What metadata is needed for OpenCV to create stereo depth map?]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3246#p3246"><![CDATA[
Stereomaton, thank you for the detailed answer!<br><br>I'd add that as a result of your steps 2 and 3 OpenCV actually ends with a simple triangle calculations, and the idea of this approach is greatly described in this <a href="https://docs.opencv.org/3.4/dd/d53/tutorial_py_depthmap.html" class="postlink">OpenCV guide</a>.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Sep 08, 2022 9:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2022-09-08T08:10:20+00:00</updated>

		<published>2022-09-08T08:10:20+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3242#p3242</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3242#p3242"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: raspbian bullseye and stereomode]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3242#p3242"><![CDATA[
Hi Zoldaten,<br><br>Huh, libcamera is still in the early stage... And the stereoscopic mode activation works another way.<br><br>I can help you with two pieces of information:<br>1. Here is our first experiment of getting two images from two cameras using libcamera: <a href="https://forums.raspberrypi.com/viewtopic.php?p=1965619#p1965619" class="postlink">https://forums.raspberrypi.com/viewtopi ... 9#p1965619</a><br><br>2. As for Picamera2 - by default it has no stereoscopic mode, but here is an answer from the Picamera2 maintainer on RPF website: <a href="https://www.raspberrypi.com/news/a-preview-release-of-the-picamera2-library/#comment-1581093" class="postlink">https://www.raspberrypi.com/news/a-prev ... nt-1581093</a><br><br>I hope this can help.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Sep 08, 2022 8:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2022-09-08T08:06:21+00:00</updated>

		<published>2022-09-08T08:06:21+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3241#p3241</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3241#p3241"/>
		<title type="html"><![CDATA[OpenCV, Python and other image processing • Re: Right Camera Calibration Issues]]></title>

					<category term="OpenCV, Python and other image processing" scheme="https://forum.stereopi.com/viewforum.php?f=9" label="OpenCV, Python and other image processing"/>
		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3241#p3241"><![CDATA[
Hi atrunyan,<br><br>I've spotted your "cutted" pairs looks swapped, i.e. left image is actually a right image.<br>Examples: <br><a href="https://github.com/atrunyan/stereopi_URIL/blob/6b195941a531f2168af4b24e7286cce7dea1c4ac/pairs_land_calib/left_01.png" class="postlink">https://github.com/atrunyan/stereopi_UR ... eft_01.png</a><br><a href="https://github.com/atrunyan/stereopi_URIL/blob/6b195941a531f2168af4b24e7286cce7dea1c4ac/pairs_land_calib/right_01.png" class="postlink">https://github.com/atrunyan/stereopi_UR ... ght_01.png</a><br><br>Could you please check this part of your pair-cutting code?<br><br>Also I can't realize either you are using a wide-angle camera, or the chess-board is not a plane? ( I guess it's a widfe-angle with specific optics...)<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Sep 08, 2022 8:06 am</p><hr />
]]></content>
	</entry>
	</feed>
