CN108762397A - Control method, control assembly, electronic equipment and the storage medium of slide assemblies - Google Patents

Control method, control assembly, electronic equipment and the storage medium of slide assemblies Download PDF

Info

Publication number
CN108762397A
CN108762397A CN201810588142.2A CN201810588142A CN108762397A CN 108762397 A CN108762397 A CN 108762397A CN 201810588142 A CN201810588142 A CN 201810588142A CN 108762397 A CN108762397 A CN 108762397A
Authority
CN
China
Prior art keywords
camera
sliding assembly
assembly
panoramic image
electronic equipment
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
CN201810588142.2A
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.)
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 CN201810588142.2A priority Critical patent/CN108762397A/en
Publication of CN108762397A publication Critical patent/CN108762397A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1686Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being an integrated camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application proposes a kind of control method of slide assemblies, control assembly, electronic equipment and storage medium, wherein, slide assemblies are used for electronic equipment, electronic equipment includes ontology, detection components and camera, camera is set on slide assemblies, slide assemblies drive camera opposing body translation and rotation, and for detecting the position of electronic equipment in space, control method includes detection components:It controls slide assemblies and drives camera opposing body translation;When camera moves to the side wall of protrusion ontology, control slide assemblies drive camera opposing body rotation;During slide assemblies drive camera opposing body rotation, control camera executes the shooting of panoramic picture, and detects the change in location of electronic equipment in space by detection components;When change in location meets preset condition, control camera stops executing the shooting of panoramic picture.Stability when improving electronic equipment shooting image is realized, and then improves the imaging effect of panoramic picture.

Description

Control method of sliding assembly, control assembly, electronic device and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a control method for a sliding component, a control component, an electronic device, and a storage medium.
Background
With the continuous development of terminal technology, more and more users use electronic equipment to take pictures. At present, when a panoramic image is shot, a user moves an electronic device, so that a camera collects different pictures, and finally the different pictures are spliced to obtain the panoramic image.
However, in actual use, the applicant found that the user often shakes his hand while moving the electronic device, which may cause the object in the panoramic image to be misaligned or stretched, resulting in poor panoramic image capturing effect.
Disclosure of Invention
The application provides a control method of a sliding assembly, the control assembly, electronic equipment and a storage medium, and aims to solve the technical problem that in the prior art, the shooting effect of a panoramic image is not good.
An embodiment of one aspect of the present application provides a control method for a sliding assembly, where the sliding assembly is used for an electronic device, the electronic device includes a body, a detection 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, the detection assembly is used to detect a position of the electronic device in a space, and the control method includes 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, the sliding assembly is controlled to drive the camera to rotate relative to the body;
in the process that the sliding assembly drives the camera to rotate relative to the body, the camera is controlled to shoot a panoramic image, and the position change of the electronic equipment in the space is detected through the detection assembly;
and when the position change meets a preset condition, controlling the camera to stop executing the shooting of the panoramic image.
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 translates to the side wall of the protruding body, the sliding assembly is controlled to drive the camera to rotate relative to the body, then in the process that the sliding assembly drives the camera to rotate relative to the body, the camera is controlled to shoot panoramic images, the position change of the electronic equipment in the space is detected through the detection assembly, and finally when the position change meets the preset condition, the camera is controlled to stop shooting the panoramic images. In this application, when shooing panoramic picture, drive the relative body rotation of camera through the slip subassembly, the automatic acquisition image can reduce user's operation, has improved the stability when electronic equipment shoots the image, and then has improved panoramic picture's formation of image effect. In addition, when the position change of the electronic equipment in the space meets the preset condition, the camera is controlled to stop shooting the panoramic image, and the accuracy of control can be improved.
In another aspect, an embodiment of the present application provides a control assembly, where the control assembly is used for an electronic device, the electronic device includes a body, a detection assembly, a sliding assembly, and a camera, the camera is disposed on the sliding assembly, the sliding assembly drives, under the control of the control assembly, the camera to translate and rotate relative to the body, the detection assembly is used to detect a position of the electronic device in space, the control assembly includes a memory, a processor, and a computer program stored on 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, the sliding assembly is controlled to drive the camera to rotate relative to the body;
in the process that the sliding assembly drives the camera to rotate relative to the body, the camera is controlled to shoot a panoramic image, and the position change of the electronic equipment in the space is detected through the detection assembly;
and when the position change meets a preset condition, controlling the camera to stop executing the shooting of the panoramic image.
The control assembly of this application embodiment, drive the relative body translation of camera through control slip subassembly, when the camera translation is to the lateral wall of protrusion body, control slip subassembly drives the relative body rotation of camera, drive the relative body rotation's of camera in the in-process at slip subassembly then, control camera execution panoramic picture's shooting, and detect the position change of electronic equipment in the space through the determine module, when the position change satisfies the predetermined condition at last, control camera stops to carry out panoramic picture's shooting. In this application, when shooing panoramic picture, drive the relative body rotation of camera through the slip subassembly, the automatic acquisition image can reduce user's operation, has improved the stability when electronic equipment shoots the image, and then has improved panoramic picture's formation of image effect. In addition, when the position change of the electronic equipment in the space meets the preset condition, the camera is controlled to stop shooting the panoramic image, and the accuracy of control can be improved.
An embodiment of another aspect of the present application provides an electronic device, including:
a body;
the camera is used for shooting the panoramic image;
the sliding assembly is provided with the camera and is used for driving the camera to translate and rotate relative to the body;
a detection component for detecting a change in position of the electronic device in space;
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; when the camera is translated to protrude out of the side wall of the body, the sliding assembly is controlled to drive the camera to rotate relative to the body, and the camera is controlled to shoot panoramic images in the rotating process; and when the detection assembly determines that the position change of the electronic equipment in the space meets a preset condition, controlling the camera to stop shooting the panoramic image.
The electronic equipment of this application embodiment, drive the relative body translation of camera through control slip subassembly, when the camera translation is to the lateral wall of protrusion body, control slip subassembly drives the relative body rotation of camera, drive the relative body rotation's of camera in the in-process at slip subassembly then, control camera execution panoramic picture's shooting, and detect the position change of electronic equipment in the space through the determine module, when the position change satisfies the predetermined condition at last, control camera stops to carry out panoramic picture's shooting. In this application, when shooing panoramic picture, drive the relative body rotation of camera through the slip subassembly, the automatic acquisition image can reduce user's operation, has improved the stability when electronic equipment shoots the image, and then has improved panoramic picture's formation of image effect. In addition, when the position change of the electronic equipment in the space meets the preset condition, the camera is controlled to stop shooting the panoramic image, and the accuracy of control can be improved.
In another aspect, an embodiment of the present application provides another electronic device, including: body, determine module, slip subassembly and camera, the camera set up in on the slip subassembly, determine module is used for detecting the position of electronic equipment in the space, the slip subassembly 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.
In yet another aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is configured to implement, when executed by a processor, a control method for a sliding assembly as set forth in the previous embodiments of the present application.
Additional aspects and advantages of the present application 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 present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application 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 schematic flowchart of a control method of a sliding assembly according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an electronic device according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present application;
fig. 4 is a schematic flowchart of a control method of a sliding assembly according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a control assembly according to a fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an eighth embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to a ninth embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, 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 exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The application mainly aims at the technical problem that the shooting effect of a panoramic image in the prior art is poor, and provides a control method of a sliding assembly.
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 translates to the side wall of the protruding body, the sliding assembly is controlled to drive the camera to rotate relative to the body, then in the process that the sliding assembly drives the camera to rotate relative to the body, the camera is controlled to shoot panoramic images, the position change of the electronic equipment in the space is detected through the detection assembly, and finally when the position change meets the preset condition, the camera is controlled to stop shooting the panoramic images. In this application, when shooing panoramic picture, drive the relative body rotation of camera through the slip subassembly, the automatic acquisition image can reduce user's operation, has improved the stability when electronic equipment shoots the image, and then has improved panoramic picture's formation of image effect. In addition, when the position change of the electronic equipment in the space meets the preset condition, the camera is controlled to stop shooting the panoramic image, and the accuracy of control can be improved.
A control method of a slide module, a control module, an electronic apparatus, and a storage medium according to embodiments of the present application are described below with reference to the drawings.
Fig. 1 is a flowchart illustrating a control method of a sliding assembly according to an embodiment of the present disclosure.
The sliding assembly of the embodiment of the application 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 second embodiment of the present application. Wherein, electronic equipment 100 includes: the electronic device comprises a body 10, a detection assembly 20, a camera 30 (circular area in the figure) and a sliding assembly 40, wherein the camera 30 is arranged on the sliding assembly 40, the sliding assembly 40 drives the camera 30 to translate and rotate relative to the body 10, the detection assembly 20 is used for detecting the position of the electronic device 100 in the space, and fig. 2 shows that the sliding assembly 40 is located inside the body 10.
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.
In the embodiment of the present application, the camera 30 may specifically refer to a front camera.
In the embodiment of the application, when a user wants to shoot a panoramic 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 shooting function, such as a camera application program, an instant messaging application program, and the like. When the electronic device detects that the user opens the target application, the sliding assembly 40 can be controlled to drive the camera 30 to translate relative to the body 10.
In the embodiment of the present application, when it is detected that the target application is opened by a user, for example, when the user opens the camera, the sliding assembly 40 may be controlled to drive the camera 30 to translate relative to the body 10.
As a possible implementation manner, a driving motor may be disposed in the electronic device 100, and the driving motor may be controlled to drive the sliding assembly 40 to move the camera 30 in a translational manner relative to the body 10.
It should be noted that how to determine the position of the sliding component 40 relative to the body 10 is further described in the following structural embodiments of the electronic device 100, and the description thereof is omitted here.
And 102, when the camera is translated to the side wall protruding out of the body, controlling the sliding assembly to drive the camera to rotate relative to the body.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present application. When the camera 30 is translated to the sidewall of the protrusion body 10, at this time, the user may select the panoramic photographing mode. In the panoramic imaging mode, when a shooting operation of a user is detected, for example, the user triggers a shooting button on a shooting interface, the electronic device 100 may control the sliding assembly 40 to rotate the camera 30 relative to the body 10. The slide assembly 40 is shown protruding from the side wall of the body 10 in fig. 3 (the detection assembly 20 is not shown).
As a possible implementation manner, in order to ensure the imaging effect of the panoramic image, in this embodiment, the sliding assembly 40 may be controlled to drive the camera 30 to rotate relative to the body 10 by a preset step angle along a preset rotation direction.
the preset rotation direction is preset, and the preset rotation direction may be, for example, a clockwise rotation direction or an anticlockwise rotation direction, which is not limited to this.
And 103, in the process that the sliding assembly drives the camera to rotate relative to the body, controlling the camera to shoot the panoramic image, and detecting the position change of the electronic equipment in the space through the detection assembly.
in the embodiment of the present application, in the process that the sliding component 40 drives the camera 30 to rotate relative to the body 10, the camera 30 may be controlled to perform the shooting of the panoramic image, specifically, in the process that the sliding component 40 drives the camera 30 to rotate relative to the body 10, the camera 30 may be controlled to collect at least one frame of image every time after the step angle α is rotated, and then the collected images are spliced to obtain the panoramic image.
In the embodiment of the present application, during the process of shooting the panoramic image, the position change of the electronic device 100 in the space can also be detected by the detection component 20. The detecting component 20 may be a related sensor, such as a position sensor, or an angle sensor, which is not limited in this respect. The detecting member 20 may be integrally provided with the camera 30, or the detecting member 20 may be provided on the sliding member 40, which is not limited thereto. Fig. 2 shows the sensing assembly 20 positioned on the slide assembly 40.
Specifically, the position of the electronic device 100 in the space at the previous time and the position of the electronic device 100 in the space at the next time can be obtained through the detection component 20, so that the position of the electronic device 100 in the space at the next time is different from the position of the electronic device 100 in the space at the previous time.
And 104, controlling the camera to stop shooting the panoramic image when the position change meets a preset condition.
In the embodiment of the present application, the preset condition is preset.
As a possible implementation manner, the preset condition is used to indicate a first offset upper limit of the offset of the position of the electronic device 100 in the unit time.
The first offset upper limit may be preset by a built-in program of the electronic device 100, or may be set by a user, which is not limited.
In the embodiment of the present application, the position change of the electronic device 100 in the space may be detected by the detection component 20, and when the detection component 20 determines that the position offset of the electronic device 100 is greater than the first offset upper limit in unit time, it indicates that the position change satisfies the preset condition, and at this time, the camera 30 may be controlled to stop performing the shooting of the panoramic image. And when the position change does not meet the preset condition, the images can be continuously collected, and the collected images are spliced to obtain the panoramic image.
As another possible implementation manner, the preset condition is used to indicate a second offset upper limit offset from the initial position of the electronic device 100; the initial position is a position where the electronic apparatus 100 is located when the panoramic image photographing is initially performed.
The second offset upper limit may be preset by a built-in program of the electronic device 100, or may be set by a user, which is not limited.
In the embodiment of the present application, when it is determined that the offset from the initial position is greater than the second offset upper limit indicated by the preset condition according to the position change, it indicates that the position change satisfies the preset condition, and at this time, the camera 30 may be controlled to stop performing the shooting of the panoramic image. And when the position change does not meet the preset condition, the images can be continuously collected, and the collected images are spliced to obtain the panoramic image.
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 translates to the side wall of the protruding body, the sliding assembly is controlled to drive the camera to rotate relative to the body, then in the process that the sliding assembly drives the camera to rotate relative to the body, the camera is controlled to shoot panoramic images, the position change of the electronic equipment in the space is detected through the detection assembly, and finally when the position change meets the preset condition, the camera is controlled to stop shooting the panoramic images. In this application, when shooing panoramic picture, drive the relative body rotation of camera through the slip subassembly, the automatic acquisition image can reduce user's operation, has improved the stability when electronic equipment shoots the image, and then has improved panoramic picture's formation of image effect. In addition, when the position change of the electronic equipment in the space meets the preset condition, the camera is controlled to stop shooting the panoramic image, and the accuracy of control can be improved.
As a possible implementation manner, in the process that the sliding assembly drives the camera to rotate relative to the body, if the fact that the rotated angle of the camera is larger than the threshold angle is detected, at the moment, the camera can be controlled to stop shooting the panoramic image. The above process is described in detail below with reference to fig. 4.
Fig. 4 is a flowchart illustrating a control method of a sliding assembly according to a fourth embodiment of the present application.
As shown in fig. 4, based on the embodiment shown in fig. 1, the control method of the sliding assembly may include the following steps:
step 201, in the process that the sliding component drives the camera to rotate relative to the body, the rotated angle is obtained.
As a possible implementation manner, an angle sensor may be disposed in the electronic device to collect the rotation angle of the camera in real time, for example, the angle sensor may be disposed integrally with the camera, or the angle sensor may be disposed on the sliding assembly, which is not limited to this. Or the rotated angle of the camera can be directly obtained through the detection assembly.
Optionally, in the process that the sliding assembly drives the camera to rotate relative to the body, the rotated angle can be acquired through the angle sensor.
Step 202, if the rotated angle is larger than the threshold angle before the position change meets the preset condition, controlling the camera to stop shooting the panoramic image.
In the embodiment of the present application, the threshold angle is preset, and the threshold angle may be preset by a built-in program of the electronic device, or may be set by a user, which is not limited thereto.
In the embodiment of the application, when the rotation angle of the camera is larger than the threshold angle, the camera can be controlled to stop shooting the panoramic image. Therefore, the accuracy of control can be improved.
In order to realize the above embodiments, the present application also provides a control assembly.
Fig. 5 is a schematic structural diagram of a control assembly according to a fifth embodiment of the present application.
As shown in fig. 5, the control component 50 is applied to an electronic device 100, and the electronic device 100 includes: body 10, detection component 20, camera 30 and sliding component 40. Wherein,
the camera 30 is disposed on the sliding assembly 40, the sliding assembly 40 drives the camera 30 to translate and rotate relative to the body 10 under the control of the control assembly 50, the detection assembly 20 is used for detecting the position of the electronic device 100 in the space, the control assembly 50 includes a memory 51, a processor 52 and a computer program stored on the memory 51 and capable of running on the processor 52, and the processor 52 executes the program for:
controlling the sliding component 40 to drive the camera 30 to translate relative to the body 10;
when the camera 30 translates to the side wall of the protruding body 10, the sliding assembly 40 is controlled to drive the camera 30 to rotate relative to the body 10;
in the process that the sliding assembly 40 drives the camera 30 to rotate relative to the body 10, controlling the camera 30 to shoot a panoramic image, and detecting the position change of the electronic device 100 in the space through the detection assembly 20;
when the position change satisfies a preset condition, the camera 30 is controlled to stop performing the photographing of the panoramic image.
As a possible implementation manner, the preset condition is used to indicate a first upper limit of the offset amount of the electronic device 100 in the unit time, and the processor 52 is configured to: and if the position offset between the units is determined to be larger than the upper limit of the first offset indicated by the preset condition according to the position change, controlling the camera 30 to stop shooting the panoramic image.
As another possible implementation manner, the preset condition is used to indicate a second offset upper limit offset from the initial position of the electronic device 100; wherein the initial position is a position where the electronic device 100 is located when the panoramic image photographing is initially performed; the processor 52 is configured to: and if the offset relative to the initial position is determined to be larger than the upper limit of the second offset indicated by the preset condition according to the position change, controlling the camera 30 to stop shooting the panoramic image.
In this embodiment, the processor 52 is configured to: the sliding assembly 40 is controlled to rotate along a predetermined rotation direction by a predetermined step angle to drive the camera 30 to rotate relative to the body 10.
In this embodiment, the processor 52 is configured to: in the process that the sliding assembly 40 drives the camera 30 to rotate relative to the body 10, controlling the camera 30 to collect at least one frame of image after rotating the step angle; and splicing the collected images to obtain a panoramic image.
Optionally, the processor 52 is further configured to: acquiring the rotated angle in the process that the sliding assembly 40 drives the camera 30 to rotate relative to the body 10; if the rotated angle is greater than the threshold angle before the position change satisfies the predetermined condition, the camera 30 is controlled to stop the shooting of the panoramic image.
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.
The control assembly 50 of the embodiment of the application, drive the relative body 10 translation of camera 30 through control sliding assembly 40, when camera 30 translation to the lateral wall of protrusion body 10, control sliding assembly 40 drives camera 30 and rotates relative body 10, then drive the relative in-process of body 10 rotation of camera 30 at sliding assembly 40, control camera 30 carries out the shooting of panoramic picture, and detect the position change of electronic equipment 100 in the space through detecting component 20, at last when the position change satisfies the preset condition, control camera 30 stops to carry out the shooting of panoramic picture. In this application, when shooting panoramic picture, drive camera 30 through slip subassembly 40 and rotate relative body 10, the automatic acquisition image can reduce user's operation, has improved the stability when electronic equipment 100 shoots the image, and then has improved panoramic picture's formation of image effect. In addition, when the position change of the electronic apparatus 100 in the space satisfies the preset condition, the camera 30 is controlled to stop performing the photographing of the panoramic image, and the accuracy of the control can be improved.
In order to implement the above embodiments, the present application further provides an electronic device.
Fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application.
As shown in fig. 6, the electronic apparatus 100 includes: body 10, detection component 20, camera 30, sliding component 40 and control component 50. Wherein,
and a camera 30 for taking a panoramic image.
The sliding assembly 40 is provided with a camera 30 on the sliding assembly 40, and the camera 30 is driven to translate and rotate relative to the body 10.
The detecting component 20 is used for detecting the position change of the electronic device 100 in the space.
The control assembly 50 is electrically connected with the sliding assembly 40 and the camera 30, and is used for controlling the sliding assembly 40 to drive the camera 30 to translate relative to the body 10; when the camera 30 translates to the side wall of the protruding body 10, the sliding assembly 40 is controlled to drive the camera 30 to rotate relative to the body 10, and in the rotating process, the camera 30 is controlled to shoot panoramic images; when the position change of the electronic device in the space meets the preset condition, which is determined by the detection component 20, the camera 30 is controlled to stop executing the shooting of the panoramic image.
Electronic equipment 100 of the embodiment of the application, drive the relative body 10 translation of camera 30 through control sliding assembly 40, when camera 30 translation to the lateral wall of protrusion body 10, control sliding assembly 40 drives camera 30 and rotates relative body 10, then drive the relative in-process of body 10 rotation of camera 30 at sliding assembly 40, control camera 30 carries out the shooting of panoramic picture, and detect the position change of electronic equipment 100 in the space through detecting component 20, at last when the position change satisfies the preset condition, control camera 30 stops to carry out the shooting of panoramic picture. In this application, when shooting panoramic picture, drive camera 30 through slip subassembly 40 and rotate relative body 10, the automatic acquisition image can reduce user's operation, has improved the stability when electronic equipment 100 shoots the image, and then has improved panoramic picture's formation of image effect. In addition, when the position change of the electronic apparatus 100 in the space satisfies the preset condition, the camera 30 is controlled to stop performing the photographing of the panoramic image, and the accuracy of the control can be improved.
As a possible implementation manner, referring to fig. 7, on the basis of the embodiment shown in fig. 6, the sliding assembly 40 may specifically include: a drive motor 41, a lead screw 42 and a carrier 43. Wherein,
the lower end of the screw rod 42 is fixedly connected with the rotating shaft of the driving motor 41 and is used for rotating under the driving of the driving motor 41, the screw rod 42 is provided with inner spiral threads, the upper end of the screw rod 42 is sleeved with a screw rod nut 421, and the inner side wall of the screw rod nut 421 is provided with outer spiral threads corresponding to the inner spiral threads.
The bearing 43 is fixedly connected with the screw rod nut 421 and is used for being driven by the screw rod 42 to translate relative to a sliding groove arranged in the body 10 so as to protrude out of the body 10 or be hidden in the body 10; and when the bearing piece 43 is translated out of the sliding groove, the bearing piece 43 is driven by the screw rod 42 to rotate relative to the body 10.
As a possible implementation, a receiving portion is provided in the carrier 43, and the receiving portion is used for receiving the camera 30.
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 magnetic field generating element 70 and the hall element 60 are fixed to the body 10 and the slider assembly 40, respectively.
The control assembly 50 is further used for determining the relative position of the sliding assembly 40 and the body 10 according to the magnetic field parameter detected by the hall element 60.
In the embodiment of the present application, one of the slider assembly 40 and the body 10 is provided with the magnetic field generating element 70, and the other of the slider assembly 40 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 40 and the body 10 according to the magnetic field parameter detected by the hall element 60, so that when the sliding assembly 40 needs to slide out to protrude from the side wall of the body 10, it may be determined whether the sliding assembly 40 completely slides out to reach the preset position, so as to avoid that the sliding assembly 40 does not completely slide out to reach the preset position, and thus the camera 30 or the sensor and other components carried in the sliding assembly 40 cannot normally work, which may cause a function abnormality; or, when the sliding component 40 needs to slide into the body 10, it may be determined whether the sliding component 40 completely slides in to reach the predetermined position, so as to avoid that the sliding component 40 does not completely slide in, which affects the aesthetic property of the electronic device 100, and even may cause an abnormal alarm or the like because of not completely sliding in, which affects the use experience of the user.
It should be noted that "one of the slide assembly 40 and the body 10 is provided with the magnetic field generating element 70, and the other of the slide assembly 40 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 slide assembly 40, and the magnetic field generating element 70 is fixed on the slide assembly 40, and the hall element 60 is fixed on the body 10, as shown in fig. 8, this embodiment is only exemplified by fixing the hall element 70 on the slide assembly 40, and the hall element 60 is fixed on the body 10, and for the arrangement manner 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 this application.
In order to implement the above embodiments, the present application also proposes another electronic device.
Fig. 9 is a schematic structural diagram of an electronic device according to a ninth embodiment of the present application.
As shown in fig. 9, the electronic apparatus 100 includes: body 10, detection component 20, camera 30, sliding component 40, memory 50 and processor 60. Wherein,
the camera 30 is disposed on the sliding assembly 40, the detecting assembly 20 is used for detecting a position of the electronic device 100 in a space, and the sliding assembly 40 is used for driving the camera 30 to translate and rotate relative to the body 10.
In an embodiment of the present application, the electronic device further includes: the memory 50, the processor 60 and the computer program stored on the memory 50 and capable of running on the processor 60, when the processor 60 executes the program, the control method of the sliding component as proposed in the previous embodiment of the present application is realized.
In order to implement the above embodiments, the present application 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 a control method of a sliding assembly as proposed in the previous embodiments of the present application.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means 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 application. 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 application, "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 application 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 application.
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 application 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 application 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 application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (18)

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, a detection assembly 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, the detection assembly is used for detecting the position of the electronic equipment in space, 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, the sliding assembly is controlled to drive the camera to rotate relative to the body;
in the process that the sliding assembly drives the camera to rotate relative to the body, the camera is controlled to shoot a panoramic image, and the position change of the electronic equipment in the space is detected through the detection assembly;
and when the position change meets a preset condition, controlling the camera to stop executing the shooting of the panoramic image.
2. The control method according to claim 1, wherein the preset condition is used for indicating a first offset upper limit of the offset of the position of the electronic device in unit time; when the position change meets a preset condition, controlling the camera to stop executing the shooting of the panoramic image, and the method comprises the following steps:
and if the position offset between units is determined to be larger than the upper limit of the first offset indicated by the preset condition according to the position change, controlling the camera to stop shooting the panoramic image.
3. The control method according to claim 1, wherein the preset condition is used for indicating a second offset upper limit offset from an initial position of the electronic device; the initial position is the position of the electronic equipment when the panoramic image shooting is initially executed;
when the position change meets a preset condition, controlling the camera to stop executing the shooting of the panoramic image, and the method comprises the following steps:
and if the offset relative to the initial position is determined to be larger than the upper limit of the second offset indicated by the preset condition according to the position change, controlling the camera to stop shooting the panoramic image.
4. The control method according to any one of claims 1 to 3, wherein the controlling the sliding assembly to drive the camera to rotate relative to the body comprises:
and controlling the sliding assembly to drive the camera to rotate relative to the body along a preset rotating direction by a preset step angle.
5. The control method according to claim 4, wherein the controlling the camera to perform the photographing of the panoramic image in a process that the sliding assembly drives the camera to rotate relative to the body comprises:
in the process that the sliding assembly drives the camera to rotate relative to the body, the camera is controlled to collect at least one frame of image after the step length angle is rotated;
and splicing the collected images to obtain the panoramic image.
6. A control method according to any one of claims 1-3, characterized in that the method further comprises:
acquiring a rotated angle in the process that the sliding assembly drives the camera to rotate relative to the body;
and if the rotated angle is larger than a threshold angle before the position change meets a preset condition, controlling the camera to stop shooting the panoramic image.
7. A control assembly, wherein the control assembly is used for an electronic device, the electronic device includes a body, a detection assembly, 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 detection assembly is used for detecting the position of the electronic device in space, the control assembly includes a memory, a processor and a computer program stored on the memory and operable on the processor, 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, the sliding assembly is controlled to drive the camera to rotate relative to the body;
in the process that the sliding assembly drives the camera to rotate relative to the body, the camera is controlled to shoot a panoramic image, and the position change of the electronic equipment in the space is detected through the detection assembly;
and when the position change meets a preset condition, controlling the camera to stop executing the shooting of the panoramic image.
8. The control assembly according to claim 7, wherein the preset condition is used to indicate a first upper limit of the offset amount of the position offset of the electronic device in a unit time; the processor is configured to:
and if the position offset between units is determined to be larger than the upper limit of the first offset indicated by the preset condition according to the position change, controlling the camera to stop shooting the panoramic image.
9. The control assembly according to claim 7, wherein the preset condition is used to indicate a second offset upper limit offset from an initial position of the electronic device; the initial position is the position of the electronic equipment when the panoramic image shooting is initially executed;
the processor is configured to:
and if the offset relative to the initial position is determined to be larger than the upper limit of the second offset indicated by the preset condition according to the position change, controlling the camera to stop shooting the panoramic image.
10. The control assembly of any one of claims 7-9, wherein the processor is configured to:
and controlling the sliding assembly to drive the camera to rotate relative to the body along a preset rotating direction by a preset step angle.
11. The control assembly of claim 10, wherein the processor is configured to:
in the process that the sliding assembly drives the camera to rotate relative to the body, the camera is controlled to collect at least one frame of image after the step length angle is rotated;
and splicing the collected images to obtain the panoramic image.
12. The control assembly of any of claims 7-9, wherein the processor is further configured to:
acquiring a rotated angle in the process that the sliding assembly drives the camera to rotate relative to the body;
and if the rotated angle is larger than a threshold angle before the position change meets a preset condition, controlling the camera to stop shooting the panoramic image.
13. An electronic device, comprising:
a body;
the camera is used for shooting the panoramic image;
the sliding assembly is provided with the camera and is used for driving the camera to translate and rotate relative to the body;
a detection component for detecting a change in position of the electronic device in space;
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; when the camera is translated to protrude out of the side wall of the body, the sliding assembly is controlled to drive the camera to rotate relative to the body, and the camera is controlled to shoot panoramic images in the rotating process; and when the detection assembly determines that the position change of the electronic equipment in the space meets a preset condition, controlling the camera to stop shooting the panoramic image.
14. The electronic device of claim 13, 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.
15. The electronic device of claim 14,
an accommodating part is arranged in the bearing part and used for accommodating the camera.
16. The electronic device of claim 13, 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.
17. The utility model provides an electronic equipment, its characterized in that, electronic equipment includes body, determine module, slip subassembly and camera, the camera set up in on the slip subassembly, determine module is used for detecting the position of electronic equipment in the space, the slip subassembly is used for driving 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.
18. 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.
CN201810588142.2A 2018-06-08 2018-06-08 Control method, control assembly, electronic equipment and the storage medium of slide assemblies Pending CN108762397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810588142.2A CN108762397A (en) 2018-06-08 2018-06-08 Control method, control assembly, electronic equipment and the storage medium of slide assemblies

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810588142.2A CN108762397A (en) 2018-06-08 2018-06-08 Control method, control assembly, electronic equipment and the storage medium of slide assemblies

Publications (1)

Publication Number Publication Date
CN108762397A true CN108762397A (en) 2018-11-06

Family

ID=64000786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810588142.2A Pending CN108762397A (en) 2018-06-08 2018-06-08 Control method, control assembly, electronic equipment and the storage medium of slide assemblies

Country Status (1)

Country Link
CN (1) CN108762397A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218591A (en) * 2018-11-19 2019-01-15 维沃移动通信(杭州)有限公司 A kind of panorama shooting method and mobile terminal
CN109639975A (en) * 2018-12-24 2019-04-16 维沃移动通信有限公司 A kind of filming control method and mobile terminal
CN111327795A (en) * 2018-12-17 2020-06-23 中兴通讯股份有限公司 Terminal, shooting method, storage medium and electronic device
CN112492128A (en) * 2019-09-12 2021-03-12 北京小米移动软件有限公司 Imaging device and imaging system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049707A (en) * 2015-02-27 2015-11-11 广东欧珀移动通信有限公司 Method of preventing camera from stalling and mobile terminal
WO2016011620A1 (en) * 2014-07-23 2016-01-28 华为技术有限公司 Terminal device
EP3018902A1 (en) * 2014-11-07 2016-05-11 Canon Kabushiki Kaisha Monitoring camera system
CN206133361U (en) * 2016-07-29 2017-04-26 合肥惠科金扬科技有限公司 Smooth movable clamp plate subassembly of camera and display device
CN107800945A (en) * 2016-08-31 2018-03-13 北京小米移动软件有限公司 Method and device that panorama is taken pictures, electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016011620A1 (en) * 2014-07-23 2016-01-28 华为技术有限公司 Terminal device
EP3018902A1 (en) * 2014-11-07 2016-05-11 Canon Kabushiki Kaisha Monitoring camera system
CN105049707A (en) * 2015-02-27 2015-11-11 广东欧珀移动通信有限公司 Method of preventing camera from stalling and mobile terminal
CN206133361U (en) * 2016-07-29 2017-04-26 合肥惠科金扬科技有限公司 Smooth movable clamp plate subassembly of camera and display device
CN107800945A (en) * 2016-08-31 2018-03-13 北京小米移动软件有限公司 Method and device that panorama is taken pictures, electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218591A (en) * 2018-11-19 2019-01-15 维沃移动通信(杭州)有限公司 A kind of panorama shooting method and mobile terminal
CN111327795A (en) * 2018-12-17 2020-06-23 中兴通讯股份有限公司 Terminal, shooting method, storage medium and electronic device
CN111327795B (en) * 2018-12-17 2022-04-29 中兴通讯股份有限公司 Terminal, shooting method, storage medium and electronic device
CN109639975A (en) * 2018-12-24 2019-04-16 维沃移动通信有限公司 A kind of filming control method and mobile terminal
CN112492128A (en) * 2019-09-12 2021-03-12 北京小米移动软件有限公司 Imaging device and imaging system
CN112492128B (en) * 2019-09-12 2022-05-13 北京小米移动软件有限公司 Imaging device and imaging system

Similar Documents

Publication Publication Date Title
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
CN108769478B (en) Control method of sliding assembly, control assembly and electronic equipment
CN105049707B (en) Prevent the method and mobile terminal of camera stall
CN107483808B (en) Inhibit method and device, the terminal device of AEC jump
CN109547601B (en) Terminal equipment and stroke detection method of telescopic camera
JP6384473B2 (en) Information processing apparatus, information processing method, and imaging apparatus
EP2549470A1 (en) Image display apparatus, image display control method and program
CN107087112B (en) Control method and control device for double cameras
CN108737718A (en) Image pickup method, device and smart machine
CN110771143B (en) Control method of handheld cloud deck, handheld cloud deck and handheld equipment
US9459691B2 (en) Techniques for adjusting a position of a display device based on a position of a user
CN107462674B (en) Air detection device and method
CN109714539B (en) Image acquisition method and device based on gesture recognition and electronic equipment
KR20120065997A (en) Electronic device, control method, program, and image capturing system
CN114827407A (en) Camera lens adjusting method and device, control equipment and control system
US20150296130A1 (en) Autofocus device and digital camera
US20150098001A1 (en) Imaging device
EP3218756B1 (en) Direction aware autofocus
CN113841376B (en) Shooting control method and device
CN108196590B (en) Rotation control method and device of cloud platform machine, electronic equipment and storage medium
CN105763797B (en) Control method, control device and electronic device
CN108810411A (en) Control method, control assembly and the electronic equipment of slide assemblies
JP2016004241A (en) Image pick-up system, information processor, image pick-up method and program
CN108833696B (en) Control method of sliding assembly, control assembly, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106