A anaylor01 Well-Known Member Licensed User Longtime User May 21, 2017 #1 How can I make it so when the camera sees an object it fires off code?
Erel B4X founder Staff member Licensed User Longtime User May 21, 2017 #2 Your app will need to run for it to be able to use the camera. You will need to analyze the picture and recognize the object. This is a difficult task. Upvote 0
Your app will need to run for it to be able to use the camera. You will need to analyze the picture and recognize the object. This is a difficult task.
canalrun Well-Known Member Licensed User Longtime User May 21, 2017 #3 Erel said: Your app will need to run for it to be able to use the camera. You will need to analyze the picture and recognize the object. This is a difficult task. Click to expand... As Erel says "not a simple task". I did something similar a while ago. I used OpenCV functions to recognize an object (they have object recognition routines). In my case I just logged recognition success, but you could also run a subroutine based on an object being recognized. There is discussion, I believe in the Chit Chat subforum (found it: https://www.b4x.com/android/forum/threads/say-hello-to-opencv-for-b4a.78255/), about an OpenCV library that will be available to B4A. I believe it's in beta, but it may be worth looking at. Barry. Last edited: May 21, 2017 Upvote 0
Erel said: Your app will need to run for it to be able to use the camera. You will need to analyze the picture and recognize the object. This is a difficult task. Click to expand... As Erel says "not a simple task". I did something similar a while ago. I used OpenCV functions to recognize an object (they have object recognition routines). In my case I just logged recognition success, but you could also run a subroutine based on an object being recognized. There is discussion, I believe in the Chit Chat subforum (found it: https://www.b4x.com/android/forum/threads/say-hello-to-opencv-for-b4a.78255/), about an OpenCV library that will be available to B4A. I believe it's in beta, but it may be worth looking at. Barry.