vision.onFaceAnalysisResult - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.vision.onFaceAnalysisResult

API μ„€λͺ…

  • μ˜μƒμΈμ‹ 정보 μˆ˜μ‹  API
  • μ˜μƒμΈμ‹ μ„œλΉ„μŠ€λ₯Ό μ‹œμž‘ν•˜λ©΄ 인식 κ²°κ³Όλ₯Ό λ°›λŠ” Event Callback

API ꡬ쑰

  • function callback(extra)
  • extra
    • userNameList: (StringArray) μΈμ‹λœ μ‚¬μš©μž 이름
    • userIdList: (StringArray) μΈμ‹λœ μ‚¬μš©μž ContainerID
    • userAgeList: (StringArray) μΈμ‹λœ μ‚¬μš©μžμ˜ μ—°λ Ή μΆ”μ • κ°’
    • userGenderList: (StringArray) μΈμ‹λœ μ‚¬μš©μžμ˜ 성별 μΆ”μ • κ°’μœΌλ‘œ λ‹€μŒ 두 가지 값을 κ°€μ§ˆ 수 있음
      • M: 남
      • F: μ—¬
    • userExpressionList: (StringArray) μΈμ‹λœ μ‚¬μš©μžμ˜ ν‘œμ • μΆ”μ • κ°’μœΌλ‘œ λ‹€μŒμ˜ μ„Έ 가지 κ°’ 쀑 ν•˜λ‚˜λ₯Ό 가짐
      • Neutral: λ¬΄ν‘œμ •
      • Smile: μ›ƒμŒ
      • null: 인식 λΆˆκ°€
    • userCount: (Integer) κ°μ§€λœ μ‚¬μš©μž 수
    • envAccuracy: (Integer) 정확도
      • 1: QVGA κ°€λ‘œ(320x240)
      • 2: VGA μ„Έλ‘œ(480x640)
      • 3: VGA κ°€λ‘œ(640x480)
      • 4: HD (1280x720)
      • 5: FHD (1920x1080)

μ‚¬μš© μ˜ˆμ‹œ

gigagenie.vision.onFaceAnalysisResult = function (extra) {
    for (var i = 0; i < extra.userCount; i++) {
        console.log('userNameList: ' + extra.userNameList[i]);
        console.log('userIdList: ' + extra.userIdList[i]);
        console.log('userAgeList: ' + extra.userAgeList[i]);
        console.log('userGenderList: ' + extra.userGenderList[i]);
        console.log('userExpressionList: ' + extra.userExpressionList[i]);
        console.log('envAccuracy: ' + extra.envAccuracy[i]);
    }
};