TypeError: <unknown> is not a numpy array - Raspberry Pi Forums
hi, thank help. question simple: how convert raspistill data opencv processing.
want use different opencv processing techniques, before need know doing wrong.
bests
svato
code: select all
def capture(settings, width, height): command = "raspistill %s -w %s -h %s -t 200 -e bmp -n -o -" % (settings, width, height) imagedata = stringio.stringio() imagedata.write(subprocess.check_output(command, shell=true)) imagedata.seek(0) im = image.open(imagedata) buffer = im.load() imagedata.close() return im,buffer
code: select all
image1, buffer1 = capture(camerasettings, testwidth, testheight) cv2.imshow('image',image1)
bests
svato
raspberrypi
Comments
Post a Comment