SijinJohn

Results 17 comments of SijinJohn

Can we run on Windows machine??

@SarthakGarg19 @lbq779660843 i am getting error in this line ""frame = cv2.resize(frame,(224,224))"". Why is that? error:-src\resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function ‘cv2.resize’

def main(): cam = cv2.VideoCapture(0) cv2.namedWindow("test") cam.set(cv2.CAP_PROP_FRAME_WIDTH, WIDTH) cam.set(cv2.CAP_PROP_FRAME_HEIGHT, HEIGHT) img_counter = 0 while True: ret, frame = cam.read() print(frame) #print("shape is ",frame.shape) #frame = cv2.resize(frame,(224,224)) execute(frame) frame = cv2.resize(frame,(640,640))...

@SarthakGarg19 @lbq779660843 @kedaya1999 import cv2 import numpy as np # cam = cv2.VideoCapture(gstreamer_pipeline(flip_method=2), cv2.CAP_GSTREAMER) cam = cv2.VideoCapture(0) while True: ret, frame = cam.read() # print(frame) print("shape1is ",frame.shape) frame = cv2.resize(frame,(640,480))...

ah it worked. I removed these two line :- cam.set(cv2.CAP_PROP_FRAME_WIDTH, WIDTH) cam.set(cv2.CAP_PROP_FRAME_HEIGHT, HEIGHT) and it worked. Thanks

@ChuanJiang0126 just click the link it will automatically download. It worked for me

Hi even I have this problem. It is taking too long and the system is stuck. I also got a low memory warning on the Jetson nano.What to do???