From a92408ab491259d4b93884e977480db5ab589e92 Mon Sep 17 00:00:00 2001 From: ozzloy Date: Sun, 8 Feb 2009 12:35:36 -0800 Subject: [PATCH] adding GPLv3 stuff --- README | 24 ++++++++++++++++++++++++ hello-world.cpp | 19 +++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/README b/README index e69de29..921a8fa 100644 --- a/README +++ b/README @@ -0,0 +1,24 @@ +prevent the system from sleeping when a user is looking at the screen. + +this is accomplished using the built-in camera on my laptop screen's top bezel +and opencv to detect a face. i'm going to use the API used by the default movie +player in ubuntu for preventing system sleeps. + +OTHER IDEAS: +1. detecting a face could simulate user activity. this would prevent sleeping +and bring up the password prompt when the system is already asleep. + * how cool would that be? if the system is asleep and you sit down at it, the + password prompt comes up before you touch anything! + * or if the screen saver doesn't lock the screen, then the laptop just wakes + up. +2. authenticating a user based on face recognition (as opposed to face +detection) + * much more difficult to do reliably +3. be more aggressive with turning off the screen. dim the screen as soon as +it's not being looked at. turn it off soon thereafter. + * could be enough to save battery. would need to power the camera sometimes, + but would save on backlight. need to test. +4. don't prevent sleep when face is detected, but user isn't actually looking at +screen. + * requires pose estimation. + * also requires estimating the direction of the eye. diff --git a/hello-world.cpp b/hello-world.cpp index 7d68365..8135cb4 100644 --- a/hello-world.cpp +++ b/hello-world.cpp @@ -1,3 +1,22 @@ +//use the camera to aid the decision to sleep. +//Copyright 2009 Daniel Watson +/* + This file is part of oble. + + oble is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + oble is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with oble. If not, see . + + */ #include #include #include -- 2.30.2