LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-10-2015, 12:16 AM   #1
KansaiRobot
Member
 
Registered: Dec 2013
Location: Japan
Distribution: Debian...very few times Ubuntu
Posts: 51

Rep: Reputation: 0
taking a picture from the command line (no window or viewing)


Hello and thanks always.

I would like to ask if there is an application with which I can take pictures from a camera attached to my system.

The thing is, I am well aware of cheese, guvcview and luvcview. These applications (for some reason freeze on my system) open a window and let you take snapshots. That is not what I would like

I want just to take a picture which is going to be stored as a file without even attempting to show it to me.
This because I want to do this in a system with no windowing system running on a microprocessor.

and why dont you write it yourself? you can ask. Well I did, and yes it takes pics but it has some errors that I can't find the reason or how to solve them.

any help would be greatly appreciated
 
Old 03-10-2015, 12:22 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,695

Rep: Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698
Hi,

your profile says you are using Debian and Ubuntu...
Code:
apt-cache search webcam
I tried fswebcam - it seems to do what you want.

Evo2.
 
1 members found this post helpful.
Old 03-10-2015, 01:14 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
For cameras other than webcam there is gphoto2-cli.
 
1 members found this post helpful.
Old 03-10-2015, 07:27 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,788
Blog Entries: 13

Rep: Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831
Are you running this on a Raspberry Pi? I only ask because this exact thing came up where we were asked to make an environmental analysis system that took periodic still photos and concatenated them into a movie at the end of the day. And although we could boot into X we did not, we left it at the command line and then pulled the files off periodically.

Either case, the camera application had a "no preview" option in it's command line which meant that instead of taking a photo and then showing it, it would just take and store the photo.

Whatever application you find, I'd look for a similar option so that it will do this same behavior which sounds like exactly what you want.
 
Old 03-11-2015, 07:21 PM   #5
KansaiRobot
Member
 
Registered: Dec 2013
Location: Japan
Distribution: Debian...very few times Ubuntu
Posts: 51

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
Hi,

your profile says you are using Debian and Ubuntu...
Code:
apt-cache search webcam
I tried fswebcam - it seems to do what you want.

Evo2.
Thank you. I install it and it seems quite a nice program.
Unfortunately it doesnt work well with my camera

In the end, what I did was to modify my own code (I finally got some pointers on what changes were needed from the maker) and use it to take my snapshots.
 
Old 03-11-2015, 07:23 PM   #6
KansaiRobot
Member
 
Registered: Dec 2013
Location: Japan
Distribution: Debian...very few times Ubuntu
Posts: 51

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rtmistler View Post
Are you running this on a Raspberry Pi? I only ask because this exact thing came up where we were asked to make an environmental analysis system that took periodic still photos and concatenated them into a movie at the end of the day. And although we could boot into X we did not, we left it at the command line and then pulled the files off periodically.

Either case, the camera application had a "no preview" option in it's command line which meant that instead of taking a photo and then showing it, it would just take and store the photo.

Whatever application you find, I'd look for a similar option so that it will do this same behavior which sounds like exactly what you want.
No, I am not using a Raspberry although I am quite interested in doing that on my spare time (which I got none at the moment )
So, I understand that you build a program to do this? quite interesting

and thanks for the "no preview" pointer. I hadnt thought of that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line picture viewer Rostfrei Linux - Software 5 07-14-2016 03:41 AM
LXer: Taking command why none should fear the command line LXer Syndicated Linux News 1 09-20-2010 03:53 PM
convert command line picture tool benchcomptons Debian 1 07-29-2007 12:14 AM
viewing pictures in command line??? mlu Linux - Software 4 05-25-2005 10:48 PM
viewing images on the command line darkangel Linux - General 3 02-14-2002 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration