{"id":1006694,"date":"2024-12-27T10:46:45","date_gmt":"2024-12-27T02:46:45","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1006694.html"},"modified":"2024-12-27T10:46:47","modified_gmt":"2024-12-27T02:46:47","slug":"python%e5%a6%82%e4%bd%95%e5%af%b9%e5%9b%be%e5%83%8f%e6%8e%92%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1006694.html","title":{"rendered":"python\u5982\u4f55\u5bf9\u56fe\u50cf\u6392\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25082711\/02f989aa-7ffe-4cdb-9c30-6c21ea06a2fb.webp\" alt=\"python\u5982\u4f55\u5bf9\u56fe\u50cf\u6392\u5e8f\" \/><\/p>\n<p><p> <strong>Python\u5bf9\u56fe\u50cf\u6392\u5e8f\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u6839\u636e\u6587\u4ef6\u540d\u6392\u5e8f\u3001\u56fe\u50cf\u5185\u5bb9\u6392\u5e8f\u3001\u5143\u6570\u636e\u6392\u5e8f\u3002\u901a\u8fc7\u6587\u4ef6\u540d\u6392\u5e8f\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u53ef\u901a\u8fc7Python\u5185\u7f6e\u51fd\u6570\u548c\u5e93\u8f7b\u677e\u5b9e\u73b0\u3002\u56fe\u50cf\u5185\u5bb9\u6392\u5e8f\u53ef\u4ee5\u4f7f\u7528\u8ba1\u7b97\u56fe\u50cf\u76f8\u4f3c\u5ea6\u6216\u7279\u5f81\u63d0\u53d6\u7684\u65b9\u6cd5\uff0c\u5e94\u7528\u4e8e\u590d\u6742\u7684\u573a\u666f\u3002\u5143\u6570\u636e\u6392\u5e8f\u5219\u9002\u7528\u4e8e\u9700\u8981\u6839\u636e\u56fe\u50cf\u62cd\u6444\u65f6\u95f4\u3001\u5730\u70b9\u7b49\u4fe1\u606f\u8fdb\u884c\u6392\u5e8f\u7684\u573a\u666f\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u6839\u636e\u6587\u4ef6\u540d\u6392\u5e8f<\/p>\n<\/p>\n<p><p>\u6587\u4ef6\u540d\u6392\u5e8f\u662f\u6700\u5e38\u7528\u4e14\u7b80\u5355\u7684\u56fe\u50cf\u6392\u5e8f\u65b9\u6cd5\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u56fe\u50cf\u6587\u4ef6\u7684\u547d\u540d\u9075\u5faa\u67d0\u79cd\u903b\u8f91\u987a\u5e8f\uff0c\u4f8b\u5982\u65f6\u95f4\u6233\u6216\u7f16\u53f7\u3002\u901a\u8fc7Python\u7684\u5185\u7f6e\u51fd\u6570\u548c\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u5bf9\u56fe\u50cf\u6587\u4ef6\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u6392\u5e8f<\/strong><\/li>\n<\/ol>\n<p><p>Python\u7684<code>sorted()<\/code>\u51fd\u6570\u548c\u5217\u8868\u7684<code>sort()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u7528\u4e8e\u5bf9\u56fe\u50cf\u6587\u4ef6\u540d\u8fdb\u884c\u6392\u5e8f\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5305\u542b\u56fe\u50cf\u6587\u4ef6\u540d\u7684\u5217\u8868\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u8fd9\u4e9b\u51fd\u6570\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def sort_images_by_filename(directory):<\/p>\n<p>    # \u83b7\u53d6\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6<\/p>\n<p>    files = os.listdir(directory)<\/p>\n<p>    # \u8fc7\u6ee4\u51fa\u56fe\u50cf\u6587\u4ef6\uff08\u5047\u8bbe\u662fjpg\u683c\u5f0f\uff09<\/p>\n<p>    images = [file for file in files if file.endswith(&#39;.jpg&#39;)]<\/p>\n<p>    # \u6392\u5e8f\u6587\u4ef6\u540d<\/p>\n<p>    images.sort()<\/p>\n<p>    return images<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>sorted_images = sort_images_by_filename(&#39;\/path\/to\/images&#39;)<\/p>\n<p>print(sorted_images)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u81ea\u7136\u6392\u5e8f<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6587\u4ef6\u540d\u4e2d\u53ef\u80fd\u5305\u542b\u6570\u5b57\uff0c\u6211\u4eec\u9700\u8981\u6309\u7167\u4eba\u7c7b\u4e60\u60ef\u7684\u201c\u81ea\u7136\u6392\u5e8f\u201d\u987a\u5e8f\u8fdb\u884c\u6392\u5e8f\u3002\u6b64\u65f6\u53ef\u4ee5\u4f7f\u7528<code>natsort<\/code>\u5e93\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from natsort import natsorted<\/p>\n<p>import os<\/p>\n<p>def natural_sort_images(directory):<\/p>\n<p>    files = os.listdir(directory)<\/p>\n<p>    images = [file for file in files if file.endswith(&#39;.jpg&#39;)]<\/p>\n<p>    # \u4f7f\u7528\u81ea\u7136\u6392\u5e8f<\/p>\n<p>    sorted_images = natsorted(images)<\/p>\n<p>    return sorted_images<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>sorted_images = natural_sort_images(&#39;\/path\/to\/images&#39;)<\/p>\n<p>print(sorted_images)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u6839\u636e\u56fe\u50cf\u5185\u5bb9\u6392\u5e8f<\/p>\n<\/p>\n<p><p>\u56fe\u50cf\u5185\u5bb9\u6392\u5e8f\u901a\u5e38\u7528\u4e8e\u9700\u8981\u6839\u636e\u56fe\u50cf\u7684\u89c6\u89c9\u7279\u5f81\u8fdb\u884c\u6392\u5e8f\u7684\u573a\u666f\uff0c\u4f8b\u5982\u76f8\u4f3c\u5ea6\u6392\u5e8f\u3002\u53ef\u4ee5\u501f\u52a9\u8ba1\u7b97\u673a\u89c6\u89c9\u5e93\u5982OpenCV\u548cscikit-image\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u76f8\u4f3c\u5ea6\u6392\u5e8f<\/strong><\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u8ba1\u7b97\u56fe\u50cf\u4e4b\u95f4\u7684\u76f8\u4f3c\u5ea6\uff0c\u53ef\u4ee5\u5bf9\u5b83\u4eec\u8fdb\u884c\u6392\u5e8f\u3002\u6b64\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u6839\u636e\u5185\u5bb9\u76f8\u4f3c\u6027\u5bf9\u56fe\u50cf\u8fdb\u884c\u5206\u7c7b\u6216\u67e5\u627e\u76f8\u4f3c\u56fe\u50cf\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>import numpy as np<\/p>\n<p>def image_histogram_similarity(image1, image2):<\/p>\n<p>    # \u8ba1\u7b97\u56fe\u50cf\u7684\u76f4\u65b9\u56fe<\/p>\n<p>    hist1 = cv2.calcHist([image1], [0], None, [256], [0, 256])<\/p>\n<p>    hist2 = cv2.calcHist([image2], [0], None, [256], [0, 256])<\/p>\n<p>    # \u5f52\u4e00\u5316\u76f4\u65b9\u56fe<\/p>\n<p>    hist1 = cv2.normalize(hist1, hist1).flatten()<\/p>\n<p>    hist2 = cv2.normalize(hist2, hist2).flatten()<\/p>\n<p>    # \u8ba1\u7b97\u76f8\u4f3c\u5ea6\uff08\u76f8\u5173\u6027\uff09<\/p>\n<p>    similarity = cv2.compareHist(hist1, hist2, cv2.HISTCMP_CORREL)<\/p>\n<p>    return similarity<\/p>\n<p>def sort_images_by_content(directory):<\/p>\n<p>    files = os.listdir(directory)<\/p>\n<p>    images = [file for file in files if file.endswith(&#39;.jpg&#39;)]<\/p>\n<p>    images_paths = [os.path.join(directory, img) for img in images]<\/p>\n<p>    # \u8bfb\u53d6\u56fe\u50cf\u5e76\u8ba1\u7b97\u76f8\u4f3c\u5ea6<\/p>\n<p>    img_objects = [cv2.imread(img_path) for img_path in images_paths]<\/p>\n<p>    similarities = []<\/p>\n<p>    for i in range(len(img_objects) - 1):<\/p>\n<p>        sim = image_histogram_similarity(img_objects[i], img_objects[i+1])<\/p>\n<p>        similarities.append((images[i], sim))<\/p>\n<p>    # \u6839\u636e\u76f8\u4f3c\u5ea6\u6392\u5e8f<\/p>\n<p>    similarities.sort(key=lambda x: x[1], reverse=True)<\/p>\n<p>    sorted_images = [img[0] for img in similarities]<\/p>\n<p>    return sorted_images<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>sorted_images = sort_images_by_content(&#39;\/path\/to\/images&#39;)<\/p>\n<p>print(sorted_images)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u7279\u5f81\u63d0\u53d6\u6392\u5e8f<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u63d0\u53d6\u56fe\u50cf\u7684\u7279\u5f81\u5411\u91cf\u5e76\u5bf9\u5176\u8fdb\u884c\u6392\u5e8f\u3002\u6b64\u65b9\u6cd5\u901a\u5e38\u7528\u4e8e\u66f4\u590d\u6742\u7684\u56fe\u50cf\u5206\u6790\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from sklearn.cluster import KMeans<\/p>\n<p>from skimage.feature import hog<\/p>\n<p>from skimage import io<\/p>\n<p>def extract_hog_features(image):<\/p>\n<p>    # \u63d0\u53d6HOG\u7279\u5f81<\/p>\n<p>    features, _ = hog(image, orientations=8, pixels_per_cell=(16, 16),<\/p>\n<p>                      cells_per_block=(1, 1), visualize=True, multichannel=True)<\/p>\n<p>    return features<\/p>\n<p>def sort_images_by_features(directory):<\/p>\n<p>    files = os.listdir(directory)<\/p>\n<p>    images = [file for file in files if file.endswith(&#39;.jpg&#39;)]<\/p>\n<p>    images_paths = [os.path.join(directory, img) for img in images]<\/p>\n<p>    # \u63d0\u53d6\u7279\u5f81<\/p>\n<p>    features_list = []<\/p>\n<p>    for img_path in images_paths:<\/p>\n<p>        image = io.imread(img_path)<\/p>\n<p>        features = extract_hog_features(image)<\/p>\n<p>        features_list.append((img_path, features))<\/p>\n<p>    # \u4f7f\u7528KMeans\u8fdb\u884c\u805a\u7c7b\u6392\u5e8f\uff08\u4f5c\u4e3a\u793a\u4f8b\uff09<\/p>\n<p>    kmeans = KMeans(n_clusters=len(images))<\/p>\n<p>    features_matrix = np.array([feat[1] for feat in features_list])<\/p>\n<p>    kmeans.fit(features_matrix)<\/p>\n<p>    sorted_images = sorted(features_list, key=lambda x: kmeans.labels_[features_list.index(x)])<\/p>\n<p>    return [img[0] for img in sorted_images]<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>sorted_images = sort_images_by_features(&#39;\/path\/to\/images&#39;)<\/p>\n<p>print(sorted_images)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u6839\u636e\u5143\u6570\u636e\u6392\u5e8f<\/p>\n<\/p>\n<p><p>\u56fe\u50cf\u6587\u4ef6\u901a\u5e38\u5305\u542b\u4e30\u5bcc\u7684\u5143\u6570\u636e\uff0c\u5982\u62cd\u6444\u65f6\u95f4\u3001\u5730\u70b9\u7b49\u3002\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u8fd9\u4e9b\u4fe1\u606f\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u8bfb\u53d6\u548c\u6392\u5e8f\u56fe\u50cf\u5143\u6570\u636e<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528PIL\u5e93\u7ed3\u5408<code>exif<\/code>\u5e93\u8bfb\u53d6\u56fe\u50cf\u7684EXIF\u5143\u6570\u636e\uff0c\u5e76\u6839\u636e\u7279\u5b9a\u5b57\u6bb5\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<p>from PIL.ExifTags import TAGS<\/p>\n<p>import os<\/p>\n<p>def get_image_exif(image_path):<\/p>\n<p>    image = Image.open(image_path)<\/p>\n<p>    exif_data = image._getexif()<\/p>\n<p>    exif = {}<\/p>\n<p>    for tag, value in exif_data.items():<\/p>\n<p>        decoded = TAGS.get(tag, tag)<\/p>\n<p>        exif[decoded] = value<\/p>\n<p>    return exif<\/p>\n<p>def sort_images_by_metadata(directory):<\/p>\n<p>    files = os.listdir(directory)<\/p>\n<p>    images = [file for file in files if file.endswith(&#39;.jpg&#39;)]<\/p>\n<p>    images_paths = [os.path.join(directory, img) for img in images]<\/p>\n<p>    # \u63d0\u53d6\u5143\u6570\u636e\u5e76\u6392\u5e8f<\/p>\n<p>    metadata_list = []<\/p>\n<p>    for img_path in images_paths:<\/p>\n<p>        exif = get_image_exif(img_path)<\/p>\n<p>        # \u5047\u8bbe\u6839\u636e\u62cd\u6444\u65f6\u95f4\u6392\u5e8f<\/p>\n<p>        capture_time = exif.get(&#39;DateTime&#39;, &#39;&#39;)<\/p>\n<p>        metadata_list.append((img_path, capture_time))<\/p>\n<p>    # \u6392\u5e8f<\/p>\n<p>    metadata_list.sort(key=lambda x: x[1])<\/p>\n<p>    return [img[0] for img in metadata_list]<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>sorted_images = sort_images_by_metadata(&#39;\/path\/to\/images&#39;)<\/p>\n<p>print(sorted_images)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u4e09\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u9700\u6c42\u5bf9\u56fe\u50cf\u8fdb\u884c\u6392\u5e8f\u3002\u6839\u636e\u6587\u4ef6\u540d\u6392\u5e8f\u9002\u7528\u4e8e\u7b80\u5355\u7684\u6587\u4ef6\u7ba1\u7406\u4efb\u52a1\uff0c\u800c\u6839\u636e\u56fe\u50cf\u5185\u5bb9\u548c\u5143\u6570\u636e\u6392\u5e8f\u5219\u9002\u7528\u4e8e\u66f4\u590d\u6742\u7684\u56fe\u50cf\u5206\u6790\u548c\u5904\u7406\u573a\u666f\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u6216\u8005\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\u66f4\u7cbe\u786e\u7684\u6392\u5e8f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5bf9\u56fe\u50cf\u8fdb\u884c\u6392\u5e8f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u5e93\u6765\u5bf9\u56fe\u50cf\u8fdb\u884c\u6392\u5e8f\uff0c\u6bd4\u5982PIL\uff08Pillow\uff09\u3001OpenCV\u548cNumPy\u3002\u9996\u5148\uff0c\u53ef\u4ee5\u5c06\u56fe\u50cf\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u7136\u540e\u6839\u636e\u67d0\u79cd\u6807\u51c6\uff08\u5982\u6587\u4ef6\u540d\u3001\u56fe\u50cf\u5927\u5c0f\u3001\u521b\u5efa\u65f6\u95f4\u7b49\uff09\u5bf9\u5b83\u4eec\u8fdb\u884c\u6392\u5e8f\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u8bfb\u53d6\u56fe\u50cf\u3001\u5b9a\u4e49\u6392\u5e8f\u6807\u51c6\u5e76\u4f7f\u7528Python\u7684\u5185\u7f6e\u6392\u5e8f\u51fd\u6570\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<p><strong>\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u5e93\u6765\u5bf9\u56fe\u50cf\u8fdb\u884c\u6392\u5e8f\uff1f<\/strong><br \/>\u5e38\u7528\u7684\u5e93\u5305\u62ecPIL\uff08Pillow\uff09\uff0c\u5b83\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u56fe\u50cf\u5904\u7406\u529f\u80fd\uff1bOpenCV\uff0c\u9002\u7528\u4e8e\u66f4\u590d\u6742\u7684\u56fe\u50cf\u5904\u7406\u4efb\u52a1\uff1b\u4ee5\u53caNumPy\uff0c\u65b9\u4fbf\u8fdb\u884c\u6570\u7ec4\u8ba1\u7b97\u3002\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\uff0c\u80fd\u591f\u66f4\u9ad8\u6548\u5730\u5b9e\u73b0\u56fe\u50cf\u6392\u5e8f\u3002<\/p>\n<p><strong>\u5982\u4f55\u6839\u636e\u56fe\u50cf\u7684\u5c5e\u6027\u8fdb\u884c\u6392\u5e8f\uff1f<\/strong><br \/>\u53ef\u4ee5\u6839\u636e\u591a\u79cd\u5c5e\u6027\u5bf9\u56fe\u50cf\u8fdb\u884c\u6392\u5e8f\uff0c\u6bd4\u5982\u56fe\u50cf\u7684\u5927\u5c0f\u3001\u5206\u8fa8\u7387\u6216\u521b\u5efa\u65f6\u95f4\u3002\u4f7f\u7528os\u5e93\u83b7\u53d6\u6587\u4ef6\u5c5e\u6027\uff0c\u7ed3\u5408PIL\u6216OpenCV\u52a0\u8f7d\u56fe\u50cf\uff0c\u4e4b\u540e\u5229\u7528Python\u7684\u6392\u5e8f\u51fd\u6570\uff08\u5982sorted\uff09\u6839\u636e\u8bbe\u5b9a\u7684\u5c5e\u6027\u8fdb\u884c\u6392\u5e8f\u3002\u8fd9\u6837\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ec4\u7ec7\u548c\u7ba1\u7406\u56fe\u50cf\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5bf9\u56fe\u50cf\u6392\u5e8f\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u6839\u636e\u6587\u4ef6\u540d\u6392\u5e8f\u3001\u56fe\u50cf\u5185\u5bb9\u6392\u5e8f\u3001\u5143\u6570\u636e\u6392\u5e8f\u3002\u901a\u8fc7\u6587\u4ef6\u540d\u6392\u5e8f\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u53ef\u901a [&hellip;]","protected":false},"author":3,"featured_media":1006703,"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\/1006694"}],"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=1006694"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1006694\/revisions"}],"predecessor-version":[{"id":1006706,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1006694\/revisions\/1006706"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1006703"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1006694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1006694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1006694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}