vascofire Member Nov 1, 2020 #1 I would like to have some advice on what I should use to code a book painting program for my children using B4J. I'm talking about the libraries and classes to use, and the code on how to recognize the black edges of the drawing. Any idea is welcome. Thank you in advance. Attachments example.jpeg 35.8 KB · Views: 396
I would like to have some advice on what I should use to code a book painting program for my children using B4J. I'm talking about the libraries and classes to use, and the code on how to recognize the black edges of the drawing. Any idea is welcome. Thank you in advance.
Erel B4X founder Staff member Licensed User Longtime User Nov 2, 2020 #2 Check this: https://www.b4x.com/android/forum/threads/how-to-fill-area-in-image.111493/#post-695338 Upvote 0
kimstudio Active Member Licensed User Longtime User Nov 2, 2020 #3 Erel said: Check this: https://www.b4x.com/android/forum/threads/how-to-fill-area-in-image.111493/#post-695338 Click to expand... I notice for the solution provided in this link there are filling "errors" near the black boundary, which means some pixels near boundary are not filled, how to solve that? to fill with a tolerance? Upvote 0
Erel said: Check this: https://www.b4x.com/android/forum/threads/how-to-fill-area-in-image.111493/#post-695338 Click to expand... I notice for the solution provided in this link there are filling "errors" near the black boundary, which means some pixels near boundary are not filled, how to solve that? to fill with a tolerance?
vascofire Member Nov 2, 2020 #4 Erel said: Check this: https://www.b4x.com/android/forum/threads/how-to-fill-area-in-image.111493/#post-695338 Click to expand... Thank you very much, Erel! This is exactly what I needed. You're the best! Upvote 0
Erel said: Check this: https://www.b4x.com/android/forum/threads/how-to-fill-area-in-image.111493/#post-695338 Click to expand... Thank you very much, Erel! This is exactly what I needed. You're the best!
Erel B4X founder Staff member Licensed User Longtime User Nov 2, 2020 #5 kimstudio said: I notice for the solution provided in this link there are filling "errors" near the black boundary, which means some pixels near boundary are not filled, how to solve that? to fill with a tolerance? Click to expand... Two options: 1. Modify the algorithm and make it test the difference between the colors instead of checking for equality. 2. Use images where the lines were drawn without antialiasing. Upvote 0
kimstudio said: I notice for the solution provided in this link there are filling "errors" near the black boundary, which means some pixels near boundary are not filled, how to solve that? to fill with a tolerance? Click to expand... Two options: 1. Modify the algorithm and make it test the difference between the colors instead of checking for equality. 2. Use images where the lines were drawn without antialiasing.
vascofire Member Nov 6, 2020 #6 For a person who knows little or nothing about programming, I never thought that I would do something like this for my children. With B4X and the help of the forum we can do unexpected things. This is the result of what I did. Upvote 0
For a person who knows little or nothing about programming, I never thought that I would do something like this for my children. With B4X and the help of the forum we can do unexpected things. This is the result of what I did.
kimstudio Active Member Licensed User Longtime User Nov 7, 2020 #7 That's so good. You could try Erel's options to solve the near boundary problem. Erel said: Two options: 1. Modify the algorithm and make it test the difference between the colors instead of checking for equality. 2. Use images where the lines were drawn without antialiasing. Click to expand... Upvote 0
That's so good. You could try Erel's options to solve the near boundary problem. Erel said: Two options: 1. Modify the algorithm and make it test the difference between the colors instead of checking for equality. 2. Use images where the lines were drawn without antialiasing. Click to expand...