Actions40
- AI Actions
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Generate Actions
- Operator Actions
- PDF Actions
- Storage Actions
AI → Picture Object Recognition
AI-generatedOverview
The AI: Picture Object Recognition operation in this custom n8n node allows you to analyze an image from a given URL and detect objects within it. This is useful for automating workflows that require image content analysis, such as categorizing images, moderating user uploads, or extracting information from photos.
Practical examples:
- Automatically tagging products in e-commerce images.
- Detecting objects in security camera footage.
- Moderating uploaded images by identifying prohibited items.
Properties
| Name | Meaning |
|---|---|
| URL | URL of the image you want to analyse |
Output
The output will be a JSON object containing the results of the picture object recognition process. While the exact structure depends on the external service response, you can expect fields describing detected objects, their labels, positions, and possibly confidence scores.
Example output (structure may vary):
{
"objects": [
{
"label": "cat",
"confidence": 0.98,
"boundingBox": {
"x": 34,
"y": 50,
"width": 120,
"height": 80
}
},
{
"label": "sofa",
"confidence": 0.87,
"boundingBox": {
"x": 10,
"y": 100,
"width": 200,
"height": 150
}
}
]
}
Note: The actual keys and nesting may differ based on the API's response.
Dependencies
- External Service: Requires access to the CodeKit API for AI operations.
- API Key: You must configure the
codeKitApicredential in n8n for authentication.
Troubleshooting
Common issues:
- Invalid or unreachable image URL: Ensure the provided URL is correct and publicly accessible.
- Missing credentials: If the
codeKitApicredential is not set up, the node will fail to authenticate. - API errors: If the external service returns an error (e.g., unsupported image format), the node will return an error message in the output if "Continue On Fail" is enabled.
Error messages and resolutions:
"error": "Request failed with status code 401"
Resolution: Check your API key configuration in n8n."error": "Invalid image URL"
Resolution: Verify the image URL is correct and accessible."error": "Unsupported image format"
Resolution: Use a supported image file type (e.g., JPEG, PNG).
Links and References
- n8n Documentation: Credentials
- n8n Documentation: Custom Nodes
- (If available) CodeKit API Documentation (replace with actual link if known)