CN105847677A - Object horizontal distance acquisition method and object horizontal distance acquisition device - Google Patents
Object horizontal distance acquisition method and object horizontal distance acquisition device Download PDFInfo
- Publication number
- CN105847677A CN105847677A CN201610184383.1A CN201610184383A CN105847677A CN 105847677 A CN105847677 A CN 105847677A CN 201610184383 A CN201610184383 A CN 201610184383A CN 105847677 A CN105847677 A CN 105847677A
- Authority
- CN
- China
- Prior art keywords
- camera head
- lateral separation
- angle
- image
- calculated
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000000926 separation method Methods 0.000 claims description 63
- 230000005484 gravity Effects 0.000 claims description 8
- 230000015572 biosynthetic process Effects 0.000 claims 1
- 238000005259 measurement Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 3
- 238000000205 computational method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The invention provides an object horizontal distance acquisition method and an object horizontal distance acquisition device. The object horizontal distance acquisition method is characterized in that a shooting device is used to acquire an image of an object; during the image acquisition of the shooting device, the included angle between the shooting device and the horizontal line segment of the object can be acquired; during the image acquisition of the shooting device, the focal length can be acquired; the horizontal distance of the object can be acquired by calculating the included angle and the focal length. The problem of the prior art of the inability of acquiring the horizontal distance of the object by the camera of the cell phone can be solved, and therefore the convenience and the measurement accuracy of the horizontal distance of the object can be improved, and the user experience can be improved.
Description
Technical field
The present invention relates to length calculation method field, be specifically related to a kind of object lateral separation acquisition methods
And device.
Background technology
For the acquisition of object length it is generally required to obtained by measuring instrument measurement in prior art, and
In the case of lacking measuring instrument, can only be estimated by naked eyes, hardly result in the accurate of object
Size.
Along with the most progressive of society and the development of science, people have the phenomenon of mobile phone and the most more come
The most universal.In a broad sense, smart mobile phone, in addition to the call function possessing mobile phone, has been also equipped with PDA
Most of function, particularly personal information management and browser based on RFDC and electricity
Sub-mail function.Smart mobile phone has provided the user enough screen sizes and bandwidth, both convenient carry-on
Carrying, provide wide stage for running software and content service again, a lot of value-added services can be just
This launches, such as: stock, news, weather, traffic, commodity, application program download, music picture
Download etc..In conjunction with the support of 3G communication network, the development trend of smart mobile phone, one certainly will will be become
Individual powerful, integrate call, note, network insertion, comprehensive staff of video display amusement
Hold terminal unit.
Although mobile phone possesses above-mentioned all functions, but in the prior art, can not pass through mobile phone
Photographic head obtains the lateral separation of object.
Summary of the invention
The invention provides a kind of object lateral separation acquisition methods and device, at least to solve existing skill
In art, the problem that the lateral separation of object can not be obtained by the photographic head of mobile phone.
According to an aspect of the invention, it is provided a kind of object lateral separation acquisition methods, including:
The image of object is gathered by camera head;When obtaining the described camera head described image of collection, described
The angle that the horizontal line segment of camera head and described object is formed;Obtain described camera head and gather described
Focal length during image;The lateral separation of described object it is calculated by described angle and described focal length.
Alternatively, included by the image of camera head collection object: by the center of described camera head
The image of object described in the central data of the horizontal line segment being directed at described object.
Alternatively, when obtaining the described camera head described image of collection, described camera head and described thing
The angle that the horizontal line segment of body is formed includes: be calculated described angle by gravity sensing principle.
Alternatively, be calculated the lateral separation of described object by described angle and described focal length after
Including: by the lateral separation of object described in voice broadcast service.
Alternatively, be calculated the lateral separation of described object by described angle and described focal length after
Including: show the lateral separation of described object.
According to another aspect of the present invention, a kind of object lateral separation acquisition device, bag are additionally provided
Include: acquisition module, for being gathered the image of object by camera head;First acquisition module, is used for
When obtaining the described camera head described image of collection, described camera head and the horizontal line segment of described object
The angle formed;Second acquisition module, for obtaining Jiao when described camera head gathers described image
Away from;Computing module, for by described angle and described focal length be calculated described object horizontal away from
From.
Alternatively, described acquisition module is additionally operable to the center of described camera head is directed at described object
The laterally image of object described in the central data of line segment.
Alternatively, described first acquisition module is additionally operable to be calculated described folder by gravity sensing principle
Angle.
Alternatively, described device also includes: broadcast module, for by described angle and described focal length
After being calculated the lateral separation of described object, by the lateral separation of object described in voice broadcast service.
Alternatively, described device also includes: display module, for by described angle and described focal length
After being calculated the lateral separation of described object, show the lateral separation of described object.
By the present invention, use the image being gathered object by camera head;Acquisition camera head gathers
During this image, the angle that the horizontal line segment of camera head and object is formed;Obtaining camera head collection should
Focal length during image;It is calculated the lateral separation of this object by this angle and this focal length, solves
In prior art, the problem that the lateral separation of object can not be obtained by the photographic head of mobile phone, thus
Improve convenience and the accuracy of Measuring Object lateral separation, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the specific embodiment of the invention or technical scheme of the prior art, under
The accompanying drawing used required in detailed description of the invention or description of the prior art will be briefly described by face,
It should be evident that the accompanying drawing in describing below is some embodiments of the present invention, general for this area
From the point of view of logical technical staff, on the premise of not paying creative work, it is also possible to obtain according to these accompanying drawings
Obtain other accompanying drawing.
Fig. 1 is the flow chart of object lateral separation acquisition methods according to embodiments of the present invention;
Fig. 2 is object lateral separation computational methods schematic diagram according to embodiments of the present invention;
Fig. 3 is a structured flowchart of object lateral separation acquisition device according to embodiments of the present invention;
Fig. 4 is another structured flowchart of object lateral separation acquisition device according to embodiments of the present invention;
Fig. 5 is another structured flowchart of object lateral separation acquisition device according to embodiments of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, technical scheme is clearly and completely described, it is clear that
Described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on this
Embodiment in bright, those of ordinary skill in the art are obtained under not making creative work premise
Every other embodiment, broadly fall into the scope of protection of the invention.
In describing the invention, it should be noted that term " first ", " second ", " the 3rd "
It is only used for describing purpose, and it is not intended that indicate or hint relative importance.
As long as additionally, technical characteristic involved in invention described below difference embodiment that
The conflict of not constituting between this just can be combined with each other.
Embodiment 1
Providing a kind of object lateral separation acquisition methods in the present embodiment, Fig. 1 is real according to the present invention
Execute the flow chart of the object lateral separation acquisition methods of example, as it is shown in figure 1, this flow process includes walking as follows
Rapid:
Step S102, gathers the image of object by camera head;
Step S104, when acquisition camera head gathers this image, camera head and the horizontal line segment of object
The angle formed;
Step S106, acquisition camera head gathers focal length during this image;
Step S108, is calculated the lateral separation of object by this angle and this focal length.
By above-mentioned steps, the image of shooting object, and obtain the parameter related in shooting process,
The lateral separation of object can be calculated, compared in prior art, it is impossible to by shooting object
Image obtains the lateral separation of object, and above-mentioned steps solves in prior art, can not pass through mobile phone
Photographic head obtain the problem of lateral separation of object, thus improve Measuring Object lateral separation just
Victory and accuracy, improve Consumer's Experience.
Above-mentioned steps S102 relates to the image being gathered object by camera head, an alternative embodiment
In, the center of camera head is directed at the image of this object of central data of the horizontal line segment of object.Logical
Cross this style of shooting, can more easily get camera head when gathering this image, camera head
The angle formed with the horizontal line segment of object, it is simple to the calculating of follow-up object lateral separation.
When gathering this image about acquisition camera head, the horizontal line segment of camera head and object is formed
The process of angle, in one alternate embodiment, is calculated this angle by gravity sensing principle.
In another alternative embodiment, can be directly by including the terminal of camera head and gravity sensor
In gravity sensor get above-mentioned angle.
Fig. 2 is object lateral separation computational methods schematic diagram according to embodiments of the present invention, such as Fig. 2 institute
Showing, triangle ABC is isosceles triangle, and a is camera head when gathering this image, camera head and thing
The angle that the horizontal line segment of body is formed, b is right angle, and distance L between A and B is camera head collection
Focal length during this image, distance S between B and C is the lateral separation of object.
S is obtained by formula calculated below:
S=2L*tan (a/2).
In order to inform the lateral separation of user's object intuitively, in one alternate embodiment, by this
After angle and this focal length are calculated the lateral separation of this object, by the horizontal stroke of this object of voice broadcast service
To distance.In another alternative embodiment, it is calculated this object by this angle and this focal length
After lateral separation, show the lateral separation of this object.
Embodiment 2
Additionally providing a kind of object lateral separation acquisition device in the present embodiment, this device is used for realizing
Above-described embodiment and preferred implementation, carried out repeating no more of explanation.Use as following
, term " module " can realize the software of predetermined function and/or the combination of hardware.Although it is following real
Execute the device described by example preferably to realize with software, but hardware, or the group of software and hardware
The realization closed also may and be contemplated.
Fig. 3 is a structured flowchart of object lateral separation acquisition device according to embodiments of the present invention,
As it is shown on figure 3, this device includes: acquisition module 32, for being gathered the figure of object by camera head
Picture;First acquisition module 34, is used for obtaining this camera head when gathering this image, this camera head with
The angle that the horizontal line segment of this object is formed;Second acquisition module 36, is used for obtaining this camera head and adopts
Collect focal length during this image;Computing module 38, for being calculated this thing by this angle and this focal length
The lateral separation of body.
By said apparatus, the image of shooting object, and obtain the parameter related in shooting process,
The lateral separation of object can be calculated, compared in prior art, it is impossible to by shooting object
Image obtains the lateral separation of object, solves in prior art, can not be by the photographic head of mobile phone
The problem obtaining the lateral separation of object, thus improve convenience and the standard of Measuring Object lateral separation
Really property, improves Consumer's Experience.
Alternatively, acquisition module 32 is additionally operable to be directed at the center of this camera head the x wire of this object
The image of this object of central data of section.
Alternatively, the first acquisition module 34 is additionally operable to be calculated this angle by gravity sensing principle.
Fig. 4 is another structured flowchart of object lateral separation acquisition device according to embodiments of the present invention,
As shown in Figure 4, this device also includes: broadcast module 42, for being calculated by this angle and this focal length
After obtaining the lateral separation of this object, by the lateral separation of this object of voice broadcast service.
Fig. 5 is another structured flowchart of object lateral separation acquisition device according to embodiments of the present invention,
As it is shown in figure 5, this device also includes: display module 52, for being calculated by this angle and this focal length
After obtaining the lateral separation of this object, the lateral separation of display object.
The further function of above-mentioned modules describes identical, at this not with above-mentioned corresponding embodiment
Repeat again.
In sum, a kind of object lateral separation acquisition methods provided by the present invention and device, solve
Determine in prior art, the problem that the lateral separation of object can not be obtained by the photographic head of mobile phone,
Thus improve convenience and the accuracy of Measuring Object lateral separation, improve Consumer's Experience.
Those skilled in the art it should be appreciated that embodiments of the invention can be provided as method, system,
Or computer program.Therefore, the present invention can use complete hardware embodiment, complete software to implement
Example or the form of the embodiment in terms of combining software and hardware.And, the present invention can use at one
Or multiple wherein include computer usable program code computer-usable storage medium (include but not
It is limited to disk memory, CD-ROM, optical memory etc.) shape of the upper computer program implemented
Formula.
The present invention is with reference to method, equipment (system) and computer program according to embodiments of the present invention
The flow chart of product and/or block diagram describe.It should be understood that stream can be realized by computer program instructions
In each flow process in journey figure and/or block diagram and/or square frame and flow chart and/or block diagram
Flow process and/or the combination of square frame.These computer program instructions can be provided to general purpose computer, specially
With the processor of computer, Embedded Processor or other programmable data processing device to produce one
Machine so that the instruction performed by the processor of computer or other programmable data processing device is produced
Raw for realizing one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple side
The device of the function specified in frame.
These computer program instructions may be alternatively stored in and computer or other programmable datas can be guided to process
In the computer-readable memory that equipment works in a specific way so that be stored in this computer-readable and deposit
Instruction in reservoir produces the manufacture including command device, and this command device realizes flow chart one
The function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded into computer or other programmable data processing device
On so that on computer or other programmable devices, perform sequence of operations step to produce computer
The process realized, thus the instruction performed on computer or other programmable devices provides and is used for realizing
One flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame are specified
The step of function.
Obviously, above-described embodiment is only for clearly demonstrating example, and not to embodiment party
The restriction of formula.For those of ordinary skill in the field, the most also may be used
To make other changes in different forms.Here without also all of embodiment being given
With exhaustive.And the obvious change thus extended out or variation are still in the guarantor of the invention
Protect among scope.
Claims (10)
1. an object lateral separation acquisition methods, it is characterised in that including:
The image of object is gathered by camera head;
When obtaining the described camera head described image of collection, described camera head is horizontal with described object
The angle that line segment is formed;
Obtain focal length during the described camera head described image of collection;
The lateral separation of described object it is calculated by described angle and described focal length.
Method the most according to claim 1, it is characterised in that gather object by camera head
Image include:
Object described in the central data of the horizontal line segment that the center of described camera head is directed at described object
Image.
Method the most according to claim 1, it is characterised in that obtain described camera head collection
During described image, described camera head includes with the angle of the horizontal line segment formation of described object:
It is calculated described angle by gravity sensing principle.
Method the most according to claim 1, it is characterised in that by described angle and described Jiao
Include after the lateral separation being calculated described object:
Lateral separation by object described in voice broadcast service.
Method the most according to claim 1, it is characterised in that by described angle and described Jiao
Include after the lateral separation being calculated described object:
Show the lateral separation of described object.
6. an object lateral separation acquisition device, it is characterised in that including:
Acquisition module, for gathering the image of object by camera head;
First acquisition module, when being used for obtaining the described camera head described image of collection, described shooting fills
Put the angle that the horizontal line segment with described object is formed;
Second acquisition module, for obtaining focal length when described camera head gathers described image;
Computing module, for by described angle and described focal length be calculated described object horizontal away from
From.
Device the most according to claim 6, it is characterised in that described acquisition module be additionally operable to by
The figure of object described in the central data of the horizontal line segment that the center of described camera head is directed at described object
Picture.
Device the most according to claim 6, it is characterised in that described first acquisition module is also used
In being calculated described angle by gravity sensing principle.
Device the most according to claim 6, it is characterised in that described device also includes:
Broadcast module, for by described angle and described focal length be calculated described object horizontal away from
From afterwards, by the lateral separation of object described in voice broadcast service.
Device the most according to claim 6, it is characterised in that described device also includes:
Display module, for by described angle and described focal length be calculated described object horizontal away from
From afterwards, show the lateral separation of described object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610184383.1A CN105847677A (en) | 2016-03-28 | 2016-03-28 | Object horizontal distance acquisition method and object horizontal distance acquisition device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610184383.1A CN105847677A (en) | 2016-03-28 | 2016-03-28 | Object horizontal distance acquisition method and object horizontal distance acquisition device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105847677A true CN105847677A (en) | 2016-08-10 |
Family
ID=56583946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610184383.1A Pending CN105847677A (en) | 2016-03-28 | 2016-03-28 | Object horizontal distance acquisition method and object horizontal distance acquisition device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105847677A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080101784A1 (en) * | 2006-11-01 | 2008-05-01 | Altek Corporation | Method for calculating distance and actual size of shot object |
CN101614540A (en) * | 2008-06-26 | 2009-12-30 | 徐正光 | Target object distance measuring device and method and hole marking flagpole for golf course |
CN101769723A (en) * | 2008-12-30 | 2010-07-07 | 鸿富锦精密工业(深圳)有限公司 | Electronic device and object shape parameter measurement method thereof |
CN101922928A (en) * | 2009-06-16 | 2010-12-22 | 纬创资通股份有限公司 | Method, device and electronic device for measuring distance and identifying position of intelligent handheld device |
CN102564313A (en) * | 2010-12-31 | 2012-07-11 | 富泰华工业(深圳)有限公司 | Electronic device with measurement function and method |
-
2016
- 2016-03-28 CN CN201610184383.1A patent/CN105847677A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080101784A1 (en) * | 2006-11-01 | 2008-05-01 | Altek Corporation | Method for calculating distance and actual size of shot object |
CN101614540A (en) * | 2008-06-26 | 2009-12-30 | 徐正光 | Target object distance measuring device and method and hole marking flagpole for golf course |
CN101769723A (en) * | 2008-12-30 | 2010-07-07 | 鸿富锦精密工业(深圳)有限公司 | Electronic device and object shape parameter measurement method thereof |
CN101922928A (en) * | 2009-06-16 | 2010-12-22 | 纬创资通股份有限公司 | Method, device and electronic device for measuring distance and identifying position of intelligent handheld device |
CN102564313A (en) * | 2010-12-31 | 2012-07-11 | 富泰华工业(深圳)有限公司 | Electronic device with measurement function and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107710188B (en) | Automate local story generation and curation | |
CN104899252B (en) | A kind of method and device of information push | |
CN105474622B (en) | Method and apparatus for generating full focus image | |
US9797740B2 (en) | Method of determining trajectories through one or more junctions of a transportation network | |
CN110619314A (en) | Safety helmet detection method and device and electronic equipment | |
CN109962939B (en) | Position recommendation method, device, server, terminal and storage medium | |
US20180189665A1 (en) | Determining deployment need for point of interest | |
CN110210813B (en) | A method, device, electronic device and storage medium for determining distribution range | |
CN104461439B (en) | A kind of information processing method and electronic equipment | |
CN110084154B (en) | Method and device for rendering image, electronic equipment and computer readable storage medium | |
CN104036169B (en) | Biological authentication method and biological authentication apparatus | |
CN107084740B (en) | Navigation method and device | |
CN110162292A (en) | Voice broadcast method and device | |
CN107038589B (en) | A kind of entity information verification method and device | |
CN111582090A (en) | Face recognition method and device and electronic equipment | |
CN107861992A (en) | A kind of running route processing method and apparatus | |
CN105279778A (en) | Method and terminal for picture color filling | |
CN110347875A (en) | A kind of video scene classification method, device, mobile terminal and storage medium | |
CN111862349A (en) | Virtual brush implementation method and device and computer readable storage medium | |
CN109036522A (en) | Image processing method, device, equipment and readable storage medium storing program for executing | |
CN109102327A (en) | A kind of method, portable terminal and the storage medium of article recycling | |
CN106570033A (en) | Individual recommendation method and device based on scene data | |
US20140002499A1 (en) | Method, System, and Computer-Readable Recording Medium for Providing Information on an Object Using Viewing Frustums | |
CN108989666A (en) | Image pickup method, device, mobile terminal and computer-readable storage medium | |
CN105894533A (en) | Method and system for realizing body motion-sensing control based on intelligent device and intelligent device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160810 |
|
WD01 | Invention patent application deemed withdrawn after publication |