cayosamuel / ReactNative

0 stars 0 forks source link

React-native openCV environment set up #1

Open cayosamuel opened 2 weeks ago

cayosamuel commented 2 weeks ago

Follow this guide : https://brainhub.eu/library/opencv-react-native-image-processing#opencv-basic-preparation

Create environment for IOS and ANDROID

Coding should be done in the Demo/src/Screens/Scanner for the next issue.

Build should not fail.

cayosamuel commented 2 weeks ago

Error For IOS to be fixed, can't find the solution:

Having an error in the RNOpenCvLibrary.h inside the Demo/ios/OpenCV :

if __has_include("RCTBridgeModule.h")

import "RCTBridgeModule.h"

else

import <React/RCTBridgeModule.h> //Unrecognized prepocessing directive

endif

import <opencv2/imgproc/imgproc.hpp>. //Unrecognized prepocessing directive

@interface RNOpenCvLibrary : NSObject //unrecognized token

@end //unrecognized token


Here is the structure of my directory :

Screenshot 2024-10-12 at 11 54 35 PM