tony-xlh / vision-camera-dynamsoft-label-recognizer

React Native Vision Camera Frame Processor Plugin of Dynamsoft Label Recognizer
MIT License
28 stars 4 forks source link

Frame Processor Error: Regular javascript function '' cannot be shared. Try decorating the function with the 'worklet' keyword to allow the javascript function to be used as a worklet., js engine: VisionCamer #4

Open tomhopkins opened 7 months ago

tomhopkins commented 7 months ago

Hi, thanks very much for this pluggin.

I'm persistently getting:

Frame Processor Error: Regular javascript function '' cannot be shared. Try decorating the function with the 'worklet' keyword to allow the javascript function to be used as a worklet., js engine: VisionCamera

When running the example code on a dev build (expo).

Any pointers would be greatly appreciated.

Tom

xulihang commented 7 months ago

What is your frame processor function look like?

I've updated the example to vision camera 3.9.0. You can try to update it and try again.

tomhopkins commented 6 months ago

Thanks, It was the anonymous function that was triggering it I think. I ended up copying your MRZ specific example (https://github.com/tony-xlh/react-native-mrz-scanner) and it compiled. I actually had a lot of trouble getting it to recognise MRZ (perhaps to do with model and custom template). So I've ended up creating my demo another way. Will come back to Dynamasoft if we take the feature into production.

Soban71 commented 6 months ago

@xulihang @tony-xlh What is the issue can you tell please as it is not recongizing text label and showing me license expired alert this license is for which thing?