reference/ocr-new/status_messsage.cc
changeset 0 6b8091ca909a
equal deleted inserted replaced
-1:000000000000 0:6b8091ca909a
       
     1 unknown mode: new
       
     2 .login: No such file or directory
       
     3 % ocrchie
       
     4 ocrchie
       
     5 
       
     6 Done initializing new tcl commands
       
     7 Done initializing link variables
       
     8 Learning from train.tif and train.txt sych 0
       
     9 open succeeded on file train.tif.  length = 300. width = 2400
       
    10 Extracting Components
       
    11   
       
    12 @@	 
       
    13 @      
       
    14 Learning from 4.header.tif and 4.header.txt sych 1
       
    15 open succeeded on file 4.header.tif.  length = 129. width = 1825
       
    16 Extracting Components
       
    17        
       
    18 Opening train.tif
       
    19 open succeeded on file train.tif.  length = 300. width = 2400
       
    20 SCALE_FACTOR = 1.000000  Skip = 1.000000
       
    21 Starting deskew process: time = 0.000000
       
    22 Determining Line boundaries
       
    23 Calling recognize from Tcl
       
    24 Extracting Components
       
    25 Recognizing document
       
    26 abcdefghijklmnopqrstuvwxyz: ;\ 
       
    27 ABCDEFGHIJKLMNOPQRSTUVWXYZ 
       
    28 0 1 234567890~ ! @#$%%^&* ()+=-,.<<>>/?' 
       
    29 Error: Huh?Opening 4.col0.tif
       
    30 open succeeded on file 4.col0.tif.  length = 2461. width = 877
       
    31 SCALE_FACTOR = 1.000000  Skip = 1.000000
       
    32 Starting deskew process: time = 0.000000
       
    33 Determining Line boundaries
       
    34 Calling recognize from Tcl
       
    35 Extracting Components
       
    36 Recognizing document
       
    37 dispersion and models of temporal price dis- 
       
    38 persion. Most models of spatial price disper- 
       
    39 sion, such as the Salop-Stiglitz model or the 
       
    40 Wilde-Schwartz model, have equilibria with 
       
    41 specific prices being charged with positive 
       
    42 probability mass. The above argument shows 
       
    43 that such strategies cannot be profit-max- 
       
    44 iMzing Nash behavior in a temporal ran- 
       
    45 domizing model. 
       
    46 Since there are no point masses in the 
       
    47 equilibrium density, the cumulative distribuM 
       
    48 tion function will be a continuous function 
       
    49 On (P*, T ). Let E(P ) be the cumuIative dis- 
       
    50 tribution function for y( P ); thus y(P) = 
       
    51 E^(P ) almost eveWhere. 
       
    52 We can now construct the expected profit 
       
    53 function for a representative store. When a 
       
    54 store charges price P, exactIy two events are 
       
    55 relevant. lt may be that P is the smallest 
       
    56 price heing charged, in which case, the given 
       
    57 store gets all of the informed customers. 
       
    58 nis event happens only if all the other 
       
    59 8tores charge prices higher than P, an event 
       
    60 which has probability (l - F( P ))*- ' . On the 
       
    61 other hand, there may be some store with a 
       
    62 lower price, in which case the store in ques- 
       
    63 tion only gets its share of the uninformed 
       
    64 customers. This event happens with proba- 
       
    65 bility l - (l - F( P))^ - '. (By Proposition 3 
       
    66 we can neglect the prohahiIity of any ties.) 
       
    67 Hence the expected profit of a representa- 
       
    68 . 
       
    69 tIve store Is 
       
    70 /: ( N( P )( l - E( P ))^- ' 
       
    71 
       
    72 + @( P ) ( l - ( l - F( P ))^- ' ) 1/( P ) @ 
       
    73 where N( P ) =P( C+ I ) - C( C+ I ) 
       
    74 HI( P ) -P C- %( C ) 
       
    75 The maximization problem of the firm is 
       
    76 to choose the density function y( P) so as to 
       
    77 maximize expected profits su%ect to the 
       
    78 constraInts: 
       
    79 /V 
       
    80 1( P ) ? 0 ; .y( P ) @ - l 
       
    81 It is clear that all prices that are charged 
       
    82 with positive density must yield the same 
       
    83 Error: Huh?Opening hal4eqn.tif
       
    84 open succeeded on file hal4eqn.tif.  length = 1349. width = 1753
       
    85 SCALE_FACTOR = 1.000000  Skip = 1.000000
       
    86 Starting deskew process: time = 0.000000
       
    87 Determining Line boundaries
       
    88 109.0 449.0 3 354 538
       
    89 109.0 449.0 0 61 89
       
    90 1622.0 719.0 4 641 780
       
    91 1622.0 719.0 3 354 538
       
    92 390.0 913.0 5 878 961
       
    93 390.0 913.0 4 641 780
       
    94 1450.0 919.0 5 878 961
       
    95 1450.0 919.0 5 878 961
       
    96 401.0 1108.0 6 1059 1154
       
    97 401.0 1108.0 5 878 961
       
    98 1095.0 1104.0 6 1059 1154
       
    99 1095.0 1104.0 6 1059 1154
       
   100 Calling recognize from Tcl
       
   101 Extracting Components
       
   102 Recognizing document
       
   103 we can neglect the probability ot any ties.) 
       
   104 Hence the expected profit of a representa- 
       
   105 tive store is 
       
   106 / P ^. ' ^ * ' ^ * ' ' - ^ ' ^ * * ^ - ' 
       
   107 + w 1 ( P ) ( l - ( l - E ( P ) ) ^ - ' ) ) y ( P ) d T 
       
   108 where w S ( P ) - - P ( C + I ) - C ( C + I ) 
       
   109 E 1 ( P ) - - P G - C ( C ) 
       
   110 The maximization problem of the firm is 
       
   111 Calling recognize from Tcl
       
   112 Extracting Components
       
   113 Recognizing document
       
   114 we can neglect the probability ot any ties.) 
       
   115 Hence the expected profit of a representa- 
       
   116 tive store is 
       
   117 / P ^. ' ^ * ' ^ * ' ' - ^ ' ^ * * ^ - ' 
       
   118 + w 1 ( P ) ( l - ( l - E ( P ) ) ^ - ' ) ) y ( P ) d T 
       
   119 where w S ( P ) - - P ( C + I ) - C ( C + I ) 
       
   120 E 1 ( P ) - - P G - C ( C ) 
       
   121 The maximization problem of the firm is 
       
   122 Calling interactive learn from Tcl
       
   123 Learning from recog.tmp and 1 sych 0
       
   124 Calling recognize from Tcl
       
   125 Extracting Components
       
   126 Recognizing document
       
   127 we can neglect the probability of any ties.) 
       
   128 Hence the expected profit of a representa- 
       
   129 tive store is 
       
   130 <Int> P r* { <pi> s ( p ) ( 1 - F ( p ) ) n - 1 
       
   131 + <pi> f ( p ) [ l - ( l - F ( P ) ) n - 1 ] } f ( p ) d p 
       
   132 where <pi> s ( P ) = - P ( + + I ) - C ( + + I ) 
       
   133 <pi> f ( p ) = - U - c C ( ) ) 
       
   134 The maximization problem of the firm is 
       
   135 Calling recognize from Tcl
       
   136 Extracting Components
       
   137 Recognizing document
       
   138 we can neglect the probability of any ties.) 
       
   139 Hence the expected profit of a representa- 
       
   140 tive store is 
       
   141 <Int> P r* { <pi> s ( p ) ( 1 - F ( p ) ) n - 1 
       
   142 + <pi> f ( p ) [ l - ( l - F ( P ) ) n - 1 ] } f ( p ) d p 
       
   143 where <pi> s ( P ) = - P ( + + I ) - C ( + + I ) 
       
   144 <pi> f ( p ) = - U - c C ( ) ) 
       
   145 The maximization problem of the firm is 
       
   146 436.9u 302.5s 14:08 87%
       
   147 % ocrchie
       
   148 ocrchie
       
   149 
       
   150 Done initializing new tcl commands
       
   151 Done initializing link variables
       
   152 Learning from train.tif and train.txt sych 0
       
   153 open succeeded on file train.tif.  length = 300. width = 2400
       
   154 Extracting Components
       
   155   
       
   156 @@	 
       
   157 @      
       
   158 Learning from 4.header.tif and 4.header.txt sych 1
       
   159 open succeeded on file 4.header.tif.  length = 129. width = 1825
       
   160 Extracting Components
       
   161 @ @      
       
   162 Opening train.tif
       
   163 open succeeded on file train.tif.  length = 300. width = 2400
       
   164 SCALE_FACTOR = 1.000000  Skip = 1.000000
       
   165 Starting deskew process: time = 0.000000
       
   166 Determining Line boundaries
       
   167 Calling recognize from Tcl
       
   168 Extracting Components
       
   169 Recognizing document
       
   170 Segmentation fault (core dumped)
       
   171 11.5u 4.7s 0:33 48%
       
   172 % Segmentation fault (core dumped)
       
   173 Segmentation fault (core dumped)
       
   174 
       
   175 Badly placed ()'s.
       
   176 % rm core
       
   177 rm core
       
   178 
       
   179 % run
       
   180 run
       
   181 
       
   182 run: Command not found.
       
   183 % ocrchie
       
   184 ocrchie
       
   185 
       
   186 Done initializing new tcl commands
       
   187 Done initializing link variables
       
   188 Learning from train.tif and train.txt sych 0
       
   189 open succeeded on file train.tif.  length = 300. width = 2400
       
   190 Extracting Components
       
   191   
       
   192 @@	 
       
   193 @      
       
   194 Learning from 4.header.tif and 4.header.txt sych 1
       
   195 open succeeded on file 4.header.tif.  length = 129. width = 1825
       
   196 Extracting Components
       
   197        
       
   198 Opening int.tif
       
   199 open succeeded on file int.tif.  length = 227. width = 277
       
   200 SCALE_FACTOR = 1.000000  Skip = 1.000000
       
   201 Starting deskew process: time = 0.000000
       
   202 Determining Line boundaries
       
   203 Calling recognize from Tcl
       
   204 Extracting Components
       
   205 Recognizing document
       
   206 /: ' ^ 
       
   207 Thank you for using OCRchie.
       
   208 16.0u 12.4s 0:35 81%
       
   209 % grep Extracting Components {*.cc *.tcl}
       
   210 grep Extracting Components {*.cc *.tcl}
       
   211 
       
   212 Missing }.
       
   213 % grep Extracting Components *.cc
       
   214 grep Extracting Components *.cc
       
   215 
       
   216 grep: can't open Components
       
   217 Page.cc:    printf("Extracting Components\n");
       
   218 status_message.cc:  set_string_status("Extracting Words", p, f);
       
   219 status_message.cc:  set_string_status("Extracting Characters", p, f);
       
   220 %