Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To update openCv libraries to the latest (i.e. 4.5.1) #42

Open
iuri opened this issue Aug 30, 2021 · 2 comments
Open

To update openCv libraries to the latest (i.e. 4.5.1) #42

iuri opened this issue Aug 30, 2021 · 2 comments

Comments

@iuri
Copy link
Collaborator

iuri commented Aug 30, 2021

Hello Adam,
We've successfully installed react-native-opencv3-tests, and all modules worked fine in my Android device (Motorola).
Unfortunately, the didn't work in a Samsung device.
We have no clue what's causing the problem. All App modules (i.e. CvCameraPreview, CvFaceDetection, ...) just stop, and all of sudden the app shuts down and the screen close after 1 or 2 minutes later, while executing, displaying a warning message.

In the apk release installation, the behavior is a bit different. The app just restart after 1 or 2 minutes later when running FaceDetection Screen for instance.

As this problems is present in all modules, we believe it's located at react-native-opencv3 module. We wondered if upgrading openCv libraries from 3 to the latest (i.e. 4.5.1) would fix the bug.

if so, How could we upgrade OpenCV kernel ?
How could we just replace openCv3 kernel to 4.5.1?

Best wishes,
I

@iuri
Copy link
Collaborator Author

iuri commented Aug 30, 2021

So far, we found a thread in StackOverflow Forum, where we could match similarities in the process of importing OpenCV lib to RN, and from there start to evolve in our upgrading openCV core's task.
https://stackoverflow.com/questions/59800761/how-can-i-import-opencv-library-to-react-native-project?rq=1

However, this thread is related to another RN OpenCV provider/module (i.e. react-native-opencv-tutorial) from BrainHub website, thus we`re still stuck
https://github.com/brainhubeu/react-native-opencv-tutorial/tree/master/android/app/src/main/java/com/reactlibrary

We've downloaded OpenCV SDK v.4.5.3 https://opencv.org/releases/
and now we are investigating (ad-hoc process) how could we import this newest SDK into RN using directly Android Studio.

All that has been done, based in the assumption that upgrading OpenCV to 4.5.3 will solve the "unwanted shutdown" problem of the app.

Meaning, we don`t know 100% of th cause.

Were 100% that the problem is in react-native-openCV3 module, but we dont know where.
Perhaps it could be a hardware constraint of Samsung devices, since the app works ust fine in the Motorola's

@iuri
Copy link
Collaborator Author

iuri commented Aug 31, 2021

Nice and Official Documentation https://opencv.org/android/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant