Forum Archive

Cv2 alternative?

Jonathano

image = cv2.imread(image_path)
jpeg_image = cv2.imencode(".jpg", image)[1]
data = jpeg_image.tobytes()

As you know cv2 is not working in pythonista.
But I need to make same as above for ocr api.
Is there any way to do that?

ccc

https://pyto.app has CV2 https://pyto.readthedocs.io/en/latest/opencv.html

cvp

@ccc About Pyto's programmer, she seems to have moved to Switzerland, where you also live. If you know her, could you ask her to give a sample of UI script on Apple Watch (not a complication). Already asked via email and Discord, but no answer. Thanks

Jonathano

@ccc thanks for your suggestion.
I used pyto but that app is not stable.
And I would like to use pythonista.

ccc

app is not stable.

Like it crashes or what?

Jonathano

There are crashes.

Anyway I just solved this with pythonista.
I used pil instead cv2
Thanks again.

cvp

@Jonathano @ccc agree, a lot

henryaukc

@Jonathano agree. I will move if it makes its editor and interface more user friendly and more stable. also wanna see pythonista can resume its development. I suggest it can change to subscription model