Skip to content

Commit

Permalink
Finish fixing CameraServer
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Dec 26, 2023
1 parent 5db0864 commit 443f3b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ public static AxisCamera addAxisCamera(String name, String[] hosts) {
*/
public static MjpegServer addSwitchedCamera(String name) {
// create a dummy CvSource
CvSource source = new CvSource(name, VideoMode.PixelFormat.kMJPEG, 160, 120, 30);
CvSource source = new CvSource(name, PixelFormat.kMJPEG, 160, 120, 30);
MjpegServer server = startAutomaticCapture(source);
synchronized (CameraServer.class) {
m_fixedSources.put(server.getHandle(), source.getHandle());
Expand Down Expand Up @@ -801,7 +801,7 @@ public static CvSink getVideo(String name) {
* @return OpenCV source for the MJPEG stream
*/
public static CvSource putVideo(String name, int width, int height) {
CvSource source = new CvSource(name, VideoMode.PixelFormat.kMJPEG, width, height, 30);
CvSource source = new CvSource(name, PixelFormat.kMJPEG, width, height, 30);
startAutomaticCapture(source);
return source;
}
Expand Down

0 comments on commit 443f3b9

Please sign in to comment.