Mobile Vision

8928b5277aa7234dbca4ff782952343a?s=47 funnelbit
August 31, 2016

Mobile Vision

8928b5277aa7234dbca4ff782952343a?s=128

funnelbit

August 31, 2016
Tweet

Transcript

  1. .PCJMF7JTJPO

  2. ࣗݾ঺հ ๺ଜྋ גࣜձࣾ͸ͯͳ )BUFOBGVOOFMCJU 5XJUUFS!FYQFSPQFSP

  3. .PCJMF7JTJPO ࣸਅ͔ΒԿ͔Λநग़͢Δ

  4. .PCJMF7JTJPO w (PPHMF1MBZ4FSWJDFT w pSTUSFMFBTF w (PPHMF1MBZ4FSWJDFT w BEEFE5FYU"1* ɾ

    ɾ ɾ
  5. 'SBNF

  6. 'SBNF w 'SBNF.FUBEBUBͱඥ෇͍ͨը૾σʔλ Frame frame = new Frame.Builder().setBitmap(bitmap).build();

  7. %FUFDUPS5

  8. %FUFDUPS5 w #BSDPEF%FUFDUPS w 'BDF%FUFDUPS w 5FYU3FDPHOJ[FS w .VMUJ%FUFDUPS

  9. %FUFDUPS5 Frame frame = new Frame.Builder().setBitmap(bitmap).build(); FaceDetector detector = new

    FaceDetector.Builder(context)
 .setProminentFaceOnly(true)
 .build(); 
 SparseArray<Face> faces = detector.detect(frame); Face face = faces.valueAt(0);
  10. %FUFDUPS5 'SBNF %FUFDUPS 4QBTF"SSBZ5 JUFN JUFN JUFN

  11. 5SBDLFS

  12. 5SBDLFS w நग़͞ΕͨJUFNͷঢ়ଶมԽΛ஌ΔͨΊͷΫϥε private class FaceTracker extends Tracker<Face> {
 @Override


    public void onNewItem(int faceId, Face item) {
 // item ͷτϥοΩϯά͕։࢝͞Εͨ
 }
 @Override
 public void onUpdate(FaceDetector.Detections<Face> detectionResults, Face face) {
 // ͢Ͱʹ։͍࢝ͯ͠Δ item ͕Ξοϓσʔτ͞Εͨ
 }
 @Override
 public void onMissing(FaceDetector.Detections<Face> detectionResults) {
 // τϥοΩϯάʹࣦഊͨ͠ }
 @Override
 public void onDone() {
 // ͢ͰʹτϥοΩϯά͍ͯͨ͠ item ͕ແ͘ͳΓɺτϥοΩϯά͕ऴྃͨ͠
 }
 }
  13. .VMUJ1SPDFTTPS

  14. .VMUJ1SPDFTTPS w ෳ਺ͷݕग़ΛϋϯυϦϯά͠ɺ5SBDLFSʹ௨஌͢Δ 
 FaceDetector faceDetector = …
 faceDetector.setProcessor(new MultiProcessor.Builder<>(


    new MultiProcessor.Factory<Face>() {
 @Override
 public Tracker<Face> create(Face face) {
 return new FaceTracker();
 }
 }
 ).build());
 cameraSource.build(getApplicationContext(), faceDetector);
  15. .VMUJ1SPDFTTPS 'SBNF .VMUJ1SPDFTTPS 5SBDLFS'BDUPSZ 'SBNF 'SBNF 5SBDLFS 5SBDLFS $BNFSB4PVSDF %FUFDUPS

    5SBDLFS 5SBDLFS JUFN JUFN JUFN JUFN
  16. .VMUJ%FUFDUPS

  17. .VMUJ%FUFDUPS w Χϝϥ͔ΒͷೖྗͰಘͨ'SBNFΛ֤%FUFDUPS ʹ෼഑͢Δ 
 MultiDetector multiDetector = new MultiDetector.Builder()


    .add(faceDetector)
 .add(barcodeDetector)
 .build();
  18. .VMUJ%FUFDUPS 'SBNF %FUFDUPS 'SBNF 'SBNF 5SBDLFS 5SBDLFS $BNFSB4PVSDF .VMUJ%FUFDUPS %FUFDUPS

    5SBDLFS 5SBDLFS .VMUJ1SPDFTTPS 5SBDLFS'BDUPSZ .VMUJ1SPDFTTPS 5SBDLFS'BDUPSZ JUFN JUFN JUFN JUFN
  19. None
  20. ॴײ w ਫ਼౓͸͔ͳΓྑ͍ w ϩʔΧϧͰ׬݁͢Δͷ݁ߏੌ͍ w ಠࣗॲཧʹͩ͜ΘΒͳ͍ͳΒྑͦ͞͏

  21. ࢀߟ w IUUQTEFWFMPQFSTHPPHMFDPNWJTJPO

  22. ͋Γ͕ͱ͏͍͟͝·ͨ͠