summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2023-06-09 14:58:50 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-02-11 16:04:52 +0000
commit5ff5a2b2cf5ff5d191848fcf060d79d6ffc13c11 (patch)
treedd76282adb26de05d89f40ad8d376e1dd1729066 /gnu/packages/python-science.scm
parenta7d7a1ec0b56f985c22b80056040a5e2ec012a80 (diff)
gnu: Add python-imagehash.
* gnu/packages/python-science.scm (python-imagehash): New variable. Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Change-Id: Ie773b4504d97ac2678e0776a27eb661d909fed47
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index bcd16724b1c..1f4cdb239a1 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -253,6 +253,52 @@ numerical software for solving convex second-order cone programs (SOCPs).")
253formulas for Python.") 253formulas for Python.")
254 (license license:expat))) 254 (license license:expat)))
255 255
256(define-public python-imagehash
257 (package
258 (name "python-imagehash")
259 (version "4.3.1")
260 (source
261 (origin
262 (method git-fetch) ;no tests in PyPI
263 (uri (git-reference
264 ;; It's an effective and maintained fork of
265 ;; <https://github.com/bunchesofdonald/photohash> project, which
266 ;; has the latest release in 2016.
267 (url "https://github.com/JohannesBuchner/imagehash")
268 (commit (string-append "v" version))))
269 (file-name (git-file-name name version))
270 (sha256
271 (base32 "1lw9lxzrzy9s5v3xc35vmh97hlyavnla087fp19k77va6v8vbjjf"))))
272 (build-system pyproject-build-system)
273 (native-inputs
274 (list python-pytest
275 python-setuptools
276 python-wheel))
277 (propagated-inputs
278 (list python-numpy
279 python-pillow
280 python-pywavelets
281 python-scipy))
282 (home-page "https://github.com/JohannesBuchner/imagehash")
283 (synopsis "Perceptual Image Hashing library")
284 (description
285 "This package implements a functinoality to tell whether two images look
286nearly identical. The image hash algorithms (average, perceptual, difference,
287wavelet) analyse the image structure on luminance (without color information).
288The color hash algorithm analyses the color distribution and black & gray
289fractions (without position information).
290
291Features:
292@itemize
293@item average hashing
294@item perceptual hashing
295@item difference hashing
296@item wavelet hashing
297@item HSV color hashing (colorhash)
298@item crop-resistant hashing
299@end itemize")
300 (license license:bsd-2)))
301
256(define-public python-osqp 302(define-public python-osqp
257 (package 303 (package
258 (name "python-osqp") 304 (name "python-osqp")