You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: