Coder Social home page Coder Social logo

ukitomato / mpiristracker Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 5.0 17.16 MB

This is an ios framework for Iris detection based on MediaPipe

License: MIT License

Swift 43.80% Objective-C 14.04% Starlark 5.76% Objective-C++ 36.40%
mediapipe iris ios swift swiftui facemesh

mpiristracker's Introduction

Hi there 👋

ukitomato's GitHub statsTop Langs

mpiristracker's People

Contributors

shocho0101 avatar ukitomato avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

mpiristracker's Issues

Build error

I am unable to build the MPIrisTracker. When I run it as is, this is the error:

mediapipe/examples/ios/MPIrisTracker/MPIrisTracker.mm:10:9: fatal error: 'MyCameraInputSource.h' file not found
#import "MyCameraInputSource.h"
        ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

So I added the new .h and .m files to the BUILD instructions as follows:

objc_library(
    name = "IrisTrackerLibrary",
#     srcs = [
#         "MPIrisTracker.mm",
#     ],
# 	hdrs = [
#         "MPIrisTracker.h",
#  	],

	srcs= glob(["*.mm"]),
	hdrs = glob(["*.h"]),

But then I get a new error:

ERROR: /Users/ayaeid/Git/mediapipe/mediapipe/examples/ios/MPIrisTracker/BUILD:3:14: Linking mediapipe/examples/ios/MPIrisTracker/MPIrisTracker_bin failed: (Aborted): sandbox-exec failed: error executing command 
  (cd /private/var/tmp/_bazel_ayaeid/f877e822d5b4000695469eba8106cb8b/sandbox/darwin-sandbox/2275/execroot/mediapipe && \
  exec env - \
    APPLE_SDK_PLATFORM=iPhoneOS \
    APPLE_SDK_VERSION_OVERRIDE=16.2 \
    DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer \
    PATH=/Users/ayaeid/Library/Caches/bazelisk/downloads/bazelbuild/bazel-5.2.0-darwin-x86_64/bin:/Users/ayaeid/.pyenv/shims:/usr/local/bin:/Users/ayaeid/.pyenv/bin:/Users/ayaeid/opt/anaconda3/bin:/Users/ayaeid/opt/anaconda3/condabin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin \
    SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk \
    TMPDIR=/var/folders/k3/z10szbcj0ls9nbgd0z64kw2h0000gn/T/ \
    XCODE_VERSION_OVERRIDE=14.2.0.14C18 \
    ZERO_AR_DATE=1 \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_ayaeid/f877e822d5b4000695469eba8106cb8b/sandbox/darwin-sandbox/2275/sandbox.sb /var/tmp/_bazel_ayaeid/install/612c94294bf5bb5d743864f93801f7fe/process-wrapper '--timeout=0' '--kill_delay=15' external/local_config_cc/wrapped_clang_pp @bazel-out/ios-arm64-min10-applebin_ios-ios_arm64-opt-ST-bba38d49dfd8/bin/mediapipe/examples/ios/MPIrisTracker/MPIrisTracker_bin-2.params)
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_MyCameraInputSource", referenced from:
      objc-class-ref in libIrisTrackerLibrary.a(MPIrisTracker.o)
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Error in child process '/usr/bin/xcrun'. 1

I am able to build the HelloWorld library into a .ipa file, but can't get this framework to complete. Any suggestions?

MacOS: Ventura 13.2.1
Swift: 5
xcode: 14.2
python: 3.7.16
Bazel: 6.1.1
mediapipe: checked out December 6, 2022 hash fca0f58

Timestamp is actually the frame number??

Uncommenting line 40 of AppDelegate as shown in the image below will output the time stamp of face landmark. It appears, in the format printed, that it's not quite written in that format.

Screenshot 2023-05-09 at 1 15 00 PM

Outputting as a decimal or int instead, it's clear the timestamp is actually just the frame number.
Screenshot 2023-05-09 at 1 17 01 PM

Is there a reason these timestamps are not in microseconds as indicating in documentation?

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.