Hello,
(Realizator, if you are reading this, I messaged you in telegrams a few weeks back but couldn't receive a reply)
I'm trying to create software that can find raw distance data in specific points of the video feed. Specifically, I would like to know the distance from the camera to the object at specific coordinates (X: ... Y: ...) I'm having a few problems right now, and I was wondering if anyone can help.
1) I used the premade pairs for the calibration step, and it works fine. I'm at the 5_dm_tune.py step, and I keep getting error messages that say "the examples.directory rcpram was deprecated". Here's a link to the error im having: https://drive.google.com/file/d/1PYHdAA ... sp=sharing
2) Given that I do end up fixing this calibration and depth map tuning issue, is there any way I can acquire the distance at specific coordinates? I saw another post and the realizator wrote that there's a separate function for this in opencv, but I'm not sure how to use it. Does anyone have code for it that I can use? Thank you so much.
Raw distance calculation
- Realizator
- Site Admin
- Posts: 912
- Joined: Tue Apr 16, 2019 9:23 am
- Contact:
Re: Raw distance calculation
Hello muri,
Wow, looks like I missed your Telegram message in my tsunami of messages. Please ping me again there!
As for the error - according to your screenshot, you are using the old repository and code. It was polished for the older version of Python and OpenCV. Please take a look at newer code: https://github.com/realizator/stereopi-fisheye-robot
It is tested with the latest Python version and the latest OpenCV. If you are not planning to fight with the manual OpenCV setup, you can use the pre-configured RaspiOS OpenCV image available here: https://www.mediafire.com/folder/nzr90vj8wp1l3/SLP
Wow, looks like I missed your Telegram message in my tsunami of messages. Please ping me again there!
As for the error - according to your screenshot, you are using the old repository and code. It was polished for the older version of Python and OpenCV. Please take a look at newer code: https://github.com/realizator/stereopi-fisheye-robot
It is tested with the latest Python version and the latest OpenCV. If you are not planning to fight with the manual OpenCV setup, you can use the pre-configured RaspiOS OpenCV image available here: https://www.mediafire.com/folder/nzr90vj8wp1l3/SLP
Eugene a.k.a. Realizator
Re: Raw distance calculation
Hi Realizator!
I think the dm_tune step now works fine. Are there any code samples for distance calculation? btw, I just g-chatted you, so please check when you're available! Thanks.
I think the dm_tune step now works fine. Are there any code samples for distance calculation? btw, I just g-chatted you, so please check when you're available! Thanks.
- Realizator
- Site Admin
- Posts: 912
- Joined: Tue Apr 16, 2019 9:23 am
- Contact:
Re: Raw distance calculation
Eugene a.k.a. Realizator