mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 09:08:31 +02:00
fix: [numpy] is a deprecated alias for . (Deprecated NumPy 1.24)
This commit is contained in:
parent
fa741328f3
commit
d6a18a71e4
1 changed files with 3 additions and 6 deletions
|
@ -1,6 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Stegano - Stegano is a pure Python steganography module.
|
||||
# Copyright (C) 2010-2022 Cédric Bonhomme - https://www.cedricbonhomme.org
|
||||
#
|
||||
|
@ -90,8 +88,7 @@ def composite() -> Iterator[int]:
|
|||
"""
|
||||
p1 = 3
|
||||
for p2 in eratosthenes():
|
||||
for n in range(p1 + 1, p2):
|
||||
yield n
|
||||
yield from range(p1 + 1, p2)
|
||||
p1 = p2
|
||||
|
||||
|
||||
|
@ -225,7 +222,7 @@ def LFSR(m: int) -> Iterator[int]:
|
|||
# Add the feedback bit
|
||||
state.insert(0, feedback)
|
||||
# Convert the registers to an int
|
||||
out = sum([e * (2**i) for i, e in enumerate(state)])
|
||||
out = sum(e * (2**i) for i, e in enumerate(state))
|
||||
yield out
|
||||
|
||||
|
||||
|
@ -244,7 +241,7 @@ def shi_tomashi(
|
|||
gray, max_corners, quality, min_distance
|
||||
)
|
||||
corners_int: np.ndarray[Any, np.dtype[np.signedinteger[Any]]] = np.array(
|
||||
np.int0(corners)
|
||||
np.intp(corners)
|
||||
)
|
||||
i = 0
|
||||
while True:
|
||||
|
|
Loading…
Add table
Reference in a new issue