COSC345CoolGroupASLtoSpeech
BridgingASLandspokenlanguagewithAI:Translategesturestospeechforinclusivecommunication.
Public Member Functions | Public Attributes | List of all members
inference_classifier.PythonTest Class Reference

A class representing sign language detection using webcam and trained model. More...

Public Member Functions

def __init__ (self)
 Initialize the PythonTest class. More...
 
def sign_identifier (self)
 Perform sign language identification on a frame. More...
 

Public Attributes

 img_path
 Declear the current frame of the webcam. More...
 
 model_dict
 Load the trained sign-lange detection model. More...
 
 model
 Declare variable model. More...
 
 cap
 Declare opencv. More...
 
 mp_hands
 Declare variable mp_hands from Mediapipe module. More...
 
 mp_drawing
 Declare variable mp_drawing from Mediapipe module. More...
 
 mp_drawing_styles
 Declare variable mp_drawing_styles from Mediapipe module. More...
 
 hands
 Declare variable hands. More...
 
 fourcc
 Setting opencv. More...
 
 out
 Setting opencv. More...
 

Detailed Description

A class representing sign language detection using webcam and trained model.

This class provides functionalities for webcam-based sign language detection using the MediaPipe library for hand tracking and a trained model for sign language recognition.

Constructor & Destructor Documentation

◆ __init__()

def inference_classifier.PythonTest.__init__ (   self)

Initialize the PythonTest class.

This constructor initializes the necessary components for sign language detection.

Member Function Documentation

◆ sign_identifier()

def inference_classifier.PythonTest.sign_identifier (   self)

Perform sign language identification on a frame.

This method performs sign language identification on a given frame using hand landmarks and a trained model.

Returns
The predicted sign language character.

Member Data Documentation

◆ cap

inference_classifier.PythonTest.cap

Declare opencv.

◆ fourcc

inference_classifier.PythonTest.fourcc

Setting opencv.

◆ hands

inference_classifier.PythonTest.hands

Declare variable hands.

◆ img_path

inference_classifier.PythonTest.img_path

Declear the current frame of the webcam.

◆ model

inference_classifier.PythonTest.model

Declare variable model.

◆ model_dict

inference_classifier.PythonTest.model_dict

Load the trained sign-lange detection model.

◆ mp_drawing

inference_classifier.PythonTest.mp_drawing

Declare variable mp_drawing from Mediapipe module.

◆ mp_drawing_styles

inference_classifier.PythonTest.mp_drawing_styles

Declare variable mp_drawing_styles from Mediapipe module.

◆ mp_hands

inference_classifier.PythonTest.mp_hands

Declare variable mp_hands from Mediapipe module.

◆ out

inference_classifier.PythonTest.out

Setting opencv.


The documentation for this class was generated from the following file: