Batch photo processing in Blender

  • Tutorial


Blender's free-to-use 3D editor has tremendous possibilities for creating three-dimensional graphics, but this is not all that he can do. In this tutorial, I want to show how using this wonderful program to make fast and high-quality batch processing of photos for later use in creating rotation animation (circling an object, a demonstration from all sides, photo-360).

In this lesson we will not go into the detailed settings and will use the previously created template. No special knowledge should be required, there will be enough little experience in image processing.

Where do legs grow
Уже долгое время я участвую в различных проектах, так или иначе связанных с трехмерной графикой и визуализацией. Приходилось руководить студией, строить рендер-фермы, проектировать и воплощать «в железе» специальное оборудование для 3D-фото и 3D-сканирования.

Одним из проектов был веб-сервис, предоставляющий возможность интерактивной демонстрации товаров для интернет-магазинов. Наши попытки использовать для этого «настоящее» полигональное 3D разбились о стоимость масштабирования такого подхода, о проблемы с поддержкой необходимых технологий браузерами и «искусственность» конечного результата. Победителем оказался гораздо более простой метод: фотографии предметов с разных ракурсов сшивались в анимацию вращения и все это управлялось специальным плеером. Думаю многие видели подобные штуки.

Однако, получить стопку фотографий — далеко не достаточно, изображения нужно соответствующим образом подготовить к публикации: сделать цветокоррекцию, убрать лишнее, выровнять, откадрировать и т. д. И такой работы может быть очень много.

Ранее нашей командой уже создавались подобные уроки, тогда мы использовали иные инструменты:
Adobe Camera Raw:


В настоящий момент, мы используем новый способ обработки, и, по совокупности параметров, считаем его лучшим.

What the template can do:

  1. Makes the background around the object completely white.
  2. Adds logo
  3. Gives you the opportunity to make high-quality color correction
  4. Optimizes the sequence for quick download from the Internet
  5. Color changes in individual elements

Benefits of using Blender:

  1. Free
  2. Cross platform
  3. Works in Linux (Scaling your business you don’t have to spend money on operating systems and photo processing programs)
  4. Full video work
  5. There is the possibility of batch optimization of images before publishing.
  6. Supports GPU - to speed up processing
  7. Takes little disk space, unlike its paid competitors

Optimize your processing

For objects of the same type, the processing parameters are set once and after that you can simply open them in one scene, start the rendering process. Thus, you can save several templates that will process your type of objects.

Download template (Google Drive)

As a test sequence, I took a white shoe, which was photographed against a white background.

The lighting scheme is created using four table diode lamps from a popular furniture store.

The result of processing in the form of GIF animation

Full-length sequence can be viewed on Google Drive

STEP 1 - Install Blender

a) Open the prepared scene as demonstrated in the video.
b) Import the prepared source sequence into our scene.
c) Specify the required number of frames, in our sequence they are 100 .
d) To display the current frame, press the button on the F12 keyboard or, in the program interface, the Render button

  • To move the canvas click on the scroll mouse
  • To scale the canvas, rotate the mouse scroll
  • In the process of importing a sequence, press the “A” button on the keyboard to select all files.

STEP 2 - Overlay and Position Your Logo

For training, you can use the logo from the template (Open Source project) or immediately use your own.
The logo can be used in the png format with transparency.

STEP 3 - Editing a mask to lighten the edges of the frame

This is a gradient mask, a smooth transition from transparent to white color is going from black to green. Move, edit the black curve and the green will parallel your changes in parallel. To change the smoothness of the gradient transition, change the distance between the black and green lines.

STEP 4 - Align the rotating object relative to the frame

STEP 5 - Resizing a photo of a photo-360 relative to the proportions of rendering

STEP 6 - Color Correction

STEP 7 - Editing levels to adjust the overall contrast of the object lighting

STEP 8 - Color Replacement

STEP 9 - Adjust the color tone and replace the selected color

STEP 10 - Adjusting the light and shadows

STEP 11 - Saving the processed sequence (render)

Select the required frame resolution to save the sequence.
The default is 1920x1080.
To begin processing, click the Animation button.

To speed up the rendering process, unused nodes should be disabled.

At the moment, we are continuing our experiments and if it will be interesting to the respectable public, I will be happy to share the results.

Also popular now: