anonyein

Results 25 comments of anonyein

> 1. 如果是生命周期导致 > > * 参考[自行处理配置变更](https://developer.android.com/guide/topics/resources/runtime-changes?hl=zh-cn#HandlingTheChange)。 > 我的配置如下: > > ``` > android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode" > ``` > > * 在activity中处理好`enable`、`disable`和`release`的时机。 > * 也可以参考我的实现[AutoRotationUtil.java](https://gist.github.com/haohaozaici/29d7e1aa6fe8efd9ba397ffea6bff461),单独处理屏幕自动旋转逻辑。 > > 1. Android O 透明activity不允许旋转bug >...

这个Crash基本上探明了,是在反向全屏的自动播放的时候发生的。。。OrientationUtils.禁用是锁不住,因为一般来说 orientationUtils.setEnable(true)是在onPrepared里面调用的,但是这时候如果是反向全屏,从上一个视频跳转过来并自动播放的时候,一方面是屏幕是默认是倒的,要翻转(OrientationEventListener监听到),二方面前面的视频放空(NULLPOINT),getCurrentPlayer其实是放空的。。。 orientationEventListener = new OrientationEventListener(activity.getApplicationContext()) { @Override public void onOrientationChanged(int rotation) { boolean autoRotateOn = (Settings.System.getInt(activity.getContentResolver(), Settings.System.ACCELEROMETER_ROTATION, 0) == 1); if (!autoRotateOn && mRotateWithSystem) { return; } if (gsyVideoPlayer...

00:05:52.435 |W| HLE.OsThread.10 ServiceNv Wait: GPU processing thread is too slow, waiting on CPU... 00:05:53.434 |E| HLE.OsThread.10 Gpu WaitOnSyncpoint: Wait on syncpoint 1 for threshold 8676 took more than 1000ms,...

> 你试试跑这个官方 demo 能跑通不: https://github.com/PaddlePaddle/PaddleOCR/tree/dygraph/deploy/fastdeploy/android 和他结果一样,什么都识别不到。华为mate40。官方demo识别正常

> > > 你试试跑这个官方 demo 能跑通不: https://github.com/PaddlePaddle/PaddleOCR/tree/dygraph/deploy/fastdeploy/android > > > > > > 和他结果一样,什么都识别不到。华为mate40。官方demo识别正常 > > 好的,我看看是什么原因 我测试发现了,原因把bitmap等比例放大10倍之后,字就很大,不认得了,字太小也不认识,我测试发现2~3倍差不多可以识别,希望可以在这方面处理一下 这里我传了一个附件: 估计看不清,因为背景透明,文字颜色白 ![i](https://github.com/equationl/paddleocr4android/assets/48914448/02964297-d75c-4c2c-aaa9-da6ac88cd92a)

> @farendaibiao 这也是一个问题,但是按道理来说,demo 里的图片都是一样的,所以不应该存在同一张图片有的机型可以识别有的不能的情况 有没有更新的[模型列表](https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_ch/models_list.md) 我看到官网的已经一年多不更新了

> @farendaibiao 刚 push 了新的代码,更新了一下 demo ,你拉一下代码,然后运行一下 demo 看看能识别出结果吗? > > 识别失败的原因可能就是你说的分辨率问题,因为我刚发现,我 demo 里面读取图片是使用 `BitmapFactory.decodeResource` 读取,它会按照不同的设备动态缩放图片,可能就是因为这个导致了 "同一张图片有的机型可以识别有的不能的情况" 可能,我试试

> Can you provide the complete output? Based on the limited information, I guess it's related to the installation of [isolated-vm](https://github.com/laverdet/isolated-vm?tab=readme-ov-file#requirements). ``` Error: Cannot find module './out/isolated_vm' Require stack: -...

> According to the error message, the file **isolated-vm.node** should exist in folder `D:\Download\decode-js-main\decode-js-main\node_modules\isolated-vm\out`. Try to reinstall the dependency and the issue may be solved. The "out" directory doesn't exist....

> Yes, it's required in `D:\Download\decode-js-main\decode-js-main\node_modules\isolated-vm\isolated-vm.js`. You may find solution in repo: https://github.com/laverdet/isolated-vm . VS2019 must be installed on Win