Show Glyph List By Brightness 29 |
User stefan2 |
1030952 |
38 |
new Ref<BEA> glyphsHolder;
class Recognizer {
long serialNumber;
int quantize;
DoubleRect area;
MultiMap<Double, S> multiMap;
*(long *serialNumber, int *quantize, DoubleRect *area) {}
void learn(Map<S, IIntegralImage> glyphMap) {
multiMap = treeMultiMap();
for (S text, IIntegralImage img : glyphMap) {
var cell = uRoot(img).clip(area);
double brightness = cell.averageBrightness();
brightness = quantizeToNLevelsBetweenZeroAndOne_stretched/*midPoint*/(quantize, brightness);
multiMap.put(brightness, text);
}
}
USwitchByBrightness getSwitch() {
ret new USwitchByBrightness(castMultiMapToNavigableMap(multiMap));
}
}
double recognizerQuality(Recognizer recognizer) {
// For obvious reasons, this is the absolute highest number of
// bucket we can fill:
//
// min(quantization levels, number of glyphs remaining)
int n = min(recognizer.quantize, recognizer.multiMap.fullSize());
...
|
Error. x30$JavaCompileException: ----------
1. ERROR in /root/JavaX-Caches/Temp/1631436304771/dyn/b_38_qwyftbueoaghzdje.java (at line 218)
return bestOfN_stopAtScore(__21 -> recognizerQuality(__21), 0.0, c.attempts, attempt -> {
^^^^^^^^^^^^^^^^^^^
The method bestOfN_stopAtScore(utils.IF1<A,Double>, double, int, utils.IF0<A>) in the type b_38_qwyftbueoaghzdje is not applicable for the arguments ((<no type> __21) -> {}, double, int, (<no type> attempt) -> {})
----------
2. ERROR in /root/JavaX-Caches/Temp/1631436304771/dyn/b_38_qwyftbueoaghzdje.java (at line 218)
return bestOfN_stopAtScore(__21 -> recognizerQuality(__21), 0.0, c.attempts, attempt -> {
^^^^^^^^^^^^^^^^^
The method recognizerQuality(b_38_qwyftbueoaghzdje.B38.Recognizer) in the type b_38_qwyftbueoaghzdje.B38 is not applicable for the arguments (A)
----------
3. ERROR in /root/JavaX-Caches/Temp/1631436304771/dyn/b_38_qwyftbueoaghzdje.java (at line 218)
return bestOfN_stopAtS...
|
Glyph Recognizer By Feature Chain v1 37 |
Glyph Recognizer By Feature Chain v1 [backup] |
Cached Latin Glyphs in top left corner 34 |
30bfd9d90f786f7023a4c4d3e0e939a8 |