lipreading-by-convolutional-neural-network-keras icon indicating copy to clipboard operation
lipreading-by-convolutional-neural-network-keras copied to clipboard

How does the trigger method heardEnter() works?

Open apoorvpatne10 opened this issue 5 years ago • 1 comments

In main.py, I'm curious about how the heardEnter() method is working. When will it ever return true? In my case, I get frames: 999 heardEnter: False record_index: -1 for 999th iteration and nothing happens.

def heardEnter():
    i,o,e = select.select([sys.stdin],[],[],0.0001)
    for s in i:
        if s == sys.stdin:
            input = sys.stdin.readline()
            return True
    return False
...
...
...
while fps._numFrames < args["num_frames"]:
    ..... 
    triggered=heardEnter()
    ..... 

Any kind of help would be appreciated.

apoorvpatne10 avatar Oct 05 '19 11:10 apoorvpatne10

@apoorvpatne10 facing the same issue, did you solved this?

ramyamurali98 avatar May 14 '20 08:05 ramyamurali98