V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
snowflake007
V2EX  ›  Android

Google MLKit face-detection 戴口罩了怎么还能检测到 mouse landmark ? 姿势不对?

  •  
  •   snowflake007 · Jul 2, 2024 · 7732 views
    This topic created in 672 days ago, the information mentioned may be changed or developed.

    刚试用了一下发现的问题,怎么知道戴墨镜 戴了口罩之类的遮挡了眼睛 嘴巴

    Android

    implementation 'com.google.mlkit:text-recognition:16.0.0'
    
    FaceLandmark mouth = face.getLandmark(FaceLandmark.MOUTH_BOTTOM);
    
    **if (mouth == null) {  //*never reach here *! }**
    

    谢谢

    下面是戴墨镜仍有眼睛 landmark 特征,代码是 Google 官方的 demo

    wear a Dark glasses

    是我使用姿势不对 ?

    snowflake007
        1
    snowflake007  
    OP
       Jul 2, 2024
    https://i.sstatic.net/8FVWftTK.jpg 戴了墨镜还有眼睛特征 landmark
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2621 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 679ms · UTC 05:43 · PVG 13:43 · LAX 22:43 · JFK 01:43
    ♥ Do have faith in what you're doing.