Error .. Please Help
Chris Angelico
rosuav at gmail.com
Wed Dec 12 10:05:39 EST 2012
On Thu, Dec 13, 2012 at 2:00 AM, inshu chauhan <insideshoes at gmail.com> wrote:
> In this code :
>
> import cv
> if color == (0.0,255.0,0.0):
> classification = 1
> ...
> elif color == (255.0, 0.0, 255.0):
> classification = 7
>
> print >> g, x , y , color, classification
>
What happens if the color isn't one of the ones you picked? You may
need an 'else' clause on your if/elif/elif block, and some
classification value meaning "other".
ChrisA
More information about the Python-list
mailing list