Panoramic dewarp

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
davej574
Blank Cone
Blank Cone
Posts: 10
Joined: 30 Mar 2007 14:48

Panoramic dewarp

Postby davej574 » 26 Jul 2007 22:37

Is there a way to take a webcam image taken using a 180 degree lens (image looks like round convex mirror scene) and use the distortion filters to dewarp the image?

Can new distortion filters be developed to do this if not currently available.

Would like to be able to crop video and pan/tilt/zoom through dewarped image.

DJ

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Panoramic dewarp

Postby dionoea » 27 Jul 2007 11:18

Is there a way to take a webcam image taken using a 180 degree lens (image looks like round convex mirror scene) and use the distortion filters to dewarp the image?
No.
Can new distortion filters be developed to do this if not currently available.

Would like to be able to crop video and pan/tilt/zoom through dewarped image.
Sure, once someone gets motivated enough to code it :) (I was planing to code an interactive image distortion filter where you would be able to change the distortion with your mouse ... but that's kind of different).

Btw, do you have sample videos so we can see what they look like?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

cocquebert
Blank Cone
Blank Cone
Posts: 15
Joined: 14 Mar 2006 09:39

Re: Panoramic dewarp

Postby cocquebert » 27 Jul 2007 17:16

You can use several warping with "opengl" vout (like cylinder, sphere , SINER ...). Try all ...
Perhaps an issue ...
If you have the mathematical equation of your deformation, I can add it in the list of transformations ...

Best regards

davej574
Blank Cone
Blank Cone
Posts: 10
Joined: 30 Mar 2007 14:48

Re: Panoramic dewarp

Postby davej574 » 08 Aug 2007 23:11

I had not used opengl transforms before, took me a while to find it.

I did not find any sphere,cylinder etc options only cube or transparent cube.

Am I looking in the wrong place?

As far as the math involved. I believe it should be similar to sphere only a lens of the sphere. Almost like 2d representational maps of the world. Take a 'square' made up of 2 longitudinal lines and 2 latitudinal lines and 'flatten', 'stretch', 'skew', 'zoom'. Obviously, the user should be able to change the 'poles' position so that 3 dimensional travelling over the image is allowed. What I am trying to say is, it is possible that the lens is pointed straight down, so that 'dewarping' a portion of the image would keep the 'bottom' of the viewed area closer to the center of the circular image. Using left--right to spin around the scene. Up-- down would allow you to look upside down (sort of between the legs). I would guess polar coordinates could be used but obviously the degree of view would depend on the lens used ie edge of the circle could be 160-180 degrees. And like looking at a polar projection of the earth the latitude lines would appear to be closer together as you get to the edge of the image.

I am hoping that if this openGL deformation works it could be coupled with fisheye lens on IP cameras and allow the user to interactively look around the scene.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Panoramic dewarp

Postby dionoea » 09 Aug 2007 16:27

Don't forget about the sample video!
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

davej574
Blank Cone
Blank Cone
Posts: 10
Joined: 30 Mar 2007 14:48

Re: Panoramic dewarp

Postby davej574 » 09 Aug 2007 16:32

Ah, yes the sample video. I had looked at different cameras to do this with and finally purchased a dcs950. I do have the lens installed and I am able to view the resulting images, but capturing...

Apparently the dcs900 can be viewed using vlc, but google searches have turned up little in the way of capturing dcs950 frames.

Any help will be greatly appreciated.

Dave

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Panoramic dewarp

Postby dionoea » 09 Aug 2007 18:45

If it can be viewed with VLC it's easy to dump a sample to a file. What kind of input do you have? (MPEG2/4 or MJPEG?)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

davej574
Blank Cone
Blank Cone
Posts: 10
Joined: 30 Mar 2007 14:48

Re: Panoramic dewarp

Postby davej574 » 10 Aug 2007 17:46

That is the question. The documentation says MPEG4 or MJPEG but really doesn't go beyond that as they provide a viewer/recorder but the format seems non-standard. I believe most IP cameras use the xVid or dVix version of MPEG4.

The trick is finding the right URL to access the camera. All attempts using

http://ip/cgi-bin/video.cgi

etc have failed. Do anyone know the correct URL to get the feeds from a d-link dcs-950 ip camera?

The recorder stores two files when manually recording 1. extension is .DVF the other is .DVFH Video appears to be in the DVF file as it is around 3MB and the DVFH is only 13KB. Trying to view them in VLC yield nothing, no debug messages either.

cocquebert
Blank Cone
Blank Cone
Posts: 15
Joined: 14 Mar 2006 09:39

Re: Panoramic dewarp

Postby cocquebert » 24 Aug 2007 10:49

I had not used opengl transforms before, took me a while to find it.

I did not find any sphere,cylinder etc options only cube or transparent cube.

Am I looking in the wrong place?
Sorry for the late answer ...

Use 0.9 version (nightly build)

davej574
Blank Cone
Blank Cone
Posts: 10
Joined: 30 Mar 2007 14:48

Re: Panoramic dewarp

Postby davej574 » 05 Mar 2008 22:43

I finally have gotten around to getting the capture of a fisheye lens.

We are using a Axis 212PTZ which uses a 3.2Mpixel CMOS detector and a 70degree lens. You can "zoom in" by choosing a 640x480 area of the CMOS giving an effective 3x zoom.

The capture is from mjpg to mpg using VLC. At the end of the capture I turned on the "Guard tour" feature which zooms into the image, quality is good but you can see that straight lines appear bent. We even have customers complaining about the Court House lean.

http://www.rtcol.com/~minerva_captures/ only one file in the directory downtownCam.mpg

On another note, I am using Ubuntu server and VLC to output two mosaic channels with 4 TV channel inputs in each. Now if I can just get the STB manufacturers to change audio pids I can deploy to my customers. Can watch 4 games at the same time (or some times commercials).

DJ

CCTV_IP
New Cone
New Cone
Posts: 1
Joined: 03 Sep 2014 23:01

Panoramic dewarp - Blue Iris fisheye

Postby CCTV_IP » 03 Sep 2014 23:24

Has anyone seen any progress on this topic? Many of the 360 degree fisheye IP cameras provide a RTSP stream of the raw video. The unwarping is done at the PC. This means you are tied to using the manufacturer's software and cannot have warped video in your NVR such as Blue Iris.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests