OmniCV-Lib icon indicating copy to clipboard operation
OmniCV-Lib copied to clipboard

fisheye2equirect Problem

Open sinae-noh opened this issue 2 years ago • 3 comments

https://stackoverflow.com/questions/72891231/python-omnicv-fisheye-camera

It doesn't work properly. help me.

sinae-noh avatar Jul 07 '22 06:07 sinae-noh

Hi, I run the code and got the same problem as yours. Did you solve the problem after?

johnmmm avatar Jun 25 '23 22:06 johnmmm

@johnmmm I couldn't solve it. sorry

sinae-noh avatar Jun 26 '23 06:06 sinae-noh

Hi, I have solved this problem. It is because of the wrong use of the '\n'in line 116 and 117 in file omnicv.py.

self.map_x = np.multiply(r, np.cos(theta)).T.astype(np.float32) + self.Cx

In this line, the self.Cx actually not added to self.map when running the code, which led to this wrong answer.

johnmmm avatar Jun 27 '23 21:06 johnmmm