小编cee*_*say的帖子

如何在使用 react-native-firebase-mlkit 视觉使用 OCR 处理图像后绘制边界框

我已成功检测到使用 react-native-camera 拍摄的图像上的文本元素。在vision().textRecognizerProcessImage(photoUri)成功返回检测到的文本。

// take the photo from the camera
  takePicture = async () => {
    try {
      const options = {
        quality: 0.8,
        base64: true,
        skipProcessing: true,
      };
      const picture = await this.camera.takePictureAsync(options);
      console.log('picture', picture);
      const {uri, width, height} = picture;
      // saving the pixel size of the selected image too 
      // for boxes position/size calculation
      this.setState({
        photoUri: uri,
        imgPixelHeight: height,
        imgPixelWidth: width,
      });
    } catch (e) {
      console.warn(e);
    }
  };

// processing the image to detect …
Run Code Online (Sandbox Code Playgroud)

ocr react-native react-native-firebase firebase-mlkit

6
推荐指数
0
解决办法
1619
查看次数

未在 Expo iOS 客户端收到推送通知

我正在使用推送通知开发应用程序。问题是即使使用推送通知工具,我也没有在 iOS 设备上收到推送通知。

在 Android 上,一切正常。我已经卸载/重新安装并从 expo iOS 客户端注销,但问题仍然存在。我在应用程序中所做的唯一显着更改是更新到 SDK v33。

关于可能是什么问题的任何想法?

push-notification ios react-native expo

3
推荐指数
1
解决办法
1484
查看次数