Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Problems understanding example code Post 302338858 by DukeNuke2 on Wednesday 29th of July 2009 05:51:41 AM
Old 07-29-2009
To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Understanding Code in IF LOOP

Hello All, I would like to know and understand the difference between the below 3 IF loops and also if possible what are the different other parameters i could use other than those mentioed in the below lF LOOP conditions, appreciate your help. Thanks, Sam. (1 Reply)
Discussion started by: Ariean
1 Replies

2. Shell Programming and Scripting

Problems understanding example code

I am really new to UNIX and programming in general and so apologies if this thread is a bit simple. I have searched and found a piece of sample code for a training program I am currently undertaking, but seeing as I am relatively new, I dont completely understand how it works. Here is the... (1 Reply)
Discussion started by: Makaer
1 Replies

3. UNIX Desktop Questions & Answers

Understanding the code

hello all, May i know what is this "DEBUG_ME $DEBUG_CMD main" doing in the below code. I am confused with alias also "alias DEBUG_ME='#'". Thanks for your help. set -x alias DEBUG_ME='#' if ; then . /product/apps/informatica/v7/pc/ExtProc/debug.ksh "$1" fi # Declaring the... (1 Reply)
Discussion started by: Ariean
1 Replies

4. Programming

Problems understanding pipes

I am trying to create a csh clone, but am having problems implementing piped commands. Specifically, the below code simply hangs after input of ls | grep <text> It does however filter the output and display it correctly, but it appears that grep hasn't exited and my shell never comes back to the... (16 Replies)
Discussion started by: ab_tall
16 Replies

5. Shell Programming and Scripting

Help understanding Perl code.

Well, I found myself trying to fix some Perl code (Ive never done any Perl in my life) and I pinpointed the place where the bug could be. But to be sure I have to know what does a few line of code mean: $files_lim =~ (/^\d*$/) $files_lim =~ (/^\d*h$/)$files_age =~ s/h//The code where this was... (0 Replies)
Discussion started by: RedSpyder
0 Replies

6. Shell Programming and Scripting

Help understanding some Perl code.

Well, I found myself trying to fix some Perl code (Ive never done any Perl in my life) and I pinpointed the place where the bug could be. But to be sure I have to know what does a few line of code mean: $files_lim =~ (/^\d*$/) $files_lim =~ (/^\d*h$/) $files_age =~ s/h// The code where... (2 Replies)
Discussion started by: RedSpyder
2 Replies

7. Programming

Understanding perl code

What is the difference between the two statements below? A: $a->{"$fruit"}->{"$color"}->{size} = $size B: $size = $a->{"$fruit"}->{"$color"}->{size} Please assist. Thanks! (0 Replies)
Discussion started by: onlinelearner02
0 Replies

8. Shell Programming and Scripting

Help with perl code understanding

Hi, I need to understand below perl code, can some one advise me. perl -MDate::Parse -e'BEGIN{$main::now=time;$main::old=(time-60*30)}' -nE'if(/^(\w+\s+\d+\s+\d+:\d+:\d+)/) {$t=str2time $1; $t > $old && $t < $now && print}' (1 Reply)
Discussion started by: learnbash
1 Replies

9. UNIX for Dummies Questions & Answers

Understanding bash code

I am not able to understand below line in unix bash shell.Could anyone explain what it will do result="${path1}/*${var1}*${var2}*wssreligibleitem*.csv" path1 is defined and it is a directory path var1 is defined and it holds string value like abc var2 is defined and it holds string value like... (6 Replies)
Discussion started by: vamsi.valiveti
6 Replies

10. Programming

Understanding Assembly Code

As the title suggests, I want to better understand the following assembly code: section .text global main ; must be declared for linker (gcc) main: ; tell linker entry point mov edx, len ; message length mov ecx, msg ; message to write... (2 Replies)
Discussion started by: Azrael
2 Replies
OPENCV_HAARTRAINING(1)						   User Commands					    OPENCV_HAARTRAINING(1)

NAME
opencv_haartraining - train classifier SYNOPSIS
opencv_haartraining [options] DESCRIPTION
opencv_haartraining is training the classifier. While it is running, you can already get an impression, whether the classifier will be suitable or if you need to improve the training set and/or parameters. In the output: 'POS:' shows the hitrate in the set of training samples (should be equal or near to 1.0 as in stage 0) 'NEG:' indicates the false alarm rate (should reach at least 5*10-6 to be a usable classifier for real world applications) If one of the above values gets 0 (zero) there is an overflow. In this case the false alarm rate is so low, that further training doesn't make sense anymore, so it can be stopped. OPTIONS
opencv_haartraining supports the following options: -data dir_name The directory in which the trained classifier is stored. -vec vec_file_name The file name of the positive samples file (e.g. created by the opencv_createsamples(1) utility). -bg background_file_name The background description file (the negative sample set). It contains a list of images into which randomly distorted versions of the object are pasted for positive sample generation. -bg-vecfile This option is that bgfilename represents a vec file with discrete negatives. The default is not set. -npos number_of_positive_samples The number of positive samples used in training of each classifier stage. The default is 2000. -nneg number_of_negative_samples The number of negative samples used in training of each classifier stage. The default is 2000. Reasonable values are -npos 7000 -nneg 3000. -nstages number_of_stage The number of stages to be trained. The default is 14. -nsplits number_of_splits Determine the weak classifier used in stage classifiers. If the value is 1, then a simple stump classifier is used >=2, then CART classifier with number_of_splits internal (split) nodes is used The default is 1. -mem memory_in_MB Available memory in MB for precalculation. The more memory you have the faster the training process is. The default is 200. -sym, -nonsym Specify whether the object class under training has vertical symmetry or not. Vertical symmetry speeds up training process and reduces memory usage. For instance, frontal faces show off vertical symmetry. The default is -sym. -minhitrate min_hit_rate The minimal desired hit rate for each stage classifier. Overall hit rate may be estimated as min_hit_rate^number_of_stages. The default is 0.950000. -maxfalsealarm max_false_alarm_rate The maximal desired false alarm rate for each stage classifier. Overall false alarm rate may be estimated as max_false_alarm_rate^number_of_stages. The default is 0.500000. -weighttrimming weight_trimming Specifies whether and how much weight trimming should be used. The default is 0.950000. A decent choice is 0.900000. -eqw Specify if initial weights of all samples will be equal. -mode {BASIC|CORE|ALL} Select the type of haar features set used in training. BASIC uses only upright features, while CORE uses the full upright feature set and ALL uses the full set of upright and 45 degree rotated feature set. The default is BASIC. For more information on this see http://www.lienhart.de/ICIP2002.pdf. -h sample_height The sample height (must have the same value as used during creation). The default is 24. -w sample_width The sample width (must have the same value as used during creation). The default is 24. -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 is GAB. -err {misclass|gini|entropy} The type of used error if Discrete AdaBoost (-bt DAB) algorithm is applied. The default is misclass. -maxtreesplits max_number_of_splits_in_tree_cascade The maximal number of splits in a tree cascade. The default is 0. -minpos min_number_of_positive_samples_per_cluster The minimal number of positive samples per cluster. The default is 500. The same information is shown, if opencv_haartraining is called without any arguments/options. EXAMPLES
TODO SEE ALSO
opencv_createsamples(1), opencv_performance(1) More information and examples can be found in the OpenCV documentation. 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). OpenCV May 2010 OPENCV_HAARTRAINING(1)
All times are GMT -4. The time now is 02:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy