Object Detection with BuildShip's Google Vision API Template
Tags: beginners, tutorial, ai, api
Published: 2024-01-18 09:40:31

Creating powerful backend solutions can often be a daunting task, especially when dealing with complex functionalities like image processing and object detection. However, with the advent of AI-powered low-code platforms, the game has changed. BuildShip is one such platform that is revolutionizing the way developers and businesses implement backend workflows.

Today, we're diving into a feature that combines the simplicity of low-code development with the power of AI: the Google Vision API object detection template in BuildShip.


## Introducing the Google Vision API Template on BuildShip

BuildShip's new template leverages the Google Vision API to create an API endpoint that does more than just analyze an image. It detects objects within the image and returns a new image with those objects outlined. This feature is perfect for applications that require visual recognition capabilities, such as inventory management, security surveillance, or even social media platforms.

![Google Vision API Template](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ihtwcww9okhnp0g13fgs.png)

## Step-by-Step Guide to Using the Object Detection Template

Let's walk through the process of setting up an object detection workflow using BuildShip's intuitive interface:

### Step 1: Trigger Creation

First, you'll create a trigger for your workflow. This will be a GET request with a custom path. For our example, we'll name it detectobjects. This endpoint will be the entry point for our object detection service.

![Trigger Creation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q397z52oxfnxia3yq1jz.png)

### Step 2: Handling Image URLs

Next, you'll set up a node to handle the image URL passed as a query parameter. This parameter, named imageURL, is essential as it points to the image you want to analyze and is marked as required.

![Handling Image URLs](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2plcaldafh5q5l8lk05z.png)

### Step 3: Object Detection

Now, you'll use the detect objects in image node, which takes the imageURL from the query and utilizes the Google Cloud Vision package to identify and return the objects found in the image.


![Object Detection](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yd4va8g2y5rjpporyz2q.png)

### Step 4: Drawing Boundaries

After detection, the workflow passes the image and detected objects to the draw multiple object boundaries node. Here, you'll need to ensure that your Browserless key is set correctly, as the node requires this to function.

![Drawing Boundaries](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rcc3iufh77zbtyxcfzh8.png)

### Step 5: Finalizing the Output

The last node in the workflow creates a response with the highlighted objects and their respective data. This information will be packaged neatly, ready to be returned to the user.

![Finalizing the Output](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zc1lprnahne2j5wnklog.png)

### Step 6: Shipping the Workflow

Once everything is set up, you simply click on "ship" to deploy your workflow. BuildShip provides a URL for the newly created endpoint, which you can immediately test with any image.


![Shipping the Workflow](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ojxd170a63ockt0emvkx.png)

### Testing the Workflow

With the workflow deployed, you can use tools like Postman to send an image URL to your new endpoint. The result? A JSON response with the detected objects and a link to the processed image with the outlined objects. It's that simple and efficient.

## Conclusion

BuildShip's Google Vision API object detection template is a testament to the platform's commitment to simplifying backend development. By leveraging AI and a user-friendly low-code approach, BuildShip enables developers and businesses to integrate complex functionalities like object detection with just a few clicks.

With BuildShip, you're not just building workflows; you're unlocking a world of possibilities that AI and low-code solutions bring to the table. Whether you're a seasoned developer or a business professional with no coding experience, BuildShip empowers you to create robust backend systems that cater to your unique needs.

Stay tuned for more insights on how BuildShip can help you streamline your backend development processes and harness the power of AI with ease. Happy Building!

If you enjoyed our content, please give us a follow on Twitter or join our Discord in case of any questions. We look forward to hearing from you! 💜