VirtualCam icon indicating copy to clipboard operation
VirtualCam copied to clipboard

Distortion coefficient

Open ADAS-Iv opened this issue 3 years ago • 6 comments

Hello,

I'm trying to use GUI.py but I'm having some troubles with distortion coefficient: I see variation in the chessboard pattern only when I put the coefficients at their max value

ADAS-Iv avatar Apr 21 '21 17:04 ADAS-Iv

Hi! Faced with that problem too. To fix it you should assign dtype of KpCoeff in vcam lib to any np.float type

Hello,

I'm trying to use GUI.py but I'm having some troubles with distortion coefficient: I see variation in the chessboard pattern only when I put the coefficients at their max value

lxzrv avatar May 05 '21 20:05 lxzrv

I just changed:

self.KpCoeff = np.array([0,0,0,0,0,0,0,0]

to:

self.KpCoeff = np.array([0,0,0,0,0,0,0,0], dtype=float)

in the vcam.py source and it is working.

vgrllc avatar Jun 10 '21 12:06 vgrllc

I just changed:

self.KpCoeff = np.array([0,0,0,0,0,0,0,0]

to:

self.KpCoeff = np.array([0,0,0,0,0,0,0,0], dtype=float)

in the vcam.py source and it is working.

Works for me!

Author need to make that change @kaustubh-sadekar

b-hakim avatar Sep 26 '21 11:09 b-hakim

+1 where's the vcam source?

truher avatar Jun 14 '22 14:06 truher

+1 where's the vcam source?

You can do the following in terminal

python3
>>> import vcam
>>> import os
>>> os.path.dirname(vcam.__file__)

ahtsan avatar Jun 16 '22 18:06 ahtsan

indeed. i meant "where is the vcam source in github so i can fix it for everyone?"

truher avatar Jun 16 '22 18:06 truher