Giter Club home page Giter Club logo

eye_maker's Introduction

eye_maker

Make your character's eye flickering

We use the library, base on OpenCV

  1. 프로젝트를 생성한다

  2. OpenCV 라는걸 찾아서 프로젝트에 환결설정한다.

  3. 여기있는 소스코드들을 때려박는다.

  4. functioncollect.h 에 보면 OPEN_IMAGE 라는 함수가 있다. 거기서 파일 경로를 자신에게 맞게 고친다.

  5. 사용하는 키는 'n'과 'a'이다. 'n'는 영역 저장. 'a'는 다음단계로 넘어가기. 왼쪽클릭은 영억 선택. 오른쪽클릭은 영역 지우기이다. 단계는 총 4단계이다. (자세한건 https://www.youtube.com/watch?v=nfQxQC2YiEQ 영상 참조) (1) 눈깔설정. 눈깔이라고 생각되는 부분을 지정한다. n을 누르면 파란색 내부가 꽉참 (2) 감긴눈 모양 설정. 눈이 감겼을 때 어떤 모양이 됏으면 좋겠는지 설정한다. (3) 눈썹 설정. 움직일 눈썹을 설정. (4) 방향 설정. 눈이 어느 방향으로 깜빡였으면 좋겠는지 설정. 주)드래그 & 드랍 방식으로 방향을 설정한다. n키 안눌러도 됨.

  6. 방향설정까지 마치고 'g' 키를 누르면...깜빡인다!

  7. 다른쪽 눈도 마저 움직이게 하고싶으면 '-'키를 누른다.

주의사항 : 감긴 눈의 살색영역은 (1) 에서 고른 영역의 색상 중 가장 많이 나타난 색으로 결정. 눈썹과 감긴눈 사이의 "직선상"에 있는 부분을 눈으로 판단한다.

semi_main.cpp 에서 "nt"라는 변수를 찾아보면 시간에 따라 눈깔의 위치를 어떻게 지정해줄지 결정할 수 있다. 코드상에서 저 nt값을 0~1 사이의 어떤 값으로 사용할건지를 가지고 장난질을 치면 눈 깜빡이는 속도 조절 가능.

eye_maker's People

Contributors

hinohie avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eye_maker's Issues

Arguments parameter file

source image, image size, cursor size, "flickering function", "export file arguments" etc.. ...

Save & Load the job

I think we can save the point set by image file. by control this image, we can load data of selection jobs

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.