Add an example usage for the OpenCV logo

This commit is contained in:
Bradlee Speice 2012-06-21 15:56:38 -04:00
parent ab5ab77f32
commit f1048394c8
5 changed files with 36 additions and 0 deletions

BIN
examples/bluecircle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

BIN
examples/greencircle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

36
examples/openCVLogo.sh Normal file
View File

@ -0,0 +1,36 @@
#!/bin/bash -
#===============================================================================
#
# FILE: openCVLogo.sh
#
# USAGE: ./openCVLogo.sh
#
# DESCRIPTION: This is a test script to demonstrate libcvautomation
# We are going to find different sections of the OpenCV logo
# in itself.
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Bradlee Speice (), bspeice.nc@gmail.com
# ORGANIZATION:
# CREATED: 06/21/2012 03:45:19 PM EDT
# REVISION: ---
#===============================================================================
CVAMATCH="`dirname $0`/../bin/cva-match"
if [ ! -x $CVAMATCH ]; then
echo "The cva-match binary was not found or is not executable. Please fix this!"
exit 255
fi
echo
echo "Finding the red circle in the OpenCV logo..."
echo "The red circle is located at: `$CVAMATCH -r opencvlogo.png -s redcircle.png -p ', ' | cut -d',' -f2-`"
echo "Finding the blue circle in the OpenCV logo..."
echo "The blue circle is located at: `$CVAMATCH -r opencvlogo.png -s bluecircle.png -p ', ' | cut -d',' -f2-`"
echo "Finding the green circle in the OpenCV logo..."
echo "The green circle is located at: `$CVAMATCH -r opencvlogo.png -s greencircle.png -p ', ' | cut -d',' -f2-`"
echo

BIN
examples/opencvlogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
examples/redcircle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 731 B