emnikhil / Sign-Language-To-Text-Conversion

Major Project - Sign Language To Text Conversion Using Python, Computer Vision and Machine Learning
MIT License
214 stars 97 forks source link

Long Delay in Capturing Characters During Input #13

Closed ckavdjr closed 4 months ago

ckavdjr commented 4 months ago

It's taking more than 30 seconds without interruption to capture a single character. Is there any way to shorten this to maybe 5 sec.

ckavdjr commented 4 months ago

I found the solution.


if self.ct[self.current_symbol] > 60:           # Change frames here

    for i in ascii_uppercase:
        if i == self.current_symbol:
            continue

        tmp = self.ct[self.current_symbol] - self.ct[i]

        if tmp < 0:
            tmp *= -1

        if tmp <= 20:                                  # Make this lower than the above frames
            self.ct["blank"] = 0

            for i in ascii_uppercase:
                self.ct[i] = 0
            return

    self.ct["blank"] = 0