Show original video frames in UI instead of preprocessed crops
Browse files307 unmodified lines308309310311312311312313314315316317307 unmodified lines label = "fake" if p_fake >= p_real else "real" score = p_fake if label == "fake" else p_real
img_for_display = crop if has_face and crop is not None else orig_frame frame_b64 = b64_encode_image_bgr(img_for_display) # For display, always show the original video frame (not the # preprocessed / cropped face), so colors and aspect ratio match # what the user sees in the video preview. frame_b64 = b64_encode_image_bgr(orig_frame)
out_frames.append(frame_b64) out_preds.append(app.py+4-2