Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR running ./gen.py 1000 #112

Open
Ozzal opened this issue Apr 24, 2019 · 1 comment
Open

ERROR running ./gen.py 1000 #112

Ozzal opened this issue Apr 24, 2019 · 1 comment

Comments

@Ozzal
Copy link

Ozzal commented Apr 24, 2019

File "gen.py", line 289, in
for img_idx, (im, c, p) in enumerate(im_gen):
File "gen.py", line 283, in generate_ims
yield generate_im(font_char_ims[random.choice(fonts)], num_bg_images)
File "gen.py", line 236, in generate_im
bg = generate_bg(num_bg_images)
File "gen.py", line 221, in generate_bg
bg = cv2.imread(fname, cv2.CV_LOAD_IMAGE_GRAYSCALE) / 255.
AttributeError: module 'cv2' has no attribute 'CV_LOAD_IMAGE_GRAYSCALE'

Can someone explain what to do

@AnasYasin
Copy link

In CV2 they have changed 'CV_LOAD_IMAGE_GRAYSCALE' to 'cv2.IMREAD_GRAYSCALE'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants