Are you sure you want to delete this access key?
comments | description | keywords |
---|---|---|
true | Explore the medical-pills detection dataset with labeled images. Essential for training AI models for pharmaceutical identification and automation. | medical-pills dataset, pill detection, pharmaceutical imaging, AI in healthcare, computer vision, object detection, medical automation, dataset for training |
The medical-pills detection dataset is a proof-of-concept (POC) dataset, carefully curated to demonstrate the potential of AI in pharmaceutical applications. It contains labeled images specifically designed to train computer vision models for identifying medical-pills.
Watch: How to train Ultralytics YOLO11 Model on Medical Pills Detection Dataset in Google Colab
This dataset serves as a foundational resource for automating essential tasks such as quality control, packaging automation, and efficient sorting in pharmaceutical workflows. By integrating this dataset into projects, researchers and developers can explore innovative solutions that enhance accuracy, streamline operations, and ultimately contribute to improved healthcare outcomes.
The medical-pills dataset is divided into two subsets:
pill
.Using computer vision for medical-pills detection enables automation in the pharmaceutical industry, supporting tasks like:
A YAML configuration file is provided to define the dataset's structure, including paths and classes. For the medical-pills dataset, the medical-pills.yaml
file can be accessed at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/medical-pills.yaml.
!!! example "ultralytics/cfg/datasets/medical-pills.yaml"
```yaml
--8<-- "ultralytics/cfg/datasets/medical-pills.yaml"
```
To train a YOLO11n model on the medical-pills dataset for 100 epochs with an image size of 640, use the following examples. For detailed arguments, refer to the model's Training page.
!!! example "Train Example"
=== "Python"
```python
from ultralytics import YOLO
# Load a model
model = YOLO("yolo11n.pt") # load a pretrained model (recommended for training)
# Train the model
results = model.train(data="medical-pills.yaml", epochs=100, imgsz=640)
```
=== "CLI"
```bash
# Start training from a pretrained *.pt model
yolo detect train data=medical-pills.yaml model=yolo11n.pt epochs=100 imgsz=640
```
!!! example "Inference Example"
=== "Python"
```python
from ultralytics import YOLO
# Load a model
model = YOLO("path/to/best.pt") # load a fine-tuned model
# Inference using the model
results = model.predict("https://ultralytics.com/assets/medical-pills-sample.jpg")
```
=== "CLI"
```bash
# Start prediction with a fine-tuned *.pt model
yolo detect predict model='path/to/best.pt' imgsz=640 source="https://ultralytics.com/assets/medical-pills-sample.jpg"
```
The medical-pills dataset features labeled images showcasing the diversity of pills. Below is an example of a labeled image from the dataset:
For more comprehensive pharmaceutical analysis, consider combining the medical-pills dataset with other related datasets like package-seg for packaging identification or medical imaging datasets like brain-tumor to develop end-to-end healthcare AI solutions.
The dataset is available under the AGPL-3.0 License.
If you use the Medical-pills dataset in your research or development work, please cite it using the mentioned details:
!!! quote ""
=== "BibTeX"
```bibtex
@dataset{Jocher_Ultralytics_Datasets_2024,
author = {Jocher, Glenn and Rizwan, Muhammad},
license = {AGPL-3.0},
month = {Dec},
title = {Ultralytics Datasets: Medical-pills Detection Dataset},
url = {https://docs.ultralytics.com/datasets/detect/medical-pills/},
version = {1.0.0},
year = {2024}
}
```
The dataset includes 92 images for training and 23 images for validation. Each image is annotated with the class pill
, enabling effective training and evaluation of models for pharmaceutical applications.
You can train a YOLO11 model for 100 epochs with an image size of 640px using the Python or CLI methods provided. Refer to the Training Example section for detailed instructions and check the YOLO11 documentation for more information on model capabilities.
The dataset enables automation in pill detection, contributing to counterfeit prevention, quality assurance, and pharmaceutical process optimization. It also serves as a valuable resource for developing AI solutions that can improve medication safety and supply chain efficiency.
Inference can be done using Python or CLI methods with a fine-tuned YOLO11 model. Refer to the Inference Example section for code snippets and the Predict mode documentation for additional options.
The YAML file is available at medical-pills.yaml, containing dataset paths, classes, and additional configuration details essential for training models on this dataset.
Press p or to see the previous file or, n or to see the next file
Browsing data directories saved to S3 is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
ultralytics is now integrated with AWS S3!
Are you sure you want to delete this access key?
Browsing data directories saved to Google Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
ultralytics is now integrated with Google Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to Azure Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
ultralytics is now integrated with Azure Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to S3 compatible storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
ultralytics is now integrated with your S3 compatible storage!
Are you sure you want to delete this access key?