포스트

image_compare 플러터 패키지 의존성 최신화 작업, 이미지 유사도 비교 패키지

플러터에 다음과 같은 이미지 유사도 픽셀 비교 패키지가 있습니다.

https://pub.dev/packages/image_compare

image_compare | Dart package Dart package for image comparison. Compare images for difference using a variety of algorithms. Dart package for image comparison. Compare images for difference using a variety of algorithms.

2년 전에 업데이트 되었지만 잘 작동해서, 의존성 업데이트를 했는데 에러가 많았습니다.

최신화 작업해서 돌아가게끔 만들고 나니, 다른 분이 이미 작년에 최신화 업데이트해서 Pull request한 것을 발견했습니다.

Likes 수가 적어서 검색에서 못 찾았나봅니다.

https://github.com/lcuis/image_compare/tree/main?tab=BSD-3-Clause-1-ov-file

GitHub - lcuis/image_compare: Dart package for comparing images. Find the difference between two images by using a variety of image comparison techniques. Dart package for comparing images. Find the difference between two images by using a variety of image comparison techniques. - lcuis/image_compare Dart package for comparing images. Find the difference between two images by using a variety of image comparison techniques. - lcuis/image_compare

그래서 클론 받아서 example을 돌려보았습니다.

그런데 PerceptualHash 관련 에러로 해당 알고리즘 실행 불가하였습니다.

그래서 그냥 제가 하던 최신화 레포 작업으로 돌아왔습니다..ㅎ

https://github.com/southglory/image_compare

GitHub - southglory/image_compare: Dart package for comparing images. Find the difference between two images by using a variety of image comparison techniques. Dart package for comparing images. Find the difference between two images by using a variety of image comparison techniques. - southglory/image_compare Dart package for comparing images. Find the difference between two images by using a variety of image comparison techniques. - southglory/image_compare

image_compare_2 퍼블리셔분이 이미 작업하신 내용에서는 안 되는,

'Perceptual Hash' 알고리즘을 수정해서 돌아가게는 만들었는데, 혹시나 본래 알고리즘을 손상시킨 부분이 있는지 확답이 안되어, 오리지널 저자분께 풀 리퀘스트를 해놓았습니다.

https://github.com/nitinramadoss/image_compare/pull/14

Could you check if this PerceptualHash.compare algorithm in my version is correct? by southglory · Pull Request #14 · nitinramadoss/image_compare Upgrade dependencies Update expired image links as active image links. Fix all errors related to the 'PerceptualHash.compare' function in the upgraded dependencies. Upgrade dependencies Update expired image links as active image links. Fix all errors related to the 'PerceptualHash.compare' function in the upgraded dependencies.

pub.dev 패키지 최신화 작업에 참여하게 되어 설레였지만,

이미 다른 분이 작업하고 새로운 이름으로 패키지를 냈다는 것에 실망스러웠습니다.

그런데 그 최신 패키지도 에러가 있어서 그 부분을 개선하는 시도를 한 점에 있어서는 의미가 있었던 것 같습니다.

감사합니다.

sticker

이 기사는 저작권자의 CC BY 4.0 라이센스를 따릅니다.