Code Monkey home page Code Monkey logo

gdmp's People

Contributors

j20001970 avatar malcolmnixon avatar you-win avatar yushawnyong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gdmp's Issues

Tutorial request

Hi!
Thanks for your work. I am trying to use your project for my game and have faced with some issues. May I ask you to show a tutorial with usage of your project for pose tracking? Thanks a lot!

Best regards,
Anton

Errors in setup.py

I get these errors when I try to run setup.py. Thank you in advance for your great work.

H:\GDMP>setup.py --godot-binary "C:\Users\Sereja\Desktop\Godot_v4.0.1-stable_win64.exe"
Dumping Extension API
Godot Engine v4.0.1.stable.official.cacf49999 - https://godotengine.org

Traceback (most recent call last):
File "H:\GDMP\setup.py", line 139, in
generate_bindings(api_json_path)
File "H:\GDMP\setup.py", line 31, in generate_bindings
import binding_generator as bg
ModuleNotFoundError: No module named 'binding_generator'

H:\GDMP>setup.py --extension-api-json "H:\GDMP\extension_api.json"
Traceback (most recent call last):
File "H:\GDMP\setup.py", line 139, in
generate_bindings(api_json_path)
File "H:\GDMP\setup.py", line 31, in generate_bindings
import binding_generator as bg
ModuleNotFoundError: No module named 'binding_generator'

Unable to build from source

System: Windows 10
Python: 3.11.8

I am currently following the build instruction for Android and found multiple errors:

ERROR: An error occurred during the fetch of repository 'local_execution_config_python':
...
Error in fail: Repository command failed
INFO: Could not find files for the given pattern(s).
ERROR: C:/users/user/downloads/ownprojects/gdmp/mediapipe/WORKSPACE:544:14: fetching local_python_configure rule //external:local_execution_config_python: Traceback (most recent call last):
...
Error in fail: Repository command failed
INFO: Could not find files for the given pattern(s).
ERROR: Analysis of target '//GDMP/android:GDMP' failed; build aborted: Repository command failed
INFO: Could not find files for the given pattern(s).

I searched for clues that might cause this error, and it indicates that Bazel fails to find the local Python binary, but the Python binary referenced if from setup.py, which should be valid. Here are the python path and the build args from the code for reference

python_path: C:\\Users\\User\\Downloads\\ownprojects\\GDMP\\venv\\Scripts\\python.exe
build_args: ['C:\\ProgramData\\chocolatey\\bin\\bazelisk.EXE', 'build', '--action_env', 'PYTHON_BIN_PATH=C:\\\\Users\\\\User\\\\Downloads\\\\ownprojects\\\\GDMP\\\\venv\\\\Scripts\\\\python.exe', '-c', 'dbg', '--config=android', '--copt=-fPIC', '--cpu=arm64-v8a', '//GDMP/android:GDMP']

Do you have any clue how to solve this issue? Many thanks!

error on build script: " Repository '@hedron_compile_commands_pip' is not defined"

hi I get this error when attempting to build gdmp:

ERROR: /media/project/taskdisk/24.01/GDMP/mediapipe/GDMP/desktop/BUILD:1:10: error loading package 'GDMP': at /home/project/.cache/bazel/_bazel_project/ab1d178f36bd2d9a03b46953fa4f356a/external/hedron_compile_commands/refresh_compile_commands.bzl:60:6: Unable to find package for @hedron_compile_commands_pip//:requirements.bzl: The repository '@hedron_compile_commands_pip' could not be resolved: Repository '@hedron_compile_commands_pip' is not defined. and referenced by '//GDMP/desktop:GDMP'
ERROR: Analysis of target '//GDMP/desktop:GDMP' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.060s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
    currently loading: GDMP
    Fetching repository @local_config_cc; starting

I am not sure how to resolve, any advice would be appreciated.

current system gentoo linux 64 bit with month-old software updates.

thanks.

Windows support

Hi! I saw your project from a This week in Godot post. I'm working on a project that relies on face tracking data, and was planning on adding mediapipe support.

What are the difficulties in adding Windows support? I can take a look at tackling that.

Building to web and Mac?

I notice you have no mention of building for Mac or Web. Is there a reason for this or are you not testing these platforms?

Build GDMP AAR

Hi!

thank you for the project, it is very interesting, but can you pls describe in more detail what I should do in step number 5. I am not very familiar with android that's why it is not obvious to me.

Thank you in advance,
Best

GDExtension C# bindings made possible by Godot 4.2 Beta 1

Do check out this new project, perhaps the more official way to generate the GDExtension C# Bindings

Tested on c++ GDExtension:

dotnet publish DodgeTheCreeps/Source/DodgeTheCreeps.csproj 
-property:GenerateFullPaths=true 
-consoleloggerparameters:NoSummary 
-p:NativeLib=Shared 
--use-current-runtime -o DodgeTheCreeps/Build
dotnet publish Summator/Source/Summator.csproj 
-property:GenerateFullPaths=true 
-consoleloggerparameters:NoSummary 
-p:NativeLib=Shared 
--use-current-runtime -o Summator/Build

Problems with getting the examples running

Hi I finally got the library build and I got simple camera test done.

But as soon as I want to test one of the examples from the Test project it always crashes on:
\GDMP\tasks\vision\vision_task.cc:7

With following error:
grafik

For building the library I swapped over to 4.2 branch of godot-cpp I would guess this is already the problem.

Versions of everything:
Godot 4.2.2 Stable
bazel 7.1.1
opencv 3.4.10 < tried to use the exact same version as in the BUILDING readme, I don't know if I can use the later one.
Microsoft Visual Studio 2019

Do you have any Idea what I could try and test or what is the problem maybe?

Camera Helper not working on iOS

Following up of this journey of having GDMP on iOS device. Not sure if this is a Godot issue or the library issue, but the mediapipe tasks are not starting.

i've built the --type release --arch arm64 library and imported it to the GDMP-demo project. Added the messages for privacy permissions (Camera, photo and mic access). The app is able to be installed and opened, and i can navigate to the Hand Landmarker task, but upon clicking the Open camera button, nothing happens.

I went and check the process. I suspect it might be an issue about requesting permission with the camera helper, which did not show up, hence no _permission_result() callback and the program cannot proceed.

FYI, I am using iPad Air 5th generation for testing

Originally posted by @WaterBoiledPizza in #32 (comment)

Deleting a graph will mess with Godot rendering

Symptom: deleting a graph object will break Godot's rendering.

  • On desktop linux, it become unresponsive while other systems like audio are still working, but no error message observed in editor or stderr.
  • On Android, it's the same except the screen become blank and produced a EGL_BAD_DISPLAY error in logcat.

The current workaround is to not deleting the graph object, but definitively not the best way as every created graph will pile up memory usage and probably slow down performance until restart.

I have no idea how to further debugging this for now, probably require someone who is more experienced to troubleshoot the issue.

Segmentation fault when loading the library if certain module of the editor is system-provided

If freetype, libpng, zlib, graphite, harfbuzz is system-provided instead of builtin when building Godot editor, loading GDMP library will cause immediate crash on said editor builds.

The issue primarily happens on Linux-based environments, not sure if the same also occur on Windows.

This is a problem because unlike official Godot editor that has everything builtin, distribution packagers might configure Godot to use system library for some modules (e.g. Arch, Flatpak), and users of these builds will run into such issue.

While the root cause is unknown yet, I open this issue for future reference.

Related issues:

  1. j20001970/GDMP-demo#17 (comment)
  2. flathub/org.godotengine.Godot#153

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.