Closed Jimwaga closed 3 years ago
I found the solution
self.resolution = fs.getNode("resolution").mat()
to
self.resolution = fs.getNode("resolution").mat().flatten()
Need to flatten since output is always 2 dimension
self.resolution = fs.getNode("resolution").mat()
in fisheye_camera.py
returns resolution as individual arrays for width and heightprint (width, height)
at line 57, you'll get (array([960], dtype=int32), array([640], dtype=int32))
size | Undistorted image size. |
---|
Thanks for pointing out this bug. Fixed. I coded it on Ubuntu 16.04/18.04 and used python3.5/python3.6, didn't encounter this problem. Maybe something changed in Python3.8.
Hi,
I keep on encountering this error whenever i try to run
run_get_projection_maps.py
andrun_live_demo.py
Also, can you provide a requirements file if possible?
Setup Info:
Python 3.8.3 running on Windows 10
Steps to reproduce:
python run_get_projection_maps.py -camera front -scale 0.7 0.8 -shift -150 -100