Documentation, Components and Examples
Dragonfruit AI's Launchpad is a platform that enables you to build and deploy real-time computer vision applications in minutes. This repository contains documentation and examples to help you get started with using and developing for the platform.
Dragonfruit AI is the platform for you to bring your ideas to the world on an enterprise scale.
- Launchpad gives company builders the ability to build and distribute computer vision applications, with most of the CV heavy lifting done by Dragonfruit
- Mix-and-match platform capabilities around managed hardware, managed inference, managed compute and managed app canvas (including mobile), with your own business logic
- Distribution of your products across select enterprise verticals like retail and manufacturing is also possible
This guide provides simple, vibe-coding instructions to help you build a computer vision app in seconds, using Dragonfruit AI's Launchpad. Even an 8-year-old can do it!
Lovable is an AI-powered platform that turns prompts into code. Here's how to use Lovable to build your first computer vision app:
-
Sign up for Lovable
- Sign up for lovable.dev
-
Generate your Component
-
In the lovable interface, submit the following prompt to create your project:
Write a simple pure React component called LPSafety, without using pre-existing imports. Only `antd` and `axios` can be used. The component must accept the following props: ``` inferface LPSafetyProps { apiHost: string; // domain of the API server. customerId: string; // Customer ID with the application installed. appId: string; // Global identifier for this application. getAuthToken: () => Promise<string>; // Get an authorisation token for making requests. } ``` Add a button called "Fetch License Plates" which, when clicked, calls the "get_plates" endpoint using axios, authenticating with the token obtained from getAuthToken(). The endpoint URL is constructed using the api_host prop. The button will fetch results containing a list of JSON objects like this one: ```json { "plate_number": "OSE5J50", "site": {"name": "Site name", "site_id": 66}, "channel": {"name": "Channel name", "channel_id": 1}, "thumbnail_url": "https://{thumbnail_url}", "timestamp": 1734908445 } ``` Render the fetched data in an antd table.
-
-
Collect your component
- In the lovable chat for your new project, submit the following prompt:
Give me a single react component for LPSafety all in one file.
- In the lovable chat for your new project, submit the following prompt:
-
Create your Launchpad App
- Open a text editor (e.g. Notepad, VS Code) and paste the generated code.
Save the file as
LPSafety.tsxin a folder namedLPSafety.dfappon your computer. - Add a
config.yamlfile to theLPSafety.dfappfolder with the following content:appName: LPSafety appDisplayName: License Plate Safety
- Open a text editor (e.g. Notepad, VS Code) and paste the generated code.
Save the file as
-
Upload your Launchpad App
- Zip the
LPSafety.dfappfolder and upload it to Dragonfruit Launchpad. Your app will be deployed after approval by the Dragonfruit team.
- Zip the
ChatGPT is an AI chat tool that can generate code from natural language. Hereβs how to create an equivalent version of the LPSafety component using ChatGPT:
-
Sign up for ChatGPT
- Sign up for chat.openai.com
-
Generate your Component
- Enter the same prompt as step 2. in the Lovable instructions above, and submit it to ChatGPT.
- ChatGPT will create a new canvas containing your code for the component.
-
Create and Upload your Launchpad App
- Follow steps 4. and 5. from the Lovable instructions above to create and upload your Launchpad app.
Use Dragonfruit AI's live inference capabilities to quickly run real-time inference over your live video cameras, and receive results sent to a configured webhook in real-time.
Tip
Get started by signing up for Launchpad:
- Visit the Launchpad homepage at app.dragonfruit.ai/launchpad
- Register by completing the (1) video ingestion, (2) account creation, and (3) pre-payment steps.
- Login to the Dragonfruit App at app.dragonfruit.ai
Various configuration options are available to customize your live inference experience.
Launchpad currently supports video ingestion from the following sources:
- Live Webcam Streaming (Via compatible browsers)
- Live RTSP streams (IP cameras) via
rtsp://<user>:<pass>@<host>:<port>/<path>URLs
Note
If you selected the "webcam" option during registration, a streaming option will be available when you open the Launchpad app. You will need to grant permissions to access your webcam, and manually start the stream using the UI.
Launchpad has the ability to run different kinds of inference on your live video streams. This currently includes:
- Real-time scene to text descriptions
captioning
- Real-time object detection with bounding boxes
peoplevehicleslicense plates
Launchpad sends real-time inference results to a self-hosted webhook of your choice. The format depends on the chosen inference mode.
Tip
Using webhooks in this way allows you to integrate Launchpad with your own applications and services.