lenscorrection | Python batch lens distortion correction | Computer Vision library

 by   wildintellect Python Version: Current License: Non-SPDX

kandi X-RAY | lenscorrection Summary

kandi X-RAY | lenscorrection Summary

lenscorrection is a Python library typically used in Artificial Intelligence, Computer Vision, Deep Learning, Numpy applications. lenscorrection has no bugs, it has no vulnerabilities and it has low support. However lenscorrection build file is not available and it has a Non-SPDX License. You can download it from GitHub.

Python batch lens distortion correction
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              lenscorrection has a low active ecosystem.
              It has 15 star(s) with 2 fork(s). There are no watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 2 have been closed. On average issues are closed in 16 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of lenscorrection is current.

            kandi-Quality Quality

              lenscorrection has 0 bugs and 0 code smells.

            kandi-Security Security

              lenscorrection has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              lenscorrection code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              lenscorrection has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              lenscorrection releases are not available. You will need to build from source code and install.
              lenscorrection has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 98 lines of code, 6 functions and 2 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed lenscorrection and discovered the below as its top functions. This is intended to give you an instant insight into lenscorrection implemented functionality, and help decide if they suit your requirements.
            • Processes a list of photos
            • Takes in exif data and returns the correct image
            • Multiple processes
            • List all files in a directory
            Get all kandi verified functions for this library.

            lenscorrection Key Features

            No Key Features are available at this moment for lenscorrection.

            lenscorrection Examples and Code Snippets

            No Code Snippets are available at this moment for lenscorrection.

            Community Discussions

            Trending Discussions on lenscorrection

            QUESTION

            Is there a way to apply a curve bend in ffmpeg?
            Asked 2020-Mar-25 at 09:41

            I have four cameras each feeding me a different portion of a basketball court. Due to the slight offset of the cameras physical locations and lens distortion around the edges of the camera, I cannot simply stitch the videos together without some kind of correction.

            I've looked into ffmpeg's perspective filter, as well as the lenscorrection filter. In the former case it was only able to create a trapezoid, not the curved image I want. In the latter case using negative values to k1 and k2 seemed to be heading in the right direction, but it either disorted the top and bottom of the image to the point of being nonsensical noise, or it zoomed in to the image so much that I lost important details.

            For the sample picture below, ultimately I want the midcourt line (the blue vertical line on the right side) to be vertical, and I want the mess of wires on the white desk at the bottom to remain visible and identifiable.

            Given a video which looks like the following:

            I wish to produce something like the following:

            This image was made using the "Curve Bend" filter in GIMP, but I just eye-balled it - so it's not perfect. Ideally once I get the exact parameters the midcourt line will be perfectly vertical

            When using the lenscorrection filter, no values for k1 and k2 seemed to get the effect I want:

            Negative k1, negative k2:

            Negative k1, positive k2:

            Positive k1, negative k2:

            Positive k1, positive k2:

            In general:

            • negative / negative distorted the image beyond recognition
            • negative / positive looked alright, but the midcourt line was off the screen and it wasn't clear if any distortion had been applied
            • positive / negative looked the best, but while the top and bottom curved in the middle of the left and right actually bulged out, leaving the midcourt line distorted
            • positive / positive was the opposite of the desired effect
            ...

            ANSWER

            Answered 2019-Nov-25 at 15:34

            Short answer: No. FFMPEG does not have a curve bend function. That said, curve bend is not the proper solution, anyway. A lens correction is necessary, the parameters supplied were just way off.

            Ultimately I just wrote a script to dump thousands of images using lensfun with different lenses, then skimmed them for one that looked good

            Source https://stackoverflow.com/questions/58594204

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install lenscorrection

            You can download it from GitHub.
            You can use lenscorrection like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/wildintellect/lenscorrection.git

          • CLI

            gh repo clone wildintellect/lenscorrection

          • sshUrl

            git@github.com:wildintellect/lenscorrection.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link