View Full Version : Getting data out of a camera array + more
Teamcodeorange
19-01-2012, 23:32
This is probably really simple but I can't figure out what block I need. ;)
I want to get the data out of the vision processing block's array and I can't figure out how. The wire is pink if that helps. (see upload)
also... I tried to find the NI pdf that tells you exactly how to FTP the image processing files onto the cRio, but I can't. The only thing I can find is this: https://decibel.ni.com/content/message/30853#30853 Are there any step-by-step guides? I know some networking but I don't know everything about the file structure of the cRio or how to tell the program where the files are.
Thanks!
Teamcodeorange
20-01-2012, 00:08
Aww, can anyone help? :(
SuperS_5
20-01-2012, 03:26
The are sine examples for the vision stuff. Typically all vision acquisition and recognition occurs in the vision vi and not in the periodic tasks vi. The Tracking data would then be sent via a global Vatican or functional global. If you need help with the globals then come and ask CD.
Greg McKaskle
20-01-2012, 07:24
It actually looks like this is in the teleop. That is not a good place to introduce vision. Vision acquisition and processing was broken out and placed in parallel so that teleop would not have to wait for the camera and image processing to complete.
As for what the pink wire is -- it is an image refnum. To get information from it, you have to use the vision functions from the vision palette.
Greg McKaskle
MotorHead
20-01-2012, 11:29
The pink wire is an array of clusters and needs to be unbundled. Attached is code that will do that. The input 'Index In' is what target information do you want. The vision processing routine returns up to four targets in the array.
Hope that helps.
This is probably really simple but I can't figure out what block I need. ;)
I want to get the data out of the vision processing block's array and I can't figure out how. The wire is pink if that helps. (see upload)
also... I tried to find the NI pdf that tells you exactly how to FTP the image processing files onto the cRio, but I can't. The only thing I can find is this: https://decibel.ni.com/content/message/30853#30853 Are there any step-by-step guides? I know some networking but I don't know everything about the file structure of the cRio or how to tell the program where the files are.
Thanks!
Greg McKaskle
20-01-2012, 18:04
Ahh. I didn't get that it was targeting data. The unbundle code shown is the way to go.
Good luck.
Greg McKaskle
Teamcodeorange
22-01-2012, 13:12
Thanks guys!:D :D :D
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.