|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Not seeing MS Webcam images in default dashboard
The green arrow, red square, and red circle are for recording the video and smart dashboard values to a log file for later review. Triangle plays a recorded video, circle records the current feed in a new file. Square stops both other actions.
Greg McKaskle |
|
#2
|
|||
|
|||
|
Re: Not seeing MS Webcam images in default dashboard
ok, so it sounds like the RIO isn't opening the camera. We're labview so I can't diagnose anymore than that. Let us know if what markmcgary linked to works.
|
|
#3
|
|||||
|
|||||
|
Re: Not seeing MS Webcam images in default dashboard
So we were able to get our axis camera to show up on the dashboard yesterday by changing the name of it to axis-camera. However, we're having problems connecting to it through our code. We are getting a connection refusal when we access it as such:
Code:
AxisCamera camera = new AxisCamera("axis-camera");
|
|
#4
|
|||
|
|||
|
Re: Not seeing MS Webcam images in default dashboard
Did you try it with .local appended to your address name?
Greg McKaskle |
|
#5
|
|||||
|
|||||
|
Re: Not seeing MS Webcam images in default dashboard
Yes I did. Both gave the same failure. I will get the exception on Saturday and post it.
|
|
#6
|
|||||
|
|||||
|
Re: Not seeing MS Webcam images in default dashboard
Here is the exception we get when trying to run with
Code:
AxisCamera("axis-camera.local");
Code:
java.net.ConnectException: Network is unreachable at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at edu.wpi.first.wpilibj.vision.AxisCamera.createCameraSocket(AxisCamera.java:532) at edu.wpi.first.wpilibj.vision.AxisCamera.access$200(AxisCamera.java:28) at edu.wpi.first.wpilibj.vision.AxisCamera$1.run(AxisCamera.java:406) at java.lang.Thread.run(Thread.java:745) |
|
#7
|
||||||
|
||||||
|
Re: Not seeing MS Webcam images in default dashboard
Quote:
|
|
#8
|
|||||
|
|||||
|
Re: Not seeing MS Webcam images in default dashboard
Have you had any success doing a color threshold of the image?
|
|
#9
|
||||||
|
||||||
|
Re: Not seeing MS Webcam images in default dashboard
I was able to run the 2015 Vision Color Sample, which does a color threshold. I modified it (few lines of code) to get the data from the axis camera, rather then a file. It does a color threshold to find the yellow bin.
|
|
#10
|
|||||
|
|||||
|
Re: Not seeing MS Webcam images in default dashboard
Quote:
Edit: Never mind, found it after the Java update. Last edited by notmattlythgoe : 24-01-2015 at 15:42. |
|
#11
|
|||||
|
|||||
|
Re: Not seeing MS Webcam images in default dashboard
We were finally able to get it running, but not with the AxisCamera. The robotRio sees the IP camera as cam0, so I was able to use it just like the USB cameras. Thank for the help.
Last edited by notmattlythgoe : 26-01-2015 at 08:54. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|