Codereview #2 of 3 (Porro) from 16 (Perali)#121
Codereview #2 of 3 (Porro) from 16 (Perali)#121thomasporro wants to merge 32 commits intoPrandiniUniPD:CommonDemofrom
Conversation
For review
See if now the code looks better
I think I fixed all the issues you pointed out, could you check how is it now?
Added the suffix parameter in the _save_ method
Merge from review's changes
|
Well, I can see that you work hard and I appreciate it so much. Indeed the code is full of clear comments and the methods are unit testable. In any case, I don't agree with the methods declaration in the interface. (*) if you apply detectTextRegions and than extractTextFromBitmap you perform 3 conversions with conversionBitmapToMat and conversionMatToBitmap methods. Instead you could get the cropped bitmap with 2 conversions if you take in as parameter a Mat image. If you want to encapsulate this implementation detail you can modify detectTextRegions method to return a List object and delete extractTextFromBitmap from the interface. In code word, the new interface would be like this: |
|
Maybe the specs of the interface aren't clear enough. The original reason why the interfaces have 2 methods it's because we thought to implement a new method to extract the text using another library, but we don't succeded . Actually your advice to modify the interface so it can have only one method is very good, I'll looking to implement it in the next commit. |
Hi,
I've loaded a lot of files, but the methods to review are:
-detectTextRegions and extractTextFromBitmap in ExtractTheText.java
-editBright and isBright in PreProcessing.java
I've put into the pull request also the interface so you can understand more easily the methods but they are not to be revised
Thank You