View Single Post
  #2   Spotlight this post!  
Unread 28-05-2015, 23:45
TheHolyHades1 TheHolyHades1 is offline
Registered User
no team
 
Join Date: Jan 2014
Rookie Year: 2010
Location: usa
Posts: 145
TheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the rough
Re: opencv a place to start

Quote:
Originally Posted by cpapplefamily View Post
If I'm reading your suggestion i should test the opencv programming on my Ubuntu partitioned laptop This way i can stay in the java language. I have seen loads of code to procces through i just want to be sure as I'm teaching my self how to use it that I'm not ....hate to say waist..... a bunch of time in a language i will not be using. My trouble is i don't spend enough time in one language to GREAT. Arduino C, Raspberrypi Python, now FRC Java. Do teams often offload the vision to other processors like pi's? Will the gearsbot simulator run vision?

Thank for the start.
Hey,

It really depends on what your team is using, and what you're feeling comfortable with. I know it's *possible* to run vision code on the roborio, but as the system is new, you'll likely be able to find greater support if you offload the computation to a coprocessor, like a raspi as you mentioned.

The raspi is a linux system, so writing your code on an Ubuntu partition is recommended for similarity of the systems. That, and it's *significantly* easier to get all of the dependencies installed in the Ubuntu system vs the windows one. As for language, there exist openCV ports for a variety of languages. The "primary" one is the C++ version, but there exist C and Python versions at the very least, and I'm sure ports exist for Java and others. The nice thing about these ports is that the functions are essentially the same among the languages - the Python and C++ version, for example, have the same function names with slightly differing parameters (by type). So, learning opencv in a particular language should let you port your code to another language quite quickly, and your effort won't really be wasted by any means.

So, my recommendation would be to pick the language that your team uses for their overall code (that is, pick between Java and C++). If you choose the other, you still can't really go wrong.

EDIT: Just read that your team runs Java. So choose Java.