Changes between Version 9 and Version 10 of ControlSystems/SoftwareTeam/Training/GettingStarted/Overlays
- Timestamp:
- Nov 29, 2019, 9:51:45 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/Overlays
v9 v10 40 40 // then stream the combined image to the dashboard 41 41 while(!Thread.interrupted()) { 42 42 43 // grab a frame from the video stream 43 44 if (cvSink.grabFrame(mat) == 0) { … … 46 47 continue; 47 48 } 49 48 50 // Draw a red rectangle on the frame image 49 51 Imgproc.rectangle(mat, // mat to operate on … … 51 53 new Scalar(0,0,255), // OpenCV uses BGR 52 54 5); // line thickness 55 53 56 // Give the output stream the new image to display 54 57 outputStream.putFrame(mat);