mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-05-12 17:03:52 +02:00
remove unused deprecating-warning-causing biopyton dependency
This commit is contained in:
parent
d7a3f4cec6
commit
2747385f89
2 changed files with 0 additions and 7 deletions
|
|
@ -6,5 +6,4 @@ tensorflow
|
|||
tf-keras # avoid keras 3 (also needs TF_USE_LEGACY_KERAS=1)
|
||||
numba <= 0.58.1
|
||||
scikit-image
|
||||
biopython
|
||||
tabulate
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import tensorflow as tf
|
|||
from scipy.signal import find_peaks
|
||||
from scipy.ndimage import gaussian_filter1d
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
from Bio import pairwise2
|
||||
|
||||
from .resize import resize_image
|
||||
|
||||
|
|
@ -503,8 +502,3 @@ def return_rnn_cnn_ocr_of_given_textlines(image,
|
|||
ocr_textline_in_textregion.append(text_textline)
|
||||
ocr_all_textlines.append(ocr_textline_in_textregion)
|
||||
return ocr_all_textlines
|
||||
|
||||
def biopython_align(str1, str2):
|
||||
alignments = pairwise2.align.globalms(str1, str2, 2, -1, -2, -2)
|
||||
best_alignment = alignments[0] # Get the best alignment
|
||||
return best_alignment.seqA, best_alignment.seqB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue