OpenCV Code not doing anything (no output)

asked 2018-08-17 13:18:09 -0500

tommy61157 gravatar image

updated 2018-08-17 14:35:43 -0500

I have seemed to have reached an impasse with the current project I am working with. Currently, when I build the project in visual studio code on Ubuntu 16.04 LTS with the LXDE Desktop environment, I'm not getting any errors or output really from the program, it just doesn't seem to really do anything and I don't know why. I'll link the files for someone to look at and if any insight can be offered as to the code or some way I'm supposed to be doing something, I'm definitely open to it, I'd give more details, but I'm getting so little feedback from the console that I pretty much have nothing to give in that regard.

The end goal of the program is to dewarp a fisheye lens on a camera if that helps and is based off of the code from this: If there's any more information I can provide, let me know, but I'm just stuck since I don't know how to go about diagnosing the issue when I'm getting absolutely no console feedback of any kind.

Link to files:

Camera.json couldn't upload for some reason, so here's that:

    "CameraInfo": {
        "Lense":"55mm AF-S",
        "FocalLength": 55,
        "Aperature": 2.8
    "CameraMatrix": {
    "DistortionCoefficients": {

edit retag flag offensive close merge delete


language used, opencv version ?

do you know about the fisheye specific functions ?

berak gravatar imageberak ( 2018-08-17 14:25:36 -0500 )edit

C++, 3.4.2, the fisheye functions require a lot of math and I'm trying to avoid that since I wouldn't know where to begin with that.

tommy61157 gravatar imagetommy61157 ( 2018-08-17 14:27:28 -0500 )edit
  • your json looks entirely useless (it e.g. would need the actual value of fx,fy,cx,cy, etc here.)
  • have a look at description. you'll probably need to understand the pinhole model, and then move on to fisheye.
  • yea, maths all the way down. what did you expect ?
berak gravatar imageberak ( 2018-08-17 14:35:31 -0500 )edit

Definitely going to take into account everything you mentioned, but that still perplexes me how it has absolutely no ouput then.

tommy61157 gravatar imagetommy61157 ( 2018-08-17 14:49:42 -0500 )edit