Oct-27-2022, 08:35 AM
Hello,
in line 10 and 11:
there are strings (hash strings: "abc1c2...") in frame_hash_list.
It comes from the frame comparison.
in line 10 and 11:
there are strings (hash strings: "abc1c2...") in frame_hash_list.
It comes from the frame comparison.
def create_phash(): frame_hash_list = [] p = "D:/S8_hanger_finder/neuer_Ansatz/aktueller_Versuch/phash_test/" obj = os.scandir(p) for entry in obj: # load frames frame = Image.open(p + str(entry.name)) # create pHash # Compare hashes to determine whether the frames are the same or not frame_phash = str(imagehash.phash(frame)) frame_hash_list.append(frame_phash) obj.close() return frame_hash_list