|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
OpenCV Python! Where to start?
I have openCV installed with python but all the tutorials I am finding expect you to know a bunch of prior knowledge. Anyone have a good spot for a newbie to start. I have no prior knowledge of vision tracking or how it works. Thanks for you help.
Tomy |
|
#2
|
||||
|
||||
|
Re: OpenCV Python! Where to start?
There's a lot to learn about image processing in general.
![]() I recommend the OpenCV tutorials/walkthroughs. Additionally, there are a bunch of examples distributed in the OpenCV source tree -- try to run them locally and see what they do, and then modify them in small ways. Once you've done that, then I recommend reading various FIRST-related image processing whitepapers and related code (search ChiefDelphi for these), to get a feel for what types of techniques you can use to accomplish the tasks you need to accomplish. You may find that GRIP is a useful tool (I haven't used it, but it looks promising) to experiment with image processing techniques and such. In particular, screensteps has a walkthrough on how to do image processing for the 2016 game using GRIP. |
|
#3
|
|||
|
|||
|
Re: OpenCV Python! Where to start?
Quote:
Thank you. I've poked around with grip would you do the same processes as grip pip line? (Resize -> HSV/HSL -> Find Contours -> Filter Controus -> Pusblish to network table) What is the difference between HSV and HSL? |
|
#4
|
||||
|
||||
|
Re: OpenCV Python! Where to start?
Quote:
Quote:
|
|
#5
|
|||
|
|||
|
Re: OpenCV Python! Where to start?
Quote:
Thanks for the in - site. Is the method I described before the best way to do vision tracking with openCV? -(Resize -> HSV/HSL -> Find Contours -> Filter Controus -> Pusblish to network table) |
|
#6
|
||||
|
||||
|
Re: OpenCV Python! Where to start?
Generally speaking, that is the methodology we've used for image processing the last few years.
|
|
#7
|
||||
|
||||
|
Re: OpenCV Python! Where to start?
Here's our OpenCV Python code... The numbers it gave me were always wrong but I think thats just because it wasn't tuned...
https://github.com/1684Chimeras/VEX_...a.py#L109-L207 note that line 150 doesn't error out but doesn't do anything either for some reason and lines 126-143 are specific for grabbing an axis camera image Last edited by Arhowk : 07-05-2016 at 13:11. |
|
#8
|
|||
|
|||
|
Re: OpenCV Python! Where to start?
Do you have any other tips? How to deal with lag or with blurry images? I've heard that has been a problem.
|
|
#9
|
||||
|
||||
|
Re: OpenCV Python! Where to start?
Quote:
|
|
#10
|
|||
|
|||
|
Re: OpenCV Python! Where to start?
Quote:
|
|
#11
|
||||
|
||||
|
Re: OpenCV Python! Where to start?
Both. The top section (unhighlighted) is for GRIP. The bottom (highlighted) section uses raw openCV
|
|
#12
|
|||
|
|||
|
Re: OpenCV Python! Where to start?
Interesting. Thank you for the code by the way it has helped me a lot. Do you use GRIP and open-CV in tandem??
|
|
#13
|
||||
|
||||
|
Re: OpenCV Python! Where to start?
Quote:
We calibrate with the GRIP than transpose those values over to OpenCV. Since the grip is already calibrated, there's a GRIP fallback option in case OpenCV failed |
|
#14
|
|||
|
|||
|
Re: OpenCV Python! Where to start?
I wrote some simple code to calibrate the camera in openCV using Track-bars. Would you like a copy of it? I haven't had time to implement it into working code yet I'm just using it to get the values for HSV and manually putting them into another part of code.
|
|
#15
|
||||
|
||||
|
Re: OpenCV Python! Where to start?
This was my last year so I doubt I'll be able to make use of it. You can always post it on this sub forum if you think it merits use.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|