Please help me to make a GUI for this code that has 2 buttons which function is to exit or start the recording the Gui must replace this code function:
pressedKey = cv2.waitKey(1) & 0xFF
if pressedKey == 32: # Record pressing r
recording = True
frame_count = 0...
#depemdent import
import cv2
import numpy as np
from sklearn.model_selection import train_test_split
from tensorflow.keras.utils import to_categorical
import os
from matplotlib import pyplot as plt
import time
from sklearn.model_selection import train_test_split
from tensorflow.keras.utils...