This program demonstrates how to use OpenCV's drawing capability to draw rectangles, circles, and text on an image.
The full source code for example_draw_opencv.cpp is available at http://www.cs.sjsu.edu/~bruce/programs/spring_2017_cs_160_section_3/example_draw_opencv/example_draw_opencv.cpp (right mouse click then select "Save Link As..." to download).
A makefile to compile example_draw_opencv.cpp is available at http://www.cs.sjsu.edu/~bruce/programs/spring_2017_cs_160_section_3/example_draw_opencv/Makefile (right mouse click then select "Save Link As..." to download).
A test image for the example_draw_opencv.cpp is available at http://www.cs.sjsu.edu/~bruce/programs/spring_2017_cs_160_section_3/example_draw_opencv/test_image.1.png (right mouse click then select "Save Link As..." to download).
Spring 2017, CS-160-03:
Lectures:
Assignments:
Handouts:
Programs: