Coder Social home page Coder Social logo

face_lock_go's Introduction

简介

此工具目的是实现离开座位自动锁屏效果

原理为: 定期查询是否有键鼠操作,超过设定时间没有输入后启动自动人脸识别, 没人后自动锁屏, 锁屏状态下也不会调用人脸识别.

开发

debug

go build .

publish

执行pack.bat

配置

配置文件为yaml格式,内容如下

# 日志等级 panic fatal error warn info debug trace
logLevel: "debug"
# 日志文件名
logFileName: "facelock.log"
# 日志保留天数
logFileMaxAge: 7
# 日志切割间隔(单位为小时)
logFileRotationTime: 1
# 使用第几个摄像头0开始
deviceID: 0
# 程序主循环检查间隔(秒)
checkTime: 5
# 没有键鼠操作空余时间(秒)
idleTIme: 10
# 是否记录日志到文件
islogFile: false
# 是否默认开启
isOpen: true

其他

未指定配置文件时用程序自带的默认配置运行, 你也可以指定配置运行:

facelock.exe --config config.yaml

face_lock_go's People

Contributors

wujiyu115 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

spin6lock

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.