Hello, I want to resize the video image to 1/1 size instead of 1/4 to display the result on a screen.
attached part of my code
import face_recognition
import cv2
video_capture = cv2.VideoCapture(0)
frame = video_capture.read()
# Resize frame of video to 1/1 size
width = 500
height = 700
dsize = (height, width)
small_frame = cv2.resize(frame, dsize, fx=0.25, fy=0.25)
# Display the results
for (top, right, bottom, left), name in zip(face_locations, face_names):
# Scale back up face locations since the frame we detected in was scaled to 1/4 size
top *= 4
right *= 4
bottom *= 4
left *= 4
# Draw a box around the face
cv2.rectangle(frame, (left, top), (right, bottom), (0, 0, 255), 2)
# Draw a label with a name below the face
cv2.rectangle(frame, (left, bottom - 35), (right, bottom), (0, 0, 255), cv2.FILLED)
font = cv2.FONT_HERSHEY_DUPLEX
cv2.putText(frame, name, (left + 6, bottom - 6), font, 1.0, (255, 255, 255), 1)
# Display the resulting image
cv2.imshow('Video', frame)
# Hit 'q' on the keyboard to quit!
if cv2.waitKey(1) & 0xFF == ord('q'):
break
how to make the frame take the whole window of my pc? thank you
the following screenshot explains my problem