python cv2 cara memperbarui gambar

# Call imshow multiple times to update image.
# waitKey(milliseconds) waits a number of milliseconds before updating the image
while True:
    cv2.imshow('image', img)
    cv2.waitKey(1)
Flyhouse_Squarewheel