Skip to main content

capture()

Description#

Takes a picture using the PiCamera and saves it in an array.

Syntax#

capture()

Parameters#

None

Returns#

Numpy array representing captured image   (type: ndarray)

Example Code#
Python#
#Python code
from zumi.util.camera import Camera
import time
camera=Camera()
camera.start_camera()
frame = camera.capture()
camera.show_image(frame)
time.sleep(5)
camera.close()