Masked Armed Bandits Computer Vision Model

byfinalyearprojectTask:
Object Detection
License:CC BY 4.0753 views52 downloads

How to use the Masked Armed Bandits Detection API

Try This Model

Drop an image here or click to upload

Or try a test image 

Code Snippets

from inference_sdk import InferenceHTTPClient

CLIENT = InferenceHTTPClient(
    api_url="https://serverless.roboflow.com",
    api_key="API_KEY"
)

result = CLIENT.infer("YOUR_IMAGE.jpg", model_id="masked-armed-bandits/12")
Give your agent everything it needs

Or, Use Free Rifle, Machete and Masked-person Detection API

Powered by general detection model

Code
pip install inference-sdk
# 1. Import the library
from inference_sdk import InferenceHTTPClient

# 2. Connect to your workspace
client = InferenceHTTPClient(
  api_url="https://serverless.roboflow.com",
  api_key="API_KEY"
)

# 3. Run your workflow on an image
result = client.run_workflow(
  workspace_name="<YOUR_WORKSPACE>",
  workflow_id="<YOUR_WORKFLOW_ID>",
  images={
    "image": "YOUR_IMAGE.jpg"  # Path to your image file
  },
  parameters={
    "classes": "rifle, machete, masked-person, unmasked-person"
  },
  use_cache=True  # cache workflow definition for 15 minutes
)

# 4. Get your results
print(result)

Run on custom image

Drop an image here or click to upload

Detecting classes:
Or try a test image 

About Masked Armed Bandits Model

Here are a few use cases for this project:

  1. Law Enforcement and Surveillance: Using this computer vision model, law enforcement agencies could better monitor surveillance footage to detect potential threats in real time. The system could flag suspicious behavior, like a masked person carrying a weapon, accelerating response times and potentially saving lives.

  2. Video Analysis: This model could be used for video analysis, allowing security companies to swiftly identify initiating instances of crime in a recorded footage helping to deliver evidence more efficiently in crime investigations.

  3. Public Safety Monitoring: The model could be used in public spaces like parks, malls, sports events, or concerts to detect masked armed bandits, effectively alerting security personnel to potential threats and ensuring public safety.

  4. Social Media Moderation: This model can be beneficial for online platforms, identifying and flagging violent content or images that violate community standards by showing masked individuals with forbidden items.

  5. Video Game Development: In video game designs involving crime solving or adventure elements, this model can allow for more interactive and immersive experiences by recognizing in-game elements like masked bandits with various weapons.

Cite This Project

LicenseCC BY 4.0

If you use this dataset in a research paper, please cite it using the following BibTeX:

@misc{ masked-armed-bandits_dataset,
  title = { Masked Armed Bandits  Dataset },
  type = { Open Source Dataset },
  author = { finalyearproject },
  howpublished = { \url{ https://universe.roboflow.com/finalyearproject-axe8j/masked-armed-bandits } },
  url = { https://universe.roboflow.com/finalyearproject-axe8j/masked-armed-bandits },
  journal = { Roboflow Universe },
  publisher = { Roboflow },
  year = { 2026 },
  month = { jun },
  note = { visited on 2026-07-29 },
}

Similar Projects

See More