{"id":364976,"date":"2021-02-20T17:57:41","date_gmt":"2021-02-20T09:57:41","guid":{"rendered":"http:\/\/4563.org\/?p=364976"},"modified":"2021-02-20T17:57:41","modified_gmt":"2021-02-20T09:57:41","slug":"%e9%a6%99%e6%a9%99%e6%b4%be4%e8%bf%b7%e4%bd%a0pc%e5%9c%a8ubuntu%e7%b3%bb%e7%bb%9f%e4%b8%8b%e4%bd%bf%e7%94%a8usb%e6%91%84%e5%83%8f%e5%a4%b4%e7%9a%84%e6%96%b9%e6%b3%95-%e6%99%92%e8%b4%a7%e5%a5%bd","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=364976","title":{"rendered":"\u9999\u6a59\u6d3e4\u8ff7\u4f60pc\u5728Ubuntu\u7cfb\u7edf\u4e0b\u4f7f\u7528USB\u6444\u50cf\u5934\u7684\u65b9\u6cd5-\u6652\u8d27\u597d\u7269"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u9999\u6a59\u6d3e4\u8ff7\u4f60pc\u5728Ubuntu\u7cfb\u7edf\u4e0b\u4f7f\u7528USB\u6444\u50cf\u5934\u7684\u65b9\u6cd5-\u6652\u8d27\u597d\u7269               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : \u950b\u53cb291 <\/span>  <span><i><\/i> 66<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u9999\u6a59\u6d3e4\u548c\u9999\u6a59\u6d3e4B\u4e24\u6b3e\u5f00\u53d1\u677f\u529f\u80fd\u57fa\u672c\u76f8\u540c\uff0c\u91c7\u7528\u745e\u82af\u5faeRK3399\u82af\u7247\uff0c4G\u5185\u5b58+16GB emmc\u5b58\u50a8\uff0c\u652f\u6301\u53cc\u9891wifi\u548c\u5343\u5146\u7f51\u53e3\uff0c\u6709mini PCIE\u63a5\u53e3\uff0c\u652f\u6301\u53cc\u8def\u6444\u50cf\u5934\u540c\u65f6\u8f93\u5165\uff0c\u652f\u6301\u56db\u8def\u663e\u793a\uff0c\u53ef\u914d\u7f6e\u4efb\u610f\u4e24\u8def\u540c\u65f6\u8f93\u51fa\uff0c\u652f\u6301\u53cc\u9891\u5f02\u663e\u3002\u4e3b\u8981\u7684\u533a\u522b\u662f\u9999\u6a59\u6d3e4B\u5185\u7f6e\u4e86NPU\uff08\u4eba\u5de5\u667a\u80fd\u5904\u7406\u5668\uff09\uff0c\u53ef\u4ee5\u534f\u52a9CPU\u505a\u795e\u7ecf\u7f51\u7edc\u52a0\u901f\u8ba1\u7b97\uff0c\u5b98\u65b9\u6709\u63d0\u4f9b\u76f8\u5173\u7684PLAI\u8bad\u7ec3\u5de5\u5177\u8d44\u6599\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/03\/20210306_604374e592088.jpg\" alt=\"\u9999\u6a59\u6d3e4\u8ff7\u4f60pc\u5728Ubuntu\u7cfb\u7edf\u4e0b\u4f7f\u7528USB\u6444\u50cf\u5934\u7684\u65b9\u6cd5-\u6652\u8d27\u597d\u7269\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/03\/20210306_604374eba31f7.jpg\" alt=\"\u9999\u6a59\u6d3e4\u8ff7\u4f60pc\u5728Ubuntu\u7cfb\u7edf\u4e0b\u4f7f\u7528USB\u6444\u50cf\u5934\u7684\u65b9\u6cd5-\u6652\u8d27\u597d\u7269\" \/>\u8fd9\u4e24\u6b3e\u5f00\u53d1\u677f\u90fd\u652f\u6301\u540c\u65f6\u8fde\u63a5\u4e24\u4e2aMIPI\u63a5\u53e3\u6444\u50cf\u5934\uff0c\u76ee\u524d\u5b98\u65b9\u5df2\u7ecf\u9002\u914d\u4e86\u8fd9\u6b3e1300\u4e07\u50cf\u7d20\u7684\u6444\u50cf\u5934\uff08\u578b\u53f7\uff1aOV13850\uff09\uff0c\u540c\u65f6\u5f00\u53d1\u8005\u4e5f\u53ef\u4ee5\u81ea\u884c\u5199\u9a71\u52a8\u53bb\u9002\u914d\u5176\u4ed6MIPI\u63a5\u53e3\u7684\u6444\u50cf\u5934\u54e6\u5b98\u65b9\u7ef4\u62a4\u7684Linux\u6e90\u7801\u63d0\u4f9b\u4e86\u591a\u6b3e\u6444\u50cf\u5934\u7684\u9a71\u52a8\u6e90\u7801\uff0c\u5b89\u5353\u7cfb\u7edf\u4e0b\uff0c\u53ef\u4ee5\u770b\u5b89\u5353\u6e90\u7801RKDocs\u6587\u4ef6\u5939\u4e0b\u7684\u4e00\u4e9b\u6587\u6863\u3002<\/p>\n<p><\/p>\n<p>\u9999\u6a59\u6d3e4\u548c4B\u540c\u65f6\u8fd8\u652f\u6301UVC\u6444\u50cf\u5934\u3002\u8fde\u63a5USB\u6444\u50cf\u5934\uff0c\u5b89\u5353\u4e0b\u652f\u6301\u5f55\u50cf\u3001\u5b58\u50a8\u7b49\u529f\u80fd\uff0cLinux\u4e0b\u4e5f\u80fd\u7528\u811a\u672c\u62cd\u7167\uff0c\u5f55\u50cf\uff0c\u9884\u89c8.\uff0c\u540c\u65f6\u652f\u6301\u53cc\u5c4f\u663e\u793a\u6444\u50cf\u5934\u7684\u5185\u5bb9\uff0c\u5b98\u65b9\u4e5f\u63d0\u4f9b\u6709\u6e90\u7801\uff0c\u5305\u62ec\u5e94\u7528\u7a0b\u5e8f\uff0c\u6bd4\u5982\u6444\u50cf\u5934\u62cd\u7167\u3001\u5f55\u50cf\u5e94\u7528\u7a0b\u5e8f\u6e90\u7801\u3002<\/p>\n<p><\/p>\n<p>\u672c\u7bc7\u5c06\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u9999\u6a59\u6d3e4\/4B\u5728Ubuntu\u7cfb\u7edf\u4e0b\u4f7f\u7528USB\u6444\u50cf\u5934\u7684\u64cd\u4f5c\u65b9\u6cd5\uff1a<\/p>\n<p><\/p>\n<p>1\u3001\u51c6\u5907\u4e00\u4e2aUVC\u6444\u50cf\u5934\uff0c\u5c0f\u7f16\u7528\u7684\u662f\u82f1\u83f2\u514bUSB\u7f51\u7edc\u6444\u50cf\u5934<\/p>\n<p>\u2460\u76f4\u63a5\u5c06\u6444\u50cf\u5934\u63d2\u5165Pi4\u7684USB2.0\u62163.0\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u67e5\u8be2\u5230USB\u6444\u50cf\u5934\u7684\u8282\u70b9\u4e86\uff1a<\/p>\n<p>root@OrangePi:~# ls \/dev\/video10 -la<\/p>\n<p>crw-rw&#8212;-+ 1 root video 81, 15 Jan \u00a02 13:15 \/dev\/video10<\/p>\n<p>\u6211\u7684\u8282\u70b9\u662fvideo10\uff0c\u8bbe\u5907\u8282\u70b9\u5728\u4f60\u7684\u677f\u5b50\u4e0a\u53ef\u80fd\u4e0d\u662f\/dev\/video10\uff0c\u9700\u8981\u68c0\u67e5\u4e00\u4e0b\u3002<\/p>\n<p><\/p>\n<p>\u2461\u8bbe\u5907\u8282\u70b9\u51fa\u6765\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528USB\u6444\u50cf\u5934\u4e86\u3002<\/p>\n<p>\u4f7f\u7528motion\u6765\u4f7f\u7528USB\u6444\u50cf\u5934\uff1a<\/p>\n<p>\u5b89\u88c5motion<\/p>\n<p>Sudo apt-get install motion<\/p>\n<p><\/p>\n<p>\u4fee\u6539\u914d\u7f6e<\/p>\n<p>$ sudo nano \/etc\/motion\/motion.conf<\/p>\n<p>$ stream_localhost off<\/p>\n<p>\u5728motion.cong\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bf7\u6ce8\u610fUSB\u6444\u50cf\u5934\u7684\u8bbe\u5907\u8282\u70b9\u662fvideo?\u591a\u5c11\uff0c\u5e76\u76f8\u5e94\u4fee\u6539<\/p>\n<p><\/p>\n<p>\u521b\u5efa\u6587\u4ef6\u5939\uff0c\u7528\u4e8e\u4fdd\u5b58\u56fe\u7247<\/p>\n<p>$ mkdir ~\/motion<\/p>\n<p><\/p>\n<p>\u4fee\u6539\u6743\u9650<\/p>\n<p>$ chmod 777 motion<\/p>\n<p><\/p>\n<p>\u7ee7\u7eed\u4fee\u6539\u914d\u7f6e<\/p>\n<p>$ sudo nano \/etc\/default\/motion<\/p>\n<p>$ start_motion_daemon=yes<\/p>\n<p><\/p>\n<p>\u542f\u52a8\u670d\u52a1\u5668<\/p>\n<p>$ sudo \/etc\/init.d\/motion start<\/p>\n<p><\/p>\n<p>\u6700\u540e\u4e00\u6b65\uff0c\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165<\/p>\n<p>localhost:8081<\/p>\n<p>\u5373\u53ef\u67e5\u770b\u6444\u50cf\u5934\u8f93\u51fa\u7684\u56fe\u50cf<\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u9999\u6a59\u6d3e4\u8ff7\u4f60pc\u5728Ubuntu\u7cfb\u7edf&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/364976"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=364976"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/364976\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=364976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=364976"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=364976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}