Search Unity

[RELEASED] Dlib FaceLandmark Detector

Discussion in 'Assets and Asset Store' started by EnoxSoftware, Jun 4, 2016.

  1. elhongo

    elhongo

    Joined:
    Aug 13, 2015
    Posts:
    27
    Hi,

    I am using Unity's Universal Render Pipeline in Unity 2019.3.0f1 and I am unable to see the ARHeadWebCamTextureExample camera video when running in Editor, nor Android.

    Is DLib compatible with URP? Can I do something for this example to work?
     
  2. RyanNguyen

    RyanNguyen

    Joined:
    Jul 20, 2016
    Posts:
    8
    Hi!
    How can I save the result of the training ?
    What do I need to do to train AI smarter ?
    How to create a *.dat file like " sp_human_face_68.dat " ?
    Thanks.
     
  3. EnoxSoftware

    EnoxSoftware

    Joined:
    Oct 29, 2014
    Posts:
    1,162
    For details of how to train custom model files, please refer to "DlibFaceLandmarkDetector/DlibFaceLandmarkDetectorTrainingDataset.txt".
     
  4. bihi10

    bihi10

    Joined:
    Jul 5, 2018
    Posts:
    5
    I moved Streamingassets folder but still getting
    Invalid face landmark points
    Error
     
  5. EnoxSoftware

    EnoxSoftware

    Joined:
    Oct 29, 2014
    Posts:
    1,162
    Could you tell me which test environment you tried?
    DlibFaceLandmarkDetector version :
    Unity version :
     
  6. bihi10

    bihi10

    Joined:
    Jul 5, 2018
    Posts:
    5
    Thank you it's Solved
    Am looking for any way to add effects to face parts like glasses and so on
    do you have any idea?
     
  7. EnoxSoftware

    EnoxSoftware

    Joined:
    Oct 29, 2014
    Posts:
    1,162
    I think it is possible by replacing ARHead(GameObject) of ARHeadWebCamTextureExample with 3D object glasses.
     
  8. bihi10

    bihi10

    Joined:
    Jul 5, 2018
    Posts:
    5
    Thank you so much
    now am stuck for 4 days in taking screenshot of the game scene because it only captures the ui or my face
     
    Last edited: Jan 5, 2020
  9. wcchoe

    wcchoe

    Joined:
    Nov 22, 2013
    Posts:
    5
    Hello Thank you for making a great tool. Unfortunately, I could not bring a Face Data(StreamingAssetssp_human_face_68.dat)
    This phenomenon is common when there is a non-English path.
    ex) D:/한글폴더/Assets/StreamingAssetssp_human_face_68.dat
    Please help me. I'm on the verge of jumping into the river
     
  10. EnoxSoftware

    EnoxSoftware

    Joined:
    Oct 29, 2014
    Posts:
    1,162
    You can set the relative file path from the project folder.
    //dlibShapePredictorFilePath = Utils.getFilePath (dlibShapePredictorFileName);
    dlibShapePredictorFilePath = "./Assets/StreamingAssets/sp_human_face_68.dat";

    https://github.com/EnoxSoftware/DlibFaceLandmarkDetector/issues/8