Skip to main content

Recognize up to 10 signs of the LSV (Venezuelan Sign Language)

Project description

lsvtest

lsvtest es un paquete Python que proporciona funcionalidades para la detección y reconocimiento de LSV (Lenguaje de Señas Venezolano).

Instalación

Puedes instalar lsvtest utilizando pip:

pip install lsvtest

Uso Para usar lsvtest, sigue estos pasos:

Crear una estructura de proyectoCrea una estructura de proyecto como la siguiente:

project/
│
├── main.py
└── script.py

Contenido de main.py

from flask import Flask, jsonify
import subprocess

app = Flask(__name__)

# Variable to keep track of the process
process = None

@app.route("/start", methods=["GET"])
def start_process():
    global process
    if process is None:
        # Replace 'your_command_here' with the command you want to run
        process = subprocess.Popen(
            [
                "python",
                "-c",
                'import sys; sys.path.append("."); import script; script.start()',
            ]
        )
        return jsonify({"status": "Process started"}), 200
    else:
        return jsonify({"status": "Process is already running"}), 200

@app.route("/stop", methods=["GET"])
def stop_process():
    global process
    if process is not None:
        process.terminate()  # Sends SIGTERM
        process = None
        return jsonify({"status": "Process stopped"}), 200
    else:
        return jsonify({"status": "No process is running"}), 200

if __name__ == "__main__":
    app.run(debug=True, port=5000)

Contenido de script.py

from lsvtest import LSVRecognition

def start():
    recognition_service = LSVRecognition()

    recognition_service.continuous_detection(
        source=0, 
        output=lambda token: print(token), 
        wsl_compatibility=True, 
        show_video=True
    )

Ejecuta el servidor Flask desde la terminal en la carpeta del proyecto:

python main.py

Envía una solicitud GET a http://localhost:5000/start para iniciar el proceso de reconocimiento.

Envía una solicitud GET a http://localhost:5000/stop para detener el proceso de reconocimiento.

Puedes personalizar el reconocimiento modificando los parámetros de continuous_detection en script.py.

Problemas al instalar

Si tienes problemas al momento de instalar el paquete, prueba ejecutar primero:

pip install mediapipe opencv-python scikit-learn  tensorflow  

Y luego prueba a instalar el paquete nuevamente

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lsvtest-0.0.2.tar.gz (17.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lsvtest-0.0.2-py3-none-any.whl (17.3 MB view details)

Uploaded Python 3

File details

Details for the file lsvtest-0.0.2.tar.gz.

File metadata

  • Download URL: lsvtest-0.0.2.tar.gz
  • Upload date:
  • Size: 17.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for lsvtest-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f38b900bb6ed928f909ccb9df031b40a336ebcf00551423e9963cbb3e3515282
MD5 d47817b301ea53dfba92ffe4f09a04fe
BLAKE2b-256 55fe665e9a60edd00cdbff174d1cf3808f45f7b3265bdc0859331c09a890eb7f

See more details on using hashes here.

File details

Details for the file lsvtest-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: lsvtest-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for lsvtest-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eafdbebcc6ae305085163d2d338929b3ce9a1092cb2a30bb841ab88c2d57ec9b
MD5 39d43bb79d13fa55c4e67a38e5eeea11
BLAKE2b-256 123104247892a260628516ff3b060a9fc3b91b39e2ae6eeff343812a390c8adb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page