Relative Content

Tag Archive for machine-learningflaskweb

TypeError ‘NoneType’ object is not subscriptable Error Flask

When I pressed the upload button on the image I uploaded, I made a graph cut with the nn function and showed the dominant color. I wrote the code. I want to integrate it with Flask for web, but when I wanted to show a chart image on the upload page, fashion.py”, line 109, in upload
color_detection_chart = color_detection12(img_cut, n_colors=3, show_chart=True, output_chart=’static/color_chart.png’)
fashion.py”, line 160, in color_detection12
img = img[:, :, 2]
TypeError: ‘NoneType’ object is not subscriptable