Using OpenCV in Android Studio

Modification based on above reference:

https://blog.csdn.net/qq_41885673/article/details/115324283

The following content is mainly based on the above detailed information and the following modifications have been made

1. Import of OpenCV Java library

Import the java library in opencv-andriod through File-New-Import Module. It should be noted here that the import is to locate the directory under sdk, and there is no need to locate it in sdk\java! It is best to change the module name from java to opencv by the way.
insert image description here

2. Modify the specific details in build:gradle(:opencv) as follows

insert image description here

Guess you like

Origin blog.csdn.net/weixin_41807182/article/details/126609554