Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] July 2024 Update #68

Open
GeorgeS2019 opened this issue Jul 26, 2024 · 3 comments
Open

[WIP] July 2024 Update #68

GeorgeS2019 opened this issue Jul 26, 2024 · 3 comments

Comments

@GeorgeS2019
Copy link

GeorgeS2019 commented Jul 26, 2024

[This is WIP status of getting a clearer picture why this project is NOT working]

Read the general instruction from @TheWorldEndsWithUs
#65 (comment)

@swety2003
Need to understand why this repos has a new commit that restore the missing c# files
https://github.com/swety2003/MediaPipe.NET/tree/master/Mediapipe.Net/Framework

@kaymyst

Need to understand why this repos, claimed to have OpenCVSharp example working but are missing many c# files in the swety2023 repos
https://github.com/kaymyst/MediaPipe.NET/tree/master/Mediapipe.Net

@swety2003
Copy link

For one of my projects, I need to use the FaceMesh part of MediaPipe. Strangely, I only found the FaceMesh functionality and its examples in version 0.8.9 of this repository, but the latest version has removed thesse files. Therefore, I tried to migrate the relevant files to the latest version, and eventually, it worked well.

Below is an example of using FaceMesh with OpenCVSharp4 on Windows. Please make sure to get the .pbtxt file.

var calculator = new FaceMeshCpuCalculator();
calculator.Run();
calculator.OnResult += Calculator_OnResult;

var Capture = new VideoCapture(0);
Mat frame = new Mat();
Capture.Read(frame);
ImageFrame imgframe = new ImageFrame(ImageFormat.Types.Format.Srgb,
    frame.Width, frame.Height, step, frame.Data, a => { });
calculator.Send(imgframe);



private void Calculator_OnResult(object? sender, List<NormalizedLandmarkList> e)
{
    // get results
}

@GeorgeS2019
Copy link
Author

@swety2003
the main challenge are the out of date .pbtxt file.

I have problem finding those used by the 0.8.9 version.

If you have a working version, even for 0.8.9 repos, it would be great if you could share

@swety2003
Copy link

These files can be found at https://github.com/google-ai-edge/mediapipe/tree/master/mediapipe/graphs/face_mesh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants