Third party modules for scriptable

Hello,
I want to integrate the functionalities of “image to text” (or OCR ) in my shortcut. I saw that there is an import module command in scriptable, so I thought whether integrating open CV in it might be possible.
If not possible, pls suggest any other way to do it.
(PS. Java script novice)

I’m using Microsoft Cognitive Services with Scriptable for OCR.

Have a look at my repo. https://github.com/anyhotcountry/scriptable/blob/master/src/lib/ocr.js