TrainImageContentDetector
TrainImageContentDetector[{img1{bbox1class1,…},…}]
trains a ContentDetectorFunction[…] based on the examples given.
Details and Options
- TrainImageContentDetector attempts to train an object detector using the provided training data.
- Object detection is a computer vision technique used for recognizing subimages in an image.
- TrainImageContentDetector returns a ContentDetectorFunction[…] that can then be applied to new input data.
- The bounding boxes bboxi should be given as Rectangle objects.
- The classes classi can be arbitrary expressions.
- TrainImageContentDetector[…][image] can be used to detect objects in image and returns the result as a list of associations of the form <"Image"img,"Class"class >.
- TrainImageContentDetector supports the following options:
-
PerformanceGoal Automatic favor settings with specific advantages ProgressReporting Automatic how to report progress during training RandomSeeding 1234 how to seed pseudorandom generators internally TargetDevice "CPU" the target device on which to perform training TimeGoal Automatic number of seconds to train for ValidationSet None the set of data on which to evaluate the model during training
Examples
open allclose allBasic Examples (1)
Options (5)
PerformanceGoal (1)
Use PerformanceGoal"Quality" to emphasize the quality of the result:
Use PerformanceGoal"Speed" to emphasize the speed of computation:
ProgressReporting (1)
By default, progress is reported in a dynamic panel:
Use ProgressReportingFalse to avoid displaying the progress panel:
TargetDevice (1)
TimeGoal (1)
The training time can be influenced by several factors, such as the number of examples and classes:
Use TimeGoal to specify a target time for the training:
ValidationSet (1)
By default, only cross-validation is performed on the detector:
Use ValidationSet to provide separate validation examples:
Text
Wolfram Research (2021), TrainImageContentDetector, Wolfram Language function, https://reference.wolfram.com/language/ref/TrainImageContentDetector.html.
CMS
Wolfram Language. 2021. "TrainImageContentDetector." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TrainImageContentDetector.html.
APA
Wolfram Language. (2021). TrainImageContentDetector. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TrainImageContentDetector.html