{"id":318,"date":"2019-05-12T20:54:51","date_gmt":"2019-05-12T11:54:51","guid":{"rendered":"https:\/\/0x0c.info\/?p=318"},"modified":"2019-05-12T20:54:51","modified_gmt":"2019-05-12T11:54:51","slug":"%e3%80%90java%e3%80%91-java%e3%81%a7usb%e3%82%ab%e3%83%a1%e3%83%a9%e3%80%81%e5%86%85%e8%94%b5%e3%82%ab%e3%83%a1%e3%83%a9%e3%82%92%e6%93%8d%e4%bd%9c%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/0x0c.info\/?p=318","title":{"rendered":"\u3010Java\u3011 java\u3067usb\u30ab\u30e1\u30e9\u3001\u5185\u8535\u30ab\u30e1\u30e9\u3092\u64cd\u4f5c\u3059\u308b"},"content":{"rendered":"<p>\t\t\t\t\u3053\u3061\u3089\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/github.com\/sarxos\/webcam-capture\">https:\/\/github.com\/sarxos\/webcam-capture<\/a><\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u3053\u3061\u3089<br \/>\nyoutube: Java Webcam Capture for Beginners#1 : Introduction and Capture webcam image with 3 lines of code<br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=2BHyL_XK8YQ\">https:\/\/www.youtube.com\/watch?v=2BHyL_XK8YQ<\/a><\/p>\n<p>\u672c\u6c17\u3067\u4e09\u884c\u304b\u3089\u59cb\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u30b5\u30f3\u30d7\u30eb<br \/>\n<a href=\"https:\/\/github.com\/sarxos\/webcam-capture\/blob\/master\/webcam-capture\/src\/example\/java\/TakePictureExample.java\">https:\/\/github.com\/sarxos\/webcam-capture\/blob\/master\/webcam-capture\/src\/example\/java\/TakePictureExample.java<\/a><\/p>\n<p>\u30ab\u30e1\u30e9\u6620\u50cf\u3092\u30e9\u30a4\u30d6\u3067\u30a6\u30a4\u30f3\u30c9\u30a6\u306b\u8868\u793a\u3059\u308b\u30b5\u30f3\u30d7\u30eb<br \/>\n<a href=\"https:\/\/github.com\/sarxos\/webcam-capture\/blob\/master\/webcam-capture\/src\/example\/java\/WebcamPanelExample.java\">https:\/\/github.com\/sarxos\/webcam-capture\/blob\/master\/webcam-capture\/src\/example\/java\/WebcamPanelExample.java<\/a><\/p>\n<hr \/>\n<p>\u304a\u307e\u3051<\/p>\n<p>webcam\u306e\u89e3\u50cf\u5ea6\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u3068\u304d<\/p>\n<pre><code>        Dimension[] nonStandardResolutions = new Dimension[] {\n            WebcamResolution.PAL.getSize(),\n            WebcamResolution.HD.getSize(),\n            new Dimension(720, 480),\n            new Dimension(1280, 720),\n            new Dimension(1000, 500),\n        };\n<\/code><\/pre>\n<p>\u306a\u3069\u3068\u3057\u3066\u304a\u3044\u3066<\/p>\n<pre><code>        webcam.setCustomViewSizes(nonStandardResolutions);\n        webcam.setViewSize(new Dimension(1280, 720));\n<\/code><\/pre>\n<hr \/>\n<p>\u30d1\u30cd\u30eb\u306b\u51fa\u308b\u30c7\u30d0\u30b0\u60c5\u5831\u3092\u6d88\u3059<\/p>\n<pre><code>        WebcamPanel panel = new WebcamPanel(webcam);\n        panel.setFPSDisplayed(false);\n        panel.setDisplayDebugInfo(false);\n        panel.setImageSizeDisplayed(false);\n        panel.setMirrored(false);\n<\/code><\/pre>\n<hr \/>\n<p>2\u3064\u4ee5\u4e0a\u30ab\u30e1\u30e9\u304c\u63a5\u7d9a\u3055\u308c\u3066\u308b\u5834\u5408\u3001\u4efb\u610f\u306e\u30ab\u30e1\u30e9\u3092\u64cd\u4f5c\u3059\u308b<br \/>\nwebcamno\u306b1\u3068\u304b2\u3068\u304b\u5165\u308c\u3066<\/p>\n<pre><code>        List&lt;Webcam&gt; webcams = Webcam.getWebcams();\n        \/\/Webcam webcam = Webcam.getDefault();\n        Webcam webcam = webcams.get(webcamno); \n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3061\u3089\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002 https:\/\/github.com\/sarxos\/webcam-capture \u4f7f\u3044\u65b9\u306f\u3053\u3061\u3089 youtube: Java Webcam Capture for Beginners#1 : Introduction and Capture webcam image with 3 lines of code https:\/\/www.youtube.com\/watch?v=2BHyL_XK8YQ \u672c\u6c17\u3067\u4e09\u884c\u304b\u3089\u59cb\u3081\u3089\u308c\u307e\u3059\u3002 \u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u30b5\u30f3\u30d7\u30eb https:\/\/github.com\/sarxos\/webcam-capture\/blob\/master\/webcam-capture\/src\/example\/java\/TakePictureExample.java \u30ab\u30e1\u30e9\u6620\u50cf\u3092\u30e9\u30a4\u30d6\u3067\u30a6\u30a4\u30f3\u30c9\u30a6\u306b\u8868\u793a\u3059\u308b\u30b5\u30f3\u30d7\u30eb https:\/\/github.com\/sarxos\/webcam-capture\/blob\/master\/webcam-capture\/src\/example\/java\/WebcamPanelExample.java \u304a\u307e\u3051 webcam\u306e\u89e3\u50cf\u5ea6\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u3068\u304d Dimension[] nonStandardResolutions = new Dimension[] { WebcamResolution.PAL.getSize(), WebcamResolution.HD.getSize(), new Dimension(720, 480), new Dimension(1280, 720), new Dimension(1000, 500), }; \u306a\u3069\u3068\u3057\u3066\u304a\u3044\u3066 webcam.setCustomViewSizes(nonStandardResolutions); webcam.setViewSize(new Dimension(1280, 720)); \u30d1\u30cd\u30eb\u306b\u51fa\u308b\u30c7\u30d0\u30b0\u60c5\u5831\u3092\u6d88\u3059 WebcamPanel panel = &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/0x0c.info\/?p=318\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;\u3010Java\u3011 java\u3067usb\u30ab\u30e1\u30e9\u3001\u5185\u8535\u30ab\u30e1\u30e9\u3092\u64cd\u4f5c\u3059\u308b&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[38,79],"class_list":["post-318","post","type-post","status-publish","format-standard","hentry","category-java","tag-java","tag-webcam"],"_links":{"self":[{"href":"https:\/\/0x0c.info\/index.php?rest_route=\/wp\/v2\/posts\/318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/0x0c.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/0x0c.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/0x0c.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/0x0c.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=318"}],"version-history":[{"count":0,"href":"https:\/\/0x0c.info\/index.php?rest_route=\/wp\/v2\/posts\/318\/revisions"}],"wp:attachment":[{"href":"https:\/\/0x0c.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0x0c.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0x0c.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}