Skip to content

Instantly share code, notes, and snippets.

View AliSheheryar's full-sized avatar
🌠
Quest for LOVE

Ali Sheheryar AliSheheryar

🌠
Quest for LOVE
View GitHub Profile
@baali
baali / convert.py
Created August 30, 2012 10:03
TO convert YUV422 to YUV444 and eventually RGB format jpg file
import vision_definitions
import numpy
import time
import Image
camProxy = ALProxy("ALVideoDevice", NAO_IP, PORT)
t0 = time.time()
# block to capture image from NAO's camera with 640x480 resolution and YUV422 colorspace
client = camProxy.subscribe("client", vision_definitions.kVGA, vision_definitions.kYUV422ColorSpace, 5)