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

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2022-10-19T22:31:06+00:00</updated>

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

		<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[Re: raspbian bullseye and stereomode]]></title>

		
		<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[Re: raspbian bullseye and stereomode]]></title>

		
		<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: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[Re: raspbian bullseye and stereomode]]></title>

		
		<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-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[Re: raspbian bullseye and stereomode]]></title>

		
		<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[Re: raspbian bullseye and stereomode]]></title>

		
		<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[Re: raspbian bullseye and stereomode]]></title>

		
		<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[Re: raspbian bullseye and stereomode]]></title>

		
		<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[Re: raspbian bullseye and stereomode]]></title>

		
		<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-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[Re: raspbian bullseye and stereomode]]></title>

		
		<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[zoldaten]]></name></author>
		<updated>2022-08-15T07:25:04+00:00</updated>

		<published>2022-08-15T07:25:04+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3230#p3230</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3230#p3230"/>
		<title type="html"><![CDATA[raspbian bullseye and stereomode]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3230#p3230"><![CDATA[
hi!<br>I`m trying to start stereo mode on Raspbian x64 bullseye with picamera2 and stereopiV2.<br><br>Everything works but only with 1 camera at once:<div class="codebox"><p>Code: </p><pre><code>import os;import cv2;import numpy as np;from datetime import datetime#from picamera.array import PiRGBArray#from picamera import PiCamerafrom picamera2 import MappedArray, Picamera2, Preview# Initialize the camera#     camera = PiCamera(stereo_mode='side-by-side',stereo_decimate=False)#     camera.resolution=(cam_width, cam_height)#     camera.framerate = 5#     camera.exposure_mode = 'off'     #     camera.shutter_speed = 1000000    #     camera.contrast = 0  # Контрастность#     camera.brightness = 60  # Яркость#     camera.saturation = 0  # Насыщенность#     camera.ISO = 800  # Чувствительность#     camera.awb_mode = "auto"  # "fluorescent"camera = Picamera2()config = camera.create_preview_configuration(main={"format": "RGB888"})camera.configure(config)camera.start_preview(Preview.QT)camera.start()        #for frame in camera.capture_continuous(capture, format="bgr", use_video_port=True,                                       #resize=(img_width,img_height)):    while True:        origin_img = camera.capture_array()</code></pre></div>I see 2 cameras registered:<div class="codebox"><p>Code: </p><pre><code>[0:29:08.795269441] [5481]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3700-f30ad033[0:29:08.832856316] [5490]  INFO RPI raspberrypi.cpp:1368 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0</code></pre></div>As stereopi wiki suggested i put .bin file to /boot partition and added to config.txt what it needs.<br><br>How to start up stereo mode ?<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Mon Aug 15, 2022 7:25 am</p><hr />
]]></content>
	</entry>
	</feed>
