![]() |
WPICameraExtension Vision on PC/Laptop
Sooo I am trying to use all of the particleFilter and convexHull methods that ColorImage and BinaryImage has to offer.
I realize many people use findContours and all that stuff that goes with that but I want to use the great filters CriteriaCollection stuff. The WPICameraExtension has WPIColorImage and WPIBinaryImage but there seems to be NO way to convert between the normal ColorImage and BinaryImage. The only way I have figured out a way is if I save the rawImage Code:
// Save file from camera for useCode:
ColorImage image = new RGBImage("cameraOutput.jpg");Is there a way to make my own system to create a ColorImage? or how do I get around this issue? Here is the reduced code that I am trying to use (Make sure to Run as Administrator): Code:
import edu.wpi.first.smartdashboard.camera.WPICameraExtension;Include these jars: \SmartDashboard\extensions\WPICameraExtension.jar \SmartDashboard\extensions\lib\WPIJavaCV.jar \SmartDashboard\SmartDashboard.jar wpilibj.jar |
| All times are GMT -5. The time now is 10:04. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi