How to automatically generate rules for the images?

Hello!

There is a picture:
5c9e1856ae829156859101.gif
As you can see the grid is distorted. Must be on the basis of such image to generate the rules of distortion, so that it can be applied to other images.

What is it? For example:
1) Adhesive vehicle vinyl with an image grid
2) take pictures of
3) the Generated rules distortion

Now for all owners of cars of this model we can show how it will look one or another airbrush.

JAPANESE does not really matter, but still prefer php because it is convenient for the project, and speed doesn't play a big role.

I would like to link to any case, or at least understand what direction to go and what to Google.
Thank you!
March 19th 20 at 09:12
3 answers
March 19th 20 at 09:14
Solution
Apparently you can do without sticking the mesh:
https://habr.com/ru/post/134781/ (unable to 3D model)
Next, I will look for info how to overlay a 2D image on a 3D object using Yapov
March 19th 20 at 09:16
What is it? For example:
1) Adhesive vehicle vinyl with an image grid
2) take pictures of
3) the Generated rules distortion


Looks too complicated. Why not just take the 3D model of the car, to project it on textures (vinyls) and get texture coordinates? Thus it is possible to show vinyls from different angles, applying rendering only exterior photo of the car and replace them without any extra generations, as the texture coordinates will be the same for all (unless, of course, vinyls are the same size)
The fact that the 3D models there, and the question is not really about cars. Just gave an example to illustrate the essence of the problem...
But if there's a way from the 2D image to generate a* 3D, I think would be wonderful.
*Again, the currents will present a car to 100% covered such a grid, and photographed from all sides... - charles86 commented on March 19th 20 at 09:19
@charles86, pasted in the literal sense? It will be the same raster, why complicate things? Easier will have to manually make a grid in 3D - magnus94 commented on March 19th 20 at 09:22
@magnus94, pasted in the literal sense?

Yes

@magnus94 Easier will have to manually make a grid in 3D


maybe, maybe not... the object of a lot of small deformations of the hands to describe them for a long time...
Another example:
The original 2D image
https://storage.vsemayki.ru/images/0/1/1690/169050...
Distortion 1
https://storage.vsemayki.ru/images/0/1/1690/169050...
Distortion 2
https://storage.vsemayki.ru/images/0/1/1690/169050...

I think this is a real photo? Then compare with https://storage.vsemayki.ru/images/0/1/1679/167910... and https://storage.vsemayki.ru/images/0/1/1679/167910...

There is clearly applied a simple mechanism, without detailing the distortion of the folds. And I would like to be 100% realistic image. - charles86 commented on March 19th 20 at 09:25
@charles86how to 3D model, is another question. But shamanism with 2D image is clearly not the best way - magnus94 commented on March 19th 20 at 09:28
March 19th 20 at 09:18
1) Adhesive vehicle vinyl with an image grid
2) take pictures of
3) the Generated rules distortion

Now for all owners of cars of this model we can show how it will look one or another airbrush.

with a hangover? the shape of the car is different.. you have 3D printing? use 3D scanning+preview, but if the work is manual, how do you propose to consider in the "regulations of distortion" the vision of the master?

upd2 tip is CAD technology - perhaps even the full life cycle of your hotelok. quite popular 3DMax, it seems not free, but not the only product on the market
>>you have 3D printing?
No, but there is a three-dimensional object which can be pasted grid. And the task is to overlay different 2D image
>>use 3D scanning+preview
And not much on the details of what it means to nurture, in this context? And what tools for 3d scanning exist? - charles86 commented on March 19th 20 at 09:21
@charles86,
you have 3D printing?
if so, something about the preview in man pages for tools print
what tools for 3d scanning exist?
and this, in Google, on Habr, etc ... they have a lot - Valentine.Heathco commented on March 19th 20 at 09:24

Find more questions by tags image processingAlgorithms