I'm using Python to try and make a software that just displays a picture of the user, as a test. I do this using Open CV with the following code:
import cv2 as cv
cam = cv.VideoCapture(0)
result, image = cam.read()
cv.imshow("USER", image)
cv.waitKey(1000)
cv.destroyWindow("USER")
The image displays correctly, but it always uses the image from the previous run. I cannot figure out why this is.
I've browsed the internet and stackoverflow, but no similar issues could be found. Any help would be extraordinary.