# How to get OpenCV to display entire camera frame?

**URL:** <https://forum.opencv.org/t/how-to-get-opencv-to-display-entire-camera-frame/4759>\
**Category:** Python\
**Tags:** videoio\
**Created:** [August 14, 2021, 7:37am UTC](https://forum.opencv.org/t/how-to-get-opencv-to-display-entire-camera-frame/4759 "2021-08-14T07:37:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![George7130](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/george7130/32/2899_2.png) [@George7130](https://forum.opencv.org/u/George7130)\
**Post date:** [August 14, 2021, 7:37am UTC](https://forum.opencv.org/t/how-to-get-opencv-to-display-entire-camera-frame/4759/1 "2021-08-14T07:37:48Z")

</div>

I’m using a 180 degree FOV fisheye camera for a project and am having difficulty getting OpenCV to display the entire camera frame. When I open the camera in the standard Windows camera app it shows the full 180 degree FOV, but when I use a simple script to display the camera in Python it crops a decent chunk of the image and nearly halves the FOV.

Image using Windows camera app: [Windows — ImgBB](https://ibb.co/WFK8Jm2)

Image when Python script is running: [python — ImgBB](https://ibb.co/QddnWXJ)

Below is the code I’m using:

```
import cv2

cap = cv2.VideoCapture(0)

if not cap.isOpened():
    raise IOError("Cannot open webcam")

while True:
    ret, frame = cap.read()
    frame = cv2.resize(frame, (1500,1000), fx=0, fy=0, interpolation=cv2.INTER_AREA)
    cv2.imshow('Input', frame)

    c = cv2.waitKey(1)
    if c == 27:
        break

cap.release()
cv2.destroyAllWindows()

```

Anyone know how to stop this auto-cropping and display the full frame? Resizing the window doesn’t help. Any help would be much appreciated!

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [August 14, 2021, 10:24am UTC](https://forum.opencv.org/t/how-to-get-opencv-to-display-entire-camera-frame/4759/2 "2021-08-14T10:24:15Z")

</div>

your post already has answers. why are you asking that again?

> <https://stackoverflow.com/questions/68748167/how-to-get-opencv-to-display-entire-camera-frame>
