Giter Site home page Giter Site logo

Comments (5)

danhd123 avatar danhd123 commented on May 29, 2024 1

sure thing, this is a diff from 4a20e9909d55838d5630366ce719844cf06ae85c (tag v0.8.10) on google/mediapipe

from mediapipe-prebuilt.

danhd123 avatar danhd123 commented on May 29, 2024 1

Found part of the problem: in the iris tracking pbtxt graph, there's a typo ConcatenateLandmarListVectorCalculator instead of ConcatenateLandmarkListVectorCalculator (missing k in Landmark) which for some reason doesn't break with an error message, but rather just holds up the whole graph. Unfortunately, fixing the typo just results in an error message that this calculator doesn't exist. trying various permutations result in different error messages (-Vector: the next subgraph needs a NormalizedLandmarkList, +Normalized: a different subgraph needs a vector of NormalizedLandmarkLists, with both: calculator does not exist)

EDIT: never mind, the typo is in mediapipe, which indeed registers a ConcatenateLandmarListVectorCalculator. So that's not it.

from mediapipe-prebuilt.

61315 avatar 61315 commented on May 29, 2024

Let me have a look. In the meanwhile, please share the revision id(a commit hash) of the mediapipe.

from mediapipe-prebuilt.

danhd123 avatar danhd123 commented on May 29, 2024

Okay, I've got it displaying, by adding "//mediapipe/modules/face_geometry/data:geometry_pipeline_metadata_landmarks.binarypb", to the data section of the objc_library in the framework BUILD file, but now it's only updating the non-eye face landmarks every 5-10 seconds, or if it loses tracking and has to recalculate the non-eye face landmarks. 🤔 This happens even if I replace the face landmark smoothing one euro filter with a no_filter {}

from mediapipe-prebuilt.

61315 avatar 61315 commented on May 29, 2024

@danhd123 You can checkout the latest commit(32b248f).

Repository now contains the following files:

+new file:   src/ios/facegeometry/BUILD
+new file:   src/ios/facegeometry/MPPBFaceGeometry.h
+new file:   src/ios/facegeometry/MPPBFaceGeometry.mm
+new file:   src/ios/facegeometry/graphs/BUILD
+new file:   src/ios/facegeometry/graphs/face_geometry_with_transform.pbtxt

You may find relevant codes that answers your question below. I just parsed the required Protocol Buffers array by hand.

Hope this helps :)

const auto& t = faceGeometry.pose_transform_matrix().packed_data();
const auto& matrix = simd_matrix(
(simd_float4){ t[0], t[1], t[2], t[3] },
(simd_float4){ t[4], t[5], t[6], t[7] },
(simd_float4){ t[8], t[9], t[10], t[11] },
(simd_float4){ t[12], t[13], t[14], t[15] }
);

from mediapipe-prebuilt.

Related Issues (7)

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.