Ask Your Question

soro's profile - activity

2017-11-18 10:41:10 -0600 marked best answer how to read video from webcam with opencv3.3 and python3.5 on ubuntu 16.04?

hello i have some problem to read video from camera using pythom3 and opencv3.3 when i use python2.7 the code give me the video but when i change the interpreter to python3.5 yhe code is build but no error no result , it failt to open the camera here is the test code.

import numpy as np

import cv2

cap = cv2.VideoCapture(0)

while(cap.isOpened()): # check ! # capture frame-by-frame ret, frame = cap.read()

if ret: # check ! (some webcam's need a "warmup")
    # our operation on frame come here
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

    # Display the resulting frame
    cv2.imshow('frame', gray)

if cv2.waitKey(1) & 0xFF == ord('q'):
    break

When everything is done release the capture

cap.release() cv2.destroyAllWindows()

2017-11-18 10:41:10 -0600 received badge  Scholar (source)
2017-11-18 10:41:02 -0600 commented answer how to read video from webcam with opencv3.3 and python3.5 on ubuntu 16.04?

thank it work on my laptop but not the destop. it should be due to hardware configuration thank you very much

2017-11-18 09:29:45 -0600 commented answer how to read video from webcam with opencv3.3 and python3.5 on ubuntu 16.04?

yes i tried hall these cases but nothing . it termiates immediately it goes immediately to release

2017-11-18 08:05:47 -0600 asked a question how to read video from webcam with opencv3.3 and python3.5 on ubuntu 16.04?

how to read video from webcam with opencv3.3 and python3.5 on ubuntu 16.04? hello i have some problem to read video from

2017-11-18 07:54:55 -0600 received badge  Enthusiast
2017-11-14 05:42:10 -0600 commented question how to solve this problem ? SyntaxError: only named arguments may follow *expression

ok thank , that seems to be ok

2017-11-14 01:59:50 -0600 commented question how to solve this problem ? SyntaxError: only named arguments may follow *expression

i am using python3.5 with opencv 3.3 i tried it in ubuntu terminal it does not work but there was not error message.

2017-11-14 00:13:20 -0600 asked a question how to solve this problem ? SyntaxError: only named arguments may follow *expression

how to solv this problem ? SyntaxError: only named arguments may follow *expression i am making a project with python bu