Giter VIP home page Giter VIP logo

Comments (1)

Alexey-Kamenev avatar Alexey-Kamenev commented on May 29, 2024

Most likely this happens because OpenCV FileStorage writes YAML file that is not compatible with most other YAML readers (e.g. Python etc). The problem is in the first line of the output file, that's why, for example, in our Python script we have to remove it.
However, there is a bigger issue: the calibration parameters are not actually used to undistort an image. The reason is gscam uses camera_info_manager from image_common which reads the calibration file and publishes it as a topic but does not actually perform undistortion. On the other hand, performing undistortion in our code (i.e. caffe_ros) node is too late as the node is subscribed to the output of gscam which means the image went through GStreamer pipeline like resizing etc so undistorting it does not make sense anymore/too late.
In our case, this was not a problem as our Iris drone used Microsoft HD5000 camera with 66 degrees of diagonal FOV so there was never any noticeable distortions.

For wide angle cameras we would certainly recommend undistorting the image before feeding into caffe_ros. In another scenario where we use ZED camera, the ZED ROS node conveniently provides a topic with rectified image (example).

Hope this clarifies things a little...

from redtail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.