How to Import OpenCV Stitching Module into React Native Android App with C++ (New Architecture)

Android/Java How to Import OpenCV Stitching Module into React Native Android App with C++ (New Architecture)

Hello OpenCV team,

I’m currently working on a React Native Android project and need to incorporate OpenCV’s stitching module for panorama creation. I’m using C++ in my project as part of the new architecture setup in React Native (Fabric/Bridging).

Could you please guide me on the following points?

  1. Including OpenCV Stitching Module in C++: What is the recommended way to import and configure the stitching module specifically for React Native’s new architecture? Are there specific setup instructions for adding this module, especially when using CMakeLists or other build configurations in the Android environment?

  2. Integration with React Native: Are there specific considerations or configurations needed when using OpenCV’s C++ libraries in a React Native app, especially with the new architecture changes? If there are any examples, it would be extremely helpful.

  3. Dependencies and Compatibility: Are there any additional dependencies or compatibility issues with OpenCV’s stitching module when targeting the Android platform using C++ within React Native?

  4. Performance Optimization: Any tips on optimizing the stitching process for better performance on mobile devices would be appreciated.

Thank you in advance for your guidance!