![](/img/trans.png)
[英]opencv in python showing a error not read video frame
使用 cv2 讀取視頻捕獲幀但隨時顯示錯誤錯誤是: 回溯(最近調用最后):文件“d:\pythonprojects\gym\demo.py”,第 33 行,在 <module> gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cv2.error: ...
[英]opencv in python showing a error not read video frame
使用 cv2 讀取視頻捕獲幀但隨時顯示錯誤錯誤是: 回溯(最近調用最后):文件“d:\pythonprojects\gym\demo.py”,第 33 行,在 <module> gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cv2.error: ...
[英]Python Opencv draw rectangle from smaller frame
我目前正在研究使用 MTCNN 的人臉檢測算法。 使用下面的代碼,我可以顯示包含我的臉的框架: 僅供參考, cv2.imshow('frame',face)只是讓我在那里放一些值,因為我想得到它的邊界框。 看起來像這樣(請原諒我的傻臉): 在此處輸入圖像描述這只是為了表明它正在檢測面部並取出與我面部 ...
[英]Setup.py error when installing dlib on Windows 10 [PYTHON]
每當我嘗試使用 pip install dlib 或 pip3 install dlib 安裝 dlib 時,我都會收到以下錯誤消息我已經下載了 cmake 和 cv2,我還在環境變量中添加了 cmake bin,我不確定我還能做些什么來讓它工作。 我下載dlib的主要目的是為了能夠使用face_r ...
[英]My OpenCV Face Recognition isn't drawing a bounding box / recognizing a face
我正在制作一個 OpenCV 人臉識別器,它在從讀取的圖像中檢測到的人臉周圍繪制一個邊界框。 我正在使用級聯分類器 (haarcascades) 它顯示圖片,而不是灰度(全彩色)並且不會繪制邊界框。 不確定我做了什么,我是新手。 這是代碼: ...
[英]TypeError: cannot unpack non-iterable NoneType object while trying face recognition
當我嘗試使用此代碼進行人臉識別時(我嘗試按照 murtaza 關於如何對無人機進行編程的教程進行操作,但是每當我周圍的矩形消失時它就會崩潰並發送上述錯誤。) 它返回此錯誤:Traceback (most recent call last): File "C:/Users/HP/PycharmP ...
[英]OpenCV 4.7.0: SystemError: <class 'cv2.CascadeClassifier'> returned a result with an exception set
這是代碼的開頭。 我正在關注使用 OpenCV 和 Python 的面部識別項目教程。這意味着使用 haar 級聯面部檢測拍攝面部照片,然后存儲在我擁有的數據集文件中。 這是錯誤: cv2.error: OpenCV(4.7.0) /Users/opencv-cn/GHA-OCV-1/_work/ ...
[英]Few errors occured when training the facial expression recognition model
我正在進行一個識別面部表情的項目,並使用卷積神經網絡 (CNN) 訓練面部表情識別 model。 在這個項目中,我使用的是Tensorflow 2.4 version和Python 3.8.8 version output: 以下是我得到的錯誤: 以下是完整代碼: 我已使用pip install ...
[英]I can't install "pip install python_bcrypt"
注意:此錯誤源自子進程,可能不是 pip 的問題。錯誤:legacy-install-failure × 嘗試安裝 package 時遇到錯誤。╰─> python_bcrypt 我無法在 visual studio 代碼中安裝 python_bcrypt 有人知道嗎? ...
[英]facing error while installing facerecognition and dlib
cd C:\Users\Dnyaneshwar\AppData\Local\Programs\Python\Python311\Lib\site-packages PS C:\Users\Dnyaneshwar\AppData\Local\Programs\Python\Python311\Lib ...
[英]How to reduce the size of the rectangular boxes on face detection in a group photo?
import cv2 import face_recognition as fc image = fc.load_image_file('classA.jpg') image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) face_locations = fc ...
[英]Enlarge bounding box by factor
我從“face_recognition.face_location”中獲取已識別人臉邊界框的坐標(上、右、下、左),順序為 css,我想將框放大一些因素,下面是我使用 python 編寫的 function ,但是並沒有給出預期的結果。 ...
[英]I am Writing Update Function in Python to update data from MySQL server and having an error
我正在用 MySQL(PYTHON) 中的考勤系統項目進行人臉識別。 我正在嘗試從 MySQL 數據庫更新一組數據,但出現以下錯誤: 錯誤和描述圖片:我正在更新學生信息中的數據 Window “由於:1064(42000):您的 SQL 語法有誤;請查看與您的 MySQL 服務器版本對應的手冊,了 ...
[英]How to split a tflite file for cnn network into tflite files for each layer?
我目前正在嘗試找到一種方法來在 Android Stuio (java) 上運行時為 CNN 網絡的每一層獲取中間特性。 實際上,我在下面的鏈接中找到了一些相關的問題和答案。 如何從特定層獲取輸出張量? 從上面的鏈接,我認為按層划分模型將是解決我的任務的唯一方法。 但是,目前還沒有將.tffil ...
[英]Whats the best way to sort and search for similar embeddings for facial recognition
我計划制作一個相當大的面孔/嵌入數據庫。 我想知道對我的嵌入列表進行排序的最佳方式是什么,我還想知道在我的列表中搜索最相似面孔的最佳方式是什么。 我正在使用 deepface 進行面部識別和識別。 ...
[英]problems with comparing faces using the face recognition library, face to face comparison
我想比較“matches = face_recognition.compare_faces(pessoas[c], original_face_encodings[b])”行中的面孔,如果使用 pessoas 數組有效,如果我使用 pessoas[c] 一次比較一個,我有以下錯誤消息: 我該如何解決 ...
[英]Best image format for face detection and face recognition with the DeepFace library
我正在使用DeepFace庫進行人臉識別和檢測。 我想知道是否有比其他格式更好的格式(png、jpg 等)來獲得更好的結果。 一般人臉識別和人臉檢測是否有首選的圖像格式? 特別是在這個圖書館? ...
[英]Why doesn't the shape predictor model "shape_predictor_68..." get included along the face_recognition library when building the executable?
我已經使用 pyinstaller 構建了一個可執行文件。 我已經測試了我的“.py”文件,它可以通過 cmd 和 IDE 完美運行,但是當我在 exe 文件中嘗試時,它顯示錯誤。 報錯:RuntimeError: Unable to open C:\Users\Zahin\AppData\Loc ...
[英]failed to install face_recognition, pillow, dilib
我遇到這個(failed to install face_recognition, pillow, dilib)問題3個多小時了但是還是安裝不上。 請解決任何人。 這是錯誤按摩 在python中安裝face_recognition、pillow、dilib庫 ...
[英]how to fix this Value Error ' ValueError: decay is deprecated in the new Keras optimizer,'?
我是深度學習的新手,我遵循有關人臉檢測的教程。 ValueError Traceback(最近調用最后一次)警告:absl: lr已棄用,請改用learning_rate ,或使用舊版優化器,例如 tf.keras.optimizers.legacy.SGD。 Output 超出大小限制。 在 ...
[英]face recognition Library in python install error
我安裝了 cmake、opencv、dlib 和 face_recognition,當我嘗試導入 face_recognition 時,它們都安裝成功,沒有任何錯誤 我收到這個錯誤 face_recognition 已安裝 我檢查了 lib 文件夾 我嘗試再次輸入 我得到的要求已經滿足任何人都可以 ...