CN105158496B - A kind of method and device measuring object movement speed - Google Patents

A kind of method and device measuring object movement speed Download PDF

Info

Publication number
CN105158496B
CN105158496B CN201510546752.2A CN201510546752A CN105158496B CN 105158496 B CN105158496 B CN 105158496B CN 201510546752 A CN201510546752 A CN 201510546752A CN 105158496 B CN105158496 B CN 105158496B
Authority
CN
China
Prior art keywords
camera
distance
focusing
movement speed
image
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.)
Expired - Fee Related
Application number
CN201510546752.2A
Other languages
Chinese (zh)
Other versions
CN105158496A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510546752.2A priority Critical patent/CN105158496B/en
Publication of CN105158496A publication Critical patent/CN105158496A/en
Application granted granted Critical
Publication of CN105158496B publication Critical patent/CN105158496B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a kind of method and devices for measuring object movement speed.Wherein, which comprises obtain the object that user selects in the image shown by the view-finder of intelligent terminal, wherein described image is collected by camera;It obtains the object and inscribes image distance by the camera imaging at least two respectively;According to image distance, the corresponding focal length of the camera and at least two moment got, the movement speed of the object is determined.Technical solution provided in an embodiment of the present invention, can reduce measurement cost, provide measurement efficiency.

Description

A kind of method and device measuring object movement speed
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of methods and dress for measuring object movement speed It sets.
Background technique
Currently, there is the measurement demand to object movement speed under many application scenarios.But in prior art, The particular device measured dedicated for movement speed is usually required, the reflection based on laser, electromagnetic wave or some other wave is former It manages to calculate the movement speed of object.
The prior art have following defects that needs in measuring device be arranged wave source processing apparatus, to mobile object into The transmitting of traveling wave simultaneously receives its echo, so that measurement cost is higher, efficiency is poor.
Summary of the invention
The method and device that the embodiment of the present invention provides a kind of measurement object movement speed is provided with reducing measurement cost Measurement efficiency.
On the one hand, the embodiment of the invention provides a kind of methods for measuring object movement speed, this method comprises:
The object that user selects in the image shown by the view-finder of intelligent terminal is obtained, wherein described image is by taking the photograph As head collects;
It obtains the object and inscribes image distance by the camera imaging at least two respectively;
According to image distance, the corresponding focal length of the camera and at least two moment got, the mesh is determined Mark the movement speed of object.
On the other hand, the embodiment of the invention also provides a kind of device for measuring object movement speed, which includes:
Object acquiring unit, the target selected in the image shown by the view-finder of intelligent terminal for obtaining user Object, wherein described image is collected by camera;
Image distance acquiring unit, for obtain the object inscribe respectively at least two by the camera institute at Picture image distance;
Movement speed determination unit, for according to get image distance, the corresponding focal length of the camera and it is described extremely At few two moment, determine the movement speed of the object.
Technical solution provided in an embodiment of the present invention can be managed based on the intelligent terminal for being provided with camera and optics By, the very convenient movement speed for rapidly measuring object, in the prior art by object emission light wave, electromagnetic wave or The some other wave of person is compared with calculating the scheme of the object movement speed according to echo, and the embodiment of the present invention can reduce survey Cost is measured, measurement efficiency is provided.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the method for measurement object movement speed that the embodiment of the present invention one provides;
Fig. 2A is a kind of flow diagram of method for measuring object movement speed provided by Embodiment 2 of the present invention;
Fig. 2 B is a kind of partial structure diagram of camera provided by Embodiment 2 of the present invention;
Fig. 2 C is shape of the coil before and after energization in a kind of voice coil motor of camera provided by Embodiment 2 of the present invention State schematic diagram;
Fig. 2 D is a kind of voice coil motor inner spring provided by Embodiment 2 of the present invention deformation occurs front and back eyeglass and photosensitive core The distance between piece display schematic diagram;
Fig. 2 E is that a kind of object provided by Embodiment 2 of the present invention passes through camera imaging under two different moments Schematic diagram;
Fig. 3 is a kind of structural schematic diagram of the device for measurement object speed that the embodiment of the present invention three provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart, Many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be pacified again Row.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing.Institute Stating processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of flow diagram of the method for measurement object movement speed that the embodiment of the present invention one provides.The party Method can be executed by the device of measurement object movement speed, and described device can be integrated in such as by software and or hardware realization On the intelligent terminal of smart phone, tablet computer or personal digital assistant etc.Referring to Fig. 1, measurement object provided in this embodiment The operation of execution included by the method for body movement speed is specific as follows.
S110, the object that user selects in the image shown by the view-finder of intelligent terminal is obtained, wherein the figure As being collected by camera.
Illustratively, the object that user selects in the image shown by the view-finder of intelligent terminal is obtained, comprising: inspection It surveys user and acts on the touch gestures on image shown by the view-finder of intelligent terminal;Determine that user exists according to the touch gestures The object selected in image.
User can select the object in image by any ways such as click, frame choosing, keys, and the image to be shot is logical It often is different the depth of field, including different objects, then object can be a certain discrete objects in the close depth of field.It is acquiring When the touch gestures arrived are preset touch gestures, determine that the touch gestures act on the object in view-finder, wherein default Touch gestures can for double-click or click gesture.
S120, acquisition object inscribe the image distance by camera imaging at least two respectively.
At image distance, the corresponding focal length of camera and at least two moment that S130, basis are got, determine object Movement speed.
In the present embodiment, the subject in camera shooting visual range can pass through the image lenses in camera. According to lens imaging principle it is found that the image distance d of subject imaging and the object distance u of subject meet such as ShiShimonoseki between the two System:
Wherein, f is the corresponding focal length of camera;Image distance d is the distance between picture and eyeglass;Object distance u is subject and mirror The distance between piece.
It is assumed that the position for being provided with the intelligent terminal of camera remains unchanged, object is being moved relative to intelligent terminal It is dynamic, if using object distance of the selected object of user in a moment t1 as the first object distance, in another moment t2 Object distance as the second object distance, then it is poor first to calculate separately the distance between the first object distance and the second object distance, moment t2 and when The time difference between t1 is carved, and then can be using institute's calculated distance difference and the quotient of time difference as the mobile speed of object Degree.Wherein, the first object distance can be according to the image distance and camera pair of object imaging on camera in moment t1 The focal length answered is calculated;Second object distance can according to object in moment t2 on camera the image distance of imaging and The corresponding focal length of camera is calculated.
Certainly, it should be appreciated by those skilled in the art that the mobile speed of object can also be determined by other means Degree.(t is set as n moment for example, it is also possible to continuously acquire object1、t2……tn, n is natural number greater than 2) under taking the photograph As the image distance of imaging on head, if being respectively as follows: d1、d2……dn;The image distance of object, root are inscribed when being then directed to wherein each The object distance of object: u is inscribed when calculating each according to the corresponding focal length of camera1、u2……un;In turn, it can be determined according to following formula The movement speed of object:
Wherein, i is natural number.
Technical solution provided in this embodiment, can based on the intelligent terminal and optical theory for being provided with camera, ten The movement speed for point quickly and easily measuring object, in the prior art by object emission light wave, electromagnetic wave or its His some waves, are compared with calculating the scheme of the object movement speed according to echo, the embodiment of the present invention can reduce measurement at This, provides measurement efficiency.
Embodiment two
Fig. 2A is a kind of flow diagram of method for measuring object movement speed provided by Embodiment 2 of the present invention.This reality Example is applied on the basis of the above embodiment 1, to " obtaining object and inscribe respectively by formed by camera at least two The operation of the image distance of picture " optimizes.A referring to fig. 2, it is provided in this embodiment measurement object movement speed method included by It is specific as follows to execute operation.
S210, the object that user selects in the image shown by the view-finder of intelligent terminal is obtained, wherein the figure As being collected by camera.
S220, at least two moment camera focusing is controlled to object respectively.
When object is arrived in S230, each focusing, the distance between eyeglass and sensitive chip in camera are obtained, as target Object passes through the image distance of camera imaging at current time.
At image distance, the corresponding focal length of camera and at least two moment that S240, basis are got, determine object Movement speed.
As shown in Figure 2 B, micro-control unit 201 (MCU, Microcontroller Unit), driving are provided in camera Chip 202 (Driver IC) and voice coil motor 203 (VCM, Voice Coil Moto).Driving chip 202 respectively with micro-control Unit 201 and voice coil motor 203 connection processed.
The coil together with eyeglass carrying is built-in in voice coil motor 201, which, which is in, has setting magnetic field strength Magnetic field in, and be on horizontal line with sensitive chip.One of voice coil motor 203 and spring connect, solid by spring It is scheduled on the setting position of camera.Micro-control unit 201 can be by controlling driving chip 202, in voice coil motor 203 Coil is powered, so that coil is compressed under the collective effect in electric current and magnetic field by thrust or extension spring, to change The distance between eyeglass and sensitive chip.Micro-control unit 201 by change coil electrical current, come adjust eyeglass with it is photosensitive The distance between chip is to carry out focusing process, so that clearest state is presented in object imaging.
As shown in Figure 2 C, for the coil in voice coil motor 203 in the state of being not powered on, coil stress is zero, and spring will not Deformation occurs, and the length of spring is original length at this time;Coil when camera focusing is to object, in voice coil motor 203 In energized state, the coil under the action of electric current and magnetic field by thrust F, while because of spring deformation occurs (deformation length For Δ x) by the elastic force of spring, elastic force is equal in magnitude and contrary with thrust.
Wherein, thrust size | F |=K × B × I.K is preset constant;B is the magnetic field where the coil in voice coil motor Intensity, I are the electrical current of current time lower coil.And the size for the elastic force being subject to can be calculated according to following formula: α × Δx.Wherein α is the coefficient of elasticity of spring.So the deformation length of spring
As a kind of specific embodiment of the present embodiment, camera focusing is controlled to target at least two moment respectively Object, comprising: object is arrived with focusing by the mobile eyeglass of driving voice coil motor at least two moment control camera respectively;
When object is arrived in focusing every time, the distance between eyeglass and sensitive chip in camera are obtained, comprising: focusing every time When to object, the distance between eyeglass and sensitive chip and current time when according to voice coil motor inner spring, deformation occurs The deformation length of lower spring calculates the distance between eyeglass and sensitive chip in camera.
As shown in Figure 2 D, voice coil motor inner spring is not when deformation occurs, the distance between eyeglass 204 and sensitive chip 205 For xmin;When largest deformation occurs for voice coil motor inner spring, the distance between eyeglass 204 and sensitive chip 205 are xmax;It focuses and arrives When object, the deformation length of spring is Δ x under current time.The distance between eyeglass 204 and sensitive chip 205 in camera D=xmin+Δx。
It based on the above technical solution, illustratively, is preferably two moment by least two moment: first Moment and the second moment.As shown in Figure 2 E, it is d that object 206, which is inscribed at first through the image distance of camera imaging,1 (namely sensitive chip 205 is inscribed when first at a distance from eyeglass 204), the object distance of object 206 are u1(namely inscribed when first Object 206 is at a distance from eyeglass 204);It is d that object 206, which is inscribed at second through the image distance of camera imaging,2 (namely sensitive chip 205 is inscribed when second at a distance from eyeglass 204), the object distance of object 206 are u2(namely inscribed when second Object 206 is at a distance from eyeglass 204).
Correspondingly, determining target according to the image distance, the corresponding focal length of camera and at least two moment that get The movement speed of object, may particularly include:
The movement speed of object is calculated according to following formula:
Wherein, Δ t is the difference between the first moment and the second moment at least two moment;F is camera Corresponding focal length.
Embodiment three
Fig. 3 is a kind of structural schematic diagram of the device for measurement object speed that the embodiment of the present invention three provides.Referring to Fig. 3, The specific structure of the device is as follows:
Object acquiring unit 310 is selected in the image shown by the view-finder of intelligent terminal for obtaining user Object, wherein described image is collected by camera;
Image distance acquiring unit 320 is inscribed through the camera at least two respectively for obtaining the object The image distance of imaging;
Movement speed determination unit 330, for according to get image distance, the corresponding focal length of the camera and described At least two moment determined the movement speed of the object.
Illustratively, the image distance acquiring unit 320 includes:
Focusing subelement 3201, for controlling the camera focusing to the object at least two moment respectively;
Obtain subelement 3202, when for focusing every time to the object, obtain in the camera eyeglass with it is photosensitive The distance between chip passes through the image distance of the camera imaging at current time as the object.
Illustratively, the focusing subelement 3201 is specifically used for controlling the camera at least two moment respectively By the mobile eyeglass of driving voice coil motor, the object is arrived with focusing;
The acquisition subelement 3202, when arriving the object specifically for focusing every time, according in the voice coil motor Spring when deformation occurs the distance between the eyeglass and the sensitive chip and under current time the spring deformation Length calculates the distance between eyeglass and sensitive chip in the camera.
Preferably, the acquisition subelement 3202 is specifically used for calculating eyeglass and sense in the camera according to following formula The distance between optical chip d:
D=xmin+Δx
Wherein, the xminThe distance between eyeglass and sensitive chip when for voice coil motor inner spring, deformation occurs;Currently When inscribe the deformation length of springThe B is that the magnetic field where the coil in the voice coil motor is strong Degree, I are the electrical current of the coil under current time, and the K is preset constant;α is the coefficient of elasticity of the spring.
Illustratively, the movement speed determination unit 330, specifically for calculating the object according to following formula Movement speed:
Wherein, the Δ t is the difference between the first moment and the second moment at least two moment;d2For institute It states object and inscribes image distance by the camera imaging at described second;d1It is the object described first When inscribe image distance by the camera imaging;F is the corresponding focal length of the camera.
On the basis of above-mentioned technical proposal provided in this embodiment, the object acquiring unit 310 is specifically used for: Detection user acts on the touch gestures on image shown by the view-finder of intelligent terminal;It is determined and is used according to the touch gestures The object that family selects in described image.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method And beneficial effect.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (4)

