Downloads · 30 days
0
Zcket/gun_dtct
gun_dtct is a object detection model from Zcket. Use it when you need objects located in an image. The card lists the license as mit.
YoloV8n 3M parameters model for Guns Detection, trained on 16k images
Downloads · 30 days
0
Access
Public
Updated Mar 10, 2024
Repo size
28.7 MB
Likes
0
Public
Click a slice to open those files.
.pt28.7 MB · 100%
From the Hugging Face model README
YoloV8n 3M parameters model for Guns Detection, trained on 16k images
Can be used to detect presenece of Guns in images for Moderation.
Classes of Arms/Guns(Pistols, Grenades)
Use the code below to get started with the model.
from ultralytics import YOLO
model = YOLO('best.pt')
results = model(['im1.jpg', 'im2.jpg']) # return a list of Results objects
# Process results list
for result in results:
boxes = result.boxes # Boxes object for bounding box outputs
masks = result.masks # Masks object for segmentation masks outputs
keypoints = result.keypoints # Keypoints object for pose outputs
probs = result.probs # Probs object for classification outputs
result.show() # display to screen
result.save(filename='result.jpg') # save to disk