Home How to resize an image according to camera parametars and real world size? (OpenCV)
Reply: 0

How to resize an image according to camera parametars and real world size? (OpenCV)

user644
1#
user644 Published in April 25, 2018, 12:51 am

I need to place a car in the road scene(cityScapes). Car image should have a proper size according to its distance from the camera. So I have a real size of the car like its width(2.5m), camera parameters matrix(fx,fy,cx,cy), JSON with segmentation and I can place a horizon. I already have a polygon of the road and I think it is something to do with this formula:

but I am not sure how to place coordinates correctly(like I don't have Z)

I don't ask about full-working code, I just need tips about a geometry model to use.

source1:

source2:

result:

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.30105 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO