CN110191288A - A kind of camera position method of adjustment and device - Google Patents
A kind of camera position method of adjustment and device Download PDFInfo
- Publication number
- CN110191288A CN110191288A CN201910648982.8A CN201910648982A CN110191288A CN 110191288 A CN110191288 A CN 110191288A CN 201910648982 A CN201910648982 A CN 201910648982A CN 110191288 A CN110191288 A CN 110191288A
- Authority
- CN
- China
- Prior art keywords
- distance
- angle
- video camera
- pedestrian
- length
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/695—Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The application provides a kind of camera position method of adjustment and device, and the position for improving video camera needs to adjust the problem of repeatedly adjustment could be installed successfully repeatedly.This method comprises: receiving the parameter preset for the video camera that video camera is sent, parameter preset is the view parameter of video camera;The camera lens height that height sensor is sent is received, camera lens height is the vertical range of video camera and ground;Camera lens height and parameter preset are calculated, the field area that video camera takes ground is obtained;Field area is compared with preset range, obtains comparison result;Control signal is sent to video camera according to comparison result, control signal is used to make the parameter preset of video camera adjustment camera lens height or video camera so that field area is within preset range.
Description
Technical field
This application involves the technical fields of video camera, in particular to a kind of camera position method of adjustment and device.
Background technique
Whether current camera position adjustment is met the requirements by the picture of viewing video camera shooting, if not meeting
It is required that such as: downward video camera takes the field area on ground not within preset range, then Field Force is allowed to carry out weight
Height or pitch angle are newly adjusted, or even need Field Force repeatedly to adjust repeatedly to reach requirement.Therefore, the prior art
In there is the position of video camera need adjust repeatedly repeatedly adjustment could successfully install the problem of.
Summary of the invention
The embodiment of the present application is designed to provide a kind of camera position method of adjustment and device, for improving video camera
Position need to adjust repeatedly adjustment the problem of could successfully installing repeatedly.
The embodiment of the present application provides a kind of camera position method of adjustment, comprising: receives the described of video camera transmission and takes the photograph
The parameter preset of camera, the parameter preset are the view parameter of the video camera;It is high to receive the camera lens that height sensor is sent
Degree, the camera lens height are the vertical range of the video camera and ground;The camera lens height and the parameter preset are carried out
It calculates, obtains the field area that the video camera takes the ground;The field area is compared with preset range,
Obtain comparison result;Control signal is sent to the video camera according to the comparison result, the control signal is described for making
Video camera adjust the parameter preset of the camera lens height or the video camera so that the field area the preset range it
It is interior.
Optionally, in the embodiment of the present application, the parameter preset include: the visual angle of the video camera vertical angle and
The level angle at the visual angle of the video camera, it is described that the camera lens height and the parameter preset are calculated, described in acquisition
Video camera takes the field area on the ground, comprising: receives pedestrian's distance that range sensor is sent, pedestrian's distance
For the video camera the ground mapping point between pedestrian at a distance from;To the camera lens height, the vertical angle, institute
Level angle, pedestrian's distance and pre-stored pedestrian level is stated to calculate, obtain the video camera take it is described
The field area on ground.
Optionally, in the embodiment of the present application, it is described to the camera lens height, the vertical angle, the level angle,
Pedestrian's distance and pre-stored pedestrian level calculate, and obtain the sight plane that the video camera takes the ground
Product, comprising: to the pedestrian level, the camera lens height, pedestrian distance, the vertical angle and the level angle into
Row calculates, and obtains visual field vertical length, first level length and the second horizontal length, and the visual field vertical length is the camera shooting
The vertical range of first level length described in the vertical angle of view of machine and second horizontal length, the first level length are
The length of the first side length in the horizontal view angle of the video camera, second horizontal length are the horizontal view angle of the video camera
In the second side length length, first side length is shorter than second side length;According toIt hangs down to the visual field
Straight length, the first level length and second horizontal length are calculated, and the field area is obtained;Wherein, S is institute
State field area, d4For the visual field vertical length, a is the first level length, and c is second horizontal length.
Optionally, in the embodiment of the present application, it is described to the pedestrian level, the camera lens height, the pedestrian distance,
The vertical angle and the level angle are calculated, and it is horizontal long to obtain visual field vertical length, first level length and second
Degree, comprising: the pedestrian level, pedestrian's distance and the camera lens height are calculated, obtain first distance, described the
One distance is the vertical range of pedestrian in the visual field of second side length and the video camera;To the first distance, the row
People's distance and the camera lens height calculate, and obtain field-of-view angle, and the field-of-view angle is the video camera to described second
The angle of the angle in the visual field of side length and the ground;To the field-of-view angle, the level angle and the camera lens height into
Row calculates, and obtains second distance, and the second distance is the mapping point of first side length and the video camera on the ground
Vertical range;To the vertical angle, the field-of-view angle, the camera lens height, the first distance, the second distance
It is calculated with pedestrian's distance, obtains the visual field vertical length, the first level length and the second horizontal length
Degree.
Optionally, in the embodiment of the present application, described to the pedestrian level, pedestrian's distance and the camera lens height
It is calculated, obtains first distance, comprising: according toTo the pedestrian level, pedestrian's distance and the camera lens
Height is calculated, and first distance is obtained;Wherein, d3For the first distance, d is pedestrian's distance, and h is that the pedestrian is high
Degree, h1For the camera lens height.
Optionally, in the embodiment of the present application, described to the first distance, pedestrian's distance and the camera lens height
It is calculated, obtains field-of-view angle, comprising: according toTo the first distance, pedestrian's distance and institute
It states camera lens height to be calculated, obtains field-of-view angle;Wherein, γ is the field-of-view angle, d3For the first distance, d is institute
State pedestrian's distance, h1For the camera lens height.
Optionally, in the embodiment of the present application, described to the field-of-view angle, the level angle and the camera lens height
It is calculated, obtains second distance, comprising: according to d1=h1× tan (90- β-γ) is to the field-of-view angle, the level angle
It is calculated with the camera lens height, obtains second distance;Wherein, d1For the second distance, h1For the camera lens height, β is
The level angle, γ are the field-of-view angle.
Optionally, in the embodiment of the present application, it is described to the vertical angle, the field-of-view angle, the camera lens height,
The first distance, the second distance and pedestrian's distance calculate, and obtain the visual field vertical length, described first
Horizontal length and second horizontal length, comprising: according to d4=d3+d–d1WithWithTo the vertical angle, the camera lens height, the first distance, the second distance and
Pedestrian's distance calculates, and obtains the visual field vertical length, the first level length and second horizontal length;
Wherein, d4For the visual field vertical length, d3For the first distance, d is pedestrian's distance, d1For the second distance, a
For the first level length, c is second horizontal length, h1For the camera lens height, α is the vertical angle.
Optionally, in the embodiment of the present application, the parameter preset includes: the pitch angle of the video camera, the video camera
Visual angle vertical angle and the video camera visual angle level angle, the pitch angle be the video camera video camera regard
The minimum angles at angle and spatial vertical line, it is described that the camera lens height and the parameter preset are calculated, obtain the camera shooting
Machine takes the field area on the ground, comprising: according to
The camera lens height, the pitch angle, the vertical angle and the level angle are calculated, the video camera is obtained
Take the field area on the ground;Wherein, S is the field area, h1For the camera lens height, λ is the pitch angle
Degree, α are the vertical angle, and β is the level angle.
The embodiment of the present application also provides a kind of camera positions to adjust device, comprising: the first parameter receiving module is used for
The parameter preset for the video camera that video camera is sent is received, the parameter preset is the view parameter of the video camera;First
Height receiving module, for receiving the camera lens height of height sensor transmission, the camera lens height is the video camera and ground
Vertical range;First area obtains module, for calculating the camera lens height and the parameter preset, described in acquisition
Video camera takes the field area on the ground;Comparison result obtains module, is used for the field area and preset range
It is compared, obtains comparison result;Signal transmitting module is controlled, is controlled for being sent according to the comparison result to the video camera
Signal processed, parameter preset that the control signal is used to that the video camera to be made to adjust the camera lens height or the video camera so that
The field area is within the preset range.
Optionally, in the embodiment of the present application, the parameter preset include: the visual angle of the video camera vertical angle and
The level angle at the visual angle of the video camera, it includes: first distance receiving module that the field area, which obtains module, for receiving
Pedestrian's distance that range sensor is sent, pedestrian's distance are the video camera between the mapping point and pedestrian on the ground
Distance;Second area obtains module, for the camera lens height, the vertical angle, the level angle, the pedestrian
Distance and pre-stored pedestrian level are calculated, and the field area that the video camera takes the ground is obtained.
Optionally, in the embodiment of the present application, it includes: that the first length obtains module that the second area, which obtains module, is used
It is counted in the pedestrian level, the camera lens height, pedestrian distance, the vertical angle and the level angle
It calculates, obtains visual field vertical length, first level length and the second horizontal length, the visual field vertical length is the video camera
The vertical range of first level length described in vertical angle of view and second horizontal length, the first level length is described
The length of the first side length in the horizontal view angle of video camera, second horizontal length are in the horizontal view angle of the video camera
The length of second side length, first side length are shorter than second side length;Third area obtains module, is used for basisThe visual field vertical length, the first level length and second horizontal length are calculated, obtained
Obtain the field area;Wherein, S is the field area, d4For the visual field vertical length, a is the first level length,
C is second horizontal length.
Optionally, in the embodiment of the present application, it includes: that first distance obtains module that first length, which obtains module, is used
It is calculated in the pedestrian level, pedestrian's distance and the camera lens height, obtains first distance, the first distance
For the vertical range of pedestrian in the visual field of second side length and the video camera;Field-of-view angle obtains module, for described
First distance, pedestrian's distance and the camera lens height calculate, and obtain field-of-view angle, and the field-of-view angle is described takes the photograph
Angle of the camera to the visual field of second side length and the angle on the ground;Second distance obtains module, for the view
Wild angle, the level angle and the camera lens height are calculated, and second distance is obtained, and the second distance is described first
The vertical range of side length and the video camera in the mapping point on the ground;Second length obtains module, for described vertical
Angle, the field-of-view angle, the camera lens height, the first distance, the second distance and pedestrian's distance are counted
It calculates, obtains the visual field vertical length, the first level length and second horizontal length.
Optionally, in the embodiment of the present application, it includes: the first computing module that the first distance, which obtains module, is used for root
According toThe pedestrian level, pedestrian's distance and the camera lens height are calculated, first distance is obtained;Its
In, d3For the first distance, d is pedestrian's distance, and h is the pedestrian level, h1For the camera lens height.
Optionally, in the embodiment of the present application, it includes: the second computing module that the field-of-view angle, which obtains module, is used for root
According toThe first distance, pedestrian's distance and the camera lens height are calculated, angle of visibility is obtained
Degree;Wherein, γ is the field-of-view angle, d3For the first distance, d is pedestrian's distance, h1For the camera lens height.
Optionally, in the embodiment of the present application, it includes: third computing module that the second distance, which obtains module, is used for root
According to d1=h1× tan (90- β-γ) calculates the field-of-view angle, the level angle and the camera lens height, obtains the
Two distances;Wherein, d1For the second distance, h1For the camera lens height, β is the level angle, and γ is the angle of visibility
Degree.
Optionally, in the embodiment of the present application, it includes: the 4th computing module that second length, which obtains module, is used for root
According to d4=d3+d–d1WithWithTo the vertical angle, the mirror
Grease head highness, the first distance, the second distance and pedestrian's distance calculate, obtain the visual field vertical length,
The first level length and second horizontal length;Wherein, d4For the visual field vertical length, d3For the first distance,
D is pedestrian's distance, d1For the second distance, a is the first level length, and c is second horizontal length, h1For
The camera lens height, α are the vertical angle.
Optionally, in the embodiment of the present application, the parameter preset includes: the pitch angle of the video camera, described takes the photograph
The level angle at the visual angle of the vertical angle at the visual angle of camera and the video camera, the pitch angle are taking the photograph for the video camera
The minimum angles at camera visual angle and spatial vertical line, it includes: the 5th computing module that first area, which obtains module, is used for basisTo the camera lens height, the pitch angle, it is described hang down
Squareness and the level angle are calculated, and the field area that the video camera takes the ground is obtained;Wherein, S is
The field area, h1For the camera lens height, λ is the pitch angle, and α is the vertical angle, and β is the horizontal angle
Degree.
The embodiment of the present application also provides a kind of electronic equipment, comprising: processor and memory, the memory are stored with
The processor executable machine readable instructions execute as described above when the machine readable instructions are executed by the processor
Method.
The embodiment of the present application also provides a kind of storage medium, it is stored with computer program on the storage medium, the calculating
Machine program executes method as described above when being run by processor.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application will make below to required in the embodiment of the present application
Attached drawing is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore should not be seen
Work is the restriction to range, for those of ordinary skill in the art, without creative efforts, can be with
Other relevant attached drawings are obtained according to these attached drawings.
Camera position provided by the embodiments of the present application shown in fig. 1 adjusts system schematic;
Fig. 2 shows camera position method of adjustment flow diagram provided by the embodiments of the present application;
The vertical cut-away schematic view of camera position method of adjustment provided by the embodiments of the present application shown in Fig. 3;
The horizontal profile schematic diagram of camera position method of adjustment provided by the embodiments of the present application shown in Fig. 4;
Camera position provided by the embodiments of the present application shown in Fig. 5 adjusts apparatus structure schematic diagram;
The structural schematic diagram of electronic equipment provided by the embodiments of the present application shown in Fig. 6.
Icon: 100- camera position adjusts device;101- electronic equipment;102- processor;103- memory;104- is deposited
Storage media;110- the first parameter receiving module;111- video camera;112- height sensor;113- range sensor;114- height
Adjustment equipment;115- pedestal;The 116- body of rod;119- system;120- the first height receiving module;The first area of 130- obtains mould
Block;140- comparison result obtains module;150- controls signal transmitting module.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Whole description.
First embodiment
The possible realization side of one kind of the camera position provided by the embodiments of the present application adjustment system shown referring to Figure 1
Formula, the system 119 include: video camera 111, height sensor 112 and range sensor 113;Wherein, video camera 111 and height
Sensor 112 connects, and height sensor 112 is connect with height adjusting apparatus 114,116 activity of height adjusting apparatus 114 and the body of rod
Connection, the body of rod 116 are connect with pedestal 115, and range sensor 113 is provided on pedestal 115;Height adjusting apparatus 114 can be with
The body of rod 116 is opposite to be slided, so that the opposite sliding on the body of rod 116 of video camera 111, adjusts video camera 111 and ground to reach
The technical effect of the height of plate.For video camera 111 for obtaining image, video camera 111 can also freely adjust the pitch angle of shooting,
Height sensor 112 can be used for obtaining height of the video camera 111 apart from ground, and range sensor 113 can be used for measuring rod
The distance between body 116 and shelter.
It should be noted that the ground in the embodiment of the present application refers to that video camera is set after the movement of falling object by non-artificial
The surface that glove body blocks, such as: when video camera to be mounted on to the building of n-th layer, then ground then refers to the table on N layers of floor
Face, floor here are for the ceiling in the building of n-th layer, and N refers to nonnegative number.In the case of distinguishingly, if taking the photograph
When camera is mounted on the building of first layer, then ground here then refers to the ground on ordinary meaning, if video camera is installed
At negative M layers of building, then ground then refers to that the surface on negative M layers of floor, floor here are the buildings relative to M layers
Ceiling for, M refers to nonnegative number, specifically, if such as video camera when being mounted on basement, then ground is underground
The ground that people is stood in room.
Refer to Fig. 2 shows camera position method of adjustment flow diagram provided by the embodiments of the present application;This method
It can be executed by electronic equipment, electronic equipment here can be with the device end for executing computer program functional, if
For example for terminal: PC, the network switch, network router or host desktop etc.;Certainly electronic equipment here can also
To be server, which, which refers to, provides the equipment of the service of calculating by network, server for example: x86 server and non-
X86 server, 86 server of non-x include: mainframe, minicomputer and unix server.The above-mentioned method executed by electronic equipment
It may include steps of:
Step S100: receiving the parameter preset for the video camera that video camera is sent, and parameter preset is the view parameter of video camera.
Refer to the vertical cut-away schematic view of the camera position method of adjustment provided by the embodiments of the present application shown in Fig. 3;
Wherein, parameter preset is there are many kinds of parameter, as needed may include different parameters, parameter preset for example: vertical angle and
Level angle etc., certainly according to the actual conditions of video camera, video camera may include pitch angle, and pitch angle refers to camera shooting
Angle between the visual angle and vertical line of machine.
Step S200: receive height sensor send camera lens height, camera lens height be video camera it is vertical with ground away from
From.
See Fig. 1 and Fig. 3, wherein the height of height sensor can be identical as video camera, the height of height sensor
It can be different from the height of video camera.When the height of height sensor is identical as video camera, height sensor measurement height is passed
Sensor is then exactly camera lens height at a distance from ground, i.e. the vertical range with ground of video camera;And when height sensor is higher than
When video camera, then the distance that camera lens height is equal to height sensor measurement subtracts height sensor at a distance from video camera;When
When height sensor is lower than video camera, then the distance that camera lens height is equal to height sensor measurement adds height sensor and takes the photograph
The distance of camera.Therefore, the mode for obtaining camera lens height here should not be construed as the limitation to the embodiment of the present application.
Step S300: calculating camera lens height and parameter preset, obtains the field area that video camera takes ground.
Refer to the horizontal profile schematic diagram of the camera position method of adjustment provided by the embodiments of the present application shown in Fig. 4;
Wherein, step S300 has with reference to pedestrian level and refers to both embodiments of camera height, both modes are described in detail
It is as follows:
The first embodiment, see Fig. 3 and Fig. 4, reference pedestrian level here refer to by measurement pedestrian level and
Pedestrian's distance, to be calculated according to camera lens height, vertical angle, level angle, pedestrian's distance and pre-stored pedestrian level
Field area out, parameter preset include: the vertical angle of camera angles and the level angle of camera angles, wherein step
S300 may include steps of:
Step S310: receiving pedestrian's distance that range sensor is sent, and pedestrian's distance is mapping point of the video camera on ground
The distance between pedestrian.
Wherein, see pedestrian's distance of Fig. 3, pedestrian's distance refer to video camera between the mapping point and pedestrian on ground away from
From pedestrian's distance is obtained by the range sensor measurement being mounted on the base.In the specific implementation process, it can be
Installation personnel or tester station are also possible to the average height for this area being previously stored at the video camera end visual field
Pedestrian dummy station is at the video camera end visual field.
Step S320: to camera lens height, vertical angle, level angle, pedestrian's distance and pre-stored pedestrian level into
Row calculates, and obtains the field area that video camera takes ground.
Wherein, the thinking of the specific embodiment of step S320 is for example: to pedestrian level, camera lens height, pedestrian's distance, hanging down
Squareness and level angle are calculated, and visual field vertical length, first level length and the second horizontal length are obtained;Wherein, depending on
Wild vertical length is the vertical range of first level length and the second horizontal length in the vertical angle of view of video camera, and first level is long
Degree is the length of the first side length in the horizontal view angle of video camera, and the second horizontal length is second in the horizontal view angle of video camera
The length of side length, the first side length are shorter than the second side length.
In the embodiment of the present application, step S320 may include steps of:
Step S321: calculating pedestrian level, pedestrian's distance and camera lens height, obtains first distance, first distance
For the vertical range of farthest pedestrian in the visual field of the second side length and video camera.
Specifically for example: according toPedestrian level, pedestrian's distance and camera lens height are calculated, obtain the
One distance;
Wherein, d3For first distance, d is pedestrian's distance, and h is pedestrian level, h1For camera lens height.
Step S322: calculating first distance, pedestrian's distance and camera lens height, obtains field-of-view angle, field-of-view angle
For video camera to the angle in the visual field of the second side length and the angle on ground.
Specifically for example: according toFirst distance, pedestrian's distance and camera lens height are calculated, obtained
Obtain field-of-view angle;
Wherein, γ is field-of-view angle, d3For first distance, d is pedestrian's distance, h1For camera lens height.
Step S323: calculating field-of-view angle, level angle and camera lens height, obtains second distance, second distance
For the first side length and video camera the mapping point on ground vertical range.
Specifically for example: according to d1=h1× tan (90- β-γ) counts field-of-view angle, level angle and camera lens height
It calculates, obtains second distance;
Wherein, d1For second distance, h1For camera lens height, β is level angle, and γ is field-of-view angle.
Step S324: vertical angle, field-of-view angle, camera lens height, first distance, second distance and pedestrian's distance are carried out
It calculates, obtains visual field vertical length, first level length and the second horizontal length.
Specifically, according to d4=d3+d–d1WithWithTo vertical
Squareness, camera lens height, first distance, second distance and pedestrian's distance calculate, and obtain visual field vertical length, first level
Length and the second horizontal length;
Wherein, d4For visual field vertical length, d3For first distance, d is pedestrian's distance, d1For second distance, a is the first water
Flat length, c are the second horizontal length, h1For camera lens height, α is vertical angle.
Step S325: calculating visual field vertical length, first level length and the second horizontal length, obtains sight plane
Product.
Specifically for example: according toTo visual field vertical length, first level length and the second horizontal length
It is calculated, obtains field area;Wherein, S is field area, d4For visual field vertical length, a is first level length, c the
Two horizontal lengths.
Second of embodiment refers to reference to camera height and video camera and ground is measured and calculated by height sensor
Or the distance on floor, which is referred to as camera lens height, thus to camera lens height, pitch angle, vertical angle and horizontal angle
Degree carries out calculating field area, and parameter preset includes: the pitch angle of video camera, the vertical angle of camera angles and camera shooting
The level angle at machine visual angle, pitch angle are the camera angles of video camera and the minimum angles of spatial vertical line, wherein step
S300 may include steps of:
Step S330: calculating camera lens height, pitch angle, vertical angle and level angle, obtains video camera and claps
Take the photograph the field area to ground.
Specifically for example: according toTo camera lens height,
Pitch angle, vertical angle and level angle are calculated, and the field area that video camera takes ground is obtained.
Wherein, S is field area, h1For camera lens height, λ is pitch angle, and α is vertical angle, and β is level angle.
Step S400: field area is compared with preset range, obtains comparison result.
Wherein, field area is compared with preset range, specifically for example: calculated field area is 30 squares
Rice, and preset range is 50 to 100 square metres, then the comparison result obtained is that field area is less than preset range.
Step S500: control signal is sent to video camera according to comparison result, control signal is for making video camera adjust mirror
The parameter preset of grease head highness or video camera so that field area within preset range.
Continuation is illustrated with the example of above step, because field area is less than preset range, to video camera
Send control signal, make video camera improve camera lens height so that field area within preset range, specifically, be also possible to
Height adjusting apparatus sends control signal, so that height adjusting apparatus improves the height of the video camera from the ground.
Second embodiment
Refer to the camera position provided by the embodiments of the present application adjustment apparatus structure schematic diagram shown in Fig. 5;The application
Embodiment provides a kind of camera position adjustment device 100, comprising:
First parameter receiving module 110, the parameter preset of the video camera for receiving video camera transmission, parameter preset is to take the photograph
The view parameter of camera.
First height receiving module 120, for receiving the camera lens height of height sensor transmission, camera lens height is video camera
With the vertical range on ground.
First area obtains module 130, for calculating camera lens height and parameter preset, obtains video camera and takes
The field area on ground.
Comparison result obtains module 140, for field area to be compared with preset range, obtains comparison result.
Signal transmitting module 150 is controlled, for sending control signal to video camera according to comparison result, control signal is used for
Make the parameter preset of video camera adjustment camera lens height or video camera so that field area is within preset range.
Optionally, in the embodiment of the present application, parameter preset includes: the vertical angle and camera angles of camera angles
Level angle, field area obtain module include:
First distance receiving module, for receiving pedestrian's distance of range sensor transmission, pedestrian's distance is that video camera exists
The distance between the mapping point on ground and pedestrian.
Second area obtains module, for camera lens height, vertical angle, level angle, pedestrian's distance and being stored in advance
Pedestrian level calculated, obtain video camera and take the field area on ground.
Optionally, in the embodiment of the present application, second area acquisition module includes:
First length obtains module, for pedestrian level, camera lens height, pedestrian's distance, vertical angle and level angle
It is calculated, obtains visual field vertical length, first level length and the second horizontal length, visual field vertical length is hanging down for video camera
Look at the vertical range of first level length and the second horizontal length in angle straight, first level length is in the horizontal view angle of video camera
The first side length length, the second horizontal length is the length of the second side length in the horizontal view angle of video camera, and the first side length is short
In the second side length.
Third area obtains module, is used for basisTo visual field vertical length, first level length and
Two horizontal lengths are calculated, and field area is obtained;Wherein, S is field area, d4For visual field vertical length, a is first level
Length, c are the second horizontal length.
Optionally, in the embodiment of the present application, the first length acquisition module includes:
First distance obtains module, for calculating pedestrian level, pedestrian's distance and camera lens height, obtain first away from
From first distance is the vertical range of farthest pedestrian in the visual field of the second side length and video camera.
Field-of-view angle obtains module, for calculating first distance, pedestrian's distance and camera lens height, obtains angle of visibility
Degree, field-of-view angle are angle of the video camera to the visual field of the second side length and the angle on ground.
Second distance obtains module, for calculating field-of-view angle, level angle and camera lens height, obtain second away from
From second distance is the vertical range of the first side length and video camera in the mapping point on ground.
Second length obtain module, for vertical angle, field-of-view angle, camera lens height, first distance, second distance and
Pedestrian's distance calculates, and obtains visual field vertical length, first level length and the second horizontal length.
Optionally, in the embodiment of the present application, first distance acquisition module includes:
First computing module is used for basisPedestrian level, pedestrian's distance and camera lens height are calculated,
Obtain first distance;Wherein, d3For first distance, d is pedestrian's distance, and h is pedestrian level, h1For camera lens height.
Optionally, in the embodiment of the present application, field-of-view angle acquisition module includes:
Second computing module is used for basisFirst distance, pedestrian's distance and camera lens height are carried out
It calculates, obtains field-of-view angle;Wherein, γ is field-of-view angle, d3For first distance, d is pedestrian's distance, h1For camera lens height.
Optionally, in the embodiment of the present application, second distance acquisition module includes:
Third computing module, for according to d1=h1× tan (90- β-γ) is to field-of-view angle, level angle and camera lens height
It is calculated, obtains second distance;Wherein, d1For second distance, h1For camera lens height, β is level angle, and γ is field-of-view angle.
Optionally, in the embodiment of the present application, the second length acquisition module includes:
4th computing module, for according to d4=d3+d–d1WithWith
Vertical angle, camera lens height, first distance, second distance and pedestrian's distance are calculated, visual field vertical length, first are obtained
Horizontal length and the second horizontal length;Wherein, d4For visual field vertical length, d3For first distance, d is pedestrian's distance, d1It is second
Distance, a are first level length, and c is the second horizontal length, h1For camera lens height, α is vertical angle.
Optionally, in the embodiment of the present application, parameter preset include: the pitch angle of video camera, camera angles hang down
The level angle of squareness and camera angles, pitch angle are the camera angles of video camera and the minimum angle of spatial vertical line
Degree, the first area obtain module and include:
5th computing module is used for basisTo mirror
Grease head highness, pitch angle, vertical angle and level angle are calculated, and the field area that video camera takes ground is obtained;Its
In, S is field area, h1For camera lens height, λ is pitch angle, and α is vertical angle, and β is level angle.
It should be understood that the device is corresponding with above-mentioned embodiment of the method, it is able to carry out what above method embodiment was related to
Each step, the specific function of the device may refer to described above, and to avoid repeating, appropriate omit is retouched in detail herein
It states.The device includes that at least one can be stored in memory or be solidificated in device in the form of software or firmware (firmware)
Operating system (operating system, OS) in software function module.
Refer to the structural schematic diagram of the electronic equipment provided by the embodiments of the present application shown in Fig. 6.The embodiment of the present application mentions
The a kind of electronic equipment 101 of confession, comprising: processor 102 and memory 103, it is executable that memory 103 is stored with processor 102
Machine readable instructions, machine readable instructions by processor 102 execute when execute method as above.
The embodiment of the present application also provides a kind of storage medium 104, it is stored with computer program on the storage medium 104,
The computer program executes method as above when being run by processor 102.
Wherein, storage medium 104 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (Static Random Access Memory, abbreviation SRAM), electric erasable can
Program read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as
EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read Only Memory, abbreviation
EPROM), programmable read only memory (Programmable Red-Only Memory, abbreviation PROM), read-only memory
(Read-Only Memory, abbreviation ROM), magnetic memory, flash memory, disk or CD.
In several embodiments provided by the embodiment of the present application, it should be understood that disclosed device and method, it can also be with
It realizes in other way.The apparatus embodiments described above are merely exemplary, for example, the flow chart in attached drawing and
Block diagram show the device of multiple embodiments according to the embodiment of the present application, method and computer program product it is in the cards
Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program segment
Or a part of code, a part of module, section or code include one or more for realizing defined logic function
Executable instruction.It should also be noted that function marked in the box can also be in some implementations as replacement
Occur different from the sequence marked in attached drawing.For example, two continuous boxes can actually be basically executed in parallel, they
Sometimes it can also execute in the opposite order, this depends on the function involved.It is also noted that block diagram and or flow chart
In each box and the box in block diagram and or flow chart combination, can function or movement as defined in executing it is special
Hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the embodiment of the present application can integrate one independence of formation together
Part, be also possible to modules individualism, an independent portion can also be integrated to form with two or more modules
Point.
Herein, relational terms such as first and second and the like be used merely to by an entity or operation with it is another
One entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this reality
Relationship or sequence.
Above description, the only optional embodiment of the embodiment of the present application, but the protection scope of the embodiment of the present application is simultaneously
Not limited to this, anyone skilled in the art, can be easily in the technical scope that the embodiment of the present application discloses
Expect change or replacement, should all cover within the protection scope of the embodiment of the present application.
Claims (11)
1. a kind of camera position method of adjustment characterized by comprising
The parameter preset for the video camera that video camera is sent is received, the parameter preset is the view parameter of the video camera;
The camera lens height that height sensor is sent is received, the camera lens height is the vertical range of the video camera and ground;
The camera lens height and the parameter preset are calculated, the sight plane that the video camera takes the ground is obtained
Product;
The field area is compared with preset range, obtains comparison result;
Control signal is sent to the video camera according to the comparison result, the control signal is for adjusting the video camera
The parameter preset of the camera lens height or the video camera so that the field area within the preset range.
2. the method according to claim 1, wherein the parameter preset includes: the visual angle of the video camera
The level angle at the visual angle of vertical angle and the video camera, it is described that the camera lens height and the parameter preset are counted
It calculates, obtains the field area that the video camera takes the ground, comprising:
Receive pedestrian's distance that range sensor is sent, pedestrian distance be the video camera the ground mapping point with
The distance between pedestrian;
To the camera lens height, the vertical angle, the level angle, pedestrian's distance and pre-stored pedestrian level
It is calculated, obtains the field area that the video camera takes the ground.
3. according to the method described in claim 2, it is characterized in that, it is described to the camera lens height, it is the vertical angle, described
Level angle, pedestrian's distance and pre-stored pedestrian level calculate, and obtain the video camera and take describedly
The field area in face, comprising:
The pedestrian level, the camera lens height, pedestrian distance, the vertical angle and the level angle are counted
It calculates, obtains visual field vertical length, first level length and the second horizontal length, the visual field vertical length is the video camera
The vertical range of first level length described in vertical angle of view and second horizontal length, the first level length is described
The length of the first side length in the horizontal view angle of video camera, second horizontal length are in the horizontal view angle of the video camera
The length of second side length, first side length are shorter than second side length;
According toThe visual field vertical length, the first level length and second horizontal length are carried out
It calculates, obtains the field area;Wherein, S is the field area, d4For the visual field vertical length, a is first water
Flat length, c are second horizontal length.
4. according to the method described in claim 3, it is characterized in that, it is described to the pedestrian level, it is the camera lens height, described
Pedestrian's distance, the vertical angle and the level angle calculate, and obtain visual field vertical length, first level length and the
Two horizontal lengths, comprising:
The pedestrian level, pedestrian's distance and the camera lens height are calculated, obtain first distance, described first away from
Vertical range from pedestrian in the visual field for second side length and the video camera;
The first distance, pedestrian's distance and the camera lens height are calculated, field-of-view angle, the angle of visibility are obtained
Degree is angle of the video camera to the visual field of second side length and the angle on the ground;
The field-of-view angle, the level angle and the camera lens height are calculated, obtain second distance, described second away from
From the vertical range for first side length and mapping point of the video camera on the ground;
To the vertical angle, the field-of-view angle, the camera lens height, the first distance, the second distance and described
Pedestrian's distance calculates, and obtains the visual field vertical length, the first level length and second horizontal length.
5. according to the method described in claim 4, it is characterized in that, described to the pedestrian level, pedestrian's distance and institute
It states camera lens height to be calculated, obtains first distance, comprising:
According toThe pedestrian level, pedestrian's distance and the camera lens height are calculated, obtain first away from
From;
Wherein, d3For the first distance, d is pedestrian's distance, and h is the pedestrian level, h1For the camera lens height.
6. according to the method described in claim 4, it is characterized in that, described to the first distance, pedestrian's distance and institute
It states camera lens height to be calculated, obtains field-of-view angle, comprising:
According toThe first distance, pedestrian's distance and the camera lens height are calculated, depending on
Wild angle;
Wherein, γ is the field-of-view angle, d3For the first distance, d is pedestrian's distance, h1For the camera lens height.
7. according to the method described in claim 4, it is characterized in that, described to the field-of-view angle, the level angle and institute
It states camera lens height to be calculated, obtains second distance, comprising:
According to d1=h1× tan (90- β-γ) calculates the field-of-view angle, the level angle and the camera lens height,
Obtain second distance;
Wherein, d1For the second distance, h1For the camera lens height, β is the level angle, and γ is the field-of-view angle.
8. according to the method described in claim 4, it is characterized in that, it is described to the vertical angle, it is the field-of-view angle, described
Camera lens height, the first distance, the second distance and pedestrian's distance calculate, and it is vertically long to obtain the visual field
Degree, the first level length and second horizontal length, comprising:
According to d4=d3+d–d1WithWithTo the vertical angle, institute
It states camera lens height, the first distance, the second distance and pedestrian's distance to calculate, it is vertically long to obtain the visual field
Degree, the first level length and second horizontal length;
Wherein, d4For the visual field vertical length, d3For the first distance, d is pedestrian's distance, d1For described second away from
From a is the first level length, and c is second horizontal length, h1For the camera lens height, α is the vertical angle.
9. the method according to claim 1, wherein the parameter preset includes: the pitch angle of the video camera
The level angle at the visual angle of the vertical angle and video camera at the visual angle of degree, the video camera, the pitch angle is described
The camera angles of video camera and the minimum angles of spatial vertical line, it is described that the camera lens height and the parameter preset are carried out
It calculates, obtains the field area that the video camera takes the ground, comprising:
According toTo the camera lens height, the pitch angle
Degree, the vertical angle and the level angle are calculated, and the field area that the video camera takes the ground is obtained;
Wherein, S is the field area, h1For the camera lens height, λ is the pitch angle, and α is the vertical angle, and β is
The level angle.
10. a kind of camera position adjusts device characterized by comprising
First parameter receiving module, the parameter preset of the video camera for receiving video camera transmission, the parameter preset are
The view parameter of the video camera;
First height receiving module, for receiving the camera lens height of height sensor transmission, the camera lens height is the camera shooting
The vertical range of machine and ground;
First area obtains module and obtains the video camera for calculating the camera lens height and the parameter preset
Take the field area on the ground;
Comparison result obtains module, for the field area to be compared with preset range, obtains comparison result;
Signal transmitting module is controlled, for sending control signal, the control letter to the video camera according to the comparison result
Number for make the video camera adjust the camera lens height or the video camera parameter preset so that the field area in institute
It states within preset range.
11. a kind of storage medium, which is characterized in that be stored with computer program on the storage medium, which is located
Manage the method executed as described in claim 1-9 is any when device operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910648982.8A CN110191288B (en) | 2019-07-17 | 2019-07-17 | Camera position adjusting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910648982.8A CN110191288B (en) | 2019-07-17 | 2019-07-17 | Camera position adjusting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110191288A true CN110191288A (en) | 2019-08-30 |
CN110191288B CN110191288B (en) | 2021-05-18 |
Family
ID=67725807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910648982.8A Active CN110191288B (en) | 2019-07-17 | 2019-07-17 | Camera position adjusting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110191288B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113676704A (en) * | 2021-08-23 | 2021-11-19 | 成都轨道交通集团有限公司 | Arrangement method of barrier object-passing cameras |
CN113959735A (en) * | 2021-10-20 | 2022-01-21 | 江苏徐工工程机械研究院有限公司 | Portable visual field measuring device and measuring method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004282535A (en) * | 2003-03-18 | 2004-10-07 | Mitsubishi Electric Corp | Device for adjusting angle of field |
CN104639824A (en) * | 2013-11-13 | 2015-05-20 | 杭州海康威视***技术有限公司 | Electronic map based camera control method and device |
CN105827933A (en) * | 2015-06-29 | 2016-08-03 | 维沃移动通信有限公司 | Imaging method and device and mobile terminal |
CN107145162A (en) * | 2017-04-10 | 2017-09-08 | 北京小鸟看看科技有限公司 | Camera angle method of adjustment, system and virtual reality system |
CN107710283A (en) * | 2016-12-02 | 2018-02-16 | 深圳市大疆创新科技有限公司 | A kind of filming control method, device and control device |
-
2019
- 2019-07-17 CN CN201910648982.8A patent/CN110191288B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004282535A (en) * | 2003-03-18 | 2004-10-07 | Mitsubishi Electric Corp | Device for adjusting angle of field |
CN104639824A (en) * | 2013-11-13 | 2015-05-20 | 杭州海康威视***技术有限公司 | Electronic map based camera control method and device |
CN105827933A (en) * | 2015-06-29 | 2016-08-03 | 维沃移动通信有限公司 | Imaging method and device and mobile terminal |
CN107710283A (en) * | 2016-12-02 | 2018-02-16 | 深圳市大疆创新科技有限公司 | A kind of filming control method, device and control device |
CN107145162A (en) * | 2017-04-10 | 2017-09-08 | 北京小鸟看看科技有限公司 | Camera angle method of adjustment, system and virtual reality system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113676704A (en) * | 2021-08-23 | 2021-11-19 | 成都轨道交通集团有限公司 | Arrangement method of barrier object-passing cameras |
CN113676704B (en) * | 2021-08-23 | 2023-11-21 | 成都轨道交通集团有限公司 | Arrangement method of barrier delivery cameras |
CN113959735A (en) * | 2021-10-20 | 2022-01-21 | 江苏徐工工程机械研究院有限公司 | Portable visual field measuring device and measuring method |
CN113959735B (en) * | 2021-10-20 | 2024-04-02 | 江苏徐工工程机械研究院有限公司 | Portable vision measuring device and measuring method |
Also Published As
Publication number | Publication date |
---|---|
CN110191288B (en) | 2021-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10380745B2 (en) | Methods and devices for measuring object motion using camera images | |
US10612939B2 (en) | Ground truth estimation for autonomous navigation | |
CN110191288A (en) | A kind of camera position method of adjustment and device | |
CN110324576A (en) | The method for being directed at the match point in the view of the camera of two separation | |
US9628688B2 (en) | Security camera having a body orientation sensor and method of use | |
WO2018089268A1 (en) | Systems and methods for autonomous imaging and structural analysis | |
CN108665541B (en) | A kind of ground drawing generating method and device and robot based on laser sensor | |
CN102263933A (en) | Intelligent monitoring method and device | |
US11035667B2 (en) | Monitoring system and method for controlling process of surface treatment for construction | |
CN111307041A (en) | Building measuring method | |
EP2919503A1 (en) | Method of placing wireless devices for rf planning | |
CN104077611B (en) | Indoor scene monocular vision space recognition method under class ground gravitational field environment | |
CN106101695A (en) | Photographic head accuracy of identification detecting system | |
KR20130103577A (en) | System and method for camera control in a surveillance system | |
CN110706198B (en) | Vibration detection system based on unmanned aerial vehicle to large-scale building robot | |
CN114184127B (en) | Single-camera target-free building global displacement monitoring method | |
AU2013355136B2 (en) | Embedment positioning system | |
JP2020155934A (en) | Flying object, data processing device, control method, and program | |
CN114640800B (en) | Camera arrangement method and system | |
KR20090084019A (en) | Device for identification photographing position of a monitoring camera | |
CN207963116U (en) | Device for installing equipment | |
RU2307730C1 (en) | Method for visually controlling car orientation of mobile robot moving along horizontal surface in preset room | |
CN116203554B (en) | Environment point cloud data scanning method and system | |
CN108549414A (en) | A kind of virtual cloud platform control system and method | |
CN113587404B (en) | Positioning method for air conditioner installation, air conditioner and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |