dewarp | Playing with the RasberryPi , odd lenses , and dewarping

 by   kscottz Python Version: Current License: No License

kandi X-RAY | dewarp Summary

kandi X-RAY | dewarp Summary

dewarp is a Python library. dewarp has no bugs, it has no vulnerabilities and it has low support. However dewarp build file is not available. You can download it from GitHub.

dewarp 360 video from raspberry pi.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              dewarp has a low active ecosystem.
              It has 135 star(s) with 50 fork(s). There are 27 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 3 open issues and 1 have been closed. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of dewarp is current.

            kandi-Quality Quality

              dewarp has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              dewarp does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              dewarp releases are not available. You will need to build from source code and install.
              dewarp has no build file. You will be need to create the build yourself to build the component from source.
              It has 228 lines of code, 11 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 dewarp and discovered the below as its top functions. This is intended to give you an instant insight into dewarp implemented functionality, and help decide if they suit your requirements.
            • Main function .
            • Find the homography of an image using the given template .
            • Builds a map of the fisheyeke .
            • Build the panoram .
            • Splice an image .
            • Construct a ~astropy . mask . Image
            • Checks if given coordinates is in ROI
            • Remarp an image
            • Crop the image .
            Get all kandi verified functions for this library.

            dewarp Key Features

            No Key Features are available at this moment for dewarp.

            dewarp Examples and Code Snippets

            No Code Snippets are available at this moment for dewarp.

            Community Discussions

            QUESTION

            Use ONVIF to determine if a camera supports dewarping
            Asked 2021-Dec-21 at 12:31

            Using ONVIF, how can I determine if the device has a fisheye camera and subsequently if it supports dewarping stream?

            ...

            ANSWER

            Answered 2021-Dec-21 at 12:31

            In ONVIF, For any feature to be confirmed as supported by the device usually can be done in one or more ways (including but not limited to the list) listed below

            1. Reading the device/service capabilities using GetServiceCapabilities interface provided by every service
            2. Reading the configurations provided by device using 'Get[entity]Configurations' interface
            3. Reading the configuration parameter options using Get[entity]ConfigurationOptions interface

            The "entity" varies depends on the feature, Check the entities list here

            For your query about dewarp feature support, option 2 has to be checked. So you have to read VideoSourceConfiguration from the device via 'GetVideoSourceConfiguration' interface and check the response.

            The response from device shall adhere to the specification as quoted below

            Ref: https://www.onvif.org/specs/srv/media/ONVIF-Media2-Service-Spec-v1712.pdf

            • Section : 5.2.2 Video source configuration
              • View Mode
                • Fisheye – Undewarped viewmode from a device supporting fisheye lens
                • Dewarp – Dewarped view mode for device supporting fisheye lens

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

            QUESTION

            How to de-warp 180 degree or 360 degree fisheye video with ffmpeg?
            Asked 2020-Jun-24 at 09:23

            Let's say I have video from an IP-camera that has a 180 degree or 360 degree fisheye lens and I want to dewarp the image in some way. Ideally I would be able to select some rectangular area of the input image and dewarp that into a "normal" looking output video, but it would also be acceptable to dewarp the the video into some sort of Equirectangular or Equi-Angular Cubemap projection. The input video looks like this

            I'm aware of two filters that might be used for this

            1. lenscorrect filter - I think that this is on the right course but all of the example that I can find with this filter are only for "minor" fisheye lenses and I can't seem to get this to work correctly for videos with 360 degree fisheye lenses, it simply doesn't dewarp enough.

            2. v360 filter. I thought that this must be the correctly filter but it seems that it's intended for 360 videos and not 360 degree fisheye lenses? I didn't know that there was a difference but I can't get it to work. When I try to take my input video and map it through an equirectangular projection I get some odd output like this

            I've tried a dozen or so different combinations of parameters but none of them seem to give me the output that I want which is a single dewarped image. Can someone help me with the filter graph parameters to use this filter?

            Is there something that I'm missing? Are either of these filters the correct way forward?

            EDIT -

            I've been experimenting with the v360 filter and I think I've gotten closer. What I want to do is map a fisheye input to an equirectangular output, so I've tried this

            ffmpeg -i input.mp4 -vf v360=fisheye:equirect:id_fov=360 output.mp4

            This should mean that my input is a fisheye lens with a diagonal field of view of 360 degrees and I want my output to be an equirectangular projection but this is what I get

            ...

            ANSWER

            Answered 2020-Jun-24 at 09:23

            ffmpeg -i input.mp4 -vf v360=fisheye:equirect:ih_fov=360:iv_fov=360 output.mp4

            Diagonal FOV is not same as horizontal or vertical FOV. And your camera have both horizontal and vertical FOV of 360.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install dewarp

            You can download it from GitHub.
            You can use dewarp 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/kscottz/dewarp.git

          • CLI

            gh repo clone kscottz/dewarp

          • sshUrl

            git@github.com:kscottz/dewarp.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