Point your laptop web cam at a piece of paper and the program will stretch the writable area over the whole screen.
- python 3
- opencv, numpy
Print to_print/a4.pdf or to_print/a4.svg on A4 paper. The small circle marks the top left part of the page. If the aspect ratio of your web cam is different from 16:9 or you want to use paper with a different size see setting up page with markers
Tilt your web cam so that all 4 ARUCO markers are in it's field of view.
IMPORTANT: To use the script with Zoom, Skype, MS Teams, ... Disable the camera in these programs first, before running the script. Otherwise a "camera busy" error will be thrown.
In the terminal navigate to the cam_board directory.
- To launch the script:
<USER> $ ./cam_board
- To run in full screen mode:
<USER> $ ./cam_board -f
- To run in full screen mode and invert colors:
<USER> $ ./cam_board -fi
- To run in full screen mode, invert colors and apply sharpening kernel:
<USER> $ ./cam_board -fki
- To run in full screen mode and white board mode:
<USER> $ ./cam_board -fd
- To run in black board mode:
<USER> $ ./cam_board -di
- To display command line options:
<USER> $ ./cam_board -h
- "q" - quit
- "s" - save screen to PNG files to create slide show
- the names are chosen automatically 0001.png, 0002.png, ...
- by default the files are saved in the current working directory
Edit aruco_cam_config to change settings.
You can make your own marker page with the markers from to_print/symbols. They should be placed in corners of a rectangle that matches the aspect ratio of your web cam. Careful: the orientation of the symbols is important and they might require rotation - see a4.svg for reference.
- tape one printout with the 4 markers to desk surface (make sure the circle is positioned correctly and use tape that can later be removed from the desk surface without damaging it)
- once the script recognizes the 4 ARUCO markers and stretches them to the whole screen place a blank sheet of paper over the taped printout
- if the camera moves, remove any paper covering the printout and the program will recalculate how to warp the camera image
- laptop stands that allow tilting might help position the camera more perpendicular to the printout with markers resulting in better resolution at the bottom of the printable area
- manipulating the position of the laptop might damage it, be careful :-)