I have a fully functional gaze tracking code Python project which has been tested directly through the terminal. My guide wants me to implement this over the web. He wants all the processing to be done on the client-side because our servers are not powerful enough to handle multiple requests at the same time. My code involves the use of libraries like OpenCV, DLIB and mediapipe. I wanted to know whether is it possible to implement the code on the client-side by using python itself.
And project contains import statements as
import cv2
import dlib
from enum import Enum
from threading import Timer
import pyautogui
Even if I switch to JavaScript for client-side scripting will it result in performance losses, is there any way to avoid them? Is there any other way to implement the code on the client-side by keeping everything in python?