DEV Community

Cover image for Object Detection with BuildShip's Google Vision API Template
Bhavya Verma for BuildShip

Posted on • Originally published at buildship.com

Object Detection with BuildShip's Google Vision API Template

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

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

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

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

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

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

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

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! 💜

Top comments (0)