On Thu, Dec 13, 2012 at 2:00 AM, inshu chauhan <insidesh...@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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to