hardware

Listing available devices in python-opencv

不打扰是莪最后的温柔 提交于 2019-12-18 04:51:39
问题 I have two webcams attached to my laptop (one built in), both of which work. (If I use Cheese, a webcam thingy that comes with Ubuntu, it uses the external one). If I use cap = cv.CreateCameraCapture(0) or cap = cv.CreateCameraCapture(-1) I get my built in webcam. If I use cap = cv.CreateCameraCapture(1) It doesn't work and the object `cap' displays as: <Capture (nil)> Same with CaptureFromCAM. So I'd like to know what openCV is trying to do and why it doesn't seem to know about the second

Java Hardware Acceleration not working with Intel Integrated Graphics

天涯浪子 提交于 2019-12-18 00:48:26
问题 Hi everyone I hope someone can help me solve this problem. I'm having trouble getting hardware acceleration to work on a laptop with Intel Integrated Graphics. The Problem: Hardware Acceleration using Java 7 update 11 doesn't appear to be working with Intel Integrated Graphics on a Windows 7 and 8 machine using a BufferStrategy with a JFrame. Details Graphics Card: Intel(R) HD Graphics 4000 JRE: Java 7 Update 11 OS: Windows 7, Windows 8 Expected Results Actual Results Resources If you want to

How to access CPU's heat sensors?

做~自己de王妃 提交于 2019-12-17 22:39:32
问题 I am working on software in which I need to access the temperature sensors in the CPU and get control over them. I don't know much hardware interfacing; I just know how to interface with the mouse. I have googled a lot about it but failed to find any relevant information or piece of code. I really need to add this in my software. Please guide me how to have the control over the sensors using C or C++ or ASM. 回答1: Without a specific kernel driver, it's difficult to query the temperature, other

Can the Android handset LED be manipulated without using a Notification object?

a 夏天 提交于 2019-12-17 20:05:40
问题 I want to control the LED on an Android device with more control than is offered by the Notification class. Notifications allow you to change the rate of flashing; e.g. 300 milliseconds on, 1000 milliseconds off, but that's it. Essentially, I would like to turn the LED on and off at will at arbitrary times. Does anyone know if this is possible? The API does not seem to say so. Does it depend on the specific hardware? 回答1: I haven't tried this in code, but the SDK shows this: To turn the LED

in Delphi7, How can I retrieve hard disk unique serial number?

白昼怎懂夜的黑 提交于 2019-12-17 17:45:20
问题 Hi I want to retrieve HDD unique (hardware) serial number. I use some functions but in Windows Seven or Vista they don't work correctly because of admin right. Is it possible retrieve it without run as Administrator? 回答1: Following the links in the question comments Sertac posted, I came across this interesting C++ question, where Fredou answered with a nice link to a codeproject example showing how to do this in .NET, which in turn was based on a link to Borland C++ code and article. The

How to detect all the Devices connected in a WiFi network from Android App

你说的曾经没有我的故事 提交于 2019-12-17 07:11:49
问题 I am developing an app in which I need to scans WiFi network and display the list of all connected devices. Allow a use to tap on a device and the app should show all the hardware info of that particular device. Here by hardware I mean - RAM, Storage Media, Storage Capacity, Device Name, Device IP address, etc. Now this device can be anything like xbox, a laptop with Linux/Windows, mobile phone like iPhone or any Andorid based smart phone or even a printer. How can I scans WiFi network and

What are the ascii values of up down left right?

寵の児 提交于 2019-12-17 05:01:15
问题 What are the ASCII values of the arrow keys? (up/down/left/right) 回答1: There is no real ascii codes for these keys as such, you will need to check out the scan codes for these keys, known as Make and Break key codes as per helppc's information. The reason the codes sounds 'ascii' is because the key codes are handled by the old BIOS interrupt 0x16 and keyboard interrupt 0x9. Normal Mode Num lock on Make Break Make Break Down arrow E0 50 E0 D0 E0 2A E0 50 E0 D0 E0 AA Left arrow E0 4B E0 CB E0

C# little endian or big endian?

笑着哭i 提交于 2019-12-17 02:28:44
问题 In the documentation of hardware that allows us to control it via UDP/IP, I found the following fragment: In this communication protocol, DWORD is a 4 bytes data, WORD is a 2 bytes data, BYTE is a single byte data. The storage format is little endian, namely 4 bytes (32bits) data is stored as: d7-d0, d15-d8, d23-d16, d31-d24; double bytes (16bits) data is stored as: d7-d0 , d15-d8. I am wondering how this translates to C#? Do I have to convert stuff before sending it over? For example, if I

Reading values of SPI data register of STM32 MCU

北战南征 提交于 2019-12-14 01:26:24
问题 There are quite a few similar questions, but none seem to have quite the same issue. I am connecting an STML4 MCU to a 6-axis sensor (LSM6DS3). I have successfully implemented everything in I2C, but would like the extra speed of SPI (and DMA, if I can get these first steps working...). So for a first step, I am trying to read the WHO_AM_I register ( 0x0F ) of the device, which should reply with 0x69 . Here is the code: uint8_t who = 0; // Sanity check/debugging aid should get 0x5D who = 0x43

How to get the frequency of a square wave in a python script

微笑、不失礼 提交于 2019-12-13 13:32:11
问题 I'm using the TSL235 (http://www.ti.com/lit/ds/symlink/tsl235.pdf) light-to-frequency converter and the Raspberry Pi. The output of the sensor is a square wave (50% duty cycle) with frequency directly proportional to light intensity. So I need to know (in a python script) which frequency gets to the Input GPIO-Pin of the Raspberry Pi. I only found a tutorial (http://playground.arduino.cc/Main/TSL235R) which shows a C-code, but I do not understand C... I'm only working with python Reading a