Skip to content

Instantly share code, notes, and snippets.

"""Official evaluation script for SQuAD version 2.0.
In addition to basic functionality, we also compute additional statistics and
plot precision-recall curves if an additional na_prob.json file is provided.
This file is expected to map question ID's to the model's predicted probability
that a question is unanswerable.
"""
import argparse
import collections
import json
@Tahsin-Mayeesha
Tahsin-Mayeesha / invisibility.py
Created August 10, 2020 16:55
Code gathered from multiple tutorials
import cv2
import numpy as np
import time
cap = cv2.VideoCapture(0)
time.sleep(1)
background = 0
for i in range(30):
ret, background = cap.read()