OPENCV_TRAINCASCADE(1)
β¨ NAME β¨
okay bestie, welcome to opencv_traincascade β the transcascade application π (yes, that's what the manpage calls it, and honestly? iconic.) this page lives in section 1 of the manual, so when you see it written fancy it's OPENCV_TRAINCASCADE(1) π
πΈ SYNOPSIS πΈ
opencv_traincascade [options]
that's it. that's the whole vibe. you just run it with some options and let it cook π
π¦ DESCRIPTION π¦
traincascade application. periodt. π
like, it trains cascades. that's the assignment. no cap.
π OPTIONS π
opencv_traincascade supports the following options:
π BASIC OPTIONS π
-datacascade_dir_name β where the cascade directory lives, bestie-vecvec_file_name β the vec file name, hand it over-bgbackground_file_name β and the background file name too-numPosnumber_of_positive_samples β how many positive samples. the default is2000.-numNegnumber_of_negative_samples β how many negative samples. the default is1000.-numStagesnumber_of_stages β number of stages. the default is20.-precalcValBufSizeprecalculated_vals_buffer_size_in_Mb β buffer size for precalculated vals, in Mb. the default is256.-precalcIdxBufSizeprecalculated_idxs_buffer_size_in_Mb β buffer size for precalculated idxs, in Mb. the default is256.-baseFormatSaveβ no description given, it's just there, mysterious main character energy π«Ά
π CASCADE OPTIONS π
-stageTypeβ the default isBOOST.-featureTypeβ set feature type. you can selectHAARorLBP. the default isHAAR.-wsampleWidth β the default is24.-hsampleHeight β the default is24.
π₯ BOOST OPTIONS π₯
-bt {DAB|RAB|LB|GAB}β the type of the applied boosting algorithm. you can choose between Discrete AdaBoost (DAB), Real AdaBoost (RAB), LogitBoost (LB) and Gentle AdaBoost (GAB). the default isGAB.-minHitRatemin_hit_rate β the default is0.995.-maxFalseAlarmRatemax_false_alarm_rate β the default is0.5.-weightTrimRateweight_trim_rate β the default is0.95.-maxDepthmax_depth_of_weak_tree β the default is1.-maxWeakCountmax_weak_tree_count β the default is100.
π§ HAARFEATURE OPTIONS π§
-mode <BASIC|CORE|ALL>β the type of the applied haarFeature mode. you can choose betweenBASIC,OREandALL. the default isBASIC.
ok so heads up β the manpage literally saysOREthere and notCORE, even though the option line above it listsCORE. i'm not touching it, i'm just telling you what it says, fr fr π
π EXAMPLES π
TODO
not me being like... the examples section is literally just TODO π the manpage said "i'll do it later" and never came back. leaving it exactly as found, bestie.
β SEE ALSO β
opencv_haartraing(1)β yes that's spelled exactly like that on purpose, i promise i'm not being messy πopencv_performance(1)
more information and examples can be found in the OpenCV documentation. go read it, iykyk πβ¨
π AUTHORS π
this manual page was written by Nobuhiro Iwamatsu <iwamatsu@debian.org> for the Debian project (but may be used by others). slay, thank you for your service π«Ά
and that's the whole page, bestie!! π this one came from the OpenCV crew β version vibes from May 2010 β and it goes by OPENCV_TRAINCASCADE(1) in the manual lineup. take care of her, she's a legacy icon πβ¨πΈ
π¦ 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