Horje
cv2 opencv-python imshow while loop Code Example
cv2 opencv-python imshow while loop
import cv2
capture = cv2.VideoCapture(path)
while True:
   ret,frame = capture.read(0)
   region_of_interest = detect(frame)

    if region_of_interest != 0:
        # if you want to show somenthing better put a text
        cv2.putText(frame, data, (cord1, cord2), cv2.FONT_HERSHEY_SIMPLEX,0.5, (0, 255, 0), 2)


    cv2.imshow('Normal Video',frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

capture.release()
cv2.destroyAllWindows()




Python

Related
Coefficient of variation python Code Example Coefficient of variation python Code Example
python program to check whether a specified value is contained in a group of values Code Example python program to check whether a specified value is contained in a group of values Code Example
pandas drop 1970 Code Example pandas drop 1970 Code Example
qdate to date Code Example qdate to date Code Example
matplotlib savefig cutting off graph Code Example matplotlib savefig cutting off graph Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7