Answer the question
In order to leave comments, you need to log in
Linux: Crop and align a set of pictures with an anchor to something?
We decided to make a cartoon with my daughter :)
it turned out like this https://youtu.be/wlarSqp2rSE
The source material is a set of photographs.
Now the question is: Is it possible to somehow crop and align (rotate) the pictures (in batches) so that the picture does not move in the process. Is there a console tool for this? of course free.
Original Linux system (ubuntu), used ffmpeg.
Thank you.
Answer the question
In order to leave comments, you need to log in
I post my solution to the problem:
https://gist.github.com/loguntsov/92f07b6c8303f92e...
Run:
pyhton stab.py
The script will read all *.jpg files and put the results in the ./result directory. Of course, it must be created in advance.
Experience tells me that with the help of imagemagick you can do anything, but the automatic rotation and cropping has not yet been googled.
something seems to me that, according to the subject, you need to show unhealthy masochism and patience in order to fix it all ... it seems to me easier to redraw the drawing :) but to prevent this from happening in the future, you can at least:
fix the camera on a tripod, mark the place for the drawing with marks so that the drawing itself "did not move"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question