简体   繁体   English

如何在不使用边界框的情况下标记图像?

[英]How to label image without using bounding box?

I'm trying to create custom dataset using my own images.我正在尝试使用我自己的图像创建自定义数据集。 This images I cropped from logs data such as below:我从以下日志数据中裁剪的图像:

https://drive.google.com/open?id=1x0oWiVZ9KOw5P0gIMxQNxO-ajdrGy7Te https://drive.google.com/open?id=1x0oWiVZ9KOw5P0gIMxQNxO-ajdrGy7Te

I want it to be able to detect the high vibration such as below:我希望它能够检测到如下所示的高振动:

https://drive.google.com/open?id=1tUjthjGG1c23kTCQZOgedcsx99R_a_z3 https://drive.google.com/open?id=1tUjthjGG1c23kTCQZOgedcsx99R_a_z3

I have around 300 image of the High Vibration in one folder.我在一个文件夹中有大约 300 张高振动图像。 the picture is like below:图片如下:

https://drive.google.com/open?id=1IG_-wRJxe-_TOYfSxHjRq5UBWMn9mO1k https://drive.google.com/open?id=1IG_-wRJxe-_TOYfSxHjRq5UBWMn9mO1k

I wanted to do exactly like https://towardsdatascience.com/how-to-train-your-own-object-detector-with-tensorflows-object-detector-api-bec72ecfe1d9 .我想做的和https://towardsdatascience.com/how-to-train-your-own-object-detector-with-tensorflows-object-detector-api-bec72ecfe1d9完全一样。 IN this example image dataset was hand-labeled manually with LabelImg.在此示例中,图像数据集是使用 LabelImg 手动标记的。

However I don't see why I need to draw box for images that only have one object in it and can have the frame of the image as the bounding box.但是我不明白为什么我需要为其中只有一个对象并且可以将图像的框架作为边界框的图像绘制框。

Please advice how I can create data set and processing the images without manually drawing the bounding box (since the images consist of one object), and how to draw bounding boxes in batch for image that contain one object(ie having the frame of the image as the bounding box)?请建议我如何在不手动绘制边界框的情况下创建数据集和处理图像(因为图像由一个对象组成),以及如何为包含一个对象的图像(即具有图像的框架)批量绘制边界框作为边界框)?

It sounds like you want to do 'image classification' as opposed to 'object detection' -- it may be easier to make a script that generates xml files, containing the image's width and height as bounding box dimensions, as opposed to using labelImg.听起来您想进行“图像分类”而不是“对象检测”——制作一个生成 xml 文件的脚本可能更容易,其中包含图像的宽度和高度作为边界框尺寸,而不是使用 labelImg。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM