WO2017219515A1 - 一种拍照对焦的方法及电子设备 - Google Patents

一种拍照对焦的方法及电子设备 Download PDF

Info

Publication number
WO2017219515A1
WO2017219515A1 PCT/CN2016/099236 CN2016099236W WO2017219515A1 WO 2017219515 A1 WO2017219515 A1 WO 2017219515A1 CN 2016099236 W CN2016099236 W CN 2016099236W WO 2017219515 A1 WO2017219515 A1 WO 2017219515A1
Authority
WO
WIPO (PCT)
Prior art keywords
feature
pressure value
feature extraction
target object
area
Prior art date
Application number
PCT/CN2016/099236
Other languages
English (en)
French (fr)
Inventor
张晓亮
刘辉
冯磊
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017219515A1 publication Critical patent/WO2017219515A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Definitions

  • This application relates to, but is not limited to, the field of communication technology.
  • pressure modules are used in a new generation of electronic devices, such as mobile phones.
  • the screen can determine the application of pressure more and more, and the operation can be performed without pressure and pressure on the screen. effect.
  • the related art photographing focusing method is suitable for focusing the static object, or is suitable for the electronic device and the object to be photographed.
  • the camera is in a relatively static state, that is, the related art camera focusing method is useful when shooting a stationary object, but the moving object cannot be well focused, for example, when the user touches the screen, the selected object is When a moving object, or the user wants to focus on the object while the electronic device is moving, only the user can continuously click the display position corresponding to the moving object on the screen to realize the target object moving in the display screen. Focus processing.
  • the photographing focusing method in the related art cannot be well applied to the case where the moving focus is required, and the user's use convenience is low, and the user experience is lowered.
  • the present invention provides a method and an electronic device for photographing focusing to solve the problem that the photographing focusing method in the related art is useful when photographing a stationary object, but the moving object cannot be well focused.
  • a method of photographing focus comprising:
  • the feature information of the object obtains the first feature matching information, including:
  • Feature extraction is performed on the first target object in the first feature extraction area, and the feature information of the first target object is acquired to obtain the first feature matching information.
  • performing target tracking and focusing on subsequent images displayed on the touch display component according to the first feature matching information including:
  • the screen is focused on the screen display area.
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • An electronic device comprising:
  • the detecting module is configured to: detect a position where the touch screen operation on the touch display component occurs and a first pressure value generated at the generated position;
  • a first acquiring module configured to: acquire the detected location detected by the detecting module, Extracting, by the touch display component, a first feature extraction region corresponding to the first pressure value detected by the detection module, extracting feature information of a first target object of the current image in the first feature extraction region, and obtaining First feature matching information;
  • the tracking and focusing module is configured to perform target tracking and focusing on subsequent images displayed on the touch display component according to the first feature matching information obtained by the first acquiring module.
  • the first obtaining module includes:
  • the acquiring unit is configured to: obtain, according to the first pressure value detected by the detecting module, a first area corresponding to the first pressure value in a preset pressure value and an area correspondence table of the feature extraction area, Forming the first feature extraction area on the touch display component centered on the occurrence location and having an area of the first area;
  • a feature extraction unit configured to: perform feature extraction on the first target object in the first feature extraction area acquired by the acquiring unit, acquire the feature information of the first target object, and obtain the A feature matching information.
  • the tracking and focusing module includes:
  • a matching identification unit configured to: match, according to the first feature matching information obtained by the first acquiring module, a subsequent image displayed on the touch display component, and identify the first image and the first feature Matching the target object that the information matches, and acquiring the screen display area corresponding to the matched target object;
  • the focusing unit is configured to perform screen focusing on the screen display area acquired by the matching identification unit.
  • the electronic device further includes:
  • a determining module configured to: determine, in the screen display area where the second target object obtained by the tracking and focusing module performs target tracking, determine the second feature extraction area;
  • a second acquiring module configured to: perform feature extraction on the second target object in the second feature extraction area determined by the determining module, acquire feature information of the second target object, and obtain a second feature matching information
  • the tracking and focusing module is further configured to perform target tracking and tracking on subsequent images displayed on the touch display component according to the second feature matching information obtained by the second acquiring module. focal.
  • the electronic device further includes:
  • a third obtaining module configured to: acquire a duration of the touch screen operation at the occurrence position
  • the focusing module is configured to: when it is determined that the duration acquired by the third acquiring module reaches a preset time length, perform focusing on the generated position, and trigger the first acquiring module to acquire the generated position
  • the first feature extraction area corresponding to the first pressure value on the touch display component, extracting feature information of the first target object of the current image in the first feature extraction area, and obtaining a The first feature matching information is described.
  • the electronic device further includes:
  • a determining module configured to: determine whether the first pressure value detected by the detecting module is within a preset threshold range
  • the first obtaining module is configured to: when the determining module determines that the first pressure value is within the preset threshold range, acquire the generated location, the touch display component and the And extracting, by the first feature extraction region corresponding to the first pressure value, feature information of the first target object of the current image in the first feature extraction region, to obtain the first feature matching information.
  • the electronic device further includes:
  • the warning module is configured to: when the determining module determines that the first pressure value is greater than a maximum value of the preset threshold range, issue a pressure over-standard warning.
  • the method for photographing focus and the electronic device provided by the embodiment of the invention, by detecting the occurrence position of the touch screen operation on the touch display component and the first pressure value generated at the occurrence position during the photographing process, combined with the occurrence of the touch screen operation Positioning and generating the first pressure value, acquiring a first feature extraction area corresponding to the first pressure value on the touch display component, and extracting feature information of the first target object in the current image in the first feature extraction area, The first feature matching information, and performing target tracking and image focusing on the subsequent image displayed on the touch display component according to the first feature matching information; in the embodiment of the present invention, by locking and tracking the focused target object, the object is realized.
  • a dynamic focusing process is performed along with the movement of the target object to meet the actual needs of the user and enhance the user experience.
  • FIG. 1 is a flowchart of a method for photographing focus according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for photographing focus according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of still another method for photographing focus according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a first feature extraction area on a touch display component in a method for photographing focus according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
  • the method for photographing focus may include the following steps, that is, steps 101 to 103:
  • Step 101 Detect a location where the touch screen operation on the touch display component occurs and a first pressure value generated at the occurrence position.
  • the user presses a certain place on the screen on the touch display component to realize the operation of focusing at the pressing position.
  • the corresponding position information and the occurrence position of the touch screen operation are obtained.
  • the pressure value on the top according to the occurrence position of the touch screen operation and the first pressure value generated during the touch screen operation, as a precondition for the execution of the next operation.
  • the first pressure value can be acquired by a pressure sensor.
  • Step 102 Acquire a first feature extraction region corresponding to the first pressure value on the touch display component, and extract feature information of the first target object of the current image in the first feature extraction region to obtain a first feature match. information.
  • feature extraction is performed on the current image displayed on the touch display component, and the range and size of the first feature extraction area are determined by the occurrence position of the user's touch screen operation and the first pressure value of the touch screen operation.
  • the shape of the first feature extraction area may be set to a circular area or a square area.
  • the feature information of the extracted first target object may include: color information, shape information, object contour information, and texture information of the first target object. Wait.
  • the camera image acquisition component charge coupled device (Charge Coupled Device, CCD for short) collects the color information in the first feature extraction region, it can collect red, green, and blue in the region (Red, Green, and Blue, referred to as: R, G, B) color information of three sub-pixel positions, the color data of three sub-pixels of R, G, and B may be saved in the buffer unit; or the image in the first feature extraction area may be converted into black and white
  • the value image, the black and white binary image contains contour information, shape information, texture information, etc. of the first target object, and the data may be saved in the buffer unit for calling in a subsequent step.
  • Step 103 Perform target tracking and focusing on subsequent images displayed on the touch display component according to the first feature matching information.
  • the obtaining of the subsequent image displayed on the touch display component may be performed by refreshing the display screen on the touch display component by a preset time interval, and obtaining the subsequent display on the touch display component. image.
  • the recognition tracking can acquire the changing position of the target object at different times, and perform the focusing operation of the screen on the changed position of the tracked target object, and the screen focusing operation can be completed by the camera device on the terminal.
  • the method for photographing focus provided by the embodiment, by detecting the touch display group during the photographing process The occurrence position of the touch screen operation on the member and the first pressure value generated at the occurrence position, in combination with the occurrence position of the touch screen operation and the generated first pressure value, acquiring the touch display component corresponding to the first pressure value a first feature extraction area, extracting feature information of the first target object in the current image in the first feature extraction area, obtaining first feature matching information, and performing subsequent images displayed on the touch display component according to the first feature matching information Target tracking and picture focusing are performed; in this embodiment, by locking and tracking the moving target object, a dynamic focusing process is performed along with the movement of the target object during the movement of the object, thereby satisfying the actual needs of the user and improving user experience.
  • the embodiment of the present invention further provides a method for photographing focus, as shown in FIG. 2, which is another photographing focus provided by the embodiment of the present invention.
  • the method of the method may include the following steps, that is, steps 201 to 205:
  • Step 201 Detect a position where the touch screen operation on the touch display component occurs and a first pressure value generated at the occurrence position.
  • step 201 firstly, by acquiring a position parameter of the finger touch screen, the corresponding position information and the first pressure value at the touch screen operation sending position are obtained, according to the occurrence position of the touch screen operation and the touch screen operation process.
  • the magnitude of the first pressure generated in the process is used as a prerequisite for subsequent operations.
  • the first feature extraction area corresponding to the first pressure value is touched on the touch display component, and the feature of the first target object of the current image in the first feature extraction area is extracted. Information, the first feature matching information is obtained.
  • the first feature extraction area corresponding to the first pressure value is touched on the touch display component, and the feature information of the first target object of the current image in the first feature extraction area is extracted.
  • the implementation manner of the first feature matching information may include steps 202 to 203:
  • Step 202 Acquire a first area corresponding to the first pressure value in a preset pressure value and an area correspondence table of the feature extraction area according to the first pressure value, and form a position on the touch display component with the occurrence position as a center. And the area is the first feature extraction area of the first area.
  • step 202 how to obtain the first feature extraction area corresponding to the first pressure value on the display component at the occurrence position of the touch screen operation; optionally, the preset pressure value and the feature extraction area
  • the area correspondence table may be a one-to-one correspondence between the recorded pressure value and the area value, or may be a correspondence relationship between the recorded pressure value interval and the area value.
  • obtaining the implementation manner of the first area corresponding to the first pressure value may be The method includes: obtaining, by a preset correspondence between the preset pressure value and the area of the feature extraction area, a first-to-one correspondence between the pressure value and the area value, acquiring the first area corresponding to the first pressure value; or matching the first pressure value in the preset The pressure value and the area of the feature extraction area correspond to the pressure value interval in the table, and the first area corresponding to the pressure value interval is obtained.
  • the pressure value can be divided into several different intervals in advance, and the detected pressure value is compared with different pressure value intervals to determine which pressure value range the first pressure value falls in, and the pressure is obtained.
  • a first area corresponding to the value interval is used to determine the area of the area corresponding to the pressure according to the pressure state, thereby obtaining a first feature extraction area having the area of the first area.
  • the preset pressure value has a positive correlation with the area of the feature extraction area, for example, the feature value corresponding to the larger pressure value is The area of the area is also larger.
  • the diameter and the area of the corresponding circle are determined according to the magnitude of the pressure value, and the first position corresponding to the position of the touch screen operation can be formed, and the area is corresponding to the first The first feature extraction area of the area.
  • Step 203 Perform feature extraction on the first target object in the first feature extraction area, acquire feature information of the first target object, and obtain first feature matching information.
  • FIG. 4 is a schematic diagram of a first feature extraction area on a touch display component according to a method for photographing focus according to an embodiment of the present invention.
  • a touch screen operation occurs in step 202 of the embodiment.
  • the first feature extraction area 24 having the first area and the area is the first area.
  • step 203 on the touch display component 22 of the electronic device 21, the portion of the current image displayed in the first feature extraction area 24 is formed as a feature. Extracting the object, performing feature extraction on the first target object 23 in the selected part of the user, acquiring feature information of the first target object 23, using the feature information as the first feature matching information, and performing the target tracking process .
  • the method for performing target tracking and focusing on the subsequent images displayed on the touch display component according to the first feature matching information may include steps 204 to 205:
  • Step 204 Match, according to the first feature matching information, a subsequent image displayed on the touch display component, identify a target object in the subsequent image that matches the first feature matching information, and acquire a corresponding target object. Screen display area.
  • the subsequent images displayed on the touch display component are matched according to the basis, and in the matching process, for example, the color and the contour including the first target object may be Matching features such as texture, shape, etc., when the matching degree reaches a certain ratio, for example, when the matching degree is 80%, the matching can be considered as successful, and then the existing image matching the first feature is recognized.
  • the second target object corresponding to the information, thereby completing the matching recognition process, and correspondingly acquiring the screen display area where the matched target object is located; that is, by matching and recognizing the moving object according to the extracted object feature, completing the display
  • the tracking process of the object with changed position enables real-time accurate focusing of the image after the change of the display position of the object.
  • the obtaining of the subsequent image displayed on the touch display component may be performed by refreshing the display screen on the touch display component and obtaining the subsequent display on the touch display component. image.
  • Step 205 performing screen focusing on the screen display area.
  • step 205 the screen focusing operation is performed on the screen display area corresponding to the matched target object in the subsequent image.
  • the movement of the first target object is tracked and a real-time focusing process of the display position of the second target object matched after the movement is performed.
  • the edge of the target object matched in the screen display area can be judged, and when the sharpness of the edge of the matched target object reaches the maximum, it is judged that the screen display area is The matched target object reaches the in-focus state.
  • the current image and the subsequent image may be display images in the camera screen preview interface of the terminal.
  • the picture focusing operation can be performed by the image pickup device on the terminal.
  • the method for photographing focus provided in this embodiment, by detecting the touch display during the photographing process
  • the first area corresponding to the first pressure value is obtained, and then the first feature extraction area corresponding to the first area is obtained at the occurrence position on the touch display component, and the current image is extracted in the first feature extraction area.
  • the feature information of the first target object obtains the first feature matching information, and performs target tracking and image focusing on the subsequent image displayed on the touch display component according to the first feature matching information; this embodiment implements matching and recognition on the moving object.
  • the tracking process of the object showing the change of the position is completed, so that the real-time accurate focusing of the image can be performed after the change of the display position of the object, thereby satisfying the actual needs of the user and improving the user experience.
  • the embodiment of the present invention further provides a method for photographing focus, as shown in FIG. 3, which is another photographing focus provided by the embodiment of the present invention.
  • the method of the method may include the following steps, that is, steps 301 to 308:
  • Step 301 Detect a position where the touch screen operation on the touch display component occurs and a first pressure value generated at the occurrence position, and acquire a duration of the touch screen operation at the occurrence position.
  • the method may further include: acquiring the touch screen operation at the occurrence position. duration.
  • the implementation of obtaining the duration may be, for example, obtaining a duration of the touch screen operation at the location of occurrence by a timer built in the terminal.
  • the position information corresponding to the touch screen operation and the first pressure value and the duration at the position where the touch screen operation occurs are obtained, and according to the occurrence position and touch of the touch screen operation.
  • the magnitude and duration of the first pressure generated during the screen operation is a prerequisite for subsequent operation.
  • Step 302 When it is determined that the duration reaches a preset time length, the screen is focused at the occurrence position.
  • step 302 it may be determined according to the length of time that the user's finger touches the screen during the touch screen operation, whether the user clicks the operation screen or presses the screen operation, thereby determining that the user is a photo operation.
  • Still focus operation For example, when it is determined that the duration does not reach the preset time length, determining that the touch screen operation is a click operation corresponds to the photographing operation, and when it is determined that the duration reaches the preset time length, determining that the touch screen operation is a pressing operation corresponds to The focusing operation is such that the transmission position and the first focus position at which the feature extraction of the first target object needs to be performed can be obtained according to the touch screen pressing position, that is, the occurrence position of the touch screen operation.
  • the user selects the first target object at the occurrence position of the operation through the touch screen operation, starts the camera motor according to the sharpness of the edge of the first target object on the preview image, and adjusts the camera lens and the CCD. Distance, find the clearest position in the image and complete the focusing process.
  • the display screen of the focus position is clearer, and the first feature extraction area is set at the occurrence position, that is, at the focus position of the screen, and the first target object can be extracted more clearly and accurately. Characteristic information.
  • the method may further include:
  • Step 303 Determine whether the first pressure value is within a preset threshold range.
  • a threshold range of pressure may be preset, and after obtaining the pressure value (ie, the first pressure value) received by the terminal screen, determining whether the first pressure value is within the preset threshold range, if the first pressure value is in the Within the preset threshold range, the first pressure value meets a preset condition, and if the pressure value is greater than or less than the preset threshold range, the condition is not satisfied.
  • the pressure value ie, the first pressure value
  • the pressure value can be divided into several different intervals from small to large, for example, in grams, 50 grams of pressure is equivalent to 50 grams of weight on the screen surface, and the pressure is determined from 50 grams or less to perform other
  • the pressure value of the normal touch screen operation; setting the pressure value between 50 grams and 500 grams is the pressure value required for the first target object selection and subsequent target tracking and focusing operation; during the operation, when the first feature extraction area is round
  • the corresponding pressure interval between 50 grams and 500 grams corresponds to a circle having a diameter of 1 cm to a diameter of 3 cm, and the first target object is characterized in this circle, wherein the pressure is proportional to the diameter and area of the circle.
  • Relationship; setting the corresponding pressure value of 500 grams or more is non-safety pressure Force state.
  • the first pressure value is in the pressure value interval corresponding to 50 grams to 500 grams, it is determined that the first pressure value is within the preset threshold range, and erroneous operation can be prevented.
  • the first feature extraction area corresponding to the first pressure value on the touch display component is performed at the acquisition occurrence position, and the current image is extracted.
  • the method provided in this embodiment may further include:
  • Step 304 When the first pressure value is greater than a maximum value of the preset threshold range, a pressure exceeding warning is issued.
  • the preset threshold range is a pressure value range corresponding to 50 grams to 500 grams
  • the pressure value range corresponding to the range of 500 grams or more is a non-safe pressure state
  • the terminal sends a warning that the pressure exceeds the standard
  • the implementation of the pressure exceeding the warning may include one or more of the following: motor vibration, display color change
  • the speaker makes a sound, and the text prompts on the screen.
  • the method provided in this embodiment may further include:
  • Step 305 Acquire a first feature extraction region corresponding to the first pressure value on the touch display component, and extract feature information of the first target object of the current image in the first feature extraction region to obtain a first feature match. information.
  • feature extraction is performed on the current image displayed on the touch display component, and the range and size of the first feature extraction area are determined by the occurrence position of the user's touch screen operation and the first pressure value of the touch screen operation.
  • the shape of the first feature extraction area may be set to a circular area or a square area.
  • the feature information of the extracted first target object may include: color information, shape information, object contour information, and texture information of the first target object. Wait.
  • Step 306 Perform target tracking and focusing on subsequent images displayed on the touch display component according to the first feature matching information.
  • step 306 the implementation of the acquisition of the subsequent image displayed on the touch display component is implemented.
  • the method may be that the display screen on the touch display component is refreshed by a preset time interval to obtain a subsequent image displayed on the touch display component.
  • the recognition tracking can acquire the changing position of the target object at different times, and perform the focusing operation of the screen on the changed position of the tracked target object, and the screen focusing operation can be completed by the camera device on the terminal.
  • the display image in the preview interface of the camera is refreshed at a certain interval, for example, refreshing one frame in 0.5 seconds, and extracting a target object that matches the first feature matching information in the subsequent image corresponding to each refresh may be Extracting color, contour, texture and other information in the subsequent image, matching and matching with the object features saved in the cache, identifying the matched target object, and acquiring a screen display area corresponding to the matched target object, and The screen is focused on the screen display area.
  • the method provided in this embodiment may further include steps 307 to 308:
  • Step 307 Determine a second feature extraction area by performing a screen display area corresponding to the second target object obtained by the target tracking.
  • step 306 target tracking is performed on the subsequent image displayed on the touch display component.
  • step 307 of the embodiment a new feature extraction area is determined on the screen display area corresponding to the second target object obtained after the tracking.
  • the new feature extraction area that is, the second feature extraction area
  • the second feature extraction area may be, for example, an area range having the same area as the first feature extraction area, and the second feature extraction area may be centered on the screen display area.
  • a new area range of the area of the first feature extraction area a new feature extraction may be performed on the second target object in the second feature extraction area, and saved to the cache unit to accommodate the occurrence of the object moving
  • the image shows changes, such as changes in the angle of the object, changes in the outline, and so on.
  • Step 308 Perform feature extraction on the second target object in the second feature extraction area, acquire feature information of the second target object, and obtain second feature matching information.
  • step 308 feature extraction is performed on the second target object in the second feature extraction area to adapt to image display changes occurring during the movement of the object, such as changes in the angle of the object, contour changes, etc., so that the terminal During the focusing process of the second target object after the display position is changed, more accurate target tracking can be performed according to the change of the posture of the moving object during the movement, and accurate focusing can be performed.
  • the method provided in this embodiment may further include:
  • Step 309 Perform target tracking and focusing on subsequent images displayed on the touch display component according to the second feature matching information.
  • the target tracking and focusing are performed by performing new feature matching information obtained by performing feature extraction after the object is moved, so as to continuously perform feature extraction and update for the movement of the target object, and according to each The obtained feature matching information is performed, and the target image displayed on the touch display component is subjected to target tracking, and the target object matching the feature matching information in each image of the current camera preview interface is recognized, and the matched target object is acquired. Corresponding screen display area and refocusing on this location area.
  • the step of performing target tracking and focusing on a subsequent image displayed on the touch display component according to the first feature matching information, and performing feature extraction on the second target object in the second feature extraction region to acquire the second target object The feature information, the step of obtaining the second feature matching information, all needs to be ended when the user's photographing instruction is acquired.
  • the method for photographing the focus provided by the embodiment, by detecting the occurrence position of the touch screen operation on the touch display component and the first pressure value and duration generated at the occurrence position during the photographing process, and when the preset condition is met And obtaining, at a position on the touch display component, a first feature extraction region corresponding to the first pressure value, and extracting feature information of the first target object in the current image in the first feature extraction region to obtain the first feature Matching the information, and performing target tracking and image focusing on the subsequent image displayed on the touch display component according to the first feature matching information, and then, performing new feature information of the target object extracted every time the target is tracked, as another
  • the basis of the target tracking and the image focusing; the embodiment realizes the matching and recognition of the moving object, and completes the tracking process of the object whose display position changes, so as to realize the real-time accurate focusing of the image after the object display position is changed. Meet the actual needs of users and enhance the user experience.
  • the embodiment of the present invention further provides an electronic device.
  • FIG. 5 a schematic structural diagram of an electronic device according to an embodiment of the present invention is provided.
  • the electronic device provided in this embodiment may include: a detection module 401, and a first acquisition. Module 402 and tracking and focusing module 403.
  • the detecting module 401 is configured to detect a position where the touch screen operation on the touch display component occurs and a first pressure value generated at the generated position.
  • the first obtaining module 402 is configured to: at the occurrence position detected by the detecting module 401, the first feature extraction area corresponding to the first pressure value detected by the detecting module 401 on the touch display component, and extracting the current image in the The feature information of the first target object in the first feature extraction area obtains the first feature matching information.
  • the tracking and focusing module 403 is configured to perform target tracking and focusing on the subsequent images displayed on the touch display component according to the first feature matching information obtained by the first acquiring module 402.
  • FIG. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
  • the first obtaining module 402 in this embodiment may include: an obtaining unit 4021 and a feature extracting unit 4022.
  • the obtaining unit 4021 is configured to: according to the first pressure value detected by the detecting module 402, obtain the first area corresponding to the first pressure value in the preset pressure value and the area correspondence table of the feature extraction area, and form The first feature extraction area on the touch display component centered on the occurrence location and having an area of the first area.
  • the feature extraction unit 4022 is configured to perform feature extraction on the first target object in the first feature extraction area acquired by the acquisition unit 4021, acquire feature information of the first target object, and obtain first feature matching information.
  • the tracking and focusing module 403 in this embodiment may include: a matching identifying unit 4031 and a focusing unit 4032.
  • the matching and identifying unit 4031 is configured to: match the subsequent image displayed on the touch display component according to the first feature matching information obtained by the first acquiring module 402, and identify the matching of the first feature matching information in the subsequent image.
  • the focusing unit 4032 is configured to: enter the screen display area acquired by the matching recognition unit 4031 Line image is in focus.
  • the electronic device provided in this embodiment may further include: a determining module 404 and a second obtaining module 405.
  • the determining module 404 is configured to: determine, in the screen display area where the second target object is obtained by the tracking and focusing module 403, and determine the second feature extraction area.
  • the second obtaining module 405 is configured to: perform feature extraction on the second target object in the second feature extraction area determined by the determining module 404, acquire feature information of the second target object, and obtain second feature matching information;
  • the tracking and focusing module 403 is further configured to: perform target tracking and focusing on the subsequent images displayed on the touch display component according to the feature matching information obtained by the second acquiring module 405.
  • the electronic device provided in this embodiment may further include: a third obtaining module 406 and a focusing module 407.
  • the third obtaining module 406 is configured to: acquire a duration of the touch screen operation at the occurrence position.
  • the focusing module 407 is configured to: when it is determined that the duration acquired by the third acquiring module 406 reaches a preset time length, perform screen focusing on the generated position, and trigger the first obtaining module 402 to acquire the generated position, and touch the display component. And extracting, by the first feature extraction region corresponding to the first pressure value, feature information of the first target object of the current image in the first feature extraction region, to obtain first feature matching information.
  • the electronic device provided in this embodiment may further include: a determining module 408.
  • the determining module 408 is configured to: determine whether the first pressure value detected by the detecting module 401 is within a preset threshold range;
  • the first obtaining module 402 in this embodiment is configured to: when the determining module 408 determines that the first pressure value is within a preset threshold range, acquiring the occurrence position, touching the display component with the first And extracting, by the first feature extraction region corresponding to the pressure value, feature information of the first target object of the current image in the first feature extraction region, to obtain first feature matching information.
  • the electronic device provided in this embodiment may further include: an alert module 409.
  • the alert module 409 is configured to: when the determining module 408 determines that the first pressure value exceeds the pre- When the maximum value in the threshold range is set, a pressure overshoot warning is issued.
  • the electronic device provided by the embodiment of the present invention can implement various processes implemented by the method for photographing focus in the above embodiment. To avoid repetition, details are not described herein again.
  • the electronic device can be a mobile phone, a tablet computer, a mobile camera device, or the like.
  • the electronic device detects the occurrence position of the touch screen operation on the touch display component and the first pressure value generated at the occurrence position during the photographing process, and combines the occurrence position of the touch screen operation and the generated first a first value extraction area corresponding to the first pressure value on the touch display component, and extracting feature information of the first target object in the current image in the first feature extraction area to obtain first feature matching information, And performing target tracking and image focusing on the subsequent images displayed on the touch display component according to the first feature matching information; in this embodiment, by locking and tracking the focused target object, the object is moved during the moving process.
  • the motion of the object performs a dynamic focusing process to meet the actual needs of the user and enhance the user experience.
  • all or part of the steps of the above embodiments may also be implemented using an integrated circuit.
  • the steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the position of the touch screen operation on the touch display component and the first pressure value generated at the occurrence position are detected, and the position of the touch screen operation and the generated first pressure value are acquired.
  • Touching a first feature extraction area corresponding to the first pressure value on the display component extracting feature information of the first target object in the current image in the first feature extraction area, to obtain first feature matching information, and according to the first A feature matching information performs target tracking and image focusing on subsequent images displayed on the touch display component.
  • the movement of the target object is achieved during the movement of the object.
  • the dynamic focusing process is carried out to meet the actual needs of the user and enhance the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)

