CN104184985A - Method and device for acquiring image - Google Patents

Method and device for acquiring image Download PDF

Info

Publication number
CN104184985A
CN104184985A CN201310202005.8A CN201310202005A CN104184985A CN 104184985 A CN104184985 A CN 104184985A CN 201310202005 A CN201310202005 A CN 201310202005A CN 104184985 A CN104184985 A CN 104184985A
Authority
CN
China
Prior art keywords
operation box
shooting angle
focal length
instruction
pictures
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
Application number
CN201310202005.8A
Other languages
Chinese (zh)
Other versions
CN104184985B (en
Inventor
初艳微
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310202005.8A priority Critical patent/CN104184985B/en
Publication of CN104184985A publication Critical patent/CN104184985A/en
Application granted granted Critical
Publication of CN104184985B publication Critical patent/CN104184985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The invention discloses a method and device for acquiring an image, relates to the field of image processing, and can solve the problem that monitoring equipment costs are high when monitoring is performed through a panoramic camera. The method includes: displaying a panoramic picture and an operating frame in the panoramic picture, the panoramic picture being used for showing a monitoring range that can be monitored, and the operating frame being used for showing a current monitoring region; receiving an operation instruction triggered on the operating frame by a user, the operation instruction being used for moving the position of the operating frame or adjusting the size of the operating frame; determining camera parameters from a preset relation table according to the operating instruction, the camera parameters including shooting angle and focal length of the camera, and the preset relation table being used for recording corresponding relations of the position and the size of the operating frame and the shooting angle and the focal length of the camera; and acquiring a monitoring image according to the camera parameters, the monitoring image being a current image of the monitoring region. The method for acquiring the image in the invention is mainly applied to a process of video monitoring.

Description

The method of image acquisition and device
Technical field
The present invention relates to image processing field, relate in particular to a kind of method and device of image acquisition.
Background technology
Ball machine full name is ball-shaped camera, is the representative of advance TV monitoring development, and integrated colored integrated camera, The Cloud Terrace, decoder, protective cover etc. are multi-functional in one, are widely used in the monitoring of open area, are applicable to different occasions.When ball machine is in the time turning to hard-over, cannot be rotated further.User does not know that whether the current turned position of ball machine has approached the maximum magnitude rotating, cannot judge whether monitored object will leave monitoring range, in the time cannot being rotated further suddenly, will cause obstacle to supervision in advance.
In order to address the above problem, a kind of image that obtains monitoring range by panoramic camera is provided in prior art, because the pixel resolution of panoramic camera is lower, cannot realize local amplification, therefore by the ball machine with comprehensive (upper and lower, the left and right) movement of The Cloud Terrace and camera lens zoom, Zoom control (Pan/Tilt/Zoom is called for short PTZ) function, part is amplified.Coordinate many PTZ ball machines to reach function for monitoring by a panoramic camera.Because panoramic camera is without rotating all images that can obtain maximum monitoring range, therefore can avoid user cannot judge in advance whether monitored object will exceed the problem of monitoring range.
State in realization in the process of image acquisition, inventor finds that in prior art, at least there are the following problems: because panoramic camera need to be bought separately and install, therefore watch-dog cost is high.
Summary of the invention
The method of a kind of image acquisition provided by the invention and device, can solve while monitoring by panoramic camera the problem that watch-dog cost is high.
First aspect, the invention provides a kind of method of image acquisition, comprising:
Show the operation box in panoramic pictures and described panoramic pictures, the monitoring range of described panoramic pictures for representing to monitor, described operation box is for representing current guarded region;
Receive the operation instruction that user triggers described operation box, described operation instruction is used for the position of mobile described operation box or regulates the size of described operation box;
From preset relation table, determine camera parameters according to described operation instruction, described camera parameters comprises shooting angle, the focal length of video camera, and described preset relation table is used for the shooting angle of the position, size and the video camera that record described operation box, the corresponding relation of focal length;
Obtain monitoring image according to described camera parameters, described monitoring image is the current image of described guarded region.
In the possible implementation of the first of described first aspect, before the operation box in described demonstration panoramic pictures and described panoramic pictures, described method also comprises:
Obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum;
Generate described panoramic pictures according to the picture of described at least one width guarded region;
Position according to the picture of described at least one width guarded region in described panoramic pictures and the described shooting angle while obtaining described picture, generate described preset relation table, described preset relation table also generates for recording the described default focal length using when described panoramic pictures.
In the possible implementation of the first of described first aspect or described first aspect, the possible implementation of the second of described first aspect is also provided, in the possible implementation of the second of described first aspect, the described picture that obtains at least one width guarded region according to the described shooting angle of maximum according to default focal length, comprising:
Obtain the described shooting angle of maximum of horizontal direction and the described shooting angle of maximum of vertical direction;
According to the described shooting angle of the maximum of described horizontal direction, monitoring range is scanned according to default focal length, obtain horizontal pictures, the picture that described horizontal pictures comprise at least one width guarded region in horizontal direction;
According to the described shooting angle of the maximum of described vertical direction, monitoring range is scanned according to default focal length, obtain vertical pictures, the picture that described vertical pictures comprise at least one width guarded region in vertical direction;
The described picture according to described at least one width guarded region generates described panoramic pictures, comprising:
According to described horizontal pictures and described vertical pictures, generate described panoramic pictures.
In the implementation that the first is possible or the second is possible of described first aspect or described first aspect, the third possible implementation of described first aspect is also provided, in the third possible implementation of described first aspect, the operation instruction that described reception user triggers described operation box, comprising:
Receive the mobile instruction that user triggers described operation box, described mobile instruction is for the position of mobile described operation box;
Described according to described operation instruction definite camera parameters from preset relation table, comprising:
From described preset relation table, determine described shooting angle according to described mobile instruction and operation box coordinate.
In the first possibility, the second possibility or the third possible implementation of described first aspect or described first aspect, the 4th kind of possible implementation of described first aspect is also provided, in the 4th kind of possible implementation of described first aspect, described according to described mobile instruction and operation box coordinate definite described shooting angle from described preset relation table, comprising:
Obtain the center point coordinate of operation box, the geometric center that described central point is described operation box;
From described mobile instruction, obtain offset vector;
According to described center point coordinate and described offset vector, calculate Mobility Center point coordinates, described Mobility Center point coordinates is used for the coordinate of the central point that represents the operation box after movement;
From described preset relation table, search the described shooting angle corresponding with described Mobility Center point coordinates.
In the first possibility, the second possibility, the third possibility or the 4th kind of possible implementation of described first aspect or described first aspect, the 5th kind of possible implementation of described first aspect is also provided, in the 5th kind of possible implementation of described first aspect, the operation instruction that described reception user triggers described operation box, comprising:
Receive the convergent-divergent instruction that user triggers described operation box, described convergent-divergent instruction is for regulating the size of described operation box;
Described according to described operation instruction definite camera parameters from preset relation table, comprising:
From described preset relation table, determine focal length according to described convergent-divergent instruction.
In implementation in the first possibility, the second possibility, the third possibility, the 4th kind of possibility or the 5th kind of possibility of described first aspect or described first aspect, the 6th kind of possible implementation of described first aspect is also provided, in the 6th kind of possible implementation of described first aspect, described according to described convergent-divergent instruction definite focal length from described preset relation table, comprising:
Obtain the distance d1 between predeterminated position point in described center point coordinate and current operation frame;
Obtain the distance d2 between predeterminated position point described in the operation box after described center point coordinate and convergent-divergent;
According to the default focal length recording in described d1, described d2 and described preset relation table, calculate the focal length after convergent-divergent.
In implementation in the first possibility, the second possibility, the third possibility, the 4th kind of possibility, the 5th kind of possibility or the 6th kind of possibility of described first aspect or described first aspect, the 7th kind of possible implementation of described first aspect is also provided, in the 7th kind of possible implementation of described first aspect, operation box in described demonstration panoramic pictures and described panoramic pictures, comprising:
In described panoramic pictures, show the accessible boundary of focus, described accessible boundary is for representing the maximum magnitude that optical axis can rotate.
In implementation in the first possibility, the second possibility, the third possibility, the 4th kind of possibility, the 5th kind of possibility, the 6th kind of possibility or the 7th kind of possibility of described first aspect or described first aspect, the 8th kind of possible implementation of described first aspect is also provided, in the 8th kind of possible implementation of described first aspect, described method also comprises:
In the time that the geometric center point of operation box and the distance of described accessible boundary are less than predeterminable range, output information, described information is for representing that described operation box approaches the border of monitoring range.
Second aspect, the present invention also provides a kind of device of image acquisition, comprising:
Display unit, for showing the operation box of panoramic pictures and described panoramic pictures, the monitoring range of described panoramic pictures for representing to monitor, described operation box is for representing current guarded region;
Receiving element, the operation instruction described operation box of described display unit demonstration being triggered for receiving user, the size that described operation instruction is used for moving the position of described operation box or regulates described operation box;
Determining unit, determine camera parameters for the described operation instruction receiving according to described receiving element from preset relation table, described camera parameters comprises shooting angle, the focal length of video camera, and described preset relation table is used for the shooting angle of the position, size and the video camera that record described operation box, the corresponding relation of focal length;
Acquiring unit, obtains monitoring image for the described camera parameters of determining according to described determining unit, and described monitoring image is the current image of described guarded region.
In the possible implementation of the first of described second aspect, described acquiring unit also for, obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum;
Described device also comprises:
Generation unit, generates described panoramic pictures for the picture of described at least one width guarded region of obtaining according to described acquiring unit;
Described generation unit also for, position according to the picture of described at least one width guarded region in described panoramic pictures and the described shooting angle while obtaining described picture, generate described preset relation table, described preset relation table also generates for recording the described default focal length using when described panoramic pictures.
In the possible implementation of the first of described second aspect or described second aspect, the possible implementation of the second of described second aspect is also provided, in the possible implementation of the second of described second aspect, described acquiring unit, comprising:
First obtains subelement, for obtaining the described shooting angle of maximum of horizontal direction and the described shooting angle of maximum of vertical direction;
Second obtains subelement, according to the described first described shooting angle of maximum of obtaining the described horizontal direction that subelement obtains, monitoring range is scanned according to default focal length, obtain horizontal pictures, the picture that described horizontal pictures comprise at least one width guarded region in horizontal direction;
The 3rd obtains subelement, according to described first obtaining the described shooting angle of the maximum according to described vertical direction that subelement obtains, according to default focal length, monitoring range being scanned, obtain vertical pictures, the picture that described vertical pictures comprise at least one width guarded region in vertical direction;
Described generation unit also for, obtain according to described second the described horizontal pictures that subelement obtains and obtain with the described the 3rd the described vertical pictures that subelement obtains, generate described panoramic pictures.
In the implementation that the first is possible or the second is possible of described second aspect or described second aspect, the third possible implementation of described second aspect is also provided, in the third possible implementation of described second aspect, described receiving element, comprising:
First receives subelement, the mobile instruction described operation box being triggered for receiving user, and described mobile instruction is for the position of mobile described operation box;
Described determining unit, comprising:
First determines subelement, for determining described shooting angle according to the described first described mobile instruction and operation box coordinate that receives subelement reception from described preset relation table.
In the first possibility, the second possibility or the third possible implementation of described second aspect or described second aspect, the 4th kind of possible implementation of described second aspect is also provided, in the 4th kind of possible implementation of described second aspect, described first determines subelement, comprising:
The first acquisition module, for obtaining the center point coordinate of operation box, the geometric center that described central point is described operation box;
The second acquisition module, for obtaining offset vector from the described first described mobile instruction that receives subelement reception;
The first computing module, the described offset vector obtaining for the described center point coordinate that obtains according to described the first acquisition module and described the second acquisition module, calculate Mobility Center point coordinates, described Mobility Center point coordinates is used for the coordinate of the central point that represents the operation box after movement;
Search module, search the corresponding described shooting angle of described Mobility Center point coordinates of calculating with described the first computing module for the described preset relation table generating from described generation unit.
In the first possibility, the second possibility, the third possibility or the 4th kind of possible implementation of described second aspect or described second aspect, the 5th kind of possible implementation of described second aspect is also provided, in the 5th kind of possible implementation of described second aspect, described receiving element, also comprises:
Second receives subelement, the convergent-divergent instruction described operation box being triggered for receiving user, and described convergent-divergent instruction is for regulating the size of described operation box;
Described determining unit, also comprises:
Second determines subelement, receives according to described second described convergent-divergent instruction definite focal length from described preset relation table that subelement receives.
In implementation in the first possibility, the second possibility, the third possibility, the 4th kind of possibility or the 5th kind of possibility of described second aspect or described second aspect, the 6th kind of possible implementation of described second aspect is also provided, in the 6th kind of possible implementation of described second aspect, described second determines subelement, comprising:
The 3rd acquisition module, for obtaining the distance d1 between described center point coordinate and current operation frame predeterminated position point;
The 4th acquisition module, for obtaining the distance d2 between predeterminated position point described in the operation box after described center point coordinate and convergent-divergent;
The second computing module, the default focal length that the described preset relation table that the described d2 obtaining for the described d1 obtaining according to described the 3rd acquisition module, described the 4th acquisition module and described generation unit generate records, calculates the focal length after convergent-divergent.
In implementation in the first possibility, the second possibility, the third possibility, the 4th kind of possibility, the 5th kind of possibility or the 6th kind of possibility of described second aspect or described second aspect, the 7th kind of possible implementation of described second aspect is also provided, in the 7th kind of possible implementation of described second aspect, described display unit also for, in described panoramic pictures, show the accessible boundary of focus, described accessible boundary is for representing the maximum magnitude that optical axis can rotate.
In implementation in the first possibility, the second possibility, the third possibility, the 4th kind of possibility, the 5th kind of possibility, the 6th kind of possibility or the 7th kind of possibility of described second aspect or described second aspect, the 8th kind of possible implementation of described second aspect is also provided, in the 8th kind of possible implementation of described second aspect, described device also comprises:
Output unit, in the time that the geometric center point of operation box and the distance of described accessible boundary are less than predeterminable range, output information, described information is for representing that described operation box approaches the border of monitoring range.
The third aspect, the present invention also provides a kind of computer program, comprises computer-readable medium, and described computer-readable medium comprises batch processing code, for carrying out the method described in first aspect.
The method of image acquisition provided by the invention and device, can be at the operation box that shows current monitor area in panorama sketch, and camera parameters is determined in operation instruction operation box being triggered according to user, obtains the image of guarded region according to camera parameters.In prior art, need the image in the current monitoring range of panoramic camera Dynamic Acquisition, when diverse location carries out part amplification in to image, need different PTZ ball machines amplify processing, the equipment number of units of use is many, causes watch-dog cost high.The present invention realizes the monitoring to guarded region by a PTZ ball machine, can reduce the cost of watch-dog.Meanwhile, in the present invention, can complete the generation of panoramic pictures by a PTZ ball machine, and can in panoramic pictures, show the position of current shooting region in coverage, be convenient to user and shift to an earlier date anticipation and whether arrive coverage border.The enlarging function of the PTZ ball machine only utilizing in prior art, and underuse its rotating function, the present invention is the measuring range using the maximum rotation scope of PTZ ball machine as formation panoramic pictures in the time forming panoramic pictures, make full use of the rotating function of PTZ ball machine, simultaneously according to user's operation instruction adjusting focal length, utilize the zoom function of PTZ ball machine, and then improved the service efficiency of PTZ ball machine.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of the method for first image acquisition in the embodiment of the present invention;
Fig. 2 is the flow chart of the method for second image acquisition in the embodiment of the present invention;
Fig. 3 is the flow chart of the method for the 3rd image acquisition in the embodiment of the present invention;
Fig. 4 is the schematic diagram that shows the position range of focus in the embodiment of the present invention in panoramic pictures;
Fig. 5 is the flow chart of the method for the 4th image acquisition in the embodiment of the present invention;
Fig. 6 is the flow chart of the method for the 5th image acquisition in the embodiment of the present invention;
Fig. 7 is the schematic diagram of determining coordinate in the embodiment of the present invention according to mobile instruction;
Fig. 8 is the flow chart of the method for the 6th image acquisition in the embodiment of the present invention;
Fig. 9 is the flow chart of the method for the 7th image acquisition in the embodiment of the present invention;
Figure 10 is the structural representation of the device of first image acquisition in the embodiment of the present invention;
Figure 11 is the structural representation of the device of second image acquisition in the embodiment of the present invention;
Figure 12 is the structural representation of the device of the 3rd image acquisition in the embodiment of the present invention;
Figure 13 is the schematic diagram of the system of an image acquisition in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of image acquisition, and described method is applied in the electronic equipment with PTZ function, described in there is camera function electronic equipment can be any one of following electronic equipment: colour TV camera, B/W camera etc.Below for convenience of description, be described as the electronic equipment that uses the method for the invention using the ball machine (PTZ ball machine) with PTZ function.As shown in Figure 1, described method comprises:
Operation box in step 101, demonstration panoramic pictures and panoramic pictures, the monitoring range of panoramic pictures for representing to monitor, operation box is for representing current guarded region.
In the time that user monitors, by show a Zhang Quanjing figure in screen, the monitoring range of this panorama sketch for representing to monitor.For example: in the time of monitoring parking lot, described in the level of PTZ ball machine, shooting angle is 270 degree, and vertical described shooting angle is 90 degree, and now panoramic pictures is that PTZ ball machine is 270 degree by shooting angle described in level, vertical described shooting angle is 90 degree, a continuous picture must beating.Operation box is the current guarded region capturing of PTZ ball machine, for example, go up a parking stall in parking lot in example.Panoramic pictures is a static images, its whole monitoring ranges for representing to monitor, and operation box is for representing current guarded region.
The operation instruction that step 102, reception user trigger operation box, operation instruction is used for the position of move operation frame and the size of adjustment operation frame.
User, according to the panoramic pictures and the operation box that show, can be known the position of current guarded region in monitoring range.For user, can follow the tracks of the someone in parking lot by move operation frame.In the time need to seeing this people's facial characteristics clearly, user can amplify demonstration by reduction operation frame.
Step 103, from preset relation table, determine camera parameters according to operation instruction, camera parameters comprises shooting angle, the focal length of video camera, and preset relation table is for recording the shooting angle, the corresponding relation of focal length of position, size and video camera of operation box.
In the time that described operation instruction is used for the position of move operation frame, the terminal point coordinate pointing to according to operation instruction is searched and is arrived with it corresponding described shooting angle in preset relation table.When described operation instruction is when regulating the size of described operation box, in indicate by operation before and after the ratio of operation box length of side size and the default focal length using while generating panoramic pictures, can obtain operation and indicate the focal length after sensing.
Step 104, obtain monitoring image according to camera parameters, monitoring image is the current image of guarded region.
After step 103 has been determined camera parameters, adjust described shooting angle or the focal length of PTZ ball machine according to different camera parameters, and obtain the image of current monitored area.
The method of the image acquisition that the embodiment of the present invention provides, can be at the operation box that shows current monitor area in panorama sketch, and camera parameters is determined in operation instruction operation box being triggered according to user, obtains the image of guarded region according to camera parameters.In prior art, need the image in the current monitoring range of panoramic camera Dynamic Acquisition, when diverse location carries out part amplification in to image, need different PTZ ball machines amplify processing, the equipment number of units of use is many, causes watch-dog cost high.The present invention realizes the monitoring to guarded region by a PTZ ball machine, can reduce the cost of watch-dog.Meanwhile, in the present invention, can complete the generation of panoramic pictures by a PTZ ball machine, and can in panoramic pictures, show the position of current shooting region in coverage, be convenient to user and shift to an earlier date anticipation and whether arrive coverage border.The enlarging function of the PTZ ball machine only utilizing in prior art, and underuse its rotating function, the present invention is the measuring range using the maximum rotation scope of PTZ ball machine as formation panoramic pictures in the time forming panoramic pictures, make full use of the rotating function of PTZ ball machine, simultaneously according to user's operation instruction adjusting focal length, utilize the zoom function of PTZ ball machine, and then improved the service efficiency of PTZ ball machine.
The embodiment of the present invention also provides the method for another kind of image acquisition, for method described in key diagram 1, and the concrete generation step of panoramic pictures, as shown in Figure 2, before step 101, described method also comprises:
Step 201, obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum.
Different PTZ ball machines, the rotation having scheduling is not quite similar.PTZ ball machine taking the maximum described shooting angle of level as 270 degree is as example: PTZ ball machine is the process moving to maximum described shooting angle (270 degree) from the described shooting angle of minimum (0 degree), obtain the continuous picture of guarded region according to default focal length, by the splicing to continuous picture, can obtain panoramic pictures.
Concrete, as shown in Figure 3, step 201 comprises:
Step 301, obtain the described shooting angle of maximum of horizontal direction and the described shooting angle of maximum of vertical direction.
Step 302, according to the described shooting angle of the maximum of horizontal direction, monitoring range is scanned according to default focal length, obtain horizontal pictures, the picture that horizontal pictures comprise at least one width guarded region in horizontal direction.
Step 303, according to the described shooting angle of the maximum of vertical direction, monitoring range is scanned according to default focal length, obtain vertical pictures, the picture that vertical pictures comprise at least one width guarded region in vertical direction.
In the described shooting angle of maximum (90 spend) of the described shooting angle of the maximum that gets horizontal direction (270 degree) and vertical direction afterwards, rotate to the described shooting angle of maximum (270 degree or 90 are spent) from the described shooting angle of minimum (0 degree) in the horizontal direction with in vertical direction respectively, and get the picture (pictures continuously) of continuous guarded region.Step 302 and step 303 part front and back, as long as continuous picture is concentrated the picture that can comprise in whole monitoring ranges, picture concentrates each picture can have overlapping part continuously.Optionally, first the described shooting angle of vertical direction (0 degree) is constant, obtain the continuous picture of 0-270 degree, secondly the described shooting angle of change vertical direction (5 degree), again obtain the continuous picture of 0-270 degree, until the described shooting angle of vertical direction is 90 while spending and obtain in this angle, in horizontal direction, the continuous picture of 0-270 degree, finishes obtaining of continuous picture.
It should be noted that, because PTZ ball facility have zoom function, can make a video recording according to different focal lengths, therefore use default focal length to obtain above-mentioned vertical pictures and horizontal pictures.Optionally, default focal length is the median (as 50) in the focal range interval (as 0-100) that can realize of PTZ ball machine.
Step 202, generate panoramic pictures according to the picture of at least one width guarded region.
After step 303, step 202 comprises:
Step 304, according to horizontal pictures and vertical pictures, generate panoramic pictures.
In prior art, provide the continuous picture to thering is overlapping content to synthesize, generated the technical scheme of panoramic pictures, repeated no more herein.
Step 203, position according to the picture of at least one width guarded region in panoramic pictures and the described shooting angle while obtaining picture, generate preset relation table, and preset relation table is also for recording the default focal length using while generating panoramic pictures.
In preset relation table, can also record the default focal length using in step 202.In the time obtaining the picture of described at least one width guarded region, PTZ ball machine in different described shooting angle.In step 203, different described shooting angle is carried out associated with the coordinate position in the panoramic pictures generating according to the picture of at least one width guarded region.Those skilled in the art can learn, PTZ ball machine, in the time making a video recording, can replace with optical axis direction the shooting direction of PTZ ball machine, and the diverse location point on optical axis is corresponding to different focal lengths.In step 202, in the time of optical axis pointing space coordinate (1,1), obtain picture Pic1-1, now the described shooting angle of horizontal direction is 1 degree, and the described shooting angle of vertical direction is 1 degree; In the time of optical axis pointing space coordinate (1,2), obtain picture Pic1-2, now the described shooting angle of horizontal direction is 1 degree, the described shooting angle of vertical direction is 2 degree; In the time of optical axis pointing space coordinate (2,1), obtain picture Pic2-1, now the described shooting angle of horizontal direction is 2 degree, the described shooting angle of vertical direction is 1 degree; In the time of optical axis pointing space coordinate (2,2), obtain picture Pic2-2, now the described shooting angle of horizontal direction is 2 degree, the described shooting angle of vertical direction is 2 degree.By that analogy, can obtain the set of the picture of at least one width guarded region: { Pic1-1, Pic1-2 ... Pic1-N, Pic2-1, Pic2-2 ... Pic2-N, PicM-1, PicM-2 ... PicM-N}.The set of the described shooting angle corresponding with the set of the picture of this at least one width guarded region is: { (1 °, 1 °), (1 °, 2 °) ... (1 °, 270 °), (2 °, 1 °), (2 °, 2 °) ... (2 °, 270 °), (90 °, 1 °), (90 °, 2 °) ... (90 °, 270 °) }, wherein, with (2 °, 1 °) for, it is for representing that the described shooting angle of horizontal direction is 2 °, and the described shooting angle of vertical direction is 1 °.Above-mentioned two set records are in default mapping table.
It should be noted that, in default mapping table, can also preserve the formula of the corresponding relation of operation box coordinate (x, y) and described shooting angle (a °, b °), the center point coordinate that wherein operation box coordinate is operation box.Optionally, described formula is: a °=(x/X) * A, b °=(y/Y) * B, wherein: X is the maximum coordinates value of panoramic pictures horizontal direction, Y is the maximum coordinates value of panoramic pictures vertical direction, A is the described shooting angle of maximum of PTZ ball machine horizontal direction, and B is the described shooting angle of maximum of PTZ ball machine vertical direction.
Further, in default mapping table, can also be recorded in the accessible boundary that shows focus in described panoramic pictures, described accessible boundary is for representing the maximum magnitude that optical axis can rotate.In the time showing panoramic picture, as shown in Figure 4, the position range of focus (being optical axis) is shown on screen.Now, user can learn the space of rotating that whether also has of PTZ ball machine by the position of observation optical axis.
The method of the image acquisition that the embodiment of the present invention provides, can be by obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum, and generate panoramic pictures and default mapping table according to the picture of described at least one width guarded region.Default mapping table can carry out the position of operation box and the described shooting angle of backstage PTZ ball machine and focal length in the panoramic pictures of foreground demonstration associated, ensures the realizability of user's operation.
The embodiment of the present invention also provides the method for another kind of image acquisition, and as the specific descriptions to method shown in Fig. 1, as shown in Figure 5, step 102 comprises:
The mobile instruction that step 501, reception user trigger operation box, mobile position of indicating for move operation frame.
Step 103 comprises:
Step 502, from preset relation table, determine described shooting angle according to mobile instruction and operation box coordinate.
Concrete, as shown in Figure 6, step 502 comprises:
Step 601, obtain the center point coordinate of operation box, the geometric center that central point is operation box.
Step 602, from mobile instruction, obtain offset vector.
Step 603, according to center point coordinate and offset vector, calculate Mobility Center point coordinates, Mobility Center point coordinates is for representing the coordinate of central point of the operation box after mobile.
Step 604, from preset relation table, search the described shooting angle corresponding with Mobility Center point coordinates.
In the time that user moves operation box, will trigger mobile instruction.From mobile instruction, motion-vector can be got, the position offset of operation box can be determined according to motion-vector.Center point coordinate before movement and position offset are added, can obtain the center point coordinate of the operation box after moving.As shown in Figure 7, the center point coordinate before movement is (1,3), the position offset that offset vector is corresponding is (3 ,-2), and above-mentioned two coordinates are added, obtain center point coordinate (1+3,3-2)=(4,1) after moving.Then, from preset relation table, find out the described shooting angle corresponding with (4,1).
The embodiment of the present invention also provides the method for another kind of image acquisition, and as the specific descriptions to method shown in Fig. 1, as shown in Figure 8, step 102 also comprises:
The convergent-divergent instruction that step 801, reception user trigger operation box, convergent-divergent instruction is for regulating the size of described operation box.
Step 103 also comprises:
Step 802, from preset relation table, determine focal length according to convergent-divergent instruction.
Concrete, as shown in Figure 9, step 802 comprises:
Step 901, obtain the distance d1 between predeterminated position point in center point coordinate and current operation frame.
Step 902, obtain the distance d2 between predeterminated position point in the operation box after center point coordinate and convergent-divergent.
Step 903, according to the default focal length recording in d1, d2 and preset relation table, calculate the focal length after convergent-divergent.
In the time that user adjusts the size of operation box, trigger convergent-divergent instruction.The default size of operation box is corresponding focal length when obtaining panoramic pictures.For example: while generating panoramic pictures, be made up of the set of the picture of described at least one width guarded region the picture of 4 width guarded regions, now operation box is of a size of the size of the picture of a width guarded region.Because operation box length and focal length are inversely proportional to, therefore can turn round and look at by the ratio of d1 and d2 the focal length obtaining after convergent-divergent instruction is adjusted.Optionally, according to d1, d2 and default focal distance f calculate focal distance f after convergent-divergent ' formula be: f '=(d2/d1) * f.If after the instruction of convergent-divergent for the first time, again adjust the size of operation box, the f ' that can calculate according to the last time and the focal length of f ' correspondence are further determined the focal distance f after adjustment again ", f "=(d2/d1) * f '.
The method of the image acquisition that the embodiment of the present invention provides, in the time receiving mobile instruction, can determine the operation box position after moving according to mobile instruction, and determine the described shooting angle of PTZ ball machine according to preset relation table, and then realize according to user and indicate the human-computer interaction function of adjusting described shooting angle.
Further, the embodiment of the present invention also provides a kind of method of image acquisition, and as to the further illustrating of method shown in Fig. 1, described method also comprises:
In the time that the geometric center point of operation box and the distance of described accessible boundary are less than predeterminable range, output information, described information is for representing that described operation box approaches the border of monitoring range.
Wherein export information and comprise following at least one mode: display reminding information, playing alert tones, carries out vibration prompting according to default vibration frequency.
Wherein, display reminding information, can be display text category information and/or pictorial information, can be also to change the color of operation box frame and/or show operation box border color with flashing mode, can also show the frame of panoramic pictures and/or the border color of change panoramic pictures etc.An aforesaid way conduct illustrates display reminding information, not as the restriction to display reminding information.
Except according to the distance of the geometric center point of operation box and accessible boundary, can also the frame of calculating operation frame and the frame spacing of panoramic pictures frame, when this frame spacing be less than default frame apart from time, export information.
The method of the image acquisition that the embodiment of the present invention provides, can be in the time that operation box arrives predeterminated position, and output information reaches the edge of pointing out user's current monitored area to arrive monitoring range, so that user adjusts, prevents that monitoring objective quilt is with losing.In the time receiving convergent-divergent instruction, can determine the focal length after user adjusts according to d1, d2 and default focal length, and then realize and indicate the human-computer interaction function of focusing according to user.
It should be noted that, the technical scheme of described output information is all suitable for the various embodiments described above.In addition, in above-described embodiment, user during to the instruction of described operation box trigger action, can trigger by touch-tone manual input units such as mouses, and the mode that also can receive user's sliding trace by touch-screen triggers.The center point coordinate of operation box and mouse coordinates can be carried out associatedly by the mode of mouse, in the time that mouse moves, trigger mobile instruction, in the time of roller on roll mouse, trigger convergent-divergent instruction.In the time using touch-screen to receive the operation that user triggers: user can trigger mobile instruction by drag operation frame, with the head of a household by operation box frame and adjust operation box sizes by two fingers and can trigger convergent-divergent instruction.
The embodiment of the present invention also provides a kind of device of image acquisition, and described device is arranged in the electronic equipment with PTZ function, described in there is camera function electronic equipment can be any one of following electronic equipment: colour TV camera, B/W camera etc.Below for convenience of description, be described as the electronic equipment that uses the method for the invention using the ball machine (PTZ ball machine) with PTZ function.Described device as shown in figure 10, comprising:
Display unit 1001, for showing the operation box of panoramic pictures and described panoramic pictures, the monitoring range of described panoramic pictures for representing to monitor, described operation box is for representing current guarded region.
Receiving element 1002, the operation instruction triggering for receiving described operation box that user shows described display unit 1001, described operation instruction is for the position of mobile described operation box or regulate the size of described operation box.
Determining unit 1003, determine camera parameters for the described operation instruction receiving according to described receiving element 1002 from preset relation table, described camera parameters comprises shooting angle, the focal length of video camera, and described preset relation table is used for the shooting angle of the position, size and the video camera that record described operation box, the corresponding relation of focal length.
Acquiring unit 1004, obtains monitoring image for the described camera parameters of determining according to described determining unit 1003, and described monitoring image is the current image of described guarded region.
The embodiment of the present invention also provides a kind of device of image acquisition, and described device is as to further illustrating of installing described in Figure 10, and as shown in figure 11, described device also comprises: generation unit 1101 and output unit 1102.
Described acquiring unit 1004 also for, obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum.
Described generation unit 1101, generates described panoramic pictures for the picture of described at least one width guarded region of obtaining according to described acquiring unit 1004;
Described generation unit 1101 also for, position according to the picture of described at least one width guarded region in described panoramic pictures and the described shooting angle while obtaining described picture, generate described preset relation table, described preset relation table also generates for recording the described default focal length using when described panoramic pictures.Described display unit 1001 is the described panoramic pictures for showing that described generation unit 1101 generates also.
Further, described acquiring unit 1004, comprising:
First obtains subelement 41, for obtaining the described shooting angle of maximum of horizontal direction and the described shooting angle of maximum of vertical direction.
Second obtains subelement 42, according to the described first described shooting angle of maximum of obtaining the described horizontal direction that subelement 41 obtains, monitoring range is scanned according to default focal length, obtain horizontal pictures, the picture that described horizontal pictures comprise at least one width guarded region in horizontal direction.
The 3rd obtains subelement 43, according to the described first described shooting angle of maximum of obtaining the described vertical direction that subelement 41 obtains, monitoring range is scanned according to default focal length, obtain vertical pictures, the picture that described vertical pictures comprise at least one width guarded region in vertical direction.
Described generation unit 1101 also for, obtain according to described second the described horizontal pictures that subelement 42 obtains and obtain with the described the 3rd the described vertical pictures that subelement 43 obtains, generate described panoramic pictures.
Further, described receiving element 1002, comprising:
First receives subelement 21, the mobile instruction described operation box being triggered for receiving user, and described mobile instruction is for the position of mobile described operation box.
Described determining unit 1003, comprising:
First determines subelement 31, determines described shooting angle for the described mobile instruction and the operation box coordinate that receive according to described the first reception subelement 21 from described preset relation table.
Further, described first determines subelement 31, comprising:
The first acquisition module 311, for obtaining the center point coordinate of operation box, the geometric center that described central point is described operation box.
The second acquisition module 312, obtains offset vector for the described mobile instruction receiving from described the first reception subelement 21.
The first computing module 313, the described offset vector obtaining for the described center point coordinate that obtains according to described the first acquisition module 311 and described the second acquisition module 312, calculate Mobility Center point coordinates, described Mobility Center point coordinates is used for the coordinate of the central point that represents the operation box after movement.
Search module, search the corresponding described shooting angle of described Mobility Center point coordinates of calculating with described the first computing module 313 for the described preset relation table generating from described generation unit 1101.
Further, described receiving element 1002, also comprises:
Second receives subelement 22, the convergent-divergent instruction described operation box being triggered for receiving user, and described convergent-divergent instruction is for regulating the size of described operation box.
Described determining unit 1003, also comprises:
Second determines subelement 32, receives according to described second described convergent-divergent instruction definite focal length from described preset relation table that subelement 22 receives.
Further, described second determines subelement 32, comprising:
The 3rd acquisition module 321, for obtaining the distance d1 between described center point coordinate and current operation frame predeterminated position point.
The 4th acquisition module 322, for obtaining the distance d2 between predeterminated position point described in the operation box after described center point coordinate and convergent-divergent.
The second computing module 323, the default focal length that the described preset relation table generating for the described d1 that obtains according to described the 3rd acquisition module 321, described d2 that described the 4th acquisition module 322 obtains and described generation unit 1101 records, calculates the focal length after convergent-divergent.
Further, described display unit 1001 also for, in described panoramic pictures, show the accessible boundary of focus, described accessible boundary is for representing the maximum magnitude that optical axis can rotate.
Further, described output unit 1102, in the time that the geometric center point of operation box and the distance of described accessible boundary are less than predeterminable range, output information, described information is for representing that described operation box approaches the border of monitoring range.The geometric center point position of operation box can calculate according to mobile instruction by the first computing module 313.
The device of the image acquisition that the embodiment of the present invention provides, display unit 1001 can be at the operation box that shows current monitor area in panorama sketch, camera parameters is determined in the operation instruction that the user that determining unit 1003 receives according to receiving element 1002 triggers operation box, and acquiring unit 1004 obtains the image of guarded region according to camera parameters.In prior art, need the image in the current monitoring range of panoramic camera Dynamic Acquisition, when diverse location carries out part amplification in to image, need different PTZ ball machines amplify processing, the equipment number of units of use is many, causes watch-dog cost high.The present invention realizes the monitoring to guarded region by a PTZ ball machine, can reduce the cost of watch-dog.Meanwhile, in the present invention, can complete the generation of panoramic pictures by a PTZ ball machine, and can in panoramic pictures, show the position of current shooting region in coverage, be convenient to user and shift to an earlier date anticipation and whether arrive coverage border.The enlarging function of the PTZ ball machine only utilizing in prior art, and underuse its rotating function, the present invention is the measuring range using the maximum rotation scope of PTZ ball machine as formation panoramic pictures in the time forming panoramic pictures, make full use of the rotating function of PTZ ball machine, simultaneously according to user's operation instruction adjusting focal length, utilize the zoom function of PTZ ball machine, and then improved the service efficiency of PTZ ball machine.In addition, the device of the image acquisition that the embodiment of the present invention provides, generation unit 1101 can be by obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum, and generate panoramic pictures and default mapping table according to the picture of described at least one width guarded region.Default mapping table can carry out the position of operation box and the described shooting angle of backstage PTZ ball machine and focal length in the panoramic pictures of foreground demonstration associated, ensures the realizability of user's operation.Further, in the time that the first reception subelement 21 receives mobile instruction, determining unit 1003 can be determined the operation box position after moving according to mobile instruction, and determine the described shooting angle of PTZ ball machine according to preset relation table, and then realize according to user and indicate the human-computer interaction function of adjusting described shooting angle.Output unit 1102 can be in the time that operation box arrives predeterminated position, and output information reaches the edge of pointing out user's current monitored area to arrive monitoring range, so that user adjusts, prevents that monitoring objective quilt is with losing.In the time that the second reception subelement 22 receives convergent-divergent instruction, determining unit 1003 can be determined the focal length after user adjusts according to d1, d2 and default focal length, and then realizes and indicate the human-computer interaction function of focusing according to user.
The embodiment of the present invention also provides a kind of device of image acquisition, as shown in figure 12, comprising:
Display 1201, for showing the operation box of panoramic pictures and described panoramic pictures, the monitoring range of described panoramic pictures for representing to monitor, described operation box is for representing current guarded region.
Receiver 1202, the operation instruction triggering for receiving described operation box that user shows described display 1201, described operation instruction is for the position of mobile described operation box or regulate the size of described operation box.
Processor 1203, determine camera parameters for the described operation instruction receiving according to described receiver 1202 from preset relation table, described camera parameters comprises shooting angle, the focal length of video camera, and described preset relation table is used for the shooting angle of the position, size and the video camera that record described operation box, the corresponding relation of focal length.
Photoreceptor 1204, obtains monitoring image for the described camera parameters of determining according to described processor 1203, and described monitoring image is the current image of described guarded region.
The embodiment of the present invention also provides a kind of device of image acquisition, and described device is as to further illustrating of installing described in Figure 12, and described device also comprises player 1205.
Described photoreceptor 1204 also for, obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum.
Described processor 1203, generates described panoramic pictures for the picture of described at least one width guarded region of obtaining according to described photoreceptor 1204;
Described processor 1203 also for, position according to the picture of described at least one width guarded region in described panoramic pictures and the described shooting angle while obtaining described picture, generate described preset relation table, described preset relation table also generates for recording the described default focal length using when described panoramic pictures.
Further, described photoreceptor 1204, also for:
Obtain the described shooting angle of maximum of horizontal direction and the described shooting angle of maximum of vertical direction.
According to the described shooting angle of the maximum of described horizontal direction, monitoring range is scanned according to default focal length, obtain horizontal pictures, the picture that described horizontal pictures comprise at least one width guarded region in horizontal direction.
According to the described shooting angle of the maximum of described vertical direction, monitoring range is scanned according to default focal length, obtain vertical pictures, the picture that described vertical pictures comprise at least one width guarded region in vertical direction.
Described processor 1203 also for, according to described horizontal pictures and described vertical pictures, generate described panoramic pictures.
Further, described receiver 1202 also for:
Receive the mobile instruction that user triggers described operation box, described mobile instruction is for the position of mobile described operation box.
Described processor 1203 is also for, the described mobile instruction receiving according to described receiver 1202 and operation box coordinate definite described shooting angle from described preset relation table.
Further, described processor 1203 also for:
Obtain the center point coordinate of operation box, the geometric center that described central point is described operation box.
From described mobile instruction, obtain offset vector.
According to described center point coordinate and described offset vector, calculate Mobility Center point coordinates, described Mobility Center point coordinates is used for the coordinate of the central point that represents the operation box after movement.
From described preset relation table, search the described shooting angle corresponding with described Mobility Center point coordinates.
Further, described receiver 1202, the convergent-divergent instruction also for receiving user, described operation box being triggered, described convergent-divergent instruction is for regulating the size of described operation box.
Described processor 1203, also for, focal length is determined in the described convergent-divergent instruction receiving according to described receiver 1202 from described preset relation table.
Further, described processor 1203 also for:
Obtain the distance d1 between predeterminated position point in described center point coordinate and current operation frame.
Obtain the distance d2 between predeterminated position point described in the operation box after described center point coordinate and convergent-divergent.
According to the default focal length recording in described d1, described d2 and described preset relation table, calculate the focal length after convergent-divergent.
Further, described display 1201 also for, in described panoramic pictures, show the accessible boundary of focus, described accessible boundary is for representing the maximum magnitude that optical axis can rotate.
Further, described player 1205, in the time that the geometric center point of operation box and the distance of described accessible boundary are less than predeterminable range, output information, described information is for representing that described operation box approaches the border of monitoring range.
The device of the image acquisition that the embodiment of the present invention provides, display 1201 can be at the operation box that shows current monitor area in panorama sketch, camera parameters is determined in the operation instruction that the user that processor 1203 receives according to receiver 1202 triggers operation box, and photoreceptor 1204 obtains the image of guarded region according to camera parameters.In prior art, need the image in the current monitoring range of panoramic camera Dynamic Acquisition, when diverse location carries out part amplification in to image, need different PTZ ball machines amplify processing, the equipment number of units of use is many, causes watch-dog cost high.The present invention realizes the monitoring to guarded region by a PTZ ball machine, can reduce the cost of watch-dog.Meanwhile, in the present invention, can complete the generation of panoramic pictures by a PTZ ball machine, and can in panoramic pictures, show the position of current shooting region in coverage, be convenient to user and shift to an earlier date anticipation and whether arrive coverage border.The enlarging function of the PTZ ball machine only utilizing in prior art, and underuse its rotating function, the present invention is the measuring range using the maximum rotation scope of PTZ ball machine as formation panoramic pictures in the time forming panoramic pictures, make full use of the rotating function of PTZ ball machine, simultaneously according to user's operation instruction adjusting focal length, utilize the zoom function of PTZ ball machine, and then improved the service efficiency of PTZ ball machine.In addition, the device of the image acquisition that the embodiment of the present invention provides, processor 1203 can be by obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum, and generate panoramic pictures and default mapping table according to the picture of described at least one width guarded region.Default mapping table can carry out the position of operation box and the described shooting angle of backstage PTZ ball machine and focal length in the panoramic pictures of foreground demonstration associated, ensures the realizability of user's operation.Further, in the time that receiver 1202 receives mobile instruction, processor 1203 can be determined the operation box position after moving according to mobile instruction, and determine the described shooting angle of PTZ ball machine according to preset relation table, and then realize according to user and indicate the human-computer interaction function of adjusting described shooting angle.Player 1205 can be in the time that operation box arrives predeterminated position, and output information reaches the edge of pointing out user's current monitored area to arrive monitoring range, so that user adjusts, prevents that monitoring objective quilt is with losing.In the time that receiver 1202 receives convergent-divergent instruction, processor 1203 can be determined the focal length after user adjusts according to d1, d2 and default focal length, and then realizes and indicate the human-computer interaction function of focusing according to user.
The embodiment of the present invention also provides a kind of computer program, comprises computer-readable medium, and described computer-readable medium comprises batch processing code, and described batch processing code is for the method shown in any width of execution graph 1 to Fig. 9.
As shown in figure 13, the system of image acquisition, comprises display module 1301, photographing module 1302, memory module 1303, input/output module 1304 and processing module 1305 to described computer program, and this group program code is for carrying out the function of above-mentioned module.
Display module 1301, for showing the operation box of panoramic pictures and described panoramic pictures, the monitoring range of described panoramic pictures for representing to monitor, described operation box is for representing current guarded region.
Input/output module 1304, the operation instruction triggering for receiving described operation box that user shows described display module 1301, described operation instruction is for the position of mobile described operation box or regulate the size of described operation box.
Processing module 1305, determine camera parameters for the described operation instruction receiving according to described input/output module 1304 from preset relation table, described camera parameters comprises shooting angle, the focal length of video camera, and described preset relation table is used for the shooting angle of the position, size and the video camera that record described operation box, the corresponding relation of focal length.
Photographing module 1302, obtains monitoring image for the described camera parameters of determining according to described processing module 1305, and described monitoring image is the current image of described guarded region.
Described photographing module 1302 also for, obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum.
Described processing module 1305, generates described panoramic pictures for the picture of described at least one width guarded region of obtaining according to described photographing module 1302;
Described processing module 1305 also for, position according to the picture of described at least one width guarded region in described panoramic pictures and the described shooting angle while obtaining described picture, generate described preset relation table, described preset relation table also generates for recording the described default focal length using when described panoramic pictures.
Further, described photographing module 1302, also for:
Obtain the described shooting angle of maximum of horizontal direction and the described shooting angle of maximum of vertical direction.
According to the described shooting angle of the maximum of described horizontal direction, monitoring range is scanned according to default focal length, obtain horizontal pictures, the picture that described horizontal pictures comprise at least one width guarded region in horizontal direction.
According to the described shooting angle of the maximum of described vertical direction, monitoring range is scanned according to default focal length, obtain vertical pictures, the picture that described vertical pictures comprise at least one width guarded region in vertical direction.
Described processing module 1305 also for, according to described horizontal pictures and described vertical pictures, generate described panoramic pictures.
Further, described input/output module 1304 also for:
Receive the mobile instruction that user triggers described operation box, described mobile instruction is for the position of mobile described operation box.
Described processing module 1305 is also for, the described mobile instruction receiving according to described input/output module 1304 and operation box coordinate definite described shooting angle from described preset relation table.
Further, described processing module 1305 also for:
Obtain the center point coordinate of operation box, the geometric center that described central point is described operation box.
From described mobile instruction, obtain offset vector.
According to described center point coordinate and described offset vector, calculate Mobility Center point coordinates, described Mobility Center point coordinates is used for the coordinate of the central point that represents the operation box after movement.
From described preset relation table, search the described shooting angle corresponding with described Mobility Center point coordinates.
Further, described input/output module 1304, the convergent-divergent instruction also for receiving user, described operation box being triggered, described convergent-divergent instruction is for regulating the size of described operation box.
Described processing module 1305, also for, focal length is determined in the described convergent-divergent instruction receiving according to described input/output module 1304 from described preset relation table.
Further, described processing module 1305 also for:
Obtain the distance d1 between predeterminated position point in described center point coordinate and current operation frame.
Obtain the distance d2 between predeterminated position point described in the operation box after described center point coordinate and convergent-divergent.
According to the default focal length recording in described d1, described d2 and described preset relation table, calculate the focal length after convergent-divergent.
Further, described display module 1301 also for, in described panoramic pictures, show the accessible boundary of focus, described accessible boundary is for representing the maximum magnitude that optical axis can rotate.
Further, described input/output module 1304, in the time that the geometric center point of operation box and the distance of described accessible boundary are less than predeterminable range, output information, described information is for representing that described operation box approaches the border of monitoring range.
The device of the image acquisition that the embodiment of the present invention provides, display module 1301 can be at the operation box that shows current monitor area in panorama sketch, camera parameters is determined in the operation instruction that the user that processing module 1305 receives according to input/output module 1304 triggers operation box, and photographing module 1302 obtains the image of guarded region according to camera parameters.In prior art, need the image in the current monitoring range of panoramic camera Dynamic Acquisition, when diverse location carries out part amplification in to image, need different PTZ ball machines amplify processing, the equipment number of units of use is many, causes watch-dog cost high.The present invention realizes the monitoring to guarded region by a PTZ ball machine, can reduce the cost of watch-dog.Meanwhile, in the present invention, can complete the generation of panoramic pictures by a PTZ ball machine, and can in panoramic pictures, show the position of current shooting region in coverage, be convenient to user and shift to an earlier date anticipation and whether arrive coverage border.The enlarging function of the PTZ ball machine only utilizing in prior art, and underuse its rotating function, the present invention is the measuring range using the maximum rotation scope of PTZ ball machine as formation panoramic pictures in the time forming panoramic pictures, make full use of the rotating function of PTZ ball machine, simultaneously according to user's operation instruction adjusting focal length, utilize the zoom function of PTZ ball machine, and then improved the service efficiency of PTZ ball machine.In addition, the device of the image acquisition that the embodiment of the present invention provides, processing module 1305 can be by obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum, and generate panoramic pictures and default mapping table according to the picture of described at least one width guarded region.Default mapping table can carry out the position of operation box and the described shooting angle of backstage PTZ ball machine and focal length in the panoramic pictures of foreground demonstration associated, ensures the realizability of user's operation.Further, in the time that input/output module 1304 receives mobile instruction, processing module 1305 can be determined the operation box position after moving according to mobile instruction, and determine the described shooting angle of PTZ ball machine according to preset relation table, and then realize according to user and indicate the human-computer interaction function of adjusting described shooting angle.Input/output module 1304 can be in the time that operation box arrives predeterminated position, and output information reaches the edge of pointing out user's current monitored area to arrive monitoring range, so that user adjusts, prevents that monitoring objective quilt is with losing.In the time that input/output module 1304 receives convergent-divergent instruction, processing module 1305 can be determined the focal length after user adjusts according to d1, d2 and default focal length, and then realizes and indicate the human-computer interaction function of focusing according to user.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the internal structure of device, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, when actual realization, can have other dividing mode, for example multiple unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a computer read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) or processor (proces sor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (19)

1. a method for image acquisition, is characterized in that, comprising:
Show the operation box in panoramic pictures and described panoramic pictures, the monitoring range of described panoramic pictures for representing to monitor, described operation box is for representing current guarded region;
Receive the operation instruction that user triggers described operation box, described operation instruction is used for the position of mobile described operation box or regulates the size of described operation box;
From preset relation table, determine camera parameters according to described operation instruction, described camera parameters comprises shooting angle, the focal length of video camera, and described preset relation table is used for the shooting angle of the position, size and the video camera that record described operation box, the corresponding relation of focal length;
Obtain monitoring image according to described camera parameters, described monitoring image is the current image of described guarded region.
2. the method for image acquisition according to claim 1, is characterized in that, before the operation box in described demonstration panoramic pictures and described panoramic pictures, described method also comprises:
Obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum;
Generate described panoramic pictures according to the picture of described at least one width guarded region;
Position according to the picture of described at least one width guarded region in described panoramic pictures and the described shooting angle while obtaining described picture, generate described preset relation table, described preset relation table also generates for recording the described default focal length using when described panoramic pictures.
3. the method for image acquisition according to claim 2, is characterized in that, the described picture that obtains at least one width guarded region according to the described shooting angle of maximum according to default focal length, comprising:
Obtain the described shooting angle of maximum of horizontal direction and the described shooting angle of maximum of vertical direction;
According to the described shooting angle of the maximum of described horizontal direction, monitoring range is scanned according to default focal length, obtain horizontal pictures, the picture that described horizontal pictures comprise at least one width guarded region in horizontal direction;
According to the described shooting angle of the maximum of described vertical direction, monitoring range is scanned according to default focal length, obtain vertical pictures, the picture that described vertical pictures comprise at least one width guarded region in vertical direction;
The described picture according to described at least one width guarded region generates described panoramic pictures, comprising:
According to described horizontal pictures and described vertical pictures, generate described panoramic pictures.
4. the method for image acquisition according to claim 1, is characterized in that, the operation instruction that described reception user triggers described operation box, comprising:
Receive the mobile instruction that user triggers described operation box, described mobile instruction is for the position of mobile described operation box;
Described according to described operation instruction definite camera parameters from preset relation table, comprising:
From described preset relation table, determine described shooting angle according to described mobile instruction and operation box coordinate.
5. the method for image acquisition according to claim 4, is characterized in that, described according to described mobile instruction and operation box coordinate definite described shooting angle from described preset relation table, comprising:
Obtain the center point coordinate of operation box, the geometric center that described central point is described operation box;
From described mobile instruction, obtain offset vector;
According to described center point coordinate and described offset vector, calculate Mobility Center point coordinates, described Mobility Center point coordinates is used for the coordinate of the central point that represents the operation box after movement;
From described preset relation table, search the described shooting angle corresponding with described Mobility Center point coordinates.
6. the method for image acquisition according to claim 5, is characterized in that, the operation instruction that described reception user triggers described operation box, comprising:
Receive the convergent-divergent instruction that user triggers described operation box, described convergent-divergent instruction is for regulating the size of described operation box;
Described according to described operation instruction definite camera parameters from preset relation table, comprising:
From described preset relation table, determine focal length according to described convergent-divergent instruction.
7. the method for image acquisition according to claim 6, is characterized in that, described according to described convergent-divergent instruction definite focal length from described preset relation table, comprising:
Obtain the distance d1 between predeterminated position point in described center point coordinate and current operation frame;
Obtain the distance d2 between predeterminated position point described in the operation box after described center point coordinate and convergent-divergent;
According to the default focal length recording in described d1, described d2 and described preset relation table, calculate the focal length after convergent-divergent.
8. according to the method for the image acquisition described in any one in claim 1 to 7, it is characterized in that, the operation box in described demonstration panoramic pictures and described panoramic pictures, comprising:
In described panoramic pictures, show the accessible boundary of focus, described accessible boundary is for representing the maximum magnitude that optical axis can rotate.
9. the method for image acquisition according to claim 8, is characterized in that, described method also comprises:
In the time that the geometric center point of operation box and the distance of described accessible boundary are less than predeterminable range, output information, described information is for representing that described operation box approaches the border of monitoring range.
10. a device for image acquisition, is characterized in that, comprising:
Display unit, for showing the operation box of panoramic pictures and described panoramic pictures, the monitoring range of described panoramic pictures for representing to monitor, described operation box is for representing current guarded region;
Receiving element, the operation instruction described operation box of described display unit demonstration being triggered for receiving user, the size that described operation instruction is used for moving the position of described operation box or regulates described operation box;
Determining unit, determine camera parameters for the described operation instruction receiving according to described receiving element from preset relation table, described camera parameters comprises shooting angle, the focal length of video camera, and described preset relation table is used for the shooting angle of the position, size and the video camera that record described operation box, the corresponding relation of focal length;
Acquiring unit, obtains monitoring image for the described camera parameters of determining according to described determining unit, and described monitoring image is the current image of described guarded region.
The device of 11. image acquisition according to claim 10, is characterized in that,
Described acquiring unit also for, obtain the picture of at least one width guarded region according to default focal length according to the described shooting angle of maximum;
Described device also comprises:
Generation unit, generates described panoramic pictures for the picture of described at least one width guarded region of obtaining according to described acquiring unit;
Described generation unit also for, position according to the picture of described at least one width guarded region in described panoramic pictures and the described shooting angle while obtaining described picture, generate described preset relation table, described preset relation table also generates for recording the described default focal length using when described panoramic pictures.
The device of 12. image acquisition according to claim 11, is characterized in that, described acquiring unit, comprising:
First obtains subelement, for obtaining the described shooting angle of maximum of horizontal direction and the described shooting angle of maximum of vertical direction;
Second obtains subelement, according to the described first described shooting angle of maximum of obtaining the described horizontal direction that subelement obtains, monitoring range is scanned according to default focal length, obtain horizontal pictures, the picture that described horizontal pictures comprise at least one width guarded region in horizontal direction;
The 3rd obtains subelement, according to described first obtaining the described shooting angle of the maximum according to described vertical direction that subelement obtains, according to default focal length, monitoring range being scanned, obtain vertical pictures, the picture that described vertical pictures comprise at least one width guarded region in vertical direction;
Described generation unit also for, obtain according to described second the described horizontal pictures that subelement obtains and obtain with the described the 3rd the described vertical pictures that subelement obtains, generate described panoramic pictures.
The device of 13. image acquisition according to claim 11, is characterized in that, described receiving element, comprising:
First receives subelement, the mobile instruction described operation box being triggered for receiving user, and described mobile instruction is for the position of mobile described operation box;
Described determining unit, comprising:
First determines subelement, for determining described shooting angle according to the described first described mobile instruction and operation box coordinate that receives subelement reception from described preset relation table.
The device of 14. image acquisition according to claim 13, is characterized in that, described first determines subelement, comprising:
The first acquisition module, for obtaining the center point coordinate of operation box, the geometric center that described central point is described operation box;
The second acquisition module, for obtaining offset vector from the described first described mobile instruction that receives subelement reception;
The first computing module, the described offset vector obtaining for the described center point coordinate that obtains according to described the first acquisition module and described the second acquisition module, calculate Mobility Center point coordinates, described Mobility Center point coordinates is used for the coordinate of the central point that represents the operation box after movement;
Search module, search the corresponding described shooting angle of described Mobility Center point coordinates of calculating with described the first computing module for the described preset relation table generating from described generation unit.
The device of 15. image acquisition according to claim 14, is characterized in that, described receiving element, also comprises:
Second receives subelement, the convergent-divergent instruction described operation box being triggered for receiving user, and described convergent-divergent instruction is for regulating the size of described operation box;
Described determining unit, also comprises:
Second determines subelement, receives according to described second described convergent-divergent instruction definite focal length from described preset relation table that subelement receives.
The device of 16. image acquisition according to claim 15, is characterized in that, described second determines subelement, comprising:
The 3rd acquisition module, for obtaining the distance d1 between described center point coordinate and current operation frame predeterminated position point;
The 4th acquisition module, for obtaining the distance d2 between predeterminated position point described in the operation box after described center point coordinate and convergent-divergent;
The second computing module, the default focal length that the described preset relation table that the described d2 obtaining for the described d1 obtaining according to described the 3rd acquisition module, described the 4th acquisition module and described generation unit generate records, calculates the focal length after convergent-divergent.
17. devices according to claim 10 to the image acquisition described in any one in 16, it is characterized in that, described display unit also for, in described panoramic pictures, show the accessible boundary of focus, described accessible boundary is for representing the maximum magnitude that optical axis can rotate.
The device of 18. image acquisition according to claim 17, is characterized in that, described device also comprises:
Output unit, in the time that the geometric center point of operation box and the distance of described accessible boundary are less than predeterminable range, output information, described information is for representing that described operation box approaches the border of monitoring range.
19. 1 kinds of computer programs, comprise computer-readable medium, and described computer-readable medium comprises batch processing code, it is characterized in that, described batch processing code is for executing claims the method described in 1 to 9 any one.
CN201310202005.8A 2013-05-27 2013-05-27 The method and device of image acquisition Active CN104184985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310202005.8A CN104184985B (en) 2013-05-27 2013-05-27 The method and device of image acquisition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310202005.8A CN104184985B (en) 2013-05-27 2013-05-27 The method and device of image acquisition

Publications (2)

Publication Number Publication Date
CN104184985A true CN104184985A (en) 2014-12-03
CN104184985B CN104184985B (en) 2018-05-29

Family

ID=51965685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310202005.8A Active CN104184985B (en) 2013-05-27 2013-05-27 The method and device of image acquisition

Country Status (1)

Country Link
CN (1) CN104184985B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872377A (en) * 2016-04-14 2016-08-17 深圳天珑无线科技有限公司 Panoramic photographed image filling method capable of automatically reducing focal length
CN105898228A (en) * 2016-04-29 2016-08-24 北京小米移动软件有限公司 Control method and device for camera equipment
CN107277362A (en) * 2017-07-20 2017-10-20 三星半导体(中国)研究开发有限公司 Method and apparatus for generating high-definition image
CN107370945A (en) * 2017-07-25 2017-11-21 广东虹勤通讯技术有限公司 A kind of camera control method and shooting head controlling device
CN107925713A (en) * 2015-08-26 2018-04-17 富士胶片株式会社 Camera system and camera shooting control method
CN110361092A (en) * 2018-04-11 2019-10-22 杭州海康威视数字技术股份有限公司 A kind of method for registering images, device and thermal imaging camera
CN110505400A (en) * 2019-08-16 2019-11-26 维沃移动通信有限公司 A kind of preview image display adjusting method and terminal
CN111277886A (en) * 2018-11-16 2020-06-12 北京字节跳动网络技术有限公司 Panoramic video view field control method and device, electronic equipment and storage medium
CN111629141A (en) * 2019-02-27 2020-09-04 杭州海康威视数字技术股份有限公司 Camera, focus control method and focus control device
CN111741323A (en) * 2020-08-14 2020-10-02 广州盈可视电子科技有限公司 Live broadcast picture display method and device
CN112243106A (en) * 2019-07-17 2021-01-19 杭州海康威视数字技术股份有限公司 Target monitoring method, device and equipment and storage medium
CN114040104A (en) * 2021-11-16 2022-02-11 北京筑梦园科技有限公司 Equipment debugging method and device and parking management system
CN115242969A (en) * 2022-06-22 2022-10-25 天翼数字生活科技有限公司 Method and system for controlling rotation of network camera
WO2023284358A1 (en) * 2021-07-16 2023-01-19 北京迈格威科技有限公司 Camera calibration method and apparatus, electronic device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0737005A1 (en) * 1995-04-07 1996-10-09 Canon Kabushiki Kaisha Camera control method and apparatus
US20010040636A1 (en) * 1994-11-17 2001-11-15 Eiji Kato Camera control and display device using graphical user interface
US6624846B1 (en) * 1997-07-18 2003-09-23 Interval Research Corporation Visual user interface for use in controlling the interaction of a device with a spatial region
CN1960479A (en) * 2005-11-03 2007-05-09 中国科学院自动化研究所 Method for tracking principal and subordinate videos by using single video camera
CN101404726A (en) * 2008-10-20 2009-04-08 深圳华为通信技术有限公司 Control method, system and apparatus for far-end camera
US20090115841A1 (en) * 1997-04-21 2009-05-07 Masakazu Koyanagi Controller For Photographing Apparatus And Photographing System

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010040636A1 (en) * 1994-11-17 2001-11-15 Eiji Kato Camera control and display device using graphical user interface
EP0737005A1 (en) * 1995-04-07 1996-10-09 Canon Kabushiki Kaisha Camera control method and apparatus
US20090115841A1 (en) * 1997-04-21 2009-05-07 Masakazu Koyanagi Controller For Photographing Apparatus And Photographing System
US6624846B1 (en) * 1997-07-18 2003-09-23 Interval Research Corporation Visual user interface for use in controlling the interaction of a device with a spatial region
CN1960479A (en) * 2005-11-03 2007-05-09 中国科学院自动化研究所 Method for tracking principal and subordinate videos by using single video camera
CN101404726A (en) * 2008-10-20 2009-04-08 深圳华为通信技术有限公司 Control method, system and apparatus for far-end camera

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107925713A (en) * 2015-08-26 2018-04-17 富士胶片株式会社 Camera system and camera shooting control method
CN107925713B (en) * 2015-08-26 2020-05-08 富士胶片株式会社 Image pickup system and image pickup control method
CN105872377B (en) * 2016-04-14 2019-09-17 南京买简信息科技有限公司 Can auto zoom focal length the panoramic shooting method that fills image
CN105872377A (en) * 2016-04-14 2016-08-17 深圳天珑无线科技有限公司 Panoramic photographed image filling method capable of automatically reducing focal length
CN105898228A (en) * 2016-04-29 2016-08-24 北京小米移动软件有限公司 Control method and device for camera equipment
CN107277362A (en) * 2017-07-20 2017-10-20 三星半导体(中国)研究开发有限公司 Method and apparatus for generating high-definition image
CN107370945A (en) * 2017-07-25 2017-11-21 广东虹勤通讯技术有限公司 A kind of camera control method and shooting head controlling device
CN110361092B (en) * 2018-04-11 2020-12-18 杭州海康微影传感科技有限公司 Image registration method and device and thermal imaging camera
CN110361092A (en) * 2018-04-11 2019-10-22 杭州海康威视数字技术股份有限公司 A kind of method for registering images, device and thermal imaging camera
CN111277886B (en) * 2018-11-16 2022-10-28 北京字节跳动网络技术有限公司 Panoramic video view field control method and device, electronic equipment and storage medium
CN111277886A (en) * 2018-11-16 2020-06-12 北京字节跳动网络技术有限公司 Panoramic video view field control method and device, electronic equipment and storage medium
CN111629141A (en) * 2019-02-27 2020-09-04 杭州海康威视数字技术股份有限公司 Camera, focus control method and focus control device
CN111629141B (en) * 2019-02-27 2023-04-18 杭州海康威视数字技术股份有限公司 Video camera
CN112243106A (en) * 2019-07-17 2021-01-19 杭州海康威视数字技术股份有限公司 Target monitoring method, device and equipment and storage medium
CN110505400B (en) * 2019-08-16 2021-09-07 维沃移动通信有限公司 Preview image display adjustment method and terminal
CN110505400A (en) * 2019-08-16 2019-11-26 维沃移动通信有限公司 A kind of preview image display adjusting method and terminal
CN111741323A (en) * 2020-08-14 2020-10-02 广州盈可视电子科技有限公司 Live broadcast picture display method and device
WO2023284358A1 (en) * 2021-07-16 2023-01-19 北京迈格威科技有限公司 Camera calibration method and apparatus, electronic device, and storage medium
CN114040104A (en) * 2021-11-16 2022-02-11 北京筑梦园科技有限公司 Equipment debugging method and device and parking management system
CN115242969A (en) * 2022-06-22 2022-10-25 天翼数字生活科技有限公司 Method and system for controlling rotation of network camera
CN115242969B (en) * 2022-06-22 2023-10-13 天翼数字生活科技有限公司 Method and system for controlling rotation of network camera

Also Published As

Publication number Publication date
CN104184985B (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN104184985A (en) Method and device for acquiring image
US10165179B2 (en) Method, system, and computer program product for gamifying the process of obtaining panoramic images
US9723203B1 (en) Method, system, and computer program product for providing a target user interface for capturing panoramic images
US10075651B2 (en) Methods and apparatus for capturing images using multiple camera modules in an efficient manner
CA2858870C (en) Multiple-angle imagery of physical objects
US9865033B1 (en) Motion-based image views
US20150215532A1 (en) Panoramic image capture
CN107404615B (en) Image recording method and electronic equipment
CN104601892A (en) Terminal and image shooting method and device
KR20140096109A (en) Spatial bookmarking
CN110365896B (en) Control method and electronic equipment
US9906710B2 (en) Camera pan-tilt-zoom (PTZ) control apparatus
CN111064930B (en) Split screen display method, display terminal and storage device
JP6505242B2 (en) Cluster-based photo navigation
JP6299602B2 (en) Information processing apparatus, information processing method, program, and information processing system
US20210092281A1 (en) Control apparatus, control method, and recording medium
US11106278B2 (en) Operation method for multi-monitor and electronic system using the same
CN115514897B (en) Method and device for processing image
JP2016051199A (en) Information processing apparatus, image projection apparatus, and information processing method
Chew et al. Panorama stitching using overlap area weighted image plane projection and dynamic programming for visual localization
CN114245006B (en) Processing method, device and system
CN106817565A (en) Camera chain with panorama monitoring function
CN106997234B (en) Virtual reality mode processing method, equipment and system
JP6808398B2 (en) Control device, imaging device, control method, and program
CN115914589A (en) Video projection method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant