Git Product home page Git Product logo

namademo_yxl's Introduction

description

A demo of Nama (a SDK about face).

paths

  • controls: resources/ctrl_config.json
  • prop: resources/props/
  • Nama:
    • thirdparty/Nama/authpack.h
    • thirdparty/Nama/Win64/Release/*.dll *.lib
    • thirdparty/Nama/Win64/Debug/*.dll *.lib

features

  • multiple input sources: camera, image, video etc.
  • input source's aspect: vertical vs. horizontal
  • adding controls according to a json file (resources/ctrl_config.json). The controls is used to set parameters of Nama's props
  • no limits to props used
  • auto load avaliable props
  • saving results

screenshots

screenshot 0 screenshot 1 screenshot 2

requirement

ctrl_config.json

All controls' setting are in node "params". Each sub-node within "params" is a page in the applications.

{
  "params":{
    "page0":[
      {
        //1th control        
      },
      {
        //2th control
      }
    ],
    "page1":[
      {
        //3th control
      }
    ]
    ...
  }
}

control configuration

  • checkbox
{
	"type": "checkbox",
	"show_name": "is_beauty_on",
	"tooltip": "is_beauty_on",
	"param": "is_beauty_on",
	"val": false
}
  • slider
{
	"type": "slider",
	"show_name": "美白",
	"tooltip": "",
	"param": "color_level",
	"val": 0,
	"scale": 0.01,
	"range": [0, 100]
}
  • combobox
{
	"type": "combobox",
	"show_name": "filter",
	"tooltip": "",
	"param": "filter_name",
	"val": "nature",
	"combo_texts": ["nature", "delta", "electric", "slowlived"]
}
  • slider list
{
	"type": "slider_list",
	"show_name": "rotate",
	"tooltip": "",
	"param": "rotate",
	"vals": [0,0,0,0],
	"min": [0,0,0,0],
	"max": [100,100,100,100],
	"scales": [0.01,0.01,0.01,0.01],
	"names": ["a", "b", "c", "d"]
}
  • horizontal line
{
	"type": "h_line"
}

namademo_yxl's People

Contributors

cx2200252 avatar

Watchers

 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.