Abstract

一种拍照对焦的方法及电子设备,其中,该方法包括:检测触摸显示组件上触屏操作的发生位置及在所述发生位置上产生的第一压力值;获取发生位置处,该触摸显示组件上与该第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息;根据该第一特征匹配信息,对触摸显示组件上显示的后续图像进行目标跟踪和对焦。

Description

一种拍照对焦的方法及电子设备 技术领域
本申请涉及但不限于通信技术领域。
背景技术
随着电子设备的发展,新一代电子设备,例如手机上采用了压力模块,屏幕能够判断压力的应用越来越多,对屏幕未施加压力和施加压力的情况下进行的操作可以实现不同的操作效果。
相关技术的终端产品中,拍照的时候用手指进行触屏操作,可以对操作位置进行对焦,但是相关技术的拍照对焦方法中适用于对静态物体进行对焦操作,或者适用于电子设备与被拍物体之间处于相对静止的状态,即相关技术的拍照对焦方法在拍摄静止的物体时比较有用,但是对于移动的物体就不能很好地进行对焦,例如当用户触屏操作位置上点选的物体是一个移动的物体,或者用户希望在电子设备移动的时候仍然对这个物体进行对焦时,只有用户不停地点击屏幕上与移动的物体相对应的显示位置,才能实现对显示画面中移动的目标物体进行对焦处理。显然地,相关技术中的拍照对焦方法不能很好地适用于需要移动对焦的情况,用户使用便捷度较低,降低用户使用体验。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种拍照对焦的方法及电子设备,以解决相关技术中的拍照对焦方法在拍摄静止的物体时比较有用,但是对于移动的物体就不能很好地进行对焦的问题。
一种拍照对焦的方法,包括:
检测触摸显示组件上触屏操作的发生位置及在所述发生位置上产生的第 一压力值;
获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息;
根据所述第一特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对焦。
可选地,所述获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息,包括:
根据所述第一压力值,在预设的压力值与特征提取区域的面积对应表中,获取所述第一压力值对应的第一面积,形成所述触摸显示组件上以所述发生位置为中心,且面积为所述第一面积的所述第一特征提取区域;
对所述第一特征提取区域内的所述第一目标物体进行特征提取,获取所述第一目标物体的所述特征信息,得到所述第一特征匹配信息。
可选地,所述根据所述第一特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对焦,包括:
根据所述第一特征匹配信息,对所述触摸显示组件上显示的所述后续图像进行匹配,识别所述后续图像中与所述第一特征匹配信息相匹配的目标物体,并获取所匹配到的目标物体对应的屏幕显示区域;
在所述屏幕显示区域进行画面对焦。
可选地,所述根据所述第一特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对焦之后,所述方法还包括:
在进行目标跟踪得到的第二目标物体所在屏幕显示区域,确定第二特征提取区域;
对所述第二特征提取区域内的所述第二目标物体进行特征提取,获取所述第二目标物体的特征信息,得到第二特征匹配信息;
根据所述第二特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对焦。
可选地,所述检测触摸显示组件上触屏操作的发生位置及在所述发生位置上产生的第一压力值时,所述方法还包括:
获取所述触屏操作在所述发生位置上的持续时间;
所述获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息,包括:
在判断所述持续时间达到预设时间长度时,在所述发生位置上进行画面对焦,并获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的所述第一特征提取区域,提取当前图像在所述第一特征提取区域中的所述第一目标物体的特征信息,得到所述第一特征匹配信息。
可选地,所述检测触摸显示组件上触屏操作的发生位置及在所述发生位置上产生的第一压力值之后,所述方法还包括:
判断所述第一压力值是否在预设阈值范围内;
所述获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息,包括:
当判断出所述第一压力值在所述预设阈值范围内时,获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的所述第一特征提取区域,提取当前图像在所述第一特征提取区域中的所述第一目标物体的特征信息,得到所述第一特征匹配信息。
可选地,所述判断所述第一压力值是否在预设阈值范围内之后,所述方法还包括:
当判断出所述第一压力值大于所述预设阈值范围的最大值时,发出压力超标警示。
一种电子设备,包括:
检测模块,设置为:检测触摸显示组件上触屏操作的发生位置及在所述发生位置上产生的第一压力值;
第一获取模块,设置为:获取所述检测模块检测到的所述发生位置处, 所述触摸显示组件上与所述检测模块检测到的所述第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息;
跟踪及对焦模块,设置为:根据所述第一获取模块得到的所述第一特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对焦。
可选地,所述第一获取模块包括:
获取单元,设置为:根据所述检测模块检测到的所述第一压力值,在预设的压力值与特征提取区域的面积对应表中,获取所述第一压力值对应的第一面积,形成所述触摸显示组件上以所述发生位置为中心,且面积为所述第一面积的所述第一特征提取区域;
特征提取单元,设置为:对所述获取单元获取的所述第一特征提取区域内的所述第一目标物体进行特征提取,获取所述第一目标物体的所述特征信息,得到所述第一特征匹配信息。
可选地,所述跟踪及对焦模块包括:
匹配识别单元,设置为:根据所述第一获取模块得到的所述第一特征匹配信息,对所述触摸显示组件上显示的后续图像进行匹配,识别所述后续图像中与所述第一特征匹配信息相匹配的目标物体,并获取所匹配到的目标物体对应的屏幕显示区域;
对焦单元,设置为:在所述匹配识别单元获取到的所述屏幕显示区域进行画面对焦。
可选地,所述电子设备还包括:
确定模块,设置为:在所述跟踪及对焦模块进行目标跟踪得到的第二目标物体所在屏幕显示区域,确定第二特征提取区域;
第二获取模块,设置为:对所述确定模块确定的所述第二特征提取区域内的所述第二目标物体进行特征提取,获取所述第二目标物体的特征信息,得到第二特征匹配信息;
所述跟踪及对焦模块,还设置为:根据所述第二获取模块得到的所述第二特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对 焦。
可选地,所述电子设备还包括:
第三获取模块,设置为:获取所述触屏操作在所述发生位置上的持续时间;
对焦模块,设置为:在判断所述第三获取模块获取的所述持续时间达到预设时间长度时,在所述发生位置上进行画面对焦,并触发所述第一获取模块获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的所述第一特征提取区域,提取当前图像在所述第一特征提取区域中的所述第一目标物体的特征信息,得到所述第一特征匹配信息。
可选地,所述电子设备还包括:
判断模块,设置为:判断所述检测模块检测到的所述第一压力值是否在预设阈值范围内;
所述第一获取模块,是设置为:当所述判断模块判断出所述第一压力值在所述预设阈值范围内时,获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的所述第一特征提取区域,提取当前图像在所述第一特征提取区域中的所述第一目标物体的特征信息,得到所述第一特征匹配信息。
可选地,所述电子设备还包括:
警示模块,设置为:当所述判断模块判断出所述第一压力值大于所述预设阈值范围的最大值时,发出压力超标警示。
本发明实施例提供的拍照对焦的方法及电子设备,通过在拍照过程中,检测触摸显示组件上触屏操作的发生位置及在该发生位置上产生的第一压力值,结合触屏操作的发生位置及产生的第一压力值,获取触摸显示组件上的与该第一压力值对应的第一特征提取区域,在该第一特征提取区域中提取当前图像中第一目标物体的特征信息,得到第一特征匹配信息,并根据该第一特征匹配信息对触摸显示组件上显示的后续图像进行目标跟踪和画面对焦;本发明实施例通过对移动的目标物体锁定并跟踪对焦,实现了在物体的移动过程中,随着目标物体的运动而进行动态的对焦过程,满足用户的实际需求,提升用户体验。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例提供的一种拍照对焦的方法的流程图;
图2为本发明实施例提供的另一种拍照对焦的方法的流程图;
图3为本发明实施例提供的又一种拍照对焦的方法的流程图;
图4为本发明实施例提供的拍照对焦的方法中一种触摸显示组件上第一特征提取区域的示意图;
图5为本本发明实施例提供的一种电子设备的结构示意图;
图6为本本发明实施例提供的另一种电子设备的结构示意图。
本发明的实施方式
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
如图1所示,为本发明实施例提供的一种拍照对焦的方法的流程图,本实施例提供的拍照对焦的方法可以包括如下步骤,即步骤101~步骤103:
步骤101,检测触摸显示组件上触屏操作的发生位置及在该发生位置上产生的第一压力值。
在拍照状态下,用户按压触摸显示组件上屏幕的某个地方,实现在按压处进行对焦的操作,首先通过采集手指触摸屏幕的位置参数,获得对应的位置信息及在该触屏操作的发生位置上的压力值,根据触屏操作的发生位置及触屏操作过程中产生的第一压力值大小,作为接下来操作执行的前提条件。该第一压力值可以通过压力传感器采集得到。
伴随该触屏操作的发生,可以根据该触屏操作,在该触屏操作的发生位 置处进行预先的画面对焦处理,再进行接下来的对位置移动后的目标物体的画面对焦处理过程,并且可使后续的特征提取过程中能提取出更清晰的物体特征。
步骤102,获取发生位置处,触摸显示组件上与第一压力值对应的第一特征提取区域,提取当前图像在该第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息。
在本发明实施例中,对触摸显示组件上显示的当前图像进行特征提取,该第一特征提取区域的范围及大小由用户触屏操作的发生位置及触屏操作的第一压力值大小来决定。该第一特征提取区域的形状可以设置为圆形区域或者方形区域;其中,提取的第一目标物体的特征信息可以包括:该第一目标物体的颜色信息,形状信息,物体轮廓信息,纹理信息等。摄像头图像采集元件电荷耦合器件(Charge Coupled Device,简称为:CCD)采集第一特征提取区域内的颜色信息时,可以采集区域范围内的红、绿、蓝(Red、Green、Blue,简称为:R、G、B)三个子像素位置的颜色信息,可以将R、G、B三个子像素的颜色数据保存在缓存单元中;或者,可以将该第一特征提取区域中的图像转化成黑白二值图像,该黑白二值图像包含第一目标物体的轮廓信息,形状信息,纹理信息等,可将该数据保存在缓存单元中,以供后续步骤中的调用。
步骤103,根据该第一特征匹配信息,对触摸显示组件上显示的后续图像进行目标跟踪和对焦。
本实施例在步骤103的过程中,对触摸显示组件上显示的后续图像的获取的实现方式可以是,间隔一预设时间,刷新触摸显示组件上的显示画面,得到触摸显示组件上显示的后续图像。
在实际应用中,对应于一个时间间隔内的一次显示画面刷新操作,存在一次根据第一特征匹配信息,进行与触摸显示组件上显示的图像的一次匹配过程,实现对后续图像中目标物体的目标识别跟踪,可以获取到目标物体不同时刻的变化位置,并在跟踪到的目标物体的变化位置上进行画面的对焦操作,该画面对焦操作可以由终端上的摄像装置完成。
本实施例提供的拍照对焦的方法,通过在拍照过程中,检测触摸显示组 件上触屏操作的发生位置及在该发生位置上产生的第一压力值,结合触屏操作的发生位置及产生的第一压力值,获取触摸显示组件上的与该第一压力值对应的第一特征提取区域,在该第一特征提取区域中提取当前图像中第一目标物体的特征信息,得到第一特征匹配信息,并根据该第一特征匹配信息对触摸显示组件上显示的后续图像进行目标跟踪和画面对焦;本实施例通过对移动的目标物体锁定并跟踪对焦,实现了在物体的移动过程中,随着目标物体的运动而进行动态的对焦过程,满足用户的实际需求,提升用户体验。
可选地,结合上述实施例提供的拍照对焦的方法中主要步骤,本发明实施例还提供一种拍照对焦的方法,如图2所示,为本发明实施例提供的另一种拍照对焦的方法的流程图,本实施例提供的方法可以包括如下步骤,即步骤201~步骤205:
步骤201,检测触摸显示组件上触屏操作的发生位置及在该发生位置上产生的第一压力值。
本实施例在步骤201中,首先通过采集手指触摸屏幕的位置参数,获得对应的位置信息及在该触屏操作发送位置上的第一压力值,根据触屏操作的发生位置及触屏操作过程中产生的第一压力值大小,来作为后续操作执行的前提条件。
在上述步骤201完成之后,需要获取该发生位置处,触摸显示组件上与该第一压力值对应的第一特征提取区域,提取当前图像在该第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息。
在实际应用中,上述获取该发生位置处,触摸显示组件上与该第一压力值对应的第一特征提取区域,提取当前图像在第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息的实现方式,可以包括步骤202~步骤203:
步骤202,根据该第一压力值,在预设的压力值与特征提取区域的面积对应表中,获取该第一压力值对应的第一面积,形成该触摸显示组件上以发生位置为中心,且面积为该第一面积的第一特征提取区域。
本实施例在步骤202中,实现如何获取触屏操作的发生位置处,触摸显示组件上与第一压力值对应的第一特征提取区域;可选地,上述预设的压力值与特征提取区域的面积对应表中,可以是记录的压力值与面积值的一一对应关系,或者可以是记录的压力值区间与面积值的对应关系。
可选地,本实施例的步骤202中根据该第一压力值,在预设的压力值与特征提取区域的面积对应表中,获取该第一压力值对应的第一面积的实现方式,可以包括:通过预设的压力值与特征提取区域的面积对应表中,压力值与面积值的一一对应关系,获取第一压力值对应的第一面积;或者,匹配第一压力值在预设的压力值与特征提取区域的面积对应表中所处的压力值区间,获取与该压力值区间对应的第一面积。在实际应用中,可以预先将压力值区分为若干个不同的区间,将检测到的压力数值与不同的压力值区间进行比较,判断第一压力值落在哪个压力值区间,获取到与该压力值区间对应的一个第一面积,实现根据压力状态判断压力对应的区域面积,进而得到面积为该第一面积的第一特征提取区域。
可选地,在该预设的压力值与特征提取区域的面积对应表中,预设的压力值与特征提取区域的面积之间呈正相关性,例如可以为,压力值越大对应的特征提取区域的面积也越大。
举例来说,当特征提取区域的形状设置为圆形时,根据压力值的大小确定对应的圆形的直径和面积,可以形成以触屏操作的发生位置为中心,且面积为对应的第一面积的第一特征提取区域。
步骤203,对该第一特征提取区域内的第一目标物体进行特征提取,获取该第一目标物体的特征信息,得到第一特征匹配信息。
图4为本发明实施例提供的拍照对焦的方法中一种触摸显示组件上第一特征提取区域的示意图,结合图4所示,在本实施例的步骤202中,形成以触屏操作的发生位置为中心,且面积为第一面积的第一特征提取区域24,在步骤203中,在电子设备21的触摸显示组件22上,当前图像显示于第一特征提取区域24内的部分形成为特征提取的对象,对用户选中的该部分中的第一目标物体23进行特征提取,获取第一目标物体23的特征信息,将该特征信息作为第一特征匹配信息,进行接来下的目标跟踪过程。
在上述步骤基础上,根据该第一特征匹配信息,对触摸显示组件上显示的后续图像进行目标跟踪和对焦的实现方式,可以包括步骤204~步骤205:
步骤204,根据该第一特征匹配信息,对触摸显示组件上显示的后续图像进行匹配,识别后续图像中与该第一特征匹配信息相匹配的目标物体,并获取所匹配到的目标物体对应的屏幕显示区域。
在本实施例中,根据提取得到的第一特征匹配信息,以此为依据对触摸显示组件上显示的后续图像进行匹配,在匹配过程中,例如可以是对包括第一目标物体的颜色、轮廓、纹理、形状等在内的特征进行匹配,可以在匹配度到达一定比例时,例如匹配的吻合度为80%时,可以认为匹配成功,进而识别出后续图像中存在的与该第一特征匹配信息相符的第二目标物体,从而完成匹配识别过程,并对应获取到所匹配到的目标物体所处的屏幕显示区域;即通过依据提取到的物体特征,对移动物体进行匹配识别,完成对显示位置变化的物体的追踪过程,以实现在物体显示位置变化后,也能进行对图像的实时准确对焦。
本实施例在步骤204的过程中,对触摸显示组件上显示的后续图像的获取的实现方式可以是,间隔一预设时间,刷新触摸显示组件上的显示画面,得到触摸显示组件上显示的后续图像。
步骤205,在该屏幕显示区域进行画面对焦。
本实施例在步骤205中,完成在与后续图像中的匹配到的目标物体所对应的屏幕显示区域上,进行画面对焦操作。以最终实现根据第一特征匹配信息,追踪第一目标物体的移动并进行对移动后匹配到的第二目标物体所在显示位置的实时对焦过程。
在实际应用中,在对焦时,可通过对屏幕显示区域中所匹配到的目标物体边缘进行判断,当该匹配到的目标物体边缘的锐度达到最大时,此时判断在屏幕显示区域对该匹配到的目标物体达到对焦状态。该当前图像及后续图像可以为终端的摄像头画面预览界面中的显示图像。实际地,该画面对焦操作可以通过终端上的摄像装置来执行。
本实施例中提供的拍照对焦的方法,通过在拍照过程中,检测触摸显示 组件上触屏操作的发生位置及在该发生位置上产生的第一压力值,结合触屏操作的发生位置及产生的第一压力值,在预设的压力值与特征提取区域的面积对应表中,获取该第一压力值对应的第一面积,进而在触摸显示组件上的发生位置处,得到该第一面积对应的第一特征提取区域,在该第一特征提取区域中提取当前图像中第一目标物体的特征信息,得到第一特征匹配信息,并根据该第一特征匹配信息对触摸显示组件上显示的后续图像进行目标跟踪和画面对焦;本实施例实现了对移动物体进行匹配识别,完成对显示位置变化的物体的追踪过程,以实现在物体显示位置变化后,也能进行对图像的实时准确对焦,满足用户的实际需求,提升用户体验。
可选地,结合上述实施例提供的拍照对焦的方法中的步骤,本发明实施例还提供一种拍照对焦的方法,如图3所示,为本发明实施例提供的又一种拍照对焦的方法的流程图,本实施例提供的方法可以包括如下步骤,即步骤301~步骤308:
步骤301,检测触摸显示组件上触屏操作的发生位置及在该发生位置上产生的第一压力值,并获取触屏操作在该发生位置上的持续时间。
本实施例在步骤301中,在检测触摸显示组件上触屏操作的发生位置及在该发生位置上产生的第一压力值时,该方法还可以包括:获取触屏操作在该发生位置上的持续时间。获取该持续时间的实现方式例如可以为,通过终端上内置的计时器得到触屏操作在发生位置上的持续时间。
在拍照状态下,通过采集手指触摸屏幕的位置参数,获得触屏操作对应的位置信息及在该触屏操作发生位置上的第一压力值和持续时间,并根据触屏操作的发生位置、触屏操作过程中产生的第一压力值大小及持续时间,作为后续操作执行的前提条件。
步骤302,在判断该持续时间达到预设时间长度时,在该发生位置上进行画面对焦。
本实施例在步骤302中,可根据用户手指在触屏操作中与屏幕接触的时间长短来判断是点击操作屏幕操作还是按压屏幕操作,进而判断用户是拍照操 作还是对焦操作。例如,当判断出持续时间没有达到预设时间长度时,判断触屏操作是点击操作,对应于拍照操作,当判断出持续时间达到预设时间长度时,判断触屏操作是按压操作,对应于对焦操作,从而,可以根据触摸屏按压位置即触屏操作的发生位置,获得需要进行第一目标物体的特征提取的发送位置及首次对焦位置。在该发生位置上进行画面对焦;随后,执行获取该发生位置处,触摸显示组件上与第一压力值对应的第一特征提取区域,提取当前图像在第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息的步骤。
对应摄像头拍照预览图像上,用户通过触屏操作在该操作的发生位置点选出该第一目标物体,根据预览图像上该第一目标物体边缘的锐度启动摄像头马达,调整摄像头镜片与CCD的距离,找到成像最清晰的位置,完成对焦过程。
在发生位置上进行画面对焦操作后,对焦位置的显示画面更清晰,第一特征提取区域设置于发生位置处,也就是设置于画面对焦位置处,可以提取到更清晰、准确的第一目标物体的特征信息。
可选地,在检测触摸显示组件上触屏操作的发生位置及在该发生位置上产生的第一压力值之后,即步骤301之后,该方法还可以包括:
步骤303,判断第一压力值是否在预设阈值范围内。
可预先设置一个压力的阈值范围,在获取到终端屏幕承受的压力数值(即第一压力值)之后,判断该第一压力值是否在该预设阈值范围内,若该第一压力值在该预设阈值范围内,则该第一压力值符合预设条件,若该压力值大于或小于该预设阈值范围,则不满足条件。
在实际应用中,可以将压力值从小到大分作几个不同的区间,例如以克为单位,50克压力相当于50克砝码压在屏幕表面,设置从50克以下压力值判断为进行其他正常触屏操作的压力值;设置50克到500克之间的压力值为需要进行第一目标物体选取及后续目标跟踪及对焦操作的压力值;在操作过程中,当第一特征提取区域为圆形时,该50克到500克之间对应的压力区间,对应直径1厘米到直径3厘米的圆,在这个圆内对第一目标物体进行特征识别,其中,压力与圆的直径和面积成正比关系;设置500克以上对应的压力值为非安全压 力状态。当第一压力值处于与50克到500克对应的压力值区间时,判断该第一压力值在上述预设阈值范围内,可以防止误操作。
本实施例中,在判断第一压力值在该预设阈值范围内时,随后,执行获取发生位置处,触摸显示组件上与第一压力值对应的第一特征提取区域,提取当前图像在第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息的步骤。
可选地,在判断该第一压力值是否在预设阈值范围内之后,本实施例提供的方法还可以包括:
步骤304,在该第一压力值大于预设阈值范围的最大值时,发出压力超标警示。
参考上述对压力值范围的限定,在预设阈值范围为与50克到500克对应的压力值区间时,与500克以上范围对应的压力值范围为非安全压力状态,当第一压力值大于上述预设阈值范围的最大值,即超出与500克重量对应的压力值时,终端发出压力超标警示,该压力超标警示的实现方式可以包括以下一项或多项:马达振动,显示屏颜色变化,喇叭发出声响,屏幕中进行文字提示等方式。
与上述步骤相对应地,本实施例提供的方法还可以包括:
步骤305,获取发生位置处,触摸显示组件上与第一压力值对应的第一特征提取区域,提取当前图像在该第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息。
在本实施例在中,对触摸显示组件上显示的当前图像进行特征提取,该第一特征提取区域的范围及大小由用户触屏操作的发生位置及触屏操作的第一压力值大小来决定。该第一特征提取区域的形状可以设置为圆形区域或者方形区域;其中,提取的第一目标物体的特征信息可以包括:该第一目标物体的颜色信息,形状信息,物体轮廓信息,纹理信息等。
步骤306,根据该第一特征匹配信息,对触摸显示组件上显示的后续图像进行目标跟踪和对焦。
本实施例在步骤306中,对触摸显示组件上显示的后续图像的获取的实现 方式可以是,间隔一预设时间,刷新触摸显示组件上的显示画面,得到触摸显示组件上显示的后续图像。
在实际应用中,对应于一个时间间隔内的一次显示画面刷新操作,存在一次根据第一特征匹配信息,进行与触摸显示组件上显示的图像的一次匹配过程,实现对后续图像中目标物体的目标识别跟踪,可以获取到目标物体不同时刻的变化位置,并在跟踪到的目标物体的变化位置上进行画面的对焦操作,该画面对焦操作可以由终端上的摄像装置完成。
可选地,间隔一定时间对摄像头预览界面中的显示图像进行刷新,例如以0.5秒刷新一帧,提取每一次刷新后对应的后续图像中与第一特征匹配信息相匹配的目标物体,可以为提取后续图像中的颜色、轮廓、纹理等信息,与缓存中保存的物体特征进行对比匹配,识别出相匹配的目标物体,并获取与所匹配到的目标物体对应的屏幕显示区域,并在该屏幕显示区域上进行画面对焦。
可选地,在根据该第一特征匹配信息,对触摸显示组件上显示的后续图像进行目标跟踪和对焦之后,本实施例提供的方法还可以包括步骤307~步骤308:
步骤307,在进行目标跟踪得到的第二目标物体对应的屏幕显示区域,确定第二特征提取区域。
上述步骤306中,对触摸显示组件上显示的后续图像进行目标跟踪,本实施例的步骤307中,在跟踪后得到的与第二目标物体对应的屏幕显示区域上,确定出新的特征提取区域。可选地,该新的特征提取区域即上述的第二特征提取区域,例如可以是与第一特征提取区域具有相同面积的区域范围,该第二特征提取区域可以为以该屏幕显示区域为中心,面积为第一特征提取区域的面积的新的区域范围;可以在该第二特征提取区域中对第二目标物体进行新的特征提取,并保存到缓存单元,以适应物体移动过程中发生的图像显示变化,例如物体角度的变化、轮廓变化等等。
步骤308,对第二特征提取区域内的第二目标物体进行特征提取,获取该第二目标物体的特征信息,得到第二特征匹配信息。
本实施例在步骤308中,在该第二特征提取区域中对第二目标物体再次进行特征提取,以适应物体移动过程中发生的图像显示变化,例如物体角度的变化、轮廓变化等,使终端对显示位置变化后的第二目标物体进行对焦过程中,能够根据移动物体的运动过程中姿态的变化,进行更加准确的目标跟踪,实施准确对焦。
在得到第二特征匹配信息之后,本实施例提供的方法还可以包括:
步骤309,根据第二特征匹配信息,对触摸显示组件上显示的后续图像进行目标跟踪和对焦。
本实施例的步骤309中,通过对物体移动后的进行特征提取所得到的新的特征匹配信息,进行目标跟踪和对焦,以实现针对目标物体的移动而不断进行特征提取及更新,及根据每次获取到的特征匹配信息,进行对触摸显示组件上显示的后续图像进行目标跟踪,识别当前摄像头预览界面的图像中与每次的特征匹配信息相匹配的目标物体,获取所匹配到的目标物体对应的屏幕显示区域,并对此位置区域上重新对焦。其中,根据第一特征匹配信息,对触摸显示组件上显示的后续图像进行目标跟踪和对焦的步骤,以及对第二特征提取区域内的第二目标物体进行特征提取,获取该第二目标物体的特征信息,得到第二特征匹配信息的步骤,都需要在获取到用户的拍照指令时才结束。
本实施例提供的拍照对焦的方法,通过在拍照过程中,检测触摸显示组件上触屏操作的发生位置及在该发生位置上产生的第一压力值和持续时间,并在满足预设条件时,在触摸显示组件上的发生位置处,得到与第一压力值值对应的第一特征提取区域,在该第一特征提取区域中提取当前图像中第一目标物体的特征信息,得到第一特征匹配信息,并根据根据该第一特征匹配信息对触摸显示组件上显示的后续图像进行目标跟踪和画面对焦,随后,对每次目标跟踪时提取到的目标物体的新的特征信息,作为再次进行目标跟踪和画面对焦的依据;本实施例实现了对移动物体进行匹配识别,完成对显示位置变化的物体的追踪过程,以实现在物体显示位置变化后,也能进行对图像的实时准确对焦,满足用户的实际需求,提升用户体验。
本发明实施例还提供了一种电子设备,如图5所示,为本发明实施例提供的一种电子设备的结构示意图,本实施例提供的电子设备可以包括:检测模块401、第一获取模块402和跟踪及对焦模块403。
检测模块401,设置为:检测触摸显示组件上触屏操作的发生位置及在所述发生位置上产生的第一压力值。
第一获取模块402,设置为:获取检测模块401检测到的发生位置处,该触摸显示组件上与检测模块401检测到的第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息。
跟踪及对焦模块403,设置为:根据第一获取模块402得到的第一特征匹配信息,对该触摸显示组件上显示的后续图像进行目标跟踪和对焦。
可选地,图6为本发明实施例提供的另一种电子设备的结构示意图。在图5所示电子设备的结构基础上,本实施例中的第一获取模块402可以包括:获取单元4021和特征提取单元4022。
其中,获取单元4021,设置为:根据检测模块402检测到的第一压力值,在预设的压力值与特征提取区域的面积对应表中,获取该第一压力值对应的第一面积,形成所述触摸显示组件上以发生位置为中心,且面积为该第一面积的第一特征提取区域。
特征提取单元4022,设置为:对获取单元4021获取的第一特征提取区域内的第一目标物体进行特征提取,获取该第一目标物体的特征信息,得到第一特征匹配信息。
可选地,本实施例中的跟踪及对焦模块403可以包括:匹配识别单元4031和对焦单元4032。
其中,匹配识别单元4031,设置为:根据第一获取模块402得到的第一特征匹配信息,对触摸显示组件上显示的后续图像进行匹配,识别后续图像中与该第一特征匹配信息相匹配的目标物体,并获取所匹配到的目标物体对应的屏幕显示区域。
对焦单元4032,设置为:在匹配识别单元4031获取到的屏幕显示区域进 行画面对焦。
可选地,本实施例提供的电子设备还可以包括:确定模块404和第二获取模块405。
其中,确定模块404,设置为:在跟踪及对焦模块403进行目标跟踪得到的第二目标物体所在屏幕显示区域,确定第二特征提取区域。
第二获取模块405,设置为:对确定模块404确定的第二特征提取区域内的第二目标物体进行特征提取,获取该第二目标物体的特征信息,得到第二特征匹配信息;
跟踪及对焦模块403,还设置为:根据第二获取模块405得到的特征匹配信息,对该触摸显示组件上显示的后续图像进行目标跟踪和对焦的步骤。
可选地,本实施例提供的电子设备还可以包括:第三获取模块406和对焦模块407。
其中,第三获取模块406,设置为:获取触屏操作在发生位置上的持续时间。
对焦模块407,设置为:在判断第三获取模块406获取的持续时间达到预设时间长度时,在该发生位置上进行画面对焦,并触发第一获取模块402获取该发生位置处,触摸显示组件上与第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息。
可选地,本实施例提供的电子设备还可以包括:判断模块408。
该判断模块408,设置为:判断检测模块401检测到的第一压力值是否在预设阈值范围内;
相应地,本实施例中的第一获取模块402,是设置为:当判断模块408判断出该第一压力值在预设阈值范围内时,获取发生位置处,触摸显示组件上与该第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息。
可选地,本实施例提供的电子设备还可以包括:警示模块409。
该警示模块409,设置为:当判断模块408判断出在该第一压力值超出预 设阈值范围中的最大值时,发出压力超标警示。
本发明实施例提供的电子设备能够实现上述实施例中拍照对焦的方法实现的各个过程,为避免重复,这里不再赘述。该电子设备可以为手机、平板电脑、移动拍照设备等。
本实施例提供的电子设备,通过在拍照过程中,检测触摸显示组件上触屏操作的发生位置及在该发生位置上产生的第一压力值,结合触屏操作的发生位置及产生的第一压力值,获取触摸显示组件上的与该第一压力值对应的第一特征提取区域,在该第一特征提取区域中提取当前图像中第一目标物体的特征信息,得到第一特征匹配信息,并根据该第一特征匹配信息对触摸显示组件上显示的后续图像进行目标跟踪和画面对焦;本实施例通过对移动的目标物体锁定并跟踪对焦,实现了在物体的移动过程中,随着目标物体的运动而进行动态的对焦过程,满足用户的实际需求,提升用户体验。
本文说明书中的多个实施例采用递进的方式进行描述,每个实施例重点说明的都是与其他实施例的不同之处,每个实施例之间相同相似的部分互相参见即可。
需要说明的是,在本发明实施例中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不必用于描述或者暗示这些实体或操作之间存在关系、顺序或先后次序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这 些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例通过在拍照过程中,检测触摸显示组件上触屏操作的发生位置及在该发生位置上产生的第一压力值,结合触屏操作的发生位置及产生的第一压力值,获取触摸显示组件上的与该第一压力值对应的第一特征提取区域,在该第一特征提取区域中提取当前图像中第一目标物体的特征信息,得到第一特征匹配信息,并根据该第一特征匹配信息对触摸显示组件上显示的后续图像进行目标跟踪和画面对焦;本发明实施例通过对移动的目标物体锁定并跟踪对焦,实现了在物体的移动过程中,随着目标物体的运动而进行动态的对焦过程,满足用户的实际需求,提升用户体验。

Claims (14)

  1. 一种拍照对焦的方法,包括:
    检测触摸显示组件上触屏操作的发生位置及在所述发生位置上产生的第一压力值;
    获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息;
    根据所述第一特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对焦。
  2. 根据权利要求1所述的方法,其中,
    所述获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息,包括:
    根据所述第一压力值,在预设的压力值与特征提取区域的面积对应表中,获取所述第一压力值对应的第一面积,形成所述触摸显示组件上以所述发生位置为中心,且面积为所述第一面积的所述第一特征提取区域;
    对所述第一特征提取区域内的所述第一目标物体进行特征提取,获取所述第一目标物体的所述特征信息,得到所述第一特征匹配信息。
  3. 根据权利要求1所述的方法,其中,
    所述根据所述第一特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对焦,包括:
    根据所述第一特征匹配信息,对所述触摸显示组件上显示的所述后续图像进行匹配,识别所述后续图像中与所述第一特征匹配信息相匹配的目标物体,并获取所匹配到的目标物体对应的屏幕显示区域;
    在所述屏幕显示区域进行画面对焦。
  4. 根据权利要求1所述的方法,其中,
    所述根据所述第一特征匹配信息,对所述触摸显示组件上显示的后续图 像进行目标跟踪和对焦之后,所述方法还包括:
    在进行目标跟踪得到的第二目标物体所在屏幕显示区域,确定第二特征提取区域;
    对所述第二特征提取区域内的所述第二目标物体进行特征提取,获取所述第二目标物体的特征信息,得到第二特征匹配信息;
    根据所述第二特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对焦。
  5. 根据权利要求1所述的方法,其中,
    所述检测触摸显示组件上触屏操作的发生位置及在所述发生位置上产生的第一压力值时,所述方法还包括:
    获取所述触屏操作在所述发生位置上的持续时间;
    所述获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息,包括:
    在判断所述持续时间达到预设时间长度时,在所述发生位置上进行画面对焦,并获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的所述第一特征提取区域,提取当前图像在所述第一特征提取区域中的所述第一目标物体的特征信息,得到所述第一特征匹配信息。
  6. 根据权利要求1所述的方法,其中,
    所述检测触摸显示组件上触屏操作的发生位置及在所述发生位置上产生的第一压力值之后,所述方法还包括:
    判断所述第一压力值是否在预设阈值范围内;
    所述获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息,包括:
    当判断出所述第一压力值在所述预设阈值范围内时,获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的所述第一特征提取区域, 提取当前图像在所述第一特征提取区域中的所述第一目标物体的特征信息,得到所述第一特征匹配信息。
  7. 根据权利要求6所述的方法,其中,所述判断所述第一压力值是否在预设阈值范围内之后,所述方法还包括:
    当判断出所述第一压力值大于所述预设阈值范围的最大值时,发出压力超标警示。
  8. 一种电子设备,包括:
    检测模块,设置为:检测触摸显示组件上触屏操作的发生位置及在所述发生位置上产生的第一压力值;
    第一获取模块,设置为:获取所述检测模块检测到的所述发生位置处,所述触摸显示组件上与所述检测模块检测到的所述第一压力值对应的第一特征提取区域,提取当前图像在所述第一特征提取区域中的第一目标物体的特征信息,得到第一特征匹配信息;
    跟踪及对焦模块,设置为:根据所述第一获取模块得到的所述第一特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对焦。
  9. 根据权利要求8所述的电子设备,其中,所述第一获取模块包括:
    获取单元,设置为:根据所述检测模块检测到的所述第一压力值,在预设的压力值与特征提取区域的面积对应表中,获取所述第一压力值对应的第一面积,形成所述触摸显示组件上以所述发生位置为中心,且面积为所述第一面积的所述第一特征提取区域;
    特征提取单元,设置为:对所述获取单元获取的所述第一特征提取区域内的所述第一目标物体进行特征提取,获取所述第一目标物体的所述特征信息,得到所述第一特征匹配信息。
  10. 根据权利要求8所述的电子设备,其中,所述跟踪及对焦模块包括:
    匹配识别单元,设置为:根据所述第一获取模块得到的所述第一特征匹配信息,对所述触摸显示组件上显示的后续图像进行匹配,识别所述后续图像中与所述第一特征匹配信息相匹配的目标物体,并获取所匹配到的目标物体对应的屏幕显示区域;
    对焦单元,设置为:在所述匹配识别单元获取到的所述屏幕显示区域进行画面对焦。
  11. 根据权利要求8所述的电子设备,还包括:
    确定模块,设置为:在所述跟踪及对焦模块进行目标跟踪得到的第二目标物体所在屏幕显示区域,确定第二特征提取区域;
    第二获取模块,设置为:对所述确定模块确定的所述第二特征提取区域内的所述第二目标物体进行特征提取,获取所述第二目标物体的特征信息,得到第二特征匹配信息;
    所述跟踪及对焦模块,还设置为:根据所述第二获取模块得到的所述第二特征匹配信息,对所述触摸显示组件上显示的后续图像进行目标跟踪和对焦。
  12. 根据权利要求8所述的电子设备,还包括:
    第三获取模块,设置为:获取所述触屏操作在所述发生位置上的持续时间;
    对焦模块,设置为:在判断所述第三获取模块获取的所述持续时间达到预设时间长度时,在所述发生位置上进行画面对焦,并触发所述第一获取模块获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的所述第一特征提取区域,提取当前图像在所述第一特征提取区域中的所述第一目标物体的特征信息,得到所述第一特征匹配信息。
  13. 根据权利要求8所述的电子设备,还包括:
    判断模块,设置为:判断所述检测模块检测到的所述第一压力值是否在预设阈值范围内;
    所述第一获取模块,是设置为:当所述判断模块判断出所述第一压力值在所述预设阈值范围内时,获取所述发生位置处,所述触摸显示组件上与所述第一压力值对应的所述第一特征提取区域,提取当前图像在所述第一特征提取区域中的所述第一目标物体的特征信息,得到所述第一特征匹配信息。
  14. 根据权利要求13所述的电子设备,还包括:
    警示模块,设置为:当所述判断模块判断出所述第一压力值大于所述预设阈值范围的最大值时,发出压力超标警示。
PCT/CN2016/099236 2016-06-22 2016-09-18 一种拍照对焦的方法及电子设备 WO2017219515A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610459680.2 2016-06-22
CN201610459680.2A CN107526515A (zh) 2016-06-22 2016-06-22 一种拍照对焦的方法及电子设备

Publications (1)

Publication Number Publication Date
WO2017219515A1 true WO2017219515A1 (zh) 2017-12-28

Family

ID=60735387

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/099236 WO2017219515A1 (zh) 2016-06-22 2016-09-18 一种拍照对焦的方法及电子设备

Country Status (2)

Country Link
CN (1) CN107526515A (zh)
WO (1) WO2017219515A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109568A (zh) * 2019-04-29 2019-08-09 努比亚技术有限公司 一种图像处理方法、设备及计算机可读存储介质
CN110245678A (zh) * 2019-05-07 2019-09-17 华中科技大学 一种异构孪生区域选取网络及基于该网络的图像匹配方法
CN110908954A (zh) * 2019-11-13 2020-03-24 维沃移动通信有限公司 文件保存方法、装置、电子设备及介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040460A (zh) * 2018-08-28 2018-12-18 深圳市必发达科技有限公司 图像拍摄方法、计算机可读存储介质及计算机设备
CN108989685A (zh) * 2018-08-31 2018-12-11 努比亚技术有限公司 一种拉焦处理方法、终端及计算机可读存储介质
CN118018846A (zh) * 2024-04-09 2024-05-10 荣耀终端有限公司 追焦方法、电子设备以及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012103874A1 (de) * 2011-02-04 2012-08-09 Eads Deutschland Gmbh Kamerasystem zur erfassung und bahnverfolgung von in grosser entfernung befindlichen bewegten objekten
CN105159594A (zh) * 2015-09-29 2015-12-16 努比亚技术有限公司 一种基于压力传感器的触摸拍照装置、方法及移动终端
CN105611143A (zh) * 2015-09-15 2016-05-25 广东欧珀移动通信有限公司 一种电子设备的拍照方法及电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101078754B1 (ko) * 2010-05-24 2011-11-01 주식회사 인스프리트 카메라 영상취득 자동화기능을 갖는 모바일 단말기 및 이를 이용한 모바일 단말기의 카메라 영상취득 자동화방법
CN103135927B (zh) * 2013-01-25 2015-09-30 广东欧珀移动通信有限公司 一种移动终端快速对焦拍照方法及系统
US20140253785A1 (en) * 2013-03-07 2014-09-11 Mediatek Inc. Auto Focus Based on Analysis of State or State Change of Image Content
CN105487775A (zh) * 2015-11-26 2016-04-13 惠州Tcl移动通信有限公司 一种触摸屏控制方法及移动终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012103874A1 (de) * 2011-02-04 2012-08-09 Eads Deutschland Gmbh Kamerasystem zur erfassung und bahnverfolgung von in grosser entfernung befindlichen bewegten objekten
CN105611143A (zh) * 2015-09-15 2016-05-25 广东欧珀移动通信有限公司 一种电子设备的拍照方法及电子设备
CN105159594A (zh) * 2015-09-29 2015-12-16 努比亚技术有限公司 一种基于压力传感器的触摸拍照装置、方法及移动终端

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109568A (zh) * 2019-04-29 2019-08-09 努比亚技术有限公司 一种图像处理方法、设备及计算机可读存储介质
CN110109568B (zh) * 2019-04-29 2023-09-22 努比亚技术有限公司 一种图像处理方法、设备及计算机可读存储介质
CN110245678A (zh) * 2019-05-07 2019-09-17 华中科技大学 一种异构孪生区域选取网络及基于该网络的图像匹配方法
CN110245678B (zh) * 2019-05-07 2021-10-08 华中科技大学 一种基于异构孪生区域选取网络的图像匹配方法
CN110908954A (zh) * 2019-11-13 2020-03-24 维沃移动通信有限公司 文件保存方法、装置、电子设备及介质

Also Published As

Publication number Publication date
CN107526515A (zh) 2017-12-29

Similar Documents

Publication Publication Date Title
WO2017219515A1 (zh) 一种拍照对焦的方法及电子设备
TWI724736B (zh) 圖像處理方法及裝置、電子設備、儲存媒體和電腦程式
US10334151B2 (en) Phase detection autofocus using subaperture images
CN105933589B (zh) 一种图像处理方法及终端
JP6392991B2 (ja) 画像による空間パラメータ特定方法、装置、プログラム、記録媒体および端末機器
CN108076278B (zh) 一种自动对焦方法、装置及电子设备
RU2612892C2 (ru) Способ автоматической фокусировки и устройство автоматической фокусировки
WO2020019760A1 (zh) 活体检测方法、装置及系统、电子设备和存储介质
KR20150061277A (ko) 영상 촬영 장치 및 이의 영상 촬영 방법
TW202109358A (zh) 活體檢測方法、電子設備和儲存介質
CN101378458A (zh) 使用脸部识别功能的数字拍摄设备和方法
WO2017124899A1 (zh) 一种信息处理方法及装置、电子设备
US20120300115A1 (en) Image sensing device
US9854174B2 (en) Shot image processing method and apparatus
US10027878B2 (en) Detection of object in digital image
CN107613208B (zh) 一种对焦区域的调节方法及终端、计算机存储介质
WO2017127229A1 (en) Focus hunting prevention for phase detection auto focus (af)
CN106412423A (zh) 一种对焦方法及装置
CN111968052B (zh) 图像处理方法、图像处理装置及存储介质
CN112184787A (zh) 图像配准方法及装置、电子设备和存储介质
WO2015123888A1 (zh) 图片缩放方法及设备
TWI770531B (zh) 人臉識別方法、電子設備和儲存介質
CN109547678B (zh) 一种处理方法、装置、设备及可读存储介质
JP6483661B2 (ja) 撮像制御装置、撮像制御方法およびプログラム
CN111726531B (zh) 图像拍摄方法、处理方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16906055

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16906055

Country of ref document: EP

Kind code of ref document: A1