Closed klefix closed 8 years ago
Please merge :-)
I've merged this into https://github.com/wikisource/google-cloud-vision-php (it's a fork, but I'm very happy to return to using this version when it comes up to date).
Workaround: use addFeature
method. The second parameter is $maxResults
.
$gcv->addFeature("TEXT_DETECTION", 10);
$gcv->addFeature("LABEL_DETECTION", 10);
...
Fixed an error where $maxResults would always be 1.
$maxResults = 1 only works in the method head to provide 1 as default value. When calling another function, it actually sets $maxResults to 1 before passing it to the function.