Use this pre-trained damage type computer vision model to retrieve predictions with our hosted API or deploy to the edge. Learn More About Roboflow Inference
Samples from Test Set
Add images to Test Set to preview inferences.
Confidence Threshold: 50
0%
100%
Inference is Roboflow's open source deployment package for developer-friendly vision inference.
Using Roboflow, you can deploy your object detection model to a range of environments, including:
Below, we have instructions on how to use our deployment options.
To install dependencies, pip install inference-sdk
.
Then, add the following code snippet to a Python script:
python
from inference_sdk import InferenceHTTPClient
CLIENT = InferenceHTTPClient(
api_url="https://outline.roboflow.com",
api_key="API_KEY"
)
result = CLIENT.infer(your_image.jpg, model_id="damage-type-cjmf5/1")
We're using axios to perform the POST request in this example so first run npm install axios to install the dependency.
javascript
const axios = require("axios");
const fs = require("fs");
const image = fs.readFileSync("YOUR_IMAGE.jpg", {
encoding: "base64"
});
axios({
method: "POST",
url: "https://outline.roboflow.com/damage-type-cjmf5/1",
params: {
api_key: "API_KEY"
},
data: image,
headers: {
"Content-Type": "application/x-www-form-urlencoded"
}
})
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.log(error.message);
});
javascript
const axios = require("axios");
axios({
method: "POST",
url: "https://outline.roboflow.com/damage-type-cjmf5/1",
params: {
api_key: "API_KEY",
image: "IMAGE_URL"
}
})
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.log(error.message);
});
Look through our full documentation for more information and resources on how to utilize this model.
Use this model with a full fledged web application that has all sample code included.
Perform inference at the edge with a Jetson via our Docker container.
Utilize your model on your mobile device.