CN108769478B - Control method of sliding assembly, control assembly and electronic equipment - Google Patents

Control method of sliding assembly, control assembly and electronic equipment Download PDF

Info

Publication number
CN108769478B
CN108769478B CN201810590017.5A CN201810590017A CN108769478B CN 108769478 B CN108769478 B CN 108769478B CN 201810590017 A CN201810590017 A CN 201810590017A CN 108769478 B CN108769478 B CN 108769478B
Authority
CN
China
Prior art keywords
camera
image
sliding assembly
controlling
rotate relative
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201810590017.5A
Other languages
Chinese (zh)
Other versions
CN108769478A (en
Inventor
张洲川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810590017.5A priority Critical patent/CN108769478B/en
Publication of CN108769478A publication Critical patent/CN108769478A/en
Application granted granted Critical
Publication of CN108769478B publication Critical patent/CN108769478B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/685Vibration or motion blur correction performed by mechanical compensation
    • H04N23/687Vibration or motion blur correction performed by mechanical compensation by shifting the lens or sensor position

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Accessories Of Cameras (AREA)

Abstract

The invention provides a control method of a sliding assembly, the control assembly and electronic equipment, wherein the sliding assembly is used for the electronic equipment, the electronic equipment comprises a body and a camera, the camera is arranged on the sliding assembly, the sliding assembly drives the camera to translate and rotate relative to the body, and the method comprises the following steps: controlling the sliding assembly to drive the camera to translate relative to the body; when the camera is translated to the side wall of the protruding body, a first image collected by the camera is obtained; if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process; when the target object is presented in the second image, the sliding assembly is controlled to stop driving the camera to rotate relative to the body. According to the method, the sliding assembly drives the camera to automatically acquire the image, so that the user operation is reduced, and the technical problems that in the prior art, the shooting posture is difficult and the shot image is fuzzy due to the fact that the user moves the camera to shoot the image are solved.

Description

Control method of sliding assembly, control assembly and electronic equipment
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a control method of a sliding assembly, a control assembly and electronic equipment.
Background
With the continuous development of terminal technology, more and more users use electronic equipment to take pictures. The electronic equipment used at present drives a camera to rotate to collect pictures by moving the electronic equipment through a user so as to find a shot target.
However, in practical use, the inventor finds that in the process of shooting by a user moving an electronic device, the shot picture is blurred due to hand shake, so that the shooting effect is poor. Meanwhile, it has been found that in some specific scenes, the user can complete photographing only by a difficult photographing posture.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the invention provides a control method of a sliding assembly, a control assembly and electronic equipment, and solves the technical problems that in the prior art, a user moves a camera to drive the electronic equipment to rotate to acquire a shot picture, so that the shooting posture is difficult and the shot picture is fuzzy.
An embodiment of the invention provides a control method of a sliding assembly, the sliding assembly is used for electronic equipment, the electronic equipment comprises a body and a camera, the camera is arranged on the sliding assembly, the sliding assembly drives the camera to translate and rotate relative to the body, and the control method comprises the following steps:
controlling the sliding assembly to drive the camera to translate relative to the body;
when the camera is translated to protrude out of the side wall of the body, a first image collected by the camera is obtained;
if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process;
and when the target object is presented in the second image, controlling the sliding assembly to stop driving the camera to rotate relative to the body.
According to the sliding component control method, the sliding component is controlled to drive the camera to translate relative to the body; when the camera is translated to the side wall of the protruding body, a first image collected by the camera is obtained; if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process; when the target object is presented in the second image, the sliding assembly is controlled to stop driving the camera to rotate relative to the body. According to the method, the sliding assembly drives the camera to automatically acquire the image, so that the user operation is reduced, the automation degree of the electronic equipment is improved, and the technical problems that in the prior art, the shooting posture is difficult and the shot picture is fuzzy due to the fact that the electronic equipment is driven to rotate to acquire the shot picture by moving the camera through a human body are solved.
In another embodiment of the present invention, a control assembly is provided, where the control assembly is used for an electronic device, the electronic device includes a body, a sliding assembly and a camera, the camera is disposed on the sliding assembly, the sliding assembly drives the camera to translate and rotate relative to the body under the control of the control assembly, the control assembly includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor executes the program to:
controlling the sliding assembly to drive the camera to translate relative to the body;
when the camera is translated to protrude out of the side wall of the body, a first image collected by the camera is obtained;
if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process;
and when the target object is presented in the second image, controlling the sliding assembly to stop driving the camera to rotate relative to the body.
According to the control assembly provided by the embodiment of the invention, the camera is driven to translate relative to the body by controlling the sliding assembly; when the camera is translated to the side wall of the protruding body, a first image collected by the camera is obtained; if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process; when the target object is presented in the second image, the sliding assembly is controlled to stop driving the camera to rotate relative to the body. According to the method, the sliding assembly drives the camera to automatically acquire the image, so that the user operation is reduced, the automation degree of the electronic equipment is improved, and the technical problems that in the prior art, the shooting posture is difficult and the shot picture is fuzzy due to the fact that the electronic equipment is driven to rotate to acquire the shot picture by moving the camera through a human body are solved.
An embodiment of another aspect of the present invention provides an electronic device, including:
a body;
the camera is used for collecting images;
the detection assembly is used for detecting the position of the camera relative to the body;
the sliding assembly is provided with the camera and is used for driving the camera to translate and rotate relative to the body;
the control assembly is electrically connected with the sliding assembly and the camera and is used for controlling the sliding assembly to drive the camera to translate relative to the body, and when the detection assembly determines that the camera translates to protrude out of the side wall of the body, a first image collected by the camera is obtained;
if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process; and when the target object is presented in the second image, controlling the sliding assembly to stop driving the camera to rotate relative to the body.
According to the electronic equipment provided by the embodiment of the invention, the sliding component is controlled to drive the camera to translate relative to the body; when the camera is translated to the side wall of the protruding body, a first image collected by the camera is obtained; if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process; when the target object is presented in the second image, the sliding assembly is controlled to stop driving the camera to rotate relative to the body. According to the method, the sliding assembly drives the camera to automatically acquire the image, so that the user operation is reduced, the automation degree of the electronic equipment is improved, and the technical problems that in the prior art, the shooting posture is difficult and the shot picture is fuzzy due to the fact that the electronic equipment is driven to rotate to acquire the shot picture by moving the camera through a human body are solved.
In another aspect, an embodiment of the present invention provides another electronic device, including: body, sliding component and camera, the camera set up in sliding component is last, sliding component is used for driving the camera is relative body translation and rotation, electronic equipment still includes: the control method of the sliding component comprises the following steps of storing a program, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the control method of the sliding component according to the previous embodiment of the application.
A further embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, wherein the program is executed by a processor to implement the control method of the sliding assembly as set forth in the previous embodiment of the present application.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating a control method of a sliding assembly according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another electronic device according to an embodiment of the invention;
fig. 4 is a flowchart illustrating a control method of a sliding assembly according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a control assembly according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of another electronic device according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of another electronic device according to a fourth embodiment of the present invention; and
fig. 9 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
With the continuous development of terminal technology, more and more users use electronic equipment to take pictures. In the process of photographing, a user drives the camera to rotate through the mobile electronic equipment to collect pictures so as to find a photographed human body, however, the difficulty of photographing postures can be brought under certain specific environmental scenes, and the technical problems of picture blurring and the like caused by vibration of the electronic equipment during photographing can be solved.
The technical problems that in the prior art, a camera is driven to rotate to collect pictures through mobile electronic equipment, so that the shooting posture is difficult and the shot pictures are fuzzy are solved. In the embodiment, the sliding assembly is controlled to drive the camera to translate relative to the body; when the camera is translated to the side wall of the protruding body, a first image collected by the camera is obtained; if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process; when the target object is presented in the second image, the sliding assembly is controlled to stop driving the camera to rotate relative to the body. According to the method, the sliding assembly drives the camera to automatically acquire the image, so that the user operation is reduced, the automation degree of the electronic equipment is improved, and the technical problems that in the prior art, the shooting posture is difficult and the shot picture is fuzzy due to the fact that the electronic equipment is driven to rotate to acquire the shot picture by moving the camera through a human body are solved.
A control method and apparatus of a slide module according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a control method of a sliding assembly according to an embodiment of the present invention.
The sliding assembly provided by the embodiment of the invention is used for electronic equipment. For example, referring to fig. 2, fig. 2 is a schematic structural diagram of an electronic device according to a first embodiment of the present invention. Wherein, electronic equipment 100 includes: the camera comprises a body 10, a camera 20 (a circular area in the figure) and a sliding assembly 30, wherein the camera 20 is arranged on the sliding assembly 30, the sliding assembly 30 drives the camera 20 to translate and rotate relative to the body 10, and fig. 2 shows that the sliding assembly 30 is located inside the body 10.
It should be noted that, in the present embodiment, the shape and the position of the component in the structure diagram are not limited, but are only used as an example to illustrate the method provided by the present embodiment.
The electronic device can be a hardware device with various operating systems, touch screens and/or display screens, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and the like.
As shown in fig. 1, the control method of the sliding assembly includes the steps of:
and 101, controlling the sliding assembly to drive the camera to translate relative to the body.
Specifically, when the user wants to capture an image, the user may open a target application program in the electronic device, where the target application program refers to an application program with a photographing function, such as a camera-type application program, an instant messaging-type application program, and the like. When the electronic device detects that the user opens the target application program, the sliding assembly 30 can be controlled to drive the camera 20 to translate relative to the body 10.
In the embodiment of the present invention, when it is detected that the user opens the target application, for example, when the user opens the camera, the sliding assembly 30 may be controlled to drive the camera 20 to translate relative to the body 10, and move from the first position housed in the body to the second position exposed from the body.
As a possible implementation manner, the sliding assembly 30 may be provided with a driving motor or a deformation component, and the driving motor or the deformation component may be controlled to drive the sliding assembly 30 to drive the camera 20 to translate relative to the body 10.
And 102, when the camera is translated to the side wall of the protruding body, acquiring a first image acquired by the camera.
Specifically, referring to fig. 3, fig. 3 is a schematic structural diagram of another electronic device according to a first embodiment of the present invention. When the camera 20 translates to the side wall of the protrusion body 10, at this time, the user can acquire an image through the camera, and acquire a first image acquired by the camera. In the shooting mode, when a shooting operation by a user is detected, for example, the user triggers a shooting button on a shooting interface, the electronic apparatus 100 may control the camera 20 to capture a first image. The slide assembly 30 is shown protruding out of the side wall of the body 10 in fig. 3.
The first image is an image acquired by the camera 20 by first shooting.
And 103, if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process.
Wherein, the target object is a human body or a human face.
Specifically, when the target image is not present in the first image information acquired by the electronic device 100 controlling the camera 20, the electronic device 100 controls the sliding component 30 to drive the camera 20 to rotate relative to the body 10, and in the rotating process, the camera 20 can be controlled to continue to shoot the image to obtain the second image.
The second image is an image acquired by the camera 20 through the second shooting.
As a possible implementation manner, in order to ensure that the target image is captured, in this embodiment, the sliding assembly 30 may be controlled to drive the camera 20 to rotate relative to the body 10 by a preset step angle along the preset rotation direction.
The preset rotation direction is preset, and the preset rotation direction may be, for example, a clockwise rotation direction or a counterclockwise rotation direction, which is not limited to this. The preset step angle is also preset, for example, the mark preset step angle is α.
To be further described, in the process that the sliding assembly 30 drives the camera 20 to rotate relative to the body 10, the camera 20 may be controlled to continue to collect images. Specifically, in the process that the sliding assembly 30 drives the camera 20 to rotate relative to the body 10, after the step angle α is rotated, the camera 20 may be controlled to capture at least one frame of the second image.
And 104, when the target object is presented in the second image, controlling the sliding assembly to stop driving the camera to rotate relative to the body.
Specifically, each time a frame of a second image is acquired, the second image is identified, and whether the target object is present in the second image is determined. And controlling the sliding assembly to rotate according to the recognition result. Specifically, in the process that the sliding assembly 30 drives the camera 20 to rotate relative to the body 10, if the acquired second image shows the target object, the main control board of the electronic device 100 controls the sliding assembly 30 to stop driving the camera 20 to rotate relative to the body 10. Otherwise, the main control board of the electronic device 100 controls the sliding assembly 30 to continue to drive the camera 20 to rotate relative to the body 10, and the rotation is stopped after the rotation angle reaches the upper limit of the angle. This is because, when the rotated angle reaches the angle upper limit value, it is described that the rotated angle has been rotated by a large angle, for example: 2 weeks, 720 degrees, the target object is not found yet, and the target object needs to be manually found by the user, and thus, the automatic rotation may be stopped.
As a possible implementation manner, a driving motor may be disposed in the sliding assembly 30, and the rotation of the camera 20 relative to the body 10 may be stopped by controlling the driving motor, and the specific structure will be described in detail in the following embodiments, which will not be described again in this embodiment.
According to the control method of the sliding assembly, the sliding assembly is controlled to drive the camera to translate relative to the body; when the camera is translated to the side wall of the protruding body, a first image collected by the camera is obtained; if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process; when the target object is presented in the second image, the sliding assembly is controlled to stop driving the camera to rotate relative to the body. According to the method, the sliding assembly drives the camera to automatically acquire the image, so that the user operation is reduced, the automation degree of the electronic equipment is improved, and the technical problems that in the prior art, the shooting posture is difficult and the shot picture is fuzzy due to the fact that the electronic equipment is driven to rotate to acquire the shot picture by moving the camera through a human body are solved.
For clarity of the above embodiment, in this embodiment, after the sliding component stops driving the camera to rotate relative to the body, or after it is determined that the target object is present in the second image, the control method of the sliding component further includes a control process as shown in fig. 4.
Fig. 4 is a flowchart illustrating a control method of a sliding assembly according to a second embodiment of the present invention.
As shown in fig. 4, based on the embodiment shown in fig. 1, the control method of the sliding assembly further includes the following steps:
step 201, controlling the camera to continuously acquire the third image, and determining a position relationship between the imaging area of the target object and a preset central area of the third image in the third image.
Specifically, after the electronic device 100 controls the sliding component 30 to stop driving the camera 20 to rotate relative to the body 10, or after it is determined that the target object is present in the second image, the camera 20 is controlled to continue to acquire the third image. The third image is an image captured by the camera 20 for the third time.
Further, after the electronic device 100 acquires the third image, the position relationship between the imaging region of the target object and the preset central region of the third image is determined in the third image. The preset central area is a preset area. For example, the imaging region of the target object is within the preset central region or outside the preset central region.
In step 201, if the imaging region is outside the central region, the offset between the imaging region and the central region is determined.
Specifically, if the imaging area of the target object is outside the preset central area, the offset of the imaging area from the central area, that is, the offset angle of the imaging area relative to the central area, is further determined.
Step 201, when the offset is greater than the offset threshold, controlling the sliding component to drive the camera to rotate relative to the body.
First, a shift angle corresponding to the shift amount of the imaging region with respect to the central region is determined.
As a possible implementation manner, an angle sensor may be disposed in the electronic device to acquire, in real time, an offset angle between the imaging area of the target object and the preset central area of the third image. For example, the angle sensor may be provided integrally with the camera, or the angle sensor may be provided on the sliding assembly, without limitation.
As another possible implementation manner, a focal length adopted when the camera acquires an image is determined, a corresponding actual offset distance under the corresponding focal length is determined according to the focal length and an offset of an imaging region of the target object and a preset central region of the third image, and finally a corresponding offset angle is determined according to the focal length and the corresponding actual offset distance.
And further, controlling the sliding assembly to drive the camera to rotate relative to the body according to the offset angle between the imaging area of the target object and the preset central area of the third image.
In the embodiment of the invention, the position relation between the imaging area of the target object and the preset central area of the third image is determined in the third image acquired by the camera, and the sliding assembly is controlled to drive the camera to rotate relative to the body through the offset of the position. Therefore, the image can be shot more clearly and accurately.
In order to realize the above embodiment, the invention further provides a control assembly.
Fig. 5 is a schematic structural diagram of a control assembly according to a third embodiment of the present invention.
As shown in fig. 5, the control component 50 is applied to an electronic device 100, and the electronic device 100 includes: body 10, camera 20 and sliding assembly 30. Wherein the content of the first and second substances,
the camera 20 is disposed on the sliding assembly 30, the sliding assembly 30 drives the camera 20 to translate and rotate relative to the body 10 under the control of the control assembly 50, the control assembly 50 includes a memory 51, a processor 52 and a computer program stored in the memory 51 and capable of running on the processor 52, and the processor 52 executes the program for: controlling the sliding assembly 30 to drive the camera 20 to translate relative to the body 10; when the camera 20 translates to the side wall of the protruding body 10, acquiring a first image acquired by the camera 20; if the target object is not present in the first image, controlling the sliding assembly 30 to drive the camera 20 to rotate relative to the body 10, and controlling the camera 20 to continue to acquire a second image in the rotating process; when the target object appears in the second image, the sliding component 30 is controlled to stop driving the camera 20 to rotate relative to the body 10.
In this embodiment of the present invention, the processor 52 is further configured to: according to the preset rotating direction, the sliding assembly 30 is controlled to drive the camera 20 to rotate relative to the body 10, and the camera 20 is controlled to continue to acquire the second image in the rotating process.
In this embodiment of the present invention, the processor 52 is further configured to: the sliding control assembly 30 drives the camera 20 to rotate relative to the body 10 by a preset step angle along a preset rotation direction; and controlling the camera 20 to acquire at least one frame of second image after rotating the step angle.
In this embodiment of the present invention, the processor 52 is further configured to: controlling the sliding assembly 30 to stop driving the camera 20 to rotate relative to the body 10, or after determining that the target object is present in the first image, controlling the camera 20 to continue to acquire a third image, and determining a position relationship between an imaging area of the target object and a preset central area of the third image in the third image; if the imaging area is outside the central area, determining the offset of the imaging area and the central area; when the offset is greater than the offset threshold value, the sliding assembly is controlled to drive the camera to rotate relative to the body.
In this embodiment of the present invention, the processor 52 is further configured to: determining an offset angle corresponding to the offset; according to the skew angle, control slip subassembly drives the relative body rotation of camera.
In this embodiment of the present invention, the processor 52 is further configured to: determining a focal length adopted when the camera collects an image; determining a corresponding actual offset distance under the focal length according to the focal length and the offset; and determining a corresponding offset angle according to the focal length and the actual offset distance.
It should be noted that the foregoing explanation of the embodiment of the control method of the sliding assembly also applies to the control assembly 50 of this embodiment, and is not repeated herein.
According to the control assembly provided by the embodiment of the invention, the camera is driven to translate relative to the body by controlling the sliding assembly; when the camera is translated to the side wall of the protruding body, a first image collected by the camera is obtained; if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process; when the target object is presented in the second image, the sliding assembly is controlled to stop driving the camera to rotate relative to the body. According to the method, the sliding assembly drives the camera to automatically acquire the image, so that the user operation is reduced, the automation degree of the electronic equipment is improved, and the technical problems that in the prior art, the shooting posture is difficult and the shot picture is fuzzy due to the fact that the electronic equipment is driven to rotate to acquire the shot picture by moving the camera through a human body are solved.
In order to implement the above embodiments, the present invention further provides an electronic device.
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
As shown in fig. 6, the electronic apparatus 100 includes: body 10, camera 20, slip subassembly 30, detection component 40 and control component 50. Wherein the content of the first and second substances,
and the camera 20 is used for acquiring images.
And the detection assembly 40 is used for detecting the position of the camera 20 relative to the body 10.
The sliding assembly 30 is provided with a camera on the sliding assembly 30, and the camera is driven to translate and rotate relative to the body 10 by the camera 20.
The control assembly 50 is electrically connected with the sliding assembly 30 and the camera 20, and is used for controlling the sliding assembly 30 to drive the camera 20 to translate relative to the body 10, and when the detection assembly 40 determines that the camera 20 translates to the side wall protruding out of the body 10, a first image acquired by the camera 20 is acquired; if the target object is not present in the first image, controlling the sliding assembly 30 to drive the camera 20 to rotate relative to the body 10, and controlling the camera 20 to continue to acquire a second image in the rotating process; when the target object appears in the second image, the sliding component 30 is controlled to stop driving the camera 20 to rotate relative to the body 10.
In the electronic device 100 according to the embodiment of the present invention, the sliding assembly 30 is controlled to drive the camera 20 to translate relative to the body 10; when the camera 20 translates to the side wall of the protruding body 10, acquiring a first image acquired by the camera 20; if the target object is not present in the first image, controlling the sliding assembly 30 to drive the camera 20 to rotate relative to the body 10, and controlling the camera 20 to continue to acquire a second image in the rotating process; when the target object appears in the second image, the sliding component 30 is controlled to stop driving the camera 20 to rotate relative to the body 10. According to the method, the sliding assembly 30 drives the camera 20 to automatically acquire the images, so that the user operation is reduced, the automation degree of the electronic equipment 100 is improved, and the technical problems that in the prior art, the camera 20 is moved by a human body to drive the electronic equipment 100 to rotate to acquire the shot pictures, the shooting posture is difficult and the shot pictures are fuzzy are solved.
As a possible implementation manner, referring to fig. 7, on the basis of the embodiment shown in fig. 6, the sliding assembly 30 may specifically include: a drive motor 31, a lead screw 32 and a carriage 33.
The lower end of the screw rod 32 is fixedly connected with the rotating shaft of the driving motor 31 and is used for rotating under the driving of the driving motor 31, the screw rod 32 is provided with inner spiral threads, the upper end of the screw rod 32 is sleeved with a screw rod nut 321, and the inner side wall of the screw rod nut 321 is provided with outer spiral threads corresponding to the inner spiral threads.
The bearing part 33 is fixedly connected with the screw rod nut 321 and is used for translating relative to a sliding groove arranged in the body 10 under the driving of the screw rod 32 so as to protrude out of the body 10 or be hidden in the body 10; and when the bearing member 33 is translated out of the sliding groove, the bearing member 33 is driven by the screw rod 32 to rotate relative to the body 10.
When the bearing member 33 is driven by the screw rod 32 to rotate relative to the body 10, the bearing member 33 specifically rotates around the rotation axis of the screw rod 32. There are two possible ways of rotation, one being that the axis of symmetry of the carrier 33 coincides with the axis of rotation of the screw 32, so that the carrier 33 rotates centrally, depending on whether the axis of symmetry of the carrier 33 coincides with the axis of rotation of the screw 32; alternatively, the axis of symmetry of the carrier 33 is not coincident with the axis of rotation of the screw 32, so that the carrier 33 is not rotated centrally.
As a possible implementation, a receiving portion is provided in the carrier 33, and the receiving portion is used for receiving the camera 20.
As a possible implementation manner, referring to fig. 8, on the basis of the embodiment shown in fig. 6, the electronic device 100 further includes: a hall element 60 and a magnetic field generating element 70. Wherein the content of the first and second substances,
the magnetic field generating element 70 and the hall element 60 are fixed to the body 10 and the slider assembly 30, respectively.
The control assembly 50 is further configured to determine the relative position of the sliding assembly 30 and the body 10 according to the magnetic field parameter detected by the hall element 60.
In the embodiment of the present invention, one of the slide assembly 30 and the body 10 is provided with the magnetic field generating element 70, and the other of the slide assembly 30 and the body 10 is provided with the hall element 60.
As a possible implementation manner, the hall element 60 may be electrically connected to the control assembly 50, so that the control assembly 50 may receive the magnetic field parameter detected by the hall element 60, and determine the relative position between the sliding assembly 30 and the body 10 according to the magnetic field parameter detected by the hall element 60, so that when the sliding assembly 30 needs to slide out to protrude from the side wall of the body 10, it may be determined whether the sliding assembly 30 completely slides out to reach the preset position, so as to avoid that the sliding assembly 30 does not completely slide out to reach the preset position, and thus the camera 20 or the sensor and other components carried in the sliding assembly 30 cannot normally work, which may cause a function abnormality; or, when the sliding assembly 30 needs to slide into the body 10, it may be determined whether the sliding assembly 30 completely slides in to reach the predetermined position, so as to avoid that the sliding assembly 30 does not completely slide in, which affects the aesthetic property of the electronic device 100, and even the use experience of the user is affected due to situations such as abnormal alarm caused by incomplete sliding in.
It should be noted that "one of the sliding assembly 30 and the body 10 is provided with the magnetic field generating element 70, and the other of the sliding assembly 30 and the body 10 is provided with the hall element 60" includes two cases, that is, the magnetic field generating element 70 is fixed on the body 10, the hall element 60 is fixed on the sliding assembly 30, and the magnetic field generating element 70 is fixed on the sliding assembly 30, and the hall element 60 is fixed on the body 10, as shown in fig. 8, this embodiment is only fixed on the sliding assembly 40 by the magnetic field generating element 70, and the hall element 60 is fixed on the body 10, and for the arrangement mode of the other case, the principle is the same, and is not shown in the drawing. Further, the hall element 60 and the magnetic field generating element 70 may be disposed to be opposed in the vertical direction or may be disposed to be opposed in the horizontal direction. That is, as long as the hall element 60 and the magnetic field generating element 70 can generate relative movement, the specific positions of the hall element 60 and the magnetic field generating element 70 are not limited in the present invention.
In order to implement the above embodiments, the present invention further provides another electronic device.
Fig. 9 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
As shown in fig. 9, the electronic apparatus 100 includes: body 10, camera 20, sliding assembly 30, memory 50 and processor 60. The camera 20 is disposed on the sliding assembly 30, and the sliding assembly 30 is used for driving the camera 20 to translate and rotate relative to the body 10.
In an embodiment of the present invention, the electronic device further includes: the memory 50, the processor 60 and the computer program stored on the memory 50 and operable on the processor 60, when the processor 60 executes the program, implement the control method of the sliding assembly as proposed in the foregoing embodiments of the present invention.
In order to achieve the above embodiments, the present invention also proposes a computer-readable storage medium on which a computer program is stored, characterized in that the program, when executed by a processor, implements the control method of the sliding assembly as proposed in the foregoing embodiments of the present invention.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (17)

1. A control method of a sliding assembly is characterized in that the sliding assembly is used for electronic equipment, the electronic equipment comprises a body and a camera, the camera is arranged on the sliding assembly, the sliding assembly drives the camera to translate and rotate relative to the body, and the control method comprises the following steps:
controlling the sliding assembly to drive the camera to translate relative to the body;
when the camera is translated to protrude out of the side wall of the body, a first image collected by the camera is obtained;
if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process;
when the target object is presented in the second image, controlling the sliding assembly to stop driving the camera to rotate relative to the body;
when the target object is not shown in the second image, judging whether the rotated angle reaches an angle upper limit value, and controlling the sliding assembly to stop driving the camera to rotate relative to the body when the rotated angle is determined to reach the angle upper limit value;
controlling the camera to continuously acquire a third image, and determining a position relation between an imaging area of the target object and a preset central area of the third image in the third image;
if the imaging area is outside the central area, determining the offset of the imaging area and the central area;
and when the offset is greater than the offset threshold value, controlling the sliding assembly to drive the camera to rotate relative to the body.
2. The control method according to claim 1, wherein the controlling the sliding assembly to drive the camera to rotate relative to the body and controlling the camera to continue to acquire a second image during the rotation comprises:
and controlling the sliding assembly to drive the camera to rotate relative to the body according to a preset rotating direction, and controlling the camera to continue to acquire a second image in the rotating process.
3. The control method according to claim 2, wherein the controlling the sliding assembly to drive the camera to rotate relative to the body according to a preset rotation direction and controlling the camera to continue to acquire a second image in a rotation process comprises:
the sliding assembly is controlled, and the camera is driven to rotate relative to the body by a preset step angle along a preset rotating direction;
and controlling the camera to collect at least one frame of the second image after rotating the step angle.
4. The control method according to claim 1, wherein when the offset is greater than an offset threshold, controlling the sliding assembly to drive the camera to rotate relative to the body comprises:
determining an offset angle corresponding to the offset;
and controlling the sliding assembly to drive the camera to rotate relative to the body according to the offset angle.
5. The control method according to claim 4, wherein the determining an offset angle corresponding to the offset amount includes:
determining a focal length adopted when the camera collects an image;
determining a corresponding actual offset distance under the focal length according to the focal length and the offset;
and determining the corresponding offset angle according to the focal length and the actual offset distance.
6. The control method according to any one of claims 1 to 5, wherein the target object is a human body or a human face.
7. A control assembly, wherein the control assembly is used for an electronic device, the electronic device comprises a body, a sliding assembly and a camera, the camera is disposed on the sliding assembly, the sliding assembly drives the camera to translate and rotate relative to the body under the control of the control assembly, the control assembly comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and the processor executes the program to:
controlling the sliding assembly to drive the camera to translate relative to the body;
when the camera is translated to protrude out of the side wall of the body, a first image collected by the camera is obtained;
if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process;
when the target object is presented in the second image, controlling the sliding assembly to stop driving the camera to rotate relative to the body;
when the target object is not shown in the second image, judging whether the rotated angle reaches an angle upper limit value, and controlling the sliding assembly to stop driving the camera to rotate relative to the body when the rotated angle is determined to reach the angle upper limit value;
controlling the camera to continuously acquire a third image, and determining a position relation between an imaging area of the target object and a preset central area of the third image in the third image;
if the imaging area is outside the central area, determining the offset of the imaging area and the central area;
and when the offset is greater than the offset threshold value, controlling the sliding assembly to drive the camera to rotate relative to the body.
8. The control assembly of claim 7, wherein the processor is further configured to:
and controlling the sliding assembly to drive the camera to rotate relative to the body according to a preset rotating direction, and controlling the camera to continue to acquire a second image in the rotating process.
9. The control assembly of claim 8, wherein the processor is configured to:
the sliding assembly is controlled, and the camera is driven to rotate relative to the body by a preset step angle along a preset rotating direction;
and controlling the camera to collect at least one frame of the second image after rotating the step angle.
10. The control assembly of claim 8, wherein the processor is configured to:
determining an offset angle corresponding to the offset;
and controlling the sliding assembly to drive the camera to rotate relative to the body according to the offset angle.
11. The control assembly of claim 10, wherein the processor is configured to:
determining a focal length adopted when the camera collects an image;
determining a corresponding actual offset distance under the focal length according to the focal length and the offset;
and determining the corresponding offset angle according to the focal length and the actual offset distance.
12. An electronic device, comprising:
a body;
the camera is used for collecting images;
the detection assembly is used for detecting the position of the camera relative to the body;
the sliding assembly is provided with the camera and is used for driving the camera to translate and rotate relative to the body;
the control assembly is electrically connected with the sliding assembly and the camera and is used for controlling the sliding assembly to drive the camera to translate relative to the body, and when the detection assembly determines that the camera translates to protrude out of the side wall of the body, a first image collected by the camera is obtained;
if the target object is not displayed in the first image, controlling the sliding assembly to drive the camera to rotate relative to the body, and controlling the camera to continue to acquire a second image in the rotating process; when the target object is presented in the second image, controlling the sliding assembly to stop driving the camera to rotate relative to the body;
when the target object is not shown in the second image, judging whether the rotated angle reaches an angle upper limit value, and controlling the sliding assembly to stop driving the camera to rotate relative to the body when the rotated angle is determined to reach the angle upper limit value; controlling the camera to continuously acquire a third image, and determining a position relation between an imaging area of the target object and a preset central area of the third image in the third image;
if the imaging area is outside the central area, determining the offset of the imaging area and the central area;
and when the offset is greater than the offset threshold value, controlling the sliding assembly to drive the camera to rotate relative to the body.
13. The electronic device of claim 12, wherein the sliding assembly comprises:
a drive motor;
the lower end of the screw rod is fixedly connected with a rotating shaft of the driving motor and is used for rotating under the driving of the driving motor, an inner spiral thread is formed in the screw rod, a screw rod nut is sleeved at the upper end of the screw rod, and an outer spiral thread corresponding to the inner spiral thread is formed in the inner side wall of the screw rod nut;
the bearing piece is fixedly connected with the screw rod nut and is used for translating relative to a sliding groove arranged in the body under the driving of the screw rod so as to protrude out of the body or be hidden in the body; and when the bearing piece is translated out of the sliding groove, the bearing piece is driven by the screw rod to rotate relative to the body.
14. The electronic device of claim 13,
an accommodating part is arranged in the bearing part and used for accommodating the camera.
15. The electronic device of claim 12, further comprising a hall element and a magnetic field generating element, the magnetic field generating element and the hall element being fixed to the body and the slide assembly, respectively;
the control assembly is further used for determining the relative position of the sliding assembly and the body according to the magnetic field parameters detected by the Hall element.
16. The utility model provides an electronic equipment, its characterized in that, electronic equipment includes body, slip subassembly and camera, the camera set up in on the slip subassembly, the slip subassembly drives the camera is relative body translation and rotation, electronic equipment still includes: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements a method of controlling a sliding assembly according to any of claims 1-6.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of controlling a sliding assembly according to any one of claims 1-6.
CN201810590017.5A 2018-06-08 2018-06-08 Control method of sliding assembly, control assembly and electronic equipment Expired - Fee Related CN108769478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810590017.5A CN108769478B (en) 2018-06-08 2018-06-08 Control method of sliding assembly, control assembly and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810590017.5A CN108769478B (en) 2018-06-08 2018-06-08 Control method of sliding assembly, control assembly and electronic equipment

Publications (2)

Publication Number Publication Date
CN108769478A CN108769478A (en) 2018-11-06
CN108769478B true CN108769478B (en) 2021-01-15

Family

ID=64000734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810590017.5A Expired - Fee Related CN108769478B (en) 2018-06-08 2018-06-08 Control method of sliding assembly, control assembly and electronic equipment

Country Status (1)

Country Link
CN (1) CN108769478B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110072057B (en) * 2019-05-14 2021-03-09 Oppo广东移动通信有限公司 Image processing method and related product
CN110134459B (en) * 2019-05-15 2022-03-15 Oppo广东移动通信有限公司 Application starting method and related product
CN110266941A (en) * 2019-05-31 2019-09-20 维沃移动通信(杭州)有限公司 A kind of panorama shooting method and terminal device
CN112272267A (en) * 2020-10-22 2021-01-26 Oppo广东移动通信有限公司 Shooting control method, shooting control device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203722706U (en) * 2014-02-18 2014-07-16 宇龙计算机通信科技(深圳)有限公司 Electronic device
CN104238669A (en) * 2014-09-04 2014-12-24 广东欧珀移动通信有限公司 Method and device for controlling rotation of camera of mobile terminal and mobile terminal
CN104469145A (en) * 2014-11-05 2015-03-25 广东欧珀移动通信有限公司 Method and device for controlling rotation of mobile terminal camera and mobile terminal
CN104601889A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 Photographing method and device of mobile terminal
CN106899721A (en) * 2017-04-28 2017-06-27 广东欧珀移动通信有限公司 Electronic installation

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002296642A (en) * 2001-03-30 2002-10-09 Sony Corp Image shooting apparatus
EP2717581A1 (en) * 2012-10-05 2014-04-09 BlackBerry Limited Methods and devices for generating a stereoscopic image
CN109257462A (en) * 2014-07-23 2019-01-22 华为技术有限公司 A kind of terminal device
CN104618636A (en) * 2015-02-27 2015-05-13 广东欧珀移动通信有限公司 Camera locked-rotation prevention method and device
CN104883497A (en) * 2015-04-30 2015-09-02 广东欧珀移动通信有限公司 Positioning shooting method and mobile terminal
CN107948523A (en) * 2017-12-19 2018-04-20 维沃移动通信有限公司 A kind of image pickup method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203722706U (en) * 2014-02-18 2014-07-16 宇龙计算机通信科技(深圳)有限公司 Electronic device
CN104238669A (en) * 2014-09-04 2014-12-24 广东欧珀移动通信有限公司 Method and device for controlling rotation of camera of mobile terminal and mobile terminal
CN104469145A (en) * 2014-11-05 2015-03-25 广东欧珀移动通信有限公司 Method and device for controlling rotation of mobile terminal camera and mobile terminal
CN104601889A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 Photographing method and device of mobile terminal
CN106899721A (en) * 2017-04-28 2017-06-27 广东欧珀移动通信有限公司 Electronic installation

Also Published As

Publication number Publication date
CN108769478A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108769478B (en) Control method of sliding assembly, control assembly and electronic equipment
CN108737718B (en) Shooting method and device and intelligent equipment
US10659691B2 (en) Control device and imaging apparatus
CN109451240B (en) Focusing method, focusing device, computer equipment and readable storage medium
EP2273450A2 (en) Target tracking apparatus, image tracking apparatus, methods of controlling operation of same, and digital camera
CN110771143B (en) Control method of handheld cloud deck, handheld cloud deck and handheld equipment
CN107087112B (en) Control method and control device for double cameras
CN108702458B (en) Shooting method and device
JP2006215571A (en) Method of displaying camera shake, its apparatus, image display device, and its method
US20140267595A1 (en) Rotating surveillance camera
CN109313799A (en) Image processing method and equipment
US9091904B2 (en) Camera device with rotary base
CN110177200B (en) Camera module, electronic equipment and image shooting method
CN109714539B (en) Image acquisition method and device based on gesture recognition and electronic equipment
JP2011030164A (en) Image pickup apparatus, image pickup system, image pickup method, and program
CN108989660A (en) Control method, control assembly, electronic equipment and the storage medium of slide assemblies
CN108762397A (en) Control method, control assembly, electronic equipment and the storage medium of slide assemblies
KR20120065997A (en) Electronic device, control method, program, and image capturing system
CN114466129A (en) Image processing method, image processing device, storage medium and electronic equipment
KR20220058593A (en) Systems and methods for acquiring smart panoramic images
CN106922181B (en) Direction-aware autofocus
JPH089219A (en) Camera
CN105763797B (en) Control method, control device and electronic device
CN108734065B (en) Gesture image acquisition equipment and method
CN106303165A (en) Rotate and monitor photographing unit

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210115