Code Monkey home page Code Monkey logo

Comments (8)

wuyajun0627 avatar wuyajun0627 commented on August 29, 2024

@HansRen1024 please help me with this error

from pcn-ncnn.

HansRen1024 avatar HansRen1024 commented on August 29, 2024

@wuyajun0627 Did you compile and run cam.cpp successfully on linux? I don't use JAVA, so C++ error logs would be helpful.

from pcn-ncnn.

wuyajun0627 avatar wuyajun0627 commented on August 29, 2024

This is a project with JNI. Here are the logs. Can you speak Chinese? Speaking English seems hard for me to describe how the error happens. @HansRen1024

01-16 16:54:33.495 14807 14807 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-16 16:54:33.496 14807 14807 F DEBUG : Build fingerprint: 'Hisense/HLTE510T/HSSDM636QC:8.1.0/OPM1.171019.026/L1511.6.01.02:user/release-keys'
01-16 16:54:33.496 14807 14807 F DEBUG : Revision: '0'
01-16 16:54:33.496 14807 14807 F DEBUG : ABI: 'arm64'
01-16 16:54:33.496 14807 14807 F DEBUG : pid: 10918, tid: 14789, name: ProcessingDualC >>> com.android.gallery3d <<<
01-16 16:54:33.496 14807 14807 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x70b8400000
01-16 16:54:33.496 14807 14807 F DEBUG : x0 0000000000000000 x1 00000070b83ffe80 x2 0000000000000048 x3 0000000000000040
01-16 16:54:33.496 14807 14807 F DEBUG : x4 00000070bd0e4f50 x5 00000070b83fff40 x6 00000070bd03ed60 x7 00000070bd03ee1e
01-16 16:54:33.496 14807 14807 F DEBUG : x8 0000000000000017 x9 0000000000000009 x10 0000000000000048 x11 0000000000000018
01-16 16:54:33.496 14807 14807 F DEBUG : x12 0000000000000018 x13 00000070bcc72010 x14 0000000000000000 x15 00000000000000c0
01-16 16:54:33.496 14807 14807 F DEBUG : x16 000000000000000a x17 0000000100000000 x18 000000000000008a x19 0000000000000018
01-16 16:54:33.496 14807 14807 F DEBUG : x20 0000000100000000 x21 00000000000000ba x22 00000070bd03ed00 x23 00000000000000ba
01-16 16:54:33.496 14807 14807 F DEBUG : x24 00000000000000b2 x25 00000070bcc720ac x26 00000070bd03ed60 x27 00000070bd03ee7c
01-16 16:54:33.496 14807 14807 F DEBUG : x28 00000070bd0e4fec x29 00000070a6e0ea50 x30 00000070b8d2b264
01-16 16:54:33.496 14807 14807 F DEBUG : sp 00000070a6e0e9c0 pc 00000070b8d2b3f0 pstate 0000000020000000
01-16 16:54:33.507 14807 14807 F DEBUG :
01-16 16:54:33.507 14807 14807 F DEBUG : backtrace:
01-16 16:54:33.508 14807 14807 F DEBUG : #00 pc 000000000009f3f0 /system/priv-app/Vision_Gallery/lib/arm64/libface_angle_detection.so (ncnn::resize_bilinear_c3(unsigned char const*, int, int, unsigned char*, int, int)+1112)
01-16 16:54:33.508 14807 14807 F DEBUG : #1 pc 00000000000a1760 /system/priv-app/Vision_Gallery/lib/arm64/libface_angle_detection.so (ncnn::Mat::from_pixels_resize(unsigned char const*, int, int, int, int, int)+184)
01-16 16:54:33.508 14807 14807 F DEBUG : #2 pc 000000000009592c /system/priv-app/Vision_Gallery/lib/arm64/libface_angle_detection.so (Impl::Stage2(cv::Mat, cv::Mat, ncnn::Net&, float, int, std::vector<Window2, std::allocator, >&)+1312)
01-16 16:54:33.508 14807 14807 F DEBUG : #3 pc 000000000009269c /system/priv-app/Vision_Gallery/lib/arm64/libface_angle_detection.so (PCN::DetectFace(cv::Mat)+1584)
01-16 16:54:33.508 14807 14807 F DEBUG : #4 pc 0000000000099e34 /system/priv-app/Vision_Gallery/lib/arm64/libface_angle_detection.so (Java_com_example_facedetectionlibrary_FaceAngleDetectionUtils_faceAngleDetect+856)
01-16 16:54:33.508 14807 14807 F DEBUG : #5 pc 0000000000026614 /system/priv-app/Vision_Gallery/oat/arm64/Vision_Gallery.odex (offset 0x20000)

from pcn-ncnn.

HansRen1024 avatar HansRen1024 commented on August 29, 2024

@wuyajun0627 说中文嘛~我之前的意思是想问问你跑通cam.cpp了没?

from pcn-ncnn.

wuyajun0627 avatar wuyajun0627 commented on August 29, 2024

算是跑通了吧,在Linux上跑的,不过还是以JNI的形式。原来为了提高速度,我在传入图片的时候,对图片做了一个缩减,不知道是不是尺寸太小了,才会出现这种错误。后来我把图片的尺寸调的稍微大了些,目前还没有出现之前的问题 @HansRen1024

from pcn-ncnn.

HansRen1024 avatar HansRen1024 commented on August 29, 2024

@wuyajun0627 我一般就是用640480,320240这样子大小的图片。我记得有设置最小人脸的参数,适当放大也可以提速。

from pcn-ncnn.

wuyajun0627 avatar wuyajun0627 commented on August 29, 2024

这么小的尺寸都可以吗,我原来就是resize到640 * 480,结果报错了,后来我把传入的尺寸改大了一些,目前没出现问题。不过根据你说的情况,感觉问题并没有解决@ @HansRen1024

from pcn-ncnn.

HansRen1024 avatar HansRen1024 commented on August 29, 2024

@wuyajun0627 建议先用C++跑,没问题了再转JNI接口跑。如果还有问题,就定位看看JNI代码。

from pcn-ncnn.

Related Issues (6)

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.