Ask Your Question
0

read and write images continously after fixed delay time

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

trohit gravatar image

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

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

Comments

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

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

holger gravatar image

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

Check this out here https://docs.opencv.org/3.0-beta/modu... 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 http://answers.opencv.org/question/19...

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 319 times

Last updated: Apr 27 '18