jiuqiant / mediapipe_face_detection_aar_example

MediaPipe face detection gpu demo with MediaPipe's Android archive library
73 stars 25 forks source link

can't get detections data from stream packet #6

Closed opiumfive closed 4 years ago

opiumfive commented 4 years ago

I modified this example to get detections data (face rects and 6 landmarks)

actually I just added these lines

processor.addPacketCallback("detections", (packet) -> {
    Log.v(TAG, "Received face detections packet.");
    List<DetectionProto.DetectionList> faceDetections = PacketGetter.getProtoVector(packet, DetectionProto.DetectionList.parser());
    Log.v(TAG, "[TS:" + packet.getTimestamp() + "] " + getFaceDetectionDebugString(faceDetections));
});

but result of parsing seem to return broken result and I cannot get detections data

image