Ask Your Question
0

Bird's Eye homography height & scale?

asked 2014-07-30 16:49:15 -0600

jfix gravatar image

I've created a bird's eye view of my 640x360 video stream by following example 12-1 in "Learning OpenCV" by Bradski & Kaehler (I had to make some minor changes to play nice with v2.4.9).

I have to manually play with the height in the homography matrix each time in order for the bird's eye view to look (almost) right. It seems to depend on the location of the chessboard on the ground. Also, the result is much smaller than the original image.

How can I...

  1. Automatically find the correct height?
  2. Keep the scale closer to the original size? (I know there will be some loss)

Note, I'm coding with C++, Visual Studio 2013 (w/ platform toolset set to VS2010), and OpenCV v2.4.9

edit retag flag offensive close merge delete

Comments

1

Just a remark, if the example is also in the C++ samples directory, could you submit your changes using a pull request? It would help others with a great deal making sure everything works for the 2.4.9 interface.


StevenPuttemans gravatar imageStevenPuttemans ( 2014-07-31 02:59:55 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-11-13 11:30:54 -0600

Hello,

I am working on same project. I have to create a surround view image. Can will please give me your code in c++ as I am stuck with the c++ implementation of the code.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-07-30 16:49:15 -0600

Seen: 902 times

Last updated: Aug 01 '14