---
title: "Comment by w yl on \"Image & Video Background Removal using Deep Learning\" | Hashnode"
description: "error Traceback (most recent call last) in () 6 original=cv2.imread('/content/gdrive/MyDrive/background_removal_DL/test_data/videos/input_frames/input'+str(i)+'"
url: "https://hashnode.com/posts/image-and-video-background-removal-using-deep-learning/5fee022d017ebb59232dd71e/comment/661e3e516b1c62b8e3998818"
---

[Discussion](https://hashnode.com/posts/image-and-video-background-removal-using-deep-learning/5fee022d017ebb59232dd71e)

Comment [Image & Video Background Removal using Deep Learning](https://hashnode.com/posts/image-and-video-background-removal-using-deep-learning/5fee022d017ebb59232dd71e)

[w yl](https://hashnode.com/@yulin6518)

[Apr 16, 2024](https://hashnode.com/posts/image-and-video-background-removal-using-deep-learning/5fee022d017ebb59232dd71e/comment/661e3e516b1c62b8e3998818)

error Traceback (most recent call last)

in () 6 original=cv2.imread('/content/gdrive/MyDrive/background\_removal\_DL/test\_data/videos/input\_frames/input'+str(i)+'.png') 7 #subimage ----> 8 subimage=cv2.subtract(u2netresult,original) 9 cv2.imwrite('/content/gdrive/MyDrive/background\_removal\_DL/test\_data/videos/output\_frames/output'+str(i)+'.png',subimage) 10

error: OpenCV(4.8.0) /io/opencv/modules/core/src/arithm.cpp:647: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'arithm\_op'

[w yl](https://hashnode.com/@yulin6518)

[Apr 16, 2024](https://hashnode.com/posts/image-and-video-background-removal-using-deep-learning/5fee022d017ebb59232dd71e/comment/661e3e516b1c62b8e3998818#reply-661e3e772d2115418c08ec53)

How should I resize my image
