Ask Your Question
0

gray2=cv2.imread(frame_list[cnt],0)

asked 2017-01-23 23:51:19 -0600

screen1 gravatar image

can any Please explain this instruction

edit retag flag offensive close merge delete

Comments

add the context, please.

berak gravatar imageberak ( 2017-01-24 01:10:11 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-24 02:43:32 -0600

pi-null-mezon gravatar image

updated 2017-01-24 02:43:56 -0600

Of course:

1) gray2 is an instance of the opencv Mat object, that is used to store image

2) cv2.imread is the function that is used to load image from the local hard drive

3) frame_list[cnt] - an element of the vector with filenames, and cnt is an index of the currrent element

4) last, 0 constant, is the flag that the image should be loaded in grayscale mode

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-01-23 23:51:19 -0600

Seen: 139 times

Last updated: Jan 24 '17