Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
4b79823
Added files via upload
Mar 3, 2016
5cc3154
Added files via upload
Mar 4, 2016
2841915
Added files via upload
Mar 4, 2016
ddbe743
Added files via upload
Mar 7, 2016
4e0c005
3/7/16 update
Mar 7, 2016
82c5f65
Webcam is working, mouse is not. Using Model-View-controller class or…
Mar 9, 2016
7487a47
Webcam is working, webcam controller is not. Using Model-View-contro…
Mar 9, 2016
1439b9f
Webcam is working, webcam controller is not. Using Model-View-contro…
Mar 9, 2016
11bae3c
Added files via upload
Mar 9, 2016
a147406
Added files via upload
lzuehsow Mar 9, 2016
7f755e4
Added files via upload
Mar 9, 2016
e323a5c
I think it's fixed?
Mar 9, 2016
c19709b
Added files via upload
Mar 9, 2016
44fd8fa
Added files via upload
Mar 9, 2016
611a472
Added files via upload
Mar 9, 2016
4761129
Added files via upload
Mar 9, 2016
2ce0fab
Added files via upload
Mar 10, 2016
9635dcb
Added files via upload
Mar 10, 2016
47bf346
Added files via upload
Mar 10, 2016
5bb39f6
Added files via upload
lzuehsow Mar 10, 2016
57ad971
Added files via upload
Mar 10, 2016
ebee54f
Bug fixes
Mar 10, 2016
e04c647
Final HP duel project code
Mar 28, 2016
3e8eef8
Turning in Edited MP4 code for MP5
Apr 18, 2016
b627f11
Turning in MP5
Apr 18, 2016
dfc1831
Updated README
Apr 18, 2016
1983634
Delete object_movement8.py
lzuehsow May 5, 2016
c1640c6
Delete object_movement7.py
lzuehsow May 5, 2016
d5024b5
Delete object_movement6B.py
lzuehsow May 5, 2016
ccb1b16
Delete object_movement6.py
lzuehsow May 5, 2016
5d3ba89
Delete object_movement5.py
lzuehsow May 5, 2016
a9e8f4b
Delete object_movement4B.py
lzuehsow May 5, 2016
ad54629
Delete object_movement4.py
lzuehsow May 5, 2016
acdd59f
Delete object_movement3.py
lzuehsow May 5, 2016
6c98530
Delete object_movement2.py
lzuehsow May 5, 2016
2df3151
Delete object_movement.py
lzuehsow May 5, 2016
b922b15
Delete interactiveprogramming1.py
lzuehsow May 5, 2016
4d04ed4
Delete interactiveprogramming.py
lzuehsow May 5, 2016
93fd397
Delete mouseselect.png
lzuehsow May 5, 2016
051f311
Delete folder.png
lzuehsow May 5, 2016
c8c0ced
Delete cat.jpg
lzuehsow May 5, 2016
b588b63
Delete browser.png
lzuehsow May 5, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions MP5/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Documentation
---------------

# Credits
This program was cowritten by Anna Buchele and Lydia Zuehsow, c. 2016

#Function
This program allows you to control a fake mouse cursor in pygame with a green object and your laptop webcam.

#User instructions
To run this program, you will need OpenCV, imutils, os, sys, argparse, pygame, time, and numpy packages installed.
Make sure your webcam is plugged in/on/etc before running this program.
Also, check to see if there are any other green objects in the webcam's view that are not your intended control mechanism.

CALIBRATION: Hold the green object steady in the center of the screen to calibrate upon startup of program.
MOUSE MOVEMENT: Moving the green object will move the cursor in pygame.
MOUSE SELECTION: Moving the green object a certain distance closer to the webcam will trigger the mouse's "select" mode. The cursor will change shape, and you will be able to interact with desktop objects.
OPENING WINDOWS: Quickly (in less than 20 frames) enter select mode and exit select mode while hovering over a folder. This can be done by moving your object close to the webcam and then regaining distance.
CLOSING WINDOWS: While in select mode, hover over the red circle at the top right hand corner of the window.
DRAGGING: While in select mode, hover over folders or the tops of windows to select them as well. Once selected, they will snap to your mouse's position until your mouse exits selection mode.

#Change log
Written initially for Olin College's Software Design course, miniproject 4: Interactive Programming. Blank project file forked from class repo. 3/3/16-3/10/16
Edited by Lydia Zuehsow for Olin College's Software Design course, miniproject 5: Feedback and Revision. Mouse selection function added, calibration optimized. 4/16/16
Binary file added MP5/browser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MP5/cat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MP5/folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading