{"id":191,"date":"2010-09-28T20:00:00","date_gmt":"2010-09-28T11:00:00","guid":{"rendered":"http:\/\/astel-labs.net\/blog\/diary\/2010\/09\/100928-1.html"},"modified":"2012-07-22T13:08:20","modified_gmt":"2012-07-22T04:08:20","slug":"100928-1","status":"publish","type":"post","link":"https:\/\/astel-labs.net\/blog\/diary\/2010\/09\/100928-1.html","title":{"rendered":"\u8907\u6570\u30ab\u30e1\u30e9\u3092\u5229\u7528\u3057\u305f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u753b\u50cf\u51e6\u7406 Part2"},"content":{"rendered":"<p>\u524d\u56de\u306e\u7d9a\u304d\u3067\u3001\u4eca\u56de\u306f\uff12\u53f0\u306e web \u30ab\u30e1\u30e9\u3092\u5229\u7528\u3057\u305f\u540c\u6642\u753b\u50cf\u306e\u8aad\u307f\u53d6\u308a\u3092\u884c\u3044\u307e\u3059<\/p>\n<p>\u4eca\u56de\u5229\u7528\u3057\u305f web \u30ab\u30e1\u30e9\u306f\u3001\u30b5\u30f3\u30ef\u30b5\u30d7\u30e9\u30a4\u306e <a href=\"http:\/\/www.sanwa.co.jp\/product\/syohin.asp?code=CMS-V27SETBK&amp;cate=1\">CMS-V27SET<\/a> \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059<br \/>\n\uff08\u63a5\u5199\u76ee\u7684\u306e web \u30ab\u30e1\u30e9\u3063\u3066\u610f\u5916\u3068\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3059\uff09<br \/>\n\u6b21\u56de\u63b2\u8f09\u4e88\u5b9a\u306e\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3\u88dc\u6b63\u3067\u306f\u3001\u3053\u306e\u30ab\u30e1\u30e9\u3092\u5229\u7528\u3057\u305f\u5834\u5408\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5229\u7528\u3057\u307e\u3059<br \/>\n\uff08\u3053\u306e\u30ab\u30e1\u30e9\u3067\u306a\u304f\u3068\u3082\u3001\u88dc\u6b63\u3057\u305f\u611f\u3058\u306f\u308f\u304b\u308b\u3068\u601d\u3044\u307e\u3059\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>web \u30ab\u30e1\u30e9\u3092\u6271\u3046\u65b9\u6cd5\u3068\u3057\u3066\u306f\u3001DirectX \u306e Direct Show \u3092\u5229\u7528\u3057\u305f\u65b9\u6cd5\u304c\u771f\u3063\u5148\u306b\u601d\u3044\u3064\u304f\u306e\u3067\u3059\u304c\u3001Direct Show \u306f DirectX \u304b\u3089 Platform SDK \uff08\u73fe\u5728\u3067\u306f Windows SDK\uff09\u306b\u79fb\u7ba1\u3055\u308c\u3066\u4ee5\u964d\u3001\u307b\u307c\u76ee\u7acb\u3063\u305f\u66f4\u65b0\u3082\u306a\u304f\u73fe\u5728\u3067\u306f VC \u304b\u3089\u3067\u3082\u82e5\u5e72\u6271\u3044\u306b\u304f\u3044\u307e\u307e\u3067\u3059<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001Direct Show\u00a0\u4ee5\u5916\u3067 web \u30ab\u30e1\u30e9\u3092\u6271\u3046\u65b9\u6cd5\u306f\u9650\u3089\u308c\u3066\u3057\u307e\u3046\u4e0a\u306b\u3001\u30d5\u30ec\u30fc\u30e0\u30ec\u30d9\u30eb\u3067\u306e\u64cd\u4f5c\u3092\u884c\u3048\u308b\u3082\u306e\u3068\u306a\u308b\u3068\u3001\u60c5\u5831\u3082\u307b\u3068\u3093\u3069\u306a\u3044\u306e\u304c\u73fe\u72b6\u3067\u3059<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001Direct Show\u00a0\u3092\u4f7f\u3063\u3066 web \u30ab\u30e1\u30e9\u3092\u64cd\u4f5c\u3059\u308b\u3057\u304b\u9053\u306f\u306a\u3055\u305d\u3046\u306a\u306e\u3067\u3001\u3053\u308c\u3092 C# \u3067\u6271\u3046\u65b9\u6cd5\u3092\u8003\u3048\u307e\u3059<\/p>\n<p>\u3053\u3053\u3067\u3082 C# \u304b\u3089\u30cd\u30a4\u30c6\u30a3\u30d6 DLL \u3092\u547c\u3076\u306e\u306f\u3044\u308d\u3044\u308d\u9762\u5012\u306a\u306e\u3067\u3001\u30e9\u30c3\u30d1\u30fc\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u63a2\u3059\u3068\u3001Code Project \u306b <a href=\"http:\/\/www.codeproject.com\/KB\/directx\/directshownet.aspx\">DirectShow.NET<\/a> \u306a\u308b\u3082\u306e\u304c\u898b\u3064\u304b\u308a\u307e\u3059<br \/>\n\uff08\u66f4\u65b0\u305d\u306e\u3082\u306e\u306f 2002 \u5e74\u3067\u6b62\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff09<br \/>\n\u3057\u304b\u3082\u3001\u30e9\u30a4\u30bb\u30f3\u30b9\u306f\u300c<a href=\"http:\/\/ja.wikipedia.org\/wiki\/%E3%83%91%E3%83%96%E3%83%AA%E3%83%83%E3%82%AF%E3%83%89%E3%83%A1%E3%82%A4%E3%83%B3\">\u30d1\u30d6\u30ea\u30c3\u30af\u30c9\u30e1\u30a4\u30f3<\/a>\u300d\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u9812\u5e03\u306e\u969b\u306b\u3082\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u6c17\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093<br \/>\n\u203b\u30bd\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u969b\u306b\u306f Code Project \u306b\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067 C#\u00a0\u304b\u3089 web \u30ab\u30e1\u30e9\u3092\u6271\u3046\u65b9\u6cd5\u304c\u6574\u3063\u305f\u306e\u3067\u3001\u5b9f\u969b\u306b\u30ab\u30e1\u30e9\u3092\u63a5\u7d9a\u3057\u3066\u753b\u50cf\u3092\u8aad\u307f\u53d6\u3063\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<p>DirectShow.NET \u306e\u30bd\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u5834\u5408\u306b\u306f\u3001\u307e\u305a\u306f\u30b3\u30fc\u30c9\u3092\u30d3\u30eb\u30c9\u3057\u307e\u3057\u3087\u3046<br \/>\nUCOMIMoniker \u95a2\u9023\u3067\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u5229\u7528\u3059\u308b\u5206\u306b\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3092\u884c\u3044\u307e\u3059<\/p>\n<p>\u25cbVisual Studio \u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001.net \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092 2.0 \u4ee5\u964d\u3092\u9078\u629e\u3057\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059<br \/>\n\uff08DirectShow.NET \u306f .net Framework\u00a01.0 \u3067\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\uff09<\/p>\n<p>\u25cbDirectShow.NET \u3092\u30d3\u30eb\u30c9\u3057\u3066\u4f5c\u6210\u3057\u305f DShowNET.dll \u3092\u53c2\u7167\u8a2d\u5b9a\u306e\u300c\u53c2\u7167\u306e\u8ffd\u52a0\u300d\u304b\u3089\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3059<\/p>\n<p>\u25cb\u3042\u3068\u306f DirectShow.NET \u306b\u6dfb\u4ed8\u3055\u308c\u3066\u3044\u308b CaptureNET \u30b5\u30f3\u30d7\u30eb\u3092\u53c2\u8003\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u3051\u3070\u3001 web \u30ab\u30e1\u30e9\u304b\u3089\u753b\u50cf\u3092\u5f97\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059<br \/>\n\u3053\u3053\u304b\u3089\u3055\u3089\u306b\u3001\uff11\u30d5\u30ec\u30fc\u30e0\u6bce\u306b\u753b\u50cf\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u591a\u5c11\u306e\u30b3\u30fc\u30c9\u306e\u5909\u66f4\u304c\u5fc5\u8981\u3067\u3059<\/p>\n<p>&nbsp;<\/p>\n<p>\u5404\u5909\u66f4\u7b87\u6240\u306e Diff \u3092\u8f09\u305b\u308b\u3068\u9577\u304f\u306a\u308b\u306e\u3067\u3001\u8a73\u7d30\u306f\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044<br \/>\n\u5c1a\u3001\u6dfb\u4ed8\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u306f\u308f\u305f\u3057\u304c\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3044\u308b\u4e2d\u3067\u30d1\u30cd\u30eb\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f7f\u3063\u305f CaptureNET \u306e\u30b5\u30f3\u30d7\u30eb\u304b\u3089\u3001\uff11\u30d5\u30ec\u30fc\u30e0\u6bce\u306b\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u305f\u753b\u50cf\u3092\u30d4\u30af\u30c1\u30e3\u30fc\u30dc\u30c3\u30af\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u904e\u7a0b\u3067\u4f5c\u6210\u3057\u305f\u300c\u9014\u4e2d\u306e\u30b3\u30fc\u30c9\u300d\u3067\u3059<br \/>\n\uff08\u4e00\u5fdc\u3001\u591a\u5c11\u306e\u30b3\u30e1\u30f3\u30c8\u306f\u8a18\u8f09\u3057\u307e\u3057\u305f\u304c\uff09<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u660e\u3089\u304b\u306b\u4e0d\u8981\u306a\u30b3\u30fc\u30c9\u3084\u5197\u9577\u306a\u30b3\u30fc\u30c9\u304c\u6563\u5728\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u304b\u3089\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u3068\u73fe\u5728\u308f\u305f\u3057\u304c\u5229\u7528\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u3067\u306f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\uff12\u500d\u7a0b\u5ea6\u306e\u5dee\u304c\u3067\u307e\u3059<br \/>\n\uff08PC \u306e\u51e6\u7406\u80fd\u529b\u3092\u8d85\u3048\u308b\u6570\u306e web \u30ab\u30e1\u30e9\u3092\u63a5\u7d9a\u3059\u308b\u3068\u3001PC \u304c\u843d\u3061\u308b\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\uff09<\/p>\n<p>\u6dfb\u4ed8\u3059\u308b\u30b3\u30fc\u30c9\u3092\u5229\u7528\u3057\u305f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u4ee5\u5916\u306b\u3082\u30a8\u30e9\u30fc\u51e6\u7406\u306b\u306f\u5341\u5206\u306b\u8003\u616e\u3057\u305f\u3046\u3048\u3067 \u518d\u8a2d\u8a08 \u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<p>\u3042\u3068\u3001\u52d5\u4f5c\u753b\u9762\u3092\u5f35\u308d\u3046\u304b\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u673a\u306e\u307e\u308f\u308a\u3067\u3044\u3044\u88ab\u5199\u4f53\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u3068\u308a\u3042\u3048\u305a\u306f\u30d7\u30ec\u30d3\u30e5\u30fc\u306a\u3057\u306e\u65b9\u5411\u3067\u30fb\u30fb\u30fb<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u30ab\u30e1\u30e9\u304b\u3089\u753b\u50cf\u3092\u53d6\u5f97\u3057\u3066\u3001\uff11\u30d5\u30ec\u30fc\u30e0\u6bce\u306b OpenCV \u3092\u5229\u7528\u3057\u3066\u753b\u50cf\u51e6\u7406\u3092\u884c\u3046\u6e96\u5099\u304c\u6574\u3063\u305f\u306e\u3067\u3001\u6b21\u56de\u306f\u30c7\u30a3\u30b9\u30c8\u30fc\u30b7\u30e7\u30f3\u306e\u88dc\u6b63\u51e6\u7406\u3068\u3001\u30aa\u30de\u30b1\u3067\u9854\u8a8d\u8b58\u3092\u5b9f\u88c5\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u30d0\u30a4\u30ca\u30ea<br \/>\n\u30fb<a href=\"http:\/\/astel-labs.net\/blog\/diary\/tools\/CamSample01.zip\" rel=\"_RAclick\">CamSample01.zip<\/a>\u00a0&lt;VisualStudio2010 \/ .net Framework 2.0&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u4f59\u8ac7\u3067\u3059\u304c\u3001OpenCV\u00a0\u3060\u3068\u3088\u308a\u7c21\u5358\u306b web \u30ab\u30e1\u30e9\u304b\u3089\u30ad\u30e3\u30d7\u30c1\u30e3\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059<\/p>\n<p>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u65b9\u5f0f\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001CPU \u5229\u7528\u7387\u3092\u4f4e\u304f\u6291\u3048\u308b\u306b\u306f\u3053\u3061\u3089\u306e\u307b\u3046\u304c\u826f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u76ee\u7684\u306b\u3088\u3063\u3066\u4f7f\u3044\u5206\u3051\u3066\u304f\u3060\u3055\u3044<br \/>\n\u308f\u305f\u3057\u306f\u30d5\u30a3\u30eb\u30bf\u30b0\u30e9\u30d5\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067 Direct Show \u3092\u4f7f\u3044\u307e\u3057\u305f\u304c\u3001\u30b9\u30eb\u30fc\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u308b\u3060\u3051\u306a\u3089\u3053\u3063\u3061\u306e\u307b\u3046\u304c\u3044\u3044\u304b\u3082<\/p>\n<pre class=\"brush: csharp\">using (CvCapture cap = CvCapture.FromCamera(0)) \/\/ device type + camera index\r\nusing (CvWindow w = new CvWindow(&quot;SampleCapture&quot;))\r\n{\r\n    while (CvWindow.WaitKey(10) &lt; 0)\r\n    {\r\n        using( var image = cap.QueryFrame()){\r\n            image.PutText( &quot;text&quot;,\r\n                new CvPoint( 10, 10 ),\r\n                new CvFont( FontFace.HersheyPlain, 1.0f, 1.0f ), new CvScalar() );\r\n            w.Image = image;\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u306f opencvsharp \u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u63cf\u753b\u3057\u305f\u3060\u3051\u306e\u3082\u306e\u3067\u3059<\/p>\n<p style=\"text-align: center;\"><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"http:\/\/rcm-jp.amazon.co.jp\/e\/cm?t=nymphaea0e-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4873114136&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" width=\"320\" height=\"240\"><\/iframe>\u00a0<iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"http:\/\/rcm-jp.amazon.co.jp\/e\/cm?t=nymphaea0e-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=B001VA2P1U&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" width=\"320\" height=\"240\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306e\u7d9a\u304d\u3067\u3001\u4eca\u56de\u306f\uff12\u53f0\u306e web \u30ab\u30e1\u30e9\u3092\u5229\u7528\u3057\u305f\u540c\u6642\u753b\u50cf\u306e\u8aad\u307f\u53d6\u308a\u3092\u884c\u3044\u307e\u3059 \u4eca\u56de\u5229\u7528\u3057\u305f web \u30ab\u30e1\u30e9\u306f\u3001\u30b5\u30f3\u30ef\u30b5\u30d7\u30e9\u30a4\u306e CMS-V27SET \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059 \uff08\u63a5\u5199\u76ee\u7684\u306e web \u30ab\u30e1\u30e9\u3063\u3066\u610f\u5916\u3068\u898b\u3064\u304b\u3089\u306a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,11,4],"tags":[],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-c","category-opencv","category-4"],"_links":{"self":[{"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":7,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":389,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts\/191\/revisions\/389"}],"wp:attachment":[{"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/categories?post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/tags?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}