Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @csrf_exempt
- @api_view(["POST"])
- @permission_classes((AllowAny,))
- @authentication_classes([SessionAuthentication, BasicAuthentication])
- def cut(request):
- altered_request_data = request.data.copy()
- print(altered_request_data)
- in_memory_upload_files_list = [value for value in request.FILES.dict().values()]
- print(in_memory_upload_files_list)
- # img = kbs(cv2.imread(request.data.get("image").file), full_name='kpi2.jpg')
- data = {}
- return Response(data, HTTP_200_OK)
Advertisement
Add Comment
Please, Sign In to add comment