alibaba / alibaba/MNNKit

use format type rgba no result return

Open
#43 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
702
Forks
119
PR merge metrics
No merged PRs in 30d

Description

ByteBuffer byteBuffer = getResizeByteBuffer(1); //glReadbuffer get buffer GL_RGBA 格式
long detectConfig = FaceDetectConfig.ACTIONTYPE_EYE_BLINK| FaceDetectConfig.ACTIONTYPE_MOUTH_AH|FaceDetectConfig.ACTIONTYPE_HEAD_YAW|FaceDetectConfig.ACTIONTYPE_HEAD_PITCH|FaceDetectConfig.ACTIONTYPE_BROW_JUMP;
FaceDetectionReport[] results = mFaceDetector.inference(byteBuffer.array(), (int)(config.cameraOutWidth), (int)(config.cameraOutHeight), MNNCVImageFormat.RGBA, detectConfig, 0, 0, MNNFlipType.FLIP_NONE);
LogUtils.e(TAG,"startdetect" + results);

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the mFaceDetector.inference call shown in the issue and inspect how the RGBA ByteBuffer and FaceDetectConfig are passed to it. Reproduce the call and determine why results is empty or not returned; done means the inference result is available for the reported RGBA input and can be verified through logging.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-vision, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.