P pedropadel Member Licensed User Longtime User Jan 3, 2016 #1 Hello! I have a question. I would like to make an application in which you can mix the view of the camera with an image. It would be similar to the following: Any option of doing so, any library? Thank you very much!
Hello! I have a question. I would like to make an application in which you can mix the view of the camera with an image. It would be similar to the following: Any option of doing so, any library? Thank you very much!
Erel B4X founder Staff member Licensed User Longtime User Jan 3, 2016 #2 Adding elements over an image is simple. However extracting objects from the image is a much more difficult task. You will need to use a library such as OpenCV. Currently it is not available in B4A. Upvote 0
Adding elements over an image is simple. However extracting objects from the image is a much more difficult task. You will need to use a library such as OpenCV. Currently it is not available in B4A.
P pedropadel Member Licensed User Longtime User Jan 4, 2016 #3 Thank you Erel! Mi idea is this: It is possible? Thank you! Upvote 0
JordiCP Expert Licensed User Longtime User Jan 4, 2016 #4 Hi Pedro, There are two cases here: If you just want the user to "place" its face on the transparent part, then it should be quite easy with the schema you draw. However, you should compose the image "manually". But if you want to detect faces "automatically", you must rely on OpenCV or camera facedetection capability (or perhaps other that I don't know). Look here (does not work with all phones) In both cases, I recommend you to study canvas, mutablebitmaps, imageviews and Erel's cameraEx library Last edited: Jan 4, 2016 Upvote 0
Hi Pedro, There are two cases here: If you just want the user to "place" its face on the transparent part, then it should be quite easy with the schema you draw. However, you should compose the image "manually". But if you want to detect faces "automatically", you must rely on OpenCV or camera facedetection capability (or perhaps other that I don't know). Look here (does not work with all phones) In both cases, I recommend you to study canvas, mutablebitmaps, imageviews and Erel's cameraEx library