TypeError: <unknown> is not a numpy array - Raspberry Pi Forums


hi, thank help. question simple: how convert raspistill data opencv processing.

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)
want use different opencv processing techniques, before need know doing wrong.

bests
svato



raspberrypi



Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support