Show original video frames in UI instead of preprocessed crops
Browse files307 unmodified lines308309310311312313314315307 unmodified lineslabel = "fake" if p_fake >= p_real else "real"score = p_fake if label == "fake" else p_realimg_for_display = crop if has_face and crop is not None else orig_frameframe_b64 = b64_encode_image_bgr(img_for_display)out_frames.append(frame_b64)out_preds.append(307 unmodified lines308309310311312313314315316317307 unmodified lineslabel = "fake" if p_fake >= p_real else "real"score = p_fake if label == "fake" else p_real# 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