![]() |
simple camera feed and LCD output
Hi!
I was just wanting to check that this is working correctly and make it available if so I have a problem where enabling code would bring robot code and comms down till i reboot I made this by cutting huge sections out of my code, simplifying them(I was separating R G and B then comparing particles[in separate files]), then putting them in the vision example Code:
#include "WPILib.h" |
Re: simple camera feed and LCD output
I did not look at your code very carefully but one thing jumped out:
Code:
void CamAnOut (void)Code:
void CamAnOut (void) |
Re: simple camera feed and LCD output
oh yeah-> retyped that, thanks
|
Re: simple camera feed and LCD output
I have altered my approach. I just created tracking with the NI Vision Assistant. After doing so and using the tool to create C code, then hooking up to a project, I fixed a few errors in the generated code. I still have two I'm not sure about which occur within the generated c file.
//first instance of the first error error: invalid conversion from `int' to `MeasurementType' //only instance of the second error error: invalid conversion from `void*' to `IVA_Result*' //second of first error (argument 4 is of type MeasurementType with which I am having the first error) error: initializing argument 4 of `int imaqMeasureParticle(Image*, int, int, MeasurementType, double*)' //third of first error error: initializing argument 4 of `int imaqMeasureParticle(Image*, int, int, MeasurementType, double*)' |
Re: simple camera feed and LCD output
//These are filtering the image (how do I do this with the order I created?[is this done by the vision assistant algorithm?])
// BinaryImage *thresholdImage = image.ThresholdRGB(threshold); // //pixel range // BinaryImage *bigObjectsImage = thresholdImage->RemoveSmallObjects(false, 2); // // remove small objects (noise) // BinaryImage *convexHullImage = bigObjectsImage->ConvexHull(false); // // fill in partial and full rectangles // BinaryImage *filteredImage = convexHullImage->ParticleFilter(criteria, 2); // // find the rectangles //This is getting the particles' results. will it be the same? // vector<ParticleAnalysisReport> *particles = filteredImage->GetOrderedParticleAnalysisReports(); //This is selecting a target to output results from // ParticleAnalysisReport *par = &(particles)->at(choiceTarget); |
| All times are GMT -5. The time now is 17:34. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi