# If I want a model to be able to detect 4 different types of images to analyze, how do I do that

**URL:** <https://discuss.roboflow.com/t/if-i-want-a-model-to-be-able-to-detect-4-different-types-of-images-to-analyze-how-do-i-do-that/7891>\
**Category:** 🤝  Community Help\
**Created:** [December 5, 2024, 3:53am UTC](https://discuss.roboflow.com/t/if-i-want-a-model-to-be-able-to-detect-4-different-types-of-images-to-analyze-how-do-i-do-that/7891 "2024-12-05T03:53:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arav\_Bhandari](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/arav_bhandari/32/6093_2.png) [@Arav\_Bhandari](https://discuss.roboflow.com/u/Arav_Bhandari)\
**Post date:** [December 5, 2024, 3:53am UTC](https://discuss.roboflow.com/t/if-i-want-a-model-to-be-able-to-detect-4-different-types-of-images-to-analyze-how-do-i-do-that/7891/1 "2024-12-05T03:53:35Z")

</div>

I am trying to have the model figure out what type of image it is then analyze it. What exactly do I do for that?

---

<div class="post-metadata">

**Author:** ![peter\_roboflow](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/peter_roboflow/32/2609_2.png) [@peter\_roboflow](https://discuss.roboflow.com/u/peter_roboflow)\
**Post date:** [December 8, 2024, 5:02am UTC](https://discuss.roboflow.com/t/if-i-want-a-model-to-be-able-to-detect-4-different-types-of-images-to-analyze-how-do-i-do-that/7891/2 "2024-12-08T05:02:34Z")

</div>

Train a classification model that can tell you which of the 4 types of image it is, and then conditionally run whatever other analysis you want to do after.

If you want to run 2 different object detection models depending on the type of image you classify, you could set up a workflow like this:

 ![Screenshot 2024-12-07 at 9.01.35 PM](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/1/13cbda523736e28d65e6268d099c3de8a2f2f730.png)

---

<div class="post-metadata">

**Author:** ![Arav\_Bhandari](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/arav_bhandari/32/6093_2.png) [@Arav\_Bhandari](https://discuss.roboflow.com/u/Arav_Bhandari)\
**Post date:** [December 9, 2024, 7:34pm UTC](https://discuss.roboflow.com/t/if-i-want-a-model-to-be-able-to-detect-4-different-types-of-images-to-analyze-how-do-i-do-that/7891/3 "2024-12-09T19:34:34Z")

</div>

Is it possible to automate inputting images into it? Like through another website API that I can integrate it into the input then export the output into my python program.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [December 30, 2024, 7:35pm UTC](https://discuss.roboflow.com/t/if-i-want-a-model-to-be-able-to-detect-4-different-types-of-images-to-analyze-how-do-i-do-that/7891/4 "2024-12-30T19:35:29Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
