fisheye | fisheye image calibration | Computer Vision library
kandi X-RAY | fisheye Summary
kandi X-RAY | fisheye Summary
fisheye image calibration
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Undistorted undistort .
- Calculate k and d points for a checkerboard .
- Cut the contours of the image .
fisheye Key Features
fisheye Examples and Code Snippets
Community Discussions
Trending Discussions on fisheye
QUESTION
I'd tried to run this xml file but unfortunately it couldn't be parsed and I always receive the error : config.xml:2: parse error near `\n' .
To be honest, I have no idea how to fix it.
...ANSWER
Answered 2022-Feb-11 at 15:59The problem is that you cannot have a <
character in an attribute value.
Change
QUESTION
I'm trying to receive RTP stream encoding h264 over TCP from my intercom Hikvision DS-KH8350-WTE1. By reverse engineering I was able to replicate how Hikvision original software Hik-Connect on iPhone and iVMS-4200 on MacOS connects and negotaties streaming. Now I'm getting the very same stream as original apps - verified through Wireshark. Now I need to "make sense" of the stream. I know it's RTP because I inspected how iVMS-4200 uses it using /usr/bin/sample
on MacOS. Which yields:
ANSWER
Answered 2022-Feb-09 at 09:52Going for mp4 container wasn't a good choice after all. It turns out the RTP essentially yields raw h264 stream. To inspect its structure I converted the genuine mp4 recording to .264 like this:
QUESTION
I'm looking for some way to set background image with barrel distortion effect(FishEye/FOV) for node using JavaFX. I found algorithm with pixel manipulation, but I want to find some another way(some hack) for reach it. This effect will be use for create node background high definition image changing animation(animation wil be change factor(power/value/degree?)) of this effect.
...ANSWER
Answered 2022-Jan-19 at 23:35I will answer this question in the spirit that it was asked, i.e. no code.
JavaFX has an effect framework.
There is no in-built fisheye effect.
You could create your own custom fisheye effect implementation and plug it into the effect framework if you are a skilled developer.
Easier would be to apply your algorithm using a WritableImage with a PixelWriter or Canvas. Perhaps that could even plug into the effect framework (if you actually needed to do that, which you probably don't) using an ImageInput.
For an example of applying an algorithm to the pixels in an input image see:
Of course, you would use a fisheye algorithm (coded for JavaFX instead of the linked implementations) for a fisheye transform.
To animate use an AnimationTimer or, again for skilled developers, create a custom transition that plugs into the JavaFX animation framework.
You can add properties to your custom effect and manipulate them using additional properties defined on the custom transition you create.
Providing a complete solution is out of scope for a StackOverflow answer. To get help with individual tasks, split the problem up into different pieces, e.g. creating a custom effect, manipulating pixels to create a fisheye, animating an effect on an image or timeline, etc. Write the code and ask questions about the actual code with a minimal example for the problem portion you are trying to solve when you get stuck.
QUESTION
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:31In 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
- Reading the device/service capabilities using GetServiceCapabilities interface provided by every service
- Reading the configurations provided by device using 'Get[entity]Configurations' interface
- Reading the configuration parameter options using Get[entity]ConfigurationOptions interface
The "entity" varies depends on the feature, Check the entities list here
- https://www.onvif.org/specs/srv/media/ONVIF-Media2-Service-Spec.pdf Section 4.1 Media profile)
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
- View Mode
QUESTION
I have dual-fisheye MP4 files generated from a Rylo camera. Using FFmpeg on Windows, I want to convert the video into equirectangular format.
The command I have been trying is:
...ANSWER
Answered 2021-Dec-16 at 08:34The option you're looking for is roll
?
QUESTION
My issue is that the animation works fine when the images have no content to them as below, but once they are loaded I get the following error: Error: attribute x: Expected length, "NaN".
Here is a code snippet:
...ANSWER
Answered 2021-Dec-05 at 16:55I figured out my issue-
QUESTION
I would like to warp one fisheye image: Left:
Into this target image:
The target image is actually a part of the synthetic panorama:
I know a method called mesh warping, like:
But how am I able to find or define a irregular mesh like this? Very grateful if someone can give me some suggestions. I would like to have this mesh, so that I can use this mesh for every frame of a video and warp every frame into this target image.
...ANSWER
Answered 2021-Sep-24 at 23:43Is this a one-off project, or are you trying to write an automatic procedure?
If the former, you can just hand-tag corresponding points in the two images till you have enough coverage, particularly in the more "curvy" areas, then warp using (for example) a thin-plate spline defined by the point correspondences. This works iteratively: match some points, warp, figure out where the error is largest, add more point matches there. Doing all this in, say, Matlab or Python+OpenCv is quite easy.
You can then try to automate it using feature extraction and matching. The trouble is you'll need to use both point and line correspondences...
QUESTION
I am experimenting with undistorting images. I have the following image below, and using the undistort function have the result. The fisheye module doesn’t work. Is this because my image isn’t a fisheye but wide angle instead? And in either case how do I reduce the perspective distortion?
FYI I have lost the specs on this lens but got its intrinsics from a calibration routine.
...ANSWER
Answered 2021-Oct-04 at 04:27The image seems just wide-angle, not fisheye. Images from fisheye camera usually have black circle borders, and they look like seeing through a round hole. See picture c) below (from OpenCV doc):
The normal method of distinguishing wide-angle from fisheye is to check the FOV angle.
Given the camera intrinsic parameters (the cameraMatrix and distCoeffs, from calibration routine), you can calculate a new camera intrinsic matrix with the largest FOV and no distortion by calling getOptimalNewCameraMatrix(). Then the FOV angle in x-direction (it's usually larger than y-direction) is arctan(cx/fx)+arctan((width-cx)/fx)
, where fx
is the focal length in x-direction, cx
is the x-coordinate of principal point, and width
is the image width.
In my experience, when FOV<80°, the Brown distortion model (k1, k2, k3, p1, p2) should be used. When 80°<140°, the Rational model (k1~k6, p1, p2) should be used. And when 140°<170°, the Fisheye model (k1, k2, k3, k4) should be used. More complex model (with more parameters) has better fitting ability, but also makes the calibration harder.
The Fisheye model performs better than Rational model in very large FOV cases, because it has higher order radial parameter. But when FOV angle is not very large, Rational model is a better choice, because it has tangential parameters.
The undistorted picture you provided seems fairly good. But if you care more about the precision, you should check the reprojection error, epipolar error (multi-camera), and even collineation error of the key points (checkerboard corners, circle centroids, or whatever features depending on your calibration pattern) in calibration procedure.
QUESTION
I'm trying to convert a 180° fisheye video to a normal/regular video using the v360
filter of FFmpeg.
This is the command I tried:
ffmpeg -i in.mp4 -vf "v360=input=fisheye:output=flat:iv_fov=180:v_fov=90" out.mp4
But the output says clearly No such filter: 'v360'
, although v360 is a common filter listed in docs and other filters I used before worked just fine. I tried updating/reinstalling and looking for solutions, not fixing it.
Why is the filter missing? How can I debug this? Should I doe the task using another program entirely?
Command output:
...ANSWER
Answered 2021-Sep-25 at 23:22You need at least version 4.3 to use the v360 filter (see Changelog
). For Linux you can download a new version or compile it yourself.
The online documentation is synced with the latest code (git master branch). So releases may not have features mentioned in the online documentation. Refer to your locally installed documentation if you are stuck using an old release: man ffmpeg-filters
QUESTION
I am trying to map features from undistorted space back to distorted space with the opencv fisheye functions. I can successfully transform my image from the camera distorted fisheye image to regular space via this code:
...ANSWER
Answered 2021-Aug-19 at 20:15I think you need to estimate new camera matrix for undistortion.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
Install fisheye
You can use fisheye 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
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page