staywithme23 / lipreading-by-convolutional-neural-network-keras

demo code for lip reading
21 stars 15 forks source link

How does the trigger method heardEnter() works? #5

Open apoorvpatne10 opened 4 years ago

apoorvpatne10 commented 4 years ago

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.

ramyamurali98 commented 4 years ago

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