Ask Your Question

read and write images continously after fixed delay time

asked 2018-04-26 23:11:51 -0500

trohit gravatar image

updated 2018-04-27 00:26:39 -0500

Hello, i am trying to read images from a folder containing about 200 images by below code:

test_img_paths = [img_path for img_path in glob.glob("../input/test/*jpg")]
for img_path in test_img_paths:
    img = cv2.imread(img_path, cv2.IMREAD_COLOR)

Now i want to read a batch of images(5 images) after each 2sec and done processing on them and than save them. How can it be implemented as i am new to opencv. Any help is highly appreciated?

edit retag flag offensive close merge delete


To me it seems, you would need a basic course on OpenCV using Python first. Go to the python tutorials and work through them step by step.

StevenPuttemans gravatar imageStevenPuttemans ( 2018-04-27 04:32:54 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-04-27 01:01:41 -0500

holger gravatar image

updated 2018-04-27 01:07:17 -0500

Check this out here Reading with imread, writing with imwrite. The timer you can implement by yourself in the language of you choice.

In the case you want to use them for training check out this one

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-04-26 23:11:51 -0500

Seen: 109 times

Last updated: Apr 27 '18