When I have a container for taking photo that detects person when he/she enters it by PIR sensor, and I want to install camera that will be connected to the PC, that detects face of that person and takes a photo.

The problem is it may be a small child or tall adult. How can I automatically adjust the height at which the camera takes an image?

closed as off-topic by AJ Henderson Oct 23 '17 at 13:48

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking specific product or service recommendations, where the answer is likely to be either entirely personal or short-lived as a result of changing markets, are off topic here. Please rephrase your question to describe the problem you're trying to solve or what you do not understand that prevents you from determining the answer yourself." – AJ Henderson
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    @AJHenderson The question seems to be about solving the same class of problems addressed by movements on technical cameras. It is only its phrasing as an XY problem that seems to put it off topic. – user50888 Oct 23 '17 at 15:10
  • 1
    @benrudgers - except it isn't just about how to move a camera up and down. It's primarily about building a system to move it up or down automatically. That automation piece is what pushed it over the edge. The question is "how do a I build a robot that can move something up and down on it's own?" it just happens to be moving a camera. If it is asking for a specific device, it is a product recommendation, if it is not, it is not photography related. – AJ Henderson Oct 23 '17 at 15:14
  • 1
    Put another way, let's take it to the extreme. "My subject may move around. How do I build a vehicle that can follow them?" Is building a self-driving subject tracking car on topic for Photo.SE? If we apply that logic, we can make just about anything "photography" related. – AJ Henderson Oct 23 '17 at 15:28
  • 1
    @AJHenderson I see the problem as photographing subjects at different heights. Deciding to move the camera is what turns it into an XY problem. Moving the lens is another solution to photographing subjects of varying height and well within the realm of photography. Cropping is similarly. – user50888 Oct 23 '17 at 15:41
  • 1
    @AJHenderson I have asked question on robootics robotics.stackexchange.com/questions/14500/… yesterday. But no one replied yet. – J Clean Oct 25 '17 at 5:47

For a number of applications, this issue is often solved by using a dedicated PTZ Camera, which has a camera with a zoom lens integrated with a motor-driven and controllable pan+tilt head. Most of these cameras nowadays are also IP cameras that can be controlled via network or IoT standard interfaces.

In surveillance, these cameras are often mounted upside down from a ceiling, some distance away from the target area to be monitored. This reduces the maximum sweep angle needed to adjust for the height of the individual entering the surveillance zone, and also avoids a potential issue where the PTZ might not be able to look down at a subject (the way standing adults address children) if it were mounted right-side-up, as the sweep area for the tilt is typically from parallel to the base to straight up.

  • 2
    Panning and tilting will change the perspective in a portrait. For example a child will have to look up at a camera that would be eye level for an adult. That may or may not be an issue for the application envisioned in the question. – user50888 Oct 23 '17 at 13:40

You should find your way out. Ideally the camera should be mounted on a vertically mounted bar which could move to and fro with the help of gears. The gears could be moved with a stepper motor controlled by a arduino based hardware and software.

  • It means that there is no ready one, right? I should make it myself from scratch. – J Clean Oct 23 '17 at 7:10
  • There definitely are surveillance camera systems that do advanced face tracking. Not sure how many of them are affordable as those I have seen are usually part of large surveillance installation with hundreds of cameras. I think, however, that the previous answer about PTZ cameras is the first stop to look at. – Gnudiff Oct 23 '17 at 8:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.