{"id":4835,"date":"2013-03-27T15:20:46","date_gmt":"2013-03-27T07:20:46","guid":{"rendered":"http:\/\/jpuyy.com\/?p=4835"},"modified":"2013-04-07T20:49:41","modified_gmt":"2013-04-07T12:49:41","slug":"raspberrypi-network-cam","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=4835","title":{"rendered":"\u6811\u8393pi\u8fde\u63a5\u7f51\u7edc\u6444\u50cf\u5934\u8fdb\u884c\u76d1\u63a7"},"content":{"rendered":"<p>\u9700\u8981\u5de5\u5177\uff0c\u6811\u8393pi\u6216linux server\u4e00\u53f0\uff0cusb\u6444\u50cf\u5934\u4e00\u4e2a\u3002<\/p>\n<p>\u9700\u8981\u7684\u8f6f\u4ef6\u662f motion\u3002<\/p>\n<p>\u6811\u8393pi\uff08\u6216\u8005\u8bf4linux\uff09\u7684\u517c\u5bb9\u6027\u4e0d\u9519\uff0c\u63d2\u4e0a\u6444\u50cf\u5934\u4e4b\u540e\uff0c\u4f7f\u7528<code>lsusb<\/code>\u67e5\u770busb\u8bbe\u5907<\/p>\n<pre>Bus 001 Device 004: ID eb1a:2571 eMpIA Technology, Inc. M035 Compact Web Cam<\/pre>\n<p>\u63a5\u4e0b\u6765\u5b89\u88c5\u8f6f\u4ef6motion\uff08\u53ef\u4ee5\u83b7\u53d6\u6444\u50cf\u5934\u7684\u6570\u636e\uff0c\u751f\u6210\u56fe\u7247\u6216\u53d1\u9001\u6570\u636e\u6d41\u5230http\uff09<\/p>\n<pre>sudo apt-get udpate\r\nsudo apt-get upgrade\r\nsudo apt-get install motion<\/pre>\n<p>\u4fee\u6539motion\u7684\u914d\u7f6e\u6587\u4ef6\u00a0\/etc\/motion\/motion.conf<\/p>\n<p>daemon off \u53d8\u4e3a\u00a0<code>daemon on<\/code>\uff0c\u4ee5daemon\u65b9\u5f0f\u8fd0\u884c<\/p>\n<p>webcam_localhost on \u53d8\u4e3a\u00a0<code>webcam_localhost off<\/code>\uff0c\u610f\u4e3a\u4e0d\u53ea\u662f\u5bf9\u672c\u5730\u91c7\u96c6\uff0c\u8fd9\u6837\u624d\u53ef\u4ee5\u4f7f\u7528http\u67e5\u770b<\/p>\n<p>\u5176\u4ed6\u53c2\u6570\u5982\u5206\u8fa8\u7387\uff0c\u622a\u56fe\u95f4\u9694\u65f6\u95f4\u7b49\u53ef\u6839\u636e\u81ea\u5df1\u7684\u60c5\u51b5\u8c03\u6574\u3002<\/p>\n<p>\u542f\u52a8\u8f6f\u4ef6\u524d\u5c06\/etc\/default\/motion\u7684start_motion_daemon\u9879\u53d8\u4e3ayes<\/p>\n<p>\u7136\u540e\u542f\u52a8motion<\/p>\n<pre>\/etc\/init.d\/motion start<\/pre>\n<p>\u4e4b\u540e\u6253\u5f00http:\/\/ip:8081\u5373\u53ef\u3002\u4e0d\u60f3\u4f7f\u75288081\u7684\u53ef\u4ee5\u53bb\u5c06\/etc\/motion\/motion.conf\u4e2d\u7684\u7aef\u53e3\u6539\u4e3a\u9700\u8981\u7684\u7aef\u53e3\u3002<\/p>\n<p>\u6837\u5f20\uff0c\u6444\u50cf\u5934\u8f83\u5dee\uff1a<\/p>\n<figure id=\"attachment_4836\" aria-describedby=\"caption-attachment-4836\" style=\"width: 347px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/jpuyy.com\/wp-content\/uploads\/2013\/03\/motion-capture.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4836\" alt=\"motion-capture-raspberry-pi\" src=\"http:\/\/jpuyy.com\/wp-content\/uploads\/2013\/03\/motion-capture.jpg\" width=\"347\" height=\"307\" srcset=\"https:\/\/jpuyy.com\/wp-content\/uploads\/2013\/03\/motion-capture.jpg 347w, https:\/\/jpuyy.com\/wp-content\/uploads\/2013\/03\/motion-capture-300x265.jpg 300w, https:\/\/jpuyy.com\/wp-content\/uploads\/2013\/03\/motion-capture-339x300.jpg 339w\" sizes=\"auto, (max-width: 347px) 100vw, 347px\" \/><\/a><figcaption id=\"caption-attachment-4836\" class=\"wp-caption-text\">motion-capture-raspberry-pi<\/figcaption><\/figure>\n<p>\u4e0a\u9762\u5e94\u7528\u7684\u662f\u89c6\u9891\u6d41\u7684\u529f\u80fd\uff0cmotion\u8fd8\u6709\u6293\u56fe\u7684\u529f\u80fd\u3002\u7136\u540e\u518d\u6839\u636e\u4e00\u4e9b\u4e91\u670d\u52a1\uff0c\u5c06\u56fe\u7247\u5b9a\u65f6\u4f20\u5230\u4e91\u7aef\u3002\u5982\u4e0a\u4f20\u5230s3\u53ef\u4ee5\u4f7f\u7528s3cmd &#8211; command-line Amazon S3 client\u3002<\/p>\n<p>\u6574\u4e2a\u8fc7\u7a0b\u4e0d\u8fc7\u5341\u5206\u949f\uff0c\u5c31\u642d\u5efa\u4e86\u4e00\u4e2a\u89c6\u9891\u76d1\u63a7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9700\u8981\u5de5\u5177\uff0c\u6811\u8393pi\u6216linux server\u4e00\u53f0\uff0cusb\u6444\u50cf\u5934\u4e00\u4e2a\u3002 \u9700\u8981\u7684\u8f6f\u4ef6\u662f motion\u3002 \u6811\u8393pi\uff08\u6216\u8005\u8bf4linux\uff09\u7684\u517c\u5bb9\u6027\u4e0d\u9519\uff0c\u63d2\u4e0a\u6444\u50cf\u5934\u4e4b\u540e\uff0c\u4f7f\u7528lsusb\u67e5\u770busb\u8bbe\u5907 Bus 001 Device 004: ID eb1a:2571 eMpIA Technology, Inc. M035 Compact Web Cam \u63a5\u4e0b\u6765\u5b89\u88c5\u8f6f\u4ef6motion\uff08\u53ef\u4ee5\u83b7\u53d6\u6444\u50cf\u5934\u7684\u6570\u636e\uff0c\u751f\u6210\u56fe\u7247\u6216\u53d1\u9001\u6570\u636e\u6d41\u5230http\uff09 sudo apt-get udpate sudo apt-get upgrade sudo apt-get install motion \u4fee\u6539motion\u7684\u914d\u7f6e\u6587\u4ef6\u00a0\/etc\/motion\/motion.conf daemon off \u53d8\u4e3a\u00a0daemon on\uff0c\u4ee5daemon\u65b9\u5f0f\u8fd0\u884c webcam_localhost on \u53d8\u4e3a\u00a0webcam_localhost off\uff0c\u610f\u4e3a\u4e0d\u53ea\u662f\u5bf9\u672c\u5730\u91c7\u96c6\uff0c\u8fd9\u6837\u624d\u53ef\u4ee5\u4f7f\u7528http\u67e5\u770b \u5176\u4ed6\u53c2\u6570\u5982\u5206\u8fa8\u7387\uff0c\u622a\u56fe\u95f4\u9694\u65f6\u95f4\u7b49\u53ef\u6839\u636e\u81ea\u5df1\u7684\u60c5\u51b5\u8c03\u6574\u3002 \u542f\u52a8\u8f6f\u4ef6\u524d\u5c06\/etc\/default\/motion\u7684start_motion_daemon\u9879\u53d8\u4e3ayes \u7136\u540e\u542f\u52a8motion \/etc\/init.d\/motion start \u4e4b\u540e\u6253\u5f00http:\/\/ip:8081\u5373\u53ef\u3002\u4e0d\u60f3\u4f7f\u75288081\u7684\u53ef\u4ee5\u53bb\u5c06\/etc\/motion\/motion.conf\u4e2d\u7684\u7aef\u53e3\u6539\u4e3a\u9700\u8981\u7684\u7aef\u53e3\u3002 \u6837\u5f20\uff0c\u6444\u50cf\u5934\u8f83\u5dee\uff1a \u4e0a\u9762\u5e94\u7528\u7684\u662f\u89c6\u9891\u6d41\u7684\u529f\u80fd\uff0cmotion\u8fd8\u6709\u6293\u56fe\u7684\u529f\u80fd\u3002\u7136\u540e\u518d\u6839\u636e\u4e00\u4e9b\u4e91\u670d\u52a1\uff0c\u5c06\u56fe\u7247\u5b9a\u65f6\u4f20\u5230\u4e91\u7aef\u3002\u5982\u4e0a\u4f20\u5230s3\u53ef\u4ee5\u4f7f\u7528s3cmd &#8211; command-line Amazon S3 client\u3002 \u6574\u4e2a\u8fc7\u7a0b\u4e0d\u8fc7\u5341\u5206\u949f\uff0c\u5c31\u642d\u5efa\u4e86\u4e00\u4e2a\u89c6\u9891\u76d1\u63a7\u3002<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[99],"class_list":["post-4835","post","type-post","status-publish","format-standard","hentry","category-electronics","tag-linux-tools"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/4835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4835"}],"version-history":[{"count":4,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/4835\/revisions"}],"predecessor-version":[{"id":4870,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/4835\/revisions\/4870"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}