Skip to content

Instantly share code, notes, and snippets.

View SajjadRostami's full-sized avatar

Sajjad SajjadRostami

  • Canada, Quebec, Montreal
View GitHub Profile
@takamin
takamin / pepperTopCamera.py
Last active August 4, 2022 14:43
This is a python 2.7 sample to capture the top camera of Aldebaran robot Pepper or NAO. It displays a image with openCV imshow. Press the [ESC] key to exit the capturing
# vim: set fileencoding=utf-8 :
import sys
import numpy as np
import cv2
from naoqi import ALProxy
if(len(sys.argv) <= 2):
print "parameter error"
print "python " + sys.argv[0] + " <ipaddr> <port>"
sys.exit()