Giter Club home page Giter Club logo

Comments (6)

pqpo avatar pqpo commented on September 3, 2024

机型,系统版本提供一下

from smartcamera.

ljdang avatar ljdang commented on September 3, 2024

@pqpo 都是魅族的机型,魅族16,Android版本8.1.0;魅族M15, Android版本7.1.2

from smartcamera.

sureshkumarece avatar sureshkumarece commented on September 3, 2024

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.

pqpo avatar pqpo commented on September 3, 2024

I can't reproduce it. and I upgraded a version v1.3.1. Can you give it a try?

from smartcamera.

sureshkumarece avatar sureshkumarece commented on September 3, 2024

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.

pqpo avatar pqpo commented on September 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.