{"id":14785,"date":"2023-03-10T22:00:51","date_gmt":"2023-03-10T14:00:51","guid":{"rendered":"http:\/\/139.9.1.231\/?p=14785"},"modified":"2023-03-10T22:46:08","modified_gmt":"2023-03-10T14:46:08","slug":"windowsvscodeopencv","status":"publish","type":"post","link":"http:\/\/139.9.1.231\/index.php\/2023\/03\/10\/windowsvscodeopencv\/","title":{"rendered":"Windows\u4e0b\u4f7f\u7528VSCode\u914d\u7f6eOpenCV\u5f00\u53d1\u73af\u5883"},"content":{"rendered":"\n<p>Windows\u4e0b\u4f7f\u7528VSCode\u914d\u7f6eOpenCV\u5f00\u53d1\u73af\u5883<\/p>\n\n\n\n<p>\u901a\u8fc7\u4f7f\u7528 GitHub \u4e0a\u4ed6\u4eba\u7f16\u8bd1\u597d\u7684\u52a8\u6001\u5e93\uff0c\u8fdb\u884c OpenCV \u73af\u5883\u7684\u914d\u7f6e\u3002<\/p>\n\n\n\n<p>\u672c\u535a\u5ba2\u5bf9\u5e94 Bilibili \u5b9e\u64cd\u89c6\u9891\uff1a<a href=\"https:\/\/www.bilibili.com\/video\/BV1BP4y1S7NX\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.bilibili.com\/video\/BV1BP4y1S7NX\/<\/a>\u76ee\u5f55<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#mingw-%E5%AE%89%E8%A3%85\">MinGW \u5b89\u88c5<\/a><ul><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#%E9%80%89%E6%8B%A9-posix\">\u9009\u62e9 POSIX<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#%E4%BF%9D%E7%95%99%E4%B8%A4%E4%B8%AA-mingw\">\u4fdd\u7559\u4e24\u4e2a MinGW<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#%E6%A3%80%E9%AA%8C%E6%98%AF%E5%90%A6%E6%88%90%E5%8A%9F\">\u68c0\u9a8c\u662f\u5426\u6210\u529f<\/a><\/li><\/ul><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#ccpp-%E6%96%87%E4%BB%B6%E7%9A%84%E7%BC%96%E8%AF%91%E4%B8%8E%E9%93%BE%E6%8E%A5\">C\/CPP \u6587\u4ef6\u7684\u7f16\u8bd1\u4e0e\u94fe\u63a5<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#opencv-%E6%96%87%E4%BB%B6%E5%A4%B9%E7%BB%93%E6%9E%84\">OpenCV \u6587\u4ef6\u5939\u7ed3\u6784<\/a><ul><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#%E7%89%88%E6%9C%AC%E9%80%89%E6%8B%A9\">\u7248\u672c\u9009\u62e9<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#%E6%96%87%E4%BB%B6%E7%BB%93%E6%9E%84\">\u6587\u4ef6\u7ed3\u6784<\/a><\/li><\/ul><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#%E5%B0%86%E5%8A%A8%E6%80%81%E9%93%BE%E6%8E%A5%E5%BA%93%E6%B7%BB%E5%8A%A0%E5%88%B0%E7%B3%BB%E7%BB%9F%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F\">\u5c06\u52a8\u6001\u94fe\u63a5\u5e93\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#g-%E5%91%BD%E4%BB%A4%E7%9A%84%E5%8F%82%E6%95%B0\">g++ \u547d\u4ee4\u7684\u53c2\u6570<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#vs-code-%E9%A1%B9%E7%9B%AE%E9%85%8D%E7%BD%AE\">VS Code \u9879\u76ee\u914d\u7f6e<\/a><ul><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#c_cpp_propertiesjson\">c_cpp_properties.json<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#tasksjson\">tasks.json<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#launchjson\">launch.json<\/a><\/li><\/ul><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#%E6%9B%B4%E6%96%B0-vs-code-%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F\">\u66f4\u65b0 VS Code \u73af\u5883\u53d8\u91cf<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#%E6%9E%84%E5%BB%BA%E5%B9%B6%E8%BF%90%E8%A1%8C\">\u6784\u5efa\u5e76\u8fd0\u884c<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html#%E6%80%BB%E7%BB%93\">\u603b\u7ed3<\/a><\/li><\/ul>\n\n\n\n<p>\u914d\u7f6e\u73af\u5883\u7684\u524d\u7f6e\u77e5\u8bc6\u975e\u5e38\u591a\uff0c\u5728\u6b64\u4e00\u4e00\u7f57\u5217<\/p>\n\n\n\n<ol><li>\u73af\u5883\u53d8\u91cf\u7684\u4f5c\u7528<\/li><li>MinGW \u4e0d\u540c\u7248\u672c\u7684\u5dee\u5f02<\/li><li>C\/CPP \u6587\u4ef6\u7684\u7f16\u8bd1\u4e0e\u94fe\u63a5<\/li><li>\u52a8\u6001\u94fe\u63a5\u4e0e\u9759\u6001\u94fe\u63a5<\/li><li>OpenCV \u7f16\u8bd1\u540e\u7684\u6587\u4ef6\u5939\u7684\u7ed3\u6784<\/li><li>g++ \u7f16\u8bd1\u547d\u4ee4\u4e2d&nbsp;<code>-I, -L, -l<\/code>&nbsp;\u4e09\u4e2a\u53c2\u6570\u7684\u542b\u4e49<\/li><li>VS Code \u5f00\u53d1 CPP \u9879\u76ee\uff0c\u751f\u6210\u7684\u4e09\u4e2a&nbsp;<code>.json<\/code>&nbsp;\u6587\u4ef6\u7684\u4f5c\u7528<\/li><\/ol>\n\n\n\n<h1 id=\"mingw-\u5b89\u88c5\">MinGW \u5b89\u88c5<\/h1>\n\n\n\n<h2 id=\"\u9009\u62e9-posix\">\u9009\u62e9 POSIX<\/h2>\n\n\n\n<p>\u8fd9\u91cc\u6d89\u53ca\u5230<strong>\u73af\u5883\u53d8\u91cf<\/strong>\u76f8\u5173\u7684\u77e5\u8bc6\u3002<\/p>\n\n\n\n<p>\u6765\u5230&nbsp;<a href=\"https:\/\/sourceforge.net\/projects\/mingw-w64\/files\/#mingw-w64-gcc-8-1-0\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/sourceforge.net\/projects\/mingw-w64\/files\/#mingw-w64-gcc-8-1-0<\/a><\/p>\n\n\n\n<p>\u770b\u5230<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MinGW-W64 GCC-8.1.0\n- x86_64-posix-sjlj\n- x86_64-posix-seh (\u8bf7\u9009\u62e9\u8fd9\u4e2a\u7248\u672c\u4e0b\u8f7d)\n- x86_64-win32-sjlj\n- x86_64-win32-seh\n- i686-posix-sjlj\n- i686-posix-dwarf\n- i686-win32-sjlj\n- i686-win32-dwarf<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u4e4b\u524d\u4ece\u672a\u4f7f\u7528\u8fc7 MinGW\uff0c\u90a3\u4e48\u8bf7\u4e0b\u8f7d posix \u7c7b\u522b\uff0c\u5e76\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff1b<\/p>\n\n\n\n<p>\u5982\u679c\u4e4b\u524d\u4f7f\u7528\u8fc7 MinGW\uff0c\u90a3\u4e48\u4f60\u5927\u6982\u7387\u4e0b\u8f7d\u7684\u662f win32 \u7c7b\u522b\uff0c\u6240\u4ee5\u8bf7\u91cd\u65b0\u5b89\u88c5\u5e76\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/p>\n\n\n\n<p>\u5c31\u7b97\u4e0d\u7f16\u8bd1 OpenCV \u6e90\u7801\uff0c\u8981\u7528\u5b83\u63d0\u4f9b\u7684\u52a8\u6001\u94fe\u63a5\u5e93\uff0c\u4e5f\u5f97\u8001\u8001\u5b9e\u5b9e\u4f7f\u7528 posix \u90a3\u4e2a\u3002<\/p>\n\n\n\n<h2 id=\"\u4fdd\u7559\u4e24\u4e2a-mingw\">\u4fdd\u7559\u4e24\u4e2a MinGW<\/h2>\n\n\n\n<p>\u6211\u81ea\u5df1\u4e4b\u524d\u4e0b\u8f7d\u7684\u662f win32 \uff0c\u6240\u4ee5\u76f4\u63a5\u8e29\u5751\u3002<\/p>\n\n\n\n<p>\u6700\u540e\u6211\u901a\u8fc7\u4fee\u6539\u6587\u4ef6\u5939\u540d\u5b57\u7684\u65b9\u6cd5\uff0c\u628a\u4e24\u4e2a MinGW \u90fd\u7559\u4e0b\u6765\uff0c\u7b49\u4ee5\u540e\u8981\u6362\u7684\u65f6\u5019\uff0c\u518d\u6539\u56de\u6765\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u6211\u81ea\u5df1\u4f7f\u7528\u7684\u90e8\u5206\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\nGCC_WIN32_HOME: C:\\Library\\CPP\\mingw64-posix\nGCC_POSIX_HOME: C:\\Library\\CPP\\mingw64-win32\nPath: \n  ...\n  %GCC_POSIX_HOME%\\bin\n  ...<\/code><\/pre>\n\n\n\n<p>\u5173\u4e8e win32 \u548c posix \u7684\u533a\u522b\uff0c\u8bf7\u53c2\u8003&nbsp;<a href=\"https:\/\/blog.csdn.net\/qq_29856169\/article\/details\/119380663\" target=\"_blank\" rel=\"noreferrer noopener\">\u3010c\/cpp \u5f00\u53d1\u5de5\u5177\u3011MingGW \u5404\u7248\u672c\u533a\u522b\u53ca\u5b89\u88c5\u8bf4\u660e<\/a>\u3002<\/p>\n\n\n\n<h2 id=\"\u68c0\u9a8c\u662f\u5426\u6210\u529f\">\u68c0\u9a8c\u662f\u5426\u6210\u529f<\/h2>\n\n\n\n<p><code>g++ --version<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Users\\User&gt;g++ --versiong++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0Copyright (C) 2018 Free Software Foundation, Inc.This is free software; see the source <strong>for<\/strong> copying conditions.  There is NOwarranty; not even <strong>for<\/strong> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<\/code><\/pre>\n\n\n\n<p>\u770b\u7b2c\u4e8c\u884c\uff0c\u6709 posix \u5b57\u6837\u3002<\/p>\n\n\n\n<h1 id=\"ccpp-\u6587\u4ef6\u7684\u7f16\u8bd1\u4e0e\u94fe\u63a5\">C\/CPP \u6587\u4ef6\u7684\u7f16\u8bd1\u4e0e\u94fe\u63a5<\/h1>\n\n\n\n<ul><li>\u5982\u679c\u4f60\u662f\u53ea\u4f1a\u5199\u5355\u4e2a&nbsp;<code>.c\/.cpp<\/code>&nbsp;\u6587\u4ef6\u7684\u5c0f\u767d<\/li><li>\u5982\u679c\u4f60\u6ca1\u6709\u4e0a\u8fc7<strong>\u8ba1\u7b97\u673a\u7ec4\u6210<\/strong>\u3001<strong>\u7f16\u8bd1\u539f\u7406<\/strong>\u548c<strong>\u64cd\u4f5c\u7cfb\u7edf<\/strong>\u8fd9\u4e09\u95e8\u8bfe<\/li><li>\u5982\u679c\u4f60\u6ca1\u6709\u542c\u8bf4\u8fc7&nbsp;<code>readelf<\/code>\uff0c<code>objdump<\/code>\uff0c<code>.text\/.data\/.bss<\/code><\/li><\/ul>\n\n\n\n<p>\u6211\u5efa\u8bae\u4f60\u5148\u6253\u597d\u57fa\u7840\uff0c\u518d\u6765\u914d\u7f6e OpenCV\uff0c\u5426\u5219\u6b32\u901f\u5219\u4e0d\u8fbe\uff0c\u5c31\u7b97\u624b\u628a\u624b\u6559\u4f1a\u5982\u4f55\u914d\u7f6e\uff0c<\/p>\n\n\n\n<p><strong>\u77e5\u5176\u7136\u800c\u4e0d\u77e5\u5176\u6240\u4ee5\u7136<\/strong>\uff0c\u4e0b\u56de\u914d\u7f6e\u73af\u5883\u8fd8\u662f\u5f97\u6298\u817e\u4e00\u904d\u3002<\/p>\n\n\n\n<p>\u6211\u5148\u629b\u51fa\u4e00\u4e2a\u95ee\u9898\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u4e00\u53e5\u7b80\u5355\u7684&nbsp;<code>printf(\"hello world\");<\/code>\uff0c\u5728\u6211\u7684\u7535\u8111\u4e0a\u7f16\u8bd1\u51fa\u4e86&nbsp;<code>.exe<\/code>&nbsp;\u6587\u4ef6\uff0c\u80fd\u76f4\u63a5\u5728\u53e6\u4e00\u53f0\u7535\u8111\u4e0a\u8fd0\u884c\uff1f\u6211\u4e3a\u4ec0\u4e48\u4e0d\u7528\u624b\u52a8\u5b9e\u73b0&nbsp;<code>printf<\/code>&nbsp;\u8fd9\u4e2a\u51fd\u6570\uff0c\u522b\u4eba\u4e5f\u4e0d\u7528\u5b9e\u73b0\uff0c\u8fd9\u4e2a\u51fd\u6570\u5230\u5e95\u5b9a\u4e49\u5728\u4e86\u54ea\u91cc\uff0c\u5b9e\u73b0\u5728\u4e86\u54ea\u91cc\uff1f<\/p><\/blockquote>\n\n\n\n<p>\u653e\u4e24\u4e2a\u89c6\u9891\uff1a<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/www.bilibili.com\/video\/BV1FL411g7m5\" target=\"_blank\" rel=\"noreferrer noopener\">\u7f16\u8bd1\u94fe\u63a5\u539f\u7406<\/a><\/li><li><a href=\"https:\/\/www.bilibili.com\/video\/BV1WU4y1b78m\" target=\"_blank\" rel=\"noreferrer noopener\">\u6df1\u5165\u7406\u89e3\u8ba1\u7b97\u673a\u7cfb\u7edf19\uff1a\u94fe\u63a5\u603b\u7ed3\uff1a\u7f16\u8bd1\u3001\u94fe\u63a5\u3001\u52a0\u8f7d\uff0cELF\u683c\u5f0f\uff0c\u7b26\u53f7\u8868\uff0c\u7b26\u53f7\u89e3\u6790\uff0c\u91cd\u5b9a\u4f4d\uff0c\u52a8\u6001\u94fe\u63a5\u3011<\/a><\/li><\/ul>\n\n\n\n<h1 id=\"opencv-\u6587\u4ef6\u5939\u7ed3\u6784\">OpenCV \u6587\u4ef6\u5939\u7ed3\u6784<\/h1>\n\n\n\n<h2 id=\"\u7248\u672c\u9009\u62e9\">\u7248\u672c\u9009\u62e9<\/h2>\n\n\n\n<p>\u4f7f\u7528\u522b\u4eba\u7f16\u8bd1\u597d\u7684 OpenCV dll \u6587\u4ef6\uff0c\u4fdd\u8bc1\u7f16\u8bd1\u540e\u7684\u6587\u4ef6\u80fd\u591f\u8fd0\u884c\u3002<\/p>\n\n\n\n<p>\u8fd9\u4efd\u6587\u4ef6\u5728&nbsp;<a href=\"https:\/\/github.com\/huihut\/OpenCV-MinGW-Build\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub \u4ed3\u5e93<\/a>&nbsp;\u4e0a\u53ef\u4ee5\u4e0b\u8f7d\uff0cGitHub \u4e0b\u8f7d\u7684\u52a0\u901f\u6709\u5f88\u591a\u529e\u6cd5\uff0c\u8fd9\u91cc\u7528\u6700\u7b80\u5355\u7684\u4e00\u79cd\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/gitee.com\/help\/articles\/4284\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub\u4ed3\u5e93\u5feb\u901f\u5bfc\u5165Gitee\u53ca\u540c\u6b65\u66f4\u65b0<\/a>\u3002<\/p>\n\n\n\n<p>\u6765\u5230 Gitee \u4e0a\u522b\u4eba\u540c\u6b65\u597d\u7684&nbsp;<a href=\"https:\/\/gitee.com\/mirrors_huihut\/OpenCV-MinGW-Build\/tree\/OpenCV-4.5.2-x64\" target=\"_blank\" rel=\"noreferrer noopener\">\u955c\u50cf\u4ed3\u5e93<\/a>\uff0c\u76f4\u63a5\u4e0b\u8f7d zip \u6587\u4ef6\u5c31\u884c\uff0c20 MB \u5de6\u53f3\u3002<\/p>\n\n\n\n<p>\u6211\u4f7f\u7528\u7684\u7248\u672c\u662f&nbsp;<code>OpenCV 4.5.2-x64<\/code>\uff0c<code>OpenCV 4.5.5-x64<\/code>&nbsp;\u6211\u8bd5\u4e86\u4e0d\u884c\u3002<\/p>\n\n\n\n<p><code>4.5.5<\/code>&nbsp;\u7684\u95ee\u9898\u662f\u80fd\u591f\u751f\u6210&nbsp;<code>.exe<\/code>&nbsp;\u6587\u4ef6\uff0c\u4f46\u662f\u65e0\u6cd5\u8fd0\u884c\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u4e3a\u4e86\u4fdd\u8bc1\u6210\u529f\uff0c\u7528&nbsp;<code>4.5.2<\/code>\u3002<\/p>\n\n\n\n<h2 id=\"\u6587\u4ef6\u7ed3\u6784\">\u6587\u4ef6\u7ed3\u6784<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code><a href=\"C:\\LIBRARY\\CPP\\PACKAGES\\OPENCV-MINGW-BUILD-OPENCV-4.1.0-X64\n\u251c\u2500etc # \u4e0d\u7528\u7ba1\n\u251c\u2500include # \u5934\u6587\u4ef6\n\u2502  \u2514\u2500opencv2\n\u2502      \u251c\u2500calib3d\n\u2502      \u251c\u2500core\n\u2502      \u251c\u2500dnn\n\u2502      \u251c\u2500features2d\n\u2502      \u251c\u2500flann\n\u2502      \u251c\u2500... # \u4e0d\u4e00\u4e00\u7f57\u5217\n\u2514\u2500x64\n    \u2514\u2500mingw\n        \u251c\u2500bin\n        \u2502  \u2514\u2500 *.dll # \u4e00\u5806 dll \u6587\u4ef6\n        \u2514\u2500lib\">C:\\LIBRARY\\CPP\\PACKAGES\\OPENCV-MINGW-BUILD-OPENCV-4.1.0-X64\u251c\u2500etc <em># \u4e0d\u7528\u7ba1<\/em>\u251c\u2500include <em># \u5934\u6587\u4ef6<\/em>\u2502  \u2514\u2500opencv2\u2502      \u251c\u2500calib3d\u2502      \u251c\u2500core\u2502      \u251c\u2500dnn\u2502      \u251c\u2500features2d\u2502      \u251c\u2500flann\u2502      \u251c\u2500... <em># \u4e0d\u4e00\u4e00\u7f57\u5217<\/em>\u2514\u2500x64    \u2514\u2500mingw        \u251c\u2500bin        \u2502  \u2514\u2500 *.dll <em># \u4e00\u5806 dll \u6587\u4ef6<\/em>        \u2514\u2500lib<\/a><\/code><\/pre>\n\n\n\n<p>\u9996\u5148\uff0c<code>include<\/code>&nbsp;\u6587\u4ef6\u5939\uff0c\u5b57\u9762\u610f\u601d\uff0c\u7528\u6765 include \u7684\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u77e5\u9053 CPP \u662f\u5b9a\u4e49\u548c\u5b9e\u73b0\u5206\u79bb\u7684\uff0c\u4ee5\u51fd\u6570\u4e3a\u4f8b\uff0c\u901a\u5e38\u5728&nbsp;<code>.h<\/code>&nbsp;\u6587\u4ef6\u4e2d\u58f0\u660e\uff0c\u5728&nbsp;<code>.cpp<\/code>&nbsp;\u6587\u4ef6\u4e2d\u5b9e\u73b0\u3002<\/p>\n\n\n\n<p>\u5982\u679c&nbsp;<code>main.cpp<\/code>&nbsp;\u91cc\u4f7f\u7528\u4e86\u5176\u4ed6\u6587\u4ef6\u4e2d\u5b9a\u4e49\u7684\u51fd\u6570\uff0c\u800c\u6211\u4eec\u53ea\u662f\u60f3\u8981\u751f\u6210&nbsp;<code>.o<\/code>&nbsp;\u6587\u4ef6\uff0c\u53ea\u9700\u8981&nbsp;<code>include<\/code>&nbsp;\u5bf9\u5e94\u7684&nbsp;<code>.h<\/code>&nbsp;\u6587\u4ef6\u5373\u53ef\u3002<\/p>\n\n\n\n<p><code>include\/opencv2<\/code>&nbsp;\u4e0b\u5c31\u662f\u5404\u79cd&nbsp;<code>.h<\/code>&nbsp;\u6587\u4ef6\u3002<\/p>\n\n\n\n<p>\u7136\u540e\u662f&nbsp;<code>x64\/mingw\/bin<\/code>\uff0c\u8fd9\u91cc\u6709\u4e00\u5806&nbsp;<code>*.dll<\/code>\uff0c\u8fd9\u5c31\u662f\u52a8\u6001\u94fe\u63a5\u5e93\u6587\u4ef6\u3002<\/p>\n\n\n\n<h1 id=\"\u5c06\u52a8\u6001\u94fe\u63a5\u5e93\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\">\u5c06\u52a8\u6001\u94fe\u63a5\u5e93\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/h1>\n\n\n\n<p>\u4e3a\u4e86\u8ba9\u7b2c\u4e09\u65b9\u7684\u52a8\u6001\u94fe\u63a5\u5e93\u751f\u6548\uff0c\u6211\u4eec\u9700\u8981\u5c06\u52a8\u6001\u94fe\u63a5\u5e93\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u6211\u6765\u8bf4\uff0c\u662f\u5c06&nbsp;<code>C:\\Library\\CPP\\Packages\\OpenCV-MinGW-Build-OpenCV-4.1.0-x64\\x64\\mingw\\bin<\/code>&nbsp;\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e00\u6b65\u7684\u4f5c\u7528\u7c7b\u4f3c\u4e8e\u544a\u8bc9\u7cfb\u7edf&nbsp;<code>prinf()<\/code>&nbsp;\u8fd9\u4e2a\u51fd\u6570\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u5728\u54ea\u513f\u3002<\/p>\n\n\n\n<h1 id=\"g-\u547d\u4ee4\u7684\u53c2\u6570\">g++ \u547d\u4ee4\u7684\u53c2\u6570<\/h1>\n\n\n\n<p>\u4ecb\u7ecd\u4e09\u4e2a\u53c2\u6570&nbsp;<code>-I<\/code>\u3001<code>-L<\/code>&nbsp;\u548c&nbsp;<code>-l<\/code>\u3002<\/p>\n\n\n\n<p><code>-I<\/code>&nbsp;\u544a\u8bc9\u7f16\u8bd1\u5668\uff0c\u5934\u6587\u4ef6\u91cc\u7684&nbsp;<code>include&lt;package&gt;<\/code>&nbsp;\u53bb\u54ea\u513f\u627e\u3002<\/p>\n\n\n\n<p><code>-L<\/code>&nbsp;\u544a\u8bc9\u7f16\u8bd1\u5668\uff0c\u6dfb\u52a0\u4e00\u4e2a\u8981\u52a8\u6001\u94fe\u63a5\u7684\u76ee\u5f55<\/p>\n\n\n\n<p><code>-l<\/code>&nbsp;\u6307\u5b9a\u5177\u4f53\u7684\u52a8\u6001\u94fe\u63a5\u5e93\u7684\u540d\u79f0<\/p>\n\n\n\n<p>\u5177\u4f53\u53ef\u4ee5\u53c2\u8003&nbsp;<a href=\"https:\/\/blog.csdn.net\/woaiclh13\/article\/details\/88719324\" target=\"_blank\" rel=\"noreferrer noopener\">gcc -L -l -I -i\u53c2\u6570<\/a>\u3002<\/p>\n\n\n\n<h1 id=\"vs-code-\u9879\u76ee\u914d\u7f6e\">VS Code \u9879\u76ee\u914d\u7f6e<\/h1>\n\n\n\n<p>\u6211\u4eec\u4f7f\u7528 VS Code \u751f\u6210\u7684\u4e09\u4e2a&nbsp;<code>.json<\/code>&nbsp;\u6587\u4ef6\u6765\u914d\u7f6e OpenCV \u9879\u76ee\uff0c<strong>\u800c\u4e0d\u662f\u4f7f\u7528<\/strong>&nbsp;cmake\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e09\u4e2a\u6587\u4ef6\u5206\u522b\u662f\uff1a<\/p>\n\n\n\n<p><code>c_cpp_properties.json<\/code>\uff0c<code>launch.json<\/code>&nbsp;\u548c&nbsp;<code>tasks.json<\/code>\u3002<\/p>\n\n\n\n<h2 id=\"c_cpp_propertiesjson\">c_cpp_properties.json<\/h2>\n\n\n\n<p>\u8fd9\u4e2a\u6587\u4ef6\u5220\u4e86\uff0c\u4e0d\u5f71\u54cd<strong>\u7f16\u8bd1<\/strong>\u4e0e<strong>\u94fe\u63a5<\/strong>\uff0c\u4f46\u662f VS Code \u7684 C\/C++ \u63d2\u4ef6\u4f9d\u8d56\u4e8e\u8fd9\u4e2a\u6587\u4ef6\u505a\u667a\u80fd\u63d0\u793a\u548c\u4ee3\u7801\u5206\u6790\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"configurations\": &#91;\n        {\n            \"name\": \"Win32\", \/\/ \u6307\u793a\u5e73\u53f0\uff0c\u5982 Mac\/Linux\/Windows\uff0c\u5b9e\u6d4b\u4e71\u586b\u4e5f\u884c\n            \"includePath\": &#91;\n                \"${workspaceFolder}\/**\",\n                \"C:\/Library\/CPP\/Packages\/OpenCV-MinGW-Build-OpenCV-4.5.2-x64\/include\"\n            ],\n            \"defines\": &#91;\n                \"_DEBUG\",\n                \"UNICODE\",\n                \"_UNICODE\"\n            ],\n            \"compilerPath\": \"C:\/Library\/CPP\/mingw64-posix\/bin\/g++.exe\"\n        }\n    ],\n    \"version\": 4\n}<\/code><\/pre>\n\n\n\n<p><code>includePath<\/code>\uff1a\u544a\u8bc9\u63d2\u4ef6\uff0c\u8981\u7528\u7684\u4f9d\u8d56\u5728\u54ea\u513f\u3002<\/p>\n\n\n\n<p><code>compilerPath<\/code>: \u544a\u8bc9\u63d2\u4ef6\uff0c\u7f16\u8bd1\u5668\u7684\u8def\u5f84\u5728\u54ea\u513f\u3002<\/p>\n\n\n\n<h2 id=\"tasksjson\">tasks.json<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"tasks\": &#91;\n        {\n            \"type\": \"cppbuild\",\n            \"label\": \"build\",\n            \"command\": \"g++\",\n            \"args\": &#91;\n                \"-fdiagnostics-color=always\",\n                \"-g\",\n                \"${file}\",\n                \"-I\",\n                \"C:\/Library\/CPP\/Packages\/OpenCV-MinGW-Build-OpenCV-4.5.2-x64\/include\",\n                \"-L\",\n                \"C:\/Library\/CPP\/Packages\/OpenCV-MinGW-Build-OpenCV-4.5.2-x64\/x64\/mingw\/bin\",\n                \"-l\",\n                \"libopencv_calib3d452\",\n                \"-l\",\n                \"libopencv_core452\",\n                \"-l\",\n                \"libopencv_dnn452\",\n                \"-l\",\n                \"libopencv_features2d452\",\n                \"-l\",\n                \"libopencv_flann452\",\n                \"-l\",\n                \"libopencv_gapi452\",\n                \"-l\",\n                \"libopencv_highgui452\",\n                \"-l\",\n                \"libopencv_imgcodecs452\",\n                \"-l\",\n                \"libopencv_imgproc452\",\n                \"-l\",\n                \"libopencv_ml452\",\n                \"-l\",\n                \"libopencv_objdetect452\",\n                \"-l\",\n                \"libopencv_photo452\",\n                \"-l\",\n                \"libopencv_stitching452\",\n                \"-l\",\n                \"libopencv_video452\",\n                \"-l\",\n                \"libopencv_videoio452\",\n                \"-l\",\n                \"opencv_videoio_ffmpeg452_64\",\n                \"-o\",\n                \"${fileDirname}\\\\${fileBasenameNoExtension}.exe\"\n            ],\n            \"options\": {\n                \"cwd\": \"${fileDirname}\"\n            },\n            \"problemMatcher\": &#91;\n                \"$gcc\"\n            ],\n            \"group\": {\n                \"kind\": \"build\",\n                \"isDefault\": true\n            },\n            \"detail\": \"\u8c03\u8bd5\u5668\u751f\u6210\u7684\u4efb\u52a1\u3002\"\n        }\n    ],\n    \"version\": \"2.0.0\"\n}<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4e2a\u6587\u4ef6\u60f3\u8981\u770b\u61c2\uff0c\u5c31\u9700\u8981&nbsp;<code>g++<\/code>&nbsp;\u547d\u4ee4\u90a3\u4e9b\u53c2\u6570\u7684\u76f8\u5173\u77e5\u8bc6\u4e86\uff0c\u800c\u90a3\u4e9b\u53c2\u6570\u76f8\u5173\u7684\u77e5\u8bc6\uff0c\u5c31\u662f\u7f16\u8bd1\u548c\u94fe\u63a5\u3002<\/p>\n\n\n\n<p><code>isDefault<\/code>\uff1a\u8868\u793a\u8fd9\u662f\u9ed8\u8ba4\u7684\u6784\u5efa\u4efb\u52a1\uff0c\u53ef\u4ee5\u53d1\u73b0\uff0c<code>-l<\/code>&nbsp;\u540e\u9762\u8ddf\u7740\u7684\u53c2\u6570\uff0c\u5c31\u662f\u6211\u4eec\u4e0b\u8f7d\u7684 OpenCV\u7684&nbsp;<code>bin<\/code>&nbsp;\u76ee\u5f55\u4e0b\u7684<strong>\u52a8\u6001\u94fe\u63a5\u5e93<\/strong>\u7684\u6587\u4ef6\u540d\u3002<\/p>\n\n\n\n<h2 id=\"launchjson\">launch.json<\/h2>\n\n\n\n<p>\u6ce8\u610f&nbsp;<code>gdb<\/code>&nbsp;\u6587\u4ef6\u8def\u5f84\u5373\u53ef\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"version\": \"0.2.0\",\n    \"configurations\": &#91;\n        {\n            \"name\": \"(gdb) Launch\", \/\/ \u914d\u7f6e\u540d\u79f0\uff0c\u5c06\u4f1a\u5728\u542f\u52a8\u914d\u7f6e\u7684\u4e0b\u62c9\u83dc\u5355\u4e2d\u663e\u793a   \n            \"type\": \"cppdbg\", \/\/ \u914d\u7f6e\u7c7b\u578b\uff0c\u8fd9\u91cc\u53ea\u80fd\u4e3acppdbg\n            \"preLaunchTask\": \"build\",\n            \"request\": \"launch\", \/\/\u8bf7\u6c42\u914d\u7f6e\u7c7b\u578b\uff0c\u53ef\u4ee5\u4e3alaunch\uff08\u542f\u52a8\uff09\u6216attach\uff08\u9644\u52a0\uff09    \n            \"program\": \"${fileDirname}\\\\${fileBasenameNoExtension}.exe\",\n            \/\/ \u5c06\u8981\u8fdb\u884c\u8c03\u8bd5\u7684\u7a0b\u5e8f\u7684\u8def\u5f84\n            \"args\": &#91;], \/\/ \u7a0b\u5e8f\u8c03\u8bd5\u65f6\u4f20\u9012\u7ed9\u7a0b\u5e8f\u7684\u547d\u4ee4\u884c\u53c2\u6570\uff0c\u4e00\u822c\u8bbe\u4e3a\u7a7a\u5373\u53ef      \n            \"stopAtEntry\": false, \/\/ \u8bbe\u4e3atrue\u65f6\u7a0b\u5e8f\u5c06\u6682\u505c\u5728\u7a0b\u5e8f\u5165\u53e3\u5904\uff0c\u4e00\u822c\u8bbe\u7f6e\u4e3afalse     \n            \"cwd\": \"${fileDirname}\", \/\/ \u8c03\u8bd5\u7a0b\u5e8f\u65f6\u7684\u5de5\u4f5c\u76ee\u5f55\uff0c\u4e00\u822c\u4e3a${workspaceRoot}\u5373\u4ee3\u7801\u6240\u5728\u76ee\u5f55workspaceRoot\u5df2\u88ab\u5f03\u7528\uff0c\u73b0\u6539\u4e3aworkspaceFolder      \n            \"environment\": &#91;],\n            \"externalConsole\": false, \/\/ \u8c03\u8bd5\u65f6\u662f\u5426\u663e\u793a\u63a7\u5236\u53f0\u7a97\u53e3  \n            \"MIMode\": \"gdb\",\n            \"miDebuggerPath\": \"C:\/Library\/CPP\/mingw64-posix\/bin\/gdb.exe\", \/\/ miDebugger\u7684\u8def\u5f84\uff0c\u6ce8\u610f\u8fd9\u91cc\u8981\u4e0eMinGw\u7684\u8def\u5f84\u5bf9\u5e94  \n            \"setupCommands\": &#91;\n                {\n                    \"description\": \"Enable pretty-printing for gdb\",\n                    \"text\": \"-enable-pretty-printing\",\n                    \"ignoreFailures\": false\n                }\n            ]\n        }\n    ]\n}<\/code><\/pre>\n\n\n\n<h1 id=\"\u66f4\u65b0-vs-code-\u73af\u5883\u53d8\u91cf\">\u66f4\u65b0 VS Code \u73af\u5883\u53d8\u91cf<\/h1>\n\n\n\n<p>VS Code \u6709\u4e00\u4e2a\u7279\u522b\u7684\u8bbe\u7f6e\uff0c\u5c31\u662f\u5728\u5916\u9762\u66f4\u65b0\u4e86\u73af\u5883\u53d8\u91cf\u4ee5\u540e\uff0cVS Code \u5185\u90e8\u7684\u547d\u4ee4\u884c\u662f\u4e0d\u77e5\u9053\u7684\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e2a\u95ee\u9898\u53c2\u8003&nbsp;<a href=\"https:\/\/www.zhihu.com\/question\/266858097\/answer\/967976291\" target=\"_blank\" rel=\"noreferrer noopener\">vscode\u7ec8\u7aef\u4e0d\u80fd\u8bc6\u522b\u7cfb\u7edf\u8bbe\u7f6e\u7684\u73af\u5883\u53d8\u91cf\uff1f &#8211; \u671d\u9633\u7684\u56de\u7b54 &#8211; \u77e5\u4e4e<\/a><\/p>\n\n\n\n<p>\u539f\u56e0\u5c31\u662f VS Code \u60f3\u8981\u4fdd\u5b58\u4e0a\u4e00\u6b21\u5173\u95ed\u65f6\u5019\u7684\u547d\u4ee4\u884c\u7684\u5386\u53f2\u8bb0\u5f55\uff0c\u6240\u4ee5\u6ca1\u6709\u66f4\u65b0\u73af\u5883\u53d8\u91cf\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982\u65b0\u5efa\u4e00\u4e2a&nbsp;<code>Destop\/print-hello.exe<\/code>\uff0c\u5e76\u4e14\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u7136\u540e\u6211\u4eec\u6b63\u5e38&nbsp;<code>Win + R, cmd<\/code>\uff0c\u8c03\u51fa\u547d\u4ee4\u884c\uff0c\u662f\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c&nbsp;<code>print-hello.exe<\/code>\u3002<\/p>\n\n\n\n<p>\u4f46\u662f\uff0c\u5982\u679c\u8fd9\u4e2a\u65f6\u5019\u7528 VS Code \u6253\u5f00\u4e00\u4e2a\u9879\u76ee\uff0c\u9879\u76ee\u5185\u90e8\u7684\u547d\u4ee4\u884c\u662f\u4e0d\u77e5\u9053\u6709\u8fd9\u4e2a\u73af\u5883\u53d8\u91cf\u7684\uff0c\u5b83\u5c06\u4e0d\u80fd&nbsp;<code>print-hello<\/code>\u3002<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\u5c31\u662f\uff0c\u4f7f\u7528\u4e00\u4e2a\u201c\u611f\u77e5\u5230\u201d\u65b0\u7684\u73af\u5883\u53d8\u91cf\u7684\u547d\u4ee4\u884c\uff0c\u4f7f\u7528\u6307\u4ee4&nbsp;<code>code &lt;workspace&gt;<\/code>&nbsp;\u91cd\u65b0\u6253\u5f00\u9879\u76ee\uff0c\u8fd9\u4e2a\u65f6\u5019 VS Code \u624d\u4f1a\u66f4\u65b0\u73af\u5883\u53d8\u91cf\u3002<\/p>\n\n\n\n<h1 id=\"\u6784\u5efa\u5e76\u8fd0\u884c\">\u6784\u5efa\u5e76\u8fd0\u884c<\/h1>\n\n\n\n<p>\u51c6\u5907\u4e00\u4e2a&nbsp;<code>test.cpp<\/code>\uff0c\u5185\u5bb9\u5982\u4e0b\uff0c\u6ce8\u610f\u4fee\u6539\u5bf9\u5e94\u7684\u56fe\u7247\u5730\u5740\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;opencv2\/opencv.hpp>\n#include &lt;opencv2\/highgui.hpp>\n#include &lt;iostream>\nusing namespace cv;\nint main()\n{\n    Mat img = imread(\".\/opencv.jpeg\");\n    imshow(\"image\", img);\n    waitKey();\n    return 0;\n}<\/code><\/pre>\n\n\n\n<p>\u73b0\u5728\u6587\u4ef6\u76ee\u5f55\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\n\u251c\u2500\u2500 .vscode\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 c_cpp_properties.json\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 launch.json\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 tasks.json\n\u251c\u2500\u2500 test.cpp\n\u2514\u2500\u2500 opencv.jpeg<\/code><\/pre>\n\n\n\n<p>\u70b9\u51fb\u5c0f\u4e09\u89d2\u5c31\u884c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"199\" src=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/03\/image-14-1024x199.png\" alt=\"\" class=\"wp-image-14789\" srcset=\"http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/03\/image-14-1024x199.png 1024w, http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/03\/image-14-300x58.png 300w, http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/03\/image-14-768x149.png 768w, http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/03\/image-14-1536x298.png 1536w, http:\/\/139.9.1.231\/wp-content\/uploads\/2023\/03\/image-14-2048x398.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h1 id=\"\u603b\u7ed3\">\u603b\u7ed3<\/h1>\n\n\n\n<p>\u867d\u7136\u662f\u4ee5\u914d\u7f6e OpenCV \u4e3a\u5f15\u5b50\uff0c\u4f46\u662f\u6574\u4e2a\u6d41\u7a0b\u5e76\u4e0d\u590d\u6742\uff1a<\/p>\n\n\n\n<ol><li>OpenCV \u52a8\u6001\u94fe\u63a5\u5e93\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/li><li><code>tasks.json<\/code>&nbsp;\u4e2d\u586b\u5199\u7f16\u8bd1\u53c2\u6570<\/li><li>\u66f4\u65b0 VS Code \u73af\u5883\u53d8\u91cf<\/li><\/ol>\n\n\n\n<p>\u81f3\u4e8e\u73af\u5883\u53d8\u91cf\u4e4b\u7c7b\u7684\uff0c\u5404\u4f4d\u8001\u624b\u60f3\u5fc5\u662f\u8f7b\u8f66\u719f\u8def\u4e86\u3002<\/p>\n\n\n\n<p>\u53ea\u8981\u505a\u597d\u4e0a\u9762\u8fd9\u4e09\u6b65\uff0c\u5c31\u80fd\u751f\u6210\u5e76\u8c03\u8bd5&nbsp;<code>.exe<\/code>&nbsp;\u6587\u4ef6\u4e86\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u6709\u4efb\u4f55\u5173\u4e8e\u6587\u7ae0\u7684\u5efa\u8bae\uff0c\u6b22\u8fce\u8bc4\u8bba\u6216\u5728&nbsp;<a href=\"https:\/\/github.com\/rfhits\/blogs\">GitHub<\/a>&nbsp;\u63d0 PR<\/p>\n\n\n\n<p>\u4f5c\u8005\uff1a<a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/cnblogs\/ticlab\">ticlab<\/a>\u672c\u6587\u4e3a\u4f5c\u8005\u539f\u521b\uff0c\u8f6c\u8f7d\u8bf7\u5728\u00a0<strong>\u6587\u7ae0\u5f00\u5934<\/strong>\u00a0\u6ce8\u660e\u51fa\u5904\uff1a<a href=\"https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html\">https:\/\/www.cnblogs.com\/ticlab\/p\/16817542.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u4e0b\u4f7f\u7528VSCode\u914d\u7f6eOpenCV\u5f00\u53d1\u73af\u5883 \u901a\u8fc7\u4f7f\u7528 GitHub \u4e0a\u4ed6\u4eba\u7f16\u8bd1\u597d\u7684\u52a8\u6001\u5e93\uff0c\u8fdb\u884c  &hellip; <a href=\"http:\/\/139.9.1.231\/index.php\/2023\/03\/10\/windowsvscodeopencv\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Windows\u4e0b\u4f7f\u7528VSCode\u914d\u7f6eOpenCV\u5f00\u53d1\u73af\u5883<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14,15],"tags":[],"_links":{"self":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/14785"}],"collection":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/comments?post=14785"}],"version-history":[{"count":10,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/14785\/revisions"}],"predecessor-version":[{"id":14797,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/posts\/14785\/revisions\/14797"}],"wp:attachment":[{"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/media?parent=14785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/categories?post=14785"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/139.9.1.231\/index.php\/wp-json\/wp\/v2\/tags?post=14785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}