norihiro / obs-face-tracker

Face tracking plugin for OBS Studio
GNU General Public License v2.0
343 stars 29 forks source link

Face Tracker won't work under OBS 29.1.3 on Manjaro LINUX #137

Closed BMuXBeats closed 7 months ago

BMuXBeats commented 9 months ago

Source/filter types

Describe the bug It doesn't work.

To Reproduce

  1. Installed it with ocotpi
  2. opened up OBS Studio
  3. Added my Logitech BRIO as source
  4. Added FActracker as effect filter
  5. Nothing happened...
  6. Added "shape_predictor_5_face_landmarks.dat" and set the hook "enable landmark detection"
  7. Nothing happened.

Expected behavior A zoom in of my face

Actual behavior unfortunately absolute nothing.

Desktop (please complete the following information):

Additional context I've tried it under Arch with the same versions. Result: The same behaviour as I described above.

norihiro commented 9 months ago

Could you check the log file or provide a log file?

  1. In OBS Studio, click the Help menu → Log Files → Upload Current Log File
  2. Click the Copy URL button
  3. Review the file or paste the URL here

What is ocotpi? Did you mean OctoPi? If you are using it on RaspberryPi, probably the hardware is too slow to detect the face so it won't zoom. On my CPU (i7-7700), it takes several seconds to initially detect a face for 960x540 image. Increasing an option Scale image could be a way to fasten the time to detect the face.

VectorKappa commented 8 months ago

Can confirm it happens under the 0.7.1-1 AUR release, please first ask the package maintainer, as it's probably a packaging problem (the dlib model is missing) For now you can downgrade to 0.7.0-1 - known working under pure arch linux.

norihiro commented 8 months ago

it's probably a packaging problem (the dlib model is missing)

Probably that's the reason. At the version 0.7.0, I separated the model into files so that the package need to contain it. The model files can be downloaded from these link. After downloading, you need to decompress it by bunzip2. Then, you can specify the model files from the properties for each filter and source.

tytan652 commented 7 months ago

If there is nothing in the README to help packagers, at no point the package will get fixed quickly.

Edit: Also it looks like the dlib-model link is not stable making it un-packageable since the downloaded file might change.

norihiro commented 7 months ago

I'm sorry for getting you into the trouble. I will update the README file to guide the file.

CNN model file is from the dlib-models repository. There was no modification in this file from their first release. This file has a complicated license. You might choose not to package. (I'm sorry I was confused with the landmark detection model.)

HOG model file is just extracted from frontal_face_detector.h. The model data is encoded in base64 inside the code. The data file was generated from src/face-detector-dlib-hog-datagen.cpp in this repo. I should have described it as you commented.

tytan652 commented 7 months ago

Fixed the AUR package with #140 new intructions, dlib-models models are inside another package obs-face-tracker-dlib-models-git which the plugin depends on.

BMuXBeats commented 7 months ago

@norihiro, @tytan652 

Thank you so much! I've installed the neweset packages, as @tytan652 mentioned and everythings wokrs fine now.