소스 뷰어
from picamzero import Camera
from time import sleep

# 사진 찍기
if "cam" in globals() : del cam
cam = Camera()
sleep( 0.1 )
file_name = cam.take_photo('test.jpg')
print( f"A Photo({file_name}) was taken." )

# 사진 출력
import matplotlib.pyplot as plt
import matplotlib.image as mpimg

plt.imshow( mpimg.imread(file_name) ) 
plt.show()

# 카메라 해제
del cam
A Photo(test.jpg) was taken.
No description has been provided for this image