{"id":116806,"date":"2026-10-22T04:57:16","date_gmt":"2026-10-21T20:57:16","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/116806.html"},"modified":"2026-10-22T04:57:16","modified_gmt":"2026-10-21T20:57:16","slug":"%e6%af%95%e8%ae%be%e5%bc%80%e6%ba%90-%e5%9f%ba%e4%ba%8epython%e7%9a%84%e7%ad%94%e9%a2%98%e5%8d%a1%e8%af%86%e5%88%ab%e8%af%84%e5%88%86%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/116806.html","title":{"rendered":"\u6bd5\u8bbe\u5f00\u6e90 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>0 \u7b80\u4ecb<\/li>\n<li>\u8bfe\u9898\u7b80\u4ecb<\/li>\n<li>\u4ec0\u4e48\u662f\u673a\u5668\u89c6\u89c9<\/li>\n<li>\u5b9e\u73b0\u6b65\u9aa4<\/li>\n<li>\u8be6\u7ec6\u8bbe\u8ba1<\/li>\n<li>\n<ul>\n<li>\u56fe\u7247\u8bfb\u53d6<\/li>\n<li>canny\u8fb9\u7f18\u68c0\u6d4b<\/li>\n<li>\u56db\u70b9\u53d8\u6362 \u5212\u51fa\u533a\u57df<\/li>\n<li>\u5904\u7406\u9009\u62e9\u9898\u533a\u57df<\/li>\n<li>\n<ul>\n<li>\u63d0\u53d6\u9009\u9879\u8f6e\u5ed3<\/li>\n<li>\u5224\u65ad\u9009\u9879<\/li>\n<\/ul>\n<\/li>\n<li>\u8bfb\u53d6\u6b63\u786e\u7ed3\u679c<\/li>\n<\/ul>\n<\/li>\n<li>\u6700\u540e<\/li>\n<\/ul>\n<h2>0 \u7b80\u4ecb<\/h2>\n<p>\u4eca\u5929\u5b66\u957f\u5411\u5927\u5bb6\u5206\u4eab\u4e00\u4e2a\u6bd5\u4e1a\u8bbe\u8ba1\u9879\u76ee<\/p>\n<p>\u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf<\/p>\n<p>\u9879\u76ee\u8fd0\u884c\u6548\u679c&#xff1a;<\/p>\n<\/p>\n<p>\u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8eopencv\u7684\u7b54\u9898\u5361\u8bc6\u522b<\/p>\n<\/p>\n<p>&#x1f9ff;\u9879\u76ee\u5206\u4eab&#xff1a;\u89c1\u4e3b\u9875\u4efb\u610f\u7f6e\u9876\u6587\u7ae0<\/p>\n<h2>\u8bfe\u9898\u7b80\u4ecb<\/h2>\n<p>\u4eca\u5929\u6211\u4eec\u6765\u4ecb\u7ecd\u4e00\u4e2a\u4e0e\u673a\u5668\u89c6\u89c9\u76f8\u5173\u7684\u6bd5\u4e1a\u8bbe\u8ba1<\/p>\n<p>\u57fa\u4e8e\u673a\u5668\u89c6\u89c9\u7684\u7b54\u9898\u5361\u8bc6\u522b\u7cfb\u7edf<\/p>\n<p>\u591a\u8bf4\u4e00\u53e5, \u73b0\u5728\u8d8a\u6765\u8d8a\u591a\u7684\u5b66\u6821\u4ee5\u53ca\u5bfc\u5e08\u9009\u9898\u504f\u5411\u4e8e\u7b97\u6cd5\u7c7b, \u8fd9\u51e0\u5e74\u5f80\u5f80\u505aweb\u7cfb\u7edf\u7684\u540c\u5b66\u5f88\u96be\u901a\u8fc7\u7b54\u8fa9, \u4ed4\u7ec6\u4e00\u60f3\u8fd9\u4e5f\u5728\u60c5\u7406\u4e4b\u4e2d, \u6bd5\u4e1a\u8bbe\u8ba1\u662f\u5927\u5b66\u56db\u5e74\u6280\u672f\u6c34\u5e73\u7684\u4f53\u73b0, \u53ea\u505a\u51fa\u4e2aXXX\u7ba1\u7406\u7cfb\u7edf\u672a\u514d\u592a\u5bd2\u9178, \u800c\u4e14web\u7cfb\u7edf\u9009\u9898\u6bcf\u5e74\u90fd\u662f\u90a3\u51e0\u4e2a\u8001\u5e08\u770b\u7740\u4e5f\u5410\u4e86, \u4e0d\u5361\u5b66\u751f\u624d\u602a<\/p>\n<p>\u6240\u4ee5\u540c\u5b66\u4eec, \u6bd5\u8bbe\u9009\u9898\u8981\u614e\u91cd, \u6700\u597d\u5148\u627e\u5df2\u7ecf\u6bd5\u4e1a\u4e86\u7684\u5b66\u957f\u5b66\u59d0\u4eec\u4e86\u89e3\u4e00\u4e0b, \u81f3\u5c11\u5f04\u6e05\u81ea\u5df1\u505a\u7684\u7cfb\u7edf\u4f1a\u88ab\u8001\u5e08\u95ee\u5230\u4ec0\u4e48\u95ee\u9898, \u4e0d\u7136\u53ea\u4f1a\u4e3a\u81ea\u5df1\u7684\u6bd5\u4e1a\u6316\u5751\u800c\u5df2<\/p>\n<h2>\u4ec0\u4e48\u662f\u673a\u5668\u89c6\u89c9<\/h2>\n<p>\u7b54\u9898\u5361\u8bc6\u522b\u4f7f\u7528\u7684\u662f\u673a\u5668\u89c6\u89c9\u8bc6\u522b\u7b97\u6cd5, \u90a3\u4ec0\u4e48\u662f\u673a\u5668\u89c6\u89c9\u7b97\u6cd5\u5462?<\/p>\n<p>\u673a\u5668\u89c6\u89c9&#xff0c;\u5e76\u4e0d\u662f\u89c6\u89c9&#xff0c;\u4ed6\u4e0d\u5177\u6709\u4eba\u7c7b\u7684\u89c6\u89c9\u7406\u89e3\u80fd\u529b&#xff0c;\u8bf4\u7a7f\u4e86\u4ed6\u53ea\u662f\u56fe\u50cf\u5904\u7406\u6280\u672f\u7684\u5de5\u7a0b\u5e94\u7528&#xff0c;\u90fd\u662f\u7531\u5de5\u7a0b\u5e08\u5f00\u53d1\u7684\u7b97\u6cd5\u6765\u5b8c\u6210\u4efb\u52a1&#xff0c;\u5e76\u4e14\u662f\u7279\u5b9a\u7684\u7b97\u6cd5\u5b8c\u6210\u7279\u5b9a\u7684\u4efb\u52a1&#xff0c;\u4e92\u76f8\u4e4b\u95f4\u6ca1\u6709\u901a\u7528\u6027\u3002<\/p>\n<p>\u5e9f\u8bdd\u4e0d\u591a\u8bf4, \u5b66\u957f\u5230\u5927\u5bb6\u770b\u770b, \u8fd9\u9879\u6280\u672f\u5b9e\u73b0\u7684\u6548\u679c\u5982\u4f55.<\/p>\n<h2>\u5b9e\u73b0\u6b65\u9aa4<\/h2>\n<p>\u7b54\u9898\u5361\u8bc6\u522b\u6b65\u9aa4:<\/p>\n<ul>\n<li>Step #1: \u68c0\u6d4b\u5230\u56fe\u7247\u4e2d\u7684\u7b54\u9898\u5361<\/li>\n<li>Step #2: \u5e94\u7528\u900f\u89c6\u53d8\u6362\u6765\u63d0\u53d6\u56fe\u4e2d\u7684\u7b54\u9898\u5361&#xff08;\u4ee5\u81ea\u4e0a\u5411\u4e0b\u7684\u9e1f\u77b0\u89c6\u56fe&#xff09;<\/li>\n<li>Step #3: \u4ece\u900f\u89c6\u53d8\u6362\u540e\u7684\u7b54\u9898\u5361\u4e2d\u63d0\u53d6 the set of \u6c14\u6ce1\/\u5706\u70b9 (\u7b54\u6848\u9009\u9879)<\/li>\n<li>Step #4: \u5c06\u9898\u76ee\/\u6c14\u6ce1\u6392\u5e8f\u6210\u884c<\/li>\n<li>Step #5: \u5224\u65ad\u6bcf\u884c\u4e2d\u88ab\u6807\u8bb0\/\u6d82\u7684\u7b54\u6848<\/li>\n<li>Step #6: \u5728\u6211\u4eec\u7684\u7b54\u6848\u5b57\u5178\u4e2d\u67e5\u627e\u6b63\u786e\u7684\u7b54\u6848\u6765\u5224\u65ad\u7b54\u9898\u662f\u5426\u6b63\u786e<\/li>\n<li>Step #7: \u4e3a\u5176\u5b83\u9898\u76ee\u91cd\u590d\u4e0a\u8ff0\u64cd\u4f5c<\/li>\n<\/ul>\n<p>\u9996\u5148&#xff0c;\u6253\u5f00\u6444\u50cf\u5934\u626b\u63cf\u7b54\u9898\u5361 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205707-6ad927238af0c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5bf9\u6444\u50cf\u5934\u83b7\u53d6\u5230\u7684\u7b54\u9898\u5361\u56fe\u7247\u8fdb\u884c\u4e8c\u503c\u5316\u8150\u8680\u81a8\u80c0\u8fb9\u7f18\u68c0\u6d4b <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205708-6ad927240259b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8f6e\u5ed3\u8ba1\u7b97&#xff0c;\u8fdb\u884c\u9876\u70b9\u5bf9\u9f50&#xff0c;\u5f97\u5230\u4e0b\u56fe<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205708-6ad9272428ace.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5bf9\u56fe\u50cf\u8fdb\u884c\u503e\u659c\u53d8\u6362\u548c\u4eff\u5c04\u53d8\u6362&#xff0c;\u5f97\u5230\u4e0b\u56fe<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205708-6ad9272463b3c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5f00\u59cb\u5bf9\u56fe\u50cf\u8fdb\u884c\u4e8c\u503c\u5316&#xff0c;\u8fb9\u7f18\u68c0\u6d4b\u7b49\u64cd\u4f5c&#xff0c;\u6700\u7ec8\u5f97\u5230\u7ed3\u679c <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205708-6ad92724953ad.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205708-6ad92724b61b6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205708-6ad92724d87cf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205709-6ad9272501af1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u8be6\u7ec6\u8bbe\u8ba1<\/h2>\n<h3>\u56fe\u7247\u8bfb\u53d6<\/h3>\n<p>\u4e3b\u8981\u91c7\u7528\u4e86python&#043;opencv \u56e0\u4e3a\u8981\u505a\u540e\u7eed\u5206\u5272&#xff0c;\u6240\u4ee5\u80af\u5b9a\u8981\u7528\u5230\u8fb9\u7f18\u68c0\u6d4b&#xff0c;\u6240\u4ee5\u5148\u7070\u5ea6\u5316\u518d\u4e8c\u503c\u5316<\/p>\n<p>\u200b<\/p>\n<p>    #\u8bfb\u53d6\u56fe\u7247<br \/>\n    img&#061;cv2.imread(&#039;images\/5.png&#039;)<br \/>\n    #\u8f6c\u6362\u4e3a\u7070\u5ea6\u56fe<br \/>\n    gray &#061; cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)<br \/>\n    #\u9ad8\u65af\u6ee4\u6ce2<br \/>\n    blurred&#061;cv2.GaussianBlur(gray,(3,3),0)<br \/>\n    #\u589e\u5f3a\u4eae\u5ea6<br \/>\n    blurred&#061;imgBrightness(blurred,1.5,3&#xff09;<br \/>\n    #\u81ea\u9002\u5e94\u4e8c\u503c\u5316<br \/>\n    blurred&#061;cv2.adaptiveThreshold(blurred,255,cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY,51,2)<br \/>\n&#039;&#039;&#039;<br \/>\nadaptiveThreshold\u51fd\u6570&#xff1a;\u7b2c\u4e00\u4e2a\u53c2\u6570src\u6307\u539f\u56fe\u50cf&#xff0c;\u539f\u56fe\u50cf\u5e94\u8be5\u662f\u7070\u5ea6\u56fe\u3002<br \/>\n    \u7b2c\u4e8c\u4e2a\u53c2\u6570x\u6307\u5f53\u50cf\u7d20\u503c\u9ad8\u4e8e&#xff08;\u6709\u65f6\u662f\u5c0f\u4e8e&#xff09;\u9608\u503c\u65f6\u5e94\u8be5\u88ab\u8d4b\u4e88\u7684\u65b0\u7684\u50cf\u7d20\u503c<br \/>\n    \u7b2c\u4e09\u4e2a\u53c2\u6570adaptive_method \u6307&#xff1a; CV_ADAPTIVE_THRESH_MEAN_C \u6216 CV_ADAPTIVE_THRESH_GAUSSIAN_C<br \/>\n    \u7b2c\u56db\u4e2a\u53c2\u6570threshold_type  \u6307\u53d6\u9608\u503c\u7c7b\u578b&#xff1a;\u5fc5\u987b\u662f\u4e0b\u8005\u4e4b\u4e00<br \/>\n                        \u2022 CV_THRESH_BINARY,<br \/>\n                        \u2022 CV_THRESH_BINARY_INV<br \/>\n    \u7b2c\u4e94\u4e2a\u53c2\u6570 block_size \u6307\u7528\u6765\u8ba1\u7b97\u9608\u503c\u7684\u8c61\u7d20\u90bb\u57df\u5927\u5c0f: 3, 5, 7, &#8230;<br \/>\n    \u7b2c\u516d\u4e2a\u53c2\u6570param1    \u6307\u4e0e\u65b9\u6cd5\u6709\u5173\u7684\u53c2\u6570\u3002\u5bf9\u65b9\u6cd5CV_ADAPTIVE_THRESH_MEAN_C \u548c CV_ADAPTIVE_THRESH_GAUSSIAN_C&#xff0c; \u5b83\u662f\u4e00\u4e2a\u4ece\u5747\u503c\u6216\u52a0\u6743\u5747\u503c\u63d0\u53d6\u7684\u5e38\u6570, \u5c3d\u7ba1\u5b83\u53ef\u4ee5\u662f\u8d1f\u6570\u3002<br \/>\n&#039;&#039;&#039;<br \/>\n   blurred&#061;cv2.copyMakeBorder(blurred,5,5,5,5,cv2.BORDER_CONSTANT,value&#061;(255,255,255))<\/p>\n<p>\u5904\u7406\u7ed3\u679c\u5982\u4e0b <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205709-6ad927252ccfc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>canny\u8fb9\u7f18\u68c0\u6d4b<\/h3>\n<p>\u6839\u636e\u8f6e\u5ed3\u5927\u5c0f&#xff0c;\u5c06\u8981\u5904\u7406\u7684\u51e0\u90e8\u5206\u5206\u5272\u51fa\u6765 \u5982\u679c\u63d0\u53d6\u6548\u679c\u4e0d\u597d&#xff0c;\u53ef\u80fd\u662f\u56e0\u4e3a\u62cd\u6444\u5149\u7ebf\u539f\u56e0&#xff0c;\u5bfc\u81f4\u56fe\u7247\u4eae\u5ea6\u4e0d\u597d&#xff0c;\u589e\u5f3a\u4e00\u4e0b\u4eae\u5ea6&#xff0c;\u4e8c\u503c\u5316\u540e\u7684\u56fe\u7247\u6548\u679c\u4f1a\u597d\u4e00\u70b9&#xff0c;\u8fd9\u6837canny\u8fb9\u7f18\u68c0\u6d4b\u7ed3\u679c\u4e5f\u4f1a\u597d\u4e00\u70b9<\/p>\n<p>\u200b<\/p>\n<p>#\u589e\u5f3a\u4eae\u5ea6<br \/>\ndef imgBrightness(img1, c, b):<br \/>\n    rows, cols&#061; img1.shape<br \/>\n    blank &#061; np.zeros([rows, cols], img1.dtype)<br \/>\n    rst &#061; cv2.addWeighted(img1, c, blank, 1-c, b)<br \/>\n    return rst<\/p>\n<p>\u200b \u200b<\/p>\n<p>  #canny\u8fb9\u7f18\u68c0\u6d4b<br \/>\n    edged &#061; cv2.Canny(blurred,0,255)<br \/>\n    cnts,hierarchy&#061;cv2.findContours(edged,cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_SIMPLE)<br \/>\n    docCnt &#061; []<br \/>\n    count&#061;0<br \/>\n    #\u786e\u4fdd\u81f3\u5c11\u6709\u4e00\u4e2a\u8f6e\u5ed3\u88ab\u627e\u5230<br \/>\n    if len(cnts)&gt;0:<br \/>\n        #\u5c06\u8f6e\u5ed3\u6309\u7167\u5927\u5c0f\u6392\u5e8f<br \/>\n        cnts&#061;sorted(cnts,key&#061;cv2.contourArea,reverse&#061;True)<br \/>\n    #\u5bf9\u6392\u5e8f\u540e\u7684\u8f6e\u5ed3\u8fdb\u884c\u5faa\u73af\u5904\u7406<br \/>\n    for c in cnts:<br \/>\n        #\u83b7\u53d6\u8fd1\u4f3c\u7684\u8f6e\u5ed3<br \/>\n        peri &#061; cv2.arcLength(c,True)<br \/>\n        approx &#061; cv2.approxPolyDP(c,0.02*peri,True)<br \/>\n        #\u5982\u679c\u8fd1\u4f3c\u8f6e\u5ed3\u6709\u56db\u4e2a\u9876\u70b9&#xff0c;\u90a3\u4e48\u5c31\u8ba4\u4e3a\u627e\u5230\u4e86\u7b54\u9898\u5361<br \/>\n        if len(approx) &#061;&#061; 4:<br \/>\n            docCnt.append(approx)<br \/>\n            count&#043;&#061;1<br \/>\n            if count&#061;&#061;3:<br \/>\n                break<\/p>\n<p>\u5904\u7406\u7ed3\u679c\u5982\u4e0b&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205709-6ad927258b2b1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u56db\u70b9\u53d8\u6362 \u5212\u51fa\u533a\u57df<\/h3>\n<p>\u76f4\u63a5\u7528imutils\u5305\u4e2d\u7684four_point_transform\u5c06\u9700\u8981\u7684\u533a\u57df\u63d0\u53d6\u51fa\u6765 \u5f69\u8272\u56fe\u4fbf\u4e8e\u5c55\u793a \u7070\u5ea6\u56fe\u7528\u6765\u5904\u7406<\/p>\n<p>\u200b<\/p>\n<p>    #\u56db\u70b9\u53d8\u6362&#xff0c;\u5212\u51fa\u9009\u62e9\u9898\u533a\u57df<br \/>\n    paper &#061; four_point_transform(img,np.array(docCnt[0]).reshape(4,2))<br \/>\n    warped &#061; four_point_transform(gray,np.array(docCnt[0]).reshape(4,2))<br \/>\n    #\u56db\u70b9\u53d8\u6362&#xff0c;\u5212\u51fa\u51c6\u8003\u8bc1\u533a\u57df<br \/>\n    ID_Area &#061; four_point_transform(img,np.array(docCnt[1]).reshape(4,2))<br \/>\n    ID_Area_warped &#061; four_point_transform(gray,np.array(docCnt[1]).reshape(4,2))<br \/>\n    #\u56db\u70b9\u53d8\u6362&#xff0c;\u5212\u51fa\u79d1\u76ee\u533a\u57df<br \/>\n    Subject_Area &#061; four_point_transform(img,np.array(docCnt[2]).reshape(4,2))<br \/>\n    Subject_Area_warped &#061; four_point_transform(gray,np.array(docCnt[2]).reshape(4,2))<\/p>\n<p>\u5904\u7406\u7ed3\u679c\u5982\u4e0b&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205709-6ad92725b4c1e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5904\u7406\u9009\u62e9\u9898\u533a\u57df<\/h3>\n<h4>\u63d0\u53d6\u9009\u9879\u8f6e\u5ed3<\/h4>\n<p>\u200b<\/p>\n<p> &#039;&#039;&#039;<br \/>\n    \u5904\u7406\u9009\u62e9\u9898\u533a\u57df\u7edf\u8ba1\u7b54\u9898\u7ed3\u679c<br \/>\n    &#039;&#039;&#039;<br \/>\n    thresh &#061; cv2.threshold(warped,0,255,cv2.THRESH_BINARY_INV|cv2.THRESH_OTSU)[1]<br \/>\n    thresh &#061; cv2.resize(thresh,(2400,2800),cv2.INTER_LANCZOS4)<br \/>\n    paper &#061; cv2.resize(paper,(2400,2800),cv2.INTER_LANCZOS4)<br \/>\n    warped &#061; cv2.resize(warped,(2400,2800),cv2.INTER_LANCZOS4)<br \/>\n    cnts,hierarchy &#061; cv2.findContours(thresh.copy(),cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_SIMPLE)<br \/>\n    questionCnts&#061;[]<br \/>\n    answers&#061;[]<br \/>\n    #\u5bf9\u6bcf\u4e00\u4e2a\u8f6e\u5ed3\u8fdb\u884c\u5faa\u73af\u5904\u7406<br \/>\n    for c in cnts:<br \/>\n        #\u8ba1\u7b97\u8f6e\u5ed3\u7684\u8fb9\u754c\u6846&#xff0c;\u7136\u540e\u5229\u7528\u8fb9\u754c\u6846\u6570\u636e\u8ba1\u7b97\u5bbd\u9ad8\u6bd4<br \/>\n        (x,y,w,h) &#061; cv2.boundingRect(c)<br \/>\n        ar &#061; w\/float(h)<br \/>\n        #\u5224\u65ad\u8f6e\u5ed3\u662f\u5426\u662f\u7b54\u9898\u6846<br \/>\n        if w&gt;&#061;40 and h&gt;&#061;15 and ar&gt;&#061;1 and ar&lt;&#061;1.8:<br \/>\n          M &#061; cv2.moments(c)<br \/>\n          cX &#061; int(M[&#034;m10&#034;]\/M[&#034;m00&#034;])<br \/>\n          cY &#061; int(M[&#034;m01&#034;]\/M[&#034;m00&#034;])<br \/>\n          questionCnts.append(c)<br \/>\n          answers.append((cX,cY))<br \/>\n          cv2.circle(paper,(cX,cY),7,(255,255,255),-1)<br \/>\n    ID_Answer&#061;judge_point(answers,mode&#061;&#034;point&#034;)<br \/>\n    cv2.drawContours(paper,questionCnts,-1,(255,0,0),3)<\/p>\n<p>\u5904\u7406\u7ed3\u679c\u5982\u4e0b&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205710-6ad92726d6a99.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u5224\u65ad\u9009\u9879<\/h4>\n<p>\u200b<\/p>\n<p>def judgeX(x,mode):<br \/>\n    if mode&#061;&#061;&#034;point&#034;:<br \/>\n        if x&lt;600:<br \/>\n            return int(x\/100)&#043;1<br \/>\n        elif x&gt;600 and x&lt;1250:<br \/>\n            return int((x-650)\/100)&#043;6<br \/>\n        elif x&gt;1250 and x&lt;1900:<br \/>\n            return int((x-1250)\/100)&#043;11<br \/>\n        elif x&gt;1900:<br \/>\n            return int((x-1900)\/100)&#043;16<br \/>\n    elif mode&#061;&#061;&#034;ID&#034;:<br \/>\n        return int((x-110)\/260)&#043;1<br \/>\n    elif mode&#061;&#061;&#034;subject&#034;:<br \/>\n        if x&lt;1500:<br \/>\n            return False<\/p>\n<p>\u200b \u200b<\/p>\n<p>\u200b \u200b<\/p>\n<p>def judge(x,y,mode):<br \/>\n    if judgeY(y,mode)!&#061;False and judgeX(x,mode)!&#061;False:<br \/>\n        if mode&#061;&#061;&#034;point&#034;:<br \/>\n           return (int(y\/560)*20&#043;judgeX(x,mode),judgeY(y,mode))<br \/>\n        elif mode&#061;&#061;&#034;ID&#034;:<br \/>\n           return (judgeX(x,mode),judgeY(y,mode))<br \/>\n        elif mode&#061;&#061;&#034;subject&#034;:<br \/>\n           return judgeY(y,mode)<br \/>\n    else:<br \/>\n      return 0<br \/>\ndef judge_point(answers,mode):<br \/>\n    IDAnswer&#061;[]<br \/>\n    for answer in answers:<br \/>\n        if(judge(answer[0],answer[1],mode)!&#061;0):<br \/>\n          IDAnswer.append(judge(answer[0],answer[1],mode))<br \/>\n        else:<br \/>\n          continue<br \/>\n    IDAnswer.sort()<br \/>\n    return IDAnswer<br \/>\ndef judge_ID(IDs,mode):<br \/>\n    student_ID&#061;[]<br \/>\n    for ID in IDs:<br \/>\n        if(judge(ID[0],ID[1],mode)!&#061;False):<br \/>\n          student_ID.append(judge(ID[0],ID[1],mode))<br \/>\n        else:<br \/>\n          continue<br \/>\n    student_ID.sort()<br \/>\n    return student_ID<br \/>\ndef judge_Subject(subject,mode):<br \/>\n    return judge(subject[0][0],subject[0][1],mode)<\/p>\n<h3>\u8bfb\u53d6\u6b63\u786e\u7ed3\u679c<\/h3>\n<p>\u200b<\/p>\n<p>&#039;&#039;&#039;<br \/>\n    \u8bfb\u53d6\u7ed3\u679c<br \/>\n    &#039;&#039;&#039;<br \/>\n    df &#061; pd.read_excel(&#034;answer.xlsx&#034;)<br \/>\n    index_list &#061; df[[&#034;\u9898\u53f7&#034;]].values.tolist()<br \/>\n    true_answer_list &#061; df[[&#034;\u7b54\u6848&#034;]].values.tolist()<br \/>\n    index&#061;[]<br \/>\n    true_answer&#061;[]<br \/>\n    score&#061;0<br \/>\n    #\u53bb\u62ec\u53f7<br \/>\n    for i in range(len(index_list)):<br \/>\n       index.append(index_list[i][0])<br \/>\n    for i in range(len(true_answer_list)):<br \/>\n       true_answer.append(true_answer_list[i][0])<br \/>\n    answer_index&#061;[]<br \/>\n    answer_option&#061;[]<br \/>\n    for answer in ID_Answer:<br \/>\n       answer_index.append(answer[0])<br \/>\n       answer_option.append(answer[1])<br \/>\n    for i in range(len(index)):<br \/>\n        if answer_option[i]&#061;&#061;true_answer[i]:<br \/>\n            score&#043;&#061;1<br \/>\n        if i&#043;1&#061;&#061;len(answer_option):<br \/>\n            break<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205713-6ad9272946013.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205714-6ad9272a7ad64.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u6700\u540e<\/h2>\n<p>\u5b9e\u73b0\u6548\u679c&#xff1a; <\/p>\n<p>\u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8eopencv\u7684\u7b54\u9898\u5361\u8bc6\u522b<\/p>\n<\/p>\n<p>&#x1f9ff;\u9879\u76ee\u5206\u4eab&#xff1a;\u89c1\u4e3b\u9875\u4efb\u610f\u7f6e\u9876\u6587\u7ae0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55 0 \u7b80\u4ecb\u8bfe\u9898\u7b80\u4ecb\u4ec0\u4e48\u662f\u673a\u5668\u89c6\u89c9\u5b9e\u73b0\u6b65\u9aa4\u8be6\u7ec6\u8bbe\u8ba1\u56fe\u7247\u8bfb\u53d6canny\u8fb9\u7f18\u68c0\u6d4b\u56db\u70b9\u53d8\u6362 \u5212\u51fa\u533a\u57df\u5904\u7406\u9009\u62e9\u9898\u533a\u57df\u63d0\u53d6\u9009\u9879\u8f6e\u5ed3\u5224\u65ad\u9009\u9879 \u8bfb\u53d6\u6b63\u786e\u7ed3\u679c \u6700\u540e 0 \u7b80\u4ecb<br \/>\n\u4eca\u5929\u5b66\u957f\u5411\u5927\u5bb6\u5206\u4eab\u4e00\u4e2a\u6bd5\u4e1a\u8bbe\u8ba1\u9879\u76ee<br \/>\n\u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf<br \/>\n\u9879\u76ee\u8fd0\u884c\u6548\u679c&#xff1a; \u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8eopencv\u7684\u7b54\u9898\u5361\u8bc6\u522b&#x1f9ff;\u9879\u76ee\u5206\u4eab&#xff1a;\u89c1\u4e3b\u9875\u4efb\u610f\u7f6e\u9876\u6587\u7ae0<br \/>\n\u8bfe\u9898\u7b80\u4ecb<br \/>\n\u4eca\u5929\u6211\u4eec\u6765\u4ecb\u7ecd\u4e00\u4e2a\u4e0e\u673a\u5668\u89c6\u89c9\u76f8\u5173\u7684\u6bd5\u4e1a\u8bbe\u8ba1<br \/>\n\u57fa\u4e8e\u673a\u5668\u89c6\u89c9\u7684\u7b54\u9898\u5361\u8bc6\u522b\u7cfb\u7edf<br \/>\n\u591a<\/p>\n","protected":false},"author":2,"featured_media":116792,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,1908,1520],"topic":[],"class_list":["post-116806","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python","tag-1908","tag-1520"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6bd5\u8bbe\u5f00\u6e90 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/116806.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6bd5\u8bbe\u5f00\u6e90 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f55 0 \u7b80\u4ecb\u8bfe\u9898\u7b80\u4ecb\u4ec0\u4e48\u662f\u673a\u5668\u89c6\u89c9\u5b9e\u73b0\u6b65\u9aa4\u8be6\u7ec6\u8bbe\u8ba1\u56fe\u7247\u8bfb\u53d6canny\u8fb9\u7f18\u68c0\u6d4b\u56db\u70b9\u53d8\u6362 \u5212\u51fa\u533a\u57df\u5904\u7406\u9009\u62e9\u9898\u533a\u57df\u63d0\u53d6\u9009\u9879\u8f6e\u5ed3\u5224\u65ad\u9009\u9879 \u8bfb\u53d6\u6b63\u786e\u7ed3\u679c \u6700\u540e 0 \u7b80\u4ecb \u4eca\u5929\u5b66\u957f\u5411\u5927\u5bb6\u5206\u4eab\u4e00\u4e2a\u6bd5\u4e1a\u8bbe\u8ba1\u9879\u76ee \u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf \u9879\u76ee\u8fd0\u884c\u6548\u679c&#xff1a; \u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8eopencv\u7684\u7b54\u9898\u5361\u8bc6\u522b&#x1f9ff;\u9879\u76ee\u5206\u4eab&#xff1a;\u89c1\u4e3b\u9875\u4efb\u610f\u7f6e\u9876\u6587\u7ae0 \u8bfe\u9898\u7b80\u4ecb \u4eca\u5929\u6211\u4eec\u6765\u4ecb\u7ecd\u4e00\u4e2a\u4e0e\u673a\u5668\u89c6\u89c9\u76f8\u5173\u7684\u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8e\u673a\u5668\u89c6\u89c9\u7684\u7b54\u9898\u5361\u8bc6\u522b\u7cfb\u7edf \u591a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/116806.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-21T20:57:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205707-6ad927238af0c.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/116806.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/116806.html\",\"name\":\"\u6bd5\u8bbe\u5f00\u6e90 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-21T20:57:16+00:00\",\"dateModified\":\"2026-10-21T20:57:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/116806.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/116806.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/116806.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6bd5\u8bbe\u5f00\u6e90 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6bd5\u8bbe\u5f00\u6e90 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/116806.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6bd5\u8bbe\u5f00\u6e90 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f55 0 \u7b80\u4ecb\u8bfe\u9898\u7b80\u4ecb\u4ec0\u4e48\u662f\u673a\u5668\u89c6\u89c9\u5b9e\u73b0\u6b65\u9aa4\u8be6\u7ec6\u8bbe\u8ba1\u56fe\u7247\u8bfb\u53d6canny\u8fb9\u7f18\u68c0\u6d4b\u56db\u70b9\u53d8\u6362 \u5212\u51fa\u533a\u57df\u5904\u7406\u9009\u62e9\u9898\u533a\u57df\u63d0\u53d6\u9009\u9879\u8f6e\u5ed3\u5224\u65ad\u9009\u9879 \u8bfb\u53d6\u6b63\u786e\u7ed3\u679c \u6700\u540e 0 \u7b80\u4ecb \u4eca\u5929\u5b66\u957f\u5411\u5927\u5bb6\u5206\u4eab\u4e00\u4e2a\u6bd5\u4e1a\u8bbe\u8ba1\u9879\u76ee \u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf \u9879\u76ee\u8fd0\u884c\u6548\u679c&#xff1a; \u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8eopencv\u7684\u7b54\u9898\u5361\u8bc6\u522b&#x1f9ff;\u9879\u76ee\u5206\u4eab&#xff1a;\u89c1\u4e3b\u9875\u4efb\u610f\u7f6e\u9876\u6587\u7ae0 \u8bfe\u9898\u7b80\u4ecb \u4eca\u5929\u6211\u4eec\u6765\u4ecb\u7ecd\u4e00\u4e2a\u4e0e\u673a\u5668\u89c6\u89c9\u76f8\u5173\u7684\u6bd5\u4e1a\u8bbe\u8ba1 \u57fa\u4e8e\u673a\u5668\u89c6\u89c9\u7684\u7b54\u9898\u5361\u8bc6\u522b\u7cfb\u7edf \u591a","og_url":"https:\/\/www.wsisp.com\/helps\/116806.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-21T20:57:16+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021205707-6ad927238af0c.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/116806.html","url":"https:\/\/www.wsisp.com\/helps\/116806.html","name":"\u6bd5\u8bbe\u5f00\u6e90 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-21T20:57:16+00:00","dateModified":"2026-10-21T20:57:16+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/116806.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/116806.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/116806.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6bd5\u8bbe\u5f00\u6e90 \u57fa\u4e8epython\u7684\u7b54\u9898\u5361\u8bc6\u522b\u8bc4\u5206\u7cfb\u7edf"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/116806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=116806"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/116806\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/116792"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=116806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=116806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=116806"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=116806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}