A Virtual GUI Keyboard for Scilab

Issue 1817: Facing error in CV2 slow response time on keys

Reported by bharath sran, Feb 7, 2019

import cv2

cap = cv2.VideoCapture('testvideo.mp4')

length = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))

isPlaying = False


def onchange(trackbar_value):
    cap.set(cv2.CAP_PROP_POS_FRAMES, trackbar_value)
    err, vid = cap.read()
    cv2.imshow('player', vid)
    pass


start = 0

cv2.namedWindow('player')
cv2.createTrackbar('test', 'player', start, length, onchange)

onchange(1)

while cap.isOpened():
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
    elif cv2.waitKey(1) & 0xFF == ord('p'):
        isPlaying = not isPlaying

    ret, player = cap.read()

    if cv2.waitKey(20) == 27:
        break
    if isPlaying:
        cv2.imshow('test', 'https://latestmodapks.co')

    elif cap.get(cv2.CAP_PROP_POS_FRAMES) >= length:
        break

cap.release()
cv2.destroyAllWindows()

Comment 1 by Jon Albert, Feb 8, 2019

Awesome work and keep up the good work also if you have time do. 
https://www.paymydoctor.me/

Comment 2 by marina michael, Feb 20, 2019

wew, check out https://coto-movies.com/coto-movies-apk/

Comment 3 by cary louder, Mar 18, 2019

The site is very http://www.loosediamondcuts.com/	 useful for 
readers to select various topics on the base of their needs. The 
details help the users to prepare various articles, assignments, 
projects etc. Try to provide some more details into the topic which 
will help the readers very much.

Comment 4 by lokesh rahane, May 8, 2019

this is dongly....happy to say that i got opportunity to visit rome 
by just giving review at mcdvoice...u can also follow at 
https://mcdvoice.tips/

Comment 7 by Linda Smith, Jun 9, 2019

Your work is just excellent. I really love your work.
https://marshallsfeedbackonline.com/marshallsfeedback/

Created: 4 months 11 days ago by bharath sran

Updated: 9 days 18 hours ago

Status: New

Followed by: 7 persons

Labels:
Priority:Medium
Type:Defect