CN103257939B - A kind of obtain the method for image, device and equipment - Google Patents
A kind of obtain the method for image, device and equipment Download PDFInfo
- Publication number
- CN103257939B CN103257939B CN201310113160.2A CN201310113160A CN103257939B CN 103257939 B CN103257939 B CN 103257939B CN 201310113160 A CN201310113160 A CN 201310113160A CN 103257939 B CN103257939 B CN 103257939B
- Authority
- CN
- China
- Prior art keywords
- camera
- occupying
- application
- view
- application occupying
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000001514 detection method Methods 0.000 claims abstract description 4
- 238000009432 framing Methods 0.000 claims description 42
- 230000001960 triggered effect Effects 0.000 claims description 27
- 238000011084 recovery Methods 0.000 claims description 12
- 230000009897 systematic effect Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 230000009471 action Effects 0.000 description 3
- 230000005611 electricity Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- User Interface Of Digital Computer (AREA)
- Studio Devices (AREA)
Abstract
Embodiments providing a kind of method obtaining image, device and equipment, wherein, described method includes: detection takies whether the application of photographic head enters backstage;When the described application taking photographic head enters backstage, closing interface of finding a view, described photographic head is taken by the application taking photographic head described in holding, in order to described in take the application of photographic head and obtain the resource of described photographic head acquisition.The embodiment of the present invention ensure that the multitask running ability of smart machine, saves electric energy and improves systematic function, protecting privacy of user, strengthen recreational.
Description
Technical Field
The embodiment of the invention relates to the technical field, in particular to a method for acquiring an image, a device for acquiring the image and equipment.
Background
With the development of camera technology, cameras have been made finer and finer, and the shooting effect is better and better. At present, most mobile terminals, especially intelligent mobile terminals, are integrated with high-pixel cameras, and can provide functions of photographing, shooting and the like for users. On the terminal with camera and display screen, after the user opens the function of shooing or making a video recording, all can open the real-time frame of finding a view picture to the image that the present camera of suggestion user obtained.
However, in the conventional application interacting with the camera, on the assumption that the user can take or record a picture conveniently, the user can take or record a picture only when the live-view picture is displayed. However, such assumptions have the following disadvantages:
1. when the application is switched to the background, due to the shielding of other foreground applications, the live-view picture cannot be seen by the user, and at this time, the application can prohibit the function of taking pictures or recording videos, so that the automatic taking pictures or recording videos at the background cannot be realized.
2. When a live-view picture is displayed, the application needs to continuously perform operations of view finding, decoding and displaying, which results in an increase in the occupancy rate of system resources such as a Central Processing Unit (CPU), and the like, thereby affecting the overall operation performance and power consumption of the system.
Disclosure of Invention
The embodiment of the invention provides a method for acquiring an image, which can ensure the multitask operation capability of intelligent equipment, save electric energy, improve the system performance, protect the privacy of a user and enhance the entertainment.
Correspondingly, the embodiment of the invention also provides a device for acquiring the image and equipment for ensuring the realization and the application of the method.
In order to solve the above problem, an embodiment of the present invention discloses a method for acquiring an image, including:
detecting whether an application occupying a camera enters a background or not;
and when the application occupying the camera enters the background, closing a viewing interface, and keeping the occupation of the application occupying the camera on the camera so as to facilitate the application occupying the camera to acquire the resources acquired by the camera.
Preferably, before detecting whether the application occupying the camera enters the background, the method further includes:
detecting that an application occupying the camera is triggered;
and when the application occupying the camera is triggered, starting the camera, establishing a view-finding interface, acquiring the resources acquired by the camera, and outputting the resources through the view-finding interface.
Preferably, when the application occupying the camera enters the background, the viewing interface is closed, and the camera is kept occupied by the application occupying the camera, in the following manner:
and when the application occupying the camera enters the background and the non-view interface mode is started, closing the view interface and keeping the camera occupied by the application occupying the camera.
Preferably, the viewfinder-less interface mode is started by the following steps:
when the application occupying the camera enters a background, judging whether a preset operation of a user is received, wherein the preset operation is used for starting the non-view-finding page mode;
or,
and automatically starting the non-view-finding page mode when the application occupying the camera is started.
Preferably, the method further comprises:
and when the application occupying the camera enters the background and the non-view interface mode is not started, releasing the camera.
Preferably, after the step of releasing the camera, the method further includes:
judging whether the application occupying the camera is restored to the foreground operation, if so, starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera, and outputting the resources through the viewing interface; and if the operation is not recovered to the foreground, repeatedly judging whether the application occupying the camera is recovered to the foreground for operation.
Preferably, after the step of triggering other applications occupying the camera, and after the step of completing the preset framing operation, the method further comprises:
and judging whether the camera needs to be released or not, if so, releasing the camera, and if not, keeping the occupation of the application occupying the camera on the camera.
Preferably, the step of determining whether the camera needs to be released includes:
when other applications occupying the camera are triggered, if the priority of other started applications occupying the camera is higher than that of the current applications occupying the camera, the camera is judged to need to be released; if the priority of other started applications occupying the camera is lower than that of the current application occupying the camera, judging that the camera does not need to be released;
or when the preset framing operation is finished, if the non-framing interface mode is finished, determining that the camera needs to be released; and if the started non-view interface mode is kept, judging that the camera does not need to be released.
Preferably, after the step of keeping the camera occupied by the application of the occupancy camera, the method further includes:
judging whether to execute framing operation;
if the framing operation is executed, the image acquired by the camera is saved;
and if the framing operation is not executed, judging whether the application occupying the camera is switched to a background to run.
The embodiment of the invention also discloses a device for acquiring the image, which comprises:
the background detection module is used for detecting whether the application occupying the camera enters a background or not;
and the camera occupation module is used for closing the view finding interface when the application occupying the camera enters the background, and keeping the occupation of the application occupying the camera on the camera so as to facilitate the application occupying the camera to acquire the resources acquired by the camera.
Preferably, the apparatus further comprises:
the application triggering module is used for detecting that the application occupying the camera is triggered;
and the application starting module is used for starting the camera when the application occupying the camera is triggered, establishing a view-finding interface, acquiring the resources acquired by the camera and outputting the resources through the view-finding interface.
Preferably, the camera occupation module comprises:
and the non-view interface mode starting submodule is used for closing the view interface and keeping the camera occupation of the camera occupation application when the camera occupation application enters the background and the non-view interface mode is started.
Preferably, the viewfinder-less interface mode start submodule includes:
a preset operation judging unit, configured to judge whether a preset operation of a user is received when the application occupying the camera enters a background, where the preset operation is used to start the non-view-finding page mode;
and the automatic starting unit is used for automatically starting the non-view-finding page mode when the application occupying the camera is started.
Preferably, the apparatus further comprises:
and releasing the camera module, wherein the camera module is used for releasing the camera when the application occupying the camera enters the background but the non-view interface mode is not started.
Preferably, the apparatus further comprises:
the foreground operation recovery judging module is used for judging whether the application occupying the camera is recovered to the foreground operation;
the foreground operation recovery module is used for starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera and outputting the resources through the viewing interface when the foreground operation is recovered;
and the foreground operation non-recovery module is used for repeatedly judging whether the application occupying the camera is recovered to the foreground operation or not when the foreground operation is not recovered.
Preferably, the apparatus further comprises:
the camera release judging module is used for judging whether the camera needs to be released or not;
the camera releasing module is used for releasing the camera when the camera needs to be released;
and the camera holding module is used for holding the occupation of the camera by the application occupying the camera when the camera does not need to be released.
Preferably, the camera release determination module includes:
the first judgment submodule is used for judging that the camera needs to be released if the priority of other started applications occupying the camera is higher than that of the current applications occupying the camera when the other applications occupying the camera are triggered; if the priority of other started applications occupying the camera is lower than that of the current application occupying the camera, judging that the camera does not need to be released;
the second judgment submodule is used for judging that the camera needs to be released if the non-view interface mode is ended when the preset view finding operation is finished; and if the started non-view interface mode is kept, judging that the camera does not need to be released.
Preferably, the apparatus further comprises:
a framing operation judgment module for judging whether to execute framing operation;
the image saving module is used for saving the image acquired by the camera when executing framing operation;
and the background operation switching module is used for judging whether to switch the application occupying the camera to the background operation when the framing operation is not executed.
The embodiment of the invention also discloses equipment, which comprises:
one or more processors;
a memory; and
one or more modules stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have functionality to:
detecting whether an application occupying a camera enters a background or not;
and when the application occupying the camera enters the background, closing a viewing interface, and keeping the occupation of the application occupying the camera on the camera so as to facilitate the application occupying the camera to acquire the resources acquired by the camera.
Compared with the background art, the embodiment of the invention has the following advantages:
first, when detecting that an application occupying a camera enters a background, the embodiment of the present invention may close a viewing interface, and keep the camera occupied by the application occupying the camera. In some cases, it is desirable not to display a viewing interface, for example, to allow people around the device to see the device taking or recording a picture during shooting, or to allow people around the device to see the content of the device taking or recording a picture, for example, a camera of the device performs viewing shooting through a small hole in a wall, so that privacy of the user can be protected. In addition, in the process of photographing or video recording, the user cannot see a real-time view-finding picture and cannot predict the final result, and the user can guess the photographing content after the photographing is finished, so that the entertainment is enhanced.
And when the application occupying the camera enters the background, whether the camera is occupied or not can be determined by prompting a user to select or setting to automatically enter a non-view interface mode, and the flexibility is high. The camera can normally acquire images in the no-view page mode, and whether the no-view page mode is continuously operated in the background and started can be selected to determine whether the camera is released or not so as to save electric energy.
Moreover, the traditional camera occupation application cannot take or record pictures any more during background running, but the embodiment of the invention can allow the camera occupation to be kept during the background running, still can take or record pictures, and simultaneously displays other foreground applications on a viewing interface, thereby achieving the purpose of truly utilizing the multitask running capability of the intelligent equipment. In addition, the real-time view-finding picture is closed, so that operations such as decoding, drawing and the like can be reduced, and the system operation requirement is reduced, thereby achieving the purposes of saving electricity and improving the system performance.
Drawings
FIG. 1 is a flow chart illustrating the steps of embodiment 1 of a method for acquiring an image according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating the steps of embodiment 2 of a method for acquiring an image according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating the steps of embodiment 3 of a method for acquiring an image according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating the main operation of acquiring an image according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating an embodiment of an apparatus for acquiring an image according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the embodiments of the present invention more comprehensible, embodiments of the present invention are described in detail below with reference to the accompanying drawings and the detailed description.
One of the core ideas of the embodiment of the invention is that when an application occupying the camera is triggered, the camera is started, a viewing interface is established, resources acquired by the camera are acquired and output through the viewing interface, if the application occupying the camera is detected to be switched to enter a background and a mode without the viewing interface is started, the viewing interface can be closed, and the camera is occupied by the application occupying the camera.
Referring to fig. 1, a flowchart illustrating steps of embodiment 1 of a method for acquiring an image according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, detecting whether an application occupying a camera enters a background or not;
in practice, an intelligent device with a camera and a display screen is generally installed with applications occupying the camera, such as taking pictures, recording videos, and the like. The traditional application occupying the camera can disconnect a driving program connected with the camera when running in a background, and the occupation of the camera is finished so that other applications occupying the camera can use the camera.
Step 102, when the application occupying the camera enters the background, closing a view-finding interface, and keeping the camera occupied by the application occupying the camera, so that the application occupying the camera can acquire the resources acquired by the camera.
In specific implementation, when it is detected that the application occupying the camera enters the background, the user may be allowed to select whether to close the real-time viewing interface, and the application occupying the camera is allowed to be put in the background to run in a certain manner, but still may start functions such as photographing or video recording. That is, if the user selects to close the live view interface, the application that occupies the camera may still run in the background, and functions such as taking pictures or recording videos may be started.
According to the embodiment of the invention, when the application occupying the camera enters the background, the view finding interface can be closed, and the camera occupation by the application occupying the camera is kept. Since in some cases it is desirable not to display the viewing interface, for example, people around the device are not allowed to see the device taking or recording pictures during the shooting process, and the content of the device taking or recording pictures is not allowed to be seen, for example, the camera of the device is used for viewing pictures through a small hole in a wall, the privacy of the user can be protected. In addition, in the process of photographing or video recording, the user cannot see a real-time view-finding picture and cannot predict the final result, and the user can guess the photographing content after the photographing is finished, so that the entertainment is enhanced.
Referring to fig. 2, a flowchart illustrating steps of embodiment 2 of a method for acquiring an image according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201, detecting that the application occupying the camera is triggered;
step 202, when the application occupying the camera is triggered, starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera, and outputting the resources through the viewing interface;
in practice, when it is detected that an application occupying the camera is triggered, for example, a photographing or image capturing function is triggered, a driver connected to the camera is connected to start to occupy the camera, and a real-time viewing interface is opened to display and output an image acquired by the camera. In the conventional application of occupying a camera, in consideration of facilitating photographing or recording by a user, photographing or recording can be performed only under the condition of displaying a live view interface.
Step 203, detecting whether the application occupying the camera enters a background or not;
and 204, when the application occupying the camera enters a background, closing a view-finding interface, and keeping the camera occupied by the application occupying the camera so that the application occupying the camera can acquire the resources acquired by the camera.
In a preferred embodiment of the present invention, when the application occupying the camera enters the background, the viewing interface is closed, and the camera is kept occupied by the application occupying the camera, which may adopt the following manner:
and when the application occupying the camera enters the background and the non-view interface mode is started, closing the view interface and keeping the camera occupied by the application occupying the camera.
In the embodiment of the invention, the occupation of the camera can be kept by selecting whether to start the non-view interface mode, wherein in the non-view interface mode, when the application occupying the camera enters the background, the view interface can be closed, and the occupation of the application occupying the camera on the camera is kept.
In a preferred embodiment of the present invention, the viewfinder interface mode can be turned on by:
when the application occupying the camera enters a background, judging whether a preset operation of a user is received, wherein the preset operation is used for starting the non-view-finding page mode;
or,
and automatically starting the non-view-finding page mode when the application occupying the camera is started.
Specifically, when the application occupying the camera enters the background, if a request operation for starting the non-view interface mode by the user is received, the non-view interface mode is started, or it may be preset that the non-view page mode is automatically started when the application occupying the camera enters the background.
In a preferred embodiment of the present invention, after the step 204, the method may further include the steps of:
step S11, determining whether or not a framing operation is performed; if yes, go to step S12; if not, go to step S13;
step S12, if executing the view finding operation, saving the image obtained by the camera;
and step 13, if the framing operation is not executed, determining whether to switch the application occupying the camera to background operation.
Specifically, in the no-view page mode, if a view operation is performed, the image acquired by the camera may be saved, and if the view operation is not performed, whether to continue to operate in the background and to start the no-view page mode may be selected.
In the embodiment of the invention, when the application occupying the camera enters the background, whether the camera is occupied or not can be determined by prompting the user to select or setting to automatically enter the non-view interface mode, and the flexibility is high. The camera can normally acquire images in the no-view page mode, and whether the no-view page mode is continuously operated in the background and started can be selected to determine whether the camera is released or not so as to save electric energy.
Referring to fig. 3, a flowchart illustrating steps of embodiment 3 of a method for acquiring an image according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 301, detecting whether an application occupying a camera enters a background;
in a preferred embodiment of the present invention, the camera may be released when the camera-occupied application enters the background but the viewfinder interface mode is not turned on.
In concrete realization, if the non-view-finding interface mode is not started, when the application occupying the camera enters the background, the camera resource can be released so as to save electric energy, and the camera can be occupied by the subsequent application occupying the camera conveniently.
In a preferred embodiment of the present invention, after the step of releasing the camera, the method may further include the following steps:
judging whether the application occupying the camera is restored to the foreground operation, if so, starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera, and outputting the resources through the viewing interface; and if the operation is not recovered to the foreground, repeatedly judging whether the application occupying the camera is recovered to the foreground for operation.
In the embodiment of the invention, after the camera resource is released, the application occupying the camera is not necessarily closed, at this time, if the user wants to restore the application occupying the camera to the foreground, the occupation of the application occupying the camera on the camera can be restored, and if the application occupying the camera is not restored to the foreground to operate, whether the application occupying the camera is restored to the foreground to operate can be repeatedly judged within a preset time interval, so that the camera can be released in time, and the electric energy is saved.
Specifically, when there is no real-time viewing interface, or the application occupying the camera operates in the background, the photographing or recording function that has been set in advance to be started still operates normally. For example, a time delay of 10 seconds is set to start the photographing, and when the time arrives, the photographing operation is still normally performed. In the absence of live views, some means may be provided to allow the live views to be redisplayed, for example:
1. restarting the program;
2. inputting voice; for example, recognizing speech "show viewfinder;
3. a button on a touch screen;
4. a hardware button on the device is pressed.
Step 302, when the application occupying the camera enters the background, closing a viewing interface, and keeping the camera occupied by the application occupying the camera, so that the application occupying the camera can acquire the resources acquired by the camera.
And 303, judging whether the camera needs to be released or not, if so, releasing the camera, and if not, keeping the occupation of the application occupying the camera on the camera.
In a preferred embodiment of the present invention, the step of determining whether the camera needs to be released includes:
when other applications occupying the camera are triggered, if the priority of other started applications occupying the camera is higher than that of the current applications occupying the camera, the camera is judged to need to be released; if the priority of other started applications occupying the camera is lower than that of the current application occupying the camera, judging that the camera does not need to be released;
or when the preset framing operation is finished, if the non-framing interface mode is finished, determining that the camera needs to be released; and if the started non-view interface mode is kept, judging that the camera does not need to be released.
In a specific implementation, there may be multiple ways to release the camera, for example:
1. exiting the non-view-finding interface mode and enabling the application occupying the camera to run in the background;
the mode of the non-view-finding interface can be set to take a picture at regular time, and the background finishes the occupation of the camera after the shooting is finished
2. And the application occupying the camera provides an 'operation ending' button, and the user completely ends operation after clicking.
When other camera applications are started, the application occupying the camera currently inquires whether a user needs to finish the occupation of the camera, and if so, the user can click to finish the occupation of the camera. Or when other camera applications are started and the priority of using the camera is high, the camera resources are selected to be released, and at this time, the application occupying the camera can still run in the background, and only the camera cannot be used.
In a preferred example of the embodiment of the present invention, the application occupying the camera may be a photographing application, and the step of starting the photographing application may be executed as follows:
1. starting a photographing application;
2. automatically displaying a live view interface, or the user manually turning on the display in some way (menu, touch screen button, etc.);
3. the user can select to close the viewing interface and then can select to go to step 2, step 4 or step 5;
4. the user can switch the program to the background operation, the application keeps the occupation of the camera, and then the step 5 is carried out;
5. if the timing photographing is set, after the timing is finished, the photographing is automatically carried out under the condition that a framing interface is not displayed. After the photographing is finished, if the photographing is not required to be continued (for example, only one piece of photographing is set to be timed, not one piece of photographing is performed at a preset time interval), the camera resource is released.
It should be noted that, when the photographing application is started, the live view interface may be automatically closed, so that the steps 2 and 3 of the above process may be omitted.
In another preferred example of the embodiment of the present invention, the application occupying the camera may be a video recording application, and the step of starting the video recording application may be executed as follows:
1. starting a video application;
2. automatically displaying a live view interface, or the user manually turning on the display in some way (menu, touch screen button, etc.);
3. the user can select to close the viewing interface and then can select to go to the step 2, or the step 4, or the step 5, or the step 6;
4. the user can switch the video application to the background operation, keep the occupation of the camera and then go to the 5 th step or the 6 th step;
5. if the video recording is in the process, the video recording is continued;
6. if the timing video recording is set, the automatic video recording is started automatically under the condition that the framing picture is not displayed after the timing is finished. After the video recording is finished, if the video recording is not required to be continued (for example, the video recording is set to be performed only once at the timing instead of being performed once every timing interval), the camera resources are released.
Description of the drawings: or automatically closing the live view interface when the video recording application is started, so that the steps 2 and 3 of the process can be omitted.
In order to further understand the embodiment of the present invention, the following describes the main operation flow of the present invention for acquiring images by a specific example.
Referring to fig. 4, a main operation flowchart for acquiring an image according to the present invention includes the following steps:
1. the user starts a photographing application;
2. starting a camera;
3. establishing a viewing interface (namely a preview frame), acquiring camera resources and displaying the camera resources on the viewing interface;
4. judging whether to enter a background; if yes, executing the step 5; if not, executing the step 10;
5. judging whether a non-view-finding interface mode is started or not; if yes, executing step 6; if not, executing the step 8;
6. releasing camera resources;
7. judging whether to recover to the foreground; if yes, executing step 2; if not, repeating the step 7;
8. keeping the connection of the camera driving program and continuously occupying the camera;
9. judging whether the camera needs to be released or not; if yes, executing step 6; if not, executing the step 10;
10. judging whether the photographing key is pressed down; if yes, executing step 11; if not, executing the step 4;
11. the photo is saved.
In the embodiment of the invention, the traditional camera occupation application cannot take pictures or record video when running in the background. The invention can allow the application to continuously keep the occupation of the camera when the intelligent device runs in the background, still can take pictures or record videos, and simultaneously displays other foreground applications on the viewing interface, thereby achieving the purpose of really utilizing the multitask running capability of the intelligent device. In addition, the interface of the real-time view finding is closed, operations such as decoding, drawing and the like can be reduced, and the system operation requirement is reduced, so that the purposes of saving electricity and improving the system performance are achieved.
It should be noted that, for simplicity of description, the foregoing method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that acts and modules referred to are not necessarily required to practice embodiments of the invention.
Referring to fig. 5, a block diagram of an embodiment of an apparatus for acquiring an image according to an embodiment of the present invention is shown, and specifically, the apparatus may include the following modules:
a background detection module 401, configured to detect whether an application occupying a camera enters a background;
in a preferred embodiment of the present invention, the apparatus may further include the following modules:
the application triggering module is used for detecting that the application occupying the camera is triggered;
and the application starting module is used for starting the camera when the application occupying the camera is triggered, establishing a view-finding interface, acquiring the resources acquired by the camera and outputting the resources through the view-finding interface.
The camera occupation module 402 is configured to close a viewing interface when the application occupying the camera enters the background, and keep the application occupying the camera, so that the application occupying the camera acquires resources acquired by the camera.
In a preferred embodiment of the present invention, the camera occupancy module 402 may include the following sub-modules:
and the non-view interface mode starting submodule is used for closing the view interface and keeping the camera occupation of the camera occupation application when the camera occupation application enters the background and the non-view interface mode is started.
In a preferred embodiment of the present invention, the viewfinder interface-free mode start submodule may include the following units:
a preset operation judging unit, configured to judge whether a preset operation of a user is received when the application occupying the camera enters a background, where the preset operation is used to start the non-view-finding page mode;
and the automatic starting unit is used for automatically starting the non-view-finding page mode when the application occupying the camera is started.
In a preferred embodiment of the present invention, the apparatus may further include the following modules:
and releasing the camera module, wherein the camera module is used for releasing the camera when the application occupying the camera enters the background but the non-view interface mode is not started.
In a preferred embodiment of the present invention, the apparatus may further include the following modules:
the foreground operation recovery judging module is used for judging whether the application occupying the camera is recovered to the foreground operation;
the foreground operation recovery module is used for starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera and outputting the resources through the viewing interface when the foreground operation is recovered;
and the foreground operation non-recovery module is used for repeatedly judging whether the application occupying the camera is recovered to the foreground operation or not when the foreground operation is not recovered.
In a preferred embodiment of the present invention, the apparatus may further include the following modules:
the camera release judging module is used for judging whether the camera needs to be released or not;
the camera releasing module is used for releasing the camera when the camera needs to be released;
and the camera holding module is used for holding the occupation of the camera by the application occupying the camera when the camera does not need to be released.
In a preferred embodiment of the present invention, the camera release determination module may further include the following sub-modules:
the first judgment submodule is used for judging that the camera needs to be released if the priority of other started applications occupying the camera is higher than that of the current applications occupying the camera when the other applications occupying the camera are triggered; if the priority of other started applications occupying the camera is lower than that of the current application occupying the camera, judging that the camera does not need to be released;
the second judgment submodule is used for judging that the camera needs to be released if the non-view interface mode is ended when the preset view finding operation is finished; and if the started non-view interface mode is kept, judging that the camera does not need to be released.
In a preferred embodiment of the present invention, the apparatus may further include the following modules:
a framing operation judgment module for judging whether to execute framing operation;
the image saving module is used for saving the image acquired by the camera when executing framing operation;
and the background operation switching module is used for judging whether to switch the application occupying the camera to the background operation when the framing operation is not executed.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiment of the invention also discloses a device comprising:
one or more processors;
a memory; and
one or more modules stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have functionality to:
detecting whether an application occupying a camera enters a background or not;
and when the application occupying the camera enters the background, closing a viewing interface, and keeping the occupation of the application occupying the camera on the camera so as to facilitate the application occupying the camera to acquire the resources acquired by the camera.
Preferably, the one or more modules further have the following functions:
detecting that an application occupying the camera is triggered;
and when the application occupying the camera is triggered, starting the camera, establishing a view-finding interface, acquiring the resources acquired by the camera, and outputting the resources through the view-finding interface.
Preferably, when the application occupying the camera enters the background, the viewing interface is closed, and the camera is kept occupied by the application occupying the camera, in the following manner:
and when the application occupying the camera enters the background and the non-view interface mode is started, closing the view interface and keeping the camera occupied by the application occupying the camera.
Preferably, the viewfinder-less interface mode is started by the following steps:
when the application occupying the camera enters a background, judging whether a preset operation of a user is received, wherein the preset operation is used for starting the non-view-finding page mode;
or,
and automatically starting the non-view-finding page mode when the application occupying the camera is started.
Preferably, the one or more modules further have the following functions:
and when the application occupying the camera enters the background and the non-view interface mode is not started, releasing the camera.
Preferably, after the step of releasing the camera, the one or more modules further have the following functions:
judging whether the application occupying the camera is restored to the foreground operation, if so, starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera, and outputting the resources through the viewing interface; and if the operation is not recovered to the foreground, repeatedly judging whether the application occupying the camera is recovered to the foreground for operation.
Preferably, after the step of triggering other applications occupying the camera and after the step of completing the preset framing operation, the one or more modules further have the following functions:
and judging whether the camera needs to be released or not, if so, releasing the camera, and if not, keeping the occupation of the application occupying the camera on the camera.
Preferably, the step of determining whether the camera needs to be released includes:
when other applications occupying the camera are triggered, if the priority of other started applications occupying the camera is higher than that of the current applications occupying the camera, the camera is judged to need to be released; if the priority of other started applications occupying the camera is lower than that of the current application occupying the camera, judging that the camera does not need to be released;
or when the preset framing operation is finished, if the non-framing interface mode is finished, determining that the camera needs to be released; and if the started non-view interface mode is kept, judging that the camera does not need to be released.
Preferably, after the step of maintaining the occupancy of the camera by the application of the occupancy camera, the one or more modules further preferably have the following functions:
judging whether to execute framing operation;
if the framing operation is executed, the image acquired by the camera is saved;
and if the framing operation is not executed, judging whether the application occupying the camera is switched to a background to run.
The present embodiment also provides a non-transitory readable storage medium, in which one or more modules (programs) are stored, and when the one or more modules are applied to a device with a touch screen, the one or more modules may cause the device to perform the following steps (instructions):
detecting whether an application occupying a camera enters a background or not;
and when the application occupying the camera enters the background, closing a viewing interface, and keeping the occupation of the application occupying the camera on the camera so as to facilitate the application occupying the camera to acquire the resources acquired by the camera.
Preferably, the one or more modules may further include instructions for causing the apparatus to:
detecting that an application occupying the camera is triggered;
and when the application occupying the camera is triggered, starting the camera, establishing a view-finding interface, acquiring the resources acquired by the camera, and outputting the resources through the view-finding interface.
Preferably, when the application occupying the camera enters the background, the viewing interface is closed, and the camera is kept occupied by the application occupying the camera, in the following manner:
and when the application occupying the camera enters the background and the non-view interface mode is started, closing the view interface and keeping the camera occupied by the application occupying the camera.
Preferably, the viewfinder-less interface mode is started by the following steps:
when the application occupying the camera enters a background, judging whether a preset operation of a user is received, wherein the preset operation is used for starting the non-view-finding page mode;
or,
and automatically starting the non-view-finding page mode when the application occupying the camera is started.
Preferably, the one or more modules may further include instructions for causing the apparatus to:
and when the application occupying the camera enters the background and the non-view interface mode is not started, releasing the camera.
Preferably, after the step of releasing the camera, the one or more modules may further include instructions for causing the apparatus to:
judging whether the application occupying the camera is restored to the foreground operation, if so, starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera, and outputting the resources through the viewing interface; and if the operation is not recovered to the foreground, repeatedly judging whether the application occupying the camera is recovered to the foreground for operation.
Preferably, after the step of triggering other applications occupying the camera and after the step of completing the preset framing operation, the one or more modules may further cause the apparatus to execute instructions of the following steps:
and judging whether the camera needs to be released or not, if so, releasing the camera, and if not, keeping the occupation of the application occupying the camera on the camera.
Preferably, the step of determining whether the camera needs to be released includes:
when other applications occupying the camera are triggered, if the priority of other started applications occupying the camera is higher than that of the current applications occupying the camera, the camera is judged to need to be released; if the priority of other started applications occupying the camera is lower than that of the current application occupying the camera, judging that the camera does not need to be released;
or when the preset framing operation is finished, if the non-framing interface mode is finished, determining that the camera needs to be released; and if the started non-view interface mode is kept, judging that the camera does not need to be released.
Preferably, after the step of maintaining occupancy of the camera by the application occupying the camera, the one or more modules may further include instructions that cause the apparatus to:
judging whether to execute framing operation;
if the framing operation is executed, the image acquired by the camera is saved;
and if the framing operation is not executed, judging whether the application occupying the camera is switched to a background to run.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminals (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. The word "comprising", without limitation, means that the element so defined is not intended to exclude the presence of other elements in the process, method, article, or terminal which comprises the element.
The method for acquiring an image, the apparatus for acquiring an image, and the device provided by the embodiments of the present invention are described above in detail, and specific examples are applied herein to explain the principles and implementations of the embodiments of the present invention, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the embodiments of the present invention; meanwhile, for a person skilled in the art, according to the idea of the embodiment of the present invention, there may be a change in the specific implementation and application scope, and in summary, the content of the present specification should not be construed as a limitation to the embodiment of the present invention.
Claims (14)
1. A method of acquiring an image, comprising:
detecting whether an application occupying a camera enters a background or not;
when the application occupying the camera enters a background and a non-view interface mode is started, closing a view interface, and keeping the camera occupied by the application occupying the camera so that the application occupying the camera can acquire resources acquired by the camera;
when the application occupying the camera enters a background but a non-view-finding interface mode is not started, releasing the camera;
wherein, after releasing the camera, further comprising: judging whether the application occupying the camera is restored to the foreground operation, if so, starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera, and outputting the resources through the viewing interface; and if the operation is not recovered to the foreground, repeatedly judging whether the application occupying the camera is recovered to the foreground for operation.
2. The method of claim 1, wherein before detecting whether the application occupying the camera enters the background, the method further comprises:
detecting that an application occupying the camera is triggered;
and when the application occupying the camera is triggered, starting the camera, establishing a view-finding interface, acquiring the resources acquired by the camera, and outputting the resources through the view-finding interface.
3. The method of claim 1, wherein the viewfinder interface mode is turned on by:
when the application occupying the camera enters a background, judging whether a preset operation of a user is received, wherein the preset operation is used for starting the non-view-finding interface mode;
or,
and automatically starting the non-view interface mode when the application occupying the camera is started.
4. The method of claim 1, wherein after the step of triggering other applications occupying the camera, and after the step of completing the preset framing operation, the method further comprises:
and judging whether the camera needs to be released or not, if so, releasing the camera, and if not, keeping the occupation of the application occupying the camera on the camera.
5. The method of claim 4, wherein the step of determining whether the camera needs to be released comprises:
when other applications occupying the camera are triggered, if the priority of other started applications occupying the camera is higher than that of the current applications occupying the camera, the camera is judged to need to be released; if the priority of other started applications occupying the camera is lower than that of the current application occupying the camera, judging that the camera does not need to be released;
or when the preset framing operation is finished, if the non-framing interface mode is finished, determining that the camera needs to be released; and if the started non-view interface mode is kept, judging that the camera does not need to be released.
6. The method of claim 4, further comprising, after the step of maintaining occupancy of the camera by the application of the occupancy camera:
judging whether to execute framing operation;
if the framing operation is executed, the image acquired by the camera is saved;
and if the framing operation is not executed, judging whether the application occupying the camera is switched to a background to run.
7. An apparatus for acquiring an image, comprising:
the background detection module is used for detecting whether the application occupying the camera enters a background or not;
the camera occupation module is used for closing a view interface and keeping the occupation of the camera by the camera occupation application when the camera occupation application enters a background and a no view interface mode is started, so that the camera occupation application can acquire resources acquired by the camera;
the camera releasing module is used for releasing the camera when the application occupying the camera enters the background and the non-view interface mode is not started;
the foreground operation recovery judging module is used for judging whether the application occupying the camera is recovered to the foreground operation or not after the camera is released;
the foreground operation recovery module is used for starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera and outputting the resources through the viewing interface when the foreground operation is recovered;
and the foreground operation non-recovery module is used for repeatedly judging whether the application occupying the camera is recovered to the foreground operation or not when the foreground operation is not recovered.
8. The apparatus of claim 7, further comprising:
the application triggering module is used for detecting that the application occupying the camera is triggered;
and the application starting module is used for starting the camera when the application occupying the camera is triggered, establishing a view-finding interface, acquiring the resources acquired by the camera and outputting the resources through the view-finding interface.
9. The apparatus of claim 7, wherein the viewfinder-less interface mode start sub-module comprises:
a preset operation judging unit, configured to judge whether a preset operation of a user is received when the application occupying the camera enters a background, where the preset operation is used to start the viewfinder-free interface mode;
and the automatic starting unit is used for automatically starting the non-view-finding interface mode when the application occupying the camera is started.
10. The apparatus of claim 7, further comprising:
the foreground operation recovery judging module is used for judging whether the application occupying the camera is recovered to the foreground operation;
the foreground operation recovery module is used for starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera and outputting the resources through the viewing interface when the foreground operation is recovered;
and the foreground operation non-recovery module is used for repeatedly judging whether the application occupying the camera is recovered to the foreground operation or not when the foreground operation is not recovered.
11. The apparatus of claim 10, further comprising:
the camera release judging module is used for judging whether the camera needs to be released or not;
the camera releasing module is used for releasing the camera when the camera needs to be released;
and the camera holding module is used for holding the occupation of the camera by the application occupying the camera when the camera does not need to be released.
12. The apparatus of claim 11, wherein the camera release determination module comprises:
the first judgment submodule is used for judging that the camera needs to be released if the priority of other started applications occupying the camera is higher than that of the current applications occupying the camera when the other applications occupying the camera are triggered; if the priority of other started applications occupying the camera is lower than that of the current application occupying the camera, judging that the camera does not need to be released;
the second judgment submodule is used for judging that the camera needs to be released if the non-view interface mode is ended when the preset view finding operation is finished; and if the started non-view interface mode is kept, judging that the camera does not need to be released.
13. The apparatus of claim 11, further comprising:
a framing operation judgment module for judging whether to execute framing operation;
the image saving module is used for saving the image acquired by the camera when executing framing operation;
and the background operation switching module is used for judging whether to switch the application occupying the camera to the background operation when the framing operation is not executed.
14. An apparatus for acquiring an image, the apparatus comprising:
one or more processors;
a memory; and
one or more modules stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have functionality to:
detecting whether an application occupying a camera enters a background or not;
when the application occupying the camera enters a background and a non-view interface mode is started, closing a view interface, and keeping the camera occupied by the application occupying the camera so that the application occupying the camera can acquire resources acquired by the camera;
when the application occupying the camera enters a background but a non-view-finding interface mode is not started, releasing the camera;
wherein, after releasing the camera, further comprising: judging whether the application occupying the camera is restored to the foreground operation, if so, starting the camera, establishing a viewing interface, acquiring the resources acquired by the camera, and outputting the resources through the viewing interface; and if the operation is not recovered to the foreground, repeatedly judging whether the application occupying the camera is recovered to the foreground for operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310113160.2A CN103257939B (en) | 2013-04-02 | 2013-04-02 | A kind of obtain the method for image, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310113160.2A CN103257939B (en) | 2013-04-02 | 2013-04-02 | A kind of obtain the method for image, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103257939A CN103257939A (en) | 2013-08-21 |
CN103257939B true CN103257939B (en) | 2016-08-10 |
Family
ID=48961869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310113160.2A Active CN103257939B (en) | 2013-04-02 | 2013-04-02 | A kind of obtain the method for image, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103257939B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461213A (en) * | 2013-09-16 | 2015-03-25 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103984597A (en) * | 2014-06-04 | 2014-08-13 | 福州瑞芯微电子有限公司 | Method, device and system for task run switching |
CN104052909A (en) * | 2014-06-19 | 2014-09-17 | 深圳市中兴移动通信有限公司 | Shooting method and device |
CN104038698A (en) * | 2014-06-25 | 2014-09-10 | 深圳市中兴移动通信有限公司 | Background photographing method and device |
CN107423125A (en) * | 2017-07-27 | 2017-12-01 | 上海传英信息技术有限公司 | A kind of camera shooting control method and shooting control system for intelligent terminal |
CN107770449B (en) * | 2017-11-02 | 2020-03-27 | Oppo广东移动通信有限公司 | Continuous shooting method, electronic device and storage medium |
CN108668025B (en) * | 2018-05-07 | 2020-11-10 | 珠海格力电器股份有限公司 | Method for quickly closing photographing interface and mobile terminal |
CN109144728B (en) | 2018-08-22 | 2020-11-06 | Oppo广东移动通信有限公司 | Occupancy control method and device for camera application |
CN111294500B (en) * | 2018-12-07 | 2021-12-17 | 深圳市优必选科技有限公司 | Image shooting method, terminal device and medium |
CN111447353B (en) * | 2019-01-16 | 2022-06-24 | 北京字节跳动网络技术有限公司 | Image acquisition method and device, electronic equipment and storage medium |
CN112929493B (en) * | 2019-07-05 | 2022-07-12 | Oppo广东移动通信有限公司 | Slider control method and related product |
CN111405175B (en) * | 2020-03-03 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Camera control method, device, computer equipment and storage medium |
CN112363836A (en) * | 2020-11-12 | 2021-02-12 | 四川长虹电器股份有限公司 | Android system camera resource control method |
CN113518183B (en) * | 2021-07-23 | 2023-06-27 | 北京字节跳动网络技术有限公司 | Camera calling method and device and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155260A (en) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | Control method, authentication method and server for electronic equipments |
CN102957870A (en) * | 2012-10-30 | 2013-03-06 | 中兴通讯股份有限公司 | Photographing method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010073009A (en) * | 2008-09-19 | 2010-04-02 | Denso Corp | Image processing apparatus |
-
2013
- 2013-04-02 CN CN201310113160.2A patent/CN103257939B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155260A (en) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | Control method, authentication method and server for electronic equipments |
CN102957870A (en) * | 2012-10-30 | 2013-03-06 | 中兴通讯股份有限公司 | Photographing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103257939A (en) | 2013-08-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103257939B (en) | A kind of obtain the method for image, device and equipment | |
JP6321796B2 (en) | Mobile terminal, method for starting shooting on mobile terminal, and program for executing the method | |
EP3382506B1 (en) | Method and apparatus for screen capture processing | |
US10674088B2 (en) | Method and device for acquiring image, terminal and computer-readable storage medium | |
WO2015196924A1 (en) | Image capture method and apparatus | |
US9774776B2 (en) | Video recording device and camera function control program | |
US9626076B2 (en) | Display apparatus for displaying images and method thereof | |
CN107483812B (en) | Multi-platform parallel live broadcast method and device | |
JP2016535552A (en) | Method and apparatus for obtaining a photograph | |
WO2014154003A1 (en) | Method and apparatus for displaying self-taken images | |
CN105812553A (en) | Rapid shooting method and mobile terminal | |
CN102420942A (en) | Photographing control method based on photographing equipment and photographing equipment | |
WO2022042573A1 (en) | Application control method and apparatus, electronic device, and readable storage medium | |
US20160073049A1 (en) | Method and apparatus for backing up video | |
CN103795923A (en) | Shooting control method of camera shooting device and camera shooting device | |
EP3253043B1 (en) | Shooting method and mobile device | |
CN105323484B (en) | Rapid photographing method and electronic equipment | |
CN103517021A (en) | Method and terminal for Android terminal to automatically perform recording continuously | |
CN104580874A (en) | Camera shooting equipment and picture taking method thereof | |
CN107360366B (en) | Photographing method and device, storage medium and electronic equipment | |
WO2017008352A1 (en) | Image processing method, image processing device and terminal | |
CN106204743B (en) | Control method and device for augmented reality function and mobile terminal | |
CN113709368A (en) | Image display method, device and equipment | |
CN108184056B (en) | Snapshot method and terminal equipment | |
CN116347009B (en) | Video generation method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C53 | Correction of patent for invention or patent application | ||
CB02 | Change of applicant information |
Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13 Applicant after: Xiaomi Technology Co., Ltd. Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12 Applicant before: Beijing Xiaomi Technology Co., Ltd. |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |