CN114125268A - Focusing method and device - Google Patents

Focusing method and device Download PDF

Info

Publication number
CN114125268A
CN114125268A CN202111265037.3A CN202111265037A CN114125268A CN 114125268 A CN114125268 A CN 114125268A CN 202111265037 A CN202111265037 A CN 202111265037A CN 114125268 A CN114125268 A CN 114125268A
Authority
CN
China
Prior art keywords
focusing
module
parameter
rotation
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111265037.3A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111265037.3A priority Critical patent/CN114125268A/en
Publication of CN114125268A publication Critical patent/CN114125268A/en
Priority to PCT/CN2022/127418 priority patent/WO2023072088A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04N23/675Focus control based on electronic image sensor signals comprising setting of focusing regions
    • 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/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The application discloses a focusing method and a focusing device, and belongs to the technical field of camera shooting. The method comprises the following steps: under the condition that the visual angle range of the focusing module cannot cover a focusing area, determining a first rotating parameter of the holder according to the visual angle range and the focusing area; and controlling the holder to rotate according to the first rotation parameter, so that the visual angle range of the focusing module covers the focusing area.

Description

Focusing method and device
Technical Field
The application belongs to the technical field of camera shooting, and particularly relates to a focusing method and device.
Background
With the prevalence of photography in recent years, users have paid more and more attention to the shooting effect of electronic devices (e.g., smart phones). At present, a laser focusing technology has been widely applied to a focusing process of a rear camera of a mobile phone, so as to make up for the deficiencies of Phase Detection Auto Focus (PDAF) and Contrast Focus (CDAF) in a dark light or a low-detail scene.
In the related art, the single-point laser focusing is limited by the technology, is easily interfered by the external environment, and the like, and the applicable range angle is small, so that the focusing cannot be performed on other areas deviated from the center of the screen.
Disclosure of Invention
An object of the embodiments of the present application is to provide a focusing method and apparatus, which can solve the problem that some areas cannot be focused in the shooting process.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a focusing method, where the method includes: under the condition that the visual angle range of the focusing module cannot cover the focusing area, determining a first rotation parameter of the holder according to the visual angle range and the focusing area; and controlling the holder to rotate according to the first rotation parameter, so that the visual angle range of the focusing module covers the focusing area.
In a second aspect, an embodiment of the present application provides a focusing apparatus, including: a determination module, and a control module, wherein: the determining module is used for determining a first rotating parameter of the holder according to the focusing area and the visual angle range under the condition that the visual angle range of the focusing module cannot cover the focusing area; the control module is used for controlling the holder to rotate according to the first rotation parameter determined by the determination module, so that the visual angle range of the focusing module covers the focusing area.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, the present application provides a computer program product stored in a non-volatile storage medium, the program product being executed by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the focusing device can determine the first rotation parameter of the holder according to the focusing area and the visual angle range of the focusing module under the condition that the visual angle range of the focusing module cannot cover the focusing area, and then control the holder to rotate according to the first rotation parameter, so that the visual angle range of the focusing module covers the focusing area. By the method, when a user tries to focus a target object close to the edge of the shot picture, or a focusing main body is close to the edge of the picture (namely, the visual angle range of the focusing module cannot cover the focusing area), the focusing device can control the holder to rotate, so that the focusing module originally pointing to the central area of the shot picture rotates to point to the direction needing to be focused, the focusing capacity of the whole picture is realized, and the shooting effect of the camera is improved.
Drawings
Fig. 1 is a flowchart of a focusing method according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a tripod head structure provided in the embodiment of the present application;
fig. 3 is a schematic structural diagram of a focusing device according to an embodiment of the present disclosure;
fig. 4 is a hardware schematic diagram of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a second hardware schematic diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The focusing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The focusing method provided by the embodiment of the application can be applied to shooting scenes.
Take the example of capturing a group portrait. Suppose that the user a is using the electronic device to take a group photograph of the user B, the user C, and the user D, which are close to each other, and the user C is in the middle area of the taken picture, and the user B and the user D are in the edge areas of the taken picture, respectively. In this case, if the face of the user D needs to be focused by laser focusing, the single-point laser focusing is limited by technology and is easily disturbed by the external environment, and the applicable range angle is small, and is usually only about 20 degrees. Then, the single-point laser focusing can only focus on the user C in the shot picture, but cannot focus on the user D away from the center position of the shot picture. Therefore, the shot image cannot achieve the effect expected by the user, and the shooting effect is poor.
In the embodiment of the application, it is assumed that a user a uses an electronic device to shoot a group of photos of a user B, a user C and a user D which are close to each other, the user C is located in a middle area of a shot picture, and the user C and the user D are respectively located in edge areas of the shot picture. At this time, if the face of the user D needs to be focused in a laser focusing manner, the focusing device may determine a rotation parameter of the pan/tilt head through a view angle range of laser focusing and a face area of the user D, and control the pan/tilt head to rotate according to the rotation parameter, so that an action range (i.e., a view angle range) of a laser focusing module on the pan/tilt head may cover the face area of the user D in the shooting picture, and thus the laser focusing module may focus the face of the user D at an edge position of the shooting picture. Therefore, focusing of the focusing area required by the user is achieved, and the shooting effect of the electronic equipment is improved.
It should be noted that the single-point laser focusing technique is limited by technology, is easily interfered by external environment, and the like, and the focusing range angle is small, and is usually only about 20 °, which means that for the size of a normally shot picture, the single-point laser focusing can only be applied to a scene in which a small area of a central picture is focused, but not to a scene in which a part slightly deviated from the center of the picture is focused.
The following noun explanations are made for terms related to the embodiments of the present application:
focusing: focusing refers to adjusting the focal distance when using a camera, which is known as Focus, and digital cameras generally have a plurality of focusing modes, namely, an automatic focusing mode, a manual focusing mode and a multiple focusing mode. Focusing is also called focusing. The distance and the distance of the object are changed by the camera focusing mechanism, so that the process of imaging the shot object clearly is focusing.
The holder: the pan-tilt is a shooting auxiliary device which is arranged on an electronic device and used for mounting and bearing a camera, is complex and precise in structure and mainly comprises a limiting mechanism, a double-ball suspension, a lens, a voice coil motor, a magnetomotive frame and a protective cover. Because the cloud platform is set up inside electronic equipment under normal conditions for bear and install the camera, consequently, the cloud platform among the electronic equipment also can be called little cloud platform, and little cloud platform can be used for the anti-shake, and the supplementary user stably shoots, improves the shooting quality of image.
The embodiment of the application provides a focusing method, which can be applied to a focusing device or an electronic device including a holder and a camera, and fig. 1 shows a flowchart of the focusing method provided by the embodiment of the application. As shown in fig. 1, a focusing method provided in an embodiment of the present application may include the following steps 201 and 202:
step 201: the focusing device determines a first rotation parameter of the holder according to the focusing area and the visual angle range under the condition that the visual angle range of the focusing module of the camera cannot cover the focusing area.
Optionally, in this embodiment of the application, the focusing module may be a laser focusing module.
In specific implementation, when focusing is carried out on a shot object, infrared laser can be emitted through the laser focusing module of the camera to carry out laser focusing.
It should be noted that the principle of laser focusing is that after the shooting device emits infrared laser light from a to a shooting object B, the infrared laser light is reflected by the shooting object and returns to a, so as to measure the distance between a and B and complete focusing. The laser focusing technology has the advantages that the laser focusing technology has obvious focusing effect on areas with small distances, weak light environments and insufficient contrast, the focusing rate of electronic equipment under the conditions can be improved, and the laser focusing speed is quicker compared with the phase focusing technology and other focusing technologies under the condition of normal light.
Optionally, in this embodiment of the application, the focusing device may determine whether the laser focusing module is currently required to be used for focusing.
In a specific implementation, when the focusing device focuses on a shot object, the focusing device can analyze the acquired image data of the current frame to acquire current environmental information and focusing data, and determine whether to use the laser focusing module for focusing according to the confidence of the current environmental information or the focusing data.
In the embodiment of the present application, the viewing angle range of the focusing module is a focusable area of the focusing module in the shooting picture. For example, the focusing device may determine the viewing angle range of the focusing module by the focusing parameter of the focusing module.
Exemplarily, in the case that the focusing module is a laser focusing module, in the case that a group portrait is photographed by a camera, it is assumed that a photographed picture of the group portrait is approximately a pair of rectangular pictures, and a portrait 1, a portrait 2, a portrait 3, a portrait 4 and a portrait 5 are respectively in the photographed picture from left to right (each portrait is uniformly distributed in the photographed picture). Because the infrared laser emission angle of laser focusing is about 20 °, the focusable area (i.e., the viewing angle range) of the laser focusing module on the camera is about a circular area with the center of the shot picture as the center and the quarter of the display side length of the shot picture as the radius (i.e., the viewing angle range only covers the area where the portrait 3 is located).
It should be noted that, when focusing on a shot picture, the focusing is limited by the focusing technology, and the focusing cannot be performed on an area or a position at the edge of the shot picture or the focusing effect is poor.
In the embodiment of the present application, the focusing area may include one or more focusing points or focusing ranges.
For example, the focusing area may be a preview image captured by a camera of a user, a selected focusing area, or a focusing area automatically determined by a focusing device.
Optionally, in this embodiment of the application, the focusing device may determine whether the viewing angle range of the focusing module completely covers the focusing area according to the viewing angle range of the focusing module and the position relationship of the focusing area.
For example, the focusing device may calculate the first rotation parameter of the holder through an algorithm according to a position relationship between the focusing area and the viewing angle range under the condition that it is determined that the viewing angle range of the focusing module cannot cover the focusing area.
Optionally, in an embodiment of the present application, the first rotation parameter includes at least one of: angle of rotation, direction of rotation.
Illustratively, the angle range of the rotation angle may be 0 ° to 360 °, and the rotation direction may be clockwise rotation, counterclockwise rotation, inward rotation about an axis, outward rotation about an axis, or the like. Further, the rotation may be rotation.
Step 202: the focusing device controls the holder to rotate according to the first rotation parameter, so that the visual angle range of the focusing module covers the focusing area.
In the embodiment of the application, the focusing device can control the focusing module on the holder to focus after the holder rotates under the condition that the holder is controlled to rotate according to the first rotation parameter.
In the embodiment of the application, after the first rotation parameter of the pan/tilt/.
The rotation process of the cradle head is further described below with reference to the schematic structural diagram of the cradle head.
Referring to the structural diagram of the pan/tilt head shown in fig. 2, an x-y axis coordinate system is defined. Wherein the horizontal direction is defined as the X-axis (i.e. the X-axis in fig. 2, indicated by the dashed line 2 a), and the direction perpendicular to the X-axis and in the plane of the head is defined as the Y-axis (i.e. the Y-axis in fig. 2, indicated by the dashed line 2 b). As shown in fig. 2, the head is in the x-y plane when it is not rotating. When the pan/tilt head rotates, the pan/tilt head can rotate a certain angle by taking the x axis as the motion axis, or rotate a certain angle by taking the y axis as the motion axis, and drive the focusing module (such as a laser focusing module) on the pan/tilt head to rotate, so that the view angle range of the focusing module covers the focusing area.
It should be noted that the pan-tilt structure in fig. 2 includes a horizontal group support 21, an x-axis driving coil 22, an x-axis magnet 23, an x-axis hall element 24, a y-axis driving coil 25, a y-axis magnet 26, a y-axis hall element 27, and a pan-tilt base 28. The holder structure comprises a transverse group support 21 and a holder base 28 which is arranged opposite to the transverse group support in the vertical direction, wherein an x-axis drive coil 22 and an x-axis hall element 24 are arranged on a first outer side wall of the transverse group support 21, the x-axis drive coil 22 and an x-axis magnet 23 are arranged opposite to each other, a y-axis drive coil 25 and a y-axis hall element 27 are arranged on a second outer side wall of the transverse group support 21, and the y-axis drive coil 25 and the y-axis magnet 26 are arranged opposite to each other.
Specifically, the focusing device can control the pan-tilt to rotate by taking the x axis or the y axis as a motion axis through the components, so as to control the pan-tilt to rotate by a certain angle according to the actual focusing requirement, so as to realize laser focusing on the picture edge area (such as the upper edge, the right edge and the like) of the shot picture through the laser focusing module carried on the pan-tilt, thereby realizing the full-picture laser focusing capability.
Optionally, in this embodiment of the application, the focusing device may rotate the pan/tilt head back to the initial position after one shooting is completed or after the camera is turned off (e.g., the shooting thread is turned off). For example, in the case of shooting by turning on the camera through the camera APP, the cradle head may be rotated to the initial position after the camera APP is turned off.
In the focusing method provided by the embodiment of the application, the focusing device can determine the first rotation parameter of the holder according to the focusing area and the visual angle range of the focusing module under the condition that the visual angle range of the focusing module cannot cover the focusing area, and then control the holder to rotate according to the first rotation parameter, so that the visual angle range of the focusing module covers the focusing area. By the method, when a user tries to focus a target object close to the edge of the shot picture, or a focusing main body is close to the edge of the picture (namely, the visual angle range of the focusing module cannot cover the focusing area), the focusing device can control the holder to rotate, so that the focusing module originally pointing to the central area of the shot picture rotates to point to the direction needing to be focused, the focusing capacity of the whole picture is realized, and the shooting effect of the camera is improved.
Optionally, in this embodiment of the present application, the camera may have M focusing strategies; m is a positive integer, and the focusing strategy in M comprises a focusing strategy adopting laser module to focus.
Optionally, before the step 201, the focusing method provided in the embodiment of the present application further includes the following steps a1 and a 2:
step A1: the focusing device determines confidence information corresponding to the focusing data of each focusing strategy.
Step A2: and the focusing device determines a target focusing strategy from the M focusing strategies according to the confidence coefficient information.
Optionally, the M focusing strategies may include any one of: contrast Detection Auto Focus (CDAF), Phase Detection Auto Focus (PDAF), laser Focus (LDAF), and the like, which may be other focusing strategies, and the embodiment of the present invention is not limited in this respect.
Optionally, after determining the target focusing strategy, the focusing device may determine a focusing module or a focusing algorithm corresponding to the target focusing strategy, and perform focusing through the focusing module or the focusing algorithm. For example, when the target focusing strategy is laser focusing, the focusing device may focus through the laser focusing module.
It should be noted that the focusing principles of the three focusing strategies (focusing methods) are different, so that the applicable shooting scenes (e.g., environments) are different, the focusing accuracy of contrast focusing is high, the adaptability to the environments is strong, but the focusing speed is slow, the focusing speed of phase focusing is fast, but the requirement on ambient light is high, the laser focusing accuracy for short-distance focusing is high, and the adaptability to weak light environments and pure color environments is strong.
Optionally, in a case that the electronic device has multiple focusing strategies, the focusing device may determine a focusing module or a focusing algorithm suitable for a focusing mode of the current shooting environment to perform focusing, so as to improve a focusing effect.
In one implementation, the focusing device may analyze the current frame image data collected by the camera, obtain the current environmental information, and determine the focusing module according to the focusing module to be matched with the current environmental information.
In another implementation, the focusing apparatus may obtain focusing data of each focusing strategy (e.g., obtain returned focusing data when focusing is performed by using the focusing module), then calculate a confidence of the focusing data under each focusing strategy, and determine the focusing strategy corresponding to the focusing data with the highest confidence as the target focusing strategy. For example, in the current shooting environment, the confidence of the focusing data of the contrast focusing is 70%, and the confidence of the focusing data of the laser focusing is 85%, which indicates that the current environment is more suitable for the laser focusing.
It should be noted that when sampling to estimate the overall parameter, the conclusion is not determined due to the randomness of the samples. Therefore, a probabilistic statement method, i.e. interval estimation in mathematical statistics, is used, i.e. how large the corresponding probability of the estimated value and the overall parameter are within a certain allowable error range, and this corresponding probability is called confidence.
Optionally, in this embodiment of the application, in a case that it is determined that laser focusing is performed by using the laser focusing module, the focusing device may determine a focusing area in the shooting picture, and perform the processes of step 201 and step 202. Optionally, before determining the first rotation parameter of the pan/tilt head according to the viewing angle range and the focusing area in step 201, the focusing method provided in the embodiment of the present application further includes the following steps B1 and B2:
step B1: the focusing device receives a first input of a user to the shooting preview interface.
Step B2: the focusing device responds to the first input and determines a focusing area.
Optionally, the shooting preview interface is used for displaying an image collected by the camera.
Illustratively, the first input may be: a click input by the user, a slide input, a press input, etc. Further, the click operation may be any number of times of click operations. The sliding operation may be a sliding operation in any direction, such as an upward sliding operation, a downward sliding operation, a leftward sliding operation, or a rightward sliding operation, which is not limited in the embodiments of the present application.
Alternatively, the first input may be a selection input of a preview screen in the shooting preview interface by the user. For example, the user may select one or more positions in the photographing screen, or regions in the photographing screen, which require focusing in the preview screen, and the focusing apparatus may determine the one or more positions, or regions, selected by the user as the focused regions.
Optionally, after receiving a first input from the user, the focusing device determines a focusing area in the shooting picture according to the input parameter of the first input. For example, there are portrait 1, portrait 2 and portrait 3 in the shooting picture from left to right, and the user may click on the face area of portrait 3 in the preview picture to trigger focusing on the face of portrait 3 in the shooting picture.
Alternatively, in the embodiment of the present application, the above step B1 and step B2 may be replaced by the following step C1 and step C2:
step C1: the focusing device acquires image data acquired by the camera.
Step C2: the focusing device determines a focusing area according to the image data.
In a specific implementation, the focusing device may determine the focusing area according to an original scene recognition algorithm, a subject detection algorithm, or the like, or determine an area of a preset size of a center position of the shot picture as the focusing area.
Optionally, the focusing device may first detect whether a user performs a selection input on the preview screen, and if so, determine a focusing area according to the selection input of the user; if not, the processes of the step C1 and the step C2 are executed. In this way, the focusing device can determine the focusing area according to the selection input of the user or automatically determine the focusing area, thereby improving the flexibility of operation.
Optionally, in an embodiment of the present application, the focusing method provided in the embodiment of the present application further includes the following steps D1 and D2:
step D1: and acquiring the shaking parameters of the focusing device.
Step D2: and the focusing device determines a second rotation parameter of the holder according to the jitter parameter.
Optionally, the jitter parameter is used for jitter compensation of the electronic device.
Optionally, the focusing device may obtain angular velocity information and acceleration information of the focusing device according to the inertial measurement unit, and determine the second rotation parameter of the holder according to the angular velocity information and the acceleration information.
For example, the focusing device may obtain angular velocity information and acceleration information of the electronic device through a gyroscope (IMU) of the electronic device to obtain shake information of the focusing device, and then the focusing device may calculate corresponding reverse compensation information (i.e., a second rotation parameter) according to the shake information, and rotate the pan/tilt head according to the second rotation parameter to complete shake compensation.
In an example, in combination with the step B1 and the step B2, the process of controlling the rotation of the pan/tilt head according to the first rotation parameter in the step 202 may include the following step 202 a:
step 202 a: and the focusing device controls the holder to rotate according to the first rotating parameter and the second rotating parameter.
For example, the focusing device may calculate a third rotation parameter according to the first rotation parameter and the second rotation parameter during the focusing process of the focusing device, and rotate the pan/tilt head according to the third rotation parameter. Therefore, in the focusing process, the focusing device can be subjected to shake compensation, the anti-shake capability of focusing is realized, and the focusing reliability and stability are improved. For example, if the first rotation parameter is 10 ° rotation around the x-axis, the second rotation parameter is 0.5 ° rotation around the x-axis, and the third rotation parameter may be 10.5 ° rotation around the x-axis.
In another example, in combination with the step B1 and the step B2, the step 202 may include the following step 202B:
step 202 b: and the focusing device controls the holder to rotate according to the second rotation parameter.
For example, the focusing device may rotate the holder according to the second rotation parameter to perform shake compensation of the focusing device before a focusing process of the focusing device, and then rotate the holder according to the first rotation parameter to perform focusing, thereby ensuring reliability and stability of a subsequent focusing process.
In specific implementation, when shooting is performed through a camera of the electronic device, under the condition that the camera lens shakes is sensed, the focusing device can control the holder carried on the focusing module to rotate according to the second rotation parameter, so that the shaking compensation of the electronic device is performed through the rotation of the focusing module, and laser focusing is performed after the focusing is completed, thereby the influence of the shaking of the electronic device on the current focusing process or the subsequent focusing process required to be performed is counteracted, so that the shaking prevention capability of focusing is realized, the reliability and stability of focusing are ensured, and the shooting effect is improved.
It should be noted that, in the focusing method provided in the embodiments of the present application, the executing body may be a focusing device, or a control module in the focusing device for executing the focusing method. In the embodiments of the present application, a focusing device performs a focusing method as an example, which illustrates that the embodiments of the present application provide a focusing device.
An embodiment of the present application provides a focusing apparatus, as shown in fig. 3, the focusing apparatus 600 includes: a determination module 601 and a control module 602; the determining module 601 is configured to determine a first rotation parameter of the pan/tilt head according to the focusing area and the viewing angle range when the viewing angle range of the focusing module cannot cover the focusing area; the control module 602 is configured to control the pan/tilt head to rotate according to the first rotation parameter determined by the determining module 601, so that the view angle range of the focusing module covers the focusing area.
In the focusing device provided in the embodiment of the application, the focusing device can determine the first rotation parameter of the holder according to the focusing area and the visual angle range of the focusing module under the condition that the visual angle range of the focusing module cannot cover the focusing area, and then control the holder to rotate according to the first rotation parameter, so that the visual angle range of the focusing module covers the focusing area. By the method, when a user tries to focus a target object close to the edge of the shot picture, or a focusing main body is close to the edge of the picture (namely, the visual angle range of the focusing module cannot cover the focusing area), the focusing device can control the holder to rotate, so that the focusing module originally pointing to the central area of the shot picture rotates to point to the direction needing to be focused, the focusing capacity of the whole picture is realized, and the shooting effect of the camera is improved.
Optionally, in an embodiment of the present application, the apparatus further includes: a receiving module; the receiving module is used for receiving a first input of a user to the shooting preview interface; the determining module is further configured to determine a focusing area in response to the first input received by the receiving module.
Therefore, a user can manually determine the focusing area according to actual requirements, or the focusing device can automatically identify the shooting main body and automatically determine the focusing area, so that the flexibility of operation is improved.
Optionally, in an embodiment of the present application, the apparatus further includes: the acquisition module is used for acquiring the jitter parameters of the focusing device; the determining module is further configured to determine a second rotation parameter of the pan/tilt head according to the jitter parameter obtained by the obtaining module; the control module is specifically configured to control the rotation of the pan/tilt head according to the first rotation parameter and the second rotation parameter determined by the determination module.
Therefore, when the focusing device is used for focusing laser, the cloud deck carried on the focusing module can be controlled to rotate according to the second rotating parameter, so that the shaking compensation of the electronic equipment is carried out through the rotation of the focusing module, the influence of the shaking of the electronic equipment on the current focusing process or the subsequent focusing process needing to be carried out is counteracted, the shaking prevention capability of focusing is realized, the focusing reliability and stability are ensured, and the shooting effect is improved.
Optionally, in an embodiment of the present application, the obtaining module is specifically configured to obtain angular velocity information and acceleration information of the focusing device according to an inertial measurement unit of the focusing device.
Therefore, the focusing device can rapidly acquire the jitter parameters so as to perform jitter compensation.
Optionally, in an embodiment of the present application, the first rotation parameter includes at least one of: angle of rotation, direction of rotation.
So, focusing device can be in the visual angle scope of focusing the module can't cover the condition of focusing the region, according to the turned angle and the rotation direction of cloud platform, control cloud platform and rotate to the region is focused in the cover, thereby improves the shooting effect.
The focusing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The focusing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The focusing device provided in the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1 and fig. 2, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 4, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the foregoing focusing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 110 is configured to determine a first rotation parameter of the pan/tilt head according to the focusing area and the viewing angle range when the viewing angle range of the focusing module cannot cover the focusing area; the processor 110 is further configured to control the pan/tilt head to rotate according to the determined first rotation parameter, so that the view angle range of the focusing module covers the focusing area.
In the electronic device provided in the embodiment of the application, under the condition that the view angle range of the focusing module cannot cover the focusing area, the electronic device may determine the first rotation parameter of the holder according to the focusing area and the view angle range of the focusing module, and then control the holder to rotate according to the first rotation parameter, so that the view angle range of the focusing module covers the focusing area. By the method, when a user tries to focus a target object close to the edge of the shot picture, or when a focusing main body is close to the edge of the picture (namely, the visual angle range of the focusing module cannot cover the focusing area), the electronic equipment can control the holder to rotate, so that the focusing module originally pointing to the central area of the shot picture rotates to point to the direction needing to be focused, the focusing capacity of the whole picture is realized, and the shooting effect of the camera is improved.
Optionally, in an embodiment of the present application, the user input unit is configured to receive a first input of a shooting preview interface from a user; the processor 110 is further configured to determine a focusing area in response to the first input received by the user input unit 107.
Therefore, a user can manually determine the focusing area according to actual requirements, or the focusing device can automatically identify the shooting main body and automatically determine the focusing area, so that the flexibility of operation is improved.
Optionally, in this embodiment of the application, the processor 110 is further configured to obtain a jitter parameter of a focusing device; the processor 110 is further configured to determine a second rotation parameter of the pan/tilt head according to the obtained jitter parameter; the processor 110 is specifically configured to control the rotation of the pan/tilt head according to the determined first rotation parameter and the determined second rotation parameter.
Therefore, when the focusing device is used for focusing laser, the cloud deck carried on the focusing module can be controlled to rotate according to the second rotating parameter, so that the shaking compensation of the electronic equipment is carried out through the rotation of the focusing module, the influence of the shaking of the electronic equipment on the current focusing process or the subsequent focusing process needing to be carried out is counteracted, the shaking prevention capability of focusing is realized, the focusing reliability and stability are ensured, and the shooting effect is improved.
Optionally, in this embodiment of the application, the processor 110 is specifically configured to obtain angular velocity information and acceleration information of the focusing device according to an inertial measurement unit of the focusing device.
Therefore, the focusing device can rapidly acquire the jitter parameters so as to perform jitter compensation.
Optionally, in an embodiment of the present application, the first rotation parameter includes at least one of: angle of rotation, direction of rotation.
So, focusing device can be in the visual angle scope of focusing the module can't cover the condition of focusing the region, according to the turned angle and the rotation direction of cloud platform, control cloud platform and rotate to the region is focused in the cover, thereby improves the shooting effect.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing focusing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is configured to run a program or an instruction, implement each process of the foregoing focusing method embodiment based on the pan/tilt/zoom, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The embodiment of the present application provides a computer program product, which is stored in a non-volatile storage medium and executed by at least one processor to implement the processes of the foregoing focusing method embodiment, and can achieve the same technical effects.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A focusing method is applied to a focusing device and is characterized in that the focusing device comprises a focusing module and a holder, the focusing module is arranged on the holder, and the method comprises the following steps:
under the condition that the visual angle range of the focusing module cannot cover a focusing area, determining a first rotation parameter of the holder according to the visual angle range and the focusing area;
and controlling the holder to rotate according to the first rotation parameter, so that the visual angle range of the focusing module covers the focusing area.
2. The method according to claim 1, wherein before determining the first rotation parameter of the pan/tilt head according to the viewing angle range and the focusing area, further comprising:
receiving a first input of a user to a shooting preview interface;
in response to the first input, a focus area is determined.
3. The method of claim 1, further comprising:
acquiring a shaking parameter of the focusing device;
determining a second rotation parameter of the holder according to the jitter parameter;
the according to first rotation parameter control the cloud platform rotates, include:
and controlling the holder to rotate according to the first rotating parameter and the second rotating parameter.
4. The method of claim 3, wherein the obtaining the jitter parameter of the focusing device comprises:
and acquiring angular velocity information and acceleration information of the focusing device according to an inertia measuring unit of the focusing device.
5. The method of claim 1, wherein the first rotation parameter comprises at least one of: angle of rotation, direction of rotation.
6. The utility model provides a focusing device, its characterized in that, focusing device is including focusing module and cloud platform, focus the module set up in on the cloud platform, the device still includes: a determination module and a control module, wherein:
the determining module is used for determining a first rotating parameter of the holder according to the visual angle range and the focusing area under the condition that the visual angle range of the focusing module cannot cover the focusing area;
the control module is used for controlling the holder to rotate according to the first rotation parameter determined by the determination module, so that the visual angle range of the focusing module covers the focusing area.
7. The apparatus of claim 6, further comprising: a receiving module;
the receiving module is used for receiving a first input of a user to the shooting preview interface;
the determining module is further configured to determine a focusing area in response to the first input received by the receiving module.
8. The apparatus of claim 6, further comprising: an acquisition module;
the acquisition module is used for acquiring the jitter parameters of the focusing device;
the determining module is further configured to determine a second rotation parameter of the pan/tilt head according to the jitter parameter acquired by the acquiring module;
the control module is specifically configured to control the rotation of the pan/tilt head according to the first rotation parameter and the second rotation parameter determined by the determination module.
9. The apparatus of claim 8,
the obtaining module is specifically configured to obtain angular velocity information and acceleration information of the focusing device according to an inertia measurement unit of the focusing device.
10. The apparatus of claim 1, wherein the first rotation parameter comprises at least one of: angle of rotation, direction of rotation.
CN202111265037.3A 2021-10-28 2021-10-28 Focusing method and device Pending CN114125268A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111265037.3A CN114125268A (en) 2021-10-28 2021-10-28 Focusing method and device
PCT/CN2022/127418 WO2023072088A1 (en) 2021-10-28 2022-10-25 Focusing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111265037.3A CN114125268A (en) 2021-10-28 2021-10-28 Focusing method and device

Publications (1)

Publication Number Publication Date
CN114125268A true CN114125268A (en) 2022-03-01

Family

ID=80377227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111265037.3A Pending CN114125268A (en) 2021-10-28 2021-10-28 Focusing method and device

Country Status (2)

Country Link
CN (1) CN114125268A (en)
WO (1) WO2023072088A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666508A (en) * 2022-04-06 2022-06-24 Oppo广东移动通信有限公司 Focusing method and device and terminal computer readable storage medium
WO2023072088A1 (en) * 2021-10-28 2023-05-04 维沃移动通信有限公司 Focusing method and apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116886889B (en) * 2023-08-01 2024-03-15 无锡维凯科技有限公司 Camera focusing detection device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811620A (en) * 2015-04-28 2015-07-29 上海与德通讯技术有限公司 Focusing method and focusing system
CN105141832A (en) * 2015-07-14 2015-12-09 广东欧珀移动通信有限公司 Focusing abnormity processing method and mobile terminal
CN106054495A (en) * 2016-07-29 2016-10-26 广东欧珀移动通信有限公司 Focusing method, focusing device and electronic equipment
CN106101558A (en) * 2016-07-29 2016-11-09 广东欧珀移动通信有限公司 camera focusing method, device and terminal
CN111147741A (en) * 2019-12-27 2020-05-12 Oppo广东移动通信有限公司 Focusing processing-based anti-shake method and device, electronic equipment and storage medium
CN111491105A (en) * 2020-04-24 2020-08-04 Oppo广东移动通信有限公司 Focusing method of mobile terminal, mobile terminal and computer storage medium
CN213279878U (en) * 2020-10-22 2021-05-25 重庆传音通讯技术有限公司 Camera device and mobile terminal
CN113315890A (en) * 2021-05-08 2021-08-27 维沃移动通信有限公司 Shooting module, electronic equipment, shooting method of electronic equipment and control device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520838A (en) * 2008-02-27 2009-09-02 中国科学院自动化研究所 Automatic-tracking and automatic-zooming method for acquiring iris images
CN103458184B (en) * 2013-08-25 2016-08-10 浙江大学 A kind of mobile phone is applied to carry out the method that The Cloud Terrace remotely controls
JP2017083491A (en) * 2015-10-23 2017-05-18 キヤノン株式会社 Optical instrument
CN109451240B (en) * 2018-12-04 2021-01-26 百度在线网络技术(北京)有限公司 Focusing method, focusing device, computer equipment and readable storage medium
CN112019734B (en) * 2019-05-28 2022-01-28 Oppo广东移动通信有限公司 Image acquisition method and device, electronic equipment and computer readable storage medium
CN114125268A (en) * 2021-10-28 2022-03-01 维沃移动通信有限公司 Focusing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811620A (en) * 2015-04-28 2015-07-29 上海与德通讯技术有限公司 Focusing method and focusing system
CN105141832A (en) * 2015-07-14 2015-12-09 广东欧珀移动通信有限公司 Focusing abnormity processing method and mobile terminal
CN106054495A (en) * 2016-07-29 2016-10-26 广东欧珀移动通信有限公司 Focusing method, focusing device and electronic equipment
CN106101558A (en) * 2016-07-29 2016-11-09 广东欧珀移动通信有限公司 camera focusing method, device and terminal
CN111147741A (en) * 2019-12-27 2020-05-12 Oppo广东移动通信有限公司 Focusing processing-based anti-shake method and device, electronic equipment and storage medium
CN111491105A (en) * 2020-04-24 2020-08-04 Oppo广东移动通信有限公司 Focusing method of mobile terminal, mobile terminal and computer storage medium
CN213279878U (en) * 2020-10-22 2021-05-25 重庆传音通讯技术有限公司 Camera device and mobile terminal
CN113315890A (en) * 2021-05-08 2021-08-27 维沃移动通信有限公司 Shooting module, electronic equipment, shooting method of electronic equipment and control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023072088A1 (en) * 2021-10-28 2023-05-04 维沃移动通信有限公司 Focusing method and apparatus
CN114666508A (en) * 2022-04-06 2022-06-24 Oppo广东移动通信有限公司 Focusing method and device and terminal computer readable storage medium

Also Published As

Publication number Publication date
WO2023072088A1 (en) 2023-05-04

Similar Documents

Publication Publication Date Title
WO2023072088A1 (en) Focusing method and apparatus
CN107770452B (en) Photographing method, terminal and related medium product
WO2018205902A1 (en) Anti-shake control method and apparatus
CN111901524B (en) Focusing method and device and electronic equipment
WO2016101481A1 (en) Automatic focusing method and device
CN112825543B (en) Shooting method and equipment
CN112637500B (en) Image processing method and device
CN113473007B (en) Shooting method and device
CN113473004A (en) Shooting method and device
CN112040126A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112653843A (en) Shooting method and device based on holder and electronic equipment
CN113114933A (en) Image shooting method and device, electronic equipment and readable storage medium
CN114040113A (en) Image processing method and device
CN113866782A (en) Image processing method and device and electronic equipment
CN113302908B (en) Control method, handheld cradle head, system and computer readable storage medium
JP5917061B2 (en) Imaging apparatus, control method therefor, program, and storage medium
WO2023241495A1 (en) Photographic method and apparatus
CN112189333B (en) Following shooting, holder control method, shooting device, handheld holder and shooting system
US20230298197A1 (en) Electronic device with gaze-based autofocus of camera during video rendition of scene
CN112261262B (en) Image calibration method and device, electronic equipment and readable storage medium
CN112291476B (en) Shooting anti-shake processing method and device and electronic equipment
CN111654623B (en) Photographing method and device and electronic equipment
CN114245018A (en) Image shooting method and device
CN112399092A (en) Shooting method and device and electronic equipment
CN115134517A (en) Shooting control method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination