Documentation & page contents

Get a Pattern in · 05 · from_photos

DTG from product photos

You have product photos. Infer a Pattern, then show a print.

You have

product photos

You want

Infer a Pattern, then show a print

You have product photos. You want a Pattern that looks like those photos, then DTG on a blank.

This inlet is visual-match, not a factory cut. After Pattern exists, the jobs are the same as dress_blank.

Steps

  1. pattern.from_reference_images pattern
  2. construction.propose construction
  3. body.select body
  4. material.get material
  5. garment.drape run
  6. colorway.apply run
  7. graphic.apply run
  8. garment.render render

Sample inputs

KeyValue
product_idvb-hd-bc3719
images["samples/patterns/reference_images/vb-hd-bc3719/front.png","samples/patterns/reference_images/vb-hd-bc3719/back.png","samples/patterns/reference_images/vb-hd-bc3719/side.png"]
bodysamples/bodies/male_m_native_straight.json
material_idfleece_250gsm
colorwaysamples/colorways/black.json
artworksamples/artwork/dtg_tee/map.json

Expected fixture checks

These are the checks declared by this sample, not a captured production result. Referenced sample files are included in the gated SDK checkout.

{
  "run.phase": "presented"
}

Run

Obtain and install the SDK before running this example from its root directory.

python examples/run_workflow.py from_photos