0

Well i am running some python scripts to test several features on my android app and I am using the monkeyrunner tool and everything works great. But to test some features, I need to use the OpenCV module which I can't import in monkeyrunner. Is there any way to import this library?

import cv2

Traceback (most recent call last): File "", line 1, in ImportError: No module named cv2

Angelo Catana
  • 27
  • 2
  • 6
  • You can import openCV directly in android! I think is hard to import directly in monkeyrunner – Roberto Manfreda Oct 30 '18 at 14:29
  • And how can I do that? – Angelo Catana Oct 30 '18 at 16:30
  • This so thread refers to your question. I think this is the best way https://stackoverflow.com/questions/27406303/opencv-in-android-studio#27421494 As advance i can tell to you to use the split abi in gradle when you compile a signed apk. Using split abi reduces the dimension of your compiled apk from ~90 MB to ~10 MB. – Roberto Manfreda Oct 31 '18 at 10:33
  • You should be able to use OpenCV with [AndroidViewClient](https://github.com/dtmilano/AndroidViewClient) – Diego Torres Milano Nov 04 '18 at 20:28

0 Answers0