Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Identify and highlight objects in an image using a YOLO neural network
| ResourceFunction["YOLOImageLabel"][image] highlights and labels the objects identified by the "YOLO V2 Trained on MS-COCO Data" net model in an image. | |
| ResourceFunction["YOLOImageLabel"][image,detect] uses the specified detection threshold. | |
| ResourceFunction["YOLOImageLabel"][image,detect,overlap] uses the specified overlap threshold. | 
Identify objects in a photo with a single person:
| In[1]:= | ![ResourceFunction["YOLOImageLabel"][
 ResourceData["Sample Image: Girl on a Blue Background"]]](https://www.wolframcloud.com/obj/resourcesystem/images/68c/68cd5a94-d5fb-45c2-8a23-db4d58ea15f9/70b7d662dd9983ff.png) | 
| Out[1]= |  | 
Identify multiple objects in an image:
| In[2]:= | ![ResourceFunction["YOLOImageLabel"][
 ResourceData["Sample Image: Red Cherry Tomatoes"]]](https://www.wolframcloud.com/obj/resourcesystem/images/68c/68cd5a94-d5fb-45c2-8a23-db4d58ea15f9/75d246238173a5d3.png) | 
| Out[2]= |  | 
Use the default thresholds:
| In[3]:= | ![ResourceFunction["YOLOImageLabel"][
 ResourceData["Sample Image: Happy Family in Red"]]](https://www.wolframcloud.com/obj/resourcesystem/images/68c/68cd5a94-d5fb-45c2-8a23-db4d58ea15f9/27e256bc99721f1a.png) | 
| Out[3]= |  | 
Using a low detection threshold finds more objects:
| In[4]:= | ![ResourceFunction["YOLOImageLabel"][
 ResourceData["Sample Image: Happy Family in Red"], 0.01]](https://www.wolframcloud.com/obj/resourcesystem/images/68c/68cd5a94-d5fb-45c2-8a23-db4d58ea15f9/0f8c7f05377a1c06.png) | 
| Out[4]= |  | 
Using a high detection threshold finds fewer objects:
| In[5]:= | ![ResourceFunction["YOLOImageLabel"][
 ResourceData["Sample Image: Happy Family in Red"], 0.83]](https://www.wolframcloud.com/obj/resourcesystem/images/68c/68cd5a94-d5fb-45c2-8a23-db4d58ea15f9/2458ac3882aadbed.png) | 
| Out[5]= |  | 
Highlight objects using default thresholds:
| In[6]:= | ![ResourceFunction["YOLOImageLabel"][
 ResourceData["Sample Image: Red Cherry Tomatoes"]]](https://www.wolframcloud.com/obj/resourcesystem/images/68c/68cd5a94-d5fb-45c2-8a23-db4d58ea15f9/3f8cab2c86515d1b.png) | 
| Out[6]= |  | 
Increasing the overlap threshold shows more overlapping objects:
| In[7]:= | ![ResourceFunction["YOLOImageLabel"][
 ResourceData["Sample Image: Red Cherry Tomatoes"], Automatic, 0.8]](https://www.wolframcloud.com/obj/resourcesystem/images/68c/68cd5a94-d5fb-45c2-8a23-db4d58ea15f9/29379be07babc5f6.png) | 
| Out[7]= |  | 
Decreasing the overlap threshold shows fewer objects:
| In[8]:= | ![ResourceFunction["YOLOImageLabel"][
 ResourceData["Sample Image: Red Cherry Tomatoes"], Automatic, 0.01]](https://www.wolframcloud.com/obj/resourcesystem/images/68c/68cd5a94-d5fb-45c2-8a23-db4d58ea15f9/3c1167df2be41bf5.png) | 
| Out[8]= |  | 
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License