mirror of
https://github.com/bspeice/libcvautomation
synced 2024-12-04 13:58:11 -05:00
Add an example usage for the OpenCV logo
This commit is contained in:
parent
ab5ab77f32
commit
f1048394c8
BIN
examples/bluecircle.png
Normal file
BIN
examples/bluecircle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 706 B |
BIN
examples/greencircle.png
Normal file
BIN
examples/greencircle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 678 B |
36
examples/openCVLogo.sh
Normal file
36
examples/openCVLogo.sh
Normal 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
BIN
examples/opencvlogo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
examples/redcircle.png
Normal file
BIN
examples/redcircle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 731 B |
Loading…
Reference in New Issue
Block a user