saleh1312 / football-players-matching

12 stars 3 forks source link

How to get Field of view of other part of ground #2

Open rohaantahir opened 2 years ago

rohaantahir commented 2 years ago

Hi I am working on your project and wanted to know how can we generate a field of view from other part of ground like you are doing in current project from middle of the ground. If I wanted to cover right or left goal view as well and create field of view using that angle what changes are required then. Kindly please guide me as your orignal tutorial is in arabic. Thanks I would be highly grateful to you.

saleh1312 commented 2 years ago

yeah of course you can , just redefine the 4 points that used in prespective transform (from camera )and redefine its mapping points in 2d filed (the 2d image) and you can also define more than 4 points and use ( find homogramphy function) instead of (get prespective transform function )

rohaantahir commented 2 years ago

Thanks for reply. are these pixel points? like column number and row number ??