Search found 184 matches

by stereomaton
Thu Oct 29, 2020 9:16 am
Forum: OpenCV, Python and other image processing
Topic: 3D world coordinates from stereo calibration
Replies: 5
Views: 235

Re: 3D world coordinates from stereo calibration

I have no experience in the domain, but I see that the only input of the function are your calibration matrices and the coordinates of your homologous points. Thus, I would suspect that the calibration is not good enough. I suppose that the RMS value you talk about is computed as reprojection error ...
by stereomaton
Wed Oct 28, 2020 10:49 pm
Forum: OpenCV, Python and other image processing
Topic: Continuous Capture in the Background
Replies: 14
Views: 313

Re: Continuous Capture in the Background

Okay. I just had a quick overview of these two modules and the distinction is essentially the same as I said. One (threading) provides an interface to execute the tasks in the same process/program with shared memory, and thus you need to protect access on modifiable shared memory with appropriate me...
by stereomaton
Wed Oct 28, 2020 11:29 am
Forum: OpenCV, Python and other image processing
Topic: Continuous Capture in the Background
Replies: 14
Views: 313

Re: Continuous Capture in the Background

It is up to you, I exposed some pros and cons of the different architectures. Notice that it is not because I personally do not know (and did not search for) messaging libraries that your are stuck to not use more elaborated objects in communications via sockets. That said, I do not see what you pla...
by stereomaton
Tue Oct 27, 2020 12:37 pm
Forum: OpenCV, Python and other image processing
Topic: Continuous Capture in the Background
Replies: 14
Views: 313

Re: Continuous Capture in the Background

Using multithreading (instead of sockets in this case) allows direct access to the memory of the other task. This might be useful if you want to access large memory or complex structures, but it comes with the need to protect correctly the access to any (modifiable) shared resources. Otherwise there...
by stereomaton
Mon Oct 26, 2020 8:58 am
Forum: OpenCV, Python and other image processing
Topic: Stereo_Camera Calibration error
Replies: 32
Views: 5933

Re: Stereo_Camera Calibration error

Your new question might lead to a long discussion not related to the original topic, you should probably open a new post.
by stereomaton
Mon Oct 26, 2020 8:49 am
Forum: OpenCV, Python and other image processing
Topic: Continuous Capture in the Background
Replies: 14
Views: 313

Re: Continuous Capture in the Background

What I mean by a blocking call is a call to a method that place the task in a blocking state in the operating system, which means that the task will not consume CPU time until the appropriate event occurres (may be a timeout, a user input, the answer of a peripheral, the release of a mutex by anothe...
by stereomaton
Sun Oct 25, 2020 10:01 am
Forum: OpenCV, Python and other image processing
Topic: Continuous Capture in the Background
Replies: 14
Views: 313

Re: Continuous Capture in the Background

If I understand well, you want to have a part with blocking calls, and another independent that can respond during this, through probably another blocking call for the interface. There are many ways to deal with this. One classical way is to use an event loop (but your blocking calls have to be comp...
by stereomaton
Sat Oct 24, 2020 9:29 pm
Forum: OpenCV, Python and other image processing
Topic: Depth map calibration/explanation
Replies: 21
Views: 7351

Re: Depth map calibration/explanation

Tuannm, first let me point out that your images are reversed (left on right and right on left). I did not played seriously with the calibration part, but several problems reported on the forum were due to bad input data. In particular, you can set drawCorners to True to check if all detected chessbo...
by stereomaton
Sat Oct 24, 2020 9:20 pm
Forum: OpenCV, Python and other image processing
Topic: Continuous Capture in the Background
Replies: 14
Views: 313

Re: Continuous Capture in the Background

Is this the actual code ? By reading it, it looks like there are syntax errors, problem with the place where sensor variable is created (before declaration of its class) and that even after this is corrected, the code will do nothing interesting as is (except probably turn the LEDs on) because only ...
by stereomaton
Sat Oct 24, 2020 8:08 pm
Forum: OpenCV, Python and other image processing
Topic: Stereo_Camera Calibration error
Replies: 32
Views: 5933

Re: Stereo_Camera Calibration error

I wonder if this code can work for single camera or not? If I read it right, the original code first calibrate the two cameras independently (camera matrix + distortion) and then calibrates the system of two cameras (relative translation and rotation). Thus you can use the calibrated data for one s...
by stereomaton
Sun Sep 27, 2020 12:16 am
Forum: Cameras and video capture modules
Topic: Capture still images from HQ Camera 12.3MP
Replies: 13
Views: 827

Re: Capture still images from HQ Camera 12.3MP

Someone else had a problem with vertical stripes, and it was related to the resolution used. See viewtopic.php?p=2057#p2057
by stereomaton
Mon Aug 31, 2020 12:08 am
Forum: Other topics
Topic: goodbye friends
Replies: 3
Views: 391

Re: goodbye friends

Woo. It is very sad. I do not know how to react just after reading this, but still want to answer. I enjoyed reading about your experiments and knowing that the small bits I shared were useful to someone. I feel honored that you came back here to say this in your situation. Goodbye and good luck non...
by stereomaton
Sun Aug 30, 2020 11:28 pm
Forum: OpenCV, Python and other image processing
Topic: Defect detection
Replies: 2
Views: 305

Re: Defect detection

Your problem does not look related to the stereopi, so you should probably ask the question on another forum. What I personally could say is that you better have to work in a controlled light environment. In particular, you can use the light to illuminate the zone to inspect only. With similar angle...
by stereomaton
Tue Aug 25, 2020 7:44 am
Forum: OpenCV, Python and other image processing
Topic: Stereo_Camera Calibration error
Replies: 32
Views: 5933

Re: Stereo_Camera Calibration error

I just noted that I did not have problems executing it on my station, on which I tested because I did not have access to my stereopi at this time and a part of the question was answerable that way. You corrected it in the context, so there is no absolute need to upgrade the library. Furthermore it m...
by stereomaton
Mon Aug 24, 2020 7:33 pm
Forum: OpenCV, Python and other image processing
Topic: Stereo_Camera Calibration error
Replies: 32
Views: 5933

Re: Stereo_Camera Calibration error

Mine is 4.4.0
Cloning the repo and executing 3_* & 4_* worked with it without error message before the correction as I said before.
by stereomaton
Sun Aug 23, 2020 9:06 am
Forum: OpenCV, Python and other image processing
Topic: Stereo_Camera Calibration error
Replies: 32
Views: 5933

Re: Stereo_Camera Calibration error

On the PC I have opencv4 which might have fixed the "close to edges" bug compared to the version in the stereopi.
by stereomaton
Sun Aug 23, 2020 9:01 am
Forum: Other software
Topic: OctoPrint Usage: How do I get OctoPi to recognize the cameras?
Replies: 4
Views: 540

Re: OctoPrint Usage: How do I get OctoPi to recognize the cameras?

I did not see your message before. The dt-blob looked like a good start, did it solve your problem?
by stereomaton
Sun Aug 23, 2020 8:51 am
Forum: StereoPi hardware
Topic: External trigger sync
Replies: 2
Views: 375

Re: External trigger sync

This post https://forum.stereopi.com/viewtopic.php?f=10&t=106 discuss how to add a button to trigger a photo. You can replace the button by an other electronic signal that switches from high-impedance to gnd (e.g. through a transistor). It is not designed for low latency though. For lower latency, y...
by stereomaton
Wed Aug 12, 2020 9:27 am
Forum: OpenCV, Python and other image processing
Topic: Stereo_Camera Calibration error
Replies: 32
Views: 5933

Re: Stereo_Camera Calibration error

I do not have my stereopi here, but since you said that you used only the data of the repo, I tested on my PC. I had a guess on what could happen and did this test: 1) Execute 4_calibration_fisheye.py directly after a fresh clone. I get the same error. 2) Execute the way I would have, that is execut...
by stereomaton
Tue Aug 11, 2020 5:34 pm
Forum: StereoPi hardware
Topic: StereoPi Issue - Right camera input displaying magenta in hotspots
Replies: 12
Views: 1214

Re: StereoPi Issue - Right camera input displaying magenta in hotspots

I am interested to know the result of your test too. I also saw the color derive with other camera models when I did the stereomaton. In the rush of the project, we added a custom color balance after the process of raspistill and it worked well except for blown out parts. I did not pay attention to ...