ããã¯ãUbuntu OnlineãFedora OnlineãWindowsãªã³ã©ã€ã³ãšãã¥ã¬ãŒã¿ãŒãMACOSãªã³ã©ã€ã³ãšãã¥ã¬ãŒã¿ãŒãªã©ã®è€æ°ã®ç¡æãªã³ã©ã€ã³ã¯ãŒã¯ã¹ããŒã·ã§ã³ã®XNUMXã€ã䜿çšããŠOnWorksç¡æãã¹ãã£ã³ã°ãããã€ããŒã§å®è¡ã§ããã³ãã³ãfswebcamã§ãã
ããã°ã©ã ïŒ
NAME
fswebcam- * nixçšã®å°ãããŠã·ã³ãã«ãªãŠã§ãã«ã¡ã©ã
SYNOPSIS
fsãŠã§ãã«ã¡ã© [] [[] ...]
DESCRIPTION
fswebcamã¯ã* nixçšã®å°ãããŠã·ã³ãã«ãªãŠã§ãã«ã¡ã©ã¢ããªã§ãã ããã¯å€ãã®ããç»åããã£ããã£ããããšãã§ããŸã
ããŸããŸãªãœãŒã¹ã䜿çšããŠããã£ããã£ããç»åã«å¯ŸããŠç°¡åãªæäœãå®è¡ããŸãã ç»åã¯
XNUMXã€ä»¥äžã®PNGãŸãã¯JPEGãã¡ã€ã«ãšããŠä¿åãããŸãã
PNGãŸãã¯JPEGç»åã¯ããã¡ã€ã«åã-ãã䜿çšããŠstdioã«éä¿¡ã§ããŸãã åºåãã¡ã€ã«åã¯
ã«ãã£ãŠãã©ãŒãããããã ã¹ãã©ãã¿ã€ã .
CONFIGURATION
ã File
æ§æãã¡ã€ã«ã¯ãã-ããã¬ãã£ãã¯ã¹ã®ãªãé·ãããŒãžã§ã³ã®ãªãã·ã§ã³ã䜿çšããŸãã ã³ã¡ã³ãã¯ã§å§ãŸããŸã
è¡é ã®ïŒèšå·ã
ãªãã·ã§ã³
-?, - å©ããŠ
䜿çšç¶æ³ã®æŠèŠã衚瀺ããŸãã
-c, --config
ãã¡ã€ã«ãããªãã·ã§ã³ãããŒãããŸãã è€æ°ã®æ§æãã¡ã€ã«ãããŒãããŠãããããæ··åšãããããšãã§ããŸã
ã³ãã³ãã©ã€ã³åŒæ°ã䜿çšããŸãã
泚ïŒãã®ãªãã·ã§ã³ã¯ãæ§æãã¡ã€ã«å ããã¯äœ¿çšã§ããŸããã
-q, - éããª
ãšã©ãŒãé€ããã¹ãŠã®ã¡ãã»ãŒãžãé衚瀺ã«ããŸãã
-v, -詳现
ãã£ããã£ããã»ã¹äžã«è¿œå æ å ±ãå°å·ããŸãã
- ããŒãžã§ã³
ããŒãžã§ã³çªå·ãåºåããŠçµäºããŸãã
-l, - ã«ãŒã
ç¶ç¶çã«ç»åããã£ããã£ããŸãã ç»åéã®æéã¯ç§åäœã§æå®ãããŸãã
ããã©ã«ãã®åäœã§ã¯ãåäžã®ç»åããã£ããã£ããŠçµäºããŸãã
泚æïŒæ¬¡ã®ç»åããã£ããã£ããæéã¯ãšããã¯ãåºæºã«ããŠèšç®ãããããã
ããã°ã©ã ãæåã«èµ·åãããšããç»åã¯ããã«ã¯ãã£ããã£ãããŸããã
- ãªãã»ãã
次ã®ç»åãã«ãŒãã¢ãŒãã«ãªãææãèšç®ãããšãã«äœ¿çšãããªãã»ãããèšå®ããŸãã
å€ã¯æ£ãŸãã¯è² ã«ãªããŸãã
-b, - ããã¯ã°ã©ãŠã³ã
ããã¯ã°ã©ãŠã³ãã§å®è¡ããŸãã ãã®ã¢ãŒãã§ã¯ (Linuxã§èšããšããã®stdoutïŒ ããã³ã³ã³ãœãŒã«ãã®ã³ã°ã¯äœ¿çšã§ããŸããã
--pid
ããã¯ã°ã©ãŠã³ãããã»ã¹ã®PIDãæå®ããããã¡ã€ã«ã«ä¿åããŸãã ããã§ãªãå Žåã¯ç¡èŠãããŸã
ããã¯ã°ã©ãŠã³ãã¢ãŒãã䜿çšããŸãã
- ãã° [ãã¡ã€ã«/ syslogïŒ]
ãã°ã¡ãã»ãŒãžããã¡ã€ã«ãŸãã¯syslogã«ãªãã€ã¬ã¯ãããŸãã äŸãã°
--log åºå.log
-ãã°ãã¡ã€ã«ïŒoutput.log
--log syslog
- GMT ã§ããã¹ãããã©ãŒããããããšãã¯ãããŒã«ã«ã¿ã€ã ãŸãŒã³ã®ä»£ããã«GMTã䜿çšããŠãã ãã ã¹ãã©ãã¿ã€ã .
ãã£ãã㣠ãªãã·ã§ã³
-d, - ç«¯æ« [ ïŒ] åå>
䜿çšãããœãŒã¹ãŸãã¯ããã€ã¹ãèšå®ããŸãã ãœãŒã¹ã¢ãžã¥ãŒã«ã¯ã
ãã¬ãã£ãã¯ã¹ã§æå®ãããŸãã
ããã©ã«ã㯠/ dev / video0.
䜿çšå¯èœãªãœãŒã¹ã¢ãžã¥ãŒã«ïŒåªå é ïŒïŒ
V4L2-V4L2äºæã®ãããªããã€ã¹ããç»åããã£ããã£ããŸãã
V4L1-V4L1äºæã®ãããªããã€ã¹ããç»åããã£ããã£ããŸãã
FILE-JPEGãŸãã¯PNGç»åãã¡ã€ã«ããç»åããã£ããã£ããŸãã
RAW-ããã€ã¹ãŸãã¯ãã¡ã€ã«ããçŽæ¥ç»åãèªã¿åããŸãã
ãã¹ã-ã«ã©ãŒããŒãæç»ããŸãã
-i, - å ¥å æ° or åå>
䜿çšããå ¥åãèšå®ããŸãã çªå·ãŸãã¯ååã®ããããã§å ¥åãéžæã§ããŸãã
ããã©ã«ãã¯ã0ãã§ãã
--ãªã¹ãå ¥å
éžæãããœãŒã¹ãŸãã¯ããã€ã¹ã§äœ¿çšå¯èœãªå ¥åãäžèŠ§è¡šç€ºããŸãã
fswebcam -d v4l2ïŒ/ dev / video1 --list-inputs
-t, - ãã¥ãŒã㌠<ãã¥ãŒã㌠çªå·>
䜿çšãããã¥ãŒããŒãèšå®ããŸãã
-f, - åšæ³¢æ°
éžæããå ¥åãŸãã¯ãã¥ãŒããŒã®åšæ³¢æ°ãèšå®ããŸãã å€ã¯KHzãŸãã¯
å ¥åãŸãã¯ãã¥ãŒããŒã«å¿ããŠMHzã
-p, - ãã¬ãã
ç»åããã£ããã£ãããšãã¯ãæå®ãããç»å圢åŒã䜿çšããŠã¿ãŠãã ããã
ããã©ã«ãã§ã¯ãXNUMXã€ãèªåçã«éžæãããŸãã
ãµããŒãããããã©ãŒãããïŒ
PNG
JPEG
MJPEG
S561
RGB32
RGB24
BGR32
BGR24
ãŠã€ãŽ
ãŠãŽã£
YUV420P
BAYER
SGBRG8
SGRBG8
RGB565
RGB555
Y16
GREY
-r, - 解å床
ãœãŒã¹ãŸãã¯ããã€ã¹ã®ç»å解å床ãèšå®ããŸãã 䜿çšãããå®éã®è§£å床ã¯
ãœãŒã¹ãŸãã¯ããã€ã¹ãæå®ããã解å床ã§ãã£ããã£ã§ããªãå Žåã¯ç°ãªããŸãã
ããã©ã«ãã¯ã384x288ãã§ãã
--fps <ãã¬ãŒã æ° ä»¥äžã®ããã« XNUMXçªç®>
ãã£ããã£ããã€ã¹ã®ãã¬ãŒã ã¬ãŒããèšå®ããŸãã ããã¯çŸåšãç¹å®ã®å Žåã«ã®ã¿æ©èœããŸã
V4L2ããã€ã¹ã
ããã©ã«ãã¯ã0ãã§ãããã€ã¹ã«æ±ºå®ãããŸãã
-F, -ãã¬ãŒã
ãã£ããã£ãããã¬ãŒã æ°ãèšå®ããŸãã ãã¬ãŒã ãå€ãã»ã©ããã¡ã€ãã«ã§ã®ãã€ãºãå°ãªããªããŸã
ãã ãããã£ããã£æéã¯é·ããªãã移åãããªããžã§ã¯ãã¯ãŒãããŠèŠããå ŽåããããŸãã
ããã©ã«ãã¯ã1ãã§ãã
-S, - ã¹ããã
ã¹ããããããã¬ãŒã æ°ãèšå®ããŸãã ãããã®ãã¬ãŒã ã¯ãã£ããã£ãããŸããã䜿çšãããŸããã
ã«ã¡ã©ãæåã«äžè¯ãŸãã¯ç Žæãããã¬ãŒã ãéä¿¡ããå Žåã¯ããã®ãªãã·ã§ã³ã䜿çšããŸã
ãã£ããã£ãéå§ããŸãã
ããã©ã«ãã¯ã0ãã§ãã
-D, - é ã
ãœãŒã¹ãŸãã¯ããã€ã¹ãéãããŠåæåãããåŸã«é 延ãæ¿å ¥ãã
ãã£ããã£ãå§ãŸãåã äžéšã®ããã€ã¹ã§ã¯ãç»åãå®å®ãããããã«ãã®é 延ãå¿ èŠã§ã
èšå®å€æŽåŸã é 延æéã¯ç§åäœã§æå®ãããŸãã
-R, - èªãã
readïŒïŒã䜿çšããŠç»åããã£ããã£ããŸãã ããã¯é ããªãå¯èœæ§ããããŸãããäžéšã®ããã€ã¹ã§ã¯ããå®å®ããŸãã
ããã©ã«ãã§ã¯mmapïŒïŒã䜿çšããmmapïŒïŒã䜿çšã§ããªãå Žåã¯readïŒïŒã«ãã©ãŒã«ããã¯ããŸãã
-s, - èšå®
ã³ã³ãããŒã«ãèšå®ããŸãã ãããã¯ãç»åãŸãã¯ããã€ã¹ãå¶åŸ¡ããããã«ãœãŒã¹ã¢ãžã¥ãŒã«ã«ãã£ãŠäœ¿çšãããŸã
ãã©ã¡ãŒã¿ãŒã æ°å€ã¯ãæ倧ç¯å²ã®ããŒã»ã³ããŒãžãšããŠè¡šãããšãã§ããŸã
ãŸãã¯ãªãã©ã«å€ãäŸïŒ
-æããã®èšå®= 50ïŒ -ãã¬ãŒã ã¬ãŒãã®èšå®= 5
æ°å€ä»¥å€ã®ã³ã³ãããŒã«ããµããŒããããŠããŸãã
--setlights = on
V4L2ã¯ãããã¿ã³ããšåŒã°ããã¿ã€ãã®ã³ã³ãããŒã«ãåããŠããŸãã ãããã®ã³ã³ãããŒã«ã¯äœãããŸãã
å€ã§ãããã¢ã¯ã·ã§ã³ãããªã¬ãŒããŸãã äŸãã°ïŒ
-ãå·¥å Žåºè·æã®èšå®ã«æ»ãããèšå®ããŸã
ã³ã³ãããŒã«ã®ååãšå€ã§ã¯å€§æåãšå°æåã¯åºå¥ãããŸããã
泚æïŒäœ¿çšå¯èœãªã³ã³ãããŒã«ã¯ã䜿çšãããœãŒã¹ã¢ãžã¥ãŒã«ãšããã€ã¹ã«ãã£ãŠç°ãªããŸãã
詳现ã«ã€ããŠã¯åç §ããŠãã ãã --ãªã¹ãã³ã³ãããŒã« ãªãã·ã§ã³ãéžæããŸãã
--ãªã¹ãã³ã³ãããŒã«
éžæãããœãŒã¹ã¢ãžã¥ãŒã«ã§äœ¿çšå¯èœãªã³ã³ãããŒã«ãšãã®çŸåšã®å€ãäžèŠ§è¡šç€ºãã
端æ«ã äŸãã°ïŒ
fswebcam -d v4l2ïŒ/ dev / video2 --list-controls
åºå ãªãã·ã§ã³
ãããã®ãªãã·ã§ã³ã¯ãã³ãã³ãã©ã€ã³ã«è¡šç€ºãããé åºã§å®è¡ãããå¹æãããã ãã§ãã
åŸã§ã³ãã³ãã©ã€ã³ã«åºåãããç»åã äŸãã°ïŒ
fswebcam -r 640x480 åºå 1.jpeg --scale 320x240 åºå 2.jpeg
ãã«è§£å床ã®ã³ããŒãå«ã1ã€ã®ç»åãoutputXNUMX.jpegããäœæããŸã
ãã£ããã£ãããç»åãšãåããã£ããã£ãããç»åãå«ããã«ã¹ã±ãŒãªã³ã°ããããoutput2.jpegã
ååã®ãµã€ãºã
-ãããŒãªã
ãããŒãç¡å¹ã«ããŸãã
-ããããããŒ
ç»åã®äžéšã«ãããŒãé 眮ããŸãã
-ããã ãããŒ
ç»åã®äžéšã«ãããŒãé 眮ããŸãã
ãããããã©ã«ãã§ãã
-ãããŒã«ã©ãŒ <#AARRGGBB>
ãããŒã®è²ãèšå®ããŸãã Webã¹ã¿ã€ã«ã®XNUMXé²åœ¢åŒïŒ#RRGGBBïŒã䜿çšããŠ
è²ãèšè¿°ããã¢ã«ãã¡ãã£ãã«ïŒ#AARRGGBBïŒããµããŒãã§ããŸãã äŸïŒ
ãïŒFF0000ãã¯çã£èµ€ã§ãã
ãïŒ80000000ãã¯åéæã®é»ã§ãã
ãïŒFF000000ãã¯é衚瀺ã§ãïŒã¢ã«ãã¡ãã£ãã«ãæ倧ã§ãïŒã
ããã©ã«ãã¯ãïŒ40263A93ãã§ãã
-ç·ã®è² <#AARRGGBB>
ä»åãç·ã®è²ãèšå®ããŸãã èŠã -ãããŒã«ã©ãŒ ãã芧ãã ããã
ããã©ã«ãã¯ãïŒ00FF0000ãã§ãã
-ããã¹ã-è² <#AARRGGBB>
ããã¹ãã®è²ãèšå®ããŸãã èŠã -ãããŒã«ã©ãŒ ãã芧ãã ããã
ããã©ã«ãã¯ãïŒ00FFFFFFãã§ãã
- ãã©ã³ã <[ãã¡ã€ã« or ãã©ã³ã åå]ïŒ[ãã©ã³ã ãµã€ãº]>
ãããŒã§äœ¿çšãããã©ã³ããèšå®ããŸãã ãã¹ãæå®ãããŠããªãå ŽåãGDFONTPATHã®ãã¹
ãã©ã³ãã®ç°å¢å€æ°ãæ€çŽ¢ãããŸãã Fontconfigåã¯ã次ã®å Žåã«ã䜿çšã§ããŸãã
GDã©ã€ãã©ãªããµããŒãããŠããŸãã
ãã©ã³ããµã€ãºãæå®ãããŠããªãå Žåãããã©ã«ãã®ã10ãã䜿çšãããŸãã
ããã©ã«ãã¯ãsansïŒ10ãã§ãã
-圱ãªã
ããã¹ãã·ã£ããŠãç¡å¹ã«ããŸãã
- 颚éª
ããã¹ãã·ã£ããŠãæå¹ã«ããŸãã
ãããããã©ã«ãã®åäœã§ãã
- é¡å
ãããŒã®å·Šäžã«ããã¡ã€ã³ããã¹ããèšå®ããŸãã
- ã¿ã€ãã«ãªã
æ¬æãã¯ãªã¢ããŸãã
- åå¹
ãããŒã®å·Šäžã«ãããµãã¿ã€ãã«ããã¹ããèšå®ããŸãã
-åå¹ãªã
ãµãã¿ã€ãã«ã®ããã¹ããã¯ãªã¢ããŸãã
-ã¿ã€ã ã¹ã¿ã³ã
ãããŒã®å³äžã«ããã¿ã€ã ã¹ã¿ã³ãããã¹ããèšå®ããŸãã ãã®æååã¯
ã«ãã£ãŠãã©ãŒãããããã ã¹ãã©ãã¿ã€ã .
ããã©ã«ãã¯ãïŒ Y-ïŒ m-ïŒ dïŒ HïŒïŒ MïŒïŒ ZïŒãã§ãã
-ã¿ã€ã ã¹ã¿ã³ããªã
ã¿ã€ã ã¹ã¿ã³ãããã¹ããã¯ãªã¢ããŸãã
- æ å ±
ãããŒã®å³äžã«ããæ å ±ããã¹ããèšå®ããŸãã
-ããã-æ å ±
æ å ±ããã¹ããã¯ãªã¢ããŸãã
-ã¢ã³ããŒã¬ã€
PNGç»åãããŒããããããŒã®äžã®ç»åã«ãªãŒããŒã¬ã€ããŸãã ç»åã¯
å·Šäžã«æããŸãã
泚æïŒã¢ã³ããŒã¬ã€ã¯ç»åãä¿åãããšãã«ã®ã¿é©çšãããå€æŽãããããšã¯ãããŸãã
ç»åãªãã·ã§ã³ãŸãã¯å¹æã®ã
-ã¢ã³ããŒã¬ã€ãªã
ã¢ã³ããŒã¬ã€ç»åãã¯ãªã¢ããŸãã
- ãã¶ãã
PNGç»åãããŒãããç»åã®ãããŒã®äžã«ãªãŒããŒã¬ã€ããŸãã ç»åãæŽåãããŸã
å·Šäžã«ã
泚æïŒãªãŒããŒã¬ã€ã¯ç»åãä¿åãããšãã«ã®ã¿é©çšãããå€æŽãããããšã¯ãããŸãã
ç»åãªãã·ã§ã³ãŸãã¯å¹æã®ã
-ãªãŒããŒã¬ã€ãªã
ãªãŒããŒã¬ã€ç»åãåé€ããŸãã
--jpeg
JPEGãåºåç»å圢åŒãšããŠèšå®ããŸãã å§çž®çã¯0ã®éã®å€ã§ã
ããã³95ããŸãã¯èªåã®å Žåã¯-1ã
ããã¯ããã©ã«ãã®åœ¢åŒã§ãä¿æ°ã¯ã-1ãã§ãã
--png
PNGãåºåç»å圢åŒãšããŠèšå®ããŸãã å§çž®çã¯0ããXNUMXã®éã®å€ã«ããããšãã§ããŸã
ããã³9ããŸãã¯èªåã®å Žåã¯-1ã
- ä¿åãã
æå®ãããã¡ã€ã«åã§ç»åãä¿åããŸãã
泚ïŒããã¯ããã¡ã€ã«åã ãã§ååãªã³ãã³ãã©ã€ã³ã§ã¯å¿ èŠãããŸããã
ç»åãä¿åããŸãã
-å ã«æ»ã
å ã®ãã£ããã£ãããç»åãšè§£å床ã«æ»ããŸãã ããã«ããã以åã®ãã¹ãŠãåãæ¶ãããŸã
ç»åãžã®åœ±é¿ã
泚ïŒããã¯ç»åèªäœãå ã«æ»ãã ãã§ããã©ã³ããè²ã
ãªãŒããŒã¬ã€ã
-ããªãã
ç»åãå転ããŸãã æ¹åã¯ãïŒhïŒæ°Žå¹³ãŸãã¯ïŒvïŒåçŽã«ããããšãã§ããŸãã äŸïŒ
--fliphç»åãæ°Žå¹³æ¹åã«å転ããŸãã
--flip hãvç»åãæ°Žå¹³æ¹åãšåçŽæ¹åã®äž¡æ¹ã«å転ããŸãã
- äœç©
ç»åãåãæããŸãã ãªãã»ããããªãå Žåãããªãã³ã°ãããé åãç»åã®äžå¿ã«ãªããŸãã
äŸïŒ
--crop320x240ç»åã®äžå€®ã®320x240é åãããªãã³ã°ããŸãã
--crop10x10,0x0ç»åã®å·Šäžé ã«ãã10x10ã®é åãããªãã³ã°ããŸãã
- èŠæš¡
ç»åãæ¡å€§çž®å°ããŸãã
äŸïŒã-scale640x480ãã¯ãç»åã640x480ã«æ¡å€§ãŸãã¯çž®å°ããŸãã
ã泚æ: ç»åã®ã¢ã¹ãã¯ãæ¯ã¯ç¶æãããŸããã
-å転
ç»åãçŽè§ïŒ90床ã180床ã270床ïŒã«å転ãããŸãã
ã泚æ: ç»åã90床ãŸãã¯270床å転ãããšã寞æ³ãå ¥ãæ¿ãããŸãã
-ã€ã³ã¿ãŒã¬ãŒã¹è§£é€
åçŽãªã€ã³ã¿ãŒã¬ãŒã¹è§£é€ããŒã«ãç»åã«é©çšããŸãã
- å転
ç»åã®ãã¹ãŠã®è²ãå転ããŠããã¬ãäœæããŸãã
-ã°ã¬ãŒã¹ã±ãŒã«
ç»åãããã¹ãŠã®è²ãåé€ããŸãã
--swapchannels
ã«ã©ãŒãã£ã³ãã«c1ãšc2ã亀æããŸãã æå¹ãªãã£ãã«ã¯RãGãBã§ã-èµ€ãç·ã
ããããéããã£ã³ãã«ã
äŸïŒã-swapchannelsRBãã¯èµ€ãšéã®ãã£ã³ãã«ã亀æããŸãã
--exec
æå®ãããã³ãã³ããå®è¡ããã³ãã³ããå®äºããã®ãåŸ ã£ãŠããç¶è¡ããŸãã NS
ã³ãã³ãã©ã€ã³ã¯æ¬¡ã®ããã«ãã©ãŒããããããŸã ã¹ãã©ãã¿ã€ã .
ä¿¡å·
ã·ã°ã¢ãã ããã«ãããfswebcamã¯ãã®æ§æããªããŒãããŸãã
ã·ã°SR1
fswebcamãã¿ã€ããŒãåŸ ããã«ããã«ç»åããã£ããã£ããããã«ããŸã
ã«ãŒãã¢ãŒãã
KNOWN ãã°
æåã®ééãæ£ãããªãå¯èœæ§ããããŸãã ããã¯GDã©ã€ãã©ãªã®åé¡ã§ãã
å ±å ãã°
ãã°ãå ±åããŠãã ãã[ã¡ãŒã«ä¿è·]>.
onworks.netãµãŒãã¹ã䜿çšããŠãªã³ã©ã€ã³ã§fswebcamã䜿çšãã