Comments (6)
机型,系统版本提供一下
from smartcamera.
@pqpo 都是魅族的机型,魅族16,Android版本8.1.0;魅族M15, Android版本7.1.2
from smartcamera.
First Thanks for the great lib.
The same Error for me also
OS VERSION: 5.1.1
DEVICE :SONY SGP321
10-16 16:05:16.335 2318-2447/me.pqpo.smartcamera E/cv::error(): OpenCV Error: Assertion failed (ssize.area() > 0) in void cv::resize(cv::InputArray, cv::OutputArray, cv::Size, double, double, int), file /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/imgproc/src/imgwarp.cpp, line 1968
--------- beginning of crash
10-16 16:05:16.335 2318-2447/me.pqpo.smartcamera A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 2447 (processThread)
10-16 16:05:16.341 410-2439/? E/mm-camera: axi_command_ops cmd_type = 2
10-16 16:05:16.365 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 0
10-16 16:05:16.365 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 1
10-16 16:05:16.365 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 2
10-16 16:05:16.365 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 3
10-16 16:05:16.365 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 4
10-16 16:05:16.365 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 5
10-16 16:05:16.365 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 6
10-16 16:05:16.365 410-2439/? E/mm-camera: axi_command_ops cmd_type = 3
10-16 16:05:16.393 410-2439/? E/mm-camera: axi_set_params: begin, axi_obj_idx = 0
10-16 16:05:16.393 410-2439/? E/mm-camera: axi_set_params: begin, axi_obj_idx = 0
10-16 16:05:16.393 410-2439/? E/mm-camera: axi_set_params: begin, axi_obj_idx = 0
10-16 16:05:16.393 410-2439/? E/mm-camera: axi_set_params: begin, axi_obj_idx = 0
10-16 16:05:16.395 410-2439/? E/mm-camera: axi_command_ops cmd_type = 0
10-16 16:05:16.422 410-2439/? E/mm-camera: axi_set_params: begin, axi_obj_idx = 0
10-16 16:05:16.422 410-2439/? E/mm-camera: axi_set_params: begin, axi_obj_idx = 0
10-16 16:05:16.422 410-2439/? E/mm-camera: axi_set_params: begin, axi_obj_idx = 0
10-16 16:05:16.422 410-2439/? E/mm-camera: axi_config: begin
10-16 16:05:16.422 410-2439/? E/mm-camera: axi_vfe_config: begin
10-16 16:05:16.422 410-2439/? E/mm-camera: current target is not 8930
10-16 16:05:16.423 410-2439/? E/mm-camera: axi_vfe_config: Primary Y, wm = 0!!
10-16 16:05:16.423 410-2439/? E/mm-camera: axi_vfe_config: Primary CbCr, wm = 1!!
10-16 16:05:16.423 410-2439/? E/mm-camera: axi_vfe_config:Primary image format 1
10-16 16:05:16.423 410-2439/? E/mm-camera: axi_vfe_config: AXI Config
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busCmd = 0
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busCfg = 44738417
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output xbarCfg0 = 512
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output xbarCfg1 = 0
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busWrSkipCfg = 0
10-16 16:05:16.423 410-2439/? E/mm-camera: configure_wm_registers: axi channel write master 0 config
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busUbOffset = 0
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busUbDepth = 783
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output buslinesPerImage = 1199
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busdwordsPerLine = 99
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busburstLength = 1
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busbufferNumRows = 1199
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busrowIncrement = 200
10-16 16:05:16.423 410-2439/? E/mm-camera: configure_wm_registers: axi channel write master 1 config
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busUbOffset = 784
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busUbDepth = 135
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output buslinesPerImage = 599
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busdwordsPerLine = 99
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busburstLength = 1
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busbufferNumRows = 599
10-16 16:05:16.423 410-2439/? E/mm-camera: AXI Output busrowIncrement = 200
10-16 16:05:16.423 410-2439/? E/mm-camera: axi_config AXI Configuration success
10-16 16:05:16.423 410-2439/? E/mm-camera: axi_command_ops cmd_type = 1
10-16 16:05:16.460 410-2439/? E/mm-camera: axi_proc_reg_update: write master 0 is active
10-16 16:05:16.460 410-2439/? E/mm-camera: axi_proc_reg_update: write master 1 is active
10-16 16:05:16.587 1141-1141/? E/fast-dormancy: [FDM]: rrc_state=0
10-16 16:05:17.043 1141-1141/? E/fast-dormancy: [FDM]: rrc_state=0
10-16 16:05:17.291 1141-1141/? E/fast-dormancy: [FDM]: rrc_state=0
10-16 16:05:17.383 772-1223/? E/InputDispatcher: channel '3b933cc0 me.pqpo.smartcamera/me.pqpo.smartcamera.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-16 16:05:17.390 410-2439/? E/mm-camera: axi_command_ops cmd_type = 2
10-16 16:05:17.403 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 0
10-16 16:05:17.403 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 1
10-16 16:05:17.403 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 2
10-16 16:05:17.403 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 3
10-16 16:05:17.403 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 4
10-16 16:05:17.403 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 5
10-16 16:05:17.403 410-2439/? E/mm-camera: axi_proc_unregister_wms: Releasing write master 6
10-16 16:05:17.403 410-2439/? E/mm-camera: axi_command_ops cmd_type = 3
from smartcamera.
I can't reproduce it. and I upgraded a version v1.3.1. Can you give it a try?
from smartcamera.
As per my debugging the issue occurred due to maskRect height and width.So I modified the code as below.Its now working like charm.Thanks
public int previewScan(byte[] yuvData, int width, int height, int rotation, Rect maskRect) {
if(maskRect.height()<=0||maskRect.width()<=0)
return -1;
........
from smartcamera.
Thanks. I added your code in release v1.3.2.
https://github.com/pqpo/SmartCamera/releases/tag/v1.3.2
from smartcamera.
Related Issues (20)
- 请问这个适配一体机的时候,出现了视野小于默认相机的情况,参数在那里设置下可以达到哪个效果呢?
- 这个库是不是太大了点 HOT 2
- 关于视频流后台处理的问题 HOT 1
- 能不能改为横向模式呢 HOT 1
- 定制识别物品 HOT 2
- 占用内存35m,仅仅是依赖后,打包就多出35m HOT 4
- AndroidQ打开相机出现异常 HOT 3
- 在AR眼镜端,摄像头拍到的东西都纵向拉伸了 HOT 1
- 为什么我引入你的库总是失败啊 HOT 3
- Camera is not ready. Call start() before takePicture(). HOT 2
- 构建源代码的时候报错 HOT 3
- 部分机型上出现问题, onResume调用了start() startScan HOT 1
- 可不可以重新build一个release的2.0.0的aar,现在的三十多MB,太大了,之前的也才三点几兆 HOT 4
- sending message to a Handler on a dead thread
- camera识别成功的时候是否可以返回边框坐标 HOT 3
- 有没有办法让识别的图片尽可能的完美不留白边 HOT 5
- FAILED: ../../../../build/intermediates/cmake/debug/obj/x86_64/libsmart_camera.so HOT 3
- 可以竖屏扫描吗
- 请问有办法识别圆形物体么
- 请告知下卡片备忘录的数据存储位置
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartcamera.