CN108134900A - A kind of control method of equipment, equipment and storage medium - Google Patents
A kind of control method of equipment, equipment and storage medium Download PDFInfo
- Publication number
- CN108134900A CN108134900A CN201711392972.XA CN201711392972A CN108134900A CN 108134900 A CN108134900 A CN 108134900A CN 201711392972 A CN201711392972 A CN 201711392972A CN 108134900 A CN108134900 A CN 108134900A
- Authority
- CN
- China
- Prior art keywords
- motion
- equipment
- shooting unit
- instruction
- image
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses a kind of control method of equipment, the method includes:When detecting that image enables operation, pop instruction is generated;Motion into the equipment sends the pop instruction, makes the motion with the first motion, and the shooting unit in the equipment is driven to be moved to the first direction of the equipment so that the shooting unit can obtain image data.The present invention further simultaneously discloses a kind of control device and storage medium.
Description
Technical field
The present invention relates to a kind of equipment control technology more particularly to control method of equipment, equipment and storage mediums.
Background technology
When camera to be integrated in the bottom end and/or top of all-in-one machine in the prior art, use be all drawing and pulling type biography
Unite mechanical structure, user every time using camera when be required for the switch of Manual press camera that can just open or close camera shooting
Head so that user's operation is relatively complicated, and the usage experience for causing user is very poor.
Invention content
In view of this, it an embodiment of the present invention is intended to provide a kind of control method of equipment, equipment and storage medium, can solve
The troublesome operation certainly switched in the prior art by Mechanical course camera.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
One side according to embodiments of the present invention, provides a kind of control method of equipment, the method includes:
When detecting that image enables operation, pop instruction is generated;
Motion into the equipment sends the pop instruction, and the motion is made to be transported with the first motion mode
It is dynamic, and the shooting unit in the equipment is driven to be moved to the first direction of the equipment so that the shooting unit can obtain
Take image data.
In said program, the method further includes:
When detecting image shutoff operation, instruction is withdrawn in generation;
Described withdraw is sent to the motion to instruct, and makes the motion with the second motion, and drive
It moves the shooting unit to move to the second direction of the equipment so that the shooting unit closes image capturing function.
In said program, it is described detect image enable operation before, the method further includes:
Start application program, operation is enabled to trigger the image.
It is described to detect that image enables operation in said program, pop instruction is generated, including:
When detecting the data of driving layer, interception is for the driving instruction of image enabling operation in the data;
The image is triggered according to the driving instruction and enables operation, generates pop instruction.
In said program, send the pop instruction in the motion into the equipment or described withdraw instruction
Afterwards, the method further includes:
It detects when stopping operation, generates the first halt instruction;
First halt instruction is sent to the motion, the motion is made to perform first halt instruction
And stop motion.
In said program, after the pop instruction or the withdrawal instruction is sent to the motion, the side
Method further includes:
The current shift position of the shooting unit is detected, generates testing result;
It is raw when the testing result, which characterizes the shooting unit, is currently located at the first extreme position or the second extreme position
Into the second halt instruction;
The second halt instruction is sent to the motion, the motion is made to perform second halt instruction and stop
Only move.
In said program, after second halt instruction is sent to the motion, the method further includes:
When the shooting unit is located at the first extreme position and detects the image shutoff operation, to the motion
It sends described withdraw to instruct, makes the motion with second motion;
When the shooting unit is located at the second extreme position and detects that the image enables operation, to the motion
The pop instruction is sent, makes the motion with first motion;
The shooting unit is located at first extreme position and detects the image and enable operation or the shooting
When unit is located at the second extreme position and detects the image shutoff operation, third halt instruction is generated, to the fitness machine
Structure sends the third halt instruction, and the motion is made to keep current halted state.
In said program, the method further includes:
When the shooting unit is located at the first extreme position, the shooting unit is in first and uses mode;
The shooting unit is located at the second extreme position, and the shooting unit is in second and uses mode;
When the shooting unit is in first using mode, the shooting unit is revealed in the outside of the equipment;
When the shooting unit is in second using mode, the shooting unit is hidden in the inside of the equipment.
Another aspect according to embodiments of the present invention, provides a kind of control device, the equipment includes:Generation unit,
Transmitting element, shooting unit and motion;
Wherein, the generation unit, for detect image enable operation when, generate pop instruction;
The transmitting element for sending the pop instruction to the motion, makes the motion with first
Motion, and the shooting unit is driven to be moved to the first direction of the equipment so that the shooting unit can
Obtain image data.
The third aspect according to embodiments of the present invention, provides a kind of control device, the equipment includes:Memory, place
It manages device and is stored in the executable program that memory is moved by processor, which is characterized in that can described in the processor operation
The step of control method described in any one of above-mentioned control method being performed when performing program.
Fourth aspect according to embodiments of the present invention, provides a kind of storage medium, is stored thereon with executable program,
It is characterized in that, the controlling party as described in any one of above-mentioned control method is realized when the executable code processor performs
The step of method
Control method, equipment and the storage medium of equipment provided by the present invention, by detect image enable operation when,
Generate pop instruction;Motion into the equipment sends the pop instruction, makes the motion with the first movement
Mode moves, and the shooting unit in the equipment is driven to be moved to the first direction of the equipment so that the shooting unit
Image data can be obtained.In this way, the enabling of camera can be realized in the switch without mechanically touch-control camera
And shutoff operation, substantially increase the usage experience of user.
Description of the drawings
Fig. 1 is the flow diagram of the control method of equipment in the embodiment of the present invention one;
Fig. 2 is the flow diagram of the control method of equipment in the embodiment of the present invention two;
Fig. 3 is the application scenarios schematic diagram of camera in the embodiment of the present invention;
Fig. 4 is the structure composition schematic diagram one of control device in the embodiment of the present invention;
Fig. 5 is the structure composition schematic diagram two of control device in the embodiment of the present invention.
Specific embodiment
In order to more fully hereinafter understand the features of the present invention and technology contents, below in conjunction with the accompanying drawings to the reality of the present invention
It is now described in detail, appended attached drawing purposes of discussion only for reference, is not used for limiting the present invention.
Fig. 1 is the flow diagram of the control method of equipment in the embodiment of the present invention one, as shown in Figure 1, the method packet
It includes:
Step 101, when detecting that image enables operation, pop instruction is generated;
In the embodiment of the present invention, the method is mainly used in the equipment for being equipped with concealed pick-up head, and described
At least one application program is installed in equipment.For example, the equipment is all-in-one machine.Described in being enabled on said device as user
During application program, the terminal is able to detect that the data of driving layer, when user triggers the image capturing in the application program
During operation, the equipment can detect the driving instruction for camera in the equipment in the data of driving layer.
When equipment detects that the image triggered for camera enables the driving instruction of operation in the data for driving layer
When, the driving instruction is intercepted, and generate pop instruction in the data of driving layer, so that hiding taking the photograph in the apparatus
Operation is enabled, and pop up in the equipment as head triggers the image according to the driving instruction.
For example, the application program installed in the apparatus is wechat, when user enables wechat software on the device,
The equipment is able to detect that the associated drives instruction for wechat in driving layer, for example, the associated drives for wechat instruct
It is the driving instruction for the opening operation of wechat.When user triggers " sweep and sweep " function to mesh in enabled wechat software
When mark Quick Response Code or bar code are scanned, it must can just be obtained by means of camera since the equipment performs " sweep and sweep " function
Image data is taken, therefore, when user, which triggers sweeping in wechat, sweeps function, the equipment can be examined in the data of driving layer
The image measured for camera enables the driving instruction of operation.It is detected when in data of the equipment in driving layer for shadow
During as enabling the driving instruction operated, the driving instruction is intercepted, and according to the driving instruction triggers camera execution
Image enables operation, generates pop instruction, so that the camera performs the pop instruction and pops up in the equipment.
Step 102, the motion into the equipment sends the pop instruction, makes the motion with the first fortune
Flowing mode moves, and the shooting unit in the equipment is driven to be moved to the first direction of the equipment so that the shooting is single
Member can obtain image data.
In the embodiment of the present invention, camera can be set to the top of equipment, can also be set to the bottom end of equipment, when taking the photograph
As head is set to the top of the screen of equipment, i.e., during one end of the pedestal far from connection screen, the motion in the equipment
It can be moved to the direction far from pedestal to drive first direction movement of the shooting unit to equipment in the equipment.And work as and take the photograph
As head is set to the bottom end of the screen of equipment, i.e., close to one end of the pedestal of connection screen when, the motion in the equipment
It can be moved to close to the direction of pedestal to drive first direction movement of the shooting unit to equipment in the equipment.
Here, the motion can be lead screw motor, including intermeshing screw rod and nut, wherein, camera
On screw rod, the screw rod as Motor Shaft, outside motor by an external drive nut and screw rod be meshed from
And realize the linear motion of camera.
When the equipment generates pop instruction, the pop instruction is sent to the spindle motor, the leading screw electricity
When machine receives the pop instruction, the motor rotation is triggered to drive the screw rod with the first motion.Screw rod
Move so as to drive first direction from the camera to the equipment move so that camera can pop up in the equipment with
Obtain image data.In this way, the switch without Manual press camera can open camera shooting when needing using camera function
Head, substantially increases the usage experience of user, while also simplifies the troublesome operation of user.
In embodiments of the present invention, it after the motion into the equipment sends the pop instruction, further includes
Following steps:
Step 103, it detects when stopping operation, generates the first halt instruction;
Step 104, first halt instruction is sent to the motion, the motion is made to perform described first
Halt instruction and stop motion.
Here, when user camera into first direction moving process for camera triggering stop operation when, it is described
Equipment is able to detect that the driving instruction stopped operation in the data of driving layer.
When equipment is detected for the driving instruction stopped operation, the driving instruction is intercepted, and generates first and stops
Instruction, and first halt instruction is sent to motion, so that motion performs first halt instruction and band
Dynamic camera stops continuing to move to the first direction of equipment.It is imaged in this way, user can be facilitated to be adjusted according to the demand of oneself
The height of head.
In the embodiment of the present invention, after the pop instruction is sent to the motion, the method further include with
Lower step:
Step 105, the current shift position of the shooting unit is detected, generates testing result;
Step 106, when the testing result, which characterizes the shooting unit, is currently located at the first extreme position, generation second
Halt instruction;
Step 107, the second halt instruction is sent to the motion, the motion is made to perform described second and is stopped
It instructs and stop motion.
Here, when camera is moved to the first direction of equipment, position that the equipment can be moved to working as preceding camera
It puts and is detected, whether to judge the current shift position of camera in preset first extreme position, and generate detection knot
Fruit.
When the testing result, which characterizes the current shift position of the camera, is in the first extreme position, generation second
Halt instruction, and second halt instruction is sent to motion, stop referring to so that the motion performs described second
It enables and stop motion, so as to which camera be driven to stop continuing to move to the first direction of equipment.So that the silk of equipment
Bar motor is protected, and is not lead screw motor rotation driving screw and has been reached capacity and also continue to rotate, and influences lead screw motor
Service life.
Fig. 2 is the flow diagram of the control method of equipment in the embodiment of the present invention two;As shown in Fig. 2, the method packet
It includes:
Step 201, when detecting image shutoff operation, instruction is withdrawn in generation;
In the embodiment of the present invention, the method is mainly used in the equipment for being equipped with concealed pick-up head, and described
At least one application program is installed in equipment.For example, the equipment is all-in-one machine.Described in being enabled on said device as user
During application program, the terminal is able to detect that the data of driving layer, when user triggers the image capturing in the application program
During operation, the equipment can detect the driving instruction for camera in the equipment in the data of driving layer.
When equipment detects the driving instruction of image shutoff operation triggered for camera in the data for driving layer
When, the driving instruction is intercepted in the data of driving layer, and camera is triggered according to the driving instruction and performs the image
Shutoff operation simultaneously generates withdrawal instruction, so that pop-up performs the withdrawal instruction in the camera of the equipment and withdraws in institute
State equipment.
For example, the application program installed in the apparatus is wechat, when user exits in enabled wechat software
During " sweep and sweep " function, the equipment is able to detect that the drive of the image shutoff operation for camera in the data of driving layer
Dynamic instruction.When the equipment detects the driving instruction for image shutoff operation in the data for driving layer, described in interception
Driving instruction, and camera is triggered according to the driving instruction and performs the image shutoff operation, instruction is withdrawn in generation, so that
The camera performs described withdraw and instructs and withdraw in the equipment, it may also be said to be that camera is made to be hidden in equipment.This
Sample not only causes the appearance looks elegant of equipment, but also no longer needs the switch of Manual press camera to carry out closing behaviour to camera
Make, improve the usage experience of user.
Step 202, it sends described withdraw to the motion to instruct, the motion is made to be transported with the second motion mode
It is dynamic, and the shooting unit is driven to be moved to the second direction of the equipment so that the shooting unit closes image capturing work(
Energy.
In the embodiment of the present invention, the shooting unit is the camera in the equipment, when motion receive it is described
When withdrawing instruction, driving motor is rotated with the second motion mode, so as to drive second direction of the camera on screw rod to equipment
Mobile, for example, second direction is then close to the direction of plant bottom case when camera is mounted on the top of equipment, camera is withdrawn
In equipment, to close image capturing function.
In embodiments of the present invention, it after the motion into the equipment sends the withdrawal instruction, further includes
Following steps:
Step 203, it detects when stopping operation, generates the first halt instruction;
Step 204, first halt instruction is sent to the motion, the motion is made to perform described first
Halt instruction and stop motion.
Here, when user camera into second direction moving process for camera triggering stop operation when, it is described
Equipment is able to detect that the driving instruction stopped operation in the data of driving layer.
When equipment is detected for the driving instruction stopped operation, the driving instruction is intercepted, and generates first and stops
Instruction, and first halt instruction is sent to motion, so that motion performs first halt instruction and band
Dynamic camera stops continuing to move to the second direction of equipment.It is imaged in this way, user can be facilitated to be adjusted according to the demand of oneself
The height of head.
In the embodiment of the present invention, to the motion send it is described withdraw instruction after, the method further include with
Lower step:
Step 205, the current shift position of the shooting unit is detected, generates testing result;
Step 206, when the testing result, which characterizes the shooting unit, is currently located at the second extreme position, generation second
Halt instruction;
Step 207, the second halt instruction is sent to the motion, the motion is made to perform described second and is stopped
It instructs and stop motion.
Here, when camera is moved to the second direction of equipment, position that the equipment can be moved to working as preceding camera
It puts and is detected, whether to judge the current shift position of camera in preset second extreme position, and generate detection knot
Fruit.
When the testing result, which characterizes the current shift position of the camera, is in the second extreme position, generation second
Halt instruction, and second halt instruction is sent to motion, stop referring to so that the motion performs described second
It enables and stop motion, so as to which camera be driven to stop continuing to move to the second direction of equipment.So that the silk of equipment
Bar motor is protected, and is not lead screw motor rotation driving screw and has been reached capacity and also continue to rotate, and influences lead screw motor
Service life.Here, the first direction and second direction are the direction mutually returned, first extreme position and second limit
Position is the position mutually returned each other.
In the embodiment of the present invention, after second halt instruction is sent to the motion, the method is also wrapped
It includes:
When the shooting unit is located at the first extreme position and detects the image shutoff operation, to the motion
It sends described withdraw to instruct, makes the motion with second motion;
When the shooting unit is located at the second extreme position and detects that the image enables operation, to the motion
The pop instruction is sent, makes the motion with first motion;
The shooting unit is located at first extreme position and detects the image and enable operation or the shooting
When unit is located at the second extreme position and detects the image shutoff operation, third halt instruction is generated, to the fitness machine
Structure sends the third halt instruction, and the motion is made to keep current halted state.
Wherein, when the shooting unit is located at the first extreme position, the shooting unit is in first and uses mode;It is described
Shooting unit is located at the second extreme position, and the shooting unit is in second and uses mode;The shooting unit, which is in first, to be made
During with mode, the shooting unit is revealed in the outside of the equipment, i.e. camera pop-up is in equipment;The shooting unit is in
During the second use mode, the shooting unit is hidden in the inside of the equipment.
As shown in figure 3, the application scenarios schematic diagram for camera in the embodiment of the present invention, including:Equipment 301 and camera
302, wherein, the equipment 301 is narrow frame all-in-one machine, due to continuous pursuit of the existing user to product appearance, the system of product
Make technique also constantly improving, narrow frame product is a kind of development trend, still, since narrow frame product is in the width of frame
On limitation, in order not to make camera occupy equipment frame area, concealed pick-up head is usually installed in equipment.
So-called concealed pick-up head is:During using camera, camera pop-up is subjected to image capturing in equipment, not
During using camera, camera is hidden in equipment, closes image capturing function.
Specifically, a groove 303 can be opened up in the top of equipment 301, bottom end or side, camera 302 is then set
In in the groove 303, and it is connected with the lead screw motor inside equipment 201.Pass through the application driven installed in equipment 301
Lead screw motor drives camera linear movement, so as to fulfill camera pop-up or recovery operation.
When user opens application program in equipment 301, and triggers the enabling operation of the image in the application program, institute
Stating equipment 301 can drive layer to detect the driving instruction for enabling and operating for image, when equipment 301 is in the data of driving layer
In when detecting that image enables the driving instruction of operation, intercept the driving instruction, and screw is triggered according to the driving instruction
Motor rotates, camera 302 to be driven to be moved to one end far from equipment 301 so that 302 pop-up device 301 of camera, to obtain
Take image data.It here, can be such as the direction of arrow a meanings in Fig. 3 to one end movement far from equipment 301.
When user triggers the image shutoff operation in the application program, the equipment 301 can be in driving layer detection
To the driving instruction for image shutoff operation, when the drive that image enabling operation is detected in data of the equipment 301 in driving layer
During dynamic instruction, the driving instruction is intercepted, and lead screw motor rotation is triggered according to the driving instruction, to drive camera 302
It is moved to close to one end of equipment 301 so that camera 302 withdraws equipment 301, and function is obtained to close image data.Here,
It can be such as the direction of arrow b meanings in Fig. 3 to one end movement close to equipment 301.
In this way, the embodiment of the present invention is opened and closed by application triggers camera, without Manual press camera
Switch the opening and closing of camera can be realized, the service life of camera can not only be extended, and also simplify use
Family uses the step of troublesome operation of camera, substantially increases the usage experience of user.
Fig. 4 is the structure composition schematic diagram one of control device in the embodiment of the present invention, as shown in figure 4, the equipment includes:
Generation unit 401, transmitting element 402, motion 403 and shooting unit 404;
Wherein, the generation unit 401, for detect image enable operation when, generate pop instruction;
The transmitting element 402 for sending the pop instruction to the motion 403, makes the motion
403 with the first motion, and the shooting unit 404 is driven to be moved to the first direction of the equipment so that described
Shooting unit 404 can obtain image data.
In the embodiment of the present invention, the generation unit 401, when being additionally operable to detect image shutoff operation, generation, which is withdrawn, to be referred to
It enables;
The transmitting element 402 is additionally operable to send the withdrawal instruction to the motion 403, makes the fitness machine
Structure 403 drives the shooting unit 404 to be moved to the second direction of the equipment with the second motion so that institute
It states shooting unit 404 and closes image capturing function.
In the embodiment of the present invention, the equipment further includes:Start unit (not shown), for starting application program, with
It triggers the image and enables operation.
In the embodiment of the present invention, the equipment further includes:Interception unit (not shown), for detecting the number of driving layer
According to when, in the data interception for the image enable operation driving instruction;
The generation unit 401 enables operation, generation pop-up specifically for triggering the image according to the driving instruction
Instruction.
In the embodiment of the present invention, the generation unit 401 is additionally operable to detect that generation first stops referring to when stopping operation
It enables;
The transmitting element 402 is additionally operable to send first halt instruction to the motion 403, makes the fortune
Motivation structure 403 performs first halt instruction and stop motion.
In the embodiment of the present invention, the equipment further includes:Detection unit (not shown), for detecting the shooting unit
Current shift position generates testing result;
The generation unit 401 is additionally operable to be currently located at first limit when the testing result characterizes the shooting unit
When position or the second extreme position, the second halt instruction is generated;
The transmitting element 402 is additionally operable to send the second halt instruction to the motion, holds the motion
Row second halt instruction and stop motion.
In the embodiment of the present invention, the detection unit is located at the first extreme position in the shooting unit 404 and detects
During the image shutoff operation, trigger the transmitting element 402 and send the withdrawal instruction to the motion, make the fortune
Motivation structure is with second motion;
The detection unit when the shooting unit is located at the second extreme position and detects that the image enables operation,
It triggers the transmitting element 402 and sends the pop instruction to the motion, make the motion with the described first fortune
Flowing mode moves;
The detection unit is located at first extreme position in the shooting unit and detects the image and enable behaviour
Make or when the shooting unit is located at the second extreme position and detects the image shutoff operation, trigger the generation
Unit 401 generates third halt instruction, and triggers the transmitting element 402 and refer to the motion transmission third stopping
It enables, the motion is made to keep current halted state.
In the embodiment of the present invention, when the shooting unit 404 is located at the first extreme position, the shooting unit 404 is in
First uses mode;
The shooting unit 404 is located at the second extreme position, and the shooting unit 404 is in second and uses mode;
When the shooting unit 404 is in first using mode, the shooting unit 404 is revealed in the outer of the equipment
Side;
When the shooting unit 404 is in second using mode, the shooting unit 404 is hidden in the interior of the equipment
Portion.
For example, the application program installed in a device is QQ, since QQ using DirectShow handles multimedia technology,
Therefore, by taking QQ as an example, open equipment on camera the step of it is as follows:
1st, video enumerator interface is obtained by the api interface of DShow;
2nd, lead to this video enumerator interface to obtain the source filter interfaces of video equipment;
3rd, graph interfaces are obtained by the api interface of DShow;
4th, video render filter interfaces are obtained by graph interfaces;
5th, source filter interfaces and render filter interfaces are connected by the api interface of DShow, in
Between system may intelligently add additional transform filter interfaces.
6th, the API of graph interfaces is called to carry out preview, at this moment camera is just truly opened.
By taking QQ as an example, close camera the step of it is as follows:
1st, the API of graph interfaces is called to carry out stop, that is, camera is made first to stop preview;
2nd, the API of graph interfaces is called to disconnect each filter;
3rd, each interface of graph is discharged, at this moment camera just closing truly.
The technical solution provided through the embodiment of the present invention drives camera bullet using application program controlling lead screw motor
Go out and withdraw in equipment, it is achieved thereby that when user use camera when control camera automatic spring, without during camera from
Dynamic close simultaneously withdraws camera, substantially increases the usage experience of user, at the same also extend camera service life and
Reduce the troublesome operation of user's mechanical manipulation camera.
It should be noted that:Above-described embodiment provide control device carry out camera open or close when, only more than
The division progress of each program module is stated for example, in practical application, can as needed be distributed above-mentioned processing by difference
Program module complete, i.e., the internal structure of control device is divided into different program modules, it is described above complete to complete
Portion or part are handled.In addition, control device and both the control method embodiment of equipment that above-described embodiment provides belong to same
One design, specific implementation process refer to embodiment of the method, and which is not described herein again.
Fig. 5 is the structure composition schematic diagram two of control device in the embodiment of the present invention;As shown in figure 5, the control device
500 can be mobile phone, computer, digital broadcast terminal, information transceiving equipment, game console, tablet device, a number
Word assistant, Information Push Server, content server, authentication server etc..Control device 500 shown in fig. 5 includes:Extremely
A few processor 501, memory 502, at least one network interface 504 and user interface 503.It is each in control device 500
A component is coupled by bus system 505.It is understood that bus system 505 is used to implement the connection between these components
Communication.Bus system 505 further includes power bus, controlling bus and status signal bus in addition in addition to including data/address bus.But
For the sake of clear explanation, various buses are all designated as bus system 505 in Figure 5.
Wherein, user interface 503 can include display, keyboard, mouse, trace ball, click wheel, button, button, sense of touch
Plate or touch screen etc..
It is appreciated that memory 502 can be volatile memory or nonvolatile memory, may also comprise volatibility and
Both nonvolatile memories.Wherein, nonvolatile memory can be read-only memory (ROM, Read Only Memory),
Programmable read only memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM
(EPROM, Erasable Programmable Read-Only Memory), electrically erasable programmable read-only memory
(EEPROM, Electrical ly Erasable Programmable Read-Only Memory), magnetic random access are deposited
Reservoir (FRAM, ferromagnet ic random access memory), flash memory (Flash Memory), magnetic table
Face memory, CD or CD-ROM (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can
To be magnetic disk storage or magnetic tape storage.Volatile memory can be random access memory (RAM, Random Access
Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms can be used, such as
Static RAM (SRAM, Stat ic Random Access Memory), synchronous static RAM
(SSRAM, Synchronous Stat ic Random Access Memory), dynamic random access memory (DRAM,
Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous
Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM,
Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random
Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links
Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus
Random access memory (DRRAM, Direct Rambus Random Access Memory).Description of the embodiment of the present invention is deposited
Reservoir 502 is intended to the including but not limited to memory of these and any other suitable type.
Memory 502 in the embodiment of the present invention is used to store various types of data to support the behaviour of control device 500
Make.The example of these data includes:For any computer program operated on control device 500, such as operating system 5021
With application program 5022;Wherein, operating system 5021 includes various system programs, such as ccf layer, core library layer, driving layer
Deng being used to implement various basic businesses and the hardware based task of processing.Application program 5022 can include various using journey
Sequence, such as media player (Media Player), browser (Browser) etc., are used to implement various applied business.Realize this
The program of inventive embodiments method may be embodied in application program 5022.
The method that the embodiments of the present invention disclose can be applied to realize in processor 501 or by processor 501.
Processor 501 may be a kind of IC chip, have the processing capacity of signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing
Device 501 can be general processor, digital signal processor (DSP, Digital Signal Processor) or other can
Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 501 can be realized or be held
Disclosed each method, step and logic diagram in the row embodiment of the present invention.General processor can be microprocessor or appoint
What conventional processor etc..It the step of method with reference to disclosed in the embodiment of the present invention, can be embodied directly at hardware decoding
Reason device performs completion or performs completion with the hardware in decoding processor and software module combination.Software module can be located at
In storage medium, which is located at memory 502, and processor 501 reads the information in memory 502, with reference to its hardware
The step of completing preceding method.
In the exemplary embodiment, control device 500 can by one or more application application-specific integrated circuit (ASIC,
Appl icat ion Specific Integrated Circuit), DSP, programmable logic device (PLD,
Programmable Logic Device), Complex Programmable Logic Devices (CPLD, Complex Programmable Logic
Device), field programmable gate array (FPGA, Field-Programmable Gate Array), general processor, control
Device, microcontroller (MCU, Micro Control ler Uni t), microprocessor (Microprocessor) or other electronics
Element is realized, for performing preceding method.
When the specific processor 501 runs the computer program, perform:When detecting that image enables operation, generation
Pop instruction;
Motion into the equipment sends the pop instruction, and the motion is made to be transported with the first motion mode
It is dynamic, and the shooting unit in the equipment is driven to be moved to the first direction of the equipment so that the shooting unit can obtain
Take image data.
When the processor 501 runs the computer program, also perform:When detecting image shutoff operation, generation is received
It refers to enable;
Described withdraw is sent to the motion to instruct, and makes the motion with the second motion, and drive
It moves the shooting unit to move to the second direction of the equipment so that the shooting unit closes image capturing function.
When the processor 501 runs the computer program, also perform:Start application program, to trigger the image
Enable operation.
When the processor 501 runs the computer program, also perform:When detecting the data of driving layer, described
Interception enables the driving instruction of operation for the image in data;
The image is triggered according to the driving instruction and enables operation, generates pop instruction.
When the processor 501 runs the computer program, also perform:Detect that generation first stops when stopping operation
Only instruct;
First halt instruction is sent to the motion, the motion is made to perform first halt instruction
And stop motion.
When the processor 501 runs the computer program, also perform:Detect the current mobile position of the shooting unit
It puts, generates testing result;
It is raw when the testing result, which characterizes the shooting unit, is currently located at the first extreme position or the second extreme position
Into the second halt instruction;
The second halt instruction is sent to the motion, the motion is made to perform second halt instruction and stop
Only move.
When the processor 501 runs the computer program, also perform:The shooting unit is located at the first extreme position
And when detecting the image shutoff operation, sending described withdraw to the motion instructs, and makes the motion with institute
State the second motion;
When the shooting unit is located at the second extreme position and detects that the image enables operation, to the motion
The pop instruction is sent, makes the motion with first motion;
The shooting unit is located at first extreme position and detects the image and enable operation or the shooting
When unit is located at the second extreme position and detects the image shutoff operation, third halt instruction is generated, to the fitness machine
Structure sends the third halt instruction, and the motion is made to keep current halted state.
When the processor 501 runs the computer program, also perform:The shooting unit is located at the first extreme position
When, the shooting unit is in first and uses mode;
The shooting unit is located at the second extreme position, and the shooting unit is in second and uses mode;
When the shooting unit is in first using mode, the shooting unit is revealed in the outside of the equipment;
When the shooting unit is in second using mode, the shooting unit is hidden in the inside of the equipment.
In the exemplary embodiment, the embodiment of the present invention additionally provides a kind of computer readable storage medium, such as including
The memory 502 of computer program, above computer program can be performed by the processor 501 of control device 500, aforementioned to complete
Step described in method.Computer readable storage medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory,
The memories such as magnetic surface storage, CD or CD-ROM;Can also include one of above-mentioned memory or arbitrarily combine various
Equipment, such as mobile phone, computer, tablet device, personal digital assistant.
A kind of computer readable storage medium, is stored thereon with computer program, which is run by processor
When, it performs:When detecting that image enables operation, pop instruction is generated;
Motion into the equipment sends the pop instruction, and the motion is made to be transported with the first motion mode
It is dynamic, and the shooting unit in the equipment is driven to be moved to the first direction of the equipment so that the shooting unit can obtain
Take image data.
When the computer program is run by processor, also perform:When detecting image shutoff operation, instruction is withdrawn in generation;
Described withdraw is sent to the motion to instruct, and makes the motion with the second motion, and drive
It moves the shooting unit to move to the second direction of the equipment so that the shooting unit closes image capturing function.
When the computer program is run by processor, also perform:Start application program, behaviour is enabled to trigger the image
Make.
When the computer program is run by processor, also perform:When detecting the data of driving layer, cut in the data
Take the driving instruction that operation is enabled for the image;
The image is triggered according to the driving instruction and enables operation, generates pop instruction.
When the computer program is run by processor, also perform:It detects when stopping operation, generates the first halt instruction;
First halt instruction is sent to the motion, the motion is made to perform first halt instruction
And stop motion.
When the computer program is run by processor, also perform:The current shift position of the shooting unit is detected, is generated
Testing result;
It is raw when the testing result, which characterizes the shooting unit, is currently located at the first extreme position or the second extreme position
Into the second halt instruction;
The second halt instruction is sent to the motion, the motion is made to perform second halt instruction and stop
Only move.
When the computer program is run by processor, also perform:The shooting unit is located at the first extreme position and detects
During to the image shutoff operation, send described withdraw to the motion and instruct, make the motion with described second
Motion;
When the shooting unit is located at the second extreme position and detects that the image enables operation, to the motion
The pop instruction is sent, makes the motion with first motion;
The shooting unit is located at first extreme position and detects the image and enable operation or the shooting
When unit is located at the second extreme position and detects the image shutoff operation, third halt instruction is generated, to the fitness machine
Structure sends the third halt instruction, and the motion is made to keep current halted state.
When the computer program is run by processor, also perform:It is described when the shooting unit is located at the first extreme position
Shooting unit is in first and uses mode;
The shooting unit is located at the second extreme position, and the shooting unit is in second and uses mode;
When the shooting unit is in first using mode, the shooting unit is revealed in the outside of the equipment;
When the shooting unit is in second using mode, the shooting unit is hidden in the inside of the equipment.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (11)
1. a kind of control method of equipment, the method includes:
When detecting that image enables operation, pop instruction is generated;
Motion into the equipment sends the pop instruction, makes the motion with the first motion,
And the shooting unit in the equipment is driven to be moved to the first direction of the equipment so that the shooting unit can obtain shadow
As data.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
When detecting image shutoff operation, instruction is withdrawn in generation;
Described withdraw is sent to the motion to instruct, and makes the motion with the second motion, and drive institute
It states shooting unit to move to the second direction of the equipment so that the shooting unit closes image capturing function.
3. according to the method described in claim 1, it is characterized in that, it is described detect image enable operation before, the side
Method further includes:
Start application program, operation is enabled to trigger the image.
4. according to the method described in claim 1, it is characterized in that, it is described detect image enable operation, including:
When detecting the data of driving layer, interception is for the driving instruction of image enabling operation in the data;
The image is triggered according to the driving instruction and enables operation, generates pop instruction.
5. according to the method described in described claims 1 or 2, which is characterized in that sent in the motion into the equipment
After the pop instruction or the withdrawal instruction, the method further includes:
It detects when stopping operation, generates the first halt instruction;
First halt instruction is sent to the motion, the motion is made to perform first halt instruction and stop
Only move.
6. method according to claim 1 or 2, which is characterized in that sending the pop instruction to the motion
Or after the withdrawal instruction, the method further includes:
The current shift position of the shooting unit is detected, generates testing result;
When the testing result, which characterizes the shooting unit, is currently located at the first extreme position or the second extreme position, generation the
Two halt instructions;
The second halt instruction is sent to the motion, the motion is made to perform second halt instruction and stop transporting
It is dynamic.
7. according to the method described in claim 6, it is characterized in that, sending second halt instruction to the motion
Later, the method further includes:
When the shooting unit is located at the first extreme position and detects the image shutoff operation, sent to the motion
It is described to withdraw instruction, make the motion with second motion;
When the shooting unit is located at the second extreme position and detects that the image enables operation, sent to the motion
The pop instruction makes the motion with first motion;
The shooting unit is located at first extreme position and detects the image and enable operation or the shooting unit
When detecting the image shutoff operation positioned at the second extreme position, third halt instruction is generated, is sent out to the motion
The third halt instruction is sent, the motion is made to keep current halted state.
8. according to the method described in claim 6, it is characterized in that, the method further includes:
When the shooting unit is located at the first extreme position, the shooting unit is in first and uses mode;
The shooting unit is located at the second extreme position, and the shooting unit is in second and uses mode;
When the shooting unit is in first using mode, the shooting unit is revealed in the outside of the equipment;
When the shooting unit is in second using mode, the shooting unit is hidden in the inside of the equipment.
9. a kind of control device, the equipment includes:Generation unit, transmitting element, shooting unit and motion;
Wherein, the generation unit, for detect image enable operation when, generate pop instruction;
The transmitting element for sending the pop instruction to the motion, makes the motion with the first movement
Mode moves, and the shooting unit is driven to be moved to the first direction of the equipment so that the shooting unit can obtain
Image data.
10. a kind of control device, the equipment includes:Memory, processor and it is stored in what memory was moved by processor
Executable program, which is characterized in that the processor is performed when running the executable program such as any one of claim 1 to 8
The step of described control method.
11. a kind of storage medium, is stored thereon with executable program, which is characterized in that the executable code processor is held
It is realized during row such as the step of claim 1 to 8 any one of them control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711392972.XA CN108134900A (en) | 2017-12-21 | 2017-12-21 | A kind of control method of equipment, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711392972.XA CN108134900A (en) | 2017-12-21 | 2017-12-21 | A kind of control method of equipment, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108134900A true CN108134900A (en) | 2018-06-08 |
Family
ID=62392113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711392972.XA Pending CN108134900A (en) | 2017-12-21 | 2017-12-21 | A kind of control method of equipment, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108134900A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3754967A1 (en) * | 2019-06-17 | 2020-12-23 | Beijing Xiaomi Mobile Software Co., Ltd. | Method and device for controlling front camera, and mobile terminal |
WO2021036839A1 (en) * | 2019-08-30 | 2021-03-04 | 华为技术有限公司 | Camera control method and apparatus, and terminal device |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040075736A1 (en) * | 2002-10-17 | 2004-04-22 | Fumio Yuasa | Elevator device for television camera |
CN2870332Y (en) * | 2005-12-29 | 2007-02-14 | 英业达股份有限公司 | Concealed camera shooting apparatus |
CN201054660Y (en) * | 2007-02-15 | 2008-04-30 | 联想(北京)有限公司 | Camera device |
CN102905073A (en) * | 2012-09-28 | 2013-01-30 | 歌尔声学股份有限公司 | Control device of television camera |
CN102955479A (en) * | 2012-10-25 | 2013-03-06 | 歌尔声学股份有限公司 | Running control device for television camera |
CN103442188A (en) * | 2013-08-30 | 2013-12-11 | 康佳集团股份有限公司 | Television with camera |
EP2683159A2 (en) * | 2012-07-06 | 2014-01-08 | Samsung Electronics Co., Ltd | Display apparatus and control method thereof |
CN103546687A (en) * | 2013-07-31 | 2014-01-29 | Tcl数码科技(深圳)有限责任公司 | Vertically scalable camera and electronic device |
CN203466899U (en) * | 2013-09-18 | 2014-03-05 | 潍坊歌尔电子有限公司 | Non-contact apparatus for controlling turning on and off of television camera |
CN204231496U (en) * | 2014-08-13 | 2015-03-25 | 广州创维平面显示科技有限公司 | Telescopic pick-up head and there is its display unit |
CN106506931A (en) * | 2015-09-07 | 2017-03-15 | 富泰华工业(深圳)有限公司 | Electronic installation and its camera control method and system |
CN107343064A (en) * | 2017-06-27 | 2017-11-10 | 努比亚技术有限公司 | A kind of mobile terminal of two-freedom rotating camera |
-
2017
- 2017-12-21 CN CN201711392972.XA patent/CN108134900A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040075736A1 (en) * | 2002-10-17 | 2004-04-22 | Fumio Yuasa | Elevator device for television camera |
CN2870332Y (en) * | 2005-12-29 | 2007-02-14 | 英业达股份有限公司 | Concealed camera shooting apparatus |
CN201054660Y (en) * | 2007-02-15 | 2008-04-30 | 联想(北京)有限公司 | Camera device |
EP2683159A2 (en) * | 2012-07-06 | 2014-01-08 | Samsung Electronics Co., Ltd | Display apparatus and control method thereof |
CN102905073A (en) * | 2012-09-28 | 2013-01-30 | 歌尔声学股份有限公司 | Control device of television camera |
CN102955479A (en) * | 2012-10-25 | 2013-03-06 | 歌尔声学股份有限公司 | Running control device for television camera |
CN103546687A (en) * | 2013-07-31 | 2014-01-29 | Tcl数码科技(深圳)有限责任公司 | Vertically scalable camera and electronic device |
CN103442188A (en) * | 2013-08-30 | 2013-12-11 | 康佳集团股份有限公司 | Television with camera |
CN203466899U (en) * | 2013-09-18 | 2014-03-05 | 潍坊歌尔电子有限公司 | Non-contact apparatus for controlling turning on and off of television camera |
CN204231496U (en) * | 2014-08-13 | 2015-03-25 | 广州创维平面显示科技有限公司 | Telescopic pick-up head and there is its display unit |
CN106506931A (en) * | 2015-09-07 | 2017-03-15 | 富泰华工业(深圳)有限公司 | Electronic installation and its camera control method and system |
CN107343064A (en) * | 2017-06-27 | 2017-11-10 | 努比亚技术有限公司 | A kind of mobile terminal of two-freedom rotating camera |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3754967A1 (en) * | 2019-06-17 | 2020-12-23 | Beijing Xiaomi Mobile Software Co., Ltd. | Method and device for controlling front camera, and mobile terminal |
US11064130B2 (en) | 2019-06-17 | 2021-07-13 | Beijing Xiaomi Mobile Software Co., Ltd. | Method and device for controlling front camera, mobile terminal and storage medium |
WO2021036839A1 (en) * | 2019-08-30 | 2021-03-04 | 华为技术有限公司 | Camera control method and apparatus, and terminal device |
CN112449088A (en) * | 2019-08-30 | 2021-03-05 | 华为技术有限公司 | Camera control method and device and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9703637B2 (en) | Undo system | |
US9317147B2 (en) | Input testing tool | |
CN104349044B (en) | The image pickup method and electronic equipment of panoramic picture | |
US9606708B2 (en) | User intent during object scrolling | |
CN106780685B (en) | A kind of generation method and terminal of dynamic picture | |
CN108134900A (en) | A kind of control method of equipment, equipment and storage medium | |
CN105959544B (en) | A kind of image processing method and mobile terminal of mobile terminal | |
CN106993214A (en) | Live network broadcast method and device | |
CN107395997A (en) | A kind of image pickup method and mobile terminal | |
CN105847636B (en) | A kind of video capture method and mobile terminal | |
CN110113455A (en) | Position detecting mechanism, mobile terminal and method for detecting position | |
CN109195010A (en) | Code rate adjusting method and device | |
CN218162566U (en) | Image capturing apparatus | |
CN106101597A (en) | The image pickup method of a kind of video that fixes and mobile terminal | |
CN107454269A (en) | A kind of image pickup method and mobile terminal | |
CN109302636A (en) | The method and device of data object panorama sketch information is provided | |
CN105049766B (en) | A kind of tracking kinescope method and terminal based on rotating camera | |
US11409434B2 (en) | Image collection and processing method, apparatus, and storage medium | |
CN103019546A (en) | Method and system for projecting slide and demonstration device | |
CN107707985A (en) | A kind of barrage control method, mobile terminal and server | |
CN107465875A (en) | Camera preview data cache method and device | |
CN105549852B (en) | A kind of spinning solution and device of picture | |
CN106303294A (en) | A kind of method for processing video frequency and mobile terminal | |
CN101166232A (en) | Method for eliminating motor sound | |
CN104731935A (en) | Method and system for conducting controlling according to mouse input |
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: 20180608 |