Skip to content

Commit 98b32fb

Browse files
Tom GotsmanTom Gotsman
authored andcommitted
roboflow integration
1 parent 5ba1d0c commit 98b32fb

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed
61.1 KB
Loading
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
tags: AI
3+
description: Connect your apps to Roboflow to use computer vision models and datasets for image detection, classification, and segmentation.
4+
---
5+
# Roboflow Integration
6+
7+
The **Roboflow Integration** allows your app to use [Roboflow](https://roboflow.com/) to run and deploy computer vision models without complex infrastructure. Once connected, you can use Roboflow to power image detection, object tracking, classification, and segmentation workflows.
8+
9+
## What You Can Do
10+
11+
With Roboflow, your app can:
12+
- Run **pre-trained computer vision models** for detection, classification, or segmentation.
13+
- Deploy and use **custom-trained models** built in Roboflow.
14+
- Automate workflows that rely on visual inputs — e.g., quality checks, object detection, image analysis.
15+
- Ingest and process **images in real time**.
16+
- Combine vision outputs with other integrations (e.g., AI reasoning, automation flows).
17+
18+
```md alert
19+
## This integration currently supports image inputs only.
20+
Video and streaming inputs are not yet supported.
21+
```
22+
23+
## Step 1: Obtain a Roboflow API Key
24+
25+
1. Go to your [Roboflow Account](https://roboflow.com/).
26+
2. Navigate to **Settings → API Keys**.
27+
3. Copy your Private API Key.
28+
29+
* **Example:** `YWpnxxxxxxxxxxx`
30+
31+
32+
## Step 2: Set up your Model in Roboflow
33+
34+
1. Go to Workflows and create a new workflow.
35+
2. Set up the workflow you want to use in your app, ensuring that is takes an image as input.
36+
3. Click the `deploy` button, select `Images` and then select `Integrate with my app or website`.
37+
4. Copy the `workspace_name` and `workflow_id` from the provided code snippet.
38+
39+
```python exec
40+
import reflex as rx
41+
from reflex_image_zoom import image_zoom
42+
```
43+
44+
```python eval
45+
rx.el.div(
46+
image_zoom(
47+
rx.image(
48+
src="/ai_builder/integrations/roboflow.webp",
49+
class_name="p-2 rounded-md h-auto",
50+
border=f"0.81px solid {rx.color('slate', 5)}",
51+
),
52+
class_name="rounded-md overflow-hidden",
53+
),
54+
class_name="w-full flex flex-col rounded-md cursor-pointer",
55+
)
56+
```
57+
58+
59+
## Step 3: Configure the Integration in Your App
60+
61+
1. Go to **Integrations → Add Roboflow** in your app settings.
62+
2. Paste your **Roboflow API Key**, **Workspace Name**, and **Workflow ID** in the input fields.
63+
3. Click **Connect** to validate and save your integration.
64+
65+
Once connected, your app can call Roboflow models directly from workflows, UI actions, or automated triggers.
66+
67+
68+
## Step 4: Notes
69+
70+
* **Keep your key secure:** Never expose your Roboflow key in client-side code.
71+
* **Use environment-specific keys:** Separate dev, staging, and production keys to control access.
72+
* **Model flexibility:** Use community models or your own custom-trained models.
73+
* **Real-time vision:** Ideal for applications involving cameras, inspection, monitoring, or visual AI.

0 commit comments

Comments
 (0)