N
N
nikita_chiru2019-05-05 13:34:25
Android
nikita_chiru, 2019-05-05 13:34:25

How to follow an object through the camera of an android phone?

I want to write a PTZ camera program that will follow an object and turn in its direction so that it always remains in the center of the screen. Is there a library for android studio that can help me?
From the Arduino side, everything is clear

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2019-05-05
@rPman

opencv in the general case, everything is there for video recognition, and everything will depend on how exactly you will be fixed on the object. Do not try to detect complex things in real time, even in ideal conditions it is slow (tens of frames per second) and will not allow you to follow fast sources. Immediately look for cameras with 60-100 fps and I'm afraid not every android phone will give you such a fast sensor (even expensive ones use approximation and in reality give fps in half of the declared one) and most importantly, you will not have enough android hardware to process the image at the required speed.
Camera access - native camera api
The simplest implementation and resource consumption is to place a corner reflector on the object and choose a light source with maximum intensity, near the camera lamp (I recommend adding a light filter to minimize the fake source).
If you have several objects within the room that you need to monitor (and even several cameras), you can look for not just a reflected source, but also a source with the expected blinking frequency or even random lighting control, the main thing is that your software remembers the last frames (not itself frame and a list of lights) with coordinates and whether this source was turned on on the desired object (it must be controlled).
ps As far as I know, there is no beautiful standard for managing PTZ cameras, more precisely, each manufacturer has its own, on the other hand, you can use the ready-made admin panel from cheap ones for home use, reverse http requests and send them from your program.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question