OPENBLAS_NUM_THREADS=1 python /workspace/scratch/hardseg.py HH-7158
python - <<'PY'
from PIL import Image
import json
s='HH-7158';b=json.load(open('/workspace/scratch/detailboxes.json'));a=Image.open('/workspace/input/photos/'+s+'.tif');m=Image.open('/workspace/scratch/hard/'+s+'.png');o=Image.new('RGB',a.size,(35,99,115));o.paste(a,(0,0),m);o.crop(b[s]).save('/workspace/scratch/hard/'+s+'_detail.jpg')
PY