Shooting method and device, terminal, storage medium and computer program product
By identifying uninterrupted click operations in the ShotToShot scene, a target atlas is generated, and the continuous shooting images are processed together, which solves the problem of reduced user experience and time-consuming image classification, and achieves more efficient image management.
Patent Information
- Application Number
- CN202410827815.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-10
AI Technical Summary
In the ShotToShot scenario, the existing technology ignores the difference between photo processing methods and ordinary photo taking scenarios, resulting in a reduced user experience, and separate classification of continuous shooting images is time-consuming and laborious.
By detecting the user's click operations on the shooting interface of the camera application, identify uninterrupted click operations, generate a target atlas, and put the continuous shooting images into an atlas to avoid separate classification and improve user experience.
It improves the user experience, simplifies subsequent image management, and avoids the waste of time and energy caused by separate classification.
Smart Images

Figure CN118632121A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular to a shooting method, device, terminal, storage medium and computer program product. Background Art
[0002] In related technologies, with the increasing number of algorithms for terminal device camera functions, major manufacturers mostly use the ShotToShot (STS for short) method to increase the speed of taking photos and improve the user's photo experience. However, the photo processing method in the ShotToShot scene is the same as that in the ordinary photo scene, ignoring the scene characteristics of ShotToShot, which also reduces the user experience. Summary of the invention
[0003] The purpose of the present application is to provide a shooting method, device, terminal, storage medium and computer program product, which can generate a corresponding atlas in response to uninterrupted click operations, put the continuously shot images into an atlas instead of putting them into an ordinary album, avoid the subsequent time and effort of classifying the continuously shot images separately, and improve the user experience.
[0004] According to a first aspect of an embodiment of the present application, a shooting method is provided, which is applied to a camera application, and the method includes:
[0005] Detecting a click operation of a user clicking a camera button on a shooting interface of the camera application;
[0006] Determining whether at least two adjacent click operations are uninterrupted click operations;
[0007] When it belongs to the uninterrupted click operation, a target atlas is generated in response to at least two of the click operations; wherein the target atlas includes at least two target images taken in response to the at least two click operations.
[0008] In one implementation, the camera application is configured on a terminal, and determining whether at least two adjacent click operations are uninterrupted click operations includes:
[0009] In response to each of the click operations, generating a shooting request;
[0010] Determining that the terminal supports the uninterrupted clicking operation;
[0011] When the current shooting request is triggered, checking whether the target image generated in response to the previous shooting request is returned to the camera application;
[0012] If it returns, it is determined that at least two adjacent click operations belong to uninterrupted click operations; if it does not return, it is determined that at least two adjacent click operations do not belong to uninterrupted click operations.
[0013] In one implementation, the determining that the terminal supports the uninterrupted click operation includes:
[0014] After the shooting request reaches the hardware abstraction layer (HAL), check whether there is a quick display stream and determine whether the continuous click switch is turned on;
[0015] When the continuous click switch is turned on, the continuous shooting function is executed according to the continuous click logic; during the execution of the continuous shooting function, a pop-up image of the target image, a notification message and the target image are generated; wherein the notification message indicates whether the next shooting request can be issued;
[0016] When the quick display stream exists, sending the notification message to the camera application;
[0017] Determine whether the terminal supports the uninterrupted click operation according to the notification message; wherein, when the notification message indicates that the next shooting request can be issued, it is determined that the terminal supports the uninterrupted click operation; when the notification message indicates that the next shooting request cannot be issued, it is determined that the terminal does not support the uninterrupted click operation.
[0018] In one implementation, the terminal includes an image sensor; after generating a shooting request in response to each of the click operations, the method further includes:
[0019] Determine a shooting count according to the number of the shooting requests; the shooting count is the number of images to be shot; the initial value of the shooting count is the number of the shooting requests;
[0020] The continuous shooting function is executed according to the uninterrupted clicking logic, including:
[0021] Generate the pop-up image based on the preview image on the shooting interface;
[0022] Performing image processing on the initial image captured by the image sensor to generate the target image;
[0023] When one of the target images is generated, the shooting count and the current queue depth of the processing queue are updated; wherein each processing task in the processing queue is used to capture an initial image and perform image processing on the initial image to obtain the target image; the updated shooting count is the number of the shooting requests minus the number of the generated target images, and the current queue depth is equal to the updated shooting count;
[0024] The notification message is generated according to the remaining capacity of the memory, the current queue depth, the CPU usage and the specified conditions; wherein, when the remaining capacity of the memory, the current queue depth and the CPU usage meet the specified conditions, the notification message indicates that the next shooting request can be issued; when the remaining capacity of the memory, the current queue depth and the CPU usage do not meet the specified conditions, the notification message indicates that the next shooting request cannot be issued.
[0025] In one implementation, the determining whether at least two adjacent click operations are uninterrupted click operations includes:
[0026] In response to each of the click operations, generating a shooting request;
[0027] Determine the shooting interval between the current shooting request and the previous shooting request;
[0028] Whether at least two adjacent click operations belong to uninterrupted click operations is determined based on the comparison result between the shooting interval and the specified time interval; wherein, when the comparison result indicates that the shooting interval is less than the specified time interval, at least two adjacent click operations belong to uninterrupted click operations, and when the comparison result indicates that the shooting interval is greater than the specified time interval, at least two adjacent click operations do not belong to uninterrupted click operations.
[0029] In one embodiment, the shooting method further includes:
[0030] When at least two adjacent click operations are uninterrupted click operations, an atlas name of the target atlas is generated.
[0031] In one implementation, generating the atlas name of the target atlas includes:
[0032] When the scene recognition function is turned on, scene recognition is performed based on the target image to obtain scene type information;
[0033] An atlas name of the target atlas is generated based on the scene type information.
[0034] In one implementation, performing scene recognition based on the target image to obtain scene type information includes:
[0035] Acquire the first target image generated in the target atlas to obtain an image to be recognized;
[0036] Scene recognition is performed based on the image to be recognized to obtain the scene type information.
[0037] In one implementation, generating the atlas name of the target atlas includes:
[0038] Receive atlas naming information input by the user;
[0039] The atlas name is generated based on the atlas naming information.
[0040] In one implementation, generating the atlas name of the target atlas includes:
[0041] Determining a naming rule for the target atlas;
[0042] The atlas name is generated based on the naming rule.
[0043] In one embodiment, the naming rule is to generate the atlas name according to the generation order of the target atlas; and the generating the atlas name based on the naming rule includes:
[0044] Determining the generation order of the target atlas;
[0045] The atlas names are generated based on the generation order of the target atlases.
[0046] In one embodiment, the shooting method further includes:
[0047] In the image display area of the atlas display interface of the target atlas, the target images are displayed in the order of shooting.
[0048] In one embodiment, the shooting method further includes:
[0049] A quick display image list is generated according to the quick display image, and the quick display image list is displayed in an index area of the atlas display interface; wherein the index area is located above or below the image display area.
[0050] In one embodiment, after generating the target atlas in response to at least two click operations, the method further includes:
[0051] In the atlas display interface of the target atlas, for each target image, the target image is processed according to an interactive operation input by a user; wherein the interactive operation includes at least one of exporting, deleting and editing the target image from the target atlas.
[0052] In one embodiment, after generating the target atlas in response to at least two click operations, the method further includes:
[0053] In the atlas display interface of the target atlas, receiving a user input for adjusting the arrangement order of the target images;
[0054] The arrangement order of the target images is adjusted according to the arrangement order adjustment operation.
[0055] In one implementation, the camera application is configured on a terminal, and the terminal has a touch screen; the arrangement order adjustment operation is a drag operation on the target image.
[0056] In one embodiment, the atlas cover of the target atlas includes an atlas logo, and the atlas logo indicates that the target atlas is an atlas generated in response to the uninterrupted click operation.
[0057] According to a second aspect of an embodiment of the present application, there is provided a photographing device, configured with a camera application, the device comprising:
[0058] A detection module is configured to detect a click operation of a user clicking a camera button on a shooting interface of the camera application;
[0059] A determination module, configured to determine whether at least two adjacent click operations are uninterrupted click operations;
[0060] The generation module is configured to generate a target atlas in response to at least two adjacent click operations when at least two of the adjacent click operations belong to the uninterrupted click operations; wherein the target atlas includes at least two target images taken in response to the at least two click operations.
[0061] According to a third aspect of an embodiment of the present application, a terminal is provided, comprising a memory and a processor, wherein the memory is used to store a computer program executable by the processor; and the processor is used to execute the computer program in the memory to implement the above method.
[0062] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the executable computer program in the storage medium is executed by a processor, the above method can be implemented.
[0063] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, including a computer program, which implements the above method when executed by a processor.
[0064] Compared with the prior art, the beneficial effect of the present application lies in: by detecting the click operation of the user clicking the camera button on the shooting interface of the camera application, it is determined whether at least two adjacent click operations belong to uninterrupted click operations. When at least two adjacent click operations belong to uninterrupted click operations, a target atlas is generated in response to the at least two click operations, wherein the target atlas includes at least two target images, and at least two target images are images taken in response to the at least two click operations. In this way, it is possible to actively identify whether the user's continuous click operation of the camera button belongs to an uninterrupted click operation. When it belongs to an uninterrupted click operation, a corresponding atlas can be generated in response to the uninterrupted click operation, and the continuously shot images are placed in an atlas instead of in an ordinary album, thereby avoiding the subsequent time and effort of classifying the continuously shot images separately, and the user experience can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 is a schematic diagram of an image captured in a ShotToShot scenario according to the related art;
[0066] Figure 2 is a schematic diagram of viewing a captured image in a ShotToShot scenario according to the related art;
[0067] Figure 3 is a schematic diagram of viewing a captured image in another ShotToShot scenario according to the related art;
[0068] Figure 4 It is a schematic diagram of the operation of an atlas shot in a ShotToShot scenario according to the related art;
[0069] Figure 5 is a flow chart of a shooting method according to an exemplary embodiment;
[0070] Figure 6 to Figure 7 is a schematic diagram of shooting an image in a ShotToShot scenario according to an exemplary embodiment;
[0071] Figure 8 is a flow chart of a shooting method according to another exemplary embodiment;
[0072] Fig. 9 is a flow chart of a shooting method according to another exemplary embodiment;
[0073] Fig.10 is a flow chart of a shooting method according to another exemplary embodiment;
[0074] Figure 11 to Figure 12is a schematic diagram of setting a non-stop click switch in a ShotToShot scenario according to an exemplary embodiment;
[0075] Fig.13 is a flow chart of a shooting method according to another exemplary embodiment;
[0076] Fig.14 is a flow chart of a shooting method according to another exemplary embodiment;
[0077] Fig.15 is a flow chart of a shooting method according to another exemplary embodiment;
[0078] Fig.16 is a flow chart of a shooting method according to another exemplary embodiment;
[0079] Fig.17 is a schematic diagram showing a method of generating an atlas name of a target atlas according to another exemplary embodiment;
[0080] Fig.18 is a flow chart of a shooting method according to another exemplary embodiment;
[0081] Fig.19 is a flow chart of a shooting method according to another exemplary embodiment;
[0082] Fig. 20 is a schematic diagram of a target atlas according to another exemplary embodiment;
[0083] Fig.21 is a schematic diagram of a target atlas according to another exemplary embodiment;
[0084] Fig. 22 is a schematic diagram of a target atlas according to another exemplary embodiment;
[0085] Fig.23 is a flow chart of a shooting method according to another exemplary embodiment;
[0086] Fig.24 is a schematic diagram of a cover of an atlas according to an exemplary embodiment;
[0087] Fig.25 is a block diagram of a photographing device according to an exemplary embodiment;
[0088] Fig.26 It is a block diagram of a terminal according to an exemplary embodiment. DETAILED DESCRIPTION
[0089] Unless otherwise defined, the technical terms or scientific terms used in this specification and claims shall have the usual meanings understood by persons with ordinary skills in the technical field to which the invention belongs. The specific embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be noted that in the specific description of these embodiments, in order to provide a concise description, it is impossible for this specification to provide a detailed description of all the features of the actual embodiments. Without departing from the spirit and scope of the present invention, those skilled in the art may modify and replace the embodiments of the present invention, and the resulting embodiments are also within the scope of protection of the present invention.
[0090] Terminology explanation:
[0091] Shot To Shot (STS): ShotToShot means continuously clicking the camera button. It is implemented to solve the problem of taking longer and longer photos, allowing multiple photos to be processed simultaneously, shortening the photo interval, and improving user experience. Therefore, it is also a code implementation method that speeds up code processing and makes full use of the CPU (Central Processing Unit). ShotToShot can also be expressed as Shot2Shot.
[0092] In related technologies, with the increasing number of algorithms for terminal device camera functions, major manufacturers mostly use the ShotToShot (STS for short) method to increase the speed of taking photos and improve the user's photo experience. However, the photo processing method in the ShotToShot scene is no different from the photo processing method in the ordinary photo scene, ignoring the scene characteristics of ShotToShot and the need for customization of the atlas, which also reduces the user experience.
[0093] For example, one of the biggest selling points of current smartphones is the function and effect of the camera, which is mainly based on a variety of algorithms to bring different photo-taking experiences to customers. In order to prevent the risk of increased photo-taking time and poor user experience caused by algorithms, all mobile phone manufacturers have basically adopted the ShotToShot method to improve the user's photo-taking experience.
[0094] However, the inventor of this application found that currently no mobile phone manufacturer has independently processed the atlas for ShotToShot, and the photo display is no different from the photo display of ordinary photo scenes. This also leads to a certain discount in the operability and experience of ShotToShot scenes.
[0095] For example, Figure 1As shown in the figure, in the ShotToShot scenario, the photos taken are often of the same scene, which has a certain unique meaning. It is too general to classify them with ordinary photos. Subsequent classification is time-consuming and labor-intensive. Therefore, it is very important to display the photos taken in succession through the album.
[0096] For example, the core of ShotToShot is to process multiple photos at the same time. At this time, if you enter the gallery to view photos, the logic is that the current last photo will be displayed first, such as Figure 2 , it may prompt that the photo is being processed (Imageprocessing), or, Figure 3 As shown, a blurry photo may be displayed, which is a poor experience. However, if the logic of taking the photo first and displaying it first is followed, this problem can be avoided to a large extent.
[0097] For example, the atlas of the current continuous shooting scene has poor operability. Figure 4 As shown, the atlas generated by the Burst continuous shooting scene is too simple, with only the operation of selecting photos, and not much operability.
[0098] In order to solve the above technical problems, the present application proposes a shooting method, device, terminal, storage medium and computer program product, which can generate a corresponding atlas in response to continuous clicking operations, and put the continuously shot images into an atlas instead of putting them into an ordinary album, thereby avoiding the time and effort of subsequently classifying the continuously shot images separately, and improving the user experience.
[0099] An embodiment of the present application provides a shooting method. The shooting method can be applied to a terminal with a camera application (APP), which can be a smart phone, a smart watch, a car terminal, etc. The terminal can have a touch screen and support the Android operating system, but is not limited thereto. Figure 5 The shooting method may include the following steps 501 to 503:
[0100] Step 501: Detect a user's click operation of clicking a camera button on a shooting interface of a camera application.
[0101] Step 502: Determine whether at least two adjacent click operations are continuous click operations.
[0102] Step 503: When the click operation is continuous, a target atlas is generated in response to at least two click operations; wherein the target atlas includes at least two target images captured in response to the at least two click operations.
[0103] In this embodiment, if Figure 6 As shown, the user starts the camera application by clicking the icon of the camera application 62 on the user interface 61 of the terminal. Figure 7 As shown, after starting the camera application, the camera application's shooting interface 71 is entered, and the shooting interface 71 includes a camera button 72. In the shooting mode, the user clicks the camera button 72 to generate a shooting request to capture an image.
[0104] In some scenarios where a fast-moving object is captured or a series of photos are taken quickly, the user can quickly and continuously click the camera key 72 to take multiple images without waiting for the previous image to be completely processed. If the multiple images taken are put into a common album, if the continuous images want to be classified separately later, they need to be classified manually and the corresponding albums need to be created, which is time-consuming and laborious.
[0105] In this embodiment, a click operation of a user clicking a camera button 72 on a shooting interface 71 of a camera application 62 is detected, and it is determined whether at least two adjacent click operations are continuous click operations. If they are continuous click operations, a target atlas is generated in response to the at least two click operations. The target atlas includes at least two target images captured in response to the at least two click operations.
[0106] In this way, it is possible to actively identify whether the user's continuous clicking of the camera button is an uninterrupted clicking operation. If it is an uninterrupted clicking operation, a target atlas can be generated in response to the uninterrupted clicking operation, and the continuously shot target images can be placed in a collection rather than in an ordinary album, thereby avoiding the subsequent time and effort of separately classifying the continuously shot target images, thereby improving the user experience.
[0107] Another embodiment of the present application also provides a shooting method. Figure 8 The shooting method may include the following steps 801 to 804:
[0108] Step 801, detecting a user's click operation of clicking a camera button on a shooting interface of a camera application.
[0109] In this embodiment, step 801 is similar to the above-mentioned step 501 and will not be described in detail herein.
[0110] Step 802: Determine whether at least two adjacent click operations are continuous click operations.
[0111] In this embodiment, if Fig. 9 As shown, step 802 may include the following steps 901 to 904:
[0112] Step 901: Generate a shooting request in response to each click operation.
[0113] In this embodiment, the camera application generates a corresponding shooting request in response to each click operation.
[0114] In one embodiment, after step 901, the method further includes: determining a shooting count according to the number of shooting requests; the shooting count is the number of images to be shot, and the initial value of the shooting count is the number of shooting requests.
[0115] In one embodiment, the camera application also records relevant information of the shooting request, and the relevant information may include shooting frame number, shooting time, shooting count, shooting interval, and the like.
[0116] Step 902: Determine whether the terminal supports the continuous click operation.
[0117] In this embodiment, the camera application also needs to determine whether the terminal supports the continuous click operation.
[0118] In this embodiment, if Fig.10 As shown, step 902 may include the following steps 1001 to 1004:
[0119] Step 1001, after the shooting request reaches the hardware abstraction layer (HAL), check whether there is a quick display stream and determine whether the continuous click switch is turned on.
[0120] In this embodiment, after the shooting request reaches the hardware abstraction layer (HAL), it is possible to check whether there is a quick display stream by checking the log, but it is not limited thereto. In a normal state, the quick display stream is turned on or off by default, for example, there is no quick display stream in the ultra-high definition mode, and there is a quick display stream in the Auto mode, and the switch control can also be performed on the camera application end.
[0121] In this embodiment, the camera application also needs to determine whether the continuous click switch is turned on. The camera application can determine whether the continuous click switch is turned on according to the continuous click switch flag. For example, when the continuous click switch flag is 0, the continuous click switch is not turned on, and when the continuous click switch flag is 1, the continuous click switch is turned on.
[0122] like Figure 11 to Figure 12 As shown, the user can find the icon 121 of the continuous click switch through the continuous click switch setting option 112 provided by the setting interface 111 of the camera application, and adjust the state of the continuous click switch by clicking the icon. The default state of the continuous click switch is turned on. When the continuous click switch is in the default state, the switch setting option 112 can display the retention setting, but is not limited thereto.
[0123] Step 1002, when the continuous click switch is turned on, the continuous shooting function is executed according to the continuous click logic; during the execution of the continuous shooting function, a pop-up image of the target image, a notification message and the target image are generated; wherein the notification message indicates whether the next shooting request can be issued.
[0124] In this embodiment, if Fig.13 As shown, step 1002 may include the following steps 1301 to 1304:
[0125] Step 1301: Generate a pop-up image based on the preview image on the shooting interface.
[0126] Step 1302: Perform image processing on the initial image captured by the image sensor to generate a target image.
[0127] Step 1303, after a target image is generated, the shooting count and the current queue depth of the processing queue are updated. Each processing task in the processing queue is used to capture an initial image and perform image processing on the initial image to obtain a target image; the updated shooting count is the number of shooting requests minus the number of generated target images, and the current queue depth is equal to the updated shooting count.
[0128] Step 1304, a notification message is generated according to the remaining capacity of the memory, the current queue depth, the CPU usage rate and the specified conditions. When the remaining capacity of the memory, the current queue depth and the CPU usage rate meet the specified conditions, the notification message indicates that the next shooting request can be sent, and when the remaining capacity of the memory, the current queue depth and the CPU usage rate do not meet the specified conditions, the notification message indicates that the next shooting request cannot be sent.
[0129] In this embodiment, when the continuous click switch is turned on, the camera application executes the continuous shooting function according to the continuous click logic. The continuous click logic may include a quick display processing logic and an image processing logic. The quick display processing logic and the image processing logic may be executed simultaneously.
[0130] In this embodiment, the pop-up processing logic is used to generate a pop-up image based on the preview image on the shooting interface. Compared with the prior art of generating a target image and then processing the target image to obtain a pop-up image, the speed of generating the pop-up image is improved.
[0131] In this embodiment, the image processing logic is a concurrent processing logic for continuous click operation data, which is used to process the initial image collected by the image sensor of the terminal to generate a target image. When the target image is an image in JPEG format, the image processing logic can be a JPEG processing logic.
[0132] In this embodiment, when the image processing logic completes a target image, the pop-up processing logic updates the capture count and the current queue depth of the processing queue. The updated capture count is the number of capture requests minus the number of generated target images, and the current queue depth is equal to the updated capture count.
[0133] In this embodiment, the pop-up processing logic generates a notification message according to the remaining capacity of the memory, the current queue depth, the CPU usage rate and the specified conditions. When the remaining capacity of the memory, the current queue depth and the CPU usage rate meet the specified conditions, the notification message indicates that the next shooting request can be sent, and when the remaining capacity of the memory, the current queue depth and the CPU usage rate do not meet the specified conditions, the notification message indicates that the next shooting request cannot be sent.
[0134] The specified conditions are: the remaining capacity of the memory is greater than the specified remaining capacity threshold of the memory, the current queue depth is less than or equal to the specified queue depth threshold of the processing queue, and the CPU usage is less than the specified CPU usage threshold.
[0135] The remaining capacity of the memory refers to how much available running memory is left in the current system and whether it can support the next photo taking. If the current system has 500M remaining, and we set the remaining capacity threshold of the memory to 400M, then photos can be taken. If the remaining capacity threshold of the memory is set to 600M, photos cannot be taken.
[0136] The queue depth threshold of the processing queue refers to the number of photos that the current system can process simultaneously. If it is set to 5, you can quickly click to take a photo 5 times, and the processing of the 5 photos will be carried out simultaneously, just like running 5 QQ terminals at the same time.
[0137] Regarding CPU usage (Loading), for example, for an 8-core mobile phone, after taking three consecutive photos, the CPU usage reaches 85%. If the CPU usage threshold is set to 80%, you can no longer click to take photos.
[0138] In an exemplary embodiment, the remaining capacity threshold of the specified memory is set to 500M, the queue depth threshold of the specified processing queue is set to 5, and the usage threshold (Loadomh) of the specified CPU is set to 80%, but it is not limited to this and can be set according to the specific platform.
[0139] In this embodiment, the quick display processing logic determines that the remaining capacity of the memory, the current queue depth, and the CPU usage rate meet the specified conditions when the remaining capacity of the memory is greater than the specified remaining capacity threshold of the memory, the current queue depth of the processing queue is less than or equal to the specified queue depth threshold of the processing queue, and the CPU usage rate is less than the specified CPU usage threshold; and determines that the remaining capacity of the memory, the current queue depth, and the CPU usage rate do not meet the specified conditions when the remaining capacity of the memory is less than the specified remaining capacity threshold of the memory, the current queue depth of the processing queue is greater than the specified queue depth threshold of the processing queue, or the CPU usage rate is greater than the specified CPU usage threshold.
[0140] Step 1003: When a quick display stream exists, a notification message is sent to the camera application.
[0141] In this embodiment, when there is no quick display stream, the hardware abstraction layer (HAL) does not send a notification message to the camera application. When there is a quick display stream, the hardware abstraction layer (HAL) sends a notification message to the camera application, and when the continuous click switch is not turned on, the quick display image is saved normally, and the notification message indicating that the next shooting request can be sent is ignored.
[0142] Step 1004, determining whether the terminal supports the continuous click operation according to the notification message; wherein, when the notification message indicates that the next shooting request can be issued, it is determined that the terminal supports the continuous click operation; when the notification message indicates that the next shooting request cannot be issued, it is determined that the terminal does not support the continuous click operation.
[0143] In this embodiment, the camera application can determine whether the terminal supports the continuous click operation based on the notification message. When the notification message indicates that the next shooting request can be issued, it is determined that the terminal supports the continuous click operation; when the notification message indicates that the next shooting request cannot be issued, it is determined that the terminal does not support the continuous click operation.
[0144] Step 903: when the current shooting request is triggered, check whether the target image generated in response to the previous shooting request is returned to the camera application.
[0145] In this embodiment, when the current shooting request is triggered, the camera application checks whether the target image generated in response to the previous shooting request has been returned. For example, when the second shooting request is triggered, the camera application checks whether the target image generated in response to the first shooting request has been returned.
[0146] Step 904: if the method returns, it is determined that at least two adjacent click operations belong to uninterrupted click operations; if the method does not return, it is determined that at least two adjacent click operations do not belong to uninterrupted click operations.
[0147] In this embodiment, when the current shooting request is triggered by the camera application, if it is determined that the target image generated in response to the previous shooting request has been returned, then it is determined that at least two adjacent click operations are uninterrupted click operations; if it is determined that the target image generated in response to the previous shooting request has not been returned, then it is determined that at least two adjacent click operations do not belong to uninterrupted click operations.
[0148] Step 803: When the click operation is continuous, a target atlas is generated in response to at least two click operations; wherein the target atlas includes at least two target images captured in response to the at least two click operations.
[0149] In this embodiment, when it is determined that at least two adjacent click operations are uninterrupted click operations, a target atlas is generated in response to the at least two click operations, wherein the target atlas includes at least two target images captured in response to the at least two click operations.
[0150] Step 804: When it is not an uninterrupted click operation, for each click operation, a target image is generated in response to the click operation.
[0151] In this embodiment, when it is determined that at least two adjacent click operations do not belong to uninterrupted click operations, for each click operation, a target image is generated in response to the click operation, and the target images are saved in a normal photo album in the reverse order of the click operations, that is, in the normal photo album, the target image taken first is displayed later, and the target image taken later is displayed first.
[0152] In this embodiment, it is possible to actively identify whether the user's continuous clicking of the camera button is an uninterrupted clicking operation. If it is an uninterrupted clicking operation, a target atlas can be generated in response to the uninterrupted clicking operation, and the continuously shot target images can be placed in a collection instead of a common album, thereby avoiding the time and effort of classifying the continuously shot target images separately in the future, and improving the user experience. Moreover, the generation of a pop-up image based on the preview image on the shooting interface improves the speed of generating a pop-up image compared to the prior art of generating a target image and then processing the target image to obtain a pop-up image.
[0153] Another embodiment of the present application also provides a shooting method. Different from the above embodiment, in this embodiment, whether at least two adjacent click operations are continuous click operations is determined according to the shooting interval between the current shooting request and the previous shooting request. Fig.14 In this embodiment, step 802 may include the following steps 1401 to 1403:
[0154] Step 1401: Generate a shooting request in response to each click operation.
[0155] Step 1402: Determine the shooting interval between the current shooting request and the previous shooting request.
[0156] Step 1403, determining whether at least two adjacent click operations belong to uninterrupted click operations based on the comparison result between the shooting interval and the specified time interval. When the comparison result indicates that the shooting interval is less than the specified time interval, the at least two adjacent click operations belong to uninterrupted click operations, and when the comparison result indicates that the shooting interval is greater than the specified time interval, the at least two adjacent click operations do not belong to uninterrupted click operations.
[0157] In this embodiment, the camera application generates a corresponding shooting request in response to each click operation, and determines the shooting interval between the current shooting request and the previous shooting request, and then determines whether at least two adjacent click operations belong to uninterrupted click operations based on the comparison result of the shooting interval and the specified time interval. When the comparison result indicates that the shooting interval is less than the specified time interval, it is determined that at least two adjacent click operations belong to uninterrupted click operations; when the comparison result indicates that the shooting interval is greater than the specified time interval, it is determined that at least two adjacent click operations do not belong to uninterrupted click operations.
[0158] In this embodiment, the logic for determining whether at least two adjacent click operations are uninterrupted click operations is relatively concise and has a fast execution speed, which can improve the speed of determining uninterrupted click operations.
[0159] Another embodiment of the present application further provides a shooting method. Based on the above embodiment, in this embodiment, when at least two adjacent click operations are uninterrupted click operations, an atlas name of a target atlas is generated. Fig.15 As shown, in this embodiment, the shooting method may include the following steps 1501 to 1504:
[0160] Step 1501, detecting a user's click operation of clicking a camera button on a shooting interface of a camera application.
[0161] Step 1502: Determine whether at least two adjacent click operations are continuous click operations.
[0162] Step 1503, when it is an uninterrupted click operation, generating a target atlas in response to at least two click operations; wherein the target atlas includes at least two target images taken in response to the at least two click operations.
[0163] Step 1504: When it is an uninterrupted click operation, generate the atlas name of the target atlas.
[0164] In this embodiment, steps 1501 to 1503 are similar to the above-mentioned steps 501 to 503 and are not described in detail herein.
[0165] In one embodiment, step 1503 and step 1504 may be performed simultaneously. In another embodiment, step 1504 is performed after step 1503.
[0166] In this embodiment, step 1503 and step 1504 may be performed simultaneously. Furthermore, in the process of constructing the target atlas, the atlas name of the target atlas may be automatically generated.
[0167] In this embodiment, when it is determined that at least two adjacent click operations are uninterrupted click operations, the Gallery processing logic of ShotToShot is executed to generate a target gallery in response to the at least two click operations. When it is determined that at least two adjacent click operations are not uninterrupted click operations, normal photo gallery processing is performed to save the captured images in a normal album.
[0168] It should be noted that the function of executing ShotToShot's Gallery processing logic can be turned off in the settings.
[0169] In this embodiment, if Fig.16 As shown, step 1504 may include the following steps 1601 to 1602:
[0170] Step 1601: When the scene recognition function is turned on, scene recognition is performed based on the target image to obtain scene type information.
[0171] Step 1602: Generate an atlas name of the target atlas based on the scene type information.
[0172] In this embodiment, the setting interface of the camera application may include a switch for the scene recognition function. The switch for the scene recognition function is used to turn on or off the scene recognition function. When the camera application determines that the scene recognition function is turned on, the scene recognition is performed based on the target image, the scene type information is obtained, and the atlas name of the target atlas is generated based on the scene type information.
[0173] like Fig.17 As shown, when an image of a water cup is captured, if a click operation of the user clicking the camera button on the shooting interface of the camera application is detected, and it is determined that at least two adjacent click operations are uninterrupted click operations and the scene recognition function is turned on, a target atlas is generated in response to the at least two click operations, and scene recognition is performed based on the target image 172 to obtain scene type information "water cup", and based on the scene type information "water cup", an atlas name "water cup 171" of the target atlas is generated.
[0174] In one embodiment, step 1601 may be implemented by the following method: obtaining the first generated target image in the target atlas to obtain the image to be identified, performing scene recognition based on the image to be identified, and obtaining scene type information. Scene recognition based on the image to be identified may be implemented by deep learning or machine learning methods, or by other methods.
[0175] In another embodiment, step 1601 may be implemented by the following method: acquiring a preview image on the shooting interface, obtaining an image to be identified, performing scene recognition based on the image to be identified, and obtaining scene type information.
[0176] In this embodiment, when the scene recognition function is turned on, scene recognition can be performed based on the target image to obtain scene type information, and the atlas name of the target atlas is generated based on the scene type information, thereby realizing automatic setting of personalized naming of the continuous shooting atlas.
[0177] Another embodiment of the present application also provides a shooting method. Different from the above embodiment, in this embodiment, the target atlas is automatically named according to the order in which the atlas is generated. Fig.18 As shown, in this embodiment, step 1504 may include the following steps 1801 to 1802:
[0178] Step 1801, determine the naming rule of the target atlas.
[0179] Step 1802, generate an atlas name based on the naming rules.
[0180] In this embodiment, step 1503 and step 1504 may be performed simultaneously. Furthermore, in the process of constructing the target atlas, the atlas name of the target atlas may be automatically generated.
[0181] In this embodiment, the camera application may first determine the naming rule of the target atlas, and then generate the atlas name based on the naming rule.
[0182] In this embodiment, the naming rule may be to generate the atlas name according to the generation order of the target atlas. After determining the naming rule of the target atlas, the camera application may first determine the generation order of the target atlas, and then generate the atlas name based on the generation order of the target atlas. For example, when the target atlas is the third atlas in the album, the atlas name "Atlas 3" may be generated.
[0183] In one embodiment, the camera application may determine the atlas with the smallest time interval between the generation time and the current time in the album as the reference atlas, parse the name of the reference atlas, obtain the order of the reference atlas, and then obtain the generation order of the target atlas based on the order of the reference atlas, where the generation order of the target atlas is equal to the sum of the order of the reference atlas and 1. In this way, it can be ensured that the order in the atlas names in the album is continuous.
[0184] Another embodiment of the present application also provides a shooting method. Different from the above embodiment, in this embodiment, the target atlas can be named according to the user input information. Fig.19 As shown, in this embodiment, step 1504 may include the following steps 1901 to 1902:
[0185] Step 1901, receiving the atlas naming information input by the user.
[0186] Step 1902, generate an atlas name based on the atlas naming information.
[0187] In this embodiment, step 1504 may be located after step 1503 .
[0188] In this embodiment, after the target atlas is generated, the atlas naming information input by the user can be received, and the atlas name can be generated based on the atlas naming information. For example, the user can long press the cover of the target atlas to call up the atlas renaming interface, and enter the atlas naming information in the atlas renaming interface, and the terminal generates the atlas name based on the atlas naming information input by the user.
[0189] Another embodiment of the present application also provides a shooting method. In this embodiment, in the image display area of the atlas display interface of the target atlas, the target images can be displayed in the order of shooting, that is, the first shot is displayed first. Since the target image shot first is processed before the target image shot later, the target image shot first is displayed first, so the processed target image can be displayed first, thereby avoiding the user from seeing the prompt of being processed or seeing blurred photos when entering the gallery to view photos, that is, preventing the unprocessed photos from being displayed first, which brings a bad experience to the user.
[0190] For example, Fig. 20 As shown, the target atlas includes a first target image 201 , a second target image 202 and a third target image 203 . The shooting time of the first target image 201 is earlier than the shooting time of the second target image 202 , and the shooting time of the second target image 202 is earlier than the shooting time of the third target image 202 .
[0191] In this embodiment, a quick display image can be generated based on the preview image on the shooting interface, and a quick display image list can be generated based on the quick display image, and the quick display image list can be displayed in the index area of the album display interface; wherein the index area is located above or below the image display area. Compared with the prior art that uses a Jpeg thumbnail as a quick display image, an index can be quickly established, and millisecond-level index display can be achieved.
[0192] like Fig.21 As shown, the atlas display interface 210 includes an image display area 211 and an index area 212. The index area 212 is located below the image display area 211. The image display area 211 is used to display the target image 172 in the target atlas, and the index area 212 is used to display a pop-up image list. The pop-up image list includes pop-up images 214 of all target images 172 in the target atlas.
[0193] In this embodiment, after generating the target atlas, the following steps may be further included:
[0194] In the atlas display interface of the target atlas, for each target image, the target image can be processed separately according to the interactive operation input by the user. Among them, the interactive operation is to export the target image from the target atlas, or the interactive operation is to delete the target image from the target atlas, or the interactive operation is to edit the target image, or the interactive operation is to export the target image from the target atlas to a common album after editing it, or the interactive operation is to delete the target image from the target atlas after editing it. Editing the target image includes beautification, graffiti, and adding watermarks, tags, etc., but is not limited to this. Compared with the prior art, which can only select and export images in the atlas, the operability of the atlas is improved.
[0195] like Fig.21 As shown, on the album display interface 210, the user can select the target image 172 in the image display area 211, and export the selected target image 172 from the target album to a common album, wherein the selected target image 172 will display a first selection mark 211, and at the same time, the corresponding pop-up image 214 will also display a second selection mark 215.
[0196] In this embodiment, after the target atlas is generated, the following steps 2301 and 2302 may be further included:
[0197] Step 2301: In the atlas display interface of the target atlas, receiving user input for adjusting the arrangement order of the target images.
[0198] Step 2302: adjusting the arrangement order of the target images according to the arrangement order adjustment operation.
[0199] In this embodiment, in the atlas display interface of the target atlas, a user input for adjusting the arrangement order of the target images may be received, and the arrangement order of the target images may be adjusted according to the arrangement order adjustment operation.
[0200] For example, the terminal includes a touch screen. In the target atlas display interface, the target images are arranged in the order of shooting by default. If the user wants to adjust the order of the target images, the user can perform a drag operation on the target images to adjust the order of the target images.
[0201] In this embodiment, if Fig.24 As shown, the target atlas cover 241 includes an atlas logo 242, which indicates that the target atlas is generated in response to the uninterrupted click operation. That is, the atlas generated in response to the uninterrupted click operation has a special logo, and the user can identify the atlas through the special logo of the atlas.
[0202] Fig.25 FIG. 1 is a block diagram of a photographing device according to an exemplary embodiment. Fig.25As shown, in this embodiment, the shooting device is configured with a camera application, and the device includes:
[0203] The detection module 251 is configured to detect a click operation of a user clicking a camera button on the camera interface of the camera application;
[0204] The determination module 252 is configured to determine whether at least two adjacent click operations are continuous click operations;
[0205] The generation module 253 is configured to generate a target atlas in response to at least two adjacent click operations when at least two of the click operations belong to the uninterrupted click operations; wherein the target atlas includes at least two target images taken in response to the at least two click operations.
[0206] An embodiment of the present application further proposes a terminal, comprising a processor and a memory; the memory is used to store a computer program executable by the processor; the processor is used to execute the computer program in the memory to implement the shooting method of any of the above embodiments.
[0207] The embodiments of the present application further provide a computer-readable storage medium. When the executable computer program in the storage medium is executed by a processor, the shooting method of any of the above embodiments can be implemented.
[0208] An embodiment of the present application further provides a computer program product, including a computer program, which implements the method of any of the above embodiments when executed by a processor.
[0209] Regarding the device in the above embodiment, the specific manner in which the processor performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0210] Fig.26 900 is a block diagram of a terminal according to an exemplary embodiment. For example, terminal 900 may be provided as a server. Fig.26 , the device 900 includes a processing component 922, which further includes one or more processors, and a memory resource represented by a memory 932 for storing instructions executable by the processing component 922, such as an application. The application stored in the memory 932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 922 is configured to execute instructions to perform the above-mentioned method for shooting.
[0211] The device 900 may also include a power component 926 configured to perform power management of the device 900, a wired or wireless network interface 950 configured to connect the device 900 to a network, and an input / output (I / O) interface 958. The device 900 may operate based on an operating system stored in the memory 932, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or the like.
[0212] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 932 including instructions, which can be executed by the processing component 922 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0213] In the present invention, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. The term "plurality" refers to two or more than two, unless otherwise clearly defined.
[0214] The above description of the embodiments is to facilitate those of ordinary skill in the art to understand and apply the present application. It is obvious that those familiar with the art can easily make various modifications to these embodiments and apply the general principles described herein to other embodiments without having to pay creative labor. Therefore, the present application is not limited to the embodiments herein, and improvements and modifications made by those skilled in the art based on the contents disclosed in the present application without departing from the scope and spirit of the present application are within the scope of the present application.
Claims
1. A shooting method, It is characterized in that Applied to camera applications, the method comprises: Detecting a click operation of a user clicking a camera button on a shooting interface of the camera application; Determining whether at least two adjacent click operations are uninterrupted click operations; When it belongs to the uninterrupted click operation, a target atlas is generated in response to at least two of the click operations; wherein the target atlas includes at least two target images taken in response to the at least two click operations.
2. The photographing method according to claim 1, It is characterized in that The camera application is configured on the terminal, and the determining whether at least two adjacent click operations are uninterrupted click operations includes: In response to each of the click operations, generating a shooting request; Determining that the terminal supports the uninterrupted clicking operation; When the current shooting request is triggered, checking whether the target image generated in response to the previous shooting request is returned to the camera application; If it returns, it is determined that at least two adjacent click operations belong to uninterrupted click operations; if it does not return, it is determined that at least two adjacent click operations do not belong to uninterrupted click operations.
3. The photographing method according to claim 2, It is characterized in that The determining that the terminal supports the uninterrupted click operation includes: After the shooting request reaches the hardware abstraction layer HAL, check whether there is a quick display stream and determine whether the continuous click switch is turned on; When the continuous click switch is turned on, the continuous shooting function is executed according to the continuous click logic; during the execution of the continuous shooting function, a pop-up image of the target image, a notification message and the target image are generated; wherein the notification message indicates whether the next shooting request can be issued; When the quick display stream exists, sending the notification message to the camera application; Determine whether the terminal supports the uninterrupted click operation according to the notification message; wherein, when the notification message indicates that the next shooting request can be issued, it is determined that the terminal supports the uninterrupted click operation; when the notification message indicates that the next shooting request cannot be issued, it is determined that the terminal does not support the uninterrupted click operation.
4. The photographing method according to claim 3, It is characterized in that The terminal includes an image sensor; after generating a shooting request in response to each of the click operations, the terminal further includes: Determine a shooting count according to the number of the shooting requests; the shooting count is the number of images to be shot; the initial value of the shooting count is the number of the shooting requests; The continuous shooting function is executed according to the uninterrupted clicking logic, including: Generate the pop-up image based on the preview image on the shooting interface; Performing image processing on the initial image captured by the image sensor to generate the target image; When one of the target images is generated, the shooting count and the current queue depth of the processing queue are updated; wherein each processing task in the processing queue is used to capture an initial image and perform image processing on the initial image to obtain the target image; the updated shooting count is the number of the shooting requests minus the number of the generated target images, and the current queue depth is equal to the updated shooting count; The notification message is generated according to the remaining capacity of the memory, the current queue depth, the CPU usage and the specified conditions; wherein, when the remaining capacity of the memory, the current queue depth and the CPU usage meet the specified conditions, the notification message indicates that the next shooting request can be issued; when the remaining capacity of the memory, the current queue depth and the CPU usage do not meet the specified conditions, the notification message indicates that the next shooting request cannot be issued.
5. The photographing method according to claim 1, It is characterized in that The determining whether at least two adjacent click operations are uninterrupted click operations includes: In response to each of the click operations, generating a shooting request; Determine the shooting interval between the current shooting request and the previous shooting request; Whether at least two adjacent click operations belong to uninterrupted click operations is determined based on the comparison result between the shooting interval and the specified time interval; wherein, when the comparison result indicates that the shooting interval is less than the specified time interval, at least two adjacent click operations belong to uninterrupted click operations, and when the comparison result indicates that the shooting interval is greater than the specified time interval, at least two adjacent click operations do not belong to uninterrupted click operations.
6. The photographing method according to claim 1, It is characterized in that Also includes: When at least two adjacent click operations are uninterrupted click operations, an atlas name of the target atlas is generated.
7. The photographing method according to claim 6, It is characterized in that The generating of the atlas name of the target atlas includes: When the scene recognition function is turned on, scene recognition is performed based on the target image to obtain scene type information; An atlas name of the target atlas is generated based on the scene type information.
8. The photographing method according to claim 7, It is characterized in that The performing scene recognition based on the target image to obtain scene type information includes: Acquire the first target image generated in the target atlas to obtain an image to be recognized; Scene recognition is performed based on the image to be recognized to obtain the scene type information.
9. The photographing method according to claim 6, It is characterized in that The generating of the atlas name of the target atlas includes: Receive atlas naming information input by the user; The atlas name is generated based on the atlas naming information.
10. The photographing method according to claim 6, It is characterized in that The generating of the atlas name of the target atlas includes: Determining a naming rule for the target atlas; The atlas name is generated based on the naming rule.
11. The photographing method according to claim 10, It is characterized in that The naming rule is to generate the atlas name according to the generation order of the target atlas; and the generating the atlas name based on the naming rule includes: Determining the generation order of the target atlas; The atlas names are generated based on the generation order of the target atlases.
12. The photographing method according to claim 3, It is characterized in that Also includes: In the image display area of the atlas display interface of the target atlas, the target images are displayed in the order of shooting.
13. The photographing method according to claim 12, It is characterized in that Also includes: A quick display image list is generated according to the quick display image, and the quick display image list is displayed in an index area of the atlas display interface; wherein the index area is located above or below the image display area.
14. The photographing method according to claim 1, It is characterized in that After generating the target atlas in response to at least two of the click operations, the method further includes: In the atlas display interface of the target atlas, for each target image, the target image is processed according to an interactive operation input by a user; wherein the interactive operation includes at least one of exporting, deleting and editing the target image from the target atlas.
15. The photographing method according to claim 1, It is characterized in that After generating the target atlas in response to at least two of the click operations, the method further includes: In the atlas display interface of the target atlas, receiving a user input for adjusting the arrangement order of the target images; The arrangement order of the target images is adjusted according to the arrangement order adjustment operation.
16. The photographing method according to claim 15, It is characterized in that The camera application is configured on a terminal, and the terminal has a touch screen; the arrangement order adjustment operation is a drag operation for the target image.
17. The photographing method according to claim 1, It is characterized in that The atlas cover of the target atlas includes an atlas logo, and the atlas logo indicates that the target atlas is an atlas generated in response to the uninterrupted click operation.
18. A photographing device, It is characterized in that The device is equipped with a camera application, comprising: A detection module is configured to detect a click operation of a user clicking a camera button on a shooting interface of the camera application; A determination module, configured to determine whether at least two adjacent click operations are uninterrupted click operations; The generation module is configured to generate a target atlas in response to at least two adjacent click operations when at least two of the adjacent click operations belong to the uninterrupted click operations; wherein the target atlas includes at least two target images taken in response to the at least two click operations.
19. A terminal, It is characterized in that It comprises a memory and a processor, wherein the memory is used to store a computer program executable by the processor; and the processor is used to execute the computer program in the memory to implement the method according to any one of claims 1 to 17.
20. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the executable computer program in the storage medium is executed by a processor, the method according to any one of claims 1 to 17 can be implemented.
21. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 17 is implemented.
