I don't have much konwledge in electronics. i wanted to turn on/off led connected to usb port using program. usb port consists 4 line (data+,data-,voltage ,ground) if i connect voltage and ground lines to led , it will glow. i've been searching on internet this issue and i find that it is not possible to control led connected to usb using program because supply over datapin is too low
我没有太多的电子知识。 我想打开/关闭使用程序连接到USB端口的led。 usb端口由4条线(数据+,数据,电压,地)组成,如果我将电压和地线连接到led,它会发光。 我一直在互联网上搜索这个问题,我发现它不可能控制led连接到USB使用程序,因为数据库供应过低,无法用于关闭领导。 但是如果我将我的led连接到vol和ground引脚并控制usb端口的整个电源,我想可以控制led使用程序。 有一种方法可以通过USB端口禁用和启用电源。
Does anybody know how to control USB pins on a certain USB port? I think it is definately possible in assembler but what about C++ or C#? I want to be able to use USB battery as a power supply for an LED or something like that. So then a program would power it on and power it off making it flash. I know it sounds pointless but I need to do it for something awesome. I also know that it mig
有人知道如何控制某个USB端口上的USB引脚吗? 我认为在汇编中肯定有可能,但C ++或C#怎么样? 我想能够使用USB电池作为LED的电源或类似的东西。 那么一个程序会启动它并关闭它使其闪烁。 我知道这听起来毫无意义,但我需要为它做一些很棒的事情。 我也知道它可能需要一个自定义驱动程序。 USB不是微不足道的,所以我想你会遇到一些问题(错误)使用它。 使用标准串行端口,你会变得更好(恕我直言),这些串行端口已
I have a simple use case. Where I want to display a usb webcam and record the the live video(Not as screen capture). I have checked these links 1) WebCam 2)Simple Webcam But it does not show how to record a video. Can I extend these to record a video or should I look at some other dll ? Edit: Currently I am using Expression encoder SDK, but is giving a issue with a specific use case (Q
我有一个简单的用例。 我想在哪里显示一个USB摄像头并录制实时视频(不是屏幕截图)。 我检查了这些链接 1)WebCam 2)简单的网络摄像头 但它不显示如何录制视频。 我可以扩展这些来录制视频,还是应该查看其他某个DLL? 编辑:目前我正在使用表达式编码器SDK,但提出了一个特定用例的问题(问题) Windows中的视频捕获API是: Windows视频(简单,有限,弃用,真的过时) DirectShow的 媒体基金会 所有这
I am accessing the Webcam through "avicap32" dll file in C# and i followed the code from here. Webcam starts and its LED become active Interesting point is that image is nor set with Image property neither with BackgroundImage property it is set via picturebox Handle. Picturebox is not visible & Webcam light stays active but there is not event of picturebox that triggers when its
我通过C#中的“avicap32”dll文件访问网络摄像头,并且我遵循了这里的代码。 网络摄像头启动并且其LED变为活动状态有趣的一点是,图像不是通过ImageBox属性设置的,也不是通过PictureBox Handle设置的BackgroundImage属性。 图片框不可见&网络摄像头灯保持活动状态,但没有图片框事件会在其图像通过其句柄进行更改时触发 我已经尝试过的是 Picturebox BackgroundImageChanged事件(Not firing) Picturebox Paint Event
I would like your help please on a WebCamera problem. I've used a library available from Nuget; WebEye.Controls.Wpf.WebCameraControl (version 1.0.0). The URL is https://www.nuget.org/packages/WebEye.Controls.Wpf.WebCameraControl/ The article and instructions are available at: http://www.codeproject.com/Articles/330177/Yet-another-Web-Camera-control Due to project constraints, I develop
我想请你帮忙解决WebCamera问题。 我使用了Nuget提供的一个库; WebEye.Controls.Wpf.WebCameraControl(版本1.0.0)。 该网址是https://www.nuget.org/packages/WebEye.Controls.Wpf.WebCameraControl/ 该文章和说明可在以下网址找到:http://www.codeproject.com/Articles/330177/Yet-another-Web-Camera-control 由于项目限制,我为Linx平板电脑(Windows 10)开发了WPF应用程序,而不是通用Windows应用程序。 我使用W
I'm developing a windows UI C# app and I'm attempting to Capture a webcam image without using the CameraCaptureUI , as I don't want any interruptions in my app. I am using signatures on a canvas, and I want to capture an image of the user's face when he begins his signature to verify identities without altering the screen. How might I accomplish this? I figured out how to do
我正在开发一个Windows UI C#应用程序,我试图捕获一个摄像头图像而不使用CameraCaptureUI ,因为我不想在我的应用程序中有任何中断。 我在画布上使用签名,并且当他开始签名以验证身份而不更改画面时,我想捕获用户脸部的图像。 我该如何做到这一点? 我想出了如何做到这一点。 使用新的MediaCapture和ImageEncodingProperties项目,我能够在没有任何预览UI的情况下捕捉图像。 captureManager = new MediaCapture();
I need some help for one part of my project. I need webcam to capture 3 images in 2-seconds intervals triggered by motion detector. Here is my code. The problem is I have three times the same image (the first one). using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO.Ports; using System.IO; using System.ComponentModel; using System.Data; using
我需要一些帮助来完成我的项目的一部分。 我需要网络摄像头以运动检测器触发的2秒间隔拍摄3张图像。 这是我的代码。 问题是我有三次相同的图像(第一个)。 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO.Ports; using System.IO; using System.ComponentModel; using System.Data; using System.Threading.Tasks; using AForge.Video; using AForge.Video.Direct
使用.NET C#,可以在不使用磁盘或表单图形元素(即使没有任何形式)的情况下将图像从网络摄像头捕获到内存中吗? Using EmguCv You can capture and record videos from your webcam. Use the videoWriter to record the frames. You can find more information here.
使用.NET C#,可以在不使用磁盘或表单图形元素(即使没有任何形式)的情况下将图像从网络摄像头捕获到内存中吗? 使用EmguCv您可以从网络摄像头捕捉并录制视频。 使用videoWriter记录帧。 您可以在这里找到更多信息。
I want to capture image from webcam using c#, asp.net web application. Can somebody provide me a sample code to do this? I think that only Flash has webcam support (it has something like: var c=Camera.get();movieControl.attachVideo(c); - but don't know about transferring video stream to server). You need some client scripting, which has nothing to do with server side of story, it could b
我想使用c#,asp.net web应用程序从网络摄像头捕捉图像。 有人可以提供一个示例代码来做到这一点吗? 我认为只有Flash有摄像头支持(它有这样的:var c = Camera.get(); movieControl.attachVideo(c); - 但不知道关于传输视频流到服务器)。 你需要一些客户端脚本,这与服务器端的故事无关,它可以是asp.net,php,ruby,...
So I have a WPF Window that captures mouse events on an image. I am doing this by the following code: <Image Name="imgPrimaryImage" Width="512" Height="512" RenderOptions.BitmapScalingMode="NearestNeighbor" Margin="5" Source="{Binding Path=ImageMgr.ImageSource}" MouseLeftButtonDown="OnMouseLeftButtonDown" MouseMove="OnMouseMove" Mous
所以我有一个捕获图像上的鼠标事件的WPF窗口。 我正在通过以下代码执行此操作: <Image Name="imgPrimaryImage" Width="512" Height="512" RenderOptions.BitmapScalingMode="NearestNeighbor" Margin="5" Source="{Binding Path=ImageMgr.ImageSource}" MouseLeftButtonDown="OnMouseLeftButtonDown" MouseMove="OnMouseMove" MouseLeftButtonUp="OnMouseLeftB