Coder Social home page Coder Social logo

how to compile it? about ar-hair HOT 12 CLOSED

Arvrairobo avatar Arvrairobo commented on August 16, 2024
how to compile it?

from ar-hair.

Comments (12)

iantv avatar iantv commented on August 16, 2024

I pushed source without third-party libraries. You should use glut, glew, dlib, opencv. It was educational project. I worked alone, so I didn't write documentation for compiling and using third-party libraries.
App working was recorded for this video https://www.youtube.com/watch?v=JNBwUjA2mGQ&feature=youtu.be

from ar-hair.

iantv avatar iantv commented on August 16, 2024

Later, perhaps in this or next week, I will try push another version of app created on Qt, so you will mustn't use glut.

from ar-hair.

Arvrairobo avatar Arvrairobo commented on August 16, 2024

wow this is exactly i was looking for , so eager to wait for the final version

but i have a question why you have used C++ ? is it possible to get the same output in other technology?

from ar-hair.

Arvrairobo avatar Arvrairobo commented on August 16, 2024

https://github.com/Huey-H/LocalHairstylist this is similar app, but not accurate as yours , i am not sure why?

from ar-hair.

iantv avatar iantv commented on August 16, 2024

Firstly I wanted use Unity, but assets of opencv and dlib was not free. Dlib and opencv use c++, most of samples and tutorials has code written in c++, that's why I chose C++. Of course, you can choose any another language. Try, I will not promise the same result, but try.

from ar-hair.

Arvrairobo avatar Arvrairobo commented on August 16, 2024

yes i am trying with python and nodejs at the moment, lets see

but can you please explain how you are displaying hairstyle on top of the head, whats the logic to place hairstyle on head plus what distance to camera are you specifying so that it is looking more accurate?

from ar-hair.

iantv avatar iantv commented on August 16, 2024

Read about Perspective-n-Point(PnP) problem, about methods used to solve.

from ar-hair.

Arvrairobo avatar Arvrairobo commented on August 16, 2024

Hello @iantv any update on the Qt Version of the app?

from ar-hair.

iantv avatar iantv commented on August 16, 2024

Now you can watch branch "qt"

from ar-hair.

Arvrairobo avatar Arvrairobo commented on August 16, 2024

any readme file, how to run it?

from ar-hair.

Arvrairobo avatar Arvrairobo commented on August 16, 2024

i have installed QT and Qt Creator, opened the pro file and running it with qmake it shows below 3 errors

/Users/Documents/arhair/VideoPlayer.h:8: error: 'opencv2/core/core.hpp' file not found
#include <opencv2/core/core.hpp>
^~~~~~~~~~~~~~~~~~~~~~~

/Users/Documents/arhair/MainWindow.h:6: In file included from ../arhair/MainWindow.h:6:


/Users/Documents/arhair/main.cpp:1: In file included from ../arhair/main.cpp:1:

from ar-hair.

iantv avatar iantv commented on August 16, 2024

Please reread my first answer!

  1. I didn't write documentation for compiling, when I will have more time, I will it.
  2. I wrote you about using third-party libraries such as opencv and dlib.

So, you should change paths in variables INCLUDEPATH and LIBS of the pro file. Specify your directories of opencv and dlib.

from ar-hair.

Related Issues (2)

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.