|
|
|
#1
|
|||
|
|||
|
Re: Tower Tracker 1.0
My robotics team is also getting the same error that everyone else is. When we try and run it in the command prompt is gives us the error that it is having a hard time with having Open CV in the library. It can't find it but it is in there. Any ideas on how to fix it? We followed the directions as it said and nothing works. We also added the DLL file in Open CV folder to system 32. I included a screenshot of the error we were getting. Please help.
|
|
#2
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
Quote:
|
|
#3
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
|
|
#4
|
|||
|
|||
|
Re: Tower Tracker 1.0
that or you put it in the same folder like i have...Cheers on getting it to work!
|
|
#5
|
|||
|
|||
|
Re: Tower Tracker 1.0
I modified the code to output distance values to the network table. When I add code to put the distance value on the dashboard, no values show up. Also, when I use the OutlineViewer to check any networktable values (with the localhost as "roboRIO-3929-FRC.local"), nothing shows up except the Root folder. Did you get the network table to work?
|
|
#6
|
||||
|
||||
|
Re: Tower Tracker 1.0
Where do I install the Network Table 3.0 jar
|
|
#7
|
|||
|
|||
|
Re: Tower Tracker 1.0
When trying to run the program on the Jetson TK1, I get the error
Code:
java.lang.UnsatisfiedLinkError: no libopencv_java2410 in java.library.path Thank you! -Chris Last edited by TheGuyWhoCodes : 23-01-2016 at 17:16. |
|
#8
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
(Note: Its been 28 or so years since I had to do more complicated math so go easy on me). It looked like in the code you had a known angle of the camera (I'm assuming vertical angle.) and you are plugging that in. I get how this works more or less for figuring out distance/vertical angle. Where we are struggling a bit is in figuring out when we are "off center" - given what you can get out of a contour I'm not sure we would know that we need to move a bit to the right or left in order for a shot to work. Did you wind up solving that? If the contour had given us the boundaries of the rectangle's length or coordinates then I think we could evaluate relative sizes to know to move left or right but I'm not sure even about that. Any feedback is appreciated! |
|
#9
|
|||
|
|||
|
Re: Tower Tracker 1.0
Would this code work with a Microsoft Lifecam?
|
|
#10
|
||||
|
||||
|
Re: Tower Tracker 1.0
You will have to modify a few lines of code but other than that... Yes.
|
|
#11
|
|||
|
|||
|
Re: Tower Tracker 1.0
Wait, is there a way to offload the usbcamera data onto a program on the computer?! I thought that wasn't possible yet...
|
|
#12
|
||||
|
||||
|
Re: Tower Tracker 1.0
We are only using it to view the USB camera feed in the SmartDashboard
|
|
#13
|
||||
|
||||
|
Re: Tower Tracker 1.0
Has anyone gotten a python version of this code to work?
In python many of the methods that this code requires do not exist and this is a problem for many teams that plan on using Python for their vision processing. We have trying to port this code for use as sample code for days but as you can see many of the functions do not exist which causes problems. Here is our code.. so far http://pastebin.com/ecdDFDQp the rectangle class is the main problem we are being faced with. There seems to be no equivalent for those using Python. If anyone has found a solution to this issue. Then please let us know! Thanks! |
|
#14
|
||||
|
||||
|
Re: Tower Tracker 1.0
I believe that in the OpenCV python bindings rectangles are represented as tuples.
|
|
#15
|
|||
|
|||
|
Re: Tower Tracker 1.0
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|