- Case sensitiveness, if your images have .jpg and in your code, you mentioned as .JPG this may throw and assertation error. In some cases, it's not. Check carefully the case of your code. Linux is case sensitive.
- Never called executable code (method calling) outside the main method or any other method.
This is Linux, and I insert that code segment inside the main method and worked fine. |
- Always use pass by reference for parameter passing because then we can update the same variable.
This is it for now and I will update this article with other problems I faced in future.