1. a kind of method for measuring object movement speed characterized by comprising
Detection user acts on the touch gestures on image shown by the view-finder of intelligent terminal, true according to the touch gestures Determine the object that user selects in described image, wherein described image is collected by the camera in the intelligent terminal, Wherein the intelligent terminal is smart phone, tablet computer or personal digital assistant, and the touch gestures are to double-click gesture or list Hitter's gesture;
Wherein, the position of the intelligent terminal remains unchanged, and object is mobile relative to intelligent terminal;
The camera focusing is controlled to the object at multiple moment respectively;
When the object is arrived in focusing every time, the distance between eyeglass and sensitive chip in the camera are obtained, as described Object passes through the image distance of the camera imaging at current time;
According to image distance, the corresponding focal length of the camera and the multiple moment got, the shifting of the object is determined Dynamic speed;
Wherein, according to image distance, the corresponding focal length of the camera and the multiple moment got, the object is determined Movement speed, comprising:
It continuously acquires the object and inscribes image distance by the camera imaging at n;
According to it is each when inscribe the image distance of the object and when corresponding focal length of the camera calculates each inscribes the object Object distance;
The movement speed of the object is calculated according to following formula:
Wherein, the n is the natural number greater than 2;The tiFor i-th of moment;The uiIt is the object in tiWhen inscribe it is logical Cross the image distance of the camera imaging.
2. the method according to claim 1, wherein controlling the camera focusing to institute at multiple moment respectively State object, comprising: control the camera by the mobile eyeglass of driving voice coil motor at multiple moment respectively, institute is arrived with focusing State object;
When the object is arrived in focusing every time, the distance between eyeglass and sensitive chip in the camera are obtained, comprising: every time When focusing to the object, according to the voice coil motor inner spring when deformation occurs the eyeglass and the sensitive chip it Between distance and under current time the spring deformation length, calculate in the camera between eyeglass and sensitive chip Distance.
3. a kind of device for measuring object movement speed characterized by comprising
Object acquiring unit acts on the touch hand on image shown by the view-finder of intelligent terminal for detecting user Gesture determines the object that user selects in described image according to the touch gestures, and wherein described image is whole by the intelligence Camera in end collects, wherein the intelligent terminal is smart phone, tablet computer or personal digital assistant, the touching Gesture is touched to double-click gesture or click gesture;
Wherein, the position of the intelligent terminal remains unchanged, and object is mobile relative to intelligent terminal;
Focusing subelement, for controlling the camera focusing to the object at multiple moment respectively;
Subelement is obtained, when arriving the object for focusing every time, is obtained in the camera between eyeglass and sensitive chip Distance, pass through the image distance of the camera imaging at current time as the object;
Movement speed determination unit, for according to get image distance, the corresponding focal length of the camera and it is the multiple when It carves, determines the movement speed of the object;
Wherein, the movement speed determination unit is specifically used for:
It continuously acquires the object and inscribes image distance by the camera imaging at n;
According to it is each when inscribe the image distance of the object and when corresponding focal length of the camera calculates each inscribes the object Object distance;
The movement speed of the object is calculated according to following formula:
Wherein, the n is the natural number greater than 2;The tiFor i-th of moment;The uiIt is the object in tiWhen inscribe it is logical Cross the image distance of the camera imaging.
4. device according to claim 3, which is characterized in that the focusing subelement is specifically used for respectively when multiple It carves and controls the camera by the mobile eyeglass of driving voice coil motor, the object is arrived with focusing;
The acquisition subelement, specifically for not sent out according to the voice coil motor inner spring when object is arrived in focusing every time When raw deformation the distance between the eyeglass and the sensitive chip and under current time the spring deformation length, calculating The distance between eyeglass and sensitive chip in the camera.
CN201510546752.2A 2015-08-31 2015-08-31 A kind of method and device measuring object movement speed Expired - Fee Related CN105158496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510546752.2A CN105158496B (en) 2015-08-31 2015-08-31 A kind of method and device measuring object movement speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510546752.2A CN105158496B (en) 2015-08-31 2015-08-31 A kind of method and device measuring object movement speed

