Shape-Sign is an interactive application that utilizes hand gesture recognition models to help users learn and engage with sign language. This project consists of a frontend interface and a machine learning model running simultaneously.
Check out our demo right here!!!
BeachHacks 8.0 Submission
- Khoi Do @Ben2104: Frontend, UI/UX Design
- Jason Tran @jtran848: Frontend, UI/UX Design
- Kien Pham @ki3n98: Backend, AI/ML Trainer
- Syn Nguyen @synguyen446: Backend, AI/ML Trainer
To run this project, you will need to start both the frontend and the model as a backend on separate terminals. Follow the steps below to set it up.
Clone the repository
git clone [URL repository]
Navigate to the frontend directory:
cd frontend
Install dependencies:
npm install
Run the frontend:
npm run dev
Open a new terminal and navigate to the models directory:
cd models
Make sure pip is installed. Install dependencies.
pip install tensorflow numpy pandas mediapipe opencv-python pycaw
- Tensorflow: model training.
- Numpy/Pandas: data processing.
- Mediapipe: detect hands' landmarks.
- Opencv: capture video.
- Pycaw: mouse control.
Run the models:
python main.py
model = Sequential(
[
# InputLayer((30,63)),
InputLayer((60, 63)),
LSTM(128, return_sequences=True),
LSTM(128, return_sequences=False),
Dense(64, activation="relu"),
Dense(32,activation='relu'),
Dense(y.shape[1], activation="softmax"),
]
)
early_stopping = EarlyStopping(
monitor="val_accuracy", patience=10, restore_best_weights=True
)
model.compile(
loss="categorical_crossentropy", metrics=["accuracy"], optimizer=Adam(0.001)
)model = Sequential([
InputLayer((len(X.columns),)),
Dense(512, activation='relu'),
Dense(256,activation="relu"),
Dense(64,activation='relu'),
Dense(26,activation='softmax')
])
early_stopping = EarlyStopping(monitor='val_accuracy',patience=10,restore_best_weights=True)
model.compile(loss = "categorical_crossentropy", metrics =['accuracy'],optimizer = Adam(0.001))- Frontend: NextJS, ReactJS, TailwindCSS
- BackEnd: Tensorflow, Python