Skip to main content Switch to mobile version megadetector 10.0.29 MegaDetector is an AI model that helps conservation folks spend less time doing boring things with camera trap images.
pip install megadetector==10.0.29 Copy PIP instructions
This package is a pip-installable version of the support/inference code for MegaDetector, an object detection model that helps conservation biologists spend less time doing boring things with camera trap images. Complete documentation for this Python package is available at megadetector.readthedocs.io.
If you aren't looking for the Python package specifically, and you just want to learn more about what MegaDetector is all about, head over to the MegaDetector repo.
If you don't want to run MegaDetector, and you just want to use the utilities in this package - postprocessing, manipulating large volumes of camera trap images, etc. - you may want to check out the megadetector-utils package, which is identical to this one, but excludes all of the PyTorch/YOLO dependencies, and is thus approximately one zillion times smaller.
MegaDetector model weights aren't downloaded at the time you install the package, but they will be (optionally) automatically downloaded the first time you run the model.
See megadetector.readthedocs.io.
Examples of things you can do with this package
Run MegaDetector on one image and count the number of detections
from megadetector.utils import url_utils from megadetector.visualization import visualization_utils as vis_utils from megadetector.detection import run_detector # This is the image at the bottom of this page, it has one animal in it image_url = 'https://github.com/agentmorris/MegaDetector/raw/main/images/orinoquia-thumb-web.jpg' temporary_filename = url_utils.download_url(image_url) image = vis_utils.load_image(temporary_filename) # This will automatically download MDv5a; you can also specify a filename. model = run_detector.load_detector('MDV5A') result = model.generate_detections_one_image(image) detections_above_threshold = [d for d in result['detections'] if d['conf'] > 0.2] print('Found {} detections above threshold'.format(len(detections_above_threshold))) Run MegaDetector on a folder of images
from megadetector.detection.run_detector_batch import \ load_and_run_detector_batch, write_results_to_file # Choose a folder to run MD on recursively, and an output file image_folder = '/path/to/megadetector_test_images' output_file = '/path/to/output/file.json' # The package will automatically download whichever model you request; you # can also specify a filename. model_name = 'MDV5A' # Run the model on all images in the folder results = load_and_run_detector_batch(model_name, image_folder) # Write results to a format that Timelapse and other downstream tools like write_results_to_file(results, output_file, relative_path_base=image_folder, detector_file=model_name) Contact
Contact cameratraps@lila.science with questions.
Image credit University of Minnesota, from the Orinoquía Camera Traps data set.
Author/Maintainer: Your friendly neighborhood MegaDetector team
MIT View SPDX License List
camera traps conservation wildlife ai megadetector
Programming Language Python :: 3
Release files for megadetector 10.0.29
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 1.3 MB
Release files / megadetector-10.0.29.tar.gz
Release files / megadetector-10.0.29-py3-none-any.whl
Security for megadetector 10.0.29
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 3, 2026 2 release files No provenance
Oct 16, 2026 2 release files No provenance
Oct 11, 2026 2 release files No provenance
Oct 7, 2026 2 release files No provenance
Aug 27, 2026 2 release files No provenance
Jul 7, 2026 2 release files No provenance
Jun 26, 2026 2 release files No provenance
Jun 9, 2026 2 release files No provenance
May 27, 2026 2 release files No provenance
Apr 1, 2026 2 release files No provenance
Mar 26, 2026 2 release files No provenance
Feb 13, 2026 2 release files No provenance
Dec 5, 2025 2 release files No provenance
Nov 20, 2025 2 release files No provenance
Nov 7, 2025 2 release files No provenance
Nov 3, 2025 2 release files No provenance
Oct 16, 2025 2 release files No provenance
Oct 3, 2025 2 release files No provenance
Sep 19, 2025 2 release files No provenance
Sep 7, 2025 2 release files No provenance
Aug 24, 2025 2 release files No provenance
Aug 22, 2025 2 release files No provenance
Aug 21, 2025 2 release files No provenance
Aug 19, 2025 2 release files No provenance
Aug 10, 2025 2 release files No provenance
Jul 23, 2025 2 release files No provenance
Jun 2, 2025 2 release files No provenance
May 4, 2025 2 release files No provenance
Apr 15, 2025 2 release files No provenance
Mar 5, 2025 2 release files No provenance
Feb 22, 2025 2 release files No provenance
Feb 13, 2025 2 release files No provenance
Feb 5, 2025 2 release files No provenance
Nov 8, 2024 2 release files No provenance
Oct 8, 2024 2 release files No provenance
Sep 10, 2024 2 release files No provenance
Jul 31, 2024 2 release files No provenance
Jun 11, 2024 2 release files No provenance
Jun 1, 2024 2 release files No provenance
May 6, 2024 2 release files No provenance
May 5, 2024 2 release files No provenance
Apr 20, 2024 2 release files No provenance
Feb 2, 2024 2 release files No provenance
Nov 17, 2023 2 release files No provenance
Oct 11, 2023 2 release files No provenance
Sep 24, 2023 2 release files No provenance
Sep 22, 2023 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




