{"id":932612,"date":"2024-12-26T18:01:25","date_gmt":"2024-12-26T10:01:25","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/932612.html"},"modified":"2024-12-26T18:01:27","modified_gmt":"2024-12-26T10:01:27","slug":"python%e5%a6%82%e4%bd%95%e4%b8%8b%e8%bd%bdopencv","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/932612.html","title":{"rendered":"python\u5982\u4f55\u4e0b\u8f7dopencv"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070402\/982a9256-eb5e-4a8c-a075-dc3cdb9ec832.webp\" alt=\"python\u5982\u4f55\u4e0b\u8f7dopencv\" \/><\/p>\n<p><p> \u5f00\u5934\u6bb5\u843d\uff1a<br \/>\u8981\u5728Python\u4e2d\u4e0b\u8f7dOpenCV\uff0c\u4e3b\u8981\u6709\u4e09\u79cd\u65b9\u6cd5\uff1a<strong>\u4f7f\u7528pip\u547d\u4ee4\u3001\u901a\u8fc7conda\u5b89\u88c5\u3001\u4ece\u6e90\u7801\u7f16\u8bd1<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u4f7f\u7528pip\u547d\u4ee4\u662f\u6700\u7b80\u5355\u4e14\u6700\u5e38\u7528\u7684\u65b9\u6cd5<\/strong>\u3002\u901a\u8fc7pip\u5b89\u88c5OpenCV\u975e\u5e38\u65b9\u4fbf\uff0c\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>pip install opencv-python<\/code>\u5373\u53ef\u3002\u6b64\u547d\u4ee4\u4f1a\u4ecePython Package Index (PyPI) \u4e0b\u8f7d\u5e76\u5b89\u88c5OpenCV\u7684\u9884\u7f16\u8bd1\u7248\u672c\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u5e38\u89c1\u7684\u64cd\u4f5c\u7cfb\u7edf\u548cPython\u7248\u672c\u3002pip\u5b89\u88c5\u4e0d\u4ec5\u7b80\u5355\u5feb\u6377\uff0c\u8fd8\u80fd\u786e\u4fdd\u4f60\u83b7\u5f97\u4e0ePython\u7248\u672c\u517c\u5bb9\u7684OpenCV\u7248\u672c\uff0c\u9002\u5408\u5927\u591a\u6570\u7528\u6237\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528PIP\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u4f7f\u7528pip\u5b89\u88c5OpenCV\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u7b80\u5355\u5feb\u6377\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u7528\u6237\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u6b65\u9aa4<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684Python\u73af\u5883\u5df2\u7ecf\u5b89\u88c5\u4e86pip\u5305\u7ba1\u7406\u5de5\u5177\u3002\u5927\u591a\u6570Python\u5b89\u88c5\u4f1a\u9ed8\u8ba4\u5305\u542bpip\u3002\u5982\u679c\u6ca1\u6709\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8f7d\u6700\u65b0\u7684Python\u5b89\u88c5\u5305\u6765\u5b89\u88c5\uff0c\u6216\u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684\u5305\u7ba1\u7406\u5668\u3002<\/p>\n<\/p>\n<p><p>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08Windows\uff09\u6216\u7ec8\u7aef\uff08macOS\u6216Linux\uff09\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code>pip install opencv-python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u4e0b\u8f7d\u5e76\u5b89\u88c5OpenCV\u7684\u9884\u7f16\u8bd1\u7248\u672c\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7<code>import cv2<\/code>\u6765\u6d4b\u8bd5\u662f\u5426\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u9644\u52a0\u5305<\/strong><\/p>\n<\/p>\n<p><p>OpenCV\u7684\u57fa\u672c\u5b89\u88c5\u5305<code>opencv-python<\/code>\u4e0d\u5305\u542b\u6240\u6709\u7684\u529f\u80fd\u3002\u5982\u679c\u4f60\u9700\u8981\u5b8c\u6574\u7684\u529f\u80fd\u652f\u6301\uff08\u5982GUI\u529f\u80fd\uff09\uff0c\u5efa\u8bae\u5b89\u88c5<code>opencv-python-headless<\/code>\u548c<code>opencv-contrib-python<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code>pip install opencv-python-headless<\/p>\n<p>pip install opencv-contrib-python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e9b\u5305\u5305\u542b\u4e86\u66f4\u591a\u7684\u6a21\u5757\u548c\u529f\u80fd\uff0c\u9002\u5408\u9700\u8981\u4f7f\u7528OpenCV\u9ad8\u7ea7\u529f\u80fd\u7684\u7528\u6237\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528CONDA\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4f7f\u7528Anaconda\u5206\u53d1\u7248\u7684\u7528\u6237\uff0c\u53ef\u4ee5\u901a\u8fc7conda\u547d\u4ee4\u6765\u5b89\u88c5OpenCV\uff0c\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u7ba1\u7406\u591a\u4e2a\u6570\u636e\u79d1\u5b66\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u73af\u5883\u7684\u7528\u6237\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u6b65\u9aa4<\/strong><\/p>\n<\/p>\n<p><p>\u6253\u5f00Anaconda Prompt\u6216\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code>conda install -c conda-forge opencv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u4ececonda-forge\u9891\u9053\u4e0b\u8f7d\u5e76\u5b89\u88c5OpenCV\u3002conda-forge\u662f\u4e00\u4e2a\u793e\u533a\u7ef4\u62a4\u7684\u5305\u5b58\u50a8\u5e93\uff0c\u5305\u542b\u4e86\u8bb8\u591a\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u76f8\u5173\u7684\u5e93\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u73af\u5883\u7ba1\u7406<\/strong><\/p>\n<\/p>\n<p><p>Anaconda\u5141\u8bb8\u521b\u5efa\u72ec\u7acb\u7684\u73af\u5883\u6765\u7ba1\u7406\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u5173\u7cfb\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u73af\u5883\u5e76\u5b89\u88c5OpenCV\uff1a<\/p>\n<\/p>\n<p><pre><code>conda create -n my_env python=3.8 opencv<\/p>\n<p>conda activate my_env<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u6709\u52a9\u4e8e\u907f\u514d\u4e0d\u540c\u9879\u76ee\u95f4\u7684\u4f9d\u8d56\u51b2\u7a81\uff0c\u4fdd\u6301\u73af\u5883\u7684\u6574\u6d01\u548c\u53ef\u7ba1\u7406\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4ece\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u4ece\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5OpenCV\u9002\u5408\u9700\u8981\u5b9a\u5236OpenCV\u6784\u5efa\u914d\u7f6e\u7684\u9ad8\u7ea7\u7528\u6237\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7d\u6e90\u7801<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4eceOpenCV\u7684GitHub\u4ed3\u5e93\u4e0b\u8f7d\u6e90\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code>git clone https:\/\/github.com\/opencv\/opencv.git<\/p>\n<p>git clone https:\/\/github.com\/opencv\/opencv_contrib.git<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>opencv_contrib\u5305\u542b\u4e86\u4e00\u4e9b\u989d\u5916\u7684\u6a21\u5757\uff0c\u5982\u679c\u9700\u8981\u8fd9\u4e9b\u6a21\u5757\uff0c\u53ef\u4ee5\u4e00\u5e76\u4e0b\u8f7d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6784\u5efaOpenCV<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528CMake\u8fdb\u884c\u6784\u5efa\u3002\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u6784\u5efa\u76ee\u5f55\uff1a<\/p>\n<\/p>\n<p><pre><code>mkdir build<\/p>\n<p>cd build<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u4f7f\u7528CMake\u914d\u7f6e\u6784\u5efa\uff1a<\/p>\n<\/p>\n<p><pre><code>cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=\/usr\/local -D OPENCV_EXTRA_MODULES_PATH=..\/opencv_contrib\/modules ..\/opencv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4f1a\u751f\u6210Makefile\uff0c\u7136\u540e\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u7f16\u8bd1\u548c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code>make -j8<\/p>\n<p>sudo make install<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7f16\u8bd1\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\uff0c\u53d6\u51b3\u4e8e\u4f60\u7684\u8ba1\u7b97\u673a\u914d\u7f6e\u3002\u7f16\u8bd1\u5b8c\u6210\u540e\uff0cOpenCV\u5c06\u88ab\u5b89\u88c5\u5230\u6307\u5b9a\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u5931\u8d25<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5OpenCV\u65f6\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\uff0c\u4f8b\u5982\u7f51\u7edc\u8fde\u63a5\u95ee\u9898\u6216\u6743\u9650\u4e0d\u8db3\u3002\u786e\u4fdd\u4f60\u6709\u826f\u597d\u7684\u7f51\u7edc\u8fde\u63a5\uff0c\u5e76\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c\u547d\u4ee4\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u4e0d\u517c\u5bb9<\/strong><\/p>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u5b89\u88c5\u7684OpenCV\u7248\u672c\u53ef\u80fd\u4e0e\u5f53\u524d\u7684Python\u7248\u672c\u4e0d\u517c\u5bb9\u3002\u53ef\u4ee5\u5c1d\u8bd5\u6307\u5b9a\u7248\u672c\u53f7\u8fdb\u884c\u5b89\u88c5\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code>pip install opencv-python==4.5.1.48<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u53ef\u4ee5\u5b89\u88c5\u4e0ePython\u7248\u672c\u517c\u5bb9\u7684OpenCV\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f9d\u8d56\u95ee\u9898<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u7cfb\u7edf\u4e0a\uff0cOpenCV\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u7cfb\u7edf\u4f9d\u8d56\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u8fd9\u4e9b\u4f9d\u8d56\uff0c\u4f8b\u5982\u5728Ubuntu\u4e0a\uff1a<\/p>\n<\/p>\n<p><pre><code>sudo apt-get install libjpeg-dev libpng-dev libtiff-dev<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u786e\u4fdd\u6240\u6709\u5fc5\u8981\u7684\u4f9d\u8d56\u90fd\u5df2\u5b89\u88c5\uff0c\u4ee5\u907f\u514d\u7f16\u8bd1\u6216\u8fd0\u884c\u65f6\u9519\u8bef\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u9a8c\u8bc1\u5b89\u88c5<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7b80\u5355\u6d4b\u8bd5<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u6765\u6d4b\u8bd5OpenCV\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>print(cv2.__version__)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd0\u884c\u8fd9\u6bb5\u4ee3\u7801\uff0c\u5982\u679c\u8f93\u51fa\u4e86OpenCV\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u56fe\u50cf\u5904\u7406\u6d4b\u8bd5<\/strong><\/p>\n<\/p>\n<p><p>\u8fdb\u4e00\u6b65\u6d4b\u8bd5\u53ef\u4ee5\u52a0\u8f7d\u5e76\u663e\u793a\u4e00\u5f20\u56fe\u50cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>img = cv2.imread(&#39;test.jpg&#39;, cv2.IMREAD_COLOR)<\/p>\n<p>cv2.imshow(&#39;image&#39;, img)<\/p>\n<p>cv2.w<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>tKey(0)<\/p>\n<p>cv2.destroyAllWindows()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6253\u5f00\u4e00\u4e2a\u7a97\u53e3\u663e\u793a\u56fe\u50cf\uff0c\u5982\u679c\u6210\u529f\u6253\u5f00\uff0c\u8bf4\u660eOpenCV\u529f\u80fd\u6b63\u5e38\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5728Python\u4e2d\u6210\u529f\u4e0b\u8f7d\u5e76\u5b89\u88c5OpenCV\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6839\u636e\u4f60\u7684\u5f00\u53d1\u73af\u5883\u548c\u9700\u6c42\u8fdb\u884c\u5b89\u88c5\uff0c\u4ee5\u4fbf\u5145\u5206\u5229\u7528OpenCV\u7684\u5f3a\u5927\u529f\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b89\u88c5OpenCV\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u5b89\u88c5OpenCV\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528pip\u5305\u7ba1\u7406\u5de5\u5177\u3002\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<code>pip install opencv-python<\/code>\u3002\u5982\u679c\u60a8\u9700\u8981\u989d\u5916\u7684\u529f\u80fd\uff0c\u5982\u652f\u6301\u89c6\u9891\u5904\u7406\uff0c\u53ef\u4ee5\u5b89\u88c5<code>opencv-python-headless<\/code>\u548c<code>opencv-contrib-python<\/code>\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7<code>import cv2<\/code>\u6765\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p><strong>\u5728Windows\u548cMac\u4e0a\u5b89\u88c5OpenCV\u7684\u6b65\u9aa4\u6709\u4f55\u4e0d\u540c\uff1f<\/strong><br \/>\u5728Windows\u548cMac\u4e0a\u5b89\u88c5OpenCV\u7684\u57fa\u672c\u6b65\u9aa4\u7c7b\u4f3c\uff0c\u90fd\u662f\u4f7f\u7528pip\u547d\u4ee4\u3002\u7136\u800c\uff0cWindows\u7528\u6237\u53ef\u80fd\u9700\u8981\u5b89\u88c5Visual Studio\u6784\u5efa\u5de5\u5177\u4ee5\u652f\u6301\u7f16\u8bd1\u67d0\u4e9b\u4f9d\u8d56\u9879\u3002\u800cMac\u7528\u6237\u53ef\u4ee5\u901a\u8fc7Homebrew\u8f7b\u677e\u7ba1\u7406\u5305\u5e76\u5b89\u88c5OpenCV\uff0c\u547d\u4ee4\u4e3a<code>brew install opencv<\/code>\u3002\u786e\u4fdd\u5728\u5b89\u88c5\u4e4b\u524d\u5df2\u66f4\u65b0\u5305\u7ba1\u7406\u5de5\u5177\u3002<\/p>\n<p><strong>\u4e0b\u8f7dOpenCV\u540e\uff0c\u5982\u4f55\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u5b8c\u6210OpenCV\u7684\u5b89\u88c5\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684Python\u4ee3\u7801\u6765\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002\u5728Python\u4ea4\u4e92\u5f0f\u73af\u5883\u6216\u521b\u5efa\u7684\u811a\u672c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">import cv2\nprint(cv2.__version__)\n<\/code><\/pre>\n<p>\u5982\u679c\u6210\u529f\u5b89\u88c5\uff0c\u60a8\u5c06\u770b\u5230\u5b89\u88c5\u7684OpenCV\u7248\u672c\u53f7\u3002\u82e5\u51fa\u73b0\u9519\u8bef\uff0c\u9700\u68c0\u67e5\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7684\u4efb\u4f55\u8b66\u544a\u6216\u9519\u8bef\u4fe1\u606f\uff0c\u4ee5\u4fbf\u8fdb\u884c\u76f8\u5e94\u7684\u6392\u67e5\u548c\u4fee\u590d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u5934\u6bb5\u843d\uff1a\u8981\u5728Python\u4e2d\u4e0b\u8f7dOpenCV\uff0c\u4e3b\u8981\u6709\u4e09\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528pip\u547d\u4ee4\u3001\u901a\u8fc7conda\u5b89\u88c5\u3001\u4ece\u6e90\u7801\u7f16\u8bd1\u3002 [&hellip;]","protected":false},"author":3,"featured_media":932621,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/932612"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=932612"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/932612\/revisions"}],"predecessor-version":[{"id":932624,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/932612\/revisions\/932624"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/932621"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=932612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=932612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=932612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}