Giter Site home page Giter Site logo

facereconstruction's Introduction

How to Use on Windows System

Make sure you're using python 3

On command line:

cd to FaceReconstruction-master

pip install -r requirements.txt

python manage.py runserver

/Users/jinwei/Documents/GitHub/FaceReconstruction The above runs the server on http://127.0.0.1:8000/, paste it to the browser to view the website.

To Edit Web-page in Django Framework

html is located at: \index.html

css is located at: FaceReconstruction-master\modelEval\static\modelEval\css

js is located at: FaceReconstruction-master\modelEval\static\modelEval\js

There are sometimes {% ... %} or {{...}} in the html For example:

{% static 'modelEval/js/jqeury.js' %}
{%if result%}yes{% else %}no{% endif %}
{{greetings}}

These are called tags. It's a DJANGO feature for dynamic web page. Django will parse the html first to remove tags and generate proper html, and display the parsed html as a response.

back-end code to deal with url requests mainly resides in FaceReconstruction-master\FaceReconstruction-master\modelEval\views

def index(request):
    ...

This is the function that handles url requests.

more

to learn how template parsing works: https://www.tutorialspoint.com/django/django_template_system.htm

facereconstruction's People

Contributors

madoshakalaka avatar iamdxx avatar jinweidesign avatar

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.