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.1.tar.gz (6.0 kB 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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lsvtest-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ae641c8f05a6e77cf2c4109c4dbefb184232445ce9dcd00b891dffdb11685811
MD5 98ec95250a3b1d84612d54a36917991e
BLAKE2b-256 ba5fb575935e16c07e2e5fe24eef7ed0a44a1c1dbdb2900d6b94716f5c0eec89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsvtest-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5be5fc22f87a79062704f8f21fc0c4689b4b576fe8999761316e03b77a06a823
MD5 b4a880ce819aa3402a4ed2f28c6e7fe6
BLAKE2b-256 5aff4d92f408700a258ac7ff403f2149957c5afdef5d4947ec04c238e3f3f5ee

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