Go to Post Unfortunately I think IFI made us buy a new one. Something about 200amps across the power connector not being a warranty item. - GeorgeTheEng [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-08-2016, 09:18 PM
prairir001 prairir001 is offline
Registered User
FRC #0865
 
Join Date: Nov 2016
Location: Toronto
Posts: 4
prairir001 is an unknown quantity at this point
Help: Vision hsv value issues.

my team is using a raspberry pi 3 with the microsoft lifecam 3000 for vision. ive been writing the python script. i cant seem to get to figure out how to get the hsv values for the mask. if anyone could please help me figure out how to do this it would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-09-2016, 12:32 PM
KJaget's Avatar
KJaget KJaget is offline
Zebravision Labs
FRC #0900
Team Role: Mentor
 
Join Date: Dec 2014
Rookie Year: 2015
Location: Cary, NC
Posts: 37
KJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud ofKJaget has much to be proud of
Re: Help: Vision hsv value issues.

Can you be more specific on what the problem is? What libraries are you using?

Do you have a set of values and the code doesn't seem to apply them? Probably need to see code. OpenCV has an example here : http://opencv-python-tutroals.readth...lorspaces.html if you want a sanity check.

Do you not know which HSV values to use? In the past we've written debug code with trackbars / sliders to adjust value in real time.

Do you have problems finding a set of HSV values that work in all (most) conditions? Start reading here https://docs.google.com/presentation...asjzZ-eXbQ/pub at slide 17

Or check out the method we used https://www.google.com/url?sa=t&rct=...NPCexg&cad=rja, page 6
Reply With Quote
  #3   Spotlight this post!  
Unread 11-09-2016, 01:33 PM
prairir001 prairir001 is offline
Registered User
FRC #0865
 
Join Date: Nov 2016
Location: Toronto
Posts: 4
prairir001 is an unknown quantity at this point
Re: Help: Vision hsv value issues.

we are using opencv 3.1.0. we have been trying values for a while but non of them seem to work. we are trying to isolate the magentaish color that the reflective tape gives off when you shine a light at it. one of the issues that we have found is that because the magentaish color is at the beginning and the end of spectrum, that it is very hard to isolate for that color.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-09-2016, 09:25 PM
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 466
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Help: Vision hsv value issues.

Quote:
Originally Posted by prairir001 View Post
One of the issues that we have found is that because the magentaish color is at the beginning and the end of spectrum, that it is very hard to isolate for that color.
What you could do is do one filter to get the mask for the end of the spectrum and one for the beginning of the spectrum and then add the two resulting masks together. That'll give you both parts in one filtered image.
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote
  #5   Spotlight this post!  
Unread 11-09-2016, 09:27 PM
prairir001 prairir001 is offline
Registered User
FRC #0865
 
Join Date: Nov 2016
Location: Toronto
Posts: 4
prairir001 is an unknown quantity at this point
Re: Help: Vision hsv value issues.

i figured it out earlier today but thank you for helping.
Reply With Quote
Reply


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:30 AM.

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