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 PDFInfo
- 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
- slide assemblies
- electronic equipment
- ontology
- shooting
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1684—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
- G06F1/1686—Constructional 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0264—Details 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
Technical field
This application involves field of terminal technology more particularly to a kind of control method of slide assemblies, control assembly, electronics to set
Standby and storage medium.
Background technology
With the continuous development of terminal technology, more and more users are taken pictures using electronic equipment.Currently, shooting
When panoramic picture, pass through user's mobile electronic device so that camera acquires different pictures, is finally carried out to different pictures
Splicing, obtains panoramic picture.
But in actual use, it has been found that during user's mobile electronic device, often uses
The case where family hand shake, so as to cause the object in panoramic picture, there is a situation where misplace or stretch, the bat of panoramic picture
It takes the photograph ineffective.
Invention content
The application proposes a kind of control method of slide assemblies, control assembly, electronic equipment and storage medium, for solving
The bad technical problem of the shooting effect of panoramic picture in the prior art.
The application one side embodiment proposes a kind of control method of slide assemblies, and the slide assemblies are set for electronics
Standby, the electronic equipment includes ontology, detection components and camera, and the camera is set on the slide assemblies, described
Slide assemblies drive the camera to translate and rotate relative to the ontology, and the detection components are for detecting the electronic equipment
Position in space, the control method include the following steps:
It controls the slide assemblies and drives the relatively described ontology translation of the camera;
When the camera moves to the side wall for protruding the ontology, controls the slide assemblies and drive the camera
It is rotated relative to the ontology;
During the slide assemblies drive the camera to be rotated relative to the ontology, controls the camera and hold
The shooting of row panoramic picture, and detect the change in location of the electronic equipment in space by the detection components;
When the change in location meets preset condition, the bat that the camera stops executing the panoramic picture is controlled
It takes the photograph.
The control method of the slide assemblies of the embodiment of the present application drives camera opposing body flat by controlling slide assemblies
It moves, when camera moves to the side wall of protrusion ontology, control slide assemblies drive camera opposing body rotation, then in cunning
During dynamic component drives camera opposing body rotation, control camera executes the shooting of panoramic picture, and passes through detection
The change in location of component detection electronic equipment in space, finally when change in location meets preset condition, control camera stops
Only execute the shooting of panoramic picture.In the application, in photographing panorama picture, camera opposing body is driven by slide assemblies
Rotation, automatic collection image, it is possible to reduce the operation of user improves stability when electronic equipment shooting image, Jin Erti
The high imaging effect of panoramic picture.In addition, when the change in location of electronic equipment in space meets preset condition, control is taken the photograph
As the shooting of head stopping execution panoramic picture, the accuracy of control can be promoted.
The another aspect embodiment of the application proposes a kind of control assembly, and the control assembly is used for electronic equipment, described
Electronic equipment includes ontology, detection components, slide assemblies and camera, and the camera is set on the slide assemblies, institute
Slide assemblies are stated under the control of the control assembly, drive the camera to translate and rotate relative to the ontology, the inspection
Component is surveyed for detecting the position of the electronic equipment in space, the control assembly includes memory, processor and storage
On a memory and the computer program that can run on a processor, the processor execute described program for:
It controls the slide assemblies and drives the relatively described ontology translation of the camera;
When the camera moves to the side wall for protruding the ontology, controls the slide assemblies and drive the camera
It is rotated relative to the ontology;
During the slide assemblies drive the camera to be rotated relative to the ontology, controls the camera and hold
The shooting of row panoramic picture, and detect the change in location of the electronic equipment in space by the detection components;
When the change in location meets preset condition, the bat that the camera stops executing the panoramic picture is controlled
It takes the photograph.
The control assembly of the embodiment of the present application drives camera opposing body translation by controlling slide assemblies, works as camera shooting
When head moves to the side wall of protrusion ontology, control slide assemblies drive camera opposing body rotation, then in slide assemblies band
During dynamic camera opposing body rotation, control camera executes the shooting of panoramic picture, and is detected by detection components
The change in location of electronic equipment in space, finally when change in location meets preset condition, control camera stops executing complete
The shooting of scape image.In the application, in photographing panorama picture, camera opposing body rotation is driven by slide assemblies, from
Dynamic acquisition image, it is possible to reduce the operation of user improves stability when electronic equipment shooting image, and then improves panorama
The imaging effect of image.In addition, when the change in location of electronic equipment in space meets preset condition, control camera stops
The shooting for executing panoramic picture, can promote the accuracy of control.
The another aspect embodiment of the application proposes a kind of electronic equipment, including:
Ontology;
Camera is used for the shooting of panoramic picture;
Slide assemblies are provided with the camera on the slide assemblies, for driving the camera described relatively
Body translates and rotation;
Detection components, for detecting the change in location of the electronic equipment in space;
Control assembly, the control assembly are electrically connected with the slide assemblies and the camera, described for controlling
Slide assemblies drive the relatively described ontology translation of the camera;The side wall of the ontology is protruded when the camera moves to
When, it controls the slide assemblies and the camera is driven to be rotated relative to the ontology, and during rotation, taken the photograph described in control
As head executes the shooting of panoramic picture;The change in location of the electronic equipment in space is being determined by the detection components
When meeting preset condition, the shooting that the camera stops executing the panoramic picture is controlled.
The electronic equipment of the embodiment of the present application drives camera opposing body translation by controlling slide assemblies, works as camera shooting
When head moves to the side wall of protrusion ontology, control slide assemblies drive camera opposing body rotation, then in slide assemblies band
During dynamic camera opposing body rotation, control camera executes the shooting of panoramic picture, and is detected by detection components
The change in location of electronic equipment in space, finally when change in location meets preset condition, control camera stops executing complete
The shooting of scape image.In the application, in photographing panorama picture, camera opposing body rotation is driven by slide assemblies, from
Dynamic acquisition image, it is possible to reduce the operation of user improves stability when electronic equipment shooting image, and then improves panorama
The imaging effect of image.In addition, when the change in location of electronic equipment in space meets preset condition, control camera stops
The shooting for executing panoramic picture, can promote the accuracy of control.
The another aspect embodiment of the application proposes another electronic equipment, including:Ontology, detection components, slide assemblies
And camera, the camera are set on the slide assemblies, the detection components are for detecting the electronic equipment in sky
Between in position, the slide assemblies are for driving the camera to translate and rotate relative to the ontology, the electronic equipment
Further include:Memory, processor and storage on a memory and the computer program that can run on a processor, the processor
When executing described program, the control method of the slide assemblies proposed such as the application previous embodiment is realized.
The another aspect embodiment of the application proposes a kind of computer readable storage medium, is stored thereon with computer journey
Sequence, which is characterized in that the control of the slide assemblies proposed such as the application previous embodiment is realized when the program is executed by processor
Method.
The additional aspect of the application and advantage will be set forth in part in the description, and will partly become from the following description
It obtains obviously, or recognized by the practice of the application.
Description of the drawings
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, wherein:
The flow diagram of the control method for the slide assemblies that Fig. 1 is provided by the embodiment of the present application one;
The structural schematic diagram for the electronic equipment that Fig. 2 is provided by the embodiment of the present application two;
The structural schematic diagram for the electronic equipment that Fig. 3 is provided by the embodiment of the present application three;
The flow diagram of the control method for the slide assemblies that Fig. 4 is provided by the embodiment of the present application four;
The structural schematic diagram for the control assembly that Fig. 5 is provided by the embodiment of the present application five;
The structural schematic diagram for the electronic equipment that Fig. 6 is provided by the embodiment of the present application six;
The structural schematic diagram for the electronic equipment that Fig. 7 is provided by the embodiment of the present application seven;
The structural schematic diagram for the electronic equipment that Fig. 8 is provided by the embodiment of the present application eight;
The structural schematic diagram for the electronic equipment that Fig. 9 is provided by the embodiment of the present application nine.
Specific implementation mode
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
The application provides a kind of sliding mainly for the bad technical problem of the shooting effect of panoramic picture in the prior art
The control method of component.
The control method of the slide assemblies of the embodiment of the present application drives camera opposing body flat by controlling slide assemblies
It moves, when camera moves to the side wall of protrusion ontology, control slide assemblies drive camera opposing body rotation, then in cunning
During dynamic component drives camera opposing body rotation, control camera executes the shooting of panoramic picture, and passes through detection
The change in location of component detection electronic equipment in space, finally when change in location meets preset condition, control camera stops
Only execute the shooting of panoramic picture.In the application, in photographing panorama picture, camera opposing body is driven by slide assemblies
Rotation, automatic collection image, it is possible to reduce the operation of user improves stability when electronic equipment shooting image, Jin Erti
The high imaging effect of panoramic picture.In addition, when the change in location of electronic equipment in space meets preset condition, control is taken the photograph
As the shooting of head stopping execution panoramic picture, the accuracy of control can be promoted.
Below with reference to the accompanying drawings describe the control methods of the slide assemblies of the embodiment of the present application, control assembly, electronic equipment and
Storage medium.
The flow diagram of the control method for the slide assemblies that Fig. 1 is provided by the embodiment of the present application one.
The slide assemblies of the embodiment of the present application are used for electronic equipment.It is the embodiment of the present application two for example, with reference to Fig. 2, Fig. 2
The structural schematic diagram of the electronic equipment provided.Wherein, electronic equipment 100 includes:Ontology 10, detection components 20, camera 30
(border circular areas in figure) and slide assemblies 40, camera 30 are set on slide assemblies 40, and slide assemblies 40 drive camera
30 opposing bodies 10 translate and rotation, and detection components 20 are shown for detecting the position of electronic equipment 100 in space in Fig. 2
Slide assemblies 40 are in inside ontology 10.
Wherein, electronic equipment, which can be mobile phone, tablet computer, personal digital assistant, Wearable etc., has various behaviour
Make the hardware device of system, touch screen and/or display screen.
As shown in Figure 1, the control method of the slide assemblies includes the following steps:
Step 101, control slide assemblies drive camera opposing body translation.
In the embodiment of the present application, camera 30 can specifically refer to front camera.
In the embodiment of the present application, when user wants photographing panorama picture, user can open the target in electronic equipment
Application program, wherein destination application refers to the application program for having camera function, such as camera-type application program, immediately
Communication class application program etc..When electronic equipment, which detects user, opens destination application, slide assemblies 40 can be controlled
Drive 30 opposing body 10 of camera translation.
In the embodiment of the present application, when detecting user's opening destination application, for example, when user opens camera, it can
30 opposing body 10 of camera translation is driven to control slide assemblies 40.
As a kind of possible realization method, it can be provided with drive motor in electronic equipment 100, can be driven by controlling
Dynamic motor, to drive slide assemblies 40 to drive 30 opposing body 10 of camera translation.
It should be noted that the position for how to determine 40 opposing body 10 of slide assemblies, in following electronic equipments 100
Constructive embodiment in will be further described, details are not described herein again.
Step 102, when camera moves to the side wall of protrusion ontology, control slide assemblies drive camera opposing body
Rotation.
Referring to Fig. 3, the structural schematic diagram for the electronic equipment that Fig. 3 is provided by the embodiment of the present application three.When camera 30 is flat
When moving to the side wall of protrusion ontology 10, at this point, user can select panoramic photographing mode.Under panoramic imaging mode, work as detection
To user shooting operation when, such as user trigger shooting interface on shooting button when, electronic equipment 100 can control sliding
Component 40 drives 30 opposing body 10 of camera rotation.Show that slide assemblies 40 protrude side wall (the detection group of ontology 10 in Fig. 3
Part 20 is not shown).
As a kind of possible realization method, in order to ensure the imaging effect of panoramic picture, in the present embodiment, can control
Slide assemblies 40 drive 30 opposing body 10 of camera rotation along preset rotation direction with default step-length angle.
Wherein, preset rotation direction be it is pre-set, preset rotation direction for example can be rotate clockwise direction, or
Person can be direction of rotation counterclockwise, be not restricted to this.Default step-length angle is also pre-set, for example, label is default
Step-length angle is α.
Step 103, during slide assemblies drive camera opposing body rotation, control camera executes panorama sketch
The shooting of picture, and detect the change in location of electronic equipment in space by detection components.
In the embodiment of the present application, during slide assemblies 40 drive 30 opposing body 10 of camera rotation, it can control
Camera 30 processed executes the shooting of panoramic picture.Specifically, 30 opposing body 10 of camera rotation is driven in slide assemblies 40
In the process, after rotary step angle [alpha], camera 30 can be controlled and acquire an at least frame image, then to collected figure
As carrying out splicing, panoramic picture is obtained.For example, image mosaic technology in the prior art can be utilized, to collected
Image carries out splicing, obtains panoramic picture, is not repeated herein.
In the embodiment of the present application, during photographing panorama picture, electronics can also be detected by detection components 20 and set
Standby 100 change in location in space.Wherein, detection components 20 can be related sensor, for example, position sensor, or
For angular transducer, this is not restricted.Detection components 20 can be wholely set with camera 30, alternatively, detection components 20 can
To be set on slide assemblies 40, this is not restricted.Fig. 2 shows detection components 20 to be located on slide assemblies 40.
Specifically, the position of 100 previous moment of electronic equipment in space, Yi Jihou can be obtained by detection components 20
Position in space is carved for the moment, to make the position of later moment in time in space with the position of previous moment in space
Difference, you can obtain the change in location of electronic equipment 100 in space.
Step 104, when change in location meets preset condition, control camera stops executing the shooting of panoramic picture.
In the embodiment of the present application, preset condition is pre-set.
As a kind of possible realization method, preset condition is used to indicate 100 position of unit interval inner electronic equipment
The first offset upper limit of offset.
Wherein, the first offset upper limit can be that the plug-in of electronic equipment 100 is pre-set, alternatively, can be by
User is configured, and is not restricted to this.
In the embodiment of the present application, the position of the electronic equipment 100 in space can be detected by detection components 20 and is become
Change, within the unit interval, when detection components 20 determine that the position offset of electronic equipment 100 is more than the first offset upper limit,
Show that change in location meets preset condition, at this point it is possible to control the shooting that camera 30 stops executing panoramic picture.And work as position
When variation does not meet preset condition, at this point it is possible to continue to acquire image, and splicing is carried out to the image collected, obtained
Panoramic picture.
As alternatively possible realization method, preset condition is used to indicate 100 place initial position of opposing electronic device
The second offset upper limit of offset;Wherein, 100 institute of electronic equipment is in place when initial position shoots for original execution panoramic picture
It sets.
Wherein, the second offset upper limit can be that the plug-in of electronic equipment 100 is pre-set, alternatively, can be by
User is configured, and is not restricted to this.
In the embodiment of the present application, when according to change in location, determining that the offset of relative initial position is more than preset condition
When the second offset upper limit indicated, show that change in location meets preset condition, stops executing at this point it is possible to control camera 30
The shooting of panoramic picture.And when change in location does not meet preset condition, at this point it is possible to continue to acquire image, and to collecting
Image carry out splicing, obtain panoramic picture.
The control method of the slide assemblies of the embodiment of the present application drives camera opposing body flat by controlling slide assemblies
It moves, when camera moves to the side wall of protrusion ontology, control slide assemblies drive camera opposing body rotation, then in cunning
During dynamic component drives camera opposing body rotation, control camera executes the shooting of panoramic picture, and passes through detection
The change in location of component detection electronic equipment in space, finally when change in location meets preset condition, control camera stops
Only execute the shooting of panoramic picture.In the application, in photographing panorama picture, camera opposing body is driven by slide assemblies
Rotation, automatic collection image, it is possible to reduce the operation of user improves stability when electronic equipment shooting image, Jin Erti
The high imaging effect of panoramic picture.In addition, when the change in location of electronic equipment in space meets preset condition, control is taken the photograph
As the shooting of head stopping execution panoramic picture, the accuracy of control can be promoted.
As a kind of possible realization method, during slide assemblies drive camera opposing body rotation, if
When detecting that the angle that camera has rotated is more than threshold angle, stop executing panoramic picture at this point it is possible to control camera
Shooting.With reference to Fig. 4, the above process is described in detail.
The flow diagram of the control method for the slide assemblies that Fig. 4 is provided by the embodiment of the present application four.
As shown in figure 4, on the basis of embodiment shown in Fig. 1, the control method of the slide assemblies may include following step
Suddenly:
Step 201, during slide assemblies drive camera opposing body rotation, rotation angle is obtained.
As a kind of possible realization method, it can be provided with angular transducer in electronic equipment, to be rotated to camera
Angle acquired in real time, for example, the angular transducer can be wholely set with camera, alternatively, the angular transducer can
To be set on slide assemblies, this is not restricted.Alternatively, camera rotation angle can be obtained directly by detection components
Degree.
Optionally, it during slide assemblies drive camera opposing body rotation, can be adopted by angular transducer
Collect rotation angle.
Step 202, if before change in location meets preset condition, rotation angle has been more than threshold angle, and control is taken the photograph
As head stops executing the shooting of panoramic picture.
In the embodiment of the present application, threshold angle is pre-set, and threshold angle for example can be the built-in of electronic equipment
Program is pre-set, or is configured by user, is not restricted to this.
In the embodiment of the present application, when rotation angle is more than threshold angle to camera, camera stopping can be controlled and held
The shooting of row panoramic picture.Thus, it is possible to promote the accuracy of control.
In order to realize that above-described embodiment, the application also propose a kind of control assembly.
The structural schematic diagram for the control assembly that Fig. 5 is provided by the embodiment of the present application five.
As shown in figure 5, the control assembly 50, is used for electronic equipment 100, electronic equipment 100 includes:Ontology 10, detection group
Part 20, camera 30 and slide assemblies 40.Wherein,
Camera 30 is set on slide assemblies 40, and slide assemblies 40 drive camera under the control of control assembly 50
30 opposing bodies 10 translate and rotation, and detection components 20 are for detecting the position of electronic equipment 100 in space, control assembly 50
Including memory 51, processor 52 and it is stored in the computer program that can be run on memory 51 and on the processor 52, is handled
Device 52 execute program for:
It controls slide assemblies 40 and drives 30 opposing body 10 of camera translation;
When camera 30 moves to the side wall of protrusion ontology 10, control slide assemblies 40 drive 30 opposing body of camera
10 rotations;
During slide assemblies 40 drive 30 opposing body 10 of camera rotation, control camera 30 executes panorama sketch
The shooting of picture, and detect the change in location of electronic equipment 100 in space by detection components 20;
When change in location meets preset condition, control camera 30 stops executing the shooting of panoramic picture.
As a kind of possible realization method, preset condition is used to indicate 100 position of unit interval inner electronic equipment
The first offset upper limit of offset, processor 52 are used for:If according to change in location, the position offset between unit is determined
More than preset condition instruction the first offset upper limit when, control camera 30 stop execute panoramic picture shooting.
As alternatively possible realization method, preset condition is used to indicate 100 place initial position of opposing electronic device
The second offset upper limit of offset;Wherein, 100 institute of electronic equipment is in place when initial position shoots for original execution panoramic picture
It sets;Processor 52 is used for:If according to change in location, determine that the offset of relative initial position is more than the of preset condition instruction
When the two offset upper limits, control camera 30 stops executing the shooting of panoramic picture.
In the embodiment of the present application, processor 52 is used for:Slide assemblies 40 are controlled, along preset rotation direction, with default step-length
Angle drives 30 opposing body 10 of camera rotation.
In the embodiment of the present application, processor 52 is used for:30 opposing body 10 of camera rotation is driven in slide assemblies 40
In the process, after rotary step angle, control camera 30 acquires an at least frame image;The image collected is spelled
It connects, obtains panoramic picture.
Optionally, processor 52 is additionally operable to:During slide assemblies 40 drive 30 opposing body 10 of camera rotation,
Obtain rotation angle;If before change in location meets preset condition, rotation angle has been more than threshold angle, control camera shooting
First 30 stop executing the shooting of panoramic picture.
It should be noted that the explanation of the aforementioned control method embodiment to slide assemblies is also applied for the embodiment
Control assembly 50, details are not described herein again.
The control assembly 50 of the embodiment of the present application drives 30 opposing body 10 of camera flat by controlling slide assemblies 40
It moves, when camera 30 moves to the side wall of protrusion ontology 10, control slide assemblies 40 drive 30 opposing body 10 of camera rotation
Turn, then during slide assemblies 40 drive 30 opposing body 10 of camera rotation, control camera 30 executes panorama sketch
The shooting of picture, and the change in location of electronic equipment 100 in space is detected by detection components 20, finally when change in location meets
When preset condition, control camera 30 stops executing the shooting of panoramic picture.In the application, in photographing panorama picture, pass through
Slide assemblies 40 drive 30 opposing body 10 of camera rotation, automatic collection image, it is possible to reduce the operation of user improves electricity
Sub- equipment 100 shoots stability when image, and then improves the imaging effect of panoramic picture.In addition, when electronic equipment 100 exists
When change in location in space meets preset condition, control camera 30 stops executing the shooting of panoramic picture, can promote control
The accuracy of system.
In order to realize that above-described embodiment, the application also propose a kind of electronic equipment.
The structural schematic diagram for the electronic equipment that Fig. 6 is provided by the embodiment of the present application six.
As shown in fig. 6, the electronic equipment 100 includes:Ontology 10, detection components 20, camera 30, slide assemblies 40 and
Control assembly 50.Wherein,
Camera 30 is used for the shooting of panoramic picture.
Slide assemblies 40 are provided with camera 30 on slide assemblies 40, for driving 30 opposing body 10 of camera to translate
And rotation.
Detection components 20, for detecting the change in location of electronic equipment 100 in space.
Control assembly 50, control assembly 50 is electrically connected with slide assemblies 40 and camera 30, for controlling slide assemblies
40 drive 30 opposing body 10 of camera translation;When camera 30 moves to the side wall of protrusion ontology 10, slide assemblies are controlled
40 drive 30 opposing body 10 of camera rotation, and during rotation, and control camera 30 executes the shooting of panoramic picture;
When determining that the change in location of electronic equipment in space meets preset condition by detection components 20, control camera 30 stops
Only execute the shooting of panoramic picture.
The electronic equipment 100 of the embodiment of the present application drives 30 opposing body 10 of camera flat by controlling slide assemblies 40
It moves, when camera 30 moves to the side wall of protrusion ontology 10, control slide assemblies 40 drive 30 opposing body 10 of camera rotation
Turn, then during slide assemblies 40 drive 30 opposing body 10 of camera rotation, control camera 30 executes panorama sketch
The shooting of picture, and the change in location of electronic equipment 100 in space is detected by detection components 20, finally when change in location meets
When preset condition, control camera 30 stops executing the shooting of panoramic picture.In the application, in photographing panorama picture, pass through
Slide assemblies 40 drive 30 opposing body 10 of camera rotation, automatic collection image, it is possible to reduce the operation of user improves electricity
Sub- equipment 100 shoots stability when image, and then improves the imaging effect of panoramic picture.In addition, when electronic equipment 100 exists
When change in location in space meets preset condition, control camera 30 stops executing the shooting of panoramic picture, can promote control
The accuracy of system.
As a kind of possible realization method, referring to Fig. 7, on the basis of embodiment shown in Fig. 6, slide assemblies 40 are specific
May include:Drive motor 41, lead screw 42 and load-bearing part 43.Wherein,
The lower end of lead screw 42 is fixedly connected with the shaft of drive motor 41, for being rotated by drive motor 41,
Inside spin line is offered on lead screw 42, the upper end of lead screw 42 is arranged with feed screw nut 421, is opened on the madial wall of feed screw nut 421
Equipped with external spiral line corresponding with inside spin line.
Load-bearing part 43 is fixedly connected with feed screw nut 421, for being arranged inside opposing body 10 under the drive of lead screw 42
Sliding groove translation, to protrude from ontology 10, or be hidden in inside ontology 10;And when load-bearing part 43 translates out sliding groove,
The opposing body 10 under the drive of lead screw 42 of load-bearing part 43 rotates.
As a kind of possible realization method, receiving portion is provided in load-bearing part 43, receiving portion is for housing camera 30.
As a kind of possible realization method, referring to Fig. 8, on the basis of embodiment shown in Fig. 6, electronic equipment 100 is also
Including:Hall element 60 and field generating element 70.Wherein,
Field generating element 70 and Hall element 60 are separately fixed on ontology 10 and slide assemblies 40.
Control assembly 50 is additionally operable to detect obtained magnetic field parameter according to Hall element 60, determines slide assemblies 40 and this
The relative position of body 10.
In the embodiment of the present application, one in slide assemblies 40 and ontology 10 is provided with field generating element 70, Slide Group
Another in part 40 and ontology 10 is provided with Hall element 60.
As a kind of possible realization method, Hall element 60 can be electrically connected with control assembly 50, to control group
Part 50 can receive Hall element 60 and detect obtained magnetic field parameter, and obtained magnetic field parameter is detected according to Hall element 60,
The relative position of slide assemblies 40 and ontology 10 is determined, to be skidded off when the needs of slide assemblies 40 to protrude from the side wall of ontology 10
When, it may be determined that whether slide assemblies 40 fully slide out to reach predeterminated position, do not complete and skid off to avoid slide assemblies 40
It up to predeterminated position, and influences the components such as the camera carried in slide assemblies 40 30 or sensor and can not work normally, cause
Dysfunction;Alternatively, when slide assemblies 40 need to slide into the inside of ontology 10, it may be determined that completely whether slide assemblies 40
It slides into reach precalculated position, is not slid completely into avoid slide assemblies 40, influences the aesthetics of electronic equipment 100, or even meeting
Situations such as generating abnormal alarm because of not being slid completely into influences the usage experience of user.
It is worth noting that, " one in slide assemblies 40 and ontology 10 is provided with field generating element 70, sliding herein
It includes two kinds of situations that another in component 40 and ontology 10, which is provided with Hall element 60 ", first, field generating element 70 is fixed
On ontology 10, Hall element 60 is fixed on slide assemblies 40, second is that field generating element 70 is fixed on slide assemblies 40,
Hall element 60 is fixed on ontology 10, and as shown in Figure 8, the present embodiment is only fixed on 70 on slide assemblies 40, Hall member
Part 60 is fixed on example on ontology 10, and for the set-up mode of another situation, principle is identical, and no longer drawing shows.In addition, suddenly
That element 60 and field generating element 70 can be staggered relatively in the vertical direction, can also be staggered relatively in the horizontal direction.
In other words, as long as Hall element 60 and field generating element 70 can generate relative motion, in the application, not to Hall element
60 and the specific location of field generating element 70 be limited.
In order to realize that above-described embodiment, the application also propose another electronic equipment.
The structural schematic diagram for the electronic equipment that Fig. 9 is provided by the embodiment of the present application nine.
As shown in figure 9, the electronic equipment 100 includes:Ontology 10, camera 30, slide assemblies 40, is deposited at detection components 20
Reservoir 50 and processor 60.Wherein,
Camera 30 is set on slide assemblies 40, and detection components 20 are for detecting the position of electronic equipment 100 in space
It sets, slide assemblies 40 are for driving 30 opposing body 10 of camera to translate and rotate.
In the embodiment of the present application, electronic equipment further includes:It memory 50, processor 60 and is stored on memory 50 and can
The computer program run on processor 60 when processor 60 executes program, is realized as the application previous embodiment proposes
The control method of slide assemblies.
In order to realize that above-described embodiment, the application also propose a kind of computer readable storage medium, it is stored thereon with calculating
Machine program, which is characterized in that realized such as the slide assemblies that the application previous embodiment proposes when the program is executed by processor
Control method.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discuss suitable
Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be by the application
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (system of such as computer based system including processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage
Or firmware is realized.Such as, if realized in another embodiment with hardware, following skill well known in the art can be used
Any one of art or their combination are realized:With for data-signal realize logic function logic gates from
Logic circuit is dissipated, the application-specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, which includes the steps that one or a combination set of embodiment of the method when being executed.
In addition, each functional unit in each embodiment of the application can be integrated in a processing module, it can also
That each unit physically exists alone, can also two or more units be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and when sold or used as an independent product, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application
System, those skilled in the art can be changed above-described embodiment, change, replace and become within the scope of application
Type.
Claims (18)
1. a kind of control method of slide assemblies, which is characterized in that the slide assemblies are used for electronic equipment, the electronic equipment
Including ontology, detection components and camera, the camera is set on the slide assemblies, described in the slide assemblies drive
Camera is translated and is rotated relative to the ontology, and the detection components are used to detect the position of the electronic equipment in space,
The control method includes the following steps:
It controls the slide assemblies and drives the relatively described ontology translation of the camera;
When the camera moves to the side wall for protruding the ontology, controls the slide assemblies and drive the camera opposite
The ontology rotation;
During the slide assemblies drive the camera to be rotated relative to the ontology, controls the camera and execute entirely
The shooting of scape image, and detect the change in location of the electronic equipment in space by the detection components;
When the change in location meets preset condition, the shooting that the camera stops executing the panoramic picture is controlled.
2. control method according to claim 1, which is characterized in that the preset condition is used to indicate institute in the unit interval
State the first offset upper limit of electronic equipment position offset;It is described when the change in location meets preset condition, control
The camera stops executing the shooting of the panoramic picture, including:
If according to the change in location, determine that the position offset between unit is more than the first of preset condition instruction
When the offset upper limit, the shooting that the camera stops executing the panoramic picture is controlled.
3. control method according to claim 1, which is characterized in that the preset condition is used to indicate the relatively described electronics
The second offset upper limit of initial position offset where equipment;Wherein, the initial position is panoramic picture described in original execution
Electronic equipment position when shooting;
When the change in location meets preset condition, the shooting that the camera stops executing the panoramic picture, packet are controlled
It includes:
If according to the change in location, determine that the offset of the relatively described initial position is more than the of preset condition instruction
When the two offset upper limits, the shooting that the camera stops executing the panoramic picture is controlled.
4. according to claim 1-3 any one of them control methods, which is characterized in that the control slide assemblies drive
The camera is rotated relative to the ontology, including:
The slide assemblies are controlled, along preset rotation direction, the relatively described ontology of camera is driven with default step-length angle
Rotation.
5. control method according to claim 4, which is characterized in that described to drive the camera opposite in slide assemblies
During the ontology rotation, the shooting that the camera executes panoramic picture is controlled, including:
During the slide assemblies drive the camera to be rotated relative to the ontology, whenever the rotation step-length angle
Afterwards, a camera acquisition at least frame image is controlled;
The image collected is spliced, the panoramic picture is obtained.
6. according to claim 1-3 any one of them control methods, which is characterized in that the method further includes:
During the slide assemblies drive the camera to be rotated relative to the ontology, rotation angle is obtained;
If before the change in location meets preset condition, the rotation angle has been more than threshold angle, is taken the photograph described in control
As head stops executing the shooting of the panoramic picture.
7. a kind of control assembly, which is characterized in that the control assembly be used for electronic equipment, the electronic equipment include ontology,
Detection components, slide assemblies and camera, the camera are set on the slide assemblies, and the slide assemblies are in the control
Under the control of component processed, the camera is driven to translate and rotate relative to the ontology, the detection components are described for detecting
The position of electronic equipment in space, the control assembly include memory, processor and storage on a memory and can locate
The computer program that runs on reason device, the processor execute described program for:
It controls the slide assemblies and drives the relatively described ontology translation of the camera;
When the camera moves to the side wall for protruding the ontology, controls the slide assemblies and drive the camera opposite
The ontology rotation;
During the slide assemblies drive the camera to be rotated relative to the ontology, controls the camera and execute entirely
The shooting of scape image, and detect the change in location of the electronic equipment in space by the detection components;
When the change in location meets preset condition, the shooting that the camera stops executing the panoramic picture is controlled.
8. control assembly according to claim 7, which is characterized in that the preset condition is used to indicate institute in the unit interval
State the first offset upper limit of electronic equipment position offset;The processor is used for:
If according to the change in location, determine that the position offset between unit is more than the first of preset condition instruction
When the offset upper limit, the shooting that the camera stops executing the panoramic picture is controlled.
9. control assembly according to claim 7, which is characterized in that the preset condition is used to indicate the relatively described electronics
The second offset upper limit of initial position offset where equipment;Wherein, the initial position is panoramic picture described in original execution
Electronic equipment position when shooting;
The processor is used for:
If according to the change in location, determine that the offset of the relatively described initial position is more than the of preset condition instruction
When the two offset upper limits, the shooting that the camera stops executing the panoramic picture is controlled.
10. according to claim 7-9 any one of them control assemblies, which is characterized in that the processor is used for:
The slide assemblies are controlled, along preset rotation direction, the relatively described ontology of camera is driven with default step-length angle
Rotation.
11. control assembly according to claim 10, which is characterized in that the processor is used for:
During the slide assemblies drive the camera to be rotated relative to the ontology, whenever the rotation step-length angle
Afterwards, a camera acquisition at least frame image is controlled;
The image collected is spliced, the panoramic picture is obtained.
12. according to claim 7-9 any one of them control assemblies, which is characterized in that the processor is additionally operable to:
During the slide assemblies drive the camera to be rotated relative to the ontology, rotation angle is obtained;
If before the change in location meets preset condition, the rotation angle has been more than threshold angle, is taken the photograph described in control
As head stops executing the shooting of the panoramic picture.
13. a kind of electronic equipment, which is characterized in that including:
Ontology;
Camera is used for the shooting of panoramic picture;
Slide assemblies are provided with the camera on the slide assemblies, for driving the relatively described ontology of the camera flat
It moves and rotates;
Detection components, for detecting the change in location of the electronic equipment in space;
Control assembly, the control assembly is electrically connected with the slide assemblies and the camera, for controlling the sliding
Component drives the relatively described ontology translation of the camera;When the camera moves to the side wall for protruding the ontology, control
Making the slide assemblies drives the camera to be rotated relative to the ontology, and during rotation, controls the camera
Execute the shooting of panoramic picture;Determining that the change in location of the electronic equipment in space meets by the detection components
When preset condition, the shooting that the camera stops executing the panoramic picture is controlled.
14. electronic equipment according to claim 13, which is characterized in that the slide assemblies include:
Drive motor;
Lead screw, the lower end of the lead screw are fixedly connected with the shaft of the drive motor, for the driving in the drive motor
Lower rotation offers inside spin line on the lead screw, and the upper end of the lead screw is arranged with feed screw nut, and the feed screw nut's is interior
External spiral line corresponding with the inside spin line is offered on side wall;
Load-bearing part is fixedly connected with the feed screw nut, for the relatively described body interior setting under the drive of the lead screw
Sliding groove translation, to protrude from the ontology, or be hidden in the body interior;And it is translated out in the load-bearing part described
When sliding groove, the load-bearing part rotates under the drive of the lead screw relative to the ontology.
15. electronic equipment according to claim 14, which is characterized in that
Receiving portion is provided in the load-bearing part, described accommodation section is for housing the camera.
16. electronic equipment according to claim 13, which is characterized in that the electronic equipment further includes Hall element and magnetic
Field generating element, the field generating element and the Hall element are separately fixed on the ontology and the slide assemblies;
The control assembly is additionally operable to the magnetic field parameter detected according to the Hall element, determine the slide assemblies with
The relative position of the ontology.
17. a kind of electronic equipment, which is characterized in that the electronic equipment includes ontology, detection components, slide assemblies and camera shooting
Head, the camera be set on the slide assemblies, and the detection components are used to detect the electronic equipment in space
Position, for driving the camera to translate and rotate relative to the ontology, the electronic equipment further includes the slide assemblies:
Memory, processor and storage on a memory and the computer program that can run on a processor, processor execution institute
When stating program, the control method of the slide assemblies as described in any in claim 1-6 is realized.
18. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The control method of the slide assemblies as described in any in claim 1-6 is realized when execution.
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)
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)
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 |
-
2018
- 2018-06-08 CN CN201810588142.2A patent/CN108762397A/en active Pending
Patent Citations (5)
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)
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 |
---|---|---|
CN108762397A (en) | Control method, control assembly, electronic equipment and the storage medium of slide assemblies | |
US20210243370A1 (en) | Photographing apparatus for photographing panoramic image using visual elements on a display, and method thereof | |
CN108989660A (en) | Control method, control assembly, electronic equipment and the storage medium of slide assemblies | |
CN104902170B (en) | A kind of photographic method and terminal | |
US20110304688A1 (en) | Panoramic camera and method for capturing panoramic photos | |
JP5206095B2 (en) | Composition determination apparatus, composition determination method, and program | |
KR102155895B1 (en) | Device and method to receive image by tracking object | |
CN108769478A (en) | Control method, control assembly and the electronic equipment of slide assemblies | |
CN106101687B (en) | VR image capturing devices and its VR image capturing apparatus based on mobile terminal | |
EP2461570A1 (en) | Control device, image-capturing system, control method, and program | |
CN104469157A (en) | Camera multi-person shooting method and device | |
US20140267595A1 (en) | Rotating surveillance camera | |
CN110771143B (en) | Control method of handheld cloud deck, handheld cloud deck and handheld equipment | |
CN104735356A (en) | Panorama picture shooting method and device | |
CN111885406A (en) | Smart television control method and device, rotatable television and readable storage medium | |
KR102082661B1 (en) | Photograph image generating method of electronic device, and apparatus thereof | |
CN104145479A (en) | Object removal from an image | |
CN104914995A (en) | Photographing method and terminal | |
CN105827967B (en) | Control method, control device and electronic device | |
CN104601882A (en) | Panorama-shot method and terminal | |
US11102388B2 (en) | Self portrait image preview and capture techniques | |
CN108833697A (en) | Control method, control assembly and the electronic equipment of slide assemblies | |
CN106254771B (en) | Shoot anti-fluttering method, device and mobile terminal | |
KR20160088719A (en) | Electronic device and method for capturing an image | |
US8194147B2 (en) | Image presentation angle adjustment method and camera device using the same |
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 |