Giter VIP home page Giter VIP logo

pose-comparer's Introduction

Pose Comparer

Installation

  1. Download one of the following pretrained openpose models:

  2. Place them in the models directory on the project root

Running the app

The program can be executed either as an API or a Desktop app:

  1. Running the app in desktop mode:
python desktop.py --model ../models/pose_iter_440000.caffemodel --proto ../models/openpose_pose_coco.prototxt --frame ../pictures/person1.jpg --template ../pictures/person2.jpg --dataset COCO
  1. Running the app as an api:
python api.py --model ../models/pose_iter_440000.caffemodel --proto ../models/openpose_pose_coco.prototxt --dataset COCO

Sample output

python desktop.py --model ../models/pose_iter_440000.caffemodel --proto ../models/openpose_pose_coco.prototxt --frame ../pictures/person4.jpg --template ../pictures/person2.jpg --dataset COCO
   
Comparison Result: [(0.9590177080589004, ['Neck', 'RShoulder']), (0.9550641368112371, ['Neck', 'LShoulder']), (0.9942131485173553, ['RShoulder', 'RElbow']), (0.9227181254350099, ['RElbow', 'RWrist']), (0.9178385863657164, ['LShoulder', 'LElbow']), (None, ['LElbow', 'LWrist']), (0.9036583588082726, ['Neck', 'RHip']), (0.9979523745279008, ['RHip', 'RKnee']), (0.6186889309822976, ['RKnee', 'RAnkle']), (0.9309666110041757, ['Neck', 'LHip']), (0.8557118698254541, ['LHip', 'LKnee']), (0.9083627223985159, ['LKnee', 'LAnkle']), (0.9892988574946624, ['Neck', 'Nose'])]

The comparison result gives a value between -1 and 1 specifying how similar a part of the pose is between the two images.

pic1 pic2

pose-comparer's People

Contributors

fjunqueira avatar

Stargazers

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

Watchers

 avatar

Forkers

belobobr

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.