{"id":91829,"date":"2026-08-08T13:42:00","date_gmt":"2026-08-08T05:42:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/91829.html"},"modified":"2026-08-08T13:42:00","modified_gmt":"2026-08-08T05:42:00","slug":"%e3%80%90%e5%85%8d%e8%b4%b9%e3%80%91%e4%ba%ba%e8%84%b8%e8%af%86%e5%88%ab-%e6%99%ba%e8%83%bd%e9%97%a8%e7%a6%81%e7%b3%bb%e7%bb%9f%e6%b7%b1%e5%ba%a6%e5%ad%a6%e4%b9%a0opencv-dnnfastapivue3-%e9%94%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/91829.html","title":{"rendered":"\u3010\u514d\u8d39\u3011\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60+OpenCV DNN+FastAPI+Vue3) \u950b\u54e5\u539f\u521b\u51fa\u54c1\uff0c\u5fc5\u5c5e\u7cbe\u54c1"},"content":{"rendered":"<p>\u5927\u5bb6\u597d&#xff0c;\u6211\u662fJava1234_\u5c0f\u950b\u8001\u5e08&#xff0c;\u5206\u4eab\u4e00\u5957\u950b\u54e5\u539f\u521b\u7684\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60&#043;OpenCV DNN&#043;FastAPI&#043;Vue3)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1233\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054148-6a76c19cc76fc.jpg\" width=\"2109\" \/><\/p>\n<h3>\u9879\u76ee\u4ecb\u7ecd<\/h3>\n<p style=\"text-align:justify\">\u51fa\u5165\u63a7\u5236\u662f\u5b89\u9632\u4f53\u7cfb\u4e2d\u7684\u57fa\u7840\u73af\u8282\u3002\u957f\u671f\u4ee5\u6765&#xff0c;IC \u5361\u3001\u5bc6\u7801\u952e\u76d8\u548c\u95e8\u7981\u94a5\u5319\u5728\u4f01\u4e8b\u4e1a\u5355\u4f4d\u4e2d\u5e7f\u6cdb\u4f7f\u7528&#xff0c;\u4f46\u5b58\u5728\u5361\u7247\u6613\u4e22\u5931\u3001\u5bc6\u7801\u6613\u6cc4\u9732\u3001\u5192\u7528\u96be\u8ffd\u6eaf\u7b49\u95ee\u9898\u3002\u5c24\u5176\u5728\u4eba\u5458\u6d41\u52a8\u6027\u8f83\u9ad8\u7684\u56ed\u533a\u4e0e\u5199\u5b57\u697c\u573a\u666f\u4e2d&#xff0c;\u5361\u7247\u8865\u529e\u6210\u672c\u9ad8&#xff0c;\u6743\u9650\u53d8\u66f4\u5f80\u5f80\u6ede\u540e&#xff0c;\u7ba1\u7406\u65b9\u96be\u4ee5\u53ca\u65f6\u638c\u63e1\u201c\u8c01\u5728\u4f55\u65f6\u4ece\u4f55\u5904\u8fdb\u51fa\u201d\u7684\u5b8c\u6574\u4fe1\u606f\u3002\u8fd1\u5e74\u6765&#xff0c;\u6df1\u5ea6\u5b66\u4e60\u63a8\u52a8\u751f\u7269\u7279\u5f81\u8bc6\u522b\u6280\u672f\u5feb\u901f\u843d\u5730&#xff0c;\u4eba\u8138\u8bc6\u522b\u56e0\u91c7\u96c6\u6210\u672c\u4f4e\u3001\u901a\u884c\u4f53\u9a8c\u597d\u3001\u53ef\u4e0e\u89c6\u9891\u76d1\u63a7\u8054\u52a8&#xff0c;\u6210\u4e3a\u667a\u80fd\u95e8\u7981\u7684\u4e3b\u6d41\u65b9\u6848\u4e4b\u4e00\u3002<\/p>\n<p style=\"text-align:justify\">\u5728\u667a\u6167\u56ed\u533a\u548c\u6570\u5b57\u5316\u529e\u516c\u573a\u666f\u4e2d&#xff0c;\u95e8\u7981\u7cfb\u7edf\u4e0d\u4ec5\u8981\u5b8c\u6210\u201c\u5f00\u95e8\u201d&#xff0c;\u8fd8\u8981\u5b8c\u6210\u201c\u7ba1\u4eba\u3001\u7ba1\u8bbe\u5907\u3001\u7ba1\u6743\u9650\u3001\u7ba1\u8bb0\u5f55\u3001\u7ba1\u544a\u8b66\u201d\u7684\u95ed\u73af\u3002\u5c06\u4eba\u8138\u8bc6\u522b\u4e0e\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf\u7ed3\u5408&#xff0c;\u80fd\u591f\u628a\u8eab\u4efd\u6838\u9a8c\u3001\u6743\u9650\u7b56\u7565\u548c\u5b89\u5168\u4e8b\u4ef6\u5904\u7406\u7edf\u4e00\u5230\u540c\u4e00\u5e73\u53f0&#xff0c;\u63d0\u5347\u7ba1\u7406\u6548\u7387\u4e0e\u5b89\u5168\u6c34\u5e73\u3002\u5bf9\u7ec4\u7ec7\u7ba1\u7406\u8005\u800c\u8a00&#xff0c;\u7cfb\u7edf\u53ef\u4ee5\u652f\u6491\u8003\u52e4\u8f85\u52a9\u3001\u8bbf\u5ba2\u7ba1\u63a7\u4e0e\u5b89\u5168\u5ba1\u8ba1&#xff1b;\u5bf9\u901a\u884c\u8005\u800c\u8a00&#xff0c;\u975e\u63a5\u89e6\u5f0f\u8bc6\u522b\u51cf\u5c11\u4e86\u638f\u5361\u5237\u5361\u7684\u7e41\u7410\u6b65\u9aa4&#xff0c;\u4e5f\u964d\u4f4e\u4e86\u4ea4\u53c9\u63a5\u89e6\u98ce\u9669\u3002\u56e0\u6b64&#xff0c;\u7814\u7a76\u5e76\u5b9e\u73b0\u4e00\u5957\u7ed3\u6784\u6e05\u6670\u3001\u6280\u672f\u8def\u7ebf\u660e\u786e\u3001\u53ef\u6f14\u793a\u53ef\u6269\u5c55\u7684\u5e26\u4eba\u8138\u8bc6\u522b\u667a\u80fd\u95e8\u7981\u7cfb\u7edf&#xff0c;\u5177\u6709\u660e\u786e\u7684\u5de5\u7a0b\u610f\u4e49\u4e0e\u6559\u5b66\u4ef7\u503c\u3002<\/p>\n<p style=\"text-align:justify\">\u672c\u8bfe\u9898\u9009\u62e9 OpenCV DNN\u3001YuNet \u4e0e SFace \u4f5c\u4e3a\u8bc6\u522b\u6280\u672f\u8def\u7ebf&#xff0c;\u7ed3\u5408 Python\u3001FastAPI \u4e0e Vue3 \u5b8c\u6210\u7cfb\u7edf\u5f00\u53d1\u3002\u8be5\u65b9\u6848\u65e0\u9700\u4f9d\u8d56\u5546\u4e1a\u95ed\u6e90 SDK&#xff0c;\u6a21\u578b\u6587\u4ef6\u4f53\u79ef\u8f83\u5c0f&#xff0c;\u90e8\u7f72\u95e8\u69db\u4f4e&#xff0c;\u9002\u5408\u672c\u79d1\u6bd5\u4e1a\u8bbe\u8ba1\u5728\u6709\u9650\u786c\u4ef6\u6761\u4ef6\u4e0b\u5b8c\u6210\u53ef\u8fd0\u884c\u539f\u578b&#xff0c;\u540c\u65f6\u53c8\u80fd\u4f53\u73b0\u6df1\u5ea6\u5b66\u4e60\u5728\u5b9e\u9645\u5de5\u7a0b\u4e2d\u7684\u5e94\u7528\u65b9\u5f0f\u3002\u4e0e\u5355\u7eaf\u8c03\u7528\u4e91\u7aef\u8bc6\u522b API \u76f8\u6bd4&#xff0c;\u672c\u5730\u5316\u63a8\u7406\u66f4\u6709\u5229\u4e8e\u4fdd\u62a4\u4eba\u8138\u751f\u7269\u7279\u5f81\u6570\u636e&#xff0c;\u4e5f\u4fbf\u4e8e\u5728\u8bba\u6587\u4e2d\u5b8c\u6574\u5c55\u793a\u7b97\u6cd5\u8c03\u7528\u94fe\u8def\u4e0e\u7cfb\u7edf\u8bbe\u8ba1\u7ec6\u8282\u3002<\/p>\n<p style=\"text-align:justify\">\u4ece\u4eba\u624d\u57f9\u517b\u89d2\u5ea6\u770b&#xff0c;\u672c\u8bfe\u9898\u6a2a\u8de8\u8f6f\u4ef6\u5de5\u7a0b\u3001\u6570\u636e\u5e93\u539f\u7406\u3001Web \u5f00\u53d1\u4e0e\u8ba1\u7b97\u673a\u89c6\u89c9\u7b49\u591a\u4e2a\u77e5\u8bc6\u6a21\u5757&#xff0c;\u8981\u6c42\u5b66\u751f\u628a\u8bfe\u5802\u7406\u8bba\u8f6c\u5316\u4e3a\u53ef\u8fd0\u884c\u7cfb\u7edf&#xff0c;\u953b\u70bc\u9700\u6c42\u5206\u6790\u3001\u6a21\u5757\u5212\u5206\u3001\u63a5\u53e3\u8bbe\u8ba1\u3001\u6d4b\u8bd5\u9a8c\u8bc1\u548c\u8bba\u6587\u8868\u8fbe\u80fd\u529b&#xff0c;\u7b26\u5408\u672c\u79d1\u6bd5\u4e1a\u8bbe\u8ba1\u201c\u7efc\u5408\u8bad\u7ec3\u201d\u7684\u5b9a\u4f4d\u3002<\/p>\n<h3>\u6e90\u7801\u4e0b\u8f7d<\/h3>\n<p>\u94fe\u63a5: https:\/\/pan.baidu.com\/s\/1XF5Bj0hyipdAXhTywhfmmg?pwd&#061;1234 \u63d0\u53d6\u7801: 1234<\/p>\n<\/p>\n<h3>\u7cfb\u7edf\u5c55\u793a <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1254\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054149-6a76c19dc1431.jpg\" width=\"2104\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1242\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054151-6a76c19f0872c.jpg\" width=\"2110\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1230\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054152-6a76c1a0017b1.jpg\" width=\"2106\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1262\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054152-6a76c1a0f14b3.jpg\" width=\"2113\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1248\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054153-6a76c1a1ec417.jpg\" width=\"2107\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1257\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054154-6a76c1a2ecb97.jpg\" width=\"2115\" \/><\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"952\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054156-6a76c1a4e31a8.jpg\" width=\"1535\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1254\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054157-6a76c1a54163e.jpg\" width=\"2112\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1255\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054158-6a76c1a63c376.jpg\" width=\"2118\" \/><\/h3>\n<h3>\u6838\u5fc3\u4ee3\u7801<\/h3>\n<p>&#034;&#034;&#034;<br \/>\nOpenCV DNN \u4eba\u8138\u8bc6\u522b\u5f15\u64ce<br \/>\n\u4f7f\u7528 YuNet \u4eba\u8138\u68c0\u6d4b &#043; SFace \u7279\u5f81\u63d0\u53d6<br \/>\n&#034;&#034;&#034;<br \/>\nimport os<br \/>\nfrom typing import Optional, Tuple<\/p>\n<p>import cv2<br \/>\nimport numpy as np<\/p>\n<p>from app.core.config import settings<\/p>\n<p>class FaceEngine:<br \/>\n    &#034;&#034;&#034;\u4eba\u8138\u8bc6\u522b\u5f15\u64ce\u5355\u4f8b\u7c7b&#034;&#034;&#034;<\/p>\n<p>    _instance &#061; None<\/p>\n<p>    def __new__(cls):<br \/>\n        if cls._instance is None:<br \/>\n            cls._instance &#061; super().__new__(cls)<br \/>\n            cls._instance._initialized &#061; False<br \/>\n        return cls._instance<\/p>\n<p>    def __init__(self):<br \/>\n        if self._initialized:<br \/>\n            return<br \/>\n        self.detector &#061; None<br \/>\n        self.recognizer &#061; None<br \/>\n        self._initialized &#061; True<\/p>\n<p>    def load_models(self):<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u52a0\u8f7d YuNet \u548c SFace \u6a21\u578b<br \/>\n        &#034;&#034;&#034;<br \/>\n        models_dir &#061; settings.MODELS_DIR<br \/>\n        os.makedirs(models_dir, exist_ok&#061;True)<br \/>\n        yunet_path &#061; os.path.join(models_dir, &#034;face_detection_yunet_2023mar.onnx&#034;)<br \/>\n        sface_path &#061; os.path.join(models_dir, &#034;face_recognition_sface_2021dec.onnx&#034;)<\/p>\n<p>        if not os.path.exists(yunet_path) or not os.path.exists(sface_path):<br \/>\n            raise FileNotFoundError(f&#034;\u6a21\u578b\u6587\u4ef6\u4e0d\u5b58\u5728&#xff0c;\u8bf7\u5148\u8fd0\u884c scripts\/download_models.py \u4e0b\u8f7d\u6a21\u578b&#034;)<\/p>\n<p>        self.detector &#061; cv2.FaceDetectorYN.create(yunet_path, &#034;&#034;, (320, 320), 0.6, 0.3, 5000)<br \/>\n        self.recognizer &#061; cv2.FaceRecognizerSF.create(sface_path, &#034;&#034;)<br \/>\n        print(&#034;[FaceEngine] \u6a21\u578b\u52a0\u8f7d\u6210\u529f&#034;)<\/p>\n<p>    def detect_largest_face(self, image: np.ndarray) -&gt; Optional[np.ndarray]:<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u68c0\u6d4b\u56fe\u50cf\u4e2d\u6700\u5927\u7684\u4eba\u8138<br \/>\n        Args:<br \/>\n            image: BGR\u683c\u5f0f\u56fe\u50cf<br \/>\n        Returns:<br \/>\n            \u4eba\u8138\u68c0\u6d4b\u7ed3\u679c\u884c\u5411\u91cf [x,y,w,h,&#8230;] \u6216 None<br \/>\n        &#034;&#034;&#034;<br \/>\n        if self.detector is None:<br \/>\n            self.load_models()<br \/>\n        h, w &#061; image.shape[:2]<br \/>\n        self.detector.setInputSize((w, h))<br \/>\n        _, faces &#061; self.detector.detect(image)<br \/>\n        if faces is None or len(faces) &#061;&#061; 0:<br \/>\n            return None<br \/>\n        areas &#061; faces[:, 2] * faces[:, 3]<br \/>\n        return faces[np.argmax(areas)]<\/p>\n<p>    def extract_feature(self, image: np.ndarray, face: np.ndarray) -&gt; Optional[np.ndarray]:<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u63d0\u53d6\u4eba\u8138128\u7ef4\u7279\u5f81\u5411\u91cf<br \/>\n        Args:<br \/>\n            image: BGR\u683c\u5f0f\u56fe\u50cf<br \/>\n            face: \u4eba\u8138\u68c0\u6d4b\u7ed3\u679c<br \/>\n        Returns:<br \/>\n            128\u7ef4\u7279\u5f81\u5411\u91cf<br \/>\n        &#034;&#034;&#034;<br \/>\n        if self.recognizer is None:<br \/>\n            self.load_models()<br \/>\n        aligned &#061; self.recognizer.alignCrop(image, face)<br \/>\n        feature &#061; self.recognizer.feature(aligned)<br \/>\n        return feature.flatten()<\/p>\n<p>    def process_image(self, image: np.ndarray) -&gt; Tuple[Optional[np.ndarray], Optional[np.ndarray]]:<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u68c0\u6d4b\u5e76\u63d0\u53d6\u7279\u5f81&#xff08;\u4e00\u6b65\u5b8c\u6210&#xff09;<br \/>\n        Args:<br \/>\n            image: BGR\u683c\u5f0f\u56fe\u50cf<br \/>\n        Returns:<br \/>\n            (\u7279\u5f81\u5411\u91cf, \u4eba\u8138\u6846) \u6216 (None, None)<br \/>\n        &#034;&#034;&#034;<br \/>\n        face &#061; self.detect_largest_face(image)<br \/>\n        if face is None:<br \/>\n            return None, None<br \/>\n        feature &#061; self.extract_feature(image, face)<br \/>\n        return feature, face<\/p>\n<p>    &#064;staticmethod<br \/>\n    def cosine_similarity(feat1: np.ndarray, feat2: np.ndarray) -&gt; float:<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u8ba1\u7b97\u4e24\u4e2a\u7279\u5f81\u5411\u91cf\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6<br \/>\n        &#034;&#034;&#034;<br \/>\n        norm1 &#061; np.linalg.norm(feat1)<br \/>\n        norm2 &#061; np.linalg.norm(feat2)<br \/>\n        if norm1 &#061;&#061; 0 or norm2 &#061;&#061; 0:<br \/>\n            return 0.0<br \/>\n        return float(np.dot(feat1, feat2) \/ (norm1 * norm2))<\/p>\n<p>    &#064;staticmethod<br \/>\n    def decode_image(image_bytes: bytes) -&gt; np.ndarray:<br \/>\n        &#034;&#034;&#034;\u5c06\u5b57\u8282\u89e3\u7801\u4e3aOpenCV\u56fe\u50cf&#034;&#034;&#034;<br \/>\n        nparr &#061; np.frombuffer(image_bytes, np.uint8)<br \/>\n        return cv2.imdecode(nparr, cv2.IMREAD_COLOR)<\/p>\n<p>face_engine &#061; FaceEngine()<\/p>\n<p>&lt;template&gt;<br \/>\n  &lt;div class&#061;&#034;page-container&#034;&gt;<br \/>\n    &lt;div class&#061;&#034;page-header&#034;&gt;&lt;h2&gt;\u6211\u7684\u4eba\u8138&lt;\/h2&gt;&lt;\/div&gt;<br \/>\n    &lt;div class&#061;&#034;face-grid&#034;&gt;<br \/>\n      &lt;div v-for&#061;&#034;f in faceList&#034; :key&#061;&#034;f.id&#034; class&#061;&#034;face-card&#034;&gt;<br \/>\n        &lt;el-image :src&#061;&#034;f.image_url&#034; fit&#061;&#034;cover&#034; style&#061;&#034;width:160px;height:160px;border-radius:12px&#034; \/&gt;<br \/>\n        &lt;div class&#061;&#034;face-info&#034;&gt;<br \/>\n          &lt;el-tag v-if&#061;&#034;f.is_primary&#034; type&#061;&#034;success&#034; size&#061;&#034;small&#034;&gt;\u4e3b\u56fe&lt;\/el-tag&gt;<br \/>\n          &lt;span v-if&#061;&#034;f.quality_score&#034;&gt;\u8d28\u91cf: {{ f.quality_score }}&lt;\/span&gt;<br \/>\n          &lt;span&gt;{{ f.create_time }}&lt;\/span&gt;<br \/>\n        &lt;\/div&gt;<br \/>\n      &lt;\/div&gt;<br \/>\n      &lt;el-empty v-if&#061;&#034;!faceList.length&#034; description&#061;&#034;\u6682\u65e0\u5f55\u5165\u4eba\u8138&#xff0c;\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u5f55\u5165&#034; \/&gt;<br \/>\n    &lt;\/div&gt;<br \/>\n  &lt;\/div&gt;<br \/>\n&lt;\/template&gt;<\/p>\n<p>&lt;script setup&gt;<br \/>\n\/** \u6211\u7684\u4eba\u8138\u9875\u9762&#xff08;\u666e\u901a\u7528\u6237&#xff09; *\/<br \/>\nimport { ref, onMounted } from &#039;vue&#039;<br \/>\nimport { faceApi } from &#039;&#064;\/api&#039;<\/p>\n<p>const faceList &#061; ref([])<br \/>\nonMounted(async () &#061;&gt; {<br \/>\n  const res &#061; await faceApi.list()<br \/>\n  faceList.value &#061; res.data<br \/>\n})<br \/>\n&lt;\/script&gt;<\/p>\n<p>&lt;style scoped&gt;<br \/>\n.face-grid { display: flex; flex-wrap: wrap; gap: 20px; }<br \/>\n.face-card { background: #fff; padding: 16px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center; }<br \/>\n.face-info { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #909399; }<br \/>\n&lt;\/style&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d&#xff0c;\u6211\u662fJava1234_\u5c0f\u950b\u8001\u5e08&#xff0c;\u5206\u4eab\u4e00\u5957\u950b\u54e5\u539f\u521b\u7684\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60OpenCV DNNFastAPIVue3) \u9879\u76ee\u4ecb\u7ecd<br \/>\n\u51fa\u5165\u63a7\u5236\u662f\u5b89\u9632\u4f53\u7cfb\u4e2d\u7684\u57fa\u7840\u73af\u8282\u3002\u957f\u671f\u4ee5\u6765&#xff0c;IC \u5361\u3001\u5bc6\u7801\u952e\u76d8\u548c\u95e8\u7981\u94a5\u5319\u5728\u4f01\u4e8b\u4e1a\u5355\u4f4d\u4e2d\u5e7f\u6cdb\u4f7f\u7528&#xff0c;\u4f46\u5b58\u5728\u5361\u7247\u6613\u4e22\u5931\u3001\u5bc6\u7801\u6613\u6cc4\u9732\u3001\u5192\u7528\u96be\u8ffd\u6eaf\u7b49\u95ee\u9898\u3002\u5c24\u5176\u5728\u4eba\u5458\u6d41\u52a8\u6027\u8f83\u9ad8\u7684\u56ed\u533a\u4e0e\u5199\u5b57\u697c\u573a\u666f\u4e2d&#xff0c;\u5361\u7247\u8865\u529e\u6210\u672c\u9ad8&#xff0c;\u6743\u9650\u53d8\u66f4\u5f80\u5f80\u6ede\u540e&#xff0c;\u7ba1\u7406\u65b9\u96be\u4ee5\u53ca\u65f6\u638c<\/p>\n","protected":false},"author":2,"featured_media":91819,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6342,6418,10477,72,86],"topic":[],"class_list":["post-91829","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-dnn","tag-6418","tag-10477","tag-fastapi","tag-86"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u514d\u8d39\u3011\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60+OpenCV DNN+FastAPI+Vue3) \u950b\u54e5\u539f\u521b\u51fa\u54c1\uff0c\u5fc5\u5c5e\u7cbe\u54c1 - \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\/91829.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u514d\u8d39\u3011\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60+OpenCV DNN+FastAPI+Vue3) \u950b\u54e5\u539f\u521b\u51fa\u54c1\uff0c\u5fc5\u5c5e\u7cbe\u54c1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5927\u5bb6\u597d&#xff0c;\u6211\u662fJava1234_\u5c0f\u950b\u8001\u5e08&#xff0c;\u5206\u4eab\u4e00\u5957\u950b\u54e5\u539f\u521b\u7684\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60OpenCV DNNFastAPIVue3) \u9879\u76ee\u4ecb\u7ecd \u51fa\u5165\u63a7\u5236\u662f\u5b89\u9632\u4f53\u7cfb\u4e2d\u7684\u57fa\u7840\u73af\u8282\u3002\u957f\u671f\u4ee5\u6765&#xff0c;IC \u5361\u3001\u5bc6\u7801\u952e\u76d8\u548c\u95e8\u7981\u94a5\u5319\u5728\u4f01\u4e8b\u4e1a\u5355\u4f4d\u4e2d\u5e7f\u6cdb\u4f7f\u7528&#xff0c;\u4f46\u5b58\u5728\u5361\u7247\u6613\u4e22\u5931\u3001\u5bc6\u7801\u6613\u6cc4\u9732\u3001\u5192\u7528\u96be\u8ffd\u6eaf\u7b49\u95ee\u9898\u3002\u5c24\u5176\u5728\u4eba\u5458\u6d41\u52a8\u6027\u8f83\u9ad8\u7684\u56ed\u533a\u4e0e\u5199\u5b57\u697c\u573a\u666f\u4e2d&#xff0c;\u5361\u7247\u8865\u529e\u6210\u672c\u9ad8&#xff0c;\u6743\u9650\u53d8\u66f4\u5f80\u5f80\u6ede\u540e&#xff0c;\u7ba1\u7406\u65b9\u96be\u4ee5\u53ca\u65f6\u638c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/91829.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-08T05:42:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054148-6a76c19cc76fc.jpg\" \/>\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\/91829.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/91829.html\",\"name\":\"\u3010\u514d\u8d39\u3011\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60+OpenCV DNN+FastAPI+Vue3) \u950b\u54e5\u539f\u521b\u51fa\u54c1\uff0c\u5fc5\u5c5e\u7cbe\u54c1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-08T05:42:00+00:00\",\"dateModified\":\"2026-08-08T05:42:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/91829.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/91829.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91829.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u514d\u8d39\u3011\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60+OpenCV DNN+FastAPI+Vue3) \u950b\u54e5\u539f\u521b\u51fa\u54c1\uff0c\u5fc5\u5c5e\u7cbe\u54c1\"}]},{\"@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":"\u3010\u514d\u8d39\u3011\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60+OpenCV DNN+FastAPI+Vue3) \u950b\u54e5\u539f\u521b\u51fa\u54c1\uff0c\u5fc5\u5c5e\u7cbe\u54c1 - \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\/91829.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u514d\u8d39\u3011\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60+OpenCV DNN+FastAPI+Vue3) \u950b\u54e5\u539f\u521b\u51fa\u54c1\uff0c\u5fc5\u5c5e\u7cbe\u54c1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5927\u5bb6\u597d&#xff0c;\u6211\u662fJava1234_\u5c0f\u950b\u8001\u5e08&#xff0c;\u5206\u4eab\u4e00\u5957\u950b\u54e5\u539f\u521b\u7684\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60OpenCV DNNFastAPIVue3) \u9879\u76ee\u4ecb\u7ecd \u51fa\u5165\u63a7\u5236\u662f\u5b89\u9632\u4f53\u7cfb\u4e2d\u7684\u57fa\u7840\u73af\u8282\u3002\u957f\u671f\u4ee5\u6765&#xff0c;IC \u5361\u3001\u5bc6\u7801\u952e\u76d8\u548c\u95e8\u7981\u94a5\u5319\u5728\u4f01\u4e8b\u4e1a\u5355\u4f4d\u4e2d\u5e7f\u6cdb\u4f7f\u7528&#xff0c;\u4f46\u5b58\u5728\u5361\u7247\u6613\u4e22\u5931\u3001\u5bc6\u7801\u6613\u6cc4\u9732\u3001\u5192\u7528\u96be\u8ffd\u6eaf\u7b49\u95ee\u9898\u3002\u5c24\u5176\u5728\u4eba\u5458\u6d41\u52a8\u6027\u8f83\u9ad8\u7684\u56ed\u533a\u4e0e\u5199\u5b57\u697c\u573a\u666f\u4e2d&#xff0c;\u5361\u7247\u8865\u529e\u6210\u672c\u9ad8&#xff0c;\u6743\u9650\u53d8\u66f4\u5f80\u5f80\u6ede\u540e&#xff0c;\u7ba1\u7406\u65b9\u96be\u4ee5\u53ca\u65f6\u638c","og_url":"https:\/\/www.wsisp.com\/helps\/91829.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-08T05:42:00+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260808054148-6a76c19cc76fc.jpg"}],"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\/91829.html","url":"https:\/\/www.wsisp.com\/helps\/91829.html","name":"\u3010\u514d\u8d39\u3011\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60+OpenCV DNN+FastAPI+Vue3) \u950b\u54e5\u539f\u521b\u51fa\u54c1\uff0c\u5fc5\u5c5e\u7cbe\u54c1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-08T05:42:00+00:00","dateModified":"2026-08-08T05:42:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/91829.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/91829.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/91829.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u514d\u8d39\u3011\u4eba\u8138\u8bc6\u522b \u667a\u80fd\u95e8\u7981\u7cfb\u7edf(\u6df1\u5ea6\u5b66\u4e60+OpenCV DNN+FastAPI+Vue3) \u950b\u54e5\u539f\u521b\u51fa\u54c1\uff0c\u5fc5\u5c5e\u7cbe\u54c1"}]},{"@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\/91829","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=91829"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/91829\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/91819"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=91829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=91829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=91829"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=91829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}