ブログ - ImageSnap
コマンドラインでMacの内蔵カメラ,インカメラ?,FaceTimeカメラで写真を取るソフトに,ishightcaptureというのがあったけれど,もうないみたいで,代わりにImageSnapというものがあった.
ImageSnap
http://iharder.sourceforge.net/current/macosx/imagesnap/
ありがたいことに,HomeBrewで準備されている.
必要なのはxcodeだけ.FaceTimeカメラ以外のカメラにも対応している模様.
インストールしてみる.
ファイルのパスを確認.
imagesnapを実行した場所に,ファイルができている.
これが,MacBook Pro 2015 15インチのHigh Sierraだと撮影した映像が真っ黒になるけれど,MacBook Air 2011 13インチだと撮影できた.どう違うのかは,わからんなぁ.
ヘルプはこちら.
ImageSnap
http://iharder.sourceforge.net/current/macosx/imagesnap/
ありがたいことに,HomeBrewで準備されている.
$ brew info imagesnap🆑
imagesnap: stable 0.2.6 (bottled)
Tool to capture still images from an iSight or other video source
https://iharder.sourceforge.io/current/macosx/imagesnap/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/imagesnap.rb
==> Requirements
Build: xcode ✔
==> Analytics
install: 300 (30 days), 905 (90 days), 3,944 (365 days)
install_on_request: 282 (30 days), 859 (90 days), 3,649 (365 days)
build_error: 0 (30 days)
$
インストールしてみる.
$ brew install imagesnap🆑
==> Downloading https://homebrew.bintray.com/bottles/imagesnap-
0.2.6.high_sierra.bottle.1.tar.gz
############################################################# 100.0%
==> Pouring imagesnap-0.2.6.high_sierra.bottle.1.tar.gz
🍺 /usr/local/Cellar/imagesnap/0.2.6: 4 files, 67.3KB
$
$ which imagesnap🆑
/usr/local/bin/imagesnap
$
[code] そのまま実行すればキャプチャできた..
[code]$ imagesnap🆑
Capturing image from device "<AVCaptureDALDevice: 0x7xx [FaceTimeカメラ(内蔵)]
[0xfaxxx0a]>"...
$
$ ls
Desktop Documents Downloads Library Movies Music Pictures Public snapshot.jpg
$
ヘルプはこちら.
$ imagesnap -h
USAGE: imagesnap [options] [filename]
Version: 0.2.5
Captures an image from a video device and saves it in a file.
If no device is specified, the system default will be used.
If no filename is specfied, snapshot.jpg will be used.
JPEG is the only supported output type.
-h This help message
-v Verbose mode
-l List available video devices
-t x.xx Take a picture every x.xx seconds
-q Quiet mode. Do not output any text
-w x.xx Warmup. Delay snapshot x.xx seconds after turning on camera
-d device Use named video device
$