https://github.com/carcutter/carcutter-api-samples
Code samples for calling the CarCutter API
https://github.com/carcutter/carcutter-api-samples
backend
Last synced: 5 months ago
JSON representation
Code samples for calling the CarCutter API
- Host: GitHub
- URL: https://github.com/carcutter/carcutter-api-samples
- Owner: carcutter
- Created: 2021-10-29T13:16:31.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-04-28T19:35:14.000Z (about 4 years ago)
- Last Synced: 2025-06-26T13:46:28.483Z (12 months ago)
- Topics: backend
- Homepage:
- Size: 3.1 MB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# carcutter-api-samples
Code samples for calling the free demo CarCutter API.
## Public demo access
You can easily process images and experiment with the different cut types via our **Web UI** at https://demo.car-cutter.com/.
Calling the public part of the **CarCutter API** is possible on Linux or Mac via the commands below.
### Complete cut
Completely extracts the car from its background and places it into a **rendered 3D showroom**.

```
curl -X POST https://api.car-cutter.com/vehicle/composition/segment \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: multipart/form-data' \
-F cut_type=complete \
-F image=@images/source/front-left.jpg \
| base64 --decode > front-left_CC.jpg
```
### Half cut (a.k.a. normal cut)
Partly extracts the car from its background, **extends the ground** to an artificial horizon, and adds a backdrop.

```
curl -X POST https://api.car-cutter.com/vehicle/composition/segment \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: multipart/form-data' \
-F cut_type=normal \
-F image=@images/source/side-left.jpg \
| base64 --decode > side-left_NC.jpg
```
### Blur cut
Blurs everything but the car, thus **focusing the view**.

```
curl -X POST https://api.car-cutter.com/vehicle/composition/segment \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: multipart/form-data' \
-F cut_type=blur \
-F image=@images/source/front.jpg \
| base64 --decode > front_BC.jpg
```