How to locate multiple objects in the same image?

前端 未结 2 665
臣服心动
臣服心动 2021-01-31 11:53

I am a newbie in TensorFlow.

Currently, I am testing some classification\'s examples \"Convolutional Neural Network\" in the TensorFlow website, and it explains how to c

相关标签:
2条回答
  • 2021-01-31 12:28

    A naive approach for what you are trying to do would be to classify parts of the image independently.

    But there are some better techniques for object detection. Actually, there is the TensorFlow Object Detection API, which gives you access to the most common object detection methods like Faster R-CNN or SSD.

    0 讨论(0)
  • 2021-01-31 12:41

    Great question. Detecting multiple objects in the same image boils is essentially a "segmentation problem". Two nice and popular algorithms are YOLO (You Only Look Once), and SSD(Single Shot Multibox Detector). I included links to them at the bottom.

    I would watch a few videos on how YOLO works, and see if you grasp the idea. Then read the paper on SSD, and see if you get why this algorithm is even faster and more precise.

    Both algorithms are single-pass: they only look at the image "once" and predict bounding boxes for the categories they spot. There are more precise algorithms, but they are slower (they first pick many spots they want to look, and then run a classifier on only that spot. The result is that they run this classifier many times per image, which is slow).

    As you stated you are a newbie to Tensorflow, you can try this code other people made: https://github.com/thtrieu/darkflow . The very extensive readme shows you how to get started on your own dataset.

    Good luck, and let us know if you have other questions, or if these algorithms do not fit your use-case.

    • YOLO 9000 (https://pjreddie.com/darknet/yolo/)
    • SSD (Single shot multibox detector) (https://arxiv.org/abs/1512.02325)
    0 讨论(0)
提交回复
热议问题