Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Similar image search in Rust

po3rin
December 11, 2019

Similar image search in Rust

po3rin

December 11, 2019
Tweet

More Decks by po3rin

Other Decks in Programming

Transcript

  1. Similar image search in Rust Rust LT #7 Dec 11,

    2019 @ po3rin
  2. @po3rin Software Enginner @ Shiroyagi Corporation QBHF Golang / Python

  3. QBHF നϠΪίʔϙϨʔγϣϯ͸ɺػցֶशɾࣗવ ݴޠॲཧ෼໺ͷϓϩμΫτʹྗΛೖΕ͍ͯΔձ ࣾͰ͢ɻ։ൃʹ͸ओʹ (P ΍ 1ZUIPO ͕࠾༻ ͞Ε͍ͯ·͢ɻ നϠΪίʔϙϨʔγϣϯ

  4. QBHF ࠨԼͷ(PQIFS܅ͷը૾͸ҧ͏ը૾Ͱ͢ ͕ɺ͜ͷ$SBUFΛ࢖͏ͱྨࣅը૾Ͱ͋Δ ͜ͱΛݕ஌Ͱ͖·͢ɻ ࣗ෼ͷ݁ࠗࣜͷը ૾αʔόʔͰ࿈ࣸࣸਅͷഉআͷҝʹ࡞Γ ·ͨ͠ ɻ 3VTUॳ৺ऀͳͷͰʮ΋ͬͱ͜͏ॻ͍ͨΒ ͍͍Αʂʂʯͱ͍͏ΞυόΠε͸ͲΜͲ

    Μࢦఠ͓ئ͍͠·͢ʂ
  5. QBHF

  6. QBHF "WFSBHF)BTIΞϧΰϦζϜ͸ը૾ͷྨࣅ౓ݕग़ΞϧΰϦζϜɻલॲཧ͕ ؆୯ͰͦΕͳΓͷਫ਼౓Ͱྨࣅͨ͠ը૾Λ୳͢͜ͱ͕Ͱ͖Δɻ άϨʔεέʔϧԽ ը૾Λॖখ º  ֤ըૉΛ૸ࠪͯ͠ฏۉ஋ΑΓ্ͳΒɺԼͳΒͱ͍͏༷ʹϋογϡԽ ޙ͸)BTIͷ஋ΛϕΫτϧͱݟͳ͠ɺͭͷϕΫτϧͷϋϛϯάڑ཭Λऔ ཧɺϋϛϯάڑ཭͕ᮢ஋ҎԼͳΒྨࣅը૾ͱ൑ఆͰ͖Δʂʂ

    Average Hash Ὂ
  7. QBHF Resize & Gray Scale Ὂ 3VTUʹΑΔ؆୯ͳը૾ॲཧ͸ JNBHFDSBUF͕ศརͳؔ਺Λ ఏڙ͍ͯ͠ΔɻӈͷQSPDFTT ؔ਺͸౉͞Εͨը૾ΛSFTJ[F

    HSBZTDBMFԽ͍ͯ͠Δɻ
  8. QBHF DynamicImage Ὂ ॲཧͷதͰ͸ JNBHF%ZOBNJD*NBHFͰ ը૾ΛҾ͖ճ͍ͯ͠·͢ɻ ༷ʑͳը૾ܗࣜΛFOVNͱ ͯ͠ྻڍ͢Δܕʹͳ͍ͬͯ· ͢ɻ

  9. QBHF GenericImageView Ὂ JNBHF%ZOBNJD*NBHF ͸ (FOFSJD*NBHF7JFXτϨΠ τΛ࣮૷͍ͯ͠ΔͷͰը૾ͷ جຊతͳ৘ใ͸શ෦औΕΔɻ

  10. QBHF Get Hash Ὂ ըૉ஋ͷฏۉ஋Λऔಘ͔ͯ͠ Βɺ֤ըૉΛ૸ࠪͯ͠ฏۉ஋ ΑΓ্ͳΒɺԼͳΒͱ͍ ͏༷ʹϋογϡԽ

  11. QBHF Hamming Distance Ὂ ϋογϡ͔Βϋϛϯάڑ཭ͷ ܭࢉɻ

  12. QBHF Use channel Ὂ ̎ͭͷը૾ൺֱʹ͓͍ ͯ͸ϋογϡΛऔಘ͢ ΔՕॴͰฒߦॲཧ͕Մ ೳ

  13. QBHF Conclusion \

  14. QBHF 3VTUॳ৺ऀͰ΋ը૾ॲཧͰ͖ͨɻ΋ͬͱ3VTUΒ͍࣮͠૷Λ໨ࢦ͍ͯ͘͠ɻ Conclusion Ὂ

  15. Similar image search in Rust Rust LT #7 Dec 11,

    2019 @ po3rin