本文整理汇总了Java中edu.wpi.cscore.VideoCamera类的典型用法代码示例。如果您正苦于以下问题:Java VideoCamera类的具体用法?Java VideoCamera怎么用?Java VideoCamera使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
VideoCamera类属于edu.wpi.cscore包,在下文中一共展示了VideoCamera类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MultiCameraSource
import edu.wpi.cscore.VideoCamera; //导入依赖的package包/类
/**
* Create a MultiCameraSource with a default camera.
*
* @param defaultCamera The default camera.
*/
public MultiCameraSource(VideoCamera defaultCamera) {
this();
addCamera(defaultCamera, DEFAULT);
switchToCamera(DEFAULT);
}
示例2: CameraSource
import edu.wpi.cscore.VideoCamera; //导入依赖的package包/类
/**
* Create a CameraSource from a {@link VideoCamera} with a {@link Detector} to process the images asynchronously.
*
* @param camera The camera.
* @param detector The detector to process the images.
*/
public CameraSource(VideoCamera camera, Detector<?> detector) {
this.camera = camera;
setDetector(detector);
sink.setSource(camera);
}
示例3: addCamera
import edu.wpi.cscore.VideoCamera; //导入依赖的package包/类
/**
* Add a camera to the MultiCameraSource.
*
* @param camera The camera to add.
* @param name The name for the camera.
*/
public void addCamera(VideoCamera camera, String name) {
cameras.put(name, camera);
}