{"id":50891,"date":"2024-02-02T00:00:00","date_gmt":"2024-02-02T08:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/"},"modified":"2026-03-30T12:38:53","modified_gmt":"2026-03-30T19:38:53","slug":"processing-image-data-using-gpt4-vision-node-js-and-griddb","status":"publish","type":"post","link":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/","title":{"rendered":"GPT4-Vision\u3001Node.js\u3001GridDB\u3092\u4f7f\u3063\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u51e6\u7406"},"content":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GPT-4 Vision\u3092\u4f7f\u3063\u3066\u753b\u50cf\u30c7\u30fc\u30bf\u3001\u7279\u306b\u753b\u50cf\u304b\u3089\u8868\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3057\u3001\u305d\u306e\u7d50\u679c\u3092GridDB\u306b\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u308a\u307e\u3059\u3002React.js\u3068Node.js\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u304c\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001GPT-4V\u306e\u753b\u50cf\u51e6\u7406\u306e\u7d50\u679c\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u7c21\u5358\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30bf\u30c3\u30af\u306e\u7d39\u4ecb<\/h2>\n<p>Node.js\u3001GridDB\u3001OpenAI\u306eGPT-4 Vision\u3092\u4f7f\u3044\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u306fReact.js\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>GPT-4 Vision<\/h3>\n<p>GPT-4 with Vision\uff08GPT-4V\u3068\u547c\u3070\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\uff09\u306fOpenAI\u306e\u30d7\u30ed\u30c0\u30af\u30c8\u306e\u4e00\u3064\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u30e2\u30c7\u30eb\u304c\u753b\u50cf\u3092\u53d6\u308a\u8fbc\u307f\u3001\u305d\u308c\u306b\u95a2\u3059\u308b\u8cea\u554f\u306b\u7b54\u3048\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u8a00\u8a9e\u30e2\u30c7\u30eb\u30b7\u30b9\u30c6\u30e0\u306f\u3001\u6b74\u53f2\u7684\u306b\u30c6\u30ad\u30b9\u30c8\u3068\u3044\u3046\u5358\u4e00\u306e\u5165\u529b\u30e2\u30c0\u30ea\u30c6\u30a3\u3092\u53d6\u308a\u8fbc\u3080\u3053\u3068\u306b\u3088\u3063\u3066\u5236\u9650\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002\u591a\u304f\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306b\u304a\u3044\u3066\u3001\u3053\u308c\u306fGPT-4\u306e\u3088\u3046\u306a\u30e2\u30c7\u30eb\u304c\u4f7f\u7528\u3067\u304d\u308b\u9818\u57df\u3092\u5236\u9650\u3057\u3066\u3044\u307e\u3057\u305f\u3002GPT-4V\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u516c\u5f0f\u306e<a href=\"https:\/\/platform.openai.com\/docs\/guides\/vision\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>GridDB<\/h3>\n<p>GridDB\u306f\u3001IoT\u3084\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5411\u3051\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30a4\u30f3\u30e1\u30e2\u30eaNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u9ad8\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u3068\u4f4e\u30ec\u30a4\u30c6\u30f3\u30b7\u30fc\u3067\u51e6\u7406\u3067\u304d\u308b\u62e1\u5f35\u6027\u306e\u9ad8\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002\u307e\u305f\u3001GridDB\u306fACID\u306b\u6e96\u62e0\u3057\u3066\u304a\u308a\u3001SQL\u30e9\u30a4\u30af\u306a\u30af\u30a8\u30ea\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002GridDB\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/griddb.net\/\">GridDB\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>Node.js<\/h3>\n<p>Node.js\u306f\u3001\u958b\u767a\u8005\u304c\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0JavaScript\u5b9f\u884c\u74b0\u5883\u3067\u3059\u3002Google\u306eV8 JavaScript\u30a8\u30f3\u30b8\u30f3\u4e0a\u306b\u69cb\u7bc9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u8efd\u91cf\u3067\u52b9\u7387\u7684\u306a\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u3001\u30ce\u30f3\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0I\/O\u30e2\u30c7\u30eb\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002Node.js\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/nodejs.org\/en\/\">Node.js\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>React.js<\/h3>\n<p>React.js\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002React.js\u306f\u3001Facebook\u3068\u500b\u4eba\u958b\u767a\u8005\u3084\u4f01\u696d\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306b\u3088\u3063\u3066\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u3002React.js\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u958b\u767a\u8005\u306f\u7570\u306a\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u9593\u3067\u4f7f\u7528\u3067\u304d\u308b\u518d\u5229\u7528\u53ef\u80fd\u306aUI\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002React.js\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/reactjs.org\/\">React.js\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306fUbuntu 20.04.2 LTS WSL 2\u3067\u30c6\u30b9\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001OpenAI API \u30ad\u30fc\u3001GridDB\u3001Node.js\u3001React.js \u304c\u5fc5\u8981\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>Install Node.js<\/h3>\n<p>Ubuntu \u3067 Node.js v20 LTS \u3092\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001 <code>deb<\/code> \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e<a href=\"https:\/\/github.com\/nodesource\/distributions?tab=readme-ov-file#ubuntu-versions\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u8aad\u3093\u3067\u3001\u305d\u308c\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u5f8c\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u3001Node.js\u304c\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u30c6\u30b9\u30c8\u3057\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code>node -v<\/code><\/pre>\n<\/div>\n<h3>Install GridDB<\/h3>\n<p>WSL\u4e0a\u306eUbuntu\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306eGridDB\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u3001<a href=\"https:\/\/docs.griddb.net\/installation\/misc.html\">\u3053\u3061\u3089<\/a>\u306b\u3042\u308a\u307e\u3059\u3002GridDB\u304c\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code>sudo systemctl status gridstore<\/code><\/pre>\n<\/div>\n<p>GridDB\u304c\u8d77\u52d5\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8d77\u52d5\u3067\u304d\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code>sudo systemctl start gridstore<\/code><\/pre>\n<\/div>\n<h3>OpenAI \u30a2\u30ab\u30a6\u30f3\u30c8\u3068 API \u30ad\u30fc<\/h3>\n<p>OpenAI\u306eAPI\u30ad\u30fc\u306f\u3001<a href=\"https:\/\/platform.openai.com\/api-keys\/\">OpenAI<\/a>\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u3067\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002API\u30ad\u30fc\u3092\u5b89\u5168\u306b\u4fdd\u3064\u305f\u3081\u306b\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b <code>.env<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff08\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u5f8c\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\uff09\u3002<\/p>\n<h2>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5b9f\u884c<\/h2>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u958b\u59cb\u3059\u308b\u306b\u306f\u3001\u3053\u306e<a href=\"https:\/\/github.com\/griddbnet\/Blogs\/tree\/image-processing\">\u30ea\u30dd\u30b8\u30c8\u30ea<\/a>\u3092\u30af\u30ed\u30fc\u30f3\u3057\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code>git clone https:\/\/github.com\/griddbnet\/Blogs.git -- branch image-processing<\/code><\/pre>\n<\/div>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8\u306e <code>server<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5909\u66f4\u3057\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">cd extract-image-table-gpt4-vision\/server\nnpm install<\/code><\/pre>\n<\/div>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b <code>.env<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001OpenAI API \u30ad\u30fc\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002.env` \u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code>OPENAI_API_KEY=[your-api-key]<\/code><\/pre>\n<\/div>\n<p>\u307e\u305f\u3001<code>.env<\/code> \u3092 <code>.gitignore<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30d7\u30c3\u30b7\u30e5\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code>npm start<\/code><\/pre>\n<\/div>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8URL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\uff1a http:\/\/localhost:5115`\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u8868\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u542b\u3080\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/02\/app-screenshot.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/02\/app-screenshot.png\" alt=\"\" width=\"1077\" height=\"777\" class=\"aligncenter size-full wp-image-29931\" srcset=\"\/wp-content\/uploads\/2024\/02\/app-screenshot.png 1077w, \/wp-content\/uploads\/2024\/02\/app-screenshot-300x216.png 300w, \/wp-content\/uploads\/2024\/02\/app-screenshot-1024x739.png 1024w, \/wp-content\/uploads\/2024\/02\/app-screenshot-768x554.png 768w, \/wp-content\/uploads\/2024\/02\/app-screenshot-600x433.png 600w\" sizes=\"(max-width: 1077px) 100vw, 1077px\" \/><\/a><\/p>\n<p>GPT-4 Vision\u306f\u753b\u50cf\u3092\u51e6\u7406\u3057\u3066\u8868\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u3001\u305d\u306e\u8868\u30c7\u30fc\u30bf\u3092Web\u30da\u30fc\u30b8\u306b\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>\n  \u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5236\u9650\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306e<a href=\"#limitations\">\u6ce8<\/a>\u3092\u304a\u8aad\u307f\u304f\u3060\u3055\u3044\u3002\n<\/p><\/blockquote>\n<h2>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3<\/h2>\n<p>\u3053\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u56f3\u306f\u3001GPT-4 Vision\u3001Node.js\u3001GridDB\u3092\u7d44\u307f\u8fbc\u3093\u3060\u30c7\u30fc\u30bf\u51e6\u7406\u3068\u53ef\u8996\u5316\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u6982\u8981\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u5185\u8a33\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<ul>\n<li>\u30e6\u30fc\u30b6\u306f\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001<strong>Node.js<\/strong>\u306f\u753b\u50cf\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306bGPT-4 Vision API\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002Node.js\u306f\u4e2d\u9593\u5c64\u3067\u3001<strong>GPT-4 Vision<\/strong>\u30e2\u30c7\u30eb\u304b\u3089\u9001\u53d7\u4fe1\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>Node.js\u306f\u307e\u305f\u3001<strong>GridDB<\/strong>\u3068\u901a\u4fe1\u3057\u307e\u3059\u3002GridDB\u306f\u3001\u51e6\u7406\u3055\u308c\u305f\u8868\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u6c38\u7d9a\u7684\u306b\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\u56f3\u306e\u4e0b\u90e8\u306b\u3042\u308b\u30c7\u30fc\u30bf\u8868\u793a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001<strong>React.js<\/strong>\u3092\u4f7f\u3063\u3066\u69cb\u7bc9\u3055\u308c\u305f\u30a6\u30a7\u30d6\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3067\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u624b\u5143\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u304b\u3064\u5f37\u529b\u306b\u8a2d\u8a08\u3055\u308c\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001GPT-4 Vision\u30e2\u30c7\u30eb\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3067\u5f37\u5316\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u6a5f\u80fd\u3092\u307e\u3063\u305f\u304f\u65b0\u3057\u3044\u30ec\u30d9\u30eb\u306b\u5f15\u304d\u4e0a\u3052\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/02\/project-data-gpt4.png\"><img decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/02\/project-data-gpt4.png\" alt=\"\" width=\"1542\" height=\"910\" class=\"aligncenter size-full wp-image-29934\" srcset=\"\/wp-content\/uploads\/2024\/02\/project-data-gpt4.png 1542w, \/wp-content\/uploads\/2024\/02\/project-data-gpt4-300x177.png 300w, \/wp-content\/uploads\/2024\/02\/project-data-gpt4-1024x604.png 1024w, \/wp-content\/uploads\/2024\/02\/project-data-gpt4-768x453.png 768w, \/wp-content\/uploads\/2024\/02\/project-data-gpt4-1536x906.png 1536w, \/wp-content\/uploads\/2024\/02\/project-data-gpt4-600x354.png 600w\" sizes=\"(max-width: 1542px) 100vw, 1542px\" \/><\/a><\/p>\n<h1>GPT4-Vision\u3092\u7406\u89e3\u3057\u307e\u3059<\/h1>\n<p>GPT4-Vision\u30e2\u30c7\u30eb\u306f\u3001\u753b\u50cf\u306b\u4f55\u304c\u5199\u3063\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u4e00\u822c\u7684\u306a\u8cea\u554f\u306b\u7b54\u3048\u308b\u306e\u304c\u5f97\u610f\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u753b\u50cf\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\u306b\u3001\u7c21\u5358\u306a\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code>\"What's in this image?\"<\/code><\/pre>\n<\/div>\n<p>\u305d\u3057\u3066\u3001GPT4-Vision API\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u304b\u3089\u753b\u50cf\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u3057\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">import OpenAI from \"openai\";\n\nconst openai = new OpenAI();\n\nasync function getImageDescription() {\n  const response = await openai.chat.completions.create({\n    model: \"gpt-4-vision-preview\",\n    messages: [\n      {\n        role: \"user\",\n        content: [\n          { type: \"text\", text: \"What's in this image?\" },\n          {\n            type: \"image_url\",\n            image_url: {\n              \"url\": \"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/d\/dd\/Gfp-wisconsin-madison-the-nature-boardwalk.jpg\/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\",\n            },\n          },\n        ],\n      },\n    ],\n  });\n  console.log(response.choices[0]);\n}<\/code><\/pre>\n<\/div>\n<p>GPT4 Vision\u30e2\u30c7\u30eb\u306f\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u57fa\u3065\u3044\u3066\u753b\u50cf\u3092\u51e6\u7406\u3057\u3001\u3055\u3089\u306a\u308b\u51e6\u7406\u306e\u305f\u3081\u306b\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>\u79c1\u305f\u3061\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u753b\u50cf\u304b\u3089\u8868\u30c7\u30fc\u30bf\u306e\u307f\u3092\u8a8d\u8b58\u3059\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8a2d\u8a08\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u3053\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u4f7f\u3063\u3066\u3001\u753b\u50cf\u304b\u3089\u8868\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code>Recreate the table in the image.<\/code><\/pre>\n<\/div>\n<p>\u305d\u3057\u3066\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u4f7f\u3063\u3066\u753b\u50cf\u304b\u3089\u8868\u30c7\u30fc\u30bf\u3060\u3051\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">messages: [\n      {\n        role: \"user\",\n        content: [\n            { type: \"text\", text: \"Recreate table in the image.\" },\n            { type: \"image_url\", \n              image_url: {\n                \"url\": sampleImageAddress,\n              },\n            },\n        ],\n    },\n],<\/code><\/pre>\n<\/div>\n<p>OpenAI\u306eGPT4 Vision\u3092\u4f7f\u7528\u3059\u308b\u5229\u70b9\u306f\u3001\u753b\u50cf\u304b\u3089\u8868\u30c7\u30fc\u30bf\u3092\u8a8d\u8b58\u3059\u308b\u305f\u3081\u306b\u30e2\u30c7\u30eb\u3092\u8a13\u7df4\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u79c1\u305f\u3061\u306f\u753b\u50cf\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8a2d\u8a08\u3059\u308b\u3060\u3051\u3067\u3088\u304f\u3001\u3053\u306e\u30e2\u30c7\u30eb\u306fGPT4\u306e\u3088\u3046\u306a\u4ed6\u306eOpenAI\u306e\u30e2\u30c7\u30eb\u3068\u3046\u307e\u304f\u7d71\u5408\u3055\u308c\u3066\u304a\u308a\u3001\u7d50\u679c\u3092\u3055\u3089\u306b\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>GPT4-Vision\u3068Node.js\u306e\u7d71\u5408<\/h2>\n<p>Node.js \u3068 Express.js \u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3057\u3001\u753b\u50cf\u304c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u5f8c\u306b GPT4-Vision API \u3092\u547c\u3073\u51fa\u3059\u753b\u50cf\u51e6\u7406\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001<code>process-image<\/code>\u30eb\u30fc\u30c8\u306f\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u753b\u50cf\u3092\u53d7\u3051\u53d6\u308a\u3001OpenAI API\u3092\u4f7f\u3063\u3066\u753b\u50cf\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b<code>processImageRequest<\/code>\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">app.post('\/process-image', upload.single('image'), async (req, res) => {\n    try {\n        const result = await processImageRequest(req.file.path);\n        \/\/ save the result into the database\n        res.json(result);\n    } catch (error) {\n        res.status(500).send('Error processing image request');\n    }\n});<\/code><\/pre>\n<\/div>\n<p>The <code>processImageRequest<\/code> function is essentially a GPT4 Vision API wrapper function. The code will call the API and then process the image based on the designed prompt earlier:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">async function processImageRequest(filePath) {\n    const imageBuffer = await fs.readFile(filePath);\n    const base64Image = imageBuffer.toString('base64');\n    const encodedImage = `data:image\/jpeg;base64,{${base64Image}}`;\n\n    const response = await openai.chat.completions.create({\n        model: \"gpt-4-vision-preview\",\n        messages: [\n            {\n                role: \"user\",\n                content: [\n                    { type: \"text\", text: tablePrompt },\n                    { type: \"image_url\", image_url: { \"url\": encodedImage } },\n                ],\n            },\n        ],\n        max_tokens: 1024,\n    });\n    return response;\n}<\/code><\/pre>\n<\/div>\n<p>\u30b3\u30fc\u30c9\u3067\u306f\u3001GPT4 Vision API\u306e\u753b\u50cf\u5165\u529b\u306b\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u305f<code>base64<\/code>\u5f62\u5f0f\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u753b\u50cf\u306e\u516c\u958bURL\u3092\u4f5c\u6210\u3059\u308b\u3088\u308a\u3082\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30ed\u30fc\u30ab\u30eb\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u753b\u50cf\u3092\u53c2\u7167\u3059\u308b\u65b9\u304c\u7c21\u5358\u3060\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3088\u308a\u826f\u3044\u7d50\u679c\u3092\u5f97\u308b\u305f\u3081\u306b\u3001<code>processImageRequest<\/code>\u95a2\u6570\u304b\u3089\u306e\u7d50\u679c\u3092GPT4\u3068\u547c\u3070\u308c\u308b\u3088\u308a\u4e00\u822c\u7684\u306aOpenAI\u30e2\u30c7\u30eb\u306b\u9001\u308a\u8fbc\u307f\u3001\u8868\u30c7\u30fc\u30bf\u306e\u307f\u3092\u62bd\u51fa\u3057\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">const cleanupPrompt = `I need you to extract the table data from this message and provide the answer in markdown format. Answer only the markdown table data, nothing else. Do not use code blocks. nn`;\n\nasync function cleanupData(data) {\n    const response = await openai.chat.completions.create({\n        model: \"gpt-4-1106-preview\",\n        messages: [\n            {\n                \"role\": \"system\",\n                \"content\": \"you are a smart table data extractor\"\n            },\n            {\n                \"role\": \"user\",\n                \"content\": `${cleanupPrompt} nn${data}`\n            }\n        ],\n        temperature: 1,\n        max_tokens: 2000,\n        top_p: 1,\n        frequency_penalty: 0,\n        presence_penalty: 0,\n    });\n\n    return response;\n}<\/code><\/pre>\n<\/div>\n<p>\u57fa\u672c\u7684\u306b\u3001<code>cleanupData<\/code>\u95a2\u6570\u306f <code>processImageRequest<\/code> \u95a2\u6570\u306e\u7d50\u679c\u3092\u7279\u5b9a\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u52a9\u3051\u3092\u501f\u308a\u3066\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001Web\u30da\u30fc\u30b8\u306b\u8868\u793a\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u306e\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30fb\u30c6\u30fc\u30d6\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u51e6\u7406\u3057\u305f\u30c7\u30fc\u30bf\u306eGridDB\u3078\u306e\u683c\u7d0d<\/h2>\n<p>\u753b\u50cf\u51e6\u7406\u3068\u30c7\u30fc\u30bf\u306e\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u7d50\u679c\u3092GridDB\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002GridDB\u306e <code>put<\/code> \u64cd\u4f5c\u306e\u30e9\u30c3\u30d1\u30fc\u95a2\u6570\u3067\u3042\u308b <code>saveData<\/code> \u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f <code>server\/griddbservices.js<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308a\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">export async function saveData({ tableData }) {\n    const id = generateRandomID();\n    const data = String(tableData);\n    const packetInfo = [parseInt(id), data];\n    const saveStatus = await GridDB.insert(packetInfo, collectionDb);\n    return saveStatus;\n}<\/code><\/pre>\n<\/div>\n<p>GridDB\u30b3\u30f3\u30c6\u30ca\u306b\u306f2\u3064\u306e\u30ab\u30e9\u30e0\u3057\u304b\u3042\u308a\u307e\u305b\u3093\uff1a id<code>\u3068<\/code>data<code>\u3067\u3059\u3002id<\/code> \u30ab\u30e9\u30e0\u306f\u30c7\u30fc\u30bf\u3092\u8b58\u5225\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001<code>data<\/code> \u30ab\u30e9\u30e0\u306f GPT4 \u306e\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30c6\u30fc\u30d6\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u30b3\u30fc\u30c9\u306f <code>server\/libs\/griddb.cjs<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">function initContainer() {\n    const conInfo = new griddb.ContainerInfo({\n        name: containerName,\n        columnInfoList: [\n            ['id', griddb.Type.INTEGER],\n            ['data', griddb.Type.STRING],\n        ],\n        type: griddb.ContainerType.COLLECTION,\n        rowKey: true,\n    });\n\n    return conInfo;\n}<\/code><\/pre>\n<\/div>\n<p>saveData<code>\u95a2\u6570\u306f<\/code>process-image`\u30eb\u30fc\u30c8\u3067\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30eb\u30fc\u30c8\u5185\u306e\u30b3\u30fc\u30c9\u306fGPT4\u304b\u3089\u306e\u7d50\u679c\u304c\u7d42\u4e86\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002\u7d50\u679c\u304c\u7d42\u4e86\u3057\u3066\u3044\u308c\u3070\u3001\u7d50\u679c\u3092\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3057\u3066\u304b\u3089GridDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3057\u307e\u3059\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">app.post('\/process-image', upload.single('image'), async (req, res) => {\n    log.info('Processing image request')\n    try {\n        const result = await processImageRequest(req.file.path);\n        log.info(`Result: ${JSON.stringify(result)}`);\n\n        if (result.choices[0].finish_reason === 'stop') {\n            const cleanedData = await cleanupData(result.choices[0].message.content);\n            const saveStatus = await saveData({ tableData: JSON.stringify(cleanedData) });\n\n            if (saveStatus.status === 0) {\n                log.error(`Save data to GridDB: ERROR`);\n            } else {\n                log.info(`Save data to GridDB: OK`);\n            }\n            res.json({ result: cleanedData, status: true });\n        } else {\n            res.json({ result, status: false });\n        }\n    } catch (error) {\n        log.error(error);\n        res.status(500).send('Error processing image request');\n    }\n});<\/code><\/pre>\n<\/div>\n<p>\u7d50\u679c\u306f\u76f4\u63a5\u30a6\u30a7\u30d6\u30fb\u30da\u30fc\u30b8\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002GridDB\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u306a\u3044\u7406\u7531\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u4fdd\u3064\u305f\u3081\u3067\u3059\u3002process-image<code>\u30eb\u30fc\u30c8\u306e\u30b3\u30fc\u30c9\u306f<\/code>server\/server.js` \u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001GridDB\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u306f\u3001<code>get-all-data<\/code> \u30eb\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30eb\u30fc\u30c8\u306fGridDB\u304b\u3089\u5168\u3066\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">app.get('\/get-all-data', async (req, res) => {\n    log.info('Getting all data from GridDB');\n    try {\n        const result = await getAllData();\n        res.json(result);\n    } catch (error) {\n        res.status(500).send('Error getting all data');\n    }\n});<\/code><\/pre>\n<\/div>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u30eb\u30fc\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u306fGridDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u5fdc\u7b54\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/02\/get-all-data.png\"><img decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/02\/get-all-data.png\" alt=\"\" width=\"904\" height=\"578\" class=\"aligncenter size-full wp-image-29933\" srcset=\"\/wp-content\/uploads\/2024\/02\/get-all-data.png 904w, \/wp-content\/uploads\/2024\/02\/get-all-data-300x192.png 300w, \/wp-content\/uploads\/2024\/02\/get-all-data-768x491.png 768w, \/wp-content\/uploads\/2024\/02\/get-all-data-600x384.png 600w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/a><\/p>\n<h2>\u30a8\u30f3\u30c9\u30c4\u30fc\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9<\/h2>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3084\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f <code>client<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306fReact.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<h3>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e1\u30a4\u30f3\u30a8\u30f3\u30c8\u30ea<\/h3>\n<p>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u958b\u767a\u3092\u5bb9\u6613\u306b\u3059\u308b\u305f\u3081\u3001React\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/02\/upload-ui.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/02\/upload-ui.png\" alt=\"\" width=\"1129\" height=\"742\" class=\"aligncenter size-full wp-image-29935\" srcset=\"\/wp-content\/uploads\/2024\/02\/upload-ui.png 1129w, \/wp-content\/uploads\/2024\/02\/upload-ui-300x197.png 300w, \/wp-content\/uploads\/2024\/02\/upload-ui-1024x673.png 1024w, \/wp-content\/uploads\/2024\/02\/upload-ui-768x505.png 768w, \/wp-content\/uploads\/2024\/02\/upload-ui-600x394.png 600w\" sizes=\"(max-width: 1129px) 100vw, 1129px\" \/><\/a><\/p>\n<p>\u3053\u308c\u304c\u30a2\u30d7\u30ea\u306e\u30e1\u30a4\u30f3\u30fb\u30a8\u30f3\u30c8\u30ea\u30fc\u30fb\u30b3\u30fc\u30c9\u3060\uff1a<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">import React, { useState } from 'react';\nimport ImageUploader from '.\/ImageUploader';\nimport ReactMarkdown from 'react-markdown';\nimport remarkGfm from 'remark-gfm';\nimport rehypeRaw from 'rehype-raw';\n\nconst App = () => {\n    const [markdown, setMarkdown] = useState('');\n\n    const handleMarkdownFetch = (markdownData) => {\n        setMarkdown(markdownData.result.choices[0].message.content);\n    };\n\n    return (\n    <div className=\"flex flex-col items-center justify-center min-h-screen space-y-4 bg-white\">\n        <h1 className=\"text-3xl\">Extract Table From Image Using GPT4<\/h1>\n        <div className=\"w-full max-w-4xl mx-auto py-12\">\n            <imageuploader onMarkdownFetch={handleMarkdownFetch}><\/imageuploader>\n            <div className=\"flex items-center justify-center overflow-x-auto w-full py-12\">\n                <reactmarkdown className=\"markdown\" remarkPlugins={[remarkGfm]} rehypePlugins={[rehypeRaw]}>{markdown}<\/reactmarkdown>\n            <\/div>\n        <\/div>\n    <\/div>\n);\n\nexport default App;<\/code><\/pre>\n<\/div>\n<p>\u30e1\u30a4\u30f3\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a8\u30f3\u30c8\u30ea\u306f2\u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304b\u3089\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\uff1a &lt;<imageuploader><code>\u3068<\/code><reactmarkdown><code>\u3067\u3059\u3002<<ImageUploader><\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u753b\u50cf\u3092\u30b5\u30fc\u30d0\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u5f79\u5272\u3092\u62c5\u3044\u3001<code>onMarkdownFetch<\/code>\u30d7\u30ed\u30c3\u30d7\u306b\u30a2\u30bf\u30c3\u30c1\u3055\u308c\u305f\u95a2\u6570\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u308c\u308b\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<\/reactmarkdown><\/imageuploader><\/p>\n<h3>\u753b\u50cf\u30a2\u30c3\u30d7\u30ed\u30fc\u30c0<\/h3>\n<p>&lt;<imageuploader><code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30b3\u30fc\u30c9\u306f<\/code>client\/src\/ImageUploader.jsx<code>\u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308a\u307e\u3059\u3002\u753b\u50cf\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u30cf\u30f3\u30c9\u30e9\u306f<\/code>handleUpload<code>\u95a2\u6570\u306b\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u753b\u50cf\u3092\u30b5\u30fc\u30d0\u306e<\/code>\/process-image<code>\u30eb\u30fc\u30c8\u306b\u30dd\u30b9\u30c8\u3057\u3001\u30b5\u30fc\u30d0\u304b\u3089\u306e\u7d50\u679c\u306f<\/code>onMarkdownFetch` \u30d7\u30ed\u30c3\u30d7\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u308c\u307e\u3059\u3002<\/imageuploader><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">const handleUpload = async () => {\n        if (selectedFile && !uploading) { \n            setUploading(true); \n\n            const formData = new FormData();\n            formData.append('image', selectedFile);\n\n            try {\n                const response = await fetch('\/process-image', {\n                    method: 'POST',\n                    body: formData,\n                });\n                if (!response.ok) {\n                    throw new Error('Network response was not ok');\n                }\n                const markdownData = await response.json();\n                props.onMarkdownFetch(markdownData);\n            } catch (error) {\n                console.error('Error posting image:', error);\n            } finally {\n                setUploading(false);\n            }\n        } else {\n            alert('Please select an image first.');\n        }\n    };<\/code><\/pre>\n<\/div>\n<h3>\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30fb\u30ec\u30f3\u30c0\u30e9\u30fc<\/h3>\n<p>\u5e78\u904b\u306a\u3053\u3068\u306b\u3001\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u306b\u3059\u3050\u306b\u4f7f\u3048\u308bReact\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304cnpm\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3042\u308a\u307e\u3059\u3002react-markdown]<a href=\"https:\/\/github.com\/remarkjs\/react-markdown\">14<\/a>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u4f7f\u3044\u3084\u3059\u304f\u3001\u3069\u3093\u306aReact\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3082\u7d71\u5408\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">import ReactMarkdown from 'react-markdown';\nimport remarkGfm from 'remark-gfm';\nimport rehypeRaw from 'rehype-raw';\n\n...\n<reactmarkdown className=\"markdown\" remarkPlugins={[remarkGfm]} rehypePlugins={[rehypeRaw]}>{markdown}<\/reactmarkdown>\n...<\/code><\/pre>\n<\/div>\n<p>\u307e\u305f\u3001<code>remark-gfm<\/code> \u3068 <code>rehype-raw<\/code> \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002remark-gfm<code>\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001<\/code>rehype-raw`\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u751f\u306eHTML\u8981\u7d20\u3068\u3057\u3066\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u5236\u9650\u4e8b\u9805<\/h2>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3001GPT4 Vision\u3092\u4f7f\u3063\u3066\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3057\u3001\u305d\u306e\u7d50\u679c\u3092GridDB\u306b\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u306e\u7c21\u5358\u306a\u30c7\u30e2\u30f3\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u6539\u5584\u3059\u308b\u65b9\u6cd5\u306f\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u306e\u3068\u3053\u308d\u3001\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3001\u8868\u3060\u3051\u3092\u542b\u3080\u30af\u30ea\u30a2\u3067\u30af\u30ea\u30fc\u30f3\u306a\u753b\u50cf\u306b\u306e\u307f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002GPT4 Vision \u30e2\u30c7\u30eb\u306e\u73fe\u72b6\uff08\u307e\u3060\u30d7\u30ec\u30d3\u30e5\u30fc\u4e2d\uff09\u3067\u306f\u3001\u8868\u30c7\u30fc\u30bf\u306b\u4ed6\u306e\u30c6\u30ad\u30b9\u30c8\u3084\u753b\u50cf\u304c\u6df7\u5728\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u30ce\u30a4\u30ba\u306e\u591a\u3044\u753b\u50cf\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u6539\u5584\u3059\u308b\u6700\u5584\u306e\u65b9\u6cd5\u306f\u3001\u8868\u30c7\u30fc\u30bf\u3092\u542b\u3080\u753b\u50cf\u3092\u30c8\u30ea\u30df\u30f3\u30b0\u3057\u3001GPT4 Vision\u3092\u4f7f\u3063\u3066\u51e6\u7406\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u6587\u732e<\/h2>\n<ul>\n<li><a href=\"https:\/\/platform.openai.com\/docs\/guides\/vision\">GPT4 Vision guide<\/a>.<\/li>\n<li><a href=\"https:\/\/platform.openai.com\/docs\/api-reference\/chat\">GPT4 Vision API documentation<\/a>.<\/li>\n<li><a href=\"https:\/\/docs.griddb.net\/\">GridDB documentation<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GPT-4 Vision\u3092\u4f7f\u3063\u3066\u753b\u50cf\u30c7\u30fc\u30bf\u3001\u7279\u306b\u753b\u50cf\u304b\u3089\u8868\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3057\u3001\u305d\u306e\u7d50\u679c\u3092GridDB\u306b\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3092\u63a2\u308a\u307e\u3059\u3002React.js\u3068Node.js\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u304c\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001G [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":49635,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50891","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GPT4-Vision\u3001Node.js\u3001GridDB\u3092\u4f7f\u3063\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u51e6\u7406 | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GPT-4\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GPT4-Vision\u3001Node.js\u3001GridDB\u3092\u4f7f\u3063\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u51e6\u7406 | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GPT-4\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-02T08:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-30T19:38:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb.net\/wp-content\/uploads\/2024\/02\/blog-gpt4-cover.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2000\" \/>\n\t<meta property=\"og:image:height\" content=\"1120\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"griddb-admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"griddb-admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/\"},\"author\":{\"name\":\"griddb-admin\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\"},\"headline\":\"GPT4-Vision\u3001Node.js\u3001GridDB\u3092\u4f7f\u3063\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u51e6\u7406\",\"datePublished\":\"2024-02-02T08:00:00+00:00\",\"dateModified\":\"2026-03-30T19:38:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/\"},\"wordCount\":246,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2024\/02\/blog-gpt4-cover.jpg\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/\",\"name\":\"GPT4-Vision\u3001Node.js\u3001GridDB\u3092\u4f7f\u3063\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u51e6\u7406 | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2024\/02\/blog-gpt4-cover.jpg\",\"datePublished\":\"2024-02-02T08:00:00+00:00\",\"dateModified\":\"2026-03-30T19:38:53+00:00\",\"description\":\"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GPT-4\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2024\/02\/blog-gpt4-cover.jpg\",\"contentUrl\":\"\/wp-content\/uploads\/2024\/02\/blog-gpt4-cover.jpg\",\"width\":2000,\"height\":1120},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb.net\/en\/#website\",\"url\":\"https:\/\/griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\",\"name\":\"griddb-admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"caption\":\"griddb-admin\"},\"url\":\"https:\/\/griddb.net\/ja\/author\/griddb-admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GPT4-Vision\u3001Node.js\u3001GridDB\u3092\u4f7f\u3063\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u51e6\u7406 | GridDB: Open Source Time Series Database for IoT","description":"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GPT-4","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/","og_locale":"ja_JP","og_type":"article","og_title":"GPT4-Vision\u3001Node.js\u3001GridDB\u3092\u4f7f\u3063\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u51e6\u7406 | GridDB: Open Source Time Series Database for IoT","og_description":"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GPT-4","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2024-02-02T08:00:00+00:00","article_modified_time":"2026-03-30T19:38:53+00:00","og_image":[{"width":2000,"height":1120,"url":"https:\/\/griddb.net\/wp-content\/uploads\/2024\/02\/blog-gpt4-cover.jpg","type":"image\/jpeg"}],"author":"griddb-admin","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"griddb-admin","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/"},"author":{"name":"griddb-admin","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233"},"headline":"GPT4-Vision\u3001Node.js\u3001GridDB\u3092\u4f7f\u3063\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u51e6\u7406","datePublished":"2024-02-02T08:00:00+00:00","dateModified":"2026-03-30T19:38:53+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/"},"wordCount":246,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/02\/blog-gpt4-cover.jpg","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/","name":"GPT4-Vision\u3001Node.js\u3001GridDB\u3092\u4f7f\u3063\u305f\u753b\u50cf\u30c7\u30fc\u30bf\u306e\u51e6\u7406 | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/02\/blog-gpt4-cover.jpg","datePublished":"2024-02-02T08:00:00+00:00","dateModified":"2026-03-30T19:38:53+00:00","description":"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GPT-4","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/processing-image-data-using-gpt4-vision-node-js-and-griddb\/#primaryimage","url":"\/wp-content\/uploads\/2024\/02\/blog-gpt4-cover.jpg","contentUrl":"\/wp-content\/uploads\/2024\/02\/blog-gpt4-cover.jpg","width":2000,"height":1120},{"@type":"WebSite","@id":"https:\/\/griddb.net\/en\/#website","url":"https:\/\/griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233","name":"griddb-admin","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","caption":"griddb-admin"},"url":"https:\/\/griddb.net\/ja\/author\/griddb-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/comments?post=50891"}],"version-history":[{"count":3,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50891\/revisions"}],"predecessor-version":[{"id":55123,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50891\/revisions\/55123"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media\/49635"}],"wp:attachment":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media?parent=50891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/categories?post=50891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/tags?post=50891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}