Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   modifying the camera image on the dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=102080)

iblis432 06-02-2012 09:43

modifying the camera image on the dashboard
 
I was successful in integrating the vision code from the example into the robot code and all works well on that end, but I am having trouble supplying that data to the dashboard. I am trying to send the image of that black and red screen that appears when looking at the rectangle, along with the overlay. My preference would be to have an unchanged image next to the modified image.

My first try was to simply send the image through "Set User Data High" but it returned a blank image on the dashboard.

Next I tried copying the code from the vision processing vi into my dashboard code, hoping I could just have the computer process the square locations and build the new image, but again the image remained blank.

I can post the code this evening. Does anyone know how I can get what I am looking for?

Alan Anderson 06-02-2012 12:27

Re: modifying the camera image on the dashboard
 
Quote:

Originally Posted by iblis432 (Post 1120889)
My first try was to simply send the image through "Set User Data High" but it returned a blank image on the dashboard.

Next I tried copying the code from the vision processing vi into my dashboard code, hoping I could just have the computer process the square locations and build the new image, but again the image remained blank.

Is it a blank white, or a blank black? The red/black processed version is a binary image, and if you try to display that without selecting the binary palette for the indicator it will be presented as black and slightly less black. If that's your problem, you can fix it by changing the palette for the image indicator.

iblis432 06-02-2012 16:45

Re: modifying the camera image on the dashboard
 
Thanks for the help, that was not the issue but I got it working now, although honestly I don't know what's all that different.

PSHRobotics 09-02-2012 18:01

Re: modifying the camera image on the dashboard
 
Could you provide information about how you fixed your problem?
We are able to see the processed image when we run the dashboard out of labview (by pressing the arrow in our edited Dashboard Main vi). However, when we build the Dashbaord.exe we get a plain/gray screen which to us seems like no data is being sent to the Dashboard when we run it as the .exe

iblis432 10-02-2012 09:10

Re: modifying the camera image on the dashboard
 
Why certainly, here is a brief description, and either this evening or tomorrow I will upload the code.

Basically I changed what we wanted. I no longer have the two images combined, and instead have the particle overlay going directly onto the camera image.

I copied the part of the vision processing code that creates the overlay (including the scores limiter, this is important), and I pasted it into the dashboard project. I then took the pre-existant vision indicator and connected it to where the overlay's output is. I'm sure that sounds confusing, so I will be sure to give you a copy of the code ASAP

PSHRobotics 10-02-2012 19:04

Re: modifying the camera image on the dashboard
 
Quote:

Originally Posted by iblis432 (Post 1123653)
Why certainly, here is a brief description, and either this evening or tomorrow I will upload the code.

Basically I changed what we wanted. I no longer have the two images combined, and instead have the particle overlay going directly onto the camera image.

I copied the part of the vision processing code that creates the overlay (including the scores limiter, this is important), and I pasted it into the dashboard project. I then took the pre-existant vision indicator and connected it to where the overlay's output is. I'm sure that sounds confusing, so I will be sure to give you a copy of the code ASAP

Actually it makes perfect sense and that is what we were thinking about doing if we could not get a way to see the other image off the dashboard or if that used too much of the crio's processing. Thanks!

iblis432 10-02-2012 22:28

Re: modifying the camera image on the dashboard
 
yep : ) basically the image created on the dashboard is not generated by the cRIO, but instead by your computer, having them work in parallel to compute what to do.

CRLS97 11-02-2012 17:55

Re: modifying the camera image on the dashboard
 
Quote:

Originally Posted by iblis432 (Post 1124042)
yep : ) basically the image created on the dashboard is not generated by the cRIO, but instead by your computer, having them work in parallel to compute what to do.


after having your computer process it, is there a way of sending the data back to the crio so the code running on the crio can use that information to do whatever one programs it to do?

iblis432 11-02-2012 18:57

Re: modifying the camera image on the dashboard
 
I do not doubt that there is a way, I just personally do not know how. I have it so both the robot and the computer are doing the same process, I just don't have the lag time of sending processed images to the dashboard

Alan Anderson 12-02-2012 11:10

Re: modifying the camera image on the dashboard
 
Quote:

Originally Posted by CRLS97 (Post 1124486)
after having your computer process it, is there a way of sending the data back to the crio so the code running on the crio can use that information to do whatever one programs it to do?

Here's an example.

Ross3098 13-02-2012 18:46

Re: modifying the camera image on the dashboard
 
We are having a lot of trouble with the dashboard processing as well. We are using THE EXACT SAME CODE as the robot vision processing (Rectangular Target Processing.vi) is and it works on the cRIO with no issues (other than massive lag to other robot systems). We wire the unfiltered feed to the dashboard and it clearly shows in the window.

Our problem is with the IMAQColorThreshold vi. The image leaving the vi is absolutely white. Our parameters are exactly the same as the cRIO processing code and we have no other ideas.

:ahh: :ahh: :ahh: :ahh:

iblis432 17-02-2012 14:30

Re: modifying the camera image on the dashboard
 
2 Attachment(s)
In the attached files are both our robot code and our dashboard code. I hope this helps everyone, and sorry for being slow about getting it to you.

iblis432 19-02-2012 08:37

Re: modifying the camera image on the dashboard
 
well then, I'm assuming this helped everyone and answered their questions?


All times are GMT -5. The time now is 11:34.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi