graphai.core.common.multimedia_utils module

graphai.core.common.multimedia_utils.get_video_token_status(token)
graphai.core.common.multimedia_utils.get_image_token_status(token)
graphai.core.common.multimedia_utils.get_audio_token_status(token)
graphai.core.common.multimedia_utils.perform_probe(input_filename_with_path)

Performs a probe using ffprobe :param input_filename_with_path: Input file path

Returns:

Probe results, see ffprobe documentation

graphai.core.common.multimedia_utils.get_available_streams(input_filename_with_path)
graphai.core.common.multimedia_utils.perform_tesseract_ocr(image_path, language=None)

Performs OCR on an image using Tesseract :param image_path: Full path of the image file :param language: Language of the image file

Returns:

Extracted text

graphai.core.common.multimedia_utils.detect_text_language(s)

Detects the language of the provided string :param s: String to detect language for

Returns:

Language of the string