Skip to content

Commit

Permalink
Lab01 - The remove background function creare a backgroundforeground.…
Browse files Browse the repository at this point in the history
…png file instead background.png (#25)
  • Loading branch information
massimobonanni authored Jul 23, 2024
1 parent 03a7bfd commit a151845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Instructions/Exercises/01-analyze-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,9 @@ body = {
response = requests.post(url, headers=headers, json=body)

image=response.content
with open("backgroundForeground.png", "wb") as file:
with open("background.png", "wb") as file:
file.write(image)
print(' Results saved in backgroundForeground.png \n')
print(' Results saved in background.png \n')
```

2. Save your changes and run the program once for each of the image files in the **images** folder, opening the **background.png** file that is generated in the same folder as your code file for each image. Notice how the background has been removed from each of the images.
Expand Down

0 comments on commit a151845

Please sign in to comment.