This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
#include <windows.h> | |
#include <tchar.h> | |
#include <setupapi.h> | |
#include <initguid.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Compile with -lusb | |
*/ | |
#include <stdio.h> | |
#include <usb.h> | |
main(){ | |
struct usb_bus *bus; | |
struct usb_device *dev; | |
usb_init(); | |
usb_find_busses(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include "cv.h" | |
#include "highgui.h" | |
#define NUM_SECONDS 30 | |
int main( int argc, char** argv ) | |
{ | |
if (argc < 2) |