aarongrider / vision-camera-ocr

VisionCamera Frame Processor Plugin to detect text in real time using MLKit Text Detector (OCR)
MIT License
243 stars 93 forks source link

Class 'OCRFrameProcessorPlugin' is not abstract and does not implement abstract base class member #26

Open DeveloperMCD opened 1 year ago

DeveloperMCD commented 1 year ago

I'm getting a build error with the latest vision-camera-ocr

RN-Vision-Camera 3.0.0-rc5 React Native 0.72.4

FULL DETAILS of the build failure, including information about my build environment: https://scans.gradle.com/s/ygeaopffvyqfs

e: /home/matthew/dev/stackbayapp/node_modules/vision-camera-ocr/android/src/main/java/com/visioncameraocr/OCRFrameProcessorPlugin.kt: (18, 1): Class 'OCRFrameProcessorPlugin' is not abstract and does not implement abstract base class member public abstract fun callback(p0: Frame, p1: ReadableNativeMap?): Any? defined in com.mrousavy.camera.frameprocessor.FrameProcessorPlugin e: /home/matthew/dev/stackbayapp/node_modules/vision-camera-ocr/android/src/main/java/com/visioncameraocr/OCRFrameProcessorPlugin.kt: (18, 53): Too many arguments for public constructor FrameProcessorPlugin() defined in com.mrousavy.camera.frameprocessor.FrameProcessorPlugin e: /home/matthew/dev/stackbayapp/node_modules/vision-camera-ocr/android/src/main/java/com/visioncameraocr/OCRFrameProcessorPlugin.kt: (99, 5): 'callback' overrides nothing e: /home/matthew/dev/stackbayapp/node_modules/vision-camera-ocr/android/src/main/java/com/visioncameraocr/VisionCameraOcrPackage.kt: (12, 30): Unresolved reference: register

FAILURE: Build failed with an exception.

vishva-simform commented 1 year ago

I am also facing same issue, any updates?

AhsanSheikh02 commented 1 year ago

@aarongrider @vishva-simform @DeveloperMCD I am facing the same issue right now. Did you solve this issue?

muhammedjailam commented 1 year ago

Getting the Same error, Pls solve the issue @aarongrider

mse-moises commented 1 year ago

Same here

pepperav commented 1 year ago

me too! Any updates or suggestions about how to solve? Thank you 🙏

qamarcloud commented 10 months ago

I am also unable to compile vsion-camera-ocr with react-native vision-camera v3.

Is there any solution?

Following is the error that I am getting:

e: /Users/qamartahir/mobile/RepoStag11/node_modules/vision-camera-ocr/android/src/main/java/com/visioncameraocr/OCRFrameProcessorPlugin.kt: (18, 1): Class 'OCRFrameProcessorPlugin' is not abstract and does not implement abstract base class member public abstract fun callback(p0: Frame, p1: (Mutable)Map<String!, Any!>?): Any? defined in com.mrousavy.camera.frameprocessor.FrameProcessorPlugin e: /Users/qamartahir/mobile/RepoStag11/node_modules/vision-camera-ocr/android/src/main/java/com/visioncameraocr/OCRFrameProcessorPlugin.kt: (18, 53): Type mismatch: inferred type is String but (Mutable)Map<String!, Any!>? was expected e: /Users/qamartahir/mobile/RepoStag11/node_modules/vision-camera-ocr/android/src/main/java/com/visioncameraocr/OCRFrameProcessorPlugin.kt: (99, 5): 'callback' overrides nothing e: /Users/qamartahir/mobile/RepoStag11/node_modules/vision-camera-ocr/android/src/main/java/com/visioncameraocr/VisionCameraOcrPackage.kt: (12, 30): Unresolved reference: register

WesleyHuchit commented 5 months ago

Same here

kukadiyaAni commented 3 months ago

@qamarcloud I got same issue any update?