Coder Social home page Coder Social logo

mediapipe-holistic-tracking-aar-example's People

Contributors

shadow111 avatar

Stargazers

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

Watchers

 avatar

mediapipe-holistic-tracking-aar-example's Issues

how to set 0 for the value "model_complexity" for holistictrackinggpu Android ?

Hi @shadow111
Could you share how to set 0 for the value "model_complexity" for holistictrackinggpu Android ?

I modified the file (Mediapipe_Holistic\app\src\main\java\com\lite\holistic_tracking\holistic_activity.java) as like below,
but the apk doesn't change the value of model_complexity.

    private static final String INPUT_MODEL_COMPLEXITY = "model_complexity";
    private static final int NUM_MODEL_Complexity = 0;
    private static final String INPUT_REFINE_FACE_LANDMARKS = "refine_face_landmarks";
    
protected void onCreate(Bundle savedInstanceState) {
				...
        processor
                .getVideoSurfaceOutput()
                .setFlipY(
                        applicationInfo.metaData.getBoolean("flipFramesVertically", FLIP_FRAMES_VERTICALLY));

        PermissionHelper.checkAndRequestCameraPermissions(this);
        AndroidPacketCreator packetCreator = processor.getPacketCreator();
        Map<String, Packet> inputSidePackets = new HashMap<>();
        inputSidePackets.put(INPUT_MODEL_COMPLEXITY, packetCreator.createInt32(NUM_MODEL_Complexity));
        inputSidePackets.put(INPUT_REFINE_FACE_LANDMARKS, packetCreator.createInt32(0));
        processor.setInputSidePackets(inputSidePackets);

Thanks
Happy New Year~

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.