Tsmith2024 commited on
Commit
d1bf684
·
verified ·
1 Parent(s): b45f032

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -197,6 +197,14 @@ with tempfile.TemporaryDirectory() as tmpdir:
197
  warped_pil = to_pil_image(warped[0])
198
  fusion_pil = to_pil_image(fusion_image[0])
199
 
 
 
 
 
 
 
 
 
200
  return warped_pil, fusion_pil
201
 
202
  # Blocks.
 
197
  warped_pil = to_pil_image(warped[0])
198
  fusion_pil = to_pil_image(fusion_image[0])
199
 
200
+ # Create full SBS for Quest 2
201
+ left_resized = image.resize((1832, 1920))
202
+ right_resized = fusion_pil.resize((1832, 1920))
203
+ sbs = Image.new('RGB', (3664, 1920))
204
+ sbs.paste(left_resized, (0, 0))
205
+ sbs.paste(right_resized, (1832, 0))
206
+ sbs.save('/home/user/app/sbs_quest2.jpg', quality=95)
207
+
208
  return warped_pil, fusion_pil
209
 
210
  # Blocks.