I want to build a scanner where I scan different labels (handdrawn or printed, with text and numbers on it, possibly in different colors) and want to call a hook everytime I "see" specific types of items on these labels, e.g. a title and a price.
I tried the solution hinted at in https://community.flutterflow.io/ask-the-community/post/text-extraction-ocr-from-camera-stream-GHY23H1X8OinQfQ
It compiles, but on the web ("Test Mode") no permission for the camera is requested, but in the console there are errors that this permission is missing.
I therefore gave that permission manually to the website, and these errors vanished, but still I am not able to see any camera stream.
This is the console output when I open the BottomSheet (screenshot), which only consists of the custom widget (100% width and height) defined in the post mentioned above:
camera_service.dart:37 [Violation] Permissions policy violation: camera is not allowed in this document.
errors.dart:288 Uncaught (in promise) DartError:
CameraException(CameraAccessDenied, The camera cannot be used or the
permission to access the camera is not granted.)
at Object.throw_ [as throw] (errors.dart:288:3)
at camera_web.dart:197:7
at async_patch.dart:610:19
at async_patch.dart:634:23
at async_patch.dart:585:5
at RootZone.runBinary (zone.dart:1681:54)
at async.FutureListener.thenAwait.handleError (future_impl.dart:219:22)
at handleError (future_impl.dart:914:46)
at Future.propagateToListeners (future_impl.dart:935:13)
at [_completeError] (future_impl.dart:715:5)
at async._AsyncAwaitCompleter.new.completeError (async_patch.dart:503:7)
at Object._asyncRethrow (async_patch.dart:569:12)
at camera_service.dart:107:3
at async_patch.dart:610:19
at async_patch.dart:634:23
at async_patch.dart:585:5
at RootZone.runBinary (zone.dart:1681:54)
at async.FutureListener.thenAwait.handleError (future_impl.dart:219:22)
at handleError (future_impl.dart:914:46)
at Future.propagateToListeners (future_impl.dart:935:13)
at [_completeError] (future_impl.dart:715:5)
at async._AsyncCallbackEntry.new.callback (future_impl.dart:801:7)
at Object._microtaskLoop (schedule_microtask.dart:40:11)
at startMicrotaskLoop (schedulemicrotask.dart:49:5)
at async_patch.dart:186:7