Publications (2)

Publication Number Publication Date
CN105158496A CN105158496A (en) 2015-12-16
CN105158496B true CN105158496B (en) 2019-03-08

Family

ID=54799417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510546752.2A Expired - Fee Related CN105158496B (en) 2015-08-31 2015-08-31 A kind of method and device measuring object movement speed

Country Status (1)

Country Link
CN (1) CN105158496B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106871790A (en) * 2016-12-30 2017-06-20 深圳天珑无线科技有限公司 The method and system of intelligent mobile measurement device object
CN107071254A (en) * 2017-05-31 2017-08-18 广东欧珀移动通信有限公司 CCD camera assembly and electronic equipment
CN109856422B (en) 2019-02-19 2022-03-22 成都京东方光电科技有限公司 Acceleration sensor, acceleration measuring device and method
CN118038303A (en) * 2022-11-02 2024-05-14 腾讯科技(深圳)有限公司 Identification image processing method, device, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN86105821A (en) * 1986-07-18 1988-02-03 空军第一航空技术专科学校 The measurement mechanism of forming by optical lens and photoelectric cell
TWI243903B (en) * 2004-10-08 2005-11-21 Huei-Yung Lin Method using blurred image to measure speed
CN103969466B (en) * 2014-05-09 2017-02-01 中国联合网络通信集团有限公司 Method for measuring speed of vehicle and corresponding terminal

