From ac87fb2b3d2b3348b7855b2fc0e0f5e1aa990e54 Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:36:45 -0700 Subject: [PATCH] Auto-update: Tue Aug 6 14:36:45 PDT 2024 --- sijapi/utilities.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sijapi/utilities.py b/sijapi/utilities.py index 4894286..a1ab4ae 100644 --- a/sijapi/utilities.py +++ b/sijapi/utilities.py @@ -522,6 +522,10 @@ def resize_and_convert_image(image_path, max_size=2160, quality=80): return img_byte_arr +def index_to_braille(v1a, v1b, v2a, v2b, v3a, v3b): + return (v1a * 1 + v1b * 8 + v2a * 2 + v2b * 16 + v3a * 4 + v3b * 32) + + def load_geonames_data(path: str): columns = ['geonameid', 'name', 'asciiname', 'alternatenames', 'latitude', 'longitude', 'feature_class', 'feature_code',