--- license: cc-by-4.0 tags: - object-detection - image-classification - computer-vision - weapons - security task_categories: - image-classification language: - en size_categories: - 1K, 'width': 640, 'height': 640, 'objects': { 'bbox': [ [250.0, 150.0, 100.5, 200.0], # ... more boxes ], 'category': [ 12, # Corresponds to 'Pistol' # ... more category IDs ] } } ``` - `image_id`: A unique integer identifier for the image. - `image`: The image object itself, in PIL format. - `width`,`height`: The dimensions of the image. - `objects`: A dictionary containing the bounding box annotations. - `bbox`: A list of bounding boxes, each in the COCO format [x_min, y_min, width, height]. - `category`: A list of corresponding integer class labels. The mapping from integer to class name can be found in the dataset's features. # How to Use You can easily load this dataset using the datasets library: ```Python from datasets import load_dataset # Load the dataset from the Hugging Face Hub dataset = load_dataset("Subh775/WeaponDetection") # Access a specific split train_dataset = dataset["train"] # Print the first example print(train_dataset[0]) ``` # Citation If you use this dataset in your work, please cite the original creator and provide a link to the Roboflow Universe page. ```BibTeX: Code snippet @misc{yolov7test_weapon_detection, title={Weapon Detection Object Detection Model}, author={yolov7test}, howpublished={\url{[https://universe.roboflow.com/yolov7test-pdxwq/weapon-detection-m7tpo](https://universe.roboflow.com/yolov7test-pdxwq/weapon-detection-m7tpo)}}, year={2022} } ```