c261b64d51ef8f55ad04f7b09cad7da9deacafef,face_recognition/cli.py,,test_image,#Any#Any#Any#Any#Any#,42
Before Change
scale_factor = 1600.0 / unknown_image.shape[1]
with warnings.catch_warnings():
warnings.simplefilter("ignore")
unknown_image = scipy.misc.imresize(unknown_image, scale_factor)
unknown_encodings = face_recognition.face_encodings(unknown_image)
for unknown_encoding in unknown_encodings:
After Change
unknown_image = face_recognition.load_image_file(image_to_check)
// Scale down image if it"s giant so things run a little faster
if max(unknown_image.shape) > 1600:
pil_img = PIL.Image.fromarray(unknown_image)
pil_img.thumbnail((1600, 1600), PIL.Image.LANCZOS)
unknown_image = np.array(pil_img)
unknown_encodings = face_recognition.face_encodings(unknown_image)
for unknown_encoding in unknown_encodings:
distances = face_recognition.face_distance(known_face_encodings, unknown_encoding)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: ageitgey/face_recognition
Commit Name: c261b64d51ef8f55ad04f7b09cad7da9deacafef
Time: 2018-02-27
Author: ageitgey@gmail.com
File Name: face_recognition/cli.py
Class Name:
Method Name: test_image
Project Name: SullyChen/Autopilot-TensorFlow
Commit Name: a5bb98a4f7cc8947afa7ca6dc546c7e94c3e982c
Time: 2020-05-12
Author: sullyfchen@gmail.com
File Name: run.py
Class Name:
Method Name:
Project Name: NervanaSystems/coach
Commit Name: 30c2b2fc4586d1bf6b50e1b6f2c2a5c04acf2947
Time: 2019-05-23
Author: gal.leibovich@intel.com
File Name: rl_coach/filters/observation/observation_rescale_size_by_factor_filter.py
Class Name: ObservationRescaleSizeByFactorFilter
Method Name: filter