{"id":362,"date":"2009-01-30T15:44:55","date_gmt":"2009-01-30T06:44:55","guid":{"rendered":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/?p=362"},"modified":"2009-02-01T08:48:44","modified_gmt":"2009-01-31T23:48:44","slug":"java%e3%81%a7opencv","status":"publish","type":"post","link":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/2009\/01\/30\/362\/","title":{"rendered":"Java\u3067OpenCV"},"content":{"rendered":"<p>\u4f3c\u305f\u3088\u3046\u306a\u8a18\u4e8b\u304c\u7d9a\u304d\u307e\u3059\u304c\u2026(^^;\u3002<\/p>\n<p>Java\u304b\u3089OpenCV\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<a href=\"http:\/\/ubaa.net\/shared\/processing\/opencv\/\">OPENCV \\ library<\/a>\u3092\u4f7f\u3063\u3066\u9854\u8a8d\u8b58\u3092\u884c\u306a\u3046\u3002\u3053\u3061\u3089\u306f<a href=\"http:\/\/www.hellohiro.com\/native.htm\">JNI\u306e\u4ed5\u7d44\u307f<\/a>\u3092\u4f7f\u3063\u305fJava\u7528\u306e\u30d6\u30ea\u30c3\u30b8\u30e9\u30a4\u30d6\u30e9\u30ea\u3002\uff08\u57fa\u672c\u7684\u306b\u306fJava\u3092\u30d9\u30fc\u30b9\u306b\u3057\u305f<a href=\"http:\/\/processing.org\/\">\u30d3\u30b8\u30e5\u30a2\u30eb\u8a00\u8a9eProcessing<\/a>\uff08\u3068\u8a00\u3063\u3066\u3044\u3044\u306e\u304b\u3057\u3089\u2026\uff09\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u3089\u3057\u3044\u3002\u30a2\u30af\u30bb\u30b9URL\u306bprocessing\u3068\u3042\u308b\u306e\u306f\u3053\u306e\u305f\u3081\u3002\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30bf\u30a4\u30c8\u30eb\u306f\u308f\u304b\u308a\u306b\u304f\u3044\uff08\u3068\u3044\u3046\u304b\u305b\u3081\u3066\u300cOpenCV Java library\u300d\u3042\u305f\u308a\u306b\u3057\u3066\u6b32\u3057\u3044\u2026\uff09\u304c\u3001\u30da\u30fc\u30b8\u4e2d\u306e\u8a18\u8ff0\u3067\u306f\u300cOpenCV Processing Library\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u7b87\u6240\u3082\u3042\u308b\u306e\u3067\u30da\u30fc\u30b8\u30bf\u30a4\u30c8\u30eb\u3067\u629c\u3051\u3066\u308b\u3060\u3051\u304b\u3082\uff09\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/iad_otomamay\/20080927\/p1\">\u7c21\u5358\u3001OpenCV\uff0bJava\u3067\u300c\u9854\u8a8d\u8b58\u30d7\u30ed\u30b0\u30e9\u30e0\u300d\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046\uff01 &#8211; \u5c71\u672c\u5927\uff20\u30af\u30ed\u30ce\u30b9\u306e\u65e5\u8a18<\/a><\/li>\n<\/ul>\n<p>\u5c71\u672c\u3055\u3093\u306e\u3068\u3053\u308d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001\u8d77\u52d5\u6642\u306e\u5f15\u6570\u3067\u6307\u5b9a\u3055\u308c\u305f\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u9854\u8a8d\u8b58\u3057\u3066\u3044\u308b\u3002\u3053\u308c\u306f\u3046\u307e\u304f\u52d5\u4f5c\u3059\u308b\u3093\u3060\u304c\u3001\u4e0a\u306e\u914d\u5e03\u5143ubaa.net\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u30ab\u30e1\u30e9\u753b\u50cf\u306e\u53d6\u308a\u8fbc\u307f\u30b5\u30f3\u30d7\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3068\u306a\u305c\u304b\u505c\u6b62\u3057\u3066\u3057\u307e\u3046\uff08jdk-1.6.0_11+Windows Vista Home SP1\u3060\u304b\u3089\uff1f\uff09\u3002\u3061\u3089\u3063\u3068\u691c\u7d22\u3057\u3064\u3064\u8a66\u3057\u3066\u3044\u308b\u3068\u3001\u30b9\u30ec\u30c3\u30c9\u306erun()\u4e2d\u3067\u547c\u3073\u51fa\u3057\u3066\u3044\u308bcv.read()\u3067\u52d5\u4f5c\u304c\u505c\u6b62\u3059\u308b\u3002Java\u3068OpenCV\uff08\u3042\u308b\u3044\u306f\u30d6\u30ea\u30c3\u30b8\u30e9\u30a4\u30d6\u30e9\u30ea\uff09\u306e\u3069\u3061\u3089\u304c\u60aa\u3044\u306e\u304b\u308f\u304b\u3089\u3093\u304c\u540c\u3058\u3088\u3046\u306a\u73fe\u8c61\u306e\u4eba\u3082\u3044\u308b\u3089\u3057\u3044\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/nuigroup.com\/forums\/viewthread\/3531\/#23245\">NUI Group\u00a0\u00a0\u00bb\u00a0\u00a0Java and OpenCv<\/a><\/li>\n<ul>\n<li>i think it\u2019s maybe a stupid thread problem, but i lost curiosity and left all code as it working<\/li>\n<\/ul>\n<\/ul>\n<p>\u3069\u3046\u3082\u30ad\u30e3\u30d7\u30c1\u30e3\u958b\u59cb\u306ecv.capture()\u3082run()\u306e\u4e2d\u306b\u306a\u3044\u3068\u3001\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u3044\u3088\u3046\u3060\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b9\u30ec\u30c3\u30c9\u3092\u4f7f\u3046\u5834\u5408\u306fcv.stop()\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306a\u3069\u3082run()\uff08\u307e\u305f\u306f\u3001\u305d\u3053\u304b\u3089\u547c\u3070\u308c\u308b\u30e1\u30bd\u30c3\u30c9\uff09\u4e2d\u306b\u306a\u3044\u3068\u30c0\u30e1\u3089\u3057\u3044\u3002\u3053\u3053\u307e\u3067\u5224\u660e\u3059\u308b\u306e\u306b\u3048\u3089\u3044\u6642\u9593\u3092\u98df\u3063\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u4f5c\u6210\u3057\u305f Java \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3053\u3061\u3089\u2193<\/p>\n<div class=\"hl-surround\" style=\"height:280px;\"><ol class=\"hl-main\" start=1><li>&nbsp;<span class=\"hl-reserved\">import <\/span><span class=\"hl-identifier\">java<\/span><span class=\"hl-default\">.<\/span><span class=\"hl-identifier\">util<\/span><span class=\"hl-default\">.*;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-default\"><\/span><span class=\"hl-reserved\">import <\/span><span class=\"hl-identifier\">java<\/span><span class=\"hl-default\">.<\/span><span class=\"hl-identifier\">awt<\/span><span class=\"hl-default\">.*;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-default\"><\/span><span class=\"hl-reserved\">import <\/span><span class=\"hl-identifier\">java<\/span><span class=\"hl-default\">.<\/span><span class=\"hl-identifier\">awt<\/span><span class=\"hl-default\">.<\/span><span class=\"hl-identifier\">event<\/span><span class=\"hl-default\">.*;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-default\"><\/span><span class=\"hl-reserved\">import <\/span><span class=\"hl-identifier\">java<\/span><span class=\"hl-default\">.<\/span><span class=\"hl-identifier\">awt<\/span><span class=\"hl-default\">.<\/span><span class=\"hl-identifier\">image<\/span><span class=\"hl-default\">.<\/span><span class=\"hl-identifier\">MemoryImageSource<\/span><span class=\"hl-default\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-default\"><\/span><span class=\"hl-reserved\">import <\/span><span class=\"hl-identifier\">javax<\/span><span class=\"hl-default\">.<\/span><span class=\"hl-identifier\">swing<\/span><span class=\"hl-default\">.*;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-default\"><\/span><span class=\"hl-reserved\">import <\/span><span class=\"hl-identifier\">hypermedia<\/span><span class=\"hl-default\">.<\/span><span class=\"hl-identifier\">video<\/span><span class=\"hl-default\">.<\/span><span class=\"hl-identifier\">OpenCV<\/span><span class=\"hl-default\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-default\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-default\"><\/span><span class=\"hl-reserved\">public class <\/span><span class=\"hl-identifier\">FaceDetection <\/span><span class=\"hl-reserved\">extends <\/span><span class=\"hl-identifier\">JFrame <\/span><span class=\"hl-reserved\">implements <\/span><span class=\"hl-identifier\">Runnable <\/span><span class=\"hl-brackets\">{\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-brackets\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">OpenCV cv<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-types\">boolean <\/span><span class=\"hl-identifier\">cv_thread<\/span><span class=\"hl-code\"> = <\/span><span class=\"hl-reserved\">false<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">Thread t<\/span><span class=\"hl-code\">;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <\/span><span class=\"hl-comment\">\/\/ \u753b\u50cf\u53d6\u308a\u8fbc\u307f\u30b9\u30ec\u30c3\u30c9\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; \r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">Image frame<\/span><span class=\"hl-code\">;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <\/span><span class=\"hl-comment\">\/\/ \u53d6\u308a\u8fbc\u307f\u753b\u50cf\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">Image b_img<\/span><span class=\"hl-code\">;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <\/span><span class=\"hl-comment\">\/\/ \u30c0\u30d6\u30eb\u30d0\u30c3\u30d5\u30a1\u30a4\u30e1\u30fc\u30b8\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">Rectangle<\/span><span class=\"hl-brackets\">[] <\/span><span class=\"hl-identifier\">squares<\/span><span class=\"hl-code\"> = <\/span><span class=\"hl-reserved\">new <\/span><span class=\"hl-identifier\">Rectangle<\/span><span class=\"hl-brackets\">[<\/span><span class=\"hl-number\">0<\/span><span class=\"hl-brackets\">]<\/span><span class=\"hl-code\">; <\/span><span class=\"hl-comment\">\/\/ \u691c\u51fa\u3055\u308c\u305f\u9854\u306e\u9818\u57df\u60c5\u5831\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-types\">final int <\/span><span class=\"hl-identifier\">FRAME_RATE<\/span><span class=\"hl-code\">&nbsp; = <\/span><span class=\"hl-number\">1000<\/span><span class=\"hl-code\">\/<\/span><span class=\"hl-number\">30<\/span><span class=\"hl-code\">;&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-comment\">\/\/ \u66f4\u65b0\u6642\u9593\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">FaceDetection<\/span><span class=\"hl-brackets\">() {\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-brackets\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">setDefaultCloseOperation<\/span><span class=\"hl-brackets\">(<\/span><span class=\"hl-identifier\">JFrame<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-identifier\">DISPOSE_ON_CLOSE<\/span><span class=\"hl-brackets\">)<\/span><span class=\"hl-code\">; <\/span><span class=\"hl-comment\">\/\/ \u7d42\u4e86\u6642\u306e\u8a2d\u5b9a(dispose() \u304c\u547c\u3070\u308c\u308b)\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">cv<\/span><span class=\"hl-code\"> = <\/span><span class=\"hl-reserved\">new <\/span><span class=\"hl-identifier\">OpenCV<\/span><span class=\"hl-brackets\">()<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-comment\">\/\/ start running program\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">t<\/span><span class=\"hl-code\"> = <\/span><span class=\"hl-reserved\">new <\/span><span class=\"hl-identifier\">Thread<\/span><span class=\"hl-brackets\">( <\/span><span class=\"hl-reserved\">this <\/span><span class=\"hl-brackets\">)<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">t<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-identifier\">start<\/span><span class=\"hl-brackets\">()<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-brackets\">}\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-brackets\">&nbsp; \r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-brackets\">&nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-reserved\">public <\/span><span class=\"hl-types\">void <\/span><span class=\"hl-identifier\">run<\/span><span class=\"hl-brackets\">() {\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-brackets\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-comment\">\/\/ \u30ad\u30e3\u30d7\u30c1\u30e3\u7528\u610f\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">cv<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-identifier\">capture<\/span><span class=\"hl-brackets\">( <\/span><span class=\"hl-number\">320<\/span><span class=\"hl-code\">, <\/span><span class=\"hl-number\">240 <\/span><span class=\"hl-brackets\">)<\/span><span class=\"hl-code\">; <\/span><span class=\"hl-comment\">\/\/ \u2190cv.read()\u3068\u540c\u3058\u30e1\u30bd\u30c3\u30c9\u5185\u306b\u306a\u3044\u3068\u30c0\u30e1\uff1f\uff08run() \u5185\u304b\u3089\u547c\u3073\u51fa\u305b\u3070\u5225\u30e1\u30bd\u30c3\u30c9\u306b\u3042\u3063\u3066\u3082\u5927\u4e08\u592b\u3089\u3057\u3044\uff09\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ \u753b\u9762\u30b5\u30a4\u30ba\u8a2d\u5b9a\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">setBounds<\/span><span class=\"hl-brackets\">(<\/span><span class=\"hl-number\">50<\/span><span class=\"hl-code\">, <\/span><span class=\"hl-number\">50<\/span><span class=\"hl-code\">, <\/span><span class=\"hl-identifier\">cv<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-identifier\">width<\/span><span class=\"hl-code\">, <\/span><span class=\"hl-identifier\">cv<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-identifier\">height <\/span><span class=\"hl-brackets\">)<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">setVisible<\/span><span class=\"hl-brackets\">( <\/span><span class=\"hl-reserved\">true <\/span><span class=\"hl-brackets\">)<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-comment\">\/\/ \u30c0\u30d6\u30eb\u30d0\u30c3\u30d5\u30a1\u306e\u751f\u6210\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">b_img<\/span><span class=\"hl-code\">=<\/span><span class=\"hl-identifier\">createImage<\/span><span class=\"hl-brackets\">( <\/span><span class=\"hl-identifier\">cv<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-identifier\">width<\/span><span class=\"hl-code\">, <\/span><span class=\"hl-identifier\">cv<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-identifier\">height <\/span><span class=\"hl-brackets\">)<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">Graphics b_g<\/span><span class=\"hl-code\">=<\/span><span class=\"hl-identifier\">b_img<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-identifier\">getGraphics<\/span><span class=\"hl-brackets\">()<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-comment\">\/\/ \u51e6\u7406\u6642\u9593\u8a08\u6e2c\u7528\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-types\">long <\/span><span class=\"hl-identifier\">t_start<\/span><span class=\"hl-code\">, <\/span><span class=\"hl-identifier\">t_end<\/span><span class=\"hl-code\">, <\/span><span class=\"hl-identifier\">t_tpf<\/span><span class=\"hl-code\">=<\/span><span class=\"hl-number\">0<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-types\">float <\/span><span class=\"hl-identifier\">t_fps<\/span><span class=\"hl-code\">=<\/span><span class=\"hl-number\">0<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-comment\">\/\/ \u30b9\u30ec\u30c3\u30c9\u51e6\u7406\u958b\u59cb\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-comment\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">cv_thread<\/span><span class=\"hl-code\">=<\/span><span class=\"hl-reserved\">true<\/span><span class=\"hl-code\">;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-code\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><span class=\"hl-identifier\">cv<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-identifier\">cascade<\/span><span class=\"hl-brackets\">( <\/span><span class=\"hl-quotes\">&quot;<\/span><span class=\"hl-string\">C:<\/span><span class=\"hl-special\">\\\\<\/span><span class=\"hl-string\">Program Files<\/span><span class=\"hl-special\">\\\\<\/span><span class=\"hl-string\">OpenCV<\/span><span class=\"hl-special\">\\\\<\/span><span class=\"hl-string\">data<\/span><span class=\"hl-special\">\\\\<\/span><span class=\"hl-string\">haarcascades<\/span><span class=\"hl-special\">\\&quot;<\/span><span class=\"hl-string\"> + OpenCV.CASCADE_FRONTALFACE_ALT2 ); \/\/ \u9854\u8a8d\u8b58\u30c7\u30fc\u30bf\u8aad\u307f\u8fbc\u307f\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while( t!=null &amp;&amp; cv!=null &amp;&amp; cv_thread ) {\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_start=(new Date()).getTime();\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv.read(); \/\/ \u753b\u50cf\u53d6\u308a\u8fbc\u307f\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame = createImage(new MemoryImageSource( cv.width, cv.height, cv.pixels(), 0, cv.width)); \/\/ \u53d6\u308a\u8fbc\u307f\u753b\u50cf\u306e\u53d6\u5f97\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; squares = cv.detect( 1.2f, 2, OpenCV.HAAR_DO_CANNY_PRUNING, 20, 20 ); \/\/ \u9854\u691c\u51fa\u3068\u7d50\u679c\u60c5\u5831\u53d6\u5f97\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setTitle(String.format(<\/span><span class=\"hl-quotes\">&quot;<\/span><span class=\"hl-code\">%<\/span><span class=\"hl-number\">.1<\/span><span class=\"hl-identifier\">ffps <\/span><span class=\"hl-brackets\">(<\/span><span class=\"hl-code\">%<\/span><span class=\"hl-identifier\">dms<\/span><span class=\"hl-brackets\">)<\/span><span class=\"hl-code\">: <\/span><span class=\"hl-identifier\">face<\/span><span class=\"hl-code\"> %<\/span><span class=\"hl-identifier\">d<\/span><span class=\"hl-quotes\">&quot;<\/span><span class=\"hl-string\">, t_fps, t_tpf, squares.length));\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; synchronized (b_img) { \/\/ \u9854\u8a8d\u8b58\u7d50\u679c\u306e\u63cf\u753b\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b_g.drawImage(frame, 0, 0, this);\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/ draw squares\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b_g.setColor( Color.RED );\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (Rectangle rect : squares) b_g.drawRect( rect.x, rect.y, rect.width, rect.height );\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_end=(new Date()).getTime();\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_tpf=t_end-t_start;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_fps=1000f\/t_tpf;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; repaint(); \/\/ \u518d\u63cf\u753b\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {t.sleep( FRAME_RATE );} catch(InterruptedException e) {}\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv.stop(); \/\/ \u2190cv.read()\u3068\u540c\u3058\u30e1\u30bd\u30c3\u30c9\u5185\u306b\u306a\u3044\u3068\u30c0\u30e1\uff1f\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv=null;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; }\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; \r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; public void paint( Graphics g ) {\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (b_img!=null) synchronized (b_img) {g.drawImage(b_img, 0, 0, this);}\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; }\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; \/\/ \u30a6\u30a3\u30f3\u30c9\u30a6\u7d42\u4e86\u51e6\u7406\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; public void dispose(){\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int count=0;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cv_thread=false; \/\/ cv_thread \u3092 false \u306b\u3057\u3066 cv \u30b9\u30ec\u30c3\u30c9\u306e\u7d42\u4e86\u3092\u5f85\u3064\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (cv!=null) {\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {t.join(500);} catch(InterruptedException e) {}\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (count==1) System.out.print(<\/span><span class=\"hl-quotes\">&quot;<\/span><span class=\"hl-identifier\">OpenCV closing<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-quotes\">&quot;<\/span><span class=\"hl-string\">);\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (count&gt;1) System.out.print(<\/span><span class=\"hl-quotes\">&quot;<\/span><span class=\"hl-code\">.<\/span><span class=\"hl-quotes\">&quot;<\/span><span class=\"hl-string\">);\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count++;\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (count&gt;1) System.out.println();\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.exit(0);\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; }\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; \r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; public static void main( String[] args ) {\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new FaceDetection();\r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">&nbsp; &nbsp; &nbsp; &nbsp; } \r<\/span><\/li>\n<li>&nbsp;<span class=\"hl-string\">}<\/span><\/li><\/ol><\/div>\n<p>\u4ed6\u306b\u3082\u81ea\u524d\u3067JNI\u3092\u4f7f\u3063\u3066Java\u304b\u3089OpenCV\u3092\u4f7f\u304a\u3046\u3068\u3057\u3066\u3044\u308b\u4eba\u3082\u3044\u308b\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/blog.livedoor.jp\/eternal_bar\/archives\/51453679.html\">\u30c1\u30e9\u30b7\u306e\u88cf : Java\u3067OpenCV \uff085\uff09-\u9854\u8a8d\u8b58\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u6210- &#8211; livedoor Blog\uff08\u30d6\u30ed\u30b0\uff09<\/a><\/li>\n<\/ul>\n<p>\u306a\u304a\u3001\u4eca\u56de\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001OpenCV-1.0\u7528\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u3068\u306e\u3053\u3068\u3067\u3001\u307e\u3060\u6700\u65b0\u306e1.1a\u306a\u3069\u3067\u306f\u4f7f\u7528\u3067\u304d\u306a\u3044\u3089\u3057\u3044\u3002\u5fc5\u8981\u306a\u51e6\u7406\u304c\u547c\u3079\u306a\u3044\u5834\u5408\u306f\u3001\u81ea\u524d\u3067JNI\u7d4c\u7531\u3067OpenCV\u3092\u4f7f\u3046\u306e\u3082\u3044\u3044\u304b\u3082\uff1f<\/p>\n<p>JNI\u306f Java Native Interface \u306e\u7565\u3067\u3059\u304c\u3001<a href=\"https:\/\/jna.dev.java.net\/\">JNA (Java Native Access)<\/a> \u3068\u3044\u3046\u3082\u306e\u3082\u3042\u308a\u3001\u3055\u3089\u306b\u30cd\u30a4\u30c6\u30a3\u30d6\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u9045\u3044\u3068\u306e\u8a71\u3082\u3061\u3089\u3063\u3068\u898b\u304b\u3051\u307e\u3057\u305f\u304c\u3001JNI\u3067\u5fc5\u8981\u3060\u3063\u305f\u9014\u4e2d\u306e\u30e9\u30c3\u30d1\u30fc\u304c\u4e0d\u8981\u306b\u306a\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u3053\u3061\u3089\u3092\u8a66\u3057\u3066\u307f\u308b\u306e\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/t-katochin\/20090122\/1232615970\">JNA\u306a\u308b\u3082\u306e &#8211; \u3053\u3052\u3064\u304d\u307e\u305b\u3093<\/a> JNA\u306f\u304b\u306a\u308a\u4fbf\u5229\u306b\u3067\u304d\u3066\u3044\u308b\u3002\u3082\u3046JNI\u4f7f\u308f\u306a\u304f\u3066\u826f\u3057\u3002\n<\/ul>\n<p>\u305d\u308c\u3068\u3001Processing\u306f\u30c7\u30fc\u30bf\u53ef\u8996\u5316\u3067\u4fbf\u5229\u305d\u3046\u306a\u306e\u3067\u3001\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u8a66\u3057\u3066\u304a\u304d\u305f\u3044\u3002JavaScript\u304b\u3089\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u306e\u3053\u3068\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/processing.org\/\">Processing 1.0<br \/>\n<\/a><\/p>\n<ul>\n<li><a href=\"http:\/\/processing.jp\/\">Processing.jp<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/www.tdctokyo.org\/publication\/processing.pdf\">\u300cProcessing:\u30e1\u30c7\u30a3\u30a2\u30a2\u30fc\u30c8\u306e\u305f\u3081\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300d<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/yoppa.jpn.org\/presen.php\">\u30d7\u30ec\u30bc\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u6cd5\u8b1b\u7fa9\u8cc7\u6599\uff08\u7530\u6240\uff20\u5343\u8449\u5546\u79d1\u5927\uff09<br \/>\n<\/a>||\u30c7\u30b8\u30bf\u30eb\u6280\u8853\u306b\u3088\u308b\u65b0\u3057\u3044\u8868\u73fe\u65b9\u6cd5\u3092\u5b9f\u8df5\u7684\u306b\u5b66\u3076\n  <\/ul>\n<ul>\n<li><a href=\"http:\/\/techno-st.net\/2008\/09\/30\/processing-webcam-1.html\">Processing \u3067 Webcam \u3092\u4f7f\u3063\u3066\u904a\u3076\u3002[\u57fa\u672c\u7de8] &#8211; trial and error<br \/>\n<\/a>||<a href=\"http:\/\/techno-st.net\/2008\/10\/04\/processing-webcam-2.html\">[\u5fdc\u7528\u7de8] &#8211; trial and error<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/www.amazon.co.jp\/exec\/obidos\/ASIN\/4873113784\">Amazon.co.jp\uff1a \u30d3\u30b8\u30e5\u30a2\u30e9\u30a4\u30b8\u30f3\u30b0\u30fb\u30c7\u30fc\u30bf \u2015Processing\u306b\u3088\u308b\u60c5\u5831\u8996\u899a\u5316\u624b\u6cd5<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/labs.uechoco.com\/blog\/2008\/03\/processingprocessing_1.html\">\u3046\u3048\u3061\u3087\u3053\uff20\u307c\u308d\u3050 \u226b Blog Archive \u226b \u226b [Processing]\u6d77\u5916\u306e\u5927\u5b66\u306eprocessing\u8b1b\u7fa9\u8cc7\u6599<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/www.atmarkit.co.jp\/fwcr\/design\/tool\/processing01\/01.html\">\u82b8\u8853\u306e\u79cb\u306bProcessing\u3067\u30b9\u30b1\u30c3\u30c1\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u59cb\u3081\u3066\u307f\u3088\u3046\uff081\/3\uff09 &#8211; \uff20IT<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/www.atmarkit.co.jp\/fwcr\/design\/tool\/processing02\/01.html\">Processing\u306e\u5bfe\u8a71\u5f0f\u30b9\u30b1\u30c3\u30c1\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u904a\u307c\u3046\uff081\/3\uff09 &#8211; \uff20IT<br \/>\n<\/a>||\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u8a66\u305b\u308b<\/p>\n<li><a href=\"http:\/\/slashdot.jp\/it\/08\/11\/27\/2218250.shtml\">\u30b9\u30e9\u30c3\u30b7\u30e5\u30c9\u30c3\u30c8\u30fb\u30b8\u30e3\u30d1\u30f3 | \u304a\u7d75\u63cf\u304d\u7528\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u300cProcessing\u300d1.0 \u30ea\u30ea\u30fc\u30b9<br \/>\n<\/a>\n  <\/ul>\n<li><a href=\"http:\/\/ejohn.org\/blog\/processingjs\/\">John Resig &#8211; Processing.js<br \/>\n<\/a><\/p>\n<ul>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/amachang\/20080509\/1210355674\">\u30d6\u30e9\u30a6\u30b6\u3067\u304a\u7d75\u63cf\u304d\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\uff01 Processing.js \u767b\u5834\uff01 &#8211; IT\u6226\u8a18<br \/>\n<\/a>\n<\/ul>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4f3c\u305f\u3088\u3046\u306a\u8a18\u4e8b\u304c\u7d9a\u304d\u307e\u3059\u304c\u2026(^^;\u3002 Java\u304b\u3089OpenCV\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308bOPENCV \\ library\u3092\u4f7f\u3063\u3066\u9854\u8a8d\u8b58\u3092\u884c\u306a\u3046\u3002\u3053\u3061\u3089\u306fJNI\u306e\u4ed5\u7d44\u307f\u3092\u4f7f\u3063\u305fJava\u7528\u306e\u30d6\u30ea\u30c3\u30b8\u30e9\u30a4\u30d6\u30e9\u30ea\u3002\uff08\u57fa\u672c\u7684\u306b\u306fJava\u3092\u30d9 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[54,52,55,57,56],"_links":{"self":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/362"}],"collection":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/comments?post=362"}],"version-history":[{"count":36,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":427,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/362\/revisions\/427"}],"wp:attachment":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/media?parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/categories?post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/tags?post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}