- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.github.sarxos.webcam.WebcamDevice.getName()
方法的一些代码示例,展示了WebcamDevice.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebcamDevice.getName()
方法的具体详情如下:
包路径:com.github.sarxos.webcam.WebcamDevice
类名称:WebcamDevice
方法名:getName
[英]Get device name.
[中]获取设备名称。
代码示例来源:origin: sarxos/webcam-capture
/**
* Get webcam name (device name). The name of device depends on the value returned by the
* underlying data source, so in some cases it can be human-readable value and sometimes it can
* be some strange number.
*
* @return Name
*/
public String getName() {
assert device != null;
return device.getName();
}
代码示例来源:origin: sarxos/webcam-capture
@Override
public List<WebcamDevice> getDevices() {
List<WebcamDevice> devices = new GetDevicesTask(this).getDevices();
if (LOG.isDebugEnabled()) {
for (WebcamDevice device : devices) {
LOG.debug("OpenIMAJ found device {}", device.getName());
}
}
return devices;
}
代码示例来源:origin: sarxos/webcam-capture
/**
* Register IP camera.
*
* @param ipcam the IP camera to be register
* @return IP camera device
*/
public static IpCamDevice register(IpCamDevice ipcam) {
for (WebcamDevice d : DEVICES) {
String name = ipcam.getName();
if (d.getName().equals(name)) {
throw new WebcamException(String.format("Webcam with name '%s' is already registered", name));
}
}
DEVICES.add(ipcam);
rescan();
return ipcam;
}
代码示例来源:origin: sarxos/webcam-capture
@Override
protected void handle() {
WebcamDevice device = getDevice();
if (!device.isOpen()) {
return;
}
LOG.info("Closing {}", device.getName());
device.close();
}
}
代码示例来源:origin: sarxos/webcam-capture
@Override
public List<WebcamDevice> getDevices() {
LOG.debug("Searching devices");
if (grabber == null) {
WebcamNewGrabberTask task = new WebcamNewGrabberTask(this);
grabber = task.newGrabber();
if (grabber == null) {
return Collections.emptyList();
}
}
List<WebcamDevice> devices = new GetDevicesTask(this).getDevices(grabber);
if (LOG.isDebugEnabled()) {
for (WebcamDevice device : devices) {
LOG.debug("Found device {}", device.getName());
}
}
return devices;
}
代码示例来源:origin: sarxos/webcam-capture
if (nd.getName().equals(od.getName())) {
ni.remove();
oi.remove();
if (webcam.getDevice().getName().equals(device.getName())) {
notified.add(webcam);
break;
if (webcam.getDevice().getName().equals(device.getName())) {
notifyWebcamFound(webcam, listeners);
break;
代码示例来源:origin: sarxos/webcam-capture
@Override
protected void handle() {
WebcamDevice device = getDevice();
if (device.isOpen()) {
return;
}
if (device.getResolution() == null) {
device.setResolution(device.getResolutions()[0]);
}
LOG.info("Opening webcam {}", device.getName());
device.open();
}
}
代码示例来源:origin: io.rhiot/camel-webcam
@Override
public void webcamFound(WebcamDiscoveryEvent event) {
Webcam webcam = event.getWebcam();
LOG.debug("Discovered webcam : {}", webcam.getDevice().getName());
webcams.put(webcam.getDevice().getName(), webcam);
}
代码示例来源:origin: io.rhiot/camel-webcam
@Override
public void webcamGone(WebcamDiscoveryEvent event) {
LOG.info("Webcam : {} is gone", event.getWebcam().getDevice().getName());
webcams.remove(event.getWebcam().getDevice().getName());
}
代码示例来源:origin: com.github.sarxos/webcam-capture-driver-ipcam
/**
* Register IP camera.
*
* @param ipcam the IP camera to be register
* @return IP camera device
*/
public static IpCamDevice register(IpCamDevice ipcam) {
for (WebcamDevice d : DEVICES) {
String name = ipcam.getName();
if (d.getName().equals(name)) {
throw new WebcamException(String.format("Webcam with name '%s' is already registered", name));
}
}
DEVICES.add(ipcam);
rescan();
return ipcam;
}
代码示例来源:origin: io.rhiot/camel-webcam
@Override
protected void doStart() throws Exception {
super.doStart();
installer = resolveInstaller();
String requiredPackages = getRequiredPackages();
try {
if (!installer.install(requiredPackages) && !ignoreInstallerProblems) {
throw new IllegalStateException("Unable to start webcam, failed to install dependencies");
}
} catch (Exception ex) {
if(ignoreInstallerProblems) {
LOG.warn(ex.getMessage());
} else {
throw ex;
}
}
//Use the provided webcam/s
if (getWebcams().size() == 0) {
loadWebcamDriver();
List<Webcam> webcamList = Webcam.getWebcams(timeout);
if (webcamList == null || webcamList.size() == 0) {
throw new IllegalStateException("No webcams found");
}
webcamList.forEach(w -> webcams.put(w.getDevice().getName(), w));
LOG.info("Detected webcams : {}", webcams.keySet());
}
}
我正在使用 Webcam.js在我的 Laravel 项目中用于捕获图像。 我已经从这个线程(Webcam js Error in Chrome: Could not access webcam)中了
我经常收到上述主题行的错误。 this被抛出的代码如下(else部分的函数) if ($('#clicktosnap').is('.disabled')) { alert ("Please enabl
我正在尝试在 Web 应用程序上使用两个摄像头。我的要求是从浏览器中检测这些摄像头,并一次选择一个摄像头来捕获图像并将其显示在网页中。这可能就像我们正在显示两个按钮,通过点击一个按钮 camera1
我是一名网络开发人员,熟悉 php、jscript 和小 Flash。但是我想知道如何允许我的用户使用他们的网络摄像头为他们的个人资料拍摄照片? 是否可以使用 HTML5 或者我将不得不使用 Flas
我正在使用Powerbuilder应用程序中的EZTWAIN从HP扫描仪获取图像。最近,我尝试了柯达型号(i1120),似乎不支持该型号。具体来说,应用程序在扫描过程中卡住(也许问题与duplex扫描
有没有办法发现某个网络摄像头的所有可用编码(例如 x-raw-rgb -xraw-yuv)? 此外,我还想了解可用的分辨率。 谢谢! 最佳答案 是的,将 v4l2src 元素设置为就绪并检查 src
我正在做一个项目,我使用网络摄像头以不同的曝光值连续拍摄照片(制作 HDR 图像流)。我一直在使用 Logitech C310 相机,并通过将以下内容发送到命令行来设置曝光值: "v4l2-ctl -
我正在尝试用 C# 制作一个允许用户录制视频的网络摄像头应用程序。我一直在使用 DirectShow.Net 来预览网络摄像头并拍摄快照。但需要能够在预览网络摄像头的同时捕捉视频和音频。我尝试过的一件
我正在开发一个应使用网络摄像头进行流媒体播放的应用程序, 为此,我使用了libvlc api, 我可以从网络摄像头流式传输 但是我正在获得YUYV格式的视频流, 但是我想要MJPEG格式的流媒体, 所
我使用PyQt5和OpenCV编写了一个网络摄像头应用程序。它工作正常,但是我想对其进行更多改进。我有几个问题: 1)在WebCam.py的第24行,当我单击退出按钮时,我想正确地打破while循环。
我刚得到一个高端 1080p 网络摄像头,在 Windows 10 的“相机”应用程序中打开它,以 25 或 30fps 的速度完美显示它,但是当使用 opencv 时它非常慢,我在循环中放置了一个计
本文整理了Java中com.github.sarxos.webcam.WebcamDevice类的一些代码示例,展示了WebcamDevice类的具体用法。这些代码示例主要来源于Github/Stac
我是 Pure Data 的新手,到目前为止我对它印象深刻。 我需要做的是访问网络摄像头并提取特定像素的亮度(或 RGB,转换很容易)值。 这可能吗? 最佳答案 看起来答案是“pix_data”。 在
我想从 Logitech C920 网络摄像头流式传输原始视频,同时 两者 使用 GStreamer 1.0 显示和保存视频到文件。 如果我从相机传输 h264 编码的视频(相机提供硬件编码的 h26
我尝试在我的应用程序中用 Media Foundation ("MF") 上的 Directshow ("DS") 替换代码,但遇到了一个问题 - 无法在网络摄像头上使用 MF 设置所需的 fps。
最近安装了 OpenCV 2.4.3 尝试做一些视频捕获和对象区分。但遗憾的是,每次尝试通过网络摄像头捕获视频都会导致内存访问冲突。 我正在使用 Visual Studio 2010 (Win 7 x
我正在使用 https://github.com/jhuckaby/webcamjs 的 webcam.js在移动设备中,前置摄像头默认打开。我想将默认设置更改为后置摄像头。有什么办法可以更换摄像头设
我正在运行人脸识别代码,我的问题是运行代码后,我的网络摄像头没有关闭。绿灯仍然亮着,为了关闭它,我必须关闭我的电脑才能让摄像头正常工作。你有什么建议,为什么会这样? from imutils.vide
我有一个 Logitech C920 挂接到我的 PC 上,我正在尝试用它来点击使用 OpenCV 的图片。 我知道我可以使用以下方式捕获图像: cam = cv2.VideoCapture(1) s
当我尝试将电缆与网络摄像头连接时,系统提示电缆无法连接到该端口。有人能帮我拿一下这个吗?
我是一名优秀的程序员,十分优秀!