{"id":13686,"date":"2024-06-25T09:00:29","date_gmt":"2024-06-25T00:00:29","guid":{"rendered":"https:\/\/www.ecomottblog.com\/?p=13686"},"modified":"2024-06-24T15:06:46","modified_gmt":"2024-06-24T06:06:46","slug":"openrecall%e3%82%92%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%af%be%e5%bf%9c%e5%af%be%e5%bf%9c%e3%81%95%e3%81%9b%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.ecomottblog.com\/?p=13686","title":{"rendered":"\u3046\u308f\u3055\u306eOpenRecall\u3092\u65e5\u672c\u8a9e\u5bfe\u5fdc\u3055\u305b\u3066\u307f\u305f"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-13751 size-medium\" src=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/OpenRecal-300x300.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/OpenRecal-300x300.png 300w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/OpenRecal-150x150.png 150w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/OpenRecal-768x768.png 768w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/OpenRecal-214x214.png 214w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/OpenRecal-260x260.png 260w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/OpenRecal.png 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\u3053\u3093\u306b\u3061\u306f\u30c7\u30fc\u30bf\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9\u90e8\u306e\u30d5\u30d0\u30c1(Robert Hubacz)\u3067\u3059\u3002\u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001\u65e5\u672c\u8a9e\u30e6\u30fc\u30b6\u30fc\u306bOpenRecall\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u203bOpenRecall\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/gigazine.net\/news\/20240613-openrecall\/\">\u300cNPU\u4e0d\u8981\u3067\u300cReCall\u300d\u6a5f\u80fd\u3092Windows\u30fbMac\u30fbLinux\u3067\u518d\u73fe\u3059\u308b\u30c4\u30fc\u30eb\u300cOpenRecall\u300d\u304c\u767b\u5834\u300d<\/a>\u306a\u3069\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h1>\u306f\u3058\u3081\u306b<\/h1>\n<p>OpenRecall\u306f\u3001Microsoft\u306eWindows Recall\u3084Limitless\u306eRewind.ai\u306e\u3088\u3046\u306a\u6709\u6599\u30b5\u30fc\u30d3\u30b9\u306e\u7121\u6599\u3067\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u91cd\u8996\u306e\u4ee3\u66ff\u54c1\u3067\u3059\u3002\u30c7\u30b8\u30bf\u30eb\u6d3b\u52d5\u3092\u898b\u76f4\u3059\u3053\u3068\u3067\u3001\u8a18\u61b6\u3092\u52a9\u3051\u3001\u751f\u7523\u6027\u3092\u5411\u4e0a\u3055\u305b\u306a\u304c\u3089\u3001\u60c5\u5831\u3092\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306b\u4fdd\u3061\u307e\u3059\u3002<\/p>\n<p>OpenRecall\u306f\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u6d3b\u52d5\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u5b9a\u671f\u7684\u306b\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u5206\u6790\u3059\u308b\u3053\u3068\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u3084\u753b\u50cf\u3092\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u304b\u3001\u5c65\u6b74\u3092\u624b\u52d5\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u3001\u5fc5\u8981\u306a\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u7d20\u65e9\u304f\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<!--more--><br \/>\nOpenRecall\u306f\u5149\u5b66\u6587\u5b57\u8a8d\u8b58(OCR)\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u3092\u62bd\u51fa\u3057\u307e\u3059\u3002\u62bd\u51fa\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u306f\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u30c4\u30fc\u30eb\uff08NLP\uff09\u3092\u4f7f\u7528\u3057\u3066\u51e6\u7406\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u51e6\u7406\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u5165\u529b\u3057\u305f\u30ad\u30fc\u30ef\u30fc\u30c9\u3068\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u304c\u3001\u305d\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3082\u540c\u3058NLP\u30c4\u30fc\u30eb\u3067\u51e6\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u306e\u554f\u984c\u306f\u3001OpenRecall\u304cOCR\u306bDoctr\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3001NLP\u306b&#8217;all-MiniLM-L6-v2&#8217;\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u82f1\u8a9e\u3084\u30e9\u30c6\u30f3\u6587\u5b57\u5411\u3051\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>OpenRecall\u3092\u65e5\u672c\u8a9e\u306b\u9069\u5fdc\u3055\u305b\u308b\u305f\u3081\u306b\u3001Doctr\u30e9\u30a4\u30d6\u30e9\u30ea\u3092EasyOCR\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3001&#8217;all-MiniLM-L6-v2&#8217;\u30e2\u30c7\u30eb\u3092&#8217;colorfulscoop\/sbert-base-ja&#8217;\u30e2\u30c7\u30eb\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3092\u63d0\u6848\u3057\u307e\u3059\u3002EasyOCR\u306f\u3001\u65e5\u672c\u8a9e\u3092\u542b\u308080\u4ee5\u4e0a\u306e\u8a00\u8a9e\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eOCR\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002&#8217;colorfulscoop\/sbert-base-ja&#8217;\u30e2\u30c7\u30eb\u306f\u3001\u65e5\u672c\u8a9e\u306e\u81ea\u7136\u8a00\u8a9e\u63a8\u8ad6\u30c7\u30fc\u30bf\u3092\u542b\u3080Japanese SNLI\uff08JSNLI\uff09\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3055\u308c\u305f\u65e5\u672c\u8a9eBERT\u30d9\u30fc\u30b9\u30e2\u30c7\u30eb\u3067\u3059\u3002<\/p>\n<h1>Rye\u3092\u4f7f\u7528\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb (Windows)<\/h1>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u9806\u5e8f\u306f\u91cd\u8981\u3067\u3059\u3002<\/p>\n<pre><code class=\"markdown\"># \u30b9\u30c6\u30c3\u30d71\nrye init openrecall_easyocr\n\n# \u30b9\u30c6\u30c3\u30d72\ncd openrecall_easyocr\n\n# \u30b9\u30c6\u30c3\u30d73\nrye sync\n\n# \u30b9\u30c6\u30c3\u30d74\nrye add easyocr\n\n# \u30b9\u30c6\u30c3\u30d75\nrye add sentencepiece\n\n# \u30b9\u30c6\u30c3\u30d76\nrye add protobuf\n\n# \u30b9\u30c6\u30c3\u30d77\npython -m ensurepip \u2013upgrade\n\n# \u30b9\u30c6\u30c3\u30d78\nrye run python -m pip install \u2013upgrade \u2013no-cache-dir git+https:\/\/github.com\/openrecall\/openrecall.git\n\n# \u30b9\u30c6\u30c3\u30d79\nrye run python -m pip install torch torchvision torchaudio \u2013index-url https:\/\/download.pytorch.org\/whl\/cu118\n\n# \u30b9\u30c6\u30c3\u30d710\n#\u30ab\u30bf\u30ed\u30b0: `C:\\Users\\\uff5b\u30e6\u30fc\u30b6\u540d\uff5d\\openrecall_easyocr.venv\\Lib\\site-packages\\openrecall`\n#`ocr.py`\u3092\u524a\u9664\u3057\u3066\u3001`orc_easyocr.py`\u3092`ocr.py`\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n# \u30b9\u30c6\u30c3\u30d711\n#\u30ab\u30bf\u30ed\u30b0: `C:\\Users\\\uff5b\u30e6\u30fc\u30b6\u540d\uff5d\\openrecall_easyocr.venv\\Lib\\site-packages\\openrecall`\n#\u30d5\u30a1\u30a4\u30eb `npl.py`, 6\u884c\u76ee\u306e `(\"all-MiniLM-L6-v2\")` \u3092 `(\"colorfulscoop\/sbert-base-ja\")` \u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002\n\n# \u30b9\u30c6\u30c3\u30d712 (\u8d77\u52d5\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9)\nrye run python -m openrecall.app \u2013primary-monitor-only\n<\/code><\/pre>\n<p>Pytorch\u306f\u3059\u3067\u306beasyocr\u3068\u4e00\u7dd2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001OpenRecall\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3059\u308b\u306b\u306f\u30b9\u30c6\u30c3\u30d79\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001Cuda\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h3>orc_easyocr.py<\/h3>\n<pre><code class=\"python\">import easyocr\n\n# \u65e5\u672c\u8a9e\u7528\u306eEasyOCR\u30ea\u30fc\u30c0\u30fc\u3092\u521d\u671f\u5316\nreader = easyocr.Reader(['ja'])\n\n# \u753b\u50cf\u306b\u5bfe\u3057\u3066OCR\u3092\u5b9f\u884c\u3057\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u62bd\u51fa\u3059\u308b\u95a2\u6570\ndef extract_text_from_image(image):\n# \u753b\u50cf\u306b\u5bfe\u3057\u3066OCR\u3092\u5b9f\u884c\nresult = reader.readtext(image)\n\n# \u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306e\u7a7a\u306e\u6587\u5b57\u5217\u3092\u521d\u671f\u5316\ntext = \"\"\n\n# \u8a8d\u8b58\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u62bd\u51fa\u3057\u3001\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3059\u308b\nfor detection in result:\ntext += detection[1] + \" \"\n\n# \u884c\u3068\u3057\u3066\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3059\u308b\u305f\u3081\u306b\u3001\u30b9\u30da\u30fc\u30b9\u306b\u7d9a\u304f\u30b9\u30da\u30fc\u30b9\u3092\u6539\u884c\u306b\u7f6e\u304d\u63db\u3048\u308b\ntext = text.replace(\" \", \"\\n\")\n\nreturn text\n<\/code><\/pre>\n<h3>\u4f7f\u7528\u4e0a\u306e\u6ce8\u610f\u30dd\u30a4\u30f3\u30c8<\/h3>\n<p>OCR\u307e\u305f\u306fNPL\u306b\u95a2\u9023\u3059\u308b\u30b3\u30fc\u30c9\u306e\u5909\u66f4\u306f\u3001\u57fa\u672c\u7684\u306b\u84c4\u7a4d\u3055\u308c\u305f\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001screenshots\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068recall.db\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u79c1\u306e\u5834\u5408\u3001\u3053\u308c\u3089\u306fC:\\Users\\ \uff5b\u30e6\u30fc\u30b6\u540d\uff5d \\AppData\\Roaming\\openrecall\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5358\u8a9e\u306e\u691c\u51fa\u3068\u57cb\u3081\u8fbc\u307f\u306e\u9055\u3044\u306b\u3088\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<h1>\u30c6\u30b9\u30c8<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13689\" src=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/fig_test.png\" alt=\"\" width=\"1013\" height=\"643\" srcset=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/fig_test.png 1013w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/fig_test-300x190.png 300w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/fig_test-768x487.png 768w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/fig_test-304x193.png 304w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2024\/06\/fig_test-282x179.png 282w\" sizes=\"(max-width: 1013px) 100vw, 1013px\" \/><\/p>\n<p>\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u305f\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306e\u691c\u7d22\u7d50\u679c\u3002\u691c\u7d22\u3055\u308c\u305f\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306f\u8d64\u3044\u67a0\u3067\u56f2\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u30ad\u30fc\u30ef\u30fc\u30c9\u300c\u7d71\u8a08\u300d\u306e\u5834\u5408\u3001\u76ee\u7684\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u304c\u6700\u521d\u306b\u9078\u629e\u3055\u308c\u306a\u304b\u3063\u305f\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u4ed6\u306e\u30b1\u30fc\u30b9\u3067\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u9593\u9055\u3044\u3092\u72af\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u305f\u3060\u3057\u3001\u4fdd\u5b58\u3055\u308c\u305f\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306e\u6570\u304c\u5897\u3048\u308b\u3068\u3001\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u4f5c\u6210\u304c\u3088\u308a\u96e3\u3057\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u985e\u4f3c\u3057\u305f\u8a00\u8449\u304c\u7570\u306a\u308b\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306b\u8868\u793a\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>https:\/\/github.com\/openrecall\/openrecall<br \/>\nhttps:\/\/github.com\/JaidedAI\/EasyOCR<br \/>\nhttps:\/\/huggingface.co\/colorfulscoop\/sbert-base-ja<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u30c7\u30fc\u30bf\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9\u90e8\u306e\u30d5\u30d0\u30c1(Robert Hubacz)\u3067\u3059\u3002\u3053\u306e\u30d6\u30ed\u30b0\u306f\u3001\u65e5\u672c\u8a9e\u30e6\u30fc\u30b6\u30fc\u306bOpenRecall\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3067\u3059\u3002 \u203bOpenRecall\u306b\u3064\u3044\u3066\u306f\u300cNPU\u4e0d\u8981\u3067\u300cReCall\u300d\u6a5f\u80fd\u3092Wi [&hellip;]<\/p>\n","protected":false},"author":104,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[218,214,221,219,223,222,220,193],"_links":{"self":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/13686"}],"collection":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/users\/104"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13686"}],"version-history":[{"count":44,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/13686\/revisions"}],"predecessor-version":[{"id":13754,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/13686\/revisions\/13754"}],"wp:attachment":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}