Take picture using webcam from command line [closed] - api

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have a Logitech webcam (QuickCam Pro for Notebooks), and I'd like to take a snapshot using the cam from a command line.
Does it have any command line interface?
If not, is there an API that will allow me to build a command line tool like this?

I know this is an old discussion, but maybe you arrived here like I did recently looking for a simple command line app to capture a snapshot image from a webcam in Windows. If so, have a look at the following post on my blog:
http://batchloaf.wordpress.com/2011/04/06/snapz-a-command-line-cam-image-grabber/
It's about a little program called snapz that I've just written to take a snapshot from a USB camera in a batch file. It's really basic - when you run it, it snaps a 640x480 image from the default video capture device (e.g. webcam) and saves it to the current directory. It's free and easy to use.

You could use OpenCV to build such a command line application yourself. Basically you would use captureFromCam() to initialize the camera and then call QueryFrame() to capture a picture. Should be straightforward.

The question itself is not programming related, just a request of some hardwares bundled softwares documentation.
I will answer the question as it WAS a programming question.
If you talking about webcams on a windows OS you can use DirectShow as in this example:
http://www.codeproject.com/KB/audio-video/WebcamUsingDirectShowNET.aspx
Just create a console application in visual studio that takes some commandline parameters and let it use the code in the example and you are on your way.

Related

Communicate between 2 applications [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have written a basic VB winform application (in visual studio) that control the lights. I published and create an install package so I can install this on other PCs.
My questions is how to sync these applications to communicate with one another so if I turn a light on, on one PC, other PC will sense that and display it on thier application.
I can use timer to see if there are any action every 15 second, but I don’t think this is efficient way.
Take a look at this question that involves sending information between computers over a network. You could have the program send what it did to the lights so that the other programs can update themselves.
I'd suggest you look at writing the status to a file accessible to all on the network, use the filewatcher class to detect changes to the file, and when the file changes read it from all PCs to see the current status of everything.
ref: https://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher(v=vs.110).aspx
another option would be to use UDP broadcasting

How to run Clipper Application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a legacy code base written in CLIPPER. I don't have any idea of CLIPPER programming language.
How do I get started with it and deploy this application? Is it a scripting language OR some sort of OOPS language any study reference will be helpful
Thanks in Advance
Kaushik
Clipper is 16-bit compiler for character-based (not GUI) applications running on MS-DOS platform. There are, however, 3rd-party tools that will allow to produce 16-bit Windows GUI applications.
It's still owned by Computer Associates but all future development and support was delegated to GrafX long time ago.
The last released version was 5.3 but many developers stayed with 5.2e. The last update was around Y2K.
There are Harbour and xHarbour open source projects that developed their own compilers for this language (which in the beginning was similar to dBase III).
You can find information about the language and some 3-rd party libs in a Clipper section of this web-site.
Native Clipper compiles all its code into a single executable that runs on user desktops. Its data and index files are usually placed on a network share. Executable itself can also be placed on a share with user desktops having a short-cut to it.
Native Clipper applications (16-bit) will not run under 64-bit Windows. There are emulators (like DosBox) that allow to overcome such limitation.
Clipper related questions can be asked on comp.lang.clipper newsgroup.
If you have more questions add them as comments here.
Another good resource is Norton Guides for Windows, you can download it from a great site with lot of information about Clipper:
Download NGW from www.the-oasis.net.
I was unable to find the .NG files on that site, but you can see them online here if you want or try to found the files googling them.

Windows version of Mac App [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a Mac App that uses the NSKeyedArchiver to save persistent data and it all works fine, but thinking ahead ideally I would like to be able to create a windows version. The current App is all in objective-c using cocoa as I did not think of portability when I first started writing it. I would be happy to make a windows version from scratch but obviously the two need to share data. I am a complete beginner when it come to cross-platform apps. What should I do?
Thanks in advance.
You either need to find (or write) code/a library to read NSKeyedArchiver plists on Windows, or you need to release an update to your Mac app that converts the keyed archives to something more generic, like a JSON- or XML-based format.

Simulate or Virtual Twain source for Twain development [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
For developing a web based scan solution, I would love to test it on Windows or Mac without actually hooking up a scanner to my box. So is there a program/tool that emulates or gives me a virtual twain source with some default image data?
The Twain sample driver that comes along with the twain sample application up on source forge should have what you're looking for.
http://sourceforge.net/projects/twain-samples/files/TWAIN%202%20Sample%20Application/
Yes, there are plenty of solutions for this. We are using TerminalWorks' UniTwain application. The users are very satisfied as it is pretty simple to use and it does it's job. This is the download link: http://www.terminalworks.com/unitwain
both of above are paid apps.
there is one open source:
http://sourceforge.net/projects/twain-samples/files/
you need Data Source, it adds virtual scanner, which gives you the file if asked.
dont know if the received sample file can be changed, but for testing its good.

Direct screen pixel/framebuffer access [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'd like to try and create a program playing a game. I.e. "a bot".
I want to be able to directly access the pixels on the screen. I.e. have my program "see" a game and then "make a move"(or at least draw a picture of what move it would make).
Both Windows and Linux advice is appreciated, though my guess is that it should be easier to do on Linux.
I'm guessing this could be done with some X/Gnome call?
I'm not afraid of C, even complex samples are welcome.
SDL is a cross-platform library that allows you to directly access framebuffer pixels. You can learn about accessing the pixels on screen through the pixel access example on the documentation wiki.
Generally speaking, bots don't see the game graphics but see the underlying data structure instead, unless you are trying to do something related to computer vision.