@app.route('/process', methods=['POST'])
@track_requests
def processing_image():
    if (request.method == 'POST'):
        f = request.files['file']
        filename = f.filename
        filepath = os.path.join('./userapp/', filename)
        f.save(filepath)
        filepath_processed = improcess.preprocessing(filepath)
        result = {}
        j = 0
        for i in filepath_processed:
            images.append(i)
            result[j] = i
            j = (j + 1)
        print(images)
        return result
@app.route('/process', methods=['POST'])
@track_requests
def processing_image():
    if (request.method == 'POST'):
        f = request.files['file']
        filename = f.filename
        filepath = os.path.join('./userapp/', filename)
        f.save(filepath)
        filepath_processed = improcess.preprocessing(filepath)
        result = {}
        j = 0
        for i in filepath_processed:
            images.append(i)
            result[j] = i
            j = (j + 1)
        print(images)
        return result