Tudo: Primeiro commit
This commit is contained in:
commit
06a90928dc
4633 files changed
+6327263
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
cd ~/robo_movel/render
|
||||
blender -b -P cena_blender.py -- campus final/campus_rgba.png res=1.0 spp=256 sun=1.5 sunang=50 sky=0.2 exp=-0.2 camh=2.15 tilt=7.8 lens=30 ry=9.0 rx=-1.2 2>&1 | grep -E "salvo|Traceback|Error"
|
||||
python3 compoe.py final/campus_rgba.png fundos/unicap_22.jpg final/robo_unicap_biblioteca.jpg
|
||||
python3 - <<'PY'
|
||||
from PIL import Image
|
||||
import numpy as np
|
||||
c = Image.open('final/robo_unicap_biblioteca.jpg'); w, h = c.size
|
||||
a = np.array(Image.open('final/campus_rgba.png'))[:, :, 3]
|
||||
ys, xs = np.where(a > 200)
|
||||
cx = (xs.min() + xs.max()) // 2
|
||||
ch = int((ys.max() - ys.min()) / 0.42); cw = int(ch * 16 / 9)
|
||||
x0 = max(0, min(w - cw, cx - cw // 2)); y1 = min(h, ys.max() + int(ch * 0.10)); y0 = y1 - ch
|
||||
c.crop((x0, y0, x0 + cw, y1)).save('final/robo_unicap_16x9.jpg', quality=95)
|
||||
print("corte", cw, ch)
|
||||
PY
|
||||
blender -b -P cena_blender.py -- estudio final/robo_estudio.png res=1.0 spp=256 lux=0.18 2>&1 | grep -E "salvo|Traceback|Error"
|
||||
echo FIM
|
||||
Reference in new issue
Block a user