Images swapped

OpenCV, Python and other image processing questions
Post Reply
NMO
Posts: 2
Joined: Tue Jun 10, 2025 11:05 am

Images swapped

Post by NMO »

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?

EDIT: I noticed that this happens on SLP2 as well.

User avatar
Realizator
Site Admin
Posts: 933
Joined: Tue Apr 16, 2019 9:23 am
Contact:

Re: Images swapped

Post by Realizator »

Hi NMO,

Due to the difference on the ribbon cable connector position on the camera, you have to "swap" cameras in settings according to your model.

To do this in OpenCV you should set "letf" and "right" arrays appropriately. In script 3 you can see these lines here.

In SLP you can just set a checkbox "swap cameras" in settings.
Eugene a.k.a. Realizator

Post Reply