{"id":618,"date":"2016-09-13T14:46:08","date_gmt":"2016-09-13T06:46:08","guid":{"rendered":"http:\/\/www.datarelab.com\/blog\/?p=618"},"modified":"2016-09-13T14:46:08","modified_gmt":"2016-09-13T06:46:08","slug":"%e6%a0%91%e8%8e%93%e6%b4%be-motion%e5%ae%89%e8%a3%85%e6%91%84%e5%83%8f%e5%a4%b4%e5%ae%9e%e7%8e%b0%e8%bf%9c%e7%a8%8b%e7%9b%91%e6%8e%a7","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/618.html","title":{"rendered":"\u6811\u8393\u6d3e motion\u5b89\u88c5\u6444\u50cf\u5934\u5b9e\u73b0\u8fdc\u7a0b\u76d1\u63a7"},"content":{"rendered":"<p>\u4e0b\u9762\u6211\u4eec\u4ecb\u7ecd\u5982\u4f55\u6765\u7ed9\u6811\u8393\u6d3e\u88c5\u4e2aUSB\u6444\u50cf\u5934\uff0c\u7136\u540e\u8fdc\u7a0b\u8bbf\u95ee\u6444\u50cf\u5934\u62cd\u6444\u7684\u5373\u65f6\u753b\u9762\u3002<br \/>\n\u9996\u5148\u4f60\u9700\u8981\u4e00\u4e2a\u6811\u8393\u6d3e\u80fd\u517c\u5bb9\u7684USB\u6444\u50cf\u5934\uff0c\u7b14\u8005\u7528\u7684\u662f\u7f57\u6280\uff08Logitech\uff09C270 \u9ad8\u6e05\u7f51\u7edc\u6444\u50cf\u5934\uff0c\u63d2\u4e0a\u5373\u53ef\u3002\u8f6f\u4ef6\u65b9\u9762\u975e\u5e38\u7b80\u5355\u53ea\u9700\u8981\u4e00\u4e2a\u8f6f\u4ef6\uff1amotion\u3002<br \/>\n\u5047\u8bbe\u4f60\u7684\u6811\u8393\u6d3e\u5df2\u7ecf\u88c5\u597d\u4e86 Raspbian \u7684\u7cfb\u7edf\uff0c\u4f60\u53ea\u9700\u8981\uff1a<\/p>\n<pre class=\"lang:vim decode:true \">sudo apt-get install motion<\/pre>\n<p>\u7136\u540e\u6253\u5f00 motion daemon \u5b88\u62a4\u8fdb\u7a0b\uff0c\u8ba9\u4ed6\u53ef\u4ee5\u4e00\u76f4\u5728\u540e\u53f0\u8fd0\u884c\uff1a<\/p>\n<pre class=\"lang:vim decode:true \">sudo nano \/etc\/default\/motion\r\n\uff03no\u4fee\u6539\u6210yes:\r\nstart_motion_daemon=yes<\/pre>\n<p>\u4fee\u6539motion\u7684\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre class=\"lang:vim decode:true \">sudo vim \/etc\/motion\/motion.conf\r\n#deamon off \u6539\u6210 on\r\ndeamon on\r\n#\u8bbe\u7f6e\u5206\u8fa8\u7387\r\nwidth 800\r\nheight 600\r\n#\u5173\u95ed localhost \u7684\u9650\u5236\r\nwebcam_localhost off<\/pre>\n<p>\u7136\u540e\u8fd0\u884c motion\uff1a<\/p>\n<pre class=\"lang:vim decode:true \">sudo motion<\/pre>\n<p>\u73b0\u5728\u6211\u4eec\u7684\u6444\u50cf\u5934\u5df2\u7ecf\u53d8\u6210\u4e86\u4e00\u53f0\u7f51\u7edc\u6444\u50cf\u5934\u3002\u5728chrome\u6d4f\u89c8\u5668\u4e0b\u8bbf\u95ee http:\/\/[your.domain]:8081 \u5373\u53ef\u770b\u5230\u6444\u50cf\u5934\u5f53\u524d\u62cd\u6444\u7684\u753b\u9762\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u6211\u4eec\u4ecb\u7ecd\u5982\u4f55\u6765\u7ed9\u6811\u8393\u6d3e\u88c5\u4e2aUSB\u6444\u50cf\u5934\uff0c\u7136\u540e\u8fdc\u7a0b\u8bbf\u95ee\u6444\u50cf\u5934\u62cd\u6444\u7684\u5373\u65f6\u753b\u9762\u3002 \u9996\u5148\u4f60\u9700\u8981\u4e00\u4e2a\u6811\u8393\u6d3e\u80fd\u517c\u5bb9\u7684U [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-618","post","type-post","status-publish","format-standard","hentry","category-Technical_literature"],"views":2458,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=618"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/618\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}