Go to Post I remember as a kid thinking how high a team number like 834 was. - Dancin103 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-02-2014, 01:37
sasha831 sasha831 is offline
Sasha
FRC #4529 (AI Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Australia
Posts: 35
sasha831 is an unknown quantity at this point
Unhappy Axis Camera Black/White Vission Processing

Hello All,

Last Year our team used labview, and in our attempts at locating the vision targets, we set the camera to black and white.

However, This year we want to use the sample java code for vision processing, and as far as we can tell, this requires the camera in colour.

We have checked through all the settings when assessing the camera though the browser, and the only slightly related setting that we could find was the colour slider, which was set at 50, and absolutely nothing changed when we changed that to other values(0, 25, 75, 100). We have also tried resetting the camera, which seems to have changed nothing...

Any Suggestions? Or Is it possible to use the provided example with a black and white image?

Sasha
__________________
Theory is when you know everything but nothing works. Practice is everything works but no one knows why. On our Team, theory and practice are combined: nothing works and no one knows why!
  #2   Spotlight this post!  
Unread 09-02-2014, 01:49
Zmarken Zmarken is offline
Registered User
FRC #1716 (Redbird Robotics)
Team Role: Engineer
 
Join Date: Dec 2013
Rookie Year: 2012
Location: De Pere
Posts: 30
Zmarken is an unknown quantity at this point
Re: Axis Camera Black/White Vission Processing

According to this and the manuals for the Axis M1011 and M1013, the image will only be displayed in black and white if the Color Level setting is at 0.

Which camera are you using, by the way? That would help a bit. And as far as I can tell, if the Color Level's set above 0, the camera'll be in color. So maybe the settings just haven't been applied to the camera for some reason?
  #3   Spotlight this post!  
Unread 09-02-2014, 01:58
sasha831 sasha831 is offline
Sasha
FRC #4529 (AI Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Australia
Posts: 35
sasha831 is an unknown quantity at this point
Re: Axis Camera Black/White Vission Processing

Woops, forgot to mention the camera Its a M1011. The color is set to 50 and has definitely been set multiple times. I believe that in our labview code we ran a function to set it to black and white? Maybe someone's heard of something like that and a way to undo it...
__________________
Theory is when you know everything but nothing works. Practice is everything works but no one knows why. On our Team, theory and practice are combined: nothing works and no one knows why!
  #4   Spotlight this post!  
Unread 09-02-2014, 02:35
Zmarken Zmarken is offline
Registered User
FRC #1716 (Redbird Robotics)
Team Role: Engineer
 
Join Date: Dec 2013
Rookie Year: 2012
Location: De Pere
Posts: 30
Zmarken is an unknown quantity at this point
Re: Axis Camera Black/White Vission Processing

I don't have a camera on me right now, so I couldn't check, but could the NI Vision Assistant have something to do with it? It couldn't hurt to look at it at least.
  #5   Spotlight this post!  
Unread 09-02-2014, 08:30
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Axis Camera Black/White Vission Processing

The VAPIX API, which is what the Axis cameras respond to, lists a property called ColorEnabled. That property causes the camera to return a monochrome JPEG. It will be smaller and may decompress faster.

This differs from setting the color level to zero. A color level only affects how saturated the image is. You'll still get a color image, but with little or no color in it.

I don't know if the Java libraries include ColorEnabled, as it is rarely used.

Greg McKaskle
  #6   Spotlight this post!  
Unread 09-02-2014, 08:57
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 577
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Axis Camera Black/White Vission Processing

One approach to consider is resetting the camera to factory settings, and then applying only the changes you are interested in. Doing so eliminates any mysterious changes someone in the past might have made, and allows you to configure another camera the same way (e.g., at the competition, your camera breaks, and you borrow one from someone else)

Page 42 of the manual (http://www.axis.com/files/manuals/um...40_en_1203.pdf) describes how to reset to factory settings.
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
  #7   Spotlight this post!  
Unread 09-02-2014, 13:24
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Axis Camera Black/White Vission Processing

It's better to threshold a colored image into a binary image. That way, you can filter colors!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:32.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi