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.3.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.3-py3-none-any.whl (17.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lsvtest-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 c6c42f0c7d2f9c8d1f4576c7989f8448cee9d2fec8f6447c23621d628459ff91
MD5 4878a7b7d1e52df76614836c891abfb7
BLAKE2b-256 91b536c4df9fe949973726b148891b3e8852dc8fdaddbccb060d5203cbe8e0ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsvtest-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7ff2bc59248862afd50aab911f8a4501036e97f2a6415874be4950e061910cec
MD5 feb88f75544a0fbfa22f5235111c24b3
BLAKE2b-256 ad23dd04449d44c0660a773dba4870e0c0fe23deea88692d2dbc2d8dfcecf6ba

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