Also Published As

Publication number Publication date
CN105158496A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN109151301B (en) Electronic device including camera module
US11568517B2 (en) Electronic apparatus, control method, and non- transitory computer readable medium
US11544820B2 (en) Video repair method and apparatus, and storage medium
US10284817B2 (en) Device for and method of corneal imaging
US10503265B2 (en) Mixed-mode depth detection
CN105158496B (en) A kind of method and device measuring object movement speed
KR102085766B1 (en) Method and Apparatus for controlling Auto Focus of an photographing device
US9792673B2 (en) Facilitating projection pre-shaping of digital images at computing devices
EP3642673B1 (en) Electronic device for controlling focus of lens and method for controlling the same
CN112005548A (en) Method of generating depth information and electronic device supporting the same
CN107040716A (en) The method and its control system of control device motion
KR102337209B1 (en) Method for notifying environmental context information, electronic apparatus and storage medium
KR20190021108A (en) The Electronic Device Controlling the Effect for Displaying of the Image and Method for Displaying the Image
CN105323480A (en) Ultrasonic-based photographing method and device
CN105306819A (en) Gesture-based photographing control method and device
WO2016197494A1 (en) Method and device for adjusting focusing area
US9990037B1 (en) Display apparatus and method using portable electronic device
CN110895433B (en) Method and apparatus for user interaction in augmented reality
JP2016511496A (en) Motion blur sensing visual pose tracking
KR20210017081A (en) Apparatus and method for displaying graphic elements according to object
US10136047B2 (en) Focusing method and device for image shooting
KR20210058363A (en) Electronic device for using depth information and operating method thereof
US20220261085A1 (en) Measurement based on point selection
JP2018006803A (en) Imaging apparatus, control method for imaging apparatus, and program
JP2011164428A (en) Imaging apparatus and control method for the imaging apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190308

CF01 Termination of patent right due to non-payment of annual fee