Giter Club home page Giter Club logo

eye_tracking_fpoly's Introduction

CÀI ĐẶT MÔI TRƯỜNG CHẠY AI

Thuật toán theo dõi mắt

Cài đặt Python phiên bản 3.6.8

Nhấp vô đây để tải Python

Sau khi tải xuống, hãy tìm tệp thiết lập có tên python-3.6.4.exe trong thư mục tải xuống và chạy nó. Bạn sẽ thấy một cái gì đó như:

INstall python

Nhấp vào Run, bạn sẽ thấy một cái gì đó như:

INstall python

Theo mặc định, tùy chọn Add Python 3.6 to PATH không được chọn, hãy đảm bảo rằng nó được chọn sau đó nhấp vào Install Now. Nếu thiết lập thành công, bạn sẽ thấy một cửa sổ như sau:

INstall python

Cài đặt PIP trên Windows

Kiểm tra máy bạn đã có PIP chưa

pip help

Nếu nó báo lỗi dưới đây thì bạn phải tiến hành thêm PIP

INstall python

1. Nhấn phím Windows + R để mở hộp thoại Chạy. Sau đó, gõ “ cmd ” và nhấn Enter để mở cửa sổ Command Prompt.

INstall python

2. Trong cửa sổ Command Prompt, hãy chạy lệnh sau để đặt cài đặt PIP thành biến môi trường:

setx PATH “% PATH%; C:\Python36\Scripts”

Cài đặt OPENCV

1. Nhấn phím Windows + R để mở hộp thoại Chạy. Sau đó, gõ “ cmd ” và nhấn Enter để mở cửa sổ Command Prompt.

INstall python

2. Chạy câu lệnh sau:

pip install opencv-python

3. Sau khi opencv cài đặt thành công, bạn gõ lệnh "python"

python

4. Thêm opencv vào python

cv2

Cài đặt Dlib

1. Nhấn phím Windows + R để mở hộp thoại Chạy. Sau đó, gõ “ cmd ” và nhấn Enter để mở cửa sổ Command Prompt.

INstall python

2. Dán đoạn code dưới đây vào terminal

python -m pip install https://files.pythonhosted.org/packages/0e/ce/f8a3cff33ac03a8219768f0694c5d703c8e037e6aba2e865f9bae22ed63c/dlib-19.8.1-cp36-cp36m-win_amd64.whl#sha256=794994fa2c54e7776659fddb148363a5556468a6d5d46be8dad311722d54bfcf

s1

Cài đặt numpy

Dán đoạn code dưới đây vào cửa sổ cmd

pip install numpy

CHẠY CHƯƠNG TRÌNH

Mở project EYE_TRACKING_FPOLY bằng Visual code

Chạy lệnh bên dưới bằng của sổ terminal của VSCode

python .\example.py

s1

Và đây là kết quả, chúc các bạn thành công

s1

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.