|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Vision in Java
First, a disclaimer: I am not a programmer. I am a mechanical mentor dipping my toe into the programming side to help set some wheels in motion for a vision system.
My team is 100% Java. For a variety of reasons we have decided to program in it exclusively. There are lots of choices for implementing a vision system. On the roboRIO vs on the driver station vs on a co-processor. If on the DS, it could be in roboRealm, NI's code, or something else. I'm not familiar with the individual requirements or pros/cons for each of these options. My question: as a pure Java team, what is the path of least resistance for getting a vision system up and running? We've never done one and I want to make sure we get something implemented this season, even if it is very basic. Thanks. |
|
#2
|
||||
|
||||
|
Re: Vision in Java
If you're just looking for getting vision on your dashboard with a USB camera, I stripped down the SimpleVision template to 3 lines of code that you run when initializing everything:
Code:
CameraServer camera = new CameraServer();
camera.setQuality(50);
camera.startAutomaticCapture("cam0");
Good luck! |
|
#3
|
||||
|
||||
|
Re: Vision in Java
Personally, I love team 341's solution to vision in 2012. They ran it on a dashboard that runs on the driver station. It's written in Java and worked very nicely. In my opinion, 341 was one of the most impressive robots to watch.
|
|
#4
|
||||
|
||||
|
Re: Vision in Java
Quote:
|
|
#5
|
|||||
|
|||||
|
Re: Vision in Java
Thanks, I'll take a look at the Daisy implementation. I have heard that JavaCV is poorly documented, at least relative to OpenCV. Has that been your experience?
|
|
#6
|
|||
|
|||
|
Re: Vision in Java
It definitely is not as well documented as it is for c and cpp! I might have a vision solution so if it works I will document it and polish up for other teams to use!
|
|
#7
|
|||
|
|||
|
Re: Vision in Java
I wouldn't use JavaCV (the old third-party Java wrappers) because they only support OpenCV 2 and there is now an official Java API. It does not have its own documentation but the C++ documentation applies to it as well in most cases.
|
|
#8
|
||||
|
||||
|
Re: Vision in Java
This. I've noticed a few changes, specifically that there is no IplImage anymore (Mat is the new storage type of choice) and imread/imwrite is in Imgcodecs.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|