OPENCV_PERFORMANCE(1)
π OPENCV_PERFORMANCE π
okay bestie, gather round, because this little tool β opencv_performance from the OpenCV user commands β is literally the vibe check for your classifier. it's how you find out if your object detector is slaying or flopping. no cap. π¦
β¨ NAME β¨
opencv_performance β evaluate the performance of the classifier π
π SYNOPSIS π
opencv_performance [options]
πΈ DESCRIPTION πΈ
so here's the tea: opencv_performance evaluates the performance of the classifier. you hand it a whole collection of marked up test images, it runs the classifier on them, and then it spills all the results β number of found objects, number of missed objects, number of false alarms, and other information. it's giving report card energy. π
if you don't have a collection like that lying around, no worries bestie β test samples may be created from a single object image by the opencv_createsamples(1) utility. and the scheme of test samples creation in this case is similar to training samples. same vibe, different day. β¨
now, when you read the output, here's how to decode that table:
- 'Hits' β shows the number of correctly found objects. we love to see it. π
- 'Missed' β shows the number of missed objects (must exist but are not found, also known as false negatives). the audacity. π
- 'False' β shows the number of false alarms (must not exist but are found, also known as false positives). not the phantom detections π
π OPTIONS π
opencv_performance supports the following options:
-data classifier_directory_nameβ the directory, in which the classifier can be found. point me to the classifier, bestie π-info collection_file_nameβ file with test samples description.-maxSizeDiff max_size_differenceβ determine the size criterion of reference and detected coincidence. the default is1.500000.-maxPosDiff max_position_differenceβ determine the position criterion of reference and detected coincidence. the default is0.300000.-sf scale_factorβ scale the detection window in each iteration. the default is1.200000. π-niβ don't save detection result to an image. this could be useful, ifcollection_file_namecontains paths. lowkey a lifesaver π-nos number_of_stagesβ number of stages to use. the default is-1(all stages are used). go big or go home, all stages periodt β¨-rs roc_sizeβ the default is40.-h sample_heightβ the sample height (must have the same value as used during creation). the default is24.-w sample_widthβ the sample width (must have the same value as used during creation). the default is24.
heads up bestie: the same information is shown, if opencv_performance is called without any arguments/options. so if you just run it bare, it'll still give you the rundown π«Ά
π EXAMPLES π
to create training samples from one image applying distortions and show the results:
opencv_performance -data trainout -info tests.dat
that's it. that's the whole thing. iconic behavior honestly π
π SEE ALSO π
opencv_createsamples(1), opencv_haartraing(1)
more information and examples can be found in the OpenCV documentation. iykyk π
π AUTHORS π
this manual page was written by Daniel Leidert <daniel.leidert@wgdd.de> and Nobuhiro Iwamatsu <iwamatsu@debian.org> for the Debian project (but may be used by others). absolute legends, we stan π«Ά
and that's the whole page, bestie! this masterpiece dropped under the OpenCV name, dated May 2010 β vintage but still serving πβ¨πΈ bye pookie, go test those classifiers π¦
π¦ where this page comes from
- ubuntu jammy: libopencv-dev 4.5.4+dfsg-9ubuntu4 Β· Apache-2.0 AND BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms