I am not sure if you can, however other people claim to have done it? (It looks pretty complicated to me)
I think the anvil-extras package just started or already has implemented web workers, I don’t know how this would all fit together, though.
https://www.google.com/search?q=can+i+use+cv2+in+browser
Also your clone link seems to be broken now: