CN110602399A - Processing method and device for lifting obstacle of camera and mobile terminal - Google Patents

Processing method and device for lifting obstacle of camera and mobile terminal Download PDF

Info

Publication number
CN110602399A
CN110602399A CN201910874765.0A CN201910874765A CN110602399A CN 110602399 A CN110602399 A CN 110602399A CN 201910874765 A CN201910874765 A CN 201910874765A CN 110602399 A CN110602399 A CN 110602399A
Authority
CN
China
Prior art keywords
camera
lifting
driving motor
value
hall
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
CN201910874765.0A
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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201910874765.0A priority Critical patent/CN110602399A/en
Publication of CN110602399A publication Critical patent/CN110602399A/en
Priority to PCT/CN2020/114757 priority patent/WO2021052251A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R33/00Arrangements or instruments for measuring magnetic variables
    • G01R33/02Measuring direction or magnitude of magnetic fields or magnetic flux
    • G01R33/06Measuring direction or magnitude of magnetic fields or magnetic flux using galvano-magnetic devices
    • G01R33/07Hall effect devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • 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

Abstract

The invention discloses a method and a device for processing a camera lifting obstacle and a mobile terminal, wherein the method comprises the following steps: in the lifting process of the camera, simultaneously controlling the upper Hall element to acquire an upper Hall value of a magnetic field of the camera and controlling the lower Hall element to acquire a lower Hall value of the magnetic field of the camera; judging whether the camera meets lifting obstacles in the lifting process according to the upper Hall value and the lower Hall value; if the camera meets lifting obstacles in the lifting process, the running speed of the driving motor is reduced, the driving motor is controlled to run at the reduced running speed, and all the steps are repeatedly executed until the camera does not meet the lifting obstacles in the lifting process. According to the technical scheme, after the camera encounters lifting obstacles in the lifting process, the running speed of the driving motor can be adjusted, so that the camera continues to be lifted and lowered, the camera is lifted to the place more frequently, the driving motor is protected, and user experience is optimized.

Description

Processing method and device for lifting obstacle of camera and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a method and a device for processing a camera lifting obstacle and a mobile terminal.
Background
In the existing mobile terminal, in order to adapt to the hardware layout of the full-screen mobile terminal and improve the convenience of photographing of the mobile terminal, a liftable camera is applied to the mobile terminal by more and more mobile phone manufacturers.
The camera of current liftable often passes through motor drive, at the in-process that the camera goes up and down, often can meet the lift obstacle, for example the camera goes up and down the in-process and meets the barrier, the too big and mobile terminal of driving motor load receives electromagnetic interference etc. however the camera is when meetting the lift obstacle, and driving motor still operates, harms driving motor's motor module greatly, leads to the mobile terminal camera can not normal execution lift operation, influences the user and shoots experience.
Disclosure of Invention
In view of the foregoing problems, an object of the embodiments of the present invention is to provide a method and an apparatus for processing a camera lift obstacle, and a mobile terminal, so as to solve the deficiencies of the prior art.
According to an embodiment of the invention, a method for processing a camera lifting obstacle is provided, which is applied to a mobile terminal, wherein the mobile terminal comprises a magnetic camera, a driving motor, an upper hall element and a lower hall element, the camera is connected with the driving motor so that the driving motor drives the camera to move along a lifting direction, and a straight line where the upper hall element and the lower hall element are located is parallel to the lifting direction;
the processing method comprises the following steps:
in the lifting process of the camera, controlling the upper Hall element to collect an upper Hall value of the magnetic field of the camera, and simultaneously controlling the lower Hall element to collect a lower Hall value of the magnetic field of the camera;
judging whether the camera meets lifting obstacles in the lifting process according to the upper Hall value and the lower Hall value;
if the camera does not encounter lifting obstacles, controlling the driving motor to operate at the current operating speed;
if the camera encounters a lifting obstacle in the lifting process, reducing the running speed of the driving motor, controlling the driving motor to run at the reduced running speed, and repeatedly executing all the steps until the number of times of reducing the running speed of the driving motor reaches a preset number threshold value and stopping execution;
and if the camera still encounters lifting obstacles in the lifting process after the times reach the time threshold value, sending out prompt information that the camera has lifting faults.
In the above method for processing a lifting obstacle of a camera, the determining whether the camera encounters the lifting obstacle in the lifting process according to the upper hall value and the lower hall value includes:
subtracting the difference value of the upper Hall value and the lower Hall value at the previous moment from the difference value of the upper Hall value and the lower Hall value at the current moment to obtain a Hall fluctuation value;
judging whether at least preset Hall fluctuation values are in a fault interval or not, and judging whether the current movement step number of the driving motor is smaller than a preset step number threshold value or not;
if at least a preset number of Hall fluctuation values are in the fault interval and the current movement step number is smaller than the preset step number threshold value, judging that the camera encounters a lifting obstacle;
otherwise, judging that the camera does not encounter lifting obstacles.
In the method for processing the camera lifting obstacle, the preset number is two, and the fault interval is (-3mT, 3 mT).
In the above method for processing the camera lift obstacle, the preset step number threshold is a product of the total motion step number and a predetermined proportion value.
In the above method for processing a camera lift obstacle, the number threshold is three;
the reducing the operation speed of the driving motor, controlling the driving motor to operate at the reduced operation speed, and repeatedly executing all the steps until the number of times of reducing the operation speed of the driving motor reaches a preset number threshold, and stopping executing the steps comprises:
adjusting a current operating speed of the drive motor to a first downshift speed at which the drive motor is controlled to operate, wherein the first downshift speed is less than the current operating speed;
if the driving motor runs at a first downshift speed, the camera still encounters a lifting obstacle in the subsequent lifting process, the first downshift speed is continuously adjusted downwards to a second downshift speed, and the driving motor is controlled to run at the second downshift speed, wherein the second downshift speed is smaller than the first downshift speed;
if the driving motor runs at a second downshift speed, the camera still encounters a lifting obstacle in the subsequent lifting process, the second downshift speed is continuously adjusted downwards to a third downshift speed, and the driving motor is controlled to run at the third downshift speed, wherein the third downshift speed is smaller than the second downshift speed.
According to another embodiment of the invention, a device for processing a camera lifting obstacle is provided, which is applied to a mobile terminal, wherein the mobile terminal comprises a magnetic camera, a driving motor, an upper hall element and a lower hall element, the camera is connected with the driving motor so that the driving motor drives the camera to move along a lifting direction, and a straight line where the upper hall element and the lower hall element are located is parallel to the lifting direction;
the processing device comprises:
the acquisition module is used for controlling the upper Hall element to acquire an upper Hall value of the magnetic field of the camera and simultaneously controlling the lower Hall element to acquire a lower Hall value of the magnetic field of the camera in the lifting process of the camera;
the judgment module is used for judging whether the camera meets lifting obstacles in the lifting process according to the upper Hall value and the lower Hall value;
the adjusting module is used for reducing the running speed of the driving motor when the camera encounters a lifting obstacle in the lifting process, controlling the driving motor to run at the reduced running speed, and repeatedly executing all contents in the acquisition module and the judging module until the number of times of reducing the running speed of the driving motor reaches a preset number threshold value to stop executing;
and the prompting module is used for sending out the prompting information that the camera has a lifting fault when the camera still encounters a lifting obstacle in the lifting process after the times reach the time threshold value.
In the above processing apparatus for camera lift failure, the determining module includes:
the computing unit is used for subtracting the difference value of the upper Hall value and the lower Hall value at the previous moment from the difference value of the upper Hall value and the lower Hall value at the current moment to obtain a Hall fluctuation value;
and the fault judgment unit is used for judging whether at least a preset number of Hall fluctuation values are in a fault interval and judging whether the current moving step number of the driving motor is smaller than a preset step number threshold value, if at least a preset number of Hall fluctuation values are in the fault interval and the current moving step number is smaller than the preset step number threshold value, judging that the camera meets a lifting obstacle, and if not, judging that the camera does not meet the lifting obstacle.
In the above processing apparatus for camera lift failure, the preset number is two, and the fault interval is (-3mT, 3 mT).
According to still another embodiment of the present invention, a mobile terminal is provided, which includes a memory for storing a computer program and a processor for operating the computer program to make the mobile terminal execute the above-mentioned method for processing the camera lift obstacle.
According to still another embodiment of the present invention, there is provided a computer-readable storage medium storing the computer program used in the mobile terminal described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the invention relates to a method, a device and a mobile terminal for processing a lifting obstacle of a camera, which can respectively detect the magnetic field change of the camera in the lifting process according to two Hall elements, judge whether the camera meets the lifting obstacle in the lifting process according to the Hall value detected by each Hall element, avoid the damage to a driving motor caused by the lifting of the driving motor according to the original speed when the camera meets the lifting obstacle, gradually reduce the running speed of the driving motor until the reduction frequency reaches a preset frequency threshold value, send a prompt message that the camera has the lifting fault when the camera still meets the lifting obstacle in the lifting process after the reduction frequency reaches the preset frequency threshold value, and avoid the camera from meeting the lifting obstacle in the lifting process as much as possible by gradually reducing the running speed of the driving motor within the frequency threshold value, the probability of the camera being lifted in place is improved, the driving motor is protected, damage to the driving motor caused by lifting faults is reduced, and user experience is optimized.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart illustrating a method for processing a camera lift obstacle according to a first embodiment of the present invention.
Fig. 2a is a schematic structural diagram of a mobile terminal with a descending camera according to a first embodiment of the present invention.
Fig. 2b is a schematic structural diagram of a mobile terminal with a camera in a lifted state according to a first embodiment of the present invention.
Fig. 3 is a schematic flow chart illustrating a method for determining whether a camera encounters a lifting obstacle according to a first embodiment of the present invention.
Fig. 4 is a schematic structural diagram illustrating a device for processing a camera lift obstacle according to a second embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a determining module according to a second embodiment of the present invention.
Description of the main element symbols:
11-an upper hall element; 12-lower hall element; 131-an imaging device; 132-a magnetic member; 14-a drive motor;
500-camera lifting obstacle processing device; 510-an acquisition module; 520-a judgment module; 521-a computing unit; 522-failure determination unit; 530-an adjustment module; 540-prompt module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The following detailed description of embodiments of the invention refers to the accompanying drawings.
Example 1
Fig. 1 is a schematic flow chart illustrating a method for processing a camera lift obstacle according to a first embodiment of the present invention.
The method for processing the lifting obstacle of the camera is applied to a mobile terminal, the mobile terminal comprises a magnetic camera, a driving motor 14, an upper Hall element 11 and a lower Hall element 12, the camera is connected with the driving motor 14 so that the driving motor 14 drives the camera to move along the lifting direction, and the straight line where the upper Hall element 11 and the lower Hall element 12 are located is parallel to the lifting direction.
In this embodiment, the magnetic camera may include an imaging device 131 and a magnetic member 132, the imaging device 131 and the magnetic member 132 may be integrally disposed or may be separately and independently disposed, in the case of separate and independent disposition, the magnetic member 132 may be disposed on the imaging device 131, and when the imaging device 131 is lifted, the magnetic member 132 is lifted along with the lifting. In some other embodiments, with the rapid development of technology, the magnetic camera in the future may also be a camera made of a magnetic material, which is not limited herein.
Specifically, the driving motor 14 is configured to drive the camera to ascend and descend along the ascending and descending direction, and the upper hall element 11 and the lower hall element 12 are disposed on the main board of the mobile terminal at a position close to the magnetic member 132, and are electrically connected to the main board. The upper hall element 11 and the lower hall element 12 are linearly arranged in the lifting direction, that is, the straight line where the upper hall element 11 and the lower hall element 12 are located is parallel to the lifting direction. The arrangement mode can ensure that the upper Hall element 11 and the lower Hall element 12 can sense the magnetic field with the same rule change in the lifting process of the camera, and the precision of the processing method for the lifting obstacle of the camera is improved.
A Hall element is utilized in the lifting camera scheme of the existing mobile terminal, and two magnetic pieces sense the displacement action of the camera. These two magnetic part settings are on the camera, and hall element can be used for detecting magnetic field intensity, and these two magnetic part can make and let hall element can detect enough strong magnetic field intensity. And the scheme of two hall elements and a magnetic part is adopted in this embodiment, and whether the camera meets the situation of lifting obstacle in the lifting process is determined by the hall values collected by the two hall elements, so that the success rate of judging the fault situation is greatly increased compared with the scheme of the existing one hall element. In addition, because the volume of the hall element is smaller than that of the magnetic part, under the condition that the existing mobile terminal is gradually light and thin, full screen and intelligent, the technical scheme in the embodiment can make the mobile terminal smaller and thinner, and is more beneficial to the development of full screen and intelligence.
In this embodiment, the driving motor may be a screw motor, and the screw motor is easier to control and more stable to operate for a long time under the condition that the internal space of the mobile phone is more narrow. In some other embodiments, the driving motor may also be other driving devices for implementing the lifting function, and is not limited herein.
If the lifting direction is defined as the Y-axis direction in FIG. 2a, the X-axis direction is perpendicular to the Y-axis direction. Assuming that the position coordinate of the upper hall element 11 is M (x1, x2) and the position coordinate of the lower hall element 12 is N (x2, y2), in the above design scheme, x1 is x2, y1> y2, then, during the gradual descending process of the camera head, the driving motor 14 controls the camera head to gradually approach the driving motor 14, at this time, the magnetic field of the magnetic member 132 sensed by the lower hall element 12 becomes stronger, and the magnetic field of the magnetic member 132 sensed by the upper hall element 11 becomes weaker.
As shown in fig. 2b, during the process of gradually raising the camera, the driving motor 14 controls the camera to gradually approach to a direction away from the driving motor 14, at this time, the magnetic field of the magnetic member 132 sensed by the upper hall element 11 becomes stronger, and the magnetic field of the magnetic member 132 sensed by the lower hall element 12 becomes weaker.
The method for processing the lifting obstacle of the camera comprises the following steps:
in step S110, in the process of lifting the camera, the upper hall element is controlled to acquire an upper hall value of the magnetic field of the camera, and the lower hall element is simultaneously controlled to acquire a lower hall value of the magnetic field of the camera.
Specifically, in the process of lifting the camera, the upper hall element and the lower hall element may be controlled at preset time intervals (for example, 10ms) to collect the magnetic flux density or the magnetic induction intensity of the camera, the value of the magnetic flux density or the magnetic induction intensity collected by the upper hall element is used as an upper hall value, and the value of the magnetic flux density or the magnetic induction intensity collected by the lower hall element is used as a lower hall value.
In step S120, it is determined whether the camera encounters a lift obstacle during the lift.
Specifically, whether the camera meets a lifting obstacle is judged according to the upper Hall value and the lower Hall value.
Further, as shown in fig. 3, the determining whether the camera encounters a lifting obstacle according to the upper hall value and the lower hall value includes the following steps:
in step S210, the difference between the upper hall value and the lower hall value at the current time is subtracted from the difference between the upper hall value and the lower hall value at the previous time to obtain a hall fluctuation value.
For example, assuming a hall fluctuation value Δ D, Δ D can be calculated by the following formula:
ΔD=(DATAUP-DATADOWN)-(PRE_DATAUP-PRE_DATADOWN)
wherein, DATAUPUpper Hall value, DATA, collected for the current momentDOWNFor the lower Hall value, PRE _ DATA, acquired at the present momentUPFor the upper Hall value, PRE _ DATA, acquired at the previous momentDOWNThe lower hall value collected at the previous moment.
It should be noted that the previous time in this embodiment refers to a latest acquisition time before the current acquisition time.
In step S220, it is determined whether at least a preset number of hall fluctuation values are within the fault section.
Specifically, since there are a plurality of hall fluctuation values obtained in step S210, each hall fluctuation value is compared with the fault section, and it is determined whether there are at least a preset number of hall fluctuation values in the fault section, and if there are at least a preset number of hall fluctuation values in the fault section, the process proceeds to step S230; if at least the preset number of hall fluctuation values are not in the fault interval, the process proceeds to step S250.
It should be noted that the fault sections and the preset number are both related to the positions of the upper hall element and the lower hall element relative to the magnetic member.
As a preferable scheme, in the design process of the mobile terminal, after the camera is lifted to the right position, the camera corresponds to a fixed maximum camera moving stroke, and correspondingly, the magnetic member also corresponds to a fixed maximum magnetic member moving stroke. When the magnetic member moves to a half position of the maximum magnetic member moving stroke, a central point of the magnetic member and a central point of a connecting line between the upper hall element and the lower hall element are in a straight line in a direction (such as an X-axis direction in fig. 2a and 2 b) perpendicular to a lifting direction.
In the mobile terminal according to the above preferred embodiment, statistical learning is performed on a plurality of hall fluctuation values acquired by each hall element and data of whether the camera corresponding to the hall fluctuation value encounters a lifting obstacle, so as to obtain a fault interval in which the camera is in a fault state, for example, the preset number may be 2, and the fault interval may be (-3mT, 3mT), where mT is millitesla.
In step S230, it is determined whether the current number of moving steps of the driving motor is less than a preset number of steps threshold.
Under the condition that at least the preset number of Hall fluctuation values are in the fault interval, continuously judging whether the current movement step number of the driving motor is smaller than a preset step number threshold value or not, if the current movement step number of the driving motor is smaller than the preset step number threshold value, namely when the operation step number of the driving motor is smaller than the preset step number threshold value, if at least the preset number of Hall fluctuation values are in the fault interval, determining that the camera meets a lifting obstacle, and advancing to step S240; if the current moving step number of the driving motor is greater than or equal to the preset step number threshold, the process proceeds to step S250.
Further, the preset step number threshold is set in relation to the positions of the upper hall element and the lower hall element relative to the magnetic member. In the mobile terminal according to the above preferred embodiment, the preset step number threshold may be set as a product of the total number of moving steps and a predetermined ratio.
Wherein the predetermined ratio value may be ninety percent.
Specifically, the current movement Step number Step may be determined by the following formula:
Step=(t1-t2)*f
where t1 is the time corresponding to the current motion step number, t2 is the time when the pulse starts to be applied to the driving motor, and f is the pulse frequency applied to the driving motor.
In step S240, the camera encounters a lifting obstacle.
In step S250, the camera does not encounter a lifting obstacle.
If the camera encounters a lifting obstacle, the process goes to step S130; if the camera does not encounter the lifting obstacle, the process proceeds to step S160.
In step S130, the operating speed of the drive motor is reduced, and the drive motor is controlled to operate at the reduced operating speed.
Specifically, when the camera encounters a lifting obstacle during the lifting process, the current running speed of the drive motor is reduced, so that the drive motor continues to run at the reduced running speed, and the number of times of reducing the current running speed of the drive motor may also be recorded, for example, the number of times of reducing the current running speed of the drive motor is 1 when the current running speed of the drive motor is reduced for the first time, the number of times of reducing the current running speed of the drive motor is 2 when the current running speed of the drive motor is reduced for the second time, and so on.
In step S140, it is determined whether the number of times of decreasing the operation speed of the driving motor reaches a preset number threshold.
Specifically, in order to avoid an endless decrease in the speed of the drive motor, increase the algorithm execution speed, and reduce the number of times of meaningless adjustment of the operation speed of the drive motor, a number threshold is also preset, and it is determined whether the recorded number of decreases reaches the number threshold, and if the number of decreases reaches the number threshold, the process proceeds to step S150; if the reduction frequency does not reach the frequency threshold value, returning to the step S110, and continuing to execute the steps S110 to S130.
In step S150, after the number of times reaches the number threshold, the camera still encounters a lifting obstacle in the lifting process, and sends a prompt message that a lifting fault occurs in the camera.
In step S160, the drive motor is controlled to continue operating at the current operating speed.
Further, the number threshold is three.
The reducing the operation speed of the driving motor, controlling the driving motor to operate at the reduced operation speed, and repeatedly executing all the steps until the number of times of reducing the operation speed of the driving motor reaches a preset number threshold, and stopping executing the steps comprises:
adjusting a current operating speed of the drive motor to a first downshift speed at which the drive motor is controlled to operate, wherein the first downshift speed is less than the current operating speed; if the driving motor runs at a first downshift speed, the camera still encounters a lifting obstacle in the subsequent lifting process, the first downshift speed is continuously adjusted downwards to a second downshift speed, and the driving motor is controlled to run at the second downshift speed, wherein the second downshift speed is smaller than the first downshift speed; if the driving motor runs at a second downshift speed, the camera still encounters a lifting obstacle in the subsequent lifting process, the second downshift speed is continuously adjusted downwards to a third downshift speed, and the driving motor is controlled to run at the third downshift speed, wherein the third downshift speed is smaller than the second downshift speed.
Specifically, an initial operating speed of the driving motor is set, the driving motor is controlled to operate at the initial operating speed, and the camera is driven to execute lifting operation, wherein the current operating speed of the driving motor is the initial operating speed.
When the driving motor is at the initial running speed, judging whether the camera meets a lifting obstacle in the lifting process, if the camera does not meet the lifting obstacle, the camera is normal in running, and the camera driven by the driving motor is normal in lifting, so that the driving motor is controlled to maintain the current running speed to continue running; if the camera encounters a lifting obstacle, the current running speed is adjusted to be a first downshift speed, the driving motor is controlled to run at the first downshift speed, and the number of reduction times is recorded as 1. At this time, the current operating speed of the drive motor becomes the first downshift speed. Wherein a value of the first downshift speed is smaller than a value of an initial operating speed.
Judging whether the reduction frequency reaches three times or not, continuously collecting an upper Hall value and a lower Hall value when the driving motor operates at a first downshift speed because the current reduction frequency does not reach three times, and continuously judging whether the camera meets a lifting obstacle in the lifting process according to the continuously collected upper Hall value and lower Hall value; and if the camera encounters a lifting obstacle, adjusting the current running speed to a second downshift speed, controlling the driving motor to run at the second downshift speed, and recording the reduction times as 2. At this time, the current operation speed of the drive motor becomes the second downshift speed. Wherein the value of the second downshift speed is smaller than the value of the first downshift speed.
Judging whether the reduction frequency reaches three times or not, continuously collecting an upper Hall value and a lower Hall value when the driving motor operates at a second downshift speed because the current reduction frequency still does not reach three times, and continuously judging whether the camera meets a lifting obstacle in the lifting process according to the continuously collected upper Hall value and lower Hall value; and if the camera encounters a lifting obstacle, adjusting the current running speed to a third downshift speed, controlling the driving motor to run at the third downshift speed, and recording the reduction times as 3. At this time, the current operating speed of the drive motor becomes the third downshift speed. Wherein a value of the third downshift speed is smaller than a value of the second downshift speed.
And judging whether the reduction frequency reaches three times or not, and not continuously reducing the running speed of the driving motor because the current reduction frequency reaches three times. When the driving motor operates at a third downshift speed, continuously acquiring an upper Hall value and a lower Hall value, and continuously judging whether the camera meets a lifting obstacle in the lifting process according to the continuously acquired upper Hall value and the lower Hall value, wherein if the camera does not meet the lifting obstacle, the driving motor operates normally, and the camera driven by the driving motor operates normally, so that the driving motor is controlled to maintain the current operating speed, namely the third downshift speed continues to operate; if the camera still encounters lifting obstacles, the operation of reducing the running speed of the driving motor is not executed any more, and the prompt message that the camera has lifting faults is sent to prompt a user that the camera cannot lift normally.
The prompt information can prompt the user in a voice mode, and can also prompt the user in a mode of being displayed on a shooting screen.
Further, the first gear downshift may be a value of an initial operating speed multiplied by three quarters, the second gear downshift may be a value of the initial operating speed multiplied by one half, and the third gear downshift may be a value of the initial operating speed multiplied by one quarter.
Of course, the above-described first downshift speed, second downshift speed, third downshift speed, etc. may also be unevenly provided as long as the initial operation speed > first downshift speed > second downshift speed > third downshift speed is ensured.
Example 2
Fig. 4 is a schematic structural diagram illustrating a device for processing a camera lift obstacle according to a second embodiment of the present invention. The camera up-down obstacle processing device 500 corresponds to the camera up-down obstacle processing method of embodiment 1. Any of the options in embodiment 1 are also applicable to this embodiment, and will not be described in detail here.
This processing apparatus 500 of camera lift obstacle is applied to mobile terminal, mobile terminal includes magnetic camera, driving motor, goes up hall element and hall element down, the camera is connected driving motor is so that driving motor drives the camera moves along the direction of lift, go up hall element with hall element place straight line is on a parallel with down the direction of lift.
The device 500 for processing the camera lifting obstacle comprises an acquisition module 510, a judgment module 520 and an adjustment module 530.
And the acquisition module 510 is used for controlling the upper hall element to acquire the upper hall value of the magnetic field of the camera and simultaneously controlling the lower hall element to acquire the lower hall value of the magnetic field of the camera in the lifting process of the camera.
And the judging module 520 is configured to judge whether the camera encounters a lifting obstacle in the lifting process according to the upper hall value and the lower hall value.
An adjusting module 530, configured to reduce the operating speed of the driving motor when the camera encounters a lifting obstacle during a lifting process, control the driving motor to operate at the reduced operating speed, and repeatedly execute all the contents in the acquiring module 510 and the determining module 520 until the number of times of reducing the operating speed of the driving motor reaches a preset number threshold.
And the prompt module 540 is configured to send a prompt message that the camera has a lifting fault when the camera still encounters a lifting obstacle in the lifting process after the number of times reaches the number threshold.
Further, as shown in fig. 5, the determining module 520 includes a calculating unit 521 and a failure determining unit 522:
and the calculating unit 521 is configured to subtract the difference between the upper hall value and the lower hall value at the current moment by the difference between the upper hall value and the lower hall value at the previous moment to obtain the hall fluctuation value.
The fault determination unit 522 is configured to determine whether at least a preset number of hall fluctuation values are in a fault interval, determine whether the current moving step number of the driving motor is smaller than a preset step number threshold, determine that the camera encounters a lifting obstacle if at least the preset number of hall fluctuation values are in the fault interval and the current moving step number is smaller than the preset step number threshold, and otherwise determine that the camera does not encounter the lifting obstacle.
Further, the preset number is two, and the fault interval is (-3mT, 3 mT).
Another embodiment of the present invention further provides a mobile terminal, which may include a smart phone, a tablet computer, and the like.
The mobile terminal comprises a magnetic camera, a driving motor, an upper Hall element and a lower Hall element, wherein the camera is connected with the driving motor so that the driving motor drives the camera to move along the lifting direction, and the straight line where the upper Hall element and the lower Hall element are located is parallel to the lifting direction.
Another embodiment of the present invention further provides another mobile terminal, where the mobile terminal includes a memory and a processor, where the memory may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required by at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor is configured to run the computer program stored in the memory to enable the mobile terminal to execute the method for processing the camera lifting obstacle or the function of each module in the device for processing the camera lifting obstacle in the foregoing embodiments.
Alternatively, the processor may include one or more processing units; preferably, the processor may be integrated with an application processor, which primarily handles operating systems, user interfaces, application programs, and the like. The processor may or may not be integrated with the modem processor.
In addition, it will be understood by those skilled in the art that, in addition to the above-described devices, the mobile terminal may further include: radio Frequency (RF) circuit, input unit, display unit, audio circuit, wireless fidelity (WiFi) module, and power supply.
Those skilled in the art will appreciate that the above-described mobile terminal architecture is not intended to be limiting of mobile terminals and may include more or fewer components, or a combination of certain components, or a different arrangement of components.
Still another embodiment of the present invention provides a computer-readable storage medium for storing the computer program used in the above-mentioned mobile terminal.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. The method for processing the lifting obstacle of the camera is characterized by being applied to a mobile terminal, wherein the mobile terminal comprises a magnetic camera, a driving motor, an upper Hall element and a lower Hall element, the camera is connected with the driving motor so that the driving motor drives the camera to move along the lifting direction, and the straight line where the upper Hall element and the lower Hall element are located is parallel to the lifting direction;
the processing method comprises the following steps:
in the lifting process of the camera, controlling the upper Hall element to collect an upper Hall value of the magnetic field of the camera, and simultaneously controlling the lower Hall element to collect a lower Hall value of the magnetic field of the camera;
judging whether the camera meets lifting obstacles in the lifting process according to the upper Hall value and the lower Hall value;
if the camera encounters a lifting obstacle in the lifting process, reducing the running speed of the driving motor, controlling the driving motor to run at the reduced running speed, and repeatedly executing all the steps until the number of times of reducing the running speed of the driving motor reaches a preset number threshold value and stopping execution;
and if the camera still encounters lifting obstacles in the lifting process after the times reach the time threshold value, sending out prompt information that the camera has lifting faults.
2. The method for processing the lifting obstacle of the camera according to claim 1, wherein the step of judging whether the camera encounters the lifting obstacle in the lifting process according to the upper hall value and the lower hall value comprises the steps of:
subtracting the difference value of the upper Hall value and the lower Hall value at the previous moment from the difference value of the upper Hall value and the lower Hall value at the current moment to obtain a Hall fluctuation value;
judging whether at least preset Hall fluctuation values are in a fault interval or not, and judging whether the current movement step number of the driving motor is smaller than a preset step number threshold value or not;
if at least a preset number of Hall fluctuation values are in the fault interval and the current movement step number is smaller than the preset step number threshold value, judging that the camera encounters a lifting obstacle;
otherwise, judging that the camera does not encounter lifting obstacles.
3. The method for processing the camera lift obstacle according to claim 2, wherein the preset number is two, and the fault interval is (-3mT, 3 mT).
4. The method for processing the camera lifting obstacle according to claim 2, wherein the preset step number threshold is the product of the total moving step number and a preset proportional value.
5. The method for processing the camera lifting obstacle according to claim 1, wherein the number threshold is three;
the reducing the operation speed of the driving motor, controlling the driving motor to operate at the reduced operation speed, and repeatedly executing all the steps until the number of times of reducing the operation speed of the driving motor reaches a preset number threshold, and stopping executing the steps comprises:
adjusting a current operating speed of the drive motor to a first downshift speed at which the drive motor is controlled to operate, wherein the first downshift speed is less than the current operating speed;
if the driving motor runs at a first downshift speed, the camera still encounters a lifting obstacle in the subsequent lifting process, the first downshift speed is continuously adjusted downwards to a second downshift speed, and the driving motor is controlled to run at the second downshift speed, wherein the second downshift speed is smaller than the first downshift speed;
if the driving motor runs at a second downshift speed, the camera still encounters a lifting obstacle in the subsequent lifting process, the second downshift speed is continuously adjusted downwards to a third downshift speed, and the driving motor is controlled to run at the third downshift speed, wherein the third downshift speed is smaller than the second downshift speed.
6. The device for processing the lifting obstacle of the camera is characterized by being applied to a mobile terminal, wherein the mobile terminal comprises a magnetic camera, a driving motor, an upper Hall element and a lower Hall element, the camera is connected with the driving motor so that the driving motor drives the camera to move along the lifting direction, and the straight line where the upper Hall element and the lower Hall element are located is parallel to the lifting direction;
the processing device comprises:
the acquisition module is used for controlling the upper Hall element to acquire an upper Hall value of the magnetic field of the camera and simultaneously controlling the lower Hall element to acquire a lower Hall value of the magnetic field of the camera in the lifting process of the camera;
the judgment module is used for judging whether the camera meets lifting obstacles in the lifting process according to the upper Hall value and the lower Hall value;
the adjusting module is used for reducing the running speed of the driving motor when the camera encounters a lifting obstacle in the lifting process, controlling the driving motor to run at the reduced running speed, and repeatedly executing all contents in the acquisition module and the judging module until the number of times of reducing the running speed of the driving motor reaches a preset number threshold value to stop executing;
and the prompting module is used for sending out the prompting information that the camera has a lifting fault when the camera still encounters a lifting obstacle in the lifting process after the times reach the time threshold value.
7. The device for processing the camera lifting obstacle according to claim 6, wherein the judging module comprises:
the computing unit is used for subtracting the difference value of the upper Hall value and the lower Hall value at the previous moment from the difference value of the upper Hall value and the lower Hall value at the current moment to obtain a Hall fluctuation value;
and the fault judgment unit is used for judging whether at least a preset number of Hall fluctuation values are in a fault interval and judging whether the current moving step number of the driving motor is smaller than a preset step number threshold value, if at least a preset number of Hall fluctuation values are in the fault interval and the current moving step number is smaller than the preset step number threshold value, judging that the camera meets a lifting obstacle, and if not, judging that the camera does not meet the lifting obstacle.
8. The method for processing the camera lift obstacle according to claim 7, wherein the preset number is two, and the fault interval is (-3mT, 3 mT).
9. A mobile terminal, characterized in that the mobile terminal comprises a memory for storing a computer program and a processor for executing the computer program to make the mobile terminal execute the camera lift obstacle processing method according to any one of claims 1 to 5.
10. A computer-readable storage medium storing the computer program for use in the mobile terminal of claim 9.
CN201910874765.0A 2019-09-17 2019-09-17 Processing method and device for lifting obstacle of camera and mobile terminal Pending CN110602399A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910874765.0A CN110602399A (en) 2019-09-17 2019-09-17 Processing method and device for lifting obstacle of camera and mobile terminal
PCT/CN2020/114757 WO2021052251A1 (en) 2019-09-17 2020-09-11 Method and device for handling obstacle to lifting/lowering of camera, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910874765.0A CN110602399A (en) 2019-09-17 2019-09-17 Processing method and device for lifting obstacle of camera and mobile terminal

Publications (1)

Publication Number Publication Date
CN110602399A true CN110602399A (en) 2019-12-20

Family

ID=68860044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910874765.0A Pending CN110602399A (en) 2019-09-17 2019-09-17 Processing method and device for lifting obstacle of camera and mobile terminal

Country Status (2)

Country Link
CN (1) CN110602399A (en)
WO (1) WO2021052251A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131674A (en) * 2019-12-23 2020-05-08 瑞声通讯科技(常州)有限公司 Imaging device and electronic apparatus
CN111182187A (en) * 2020-01-09 2020-05-19 深圳传音控股股份有限公司 Camera module lifting device and mobile terminal
CN111246085A (en) * 2020-01-10 2020-06-05 维沃移动通信(杭州)有限公司 Control method and device and electronic equipment
CN111654633A (en) * 2020-06-22 2020-09-11 四川酷比通信设备有限公司 Calibration method and system of lifting motor
WO2021052251A1 (en) * 2019-09-17 2021-03-25 深圳市万普拉斯科技有限公司 Method and device for handling obstacle to lifting/lowering of camera, and mobile terminal
CN113347359A (en) * 2021-06-02 2021-09-03 深圳康佳电子科技有限公司 Position adjusting method, device and equipment of image acquisition device and storage medium
CN113572895A (en) * 2021-06-17 2021-10-29 荣耀终端有限公司 Electronic apparatus and control method
CN113596249A (en) * 2021-06-17 2021-11-02 荣耀终端有限公司 Electronic apparatus and control method
CN113727020A (en) * 2021-07-28 2021-11-30 北京瞰瞰智能科技有限公司 Intelligent lifting processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702843A (en) * 2015-02-12 2015-06-10 广东欧珀移动通信有限公司 Method for preventing camera idling and terminal
CN108829277A (en) * 2018-06-08 2018-11-16 Oppo广东移动通信有限公司 Electronic device, method for control speed and Related product
CN110221657A (en) * 2019-06-06 2019-09-10 Oppo(重庆)智能科技有限公司 Drive control method, apparatus, terminal and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102412291B1 (en) * 2017-08-18 2022-06-23 삼성전자 주식회사 Electronic device for controlling shaking of lens unit included in a camera module and a method for the same
CN209233872U (en) * 2018-10-16 2019-08-09 广东长盈精密技术有限公司 Mobile terminal
CN109981009B (en) * 2019-04-28 2021-12-07 维沃移动通信有限公司 Control method of stepping motor and mobile terminal
CN110602399A (en) * 2019-09-17 2019-12-20 深圳市万普拉斯科技有限公司 Processing method and device for lifting obstacle of camera and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702843A (en) * 2015-02-12 2015-06-10 广东欧珀移动通信有限公司 Method for preventing camera idling and terminal
CN108134904A (en) * 2015-02-12 2018-06-08 广东欧珀移动通信有限公司 A kind of method and terminal that prevent camera from dallying
CN108829277A (en) * 2018-06-08 2018-11-16 Oppo广东移动通信有限公司 Electronic device, method for control speed and Related product
CN110221657A (en) * 2019-06-06 2019-09-10 Oppo(重庆)智能科技有限公司 Drive control method, apparatus, terminal and computer readable storage medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021052251A1 (en) * 2019-09-17 2021-03-25 深圳市万普拉斯科技有限公司 Method and device for handling obstacle to lifting/lowering of camera, and mobile terminal
CN111131674A (en) * 2019-12-23 2020-05-08 瑞声通讯科技(常州)有限公司 Imaging device and electronic apparatus
CN111182187A (en) * 2020-01-09 2020-05-19 深圳传音控股股份有限公司 Camera module lifting device and mobile terminal
CN111246085A (en) * 2020-01-10 2020-06-05 维沃移动通信(杭州)有限公司 Control method and device and electronic equipment
WO2021139694A1 (en) * 2020-01-10 2021-07-15 维沃移动通信有限公司 Control method and device, and electronic apparatus
CN111654633B (en) * 2020-06-22 2021-10-26 四川酷比通信设备有限公司 Camera-based lifting motor calibration method and system
CN111654633A (en) * 2020-06-22 2020-09-11 四川酷比通信设备有限公司 Calibration method and system of lifting motor
CN113347359A (en) * 2021-06-02 2021-09-03 深圳康佳电子科技有限公司 Position adjusting method, device and equipment of image acquisition device and storage medium
CN113347359B (en) * 2021-06-02 2022-10-04 深圳康佳电子科技有限公司 Position adjusting method, device and equipment of image acquisition device and storage medium
CN113572895A (en) * 2021-06-17 2021-10-29 荣耀终端有限公司 Electronic apparatus and control method
CN113596249A (en) * 2021-06-17 2021-11-02 荣耀终端有限公司 Electronic apparatus and control method
CN113596249B (en) * 2021-06-17 2022-06-24 荣耀终端有限公司 Electronic apparatus and control method
CN113572895B (en) * 2021-06-17 2022-07-22 荣耀终端有限公司 Electronic apparatus and control method
CN113727020A (en) * 2021-07-28 2021-11-30 北京瞰瞰智能科技有限公司 Intelligent lifting processing method and device and electronic equipment
CN113727020B (en) * 2021-07-28 2023-08-08 北京瞰瞰智能科技有限公司 Lifting intelligent processing method and device and electronic equipment

Also Published As

Publication number Publication date
WO2021052251A1 (en) 2021-03-25

Similar Documents

Publication Publication Date Title
CN110602399A (en) Processing method and device for lifting obstacle of camera and mobile terminal
CN110602297B (en) Method and device for calibrating motion steps of lifting motor and mobile terminal
US9955341B2 (en) Method for preventing call-up operation errors and system using the same
CN109089023B (en) Terminal and control method
EP2535799A2 (en) Apparatus and method for scrolling in device with touch screen
CN110581952A (en) Camera lifting control method and device and mobile terminal
CN110546592A (en) determining user presence based on sensed distance
CN105718173B (en) Terminal control method, terminal control device and terminal
CN109256095B (en) LED current protection method, display and storage medium
KR20140011690A (en) Proximity sensor and proximity sensing method using light quantity of reflection light
CN108829277B (en) Electronic device, speed control method and related product
CN108989491B (en) Electronic device, speed control method and related product
CN103399711A (en) Display control method of pop-up window and terminal
CN109891363B (en) Information processing apparatus, electronic device, method of controlling information processing apparatus, and storage medium
EP3885222A1 (en) Vehicle and control method and device for gear detection of reducer
US20150301630A1 (en) Selective frame rate switching
CN112445358A (en) Adjusting method, terminal and computer storage medium
JP2012155545A (en) Infrared proximity sensor calibration device for touch panel
CN110602296B (en) Method and device for calibrating motion steps of stepping motor and mobile terminal
CN111510632B (en) Lift type camera position detection circuit, method and computer readable storage medium
CN110850579B (en) Pan-tilt and tilt control method and device, control main board and periscope pan-tilt
US11656752B2 (en) Electronic device for displaying slider track and slider and method of operating same
CN110800277B (en) Call processing method and related product
WO2023000883A1 (en) Control apparatus and control method for lifting camera, and terminal device
CN114124920A (en) Vehicle power control method and device and terminal equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220

RJ01 Rejection of invention patent application after publication