https://github.com/OpenFTC/EasyOpenCV -- EasyOpenCV Library + Installation Instructions
https://gofile.io/d/PkpIIp. -- Required Files + Download Links
https://imgur.com/a/OWMyrke -- Image Library for Testing (Provided by Kettering Ri3D)
Update:
For using it with a webcam with a control hub, do the following:
Inside of public class WebcamExample extends LinearOpMode, you will need to define OpenCvCamera webcam; and then an @override statement and a public void runOpMode(). Inside of the runOpMode() you will put the two lines below. Note that "Webcam 1" is the name of the webcam on the robot's configuration. You will need to change it depending on what you named the webcam inside of your configuration file. You can look at the attached file to see an example of configuring openCV with a webcam. If you have any further questions, feel free to contact us.
int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier("cameraMonitorViewId", "id", hardwareMap.appContext.getPackageName());
webcam = OpenCvCameraFactory.getInstance().createWebcam(hardwareMap.get(WebcamName.class, "Webcam 1"), cameraMonitorViewId);
Twitter: / wizardsexe
Facebook: / ftc9794
Instagram: / wizards.exe
Website: https://wizards-exe.weebly.com/
Email: [email protected]