Context
OPEN BOX Dahua EZ-IP NVR 8ch 1HDD 80mbps H265+ NVR1B08HS/L Open box products may be showroom items or samples we have used for testing in our lab. The packaging may not appear as brand new. In general, open box items are in perfect working condition and have full 2-year warranty #18406 €119.00 (incl. VAT) In stock. Further expanding their renowned PTZ camera line, Sony's SRG-300H is a desktop- or ceiling-mountable PTZ color camera with powerful 30x optical zoom and high frame rate 60fps delivers stunning image quality coupled with smooth robotic.
![Ptz Ptz](/uploads/1/2/5/0/125047362/567576578.jpg)
I have some DMX spotlights fixed to a round platform located at 12 meters above the floor. A camera is fixed to the centre (approximately) of this platform. The camera is supposed to film the ground to find and track some targets. This camera is static and give me a 2D plan with an X/Y Cartesian coordinates system. When I found a target, I need to put a spotlight on it.
Illustration
Top view of the sceneTop View Image http://img15.hostingpics.net/pics/635699691.pngSide view of the sceneSide View Image http://img15.hostingpics.net/pics/275272232.png
Problem
To light a target with a spotlight, I need to find the Pan and Tilt angles corresponding of the X/Y position of this target. These spotlights have no specific orientation, but I can find the X/Y projection point of its on the ground with the camera.
Some Data
I found some formulas on the web :
or
but I don't know if it is correct after inconclusive tests..
I don't know if I have the corresponding x, y and z values.
I can find everything you want on my 2D plan: points, vectors, zenith point of the spotlights and I can positioning spotlights where ever you want too. I just can't find the corresponding Pan and Tilt of a particular X/Y point (the target in the camera view) and I don't know how to find its.
I develop in C#.
BlueprintBlueprint
Browse other questions tagged c#geometrycoordinatesvideo-trackingdmx512 or ask your own question.
Here are the parts you need:
4 x 1/4 Nylon washers
1 x 8-32 x 1/4 Chicago screw set (it is a 2 part set that screws into itself see pic) (Poulin #222-269)
1 x 3' Swivel or lazy susan flat ball bearing. (In the cabinet hardware aisle at Home Depot)
1 x 28ga 8' x 10' Sheet metal block end (used for blocking cold air returns)
1 x Hitec HS-322HD servo motor (general purpose type), you can use other servo motors, but be careful; some, (like Futaba), go in the opposite direction (Pan motor)
1 x Hitec HS-755MG servo motor (heavy duty 1/4 scale with metal gears and ball bearings) (Tilt Motor)
1 x Hammond 1411N enclosure or deep octagonal electrical box with cover or deep square electrical box with cover
12 x 4-40 x 1/4' machine screws
8 x 4-40 x 3/4' machine screws
2 x 4-40 x 1/2' machine screws
24 x 4-40 nuts
1 x 4-40 washer
1 x 1/2' Rubber grommet
1 x 1/4-20 x 1/2' machine screw (optional camera mount)
1 x 1/4-20 nut (optional camera mount)
Locktite
A servo controller of some type. There are many kits available (google 'electronic kits' or try www.bpesolutions.com). A DMX controller is available at http://home.att.net/~northlightsystems/. An RF style controller is available at most hobby shops (like one for a car or airplane - needs 2 servo outputs), there are a few on this site and I will post mine when it is working and not jittery. It may be advantageous to have the controller before you start the project so that you can test your movements as you go.
Tools:
Aviation Snips or Tin snips
Square
Ruler
Drill press (or a drill and a really steady hand)
Drill bits - 13/64', 1/2', 27/64', 7/64', 3/32'
4-40 metal Tap - Optional (see text near end of step 6)
Optional but a great way to make really round holes is with a step bit and a 1/4' bit
A bench vice or a sheet metal bender (called a metal brake)
Hammer
Staedtler Lumocolor fine point marker (fantastic marker with a slim body) or Fine point Sharpie marker
Single hole punch (three hole will work too)
4 x 1/4 Nylon washers
1 x 8-32 x 1/4 Chicago screw set (it is a 2 part set that screws into itself see pic) (Poulin #222-269)
1 x 3' Swivel or lazy susan flat ball bearing. (In the cabinet hardware aisle at Home Depot)
1 x 28ga 8' x 10' Sheet metal block end (used for blocking cold air returns)
1 x Hitec HS-322HD servo motor (general purpose type), you can use other servo motors, but be careful; some, (like Futaba), go in the opposite direction (Pan motor)
1 x Hitec HS-755MG servo motor (heavy duty 1/4 scale with metal gears and ball bearings) (Tilt Motor)
1 x Hammond 1411N enclosure or deep octagonal electrical box with cover or deep square electrical box with cover
12 x 4-40 x 1/4' machine screws
8 x 4-40 x 3/4' machine screws
2 x 4-40 x 1/2' machine screws
24 x 4-40 nuts
1 x 4-40 washer
1 x 1/2' Rubber grommet
1 x 1/4-20 x 1/2' machine screw (optional camera mount)
1 x 1/4-20 nut (optional camera mount)
Locktite
A servo controller of some type. There are many kits available (google 'electronic kits' or try www.bpesolutions.com). A DMX controller is available at http://home.att.net/~northlightsystems/. An RF style controller is available at most hobby shops (like one for a car or airplane - needs 2 servo outputs), there are a few on this site and I will post mine when it is working and not jittery. It may be advantageous to have the controller before you start the project so that you can test your movements as you go.
Tools:
Aviation Snips or Tin snips
Square
Ruler
Drill press (or a drill and a really steady hand)
Drill bits - 13/64', 1/2', 27/64', 7/64', 3/32'
4-40 metal Tap - Optional (see text near end of step 6)
Optional but a great way to make really round holes is with a step bit and a 1/4' bit
A bench vice or a sheet metal bender (called a metal brake)
Hammer
Staedtler Lumocolor fine point marker (fantastic marker with a slim body) or Fine point Sharpie marker
Single hole punch (three hole will work too)