
This is a tutorial article explaining how to use the object detection application in Deep Block.
- Sign in, and click “TRY DEEP BLOCK” button on the top right corner.
- Click create on the top right right corner of the page.
- You will see the below window. Click the Object Detection application under Computer vision tab. Choose not for real-time reference. Set the project name as you want. There shouldn’t be any space in the name.
- Click the created project.
- Now we will create the category “apple”. You can think of categories as different types of objects you want to detect with the AI model. You will see the Categories pane on the top left side. Click the create category button, which is the plus shaped button.
- You can edit the category name by clicking the rename button. Rename it to apple.
- You can also set the color of the bounding box by clicking the color palette.
- We will set it to red.
- Now we will prepare images with apples in it and draw a bounding box around each apple so we could use that as the AI model training data.
- Drag and drop the images you want to train the AI model on to the Manual pane under the Categories pane.
- Click the first image in the Manual pane and then click the Draw Mode button. Now you can draw the bounding box around the apple.
- Draw the bounding box around the apple like below.
- If you want to edit the box you already drew, click the Select Mode button and then you can adjust the boundaries.
- Repeat this for all of the images. Draw multiple boxes in the image if there are multiple apples in one image.
- When you are done preparing the training data, you can now train the AI model. Click 2. Run on the top left. Then click the train button on top right.
- You will see a graph that changes as the model gets trained. If you see the training score go up and loss going down, it means your AI model is being trained properly. It may take a while. You can leave the browser, since the work will continue to run in our cloud.
- When the training is finished, you can infer using the AI model. In other words, you can input new images to the AI model to predict where the apples are in the images.
- Click Predict tab on the top left.
- Drag and drop image you want to predict in the Predict pane in the left.
- Set the Threshold score to 30% and click the Predict button on the top right.
- Wait until the prediction is finished and then click the image file in the Predict pane. You will see that the apple is detected!
- Congratulations! Now you know how to create an object detection AI model in Deep Block. We also provide API services. Please contact us if you have any questions or if you are interested in API services.