This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import numpy as np | |
import cv2 as cv | |
np.set_printoptions(suppress=True) | |
# https://stackoverflow.com/questions/68541509/evaluate-the-correctness-of-in-extrinsic-params-resulting-from-camera-calibratio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import imghdr | |
path = "./dataset/PetImages/dog/" | |
dir_ = os.listdir(path) | |
for image in dir_: | |
file = os.path.join(path,image) | |
if not imghdr.what(file): | |
print(file) | |
#if you want to remove them, uncomment next line |