Skip to content

Code samples for calling the CarCutter API

Notifications You must be signed in to change notification settings

carcutter/carcutter-api-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

complete cut

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.

half cut

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.

blur cut

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

About

Code samples for calling the CarCutter API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •