Image capture method and apparatus, and device and storage medium

Through AI, the scene mode is recognized and the photography parameters are automatically adjusted, which solves the problem that users need to adjust the photography parameters multiple times in the shooting scene, achieving rapid shooting and improving user experience.

WO2025103057A1PCT designated stage expired Publication Date: 2025-05-22BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/125263
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-15
Filing Date
2024-10-16
Publication Date
2025-05-22

AI Technical Summary

Technical Problem

In a certain shooting scene, the user needs to adjust the photography parameters multiple times to obtain appropriate exposure and clarity, which makes it take longer to manually adjust the photography parameters, which reduces the user experience.

Method used

Through AI, the scene mode of the current environment is identified and the photography parameters corresponding to the scene mode are automatically matched, reducing the time for users to manually adjust the photography parameters. The specific steps include collecting preview images, identifying scene modes, obtaining target photography parameters and adjusting photography parameters of the camera module, and finally shooting in response to the shooting operation.

Benefits of technology

It realizes rapid adjustment of photography parameters, saves shooting time, improves shooting efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024125263_22052025_PF_FP_ABST
    Figure CN2024125263_22052025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are an image capture method and apparatus, and a device and a storage medium. The method comprises: in response to a preset mode, collecting a preview image by means of a camera module, and identifying a scenario mode corresponding to the preview image; acquiring target photographic parameters corresponding to the scenario mode, and adjusting photographic parameters of the camera module to the target photographic parameters; and in response to the detection of a photographing operation, performing photographing by means of the camera module according to the target photographic parameters, so as to obtain an image under the target photographic parameters. Since a scenario mode can be automatically identified, and parameters corresponding to the scenario mode can be acquired, a professional image can be captured without manually adjusting parameters, so that the photographing time is saved on, and the photographing efficiency is improved, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Image shooting method, device, equipment and storage medium

[0001] This application claims priority to Chinese Patent Application No. 202311523874.0 filed on November 15, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] The embodiments of the present disclosure relate to an image capturing method, apparatus, device, and storage medium. Background Art

[0003] With the development of image processing technology, more and more users use mobile terminals to take pictures. When using mobile terminals to take pictures, the imaging parameters can be adjusted according to different shooting scenes to improve the imaging quality of the image.

[0004] In the prior art, when a user uses a mobile terminal to capture an image, he or she can manually adjust the camera's focal length, shutter speed, aperture, and other photographic parameters according to the shooting scene, ultimately obtaining appropriate exposure and clarity.

[0005] However, the inventors have discovered that the existing technology has at least the following technical problems: in a certain shooting scene, the user may need to adjust the photography parameters multiple times to obtain appropriate exposure and clarity, resulting in a long time spent on manually adjusting the photography parameters and easily missing the shooting opportunity, thereby reducing the user experience.

[0006] Summary of the Invention

[0007] The embodiments of the present disclosure provide an image capturing method, apparatus, device, and storage medium, which can reduce the time for adjusting photographic parameters and improve user experience.

[0008] In a first aspect, an embodiment of the present disclosure provides an image capturing method, comprising:

[0009] In response to a preset mode, capturing a preview image through a camera module and identifying a scene mode corresponding to the preview image;

[0010] Acquiring target photography parameters corresponding to the scene mode, and adjusting the photography parameters of the camera module to the target photography parameters;

[0011] In response to detecting a shooting operation, the camera module shoots according to the target photography parameters to obtain an image under the target photography parameters.

[0012] In a second aspect, an embodiment of the present disclosure provides an image capturing device, including:

[0013] an identification module, configured to capture a preview image through a camera module in response to a preset mode, and identify a scene mode corresponding to the preview image;

[0014] an adjustment module, configured to obtain target photographic parameters corresponding to the scene mode and adjust the photographic parameters of the camera module to the target photographic parameters;

[0015] The shooting module is used to respond to detecting a shooting operation and shoot according to the target photography parameters through the camera module to obtain an image under the target photography parameters.

[0016] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0017] a processor, and a memory communicatively connected to the processor;

[0018] The memory stores computer-executable instructions;

[0019] The processor executes the computer-executable instructions stored in the memory to implement the image capturing method as described in the first aspect above.

[0020] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the image capturing method described in the first aspect above is implemented.

[0021] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the image capture method described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0023] FIG1 is a schematic diagram of an application scenario of an image capturing method provided by an embodiment of the present disclosure;

[0024] FIG2 is a flow chart of an image capturing method provided by an embodiment of the present disclosure;

[0025] FIG3 is a schematic diagram of an image capturing method provided by an embodiment of the present disclosure;

[0026] FIG4 is a flow chart of another image capturing method provided by an embodiment of the present disclosure;

[0027] FIG5 is a structural block diagram of an image capturing device provided by an embodiment of the present disclosure;

[0028] FIG6 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0030] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0031] At present, with the development of image processing technology, more and more users use mobile terminals to take pictures. When using mobile terminals to take pictures, the imaging parameters can be adjusted according to different shooting scenes to improve the imaging quality of the image.

[0032] In the prior art, when users use mobile terminals to capture images, they can manually adjust the camera's focal length, shutter speed, aperture, and other photographic parameters according to the shooting scene, ultimately obtaining appropriate exposure and clarity. However, in a certain shooting scene, the user may need to adjust the photographic parameters multiple times to obtain appropriate exposure and clarity, resulting in a long time spent manually adjusting the photographic parameters, and it is easy to miss the shooting opportunity, thus reducing the user experience. In addition, when switching shooting scenes, the user may need to adjust the photographic parameters accordingly to obtain the best effect. For example, switching from indoors to outdoors, or from a brightly lit environment to a dimly lit environment, requires readjusting the photographic parameters. In this case, frequent adjustment of photographic parameters further reduces the user experience.

[0033] Therefore, how to quickly adjust the photography parameters in a certain shooting scene to improve shooting efficiency is an urgent problem to be solved.

[0034] In order to solve the above problems, the present embodiment provides the following technical concept: AI (Artificial Intelligence) is used to identify the current environment, and then automatically matches the photographic parameters corresponding to the scene mode, so as to improve the shooting efficiency. The specific steps may include: first, in response to the preset mode, a preview image is captured by a camera module, and the scene mode corresponding to the preview image is identified; then, the target photographic parameters corresponding to the scene mode are obtained, and the photographic parameters of the camera module are adjusted to the target photographic parameters; finally, in response to detecting the shooting operation, the camera module is used to shoot according to the target photographic parameters to obtain an image under the target photographic parameters. Here, since the scene mode can be automatically identified and the photographic parameters corresponding to the scene mode can be obtained, professional images can be taken without manually adjusting the photographic parameters, which saves shooting time, improves shooting efficiency, and thus improves user experience.

[0035] The following explains the application scenarios of the embodiments of the present disclosure:

[0036] The image capture method provided by the embodiment of the present disclosure can be applied to scenarios where photographic parameters are quickly determined when switching scenes. Figure 1 is a schematic diagram of an application scenario of an image capture method provided by an embodiment of the present disclosure. As shown in Figure 1, when switching from a brightly lit scene (first scene mode) to a dimly lit scene (second scene mode), the image capture method improved by the present application can determine the photographic parameters that conform to the second scene mode, and modify the photographic parameters corresponding to the first scene mode to photographic parameters that conform to the second scene mode. In this process, professional images can be captured without manually adjusting the photographic parameters, which improves shooting efficiency while also improving user experience. The image capture method provided by the embodiment of the present disclosure is described in detail using a detailed embodiment below.

[0037] FIG2 is a flow chart of an image capturing method provided by an embodiment of the present disclosure. The image capturing method may be executed by a terminal. As shown in FIG2 , the method includes:

[0038] S201 . In response to a preset mode, capture a preview image through a camera module, and identify a scene mode corresponding to the preview image.

[0039] In an embodiment of the present disclosure, the preset mode may be an automatic mode, in which the scene mode corresponding to the preview image may be automatically identified, and the target photography parameters corresponding to the scene mode may be automatically acquired.

[0040] In some embodiments, the preset mode may be automatically entered upon turning on the camera module. Accordingly, determining whether to enter the preset mode includes: determining to enter the preset mode in response to detecting an operation of turning on the camera module. Exemplarily, the camera module may be a camera. If the camera is turned on, the preset mode is entered.

[0041] In other embodiments, the user may also control whether to enter the preset mode by using a switch corresponding to the preset mode. Accordingly, the process of determining whether to enter the preset mode includes: in response to detecting the camera module being turned on, determining the on-state information corresponding to the preset mode; if the on-state information is on, determining to enter the preset mode; if the on-state information is off, determining to enter the manual mode. The manual mode is a mode for manually obtaining the target photography parameters corresponding to the scene mode.

[0042] It should be noted that, as shown in Figure 3, in preset mode, you can first use AI scene recognition to obtain the scene mode corresponding to the preview image, and then match the target photography parameters corresponding to the scene mode. In manual mode, users can independently select the target photography parameters corresponding to the scene mode. For example, users can select the target photography parameters corresponding to the starry sky mode (ISO: 3200, shutter speed: 10s, focal length: infinity).

[0043] In the disclosed embodiments, the preview image is a real-time image captured by the camera module. When the shooting scene changes, the image information of the preview image also changes. For example, when moving from an indoor shooting scene to an outdoor shooting scene, the image information corresponding to the preview image, such as image brightness, image saturation, and the subject, may change.

[0044] Optionally, the neural network model can identify a scene mode corresponding to the preview image based on image information of the preview image. Accordingly, identifying the scene mode corresponding to the preview image includes: inputting the preview image into the neural network model, identifying the image information of the preview image using the neural network model, and identifying the scene mode corresponding to the preview image based on the image information; wherein the image information includes image brightness, image saturation, and at least one subject. The subject can be a person, scenery, etc.

[0045] Optionally, the scene mode includes one or more of starry sky mode, sunset mode, rain mode, raindrop mode, blue sky and white cloud mode, frozen stream mode, traffic mode, night scene mode, streamer shutter mode and Tyndall mode.

[0046] Exemplarily, in response to the image information including the shooting object being stars, and the image brightness being less than a first preset brightness value, the scene mode corresponding to the preview image is identified as the starry sky mode.

[0047] Exemplarily, in response to the image information including the shooting object being the sun, and the image brightness being less than a second preset brightness value, the scene mode corresponding to the preview image is identified as sunset mode.

[0048] Exemplarily, in response to the image information including the shooting object being raindrops, the scene mode corresponding to the identified preview image is raindrop mode.

[0049] Exemplarily, in response to the image information including the shooting object being a vehicle and the image brightness being less than a third preset brightness value, the scene mode corresponding to the preview image is identified as a busy traffic mode.

[0050] In the embodiment of the present application, there is no specific limitation on the values ​​of the first preset brightness value, the second preset brightness value, and the third preset brightness value, and they can be set and modified as needed.

[0051] It should be noted that, as shown in FIG3 , the neural network model may be a trained AI model, which performs AI scene recognition through the AI ​​model to obtain image information of the preview image, and obtains the scene mode corresponding to the preview image through the image information.

[0052] Here, the neural network model can automatically identify the scene mode corresponding to the preview image, thereby improving the recognition efficiency of the scene mode and thus improving the user experience.

[0053] In some embodiments, after determining the scene mode corresponding to the preview image, an indicator of the scene mode corresponding to the preview image may be displayed to facilitate the user to know the current scene. Accordingly, the method further includes: displaying an indicator of the scene mode corresponding to the preview image at a first preset position on the display interface.

[0054] Optionally, the scene mode indicator may be the name of the scene mode. The first preset position may be located at any position on the display interface, for example, at the top or at the bottom of the display interface. The display interface is an interface for displaying the preview image.

[0055] S202: Acquire target photography parameters corresponding to the scene mode, and adjust the photography parameters of the camera module to the target photography parameters.

[0056] In the embodiment of the present disclosure, the target photography parameters can be obtained through the photography parameter template. Accordingly, obtaining the target photography parameters corresponding to the scene mode includes: obtaining the target photography parameters corresponding to the scene mode from the photography parameter template, wherein the photography parameter template includes photography parameters corresponding to each of a plurality of scene modes. The scene mode is used to distinguish different scenes. Optionally, the scene mode can be the name corresponding to the scene; for example, the scene mode can be a starry sky mode, a sunset mode, etc. Optionally, the scene mode can also be the number corresponding to the scene. For example, the scene mode can be 001, 002, etc., wherein 001 corresponds to the starry sky scene and 002 corresponds to the sunset scene.

[0057] Optionally, the target photography parameters include one or more of a focus mode, a focal length parameter, a shutter speed, a sensitivity parameter, an aperture parameter, an exposure compensation parameter, and a white balance parameter. That is, the number of photography parameters corresponding to each scene mode may be one or more.

[0058] For example, as shown in Table 1, the multiple scene modes include: Starry Sky Mode, Sunset Mode, Raindrop Mode, Raindrop Mode, Blue Sky and White Clouds Mode, Frozen Stream Mode, Bustling Traffic Mode, Night Scene Mode, and Light Stream Shutter Mode. Each scene mode may correspond to multiple photography parameters. The photography parameters corresponding to different scene modes may be the same. As shown in Table 1, the photography parameters corresponding to Bustling Traffic Mode, Night Scene Mode, and Light Stream Shutter Mode may be the same.

[0059] Table 1 The corresponding photographic parameters of multiple scene modes

[0060] In Table 1, for each scene mode, the image captured under the photographic parameters corresponding to the scene mode can achieve the effects of degrading image noise, enhancing image texture details, and enhancing image color depth. Therefore, the present application can improve the imaging quality of the captured image while improving shooting efficiency.

[0061] Optionally, after obtaining the target photography parameters corresponding to the scene mode, the target photography parameters corresponding to the scene mode may also be displayed to facilitate the user's understanding of the currently used photography parameters. Accordingly, the method further includes: displaying the target photography parameters corresponding to the scene mode at a second preset position on the display interface. The second preset position may be located anywhere on the display interface, for example, at the top or bottom of the display interface.

[0062] S203 : In response to detecting a shooting operation, shooting is performed by a camera module according to target shooting parameters to obtain an image under the target shooting parameters.

[0063] In some embodiments, this step includes: in response to detecting a shooting operation, shooting once according to target photography parameters by a camera module to obtain an image under the target photography parameters.

[0064] In other embodiments, in response to detecting a shooting operation, the camera module shoots multiple times to obtain an image under the target photography parameters. The target photography parameters may include multiple adjusted photography parameters. Accordingly, this step includes: in response to detecting a shooting operation, adjusting the target photography parameters to obtain multiple adjusted photography parameters, wherein the difference between the adjusted photography parameters and the target photography parameters is less than a preset value; for each adjusted photography parameter, the camera module shoots according to the adjusted photography parameters to obtain initial images corresponding to the multiple adjusted photography parameters; and synthesizing the initial images corresponding to the multiple adjusted photography parameters to obtain an image under the target photography parameters.

[0065] It should be noted that the target photographic parameters may include one or more. When the target photographic parameters include multiple parameters, one of the photographic parameters may be adjusted individually, or multiple photographic parameters may be adjusted as a whole. For example, the target photographic parameters include focal length, shutter speed, sensitivity, and aperture. The shutter speed, sensitivity, and aperture parameters may be adjusted individually to obtain multiple adjusted photographic parameters, or the shutter speed, sensitivity, and aperture parameters may be adjusted as a whole to obtain multiple adjusted photographic parameters.

[0066] In the embodiment of the present disclosure, the numerical values ​​of the preset values ​​and the numerical values ​​of the plurality of adjusted photographic parameters are not specifically limited and can be set and modified as needed.

[0067] The image capture method provided in this embodiment includes: in response to a preset mode, capturing a preview image through a camera module and identifying the scene mode corresponding to the preview image; obtaining target photography parameters corresponding to the scene mode, and adjusting the photography parameters of the camera module to the target photography parameters; and in response to detecting a shooting operation, capturing the image according to the target photography parameters through the camera module to obtain an image under the target photography parameters. In this embodiment of the application, since the scene mode can be automatically identified and the parameters corresponding to the scene mode can be obtained, professional images can be captured without manually adjusting the parameters, saving shooting time, improving shooting efficiency, and thus enhancing the user experience.

[0068] FIG4 is a flow chart of another image capturing method provided by an embodiment of the present disclosure. In this embodiment, the user can also update the photographic parameters in the photographic parameter template to meet the user's personalized photographic requirements. As shown in FIG4 , the method for updating the photographic parameters may include:

[0069] S401: In response to detecting an adjustment operation for a photographic parameter corresponding to any scene mode in a photographic parameter template, adjust the photographic parameter according to the adjustment operation.

[0070] In some embodiments, the adjustment operation may be an operation of increasing a photographic parameter, an operation of decreasing a photographic parameter, or an operation of resetting a photographic parameter.

[0071] For example, in response to detecting an adjustment operation (operation of increasing ISO) for the “photographic parameter ISO (Light Sensibility Ordinance)” corresponding to the “bustling traffic mode”, the photographic parameter corresponding to ISO is adjusted from 100 to 200.

[0072] S402: Update the photography parameter template according to the adjusted photography parameters.

[0073] In some embodiments, the photography parameter template is automatically updated based on the adjusted photography parameters. In other embodiments, the user can determine whether to update the photography parameter template through an update operation. Accordingly, this step is to update the photography parameter template based on the adjusted photography parameters in response to receiving the update operation.

[0074] For example, a dialog box of "Whether to update the photography parameter template" can be displayed in the display interface, and the dialog box includes two buttons: "Yes" and "No"; in response to the button "Yes" being triggered, it is determined that the update operation has been received, and the photography parameter template is updated according to the adjusted photography parameters.

[0075] In the disclosed embodiment, since the user can update the photography parameters in the photography parameter template, this can better meet the user's personalized shooting needs, thereby further improving the user experience.

[0076] In some embodiments, a user can also customize and add a new scene mode. Accordingly, the method for adding a new scene mode may include: in response to detecting an operation to add a scene mode, obtaining the scene mode to be added and photography parameters; associating the scene mode to be added with the photography parameters and storing them in a photography parameter template.

[0077] Optionally, the scene mode and photography parameters to be added may be input by the user into an input box. Accordingly, in response to detecting an operation to add a scene mode, obtaining the scene mode and photography parameters to be added includes: in response to detecting the operation to add a scene mode, displaying a scene mode input box and an input box corresponding to at least one photography parameter; obtaining information input into the scene mode input box to obtain the scene mode to be added; and obtaining information input into input boxes corresponding to each photography parameter to obtain the photography parameter.

[0078] For example, the information input into the scene mode input box is: backlight mode. The at least one photography parameter includes: one or more of: focus mode, focal length parameter, shutter speed, sensitivity parameter, aperture parameter, exposure compensation parameter and white balance parameter.

[0079] In the embodiment of the present disclosure, since the user can customize and add a new scene mode, when using the camera for subsequent shooting, the photography parameters corresponding to the new scene mode can be directly called without manually setting each photography parameter, thereby saving shooting time, improving shooting efficiency, and further improving the user experience.

[0080] FIG5 is a block diagram of an image capturing device according to an embodiment of the present disclosure. Referring to FIG5 , the device includes: a recognition module 501 , an adjustment module 502 , and a capturing module 503 .

[0081] The recognition module 501 is configured to capture a preview image through a camera module in response to a preset mode and identify a scene mode corresponding to the preview image;

[0082] An adjustment module 502 is configured to obtain target photographic parameters corresponding to the scene mode and adjust the photographic parameters of the camera module to the target photographic parameters;

[0083] The shooting module 503 is used to respond to detecting a shooting operation and shoot according to the target photography parameters through the camera module to obtain an image under the target photography parameters.

[0084] According to one or more embodiments of the present disclosure, the recognition module 501 recognizes the scene mode corresponding to the preview image, specifically comprising: inputting the preview image into a neural network model, recognizing image information of the preview image through the neural network model, and recognizing the scene mode corresponding to the preview image through the image information; wherein the image information includes image brightness, image saturation, and at least one photographed object.

[0085] According to one or more embodiments of the present disclosure, the adjustment module 502 obtains the target photography parameters corresponding to the scene mode, specifically including: obtaining the target photography parameters corresponding to the scene mode from a photography parameter template, wherein the photography parameter template includes photography parameters corresponding to each of a plurality of scene modes.

[0086] According to one or more embodiments of the present disclosure, the device also includes: an update module; the update module is used to adjust the photographic parameters according to the adjustment operation in response to detecting an adjustment operation of the photographic parameters corresponding to any scene mode in the photographic parameter template; and update the photographic parameter template according to the adjusted photographic parameters.

[0087] According to one or more embodiments of the present disclosure, the device further includes: an adding module; the adding module is configured to obtain the scene mode and photographic parameters to be added in response to detecting an adding operation of a scene mode; and associate the scene mode and the photographic parameters and store them in the photographic parameter template.

[0088] According to one or more embodiments of the present disclosure, the identification module 501 determines the process of entering the preset mode, specifically including: in response to detecting the opening operation of the camera module, determining to enter the preset mode; or, in response to detecting the opening operation of the camera module, determining the opening status information corresponding to the preset mode, if the opening status information is on, determining to enter the preset mode, if the opening status information is off, determining to enter the manual mode, wherein the manual mode is a mode for manually obtaining the target photography parameters corresponding to the scene mode.

[0089] According to one or more embodiments of the present disclosure, the target photographic parameters include multiple adjusted photographic parameters; accordingly, the shooting module 503, in response to detecting a shooting operation, shoots according to the target photographic parameters through the camera module to obtain an image under the target photographic parameters, specifically including: in response to detecting a shooting operation, adjusting the target photographic parameters to obtain multiple adjusted photographic parameters, wherein the difference between the adjusted photographic parameters and the target photographic parameters is less than a preset value; for each adjusted photographic parameter, shooting according to the adjusted photographic parameters through the camera module to obtain initial images corresponding to each of the multiple adjusted photographic parameters, and synthesizing the initial images corresponding to each of the multiple adjusted photographic parameters to obtain images under the target photographic parameters.

[0090] According to one or more embodiments of the present disclosure, the device further includes: a display module; the display module is configured to display an indicator of the scene mode corresponding to the preview image at a first preset position of the display interface.

[0091] According to one or more embodiments of the present disclosure, the target photography parameters include one or more of a focus mode, a focal length parameter, a shutter speed, a sensitivity parameter, an aperture parameter, an exposure compensation parameter, and a white balance parameter; accordingly, the display module is further used to: display the target photography parameters corresponding to the scene mode at a second preset position of the display interface.

[0092] The recognition module 501, adjustment module 502 and shooting module 503 are connected in sequence. The image shooting device provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0093] FIG6 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. Referring to FIG6 , the electronic device 600 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG6 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0094] As shown in Figure 6, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0095] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 6 shows an electronic device 600 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0096] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0097] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0098] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0099] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0100] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0101] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0103] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0104] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0105] In a first aspect, according to one or more embodiments of the present disclosure, there is provided an image capturing method, the method comprising:

[0106] In response to a preset mode, capturing a preview image through a camera module and identifying a scene mode corresponding to the preview image;

[0107] Acquiring target photography parameters corresponding to the scene mode, and adjusting the photography parameters of the camera module to the target photography parameters;

[0108] In response to detecting a shooting operation, the camera module shoots according to the target photography parameters to obtain an image under the target photography parameters.

[0109] According to one or more embodiments of the present disclosure, identifying the scene mode corresponding to the preview image includes: inputting the preview image into a neural network model, identifying image information of the preview image through the neural network model, and identifying the scene mode corresponding to the preview image through the image information; wherein the image information includes image brightness, image saturation, and at least one photographed object.

[0110] According to one or more embodiments of the present disclosure, obtaining the target photography parameters corresponding to the scene mode includes: obtaining the target photography parameters corresponding to the scene mode from a photography parameter template, wherein the photography parameter template includes photography parameters corresponding to multiple scene modes respectively.

[0111] According to one or more embodiments of the present disclosure, it also includes: in response to detecting an adjustment operation of the photographic parameters corresponding to any scene mode in the photographic parameter template, adjusting the photographic parameters according to the adjustment operation; and updating the photographic parameter template according to the adjusted photographic parameters.

[0112] According to one or more embodiments of the present disclosure, the method further includes: in response to detecting an operation of adding a scene mode, acquiring the scene mode and photographic parameters to be added; associating the scene mode and the photographic parameters, and storing them in the photographic parameter template.

[0113] According to one or more embodiments of the present disclosure, the process of determining to enter the preset mode includes: determining to enter the preset mode in response to detecting an opening operation of the camera module; or

[0114] In response to detecting the opening operation of the camera module, the opening status information corresponding to the preset mode is determined. If the opening status information is on, it is determined to enter the preset mode. If the opening status information is off, it is determined to enter the manual mode, wherein the manual mode is a mode for manually obtaining the target photography parameters corresponding to the scene mode.

[0115] According to one or more embodiments of the present disclosure, the target photographic parameters include multiple adjusted photographic parameters; accordingly, in response to detecting a shooting operation, shooting is performed by the camera module according to the target photographic parameters to obtain an image under the target photographic parameters, including: in response to detecting a shooting operation, adjusting the target photographic parameters to obtain multiple adjusted photographic parameters, wherein the difference between the adjusted photographic parameters and the target photographic parameters is less than a preset value; for each adjusted photographic parameter, shooting is performed by the camera module according to the adjusted photographic parameters to obtain initial images corresponding to each of the multiple adjusted photographic parameters, and synthesizing the initial images corresponding to each of the multiple adjusted photographic parameters to obtain images under the target photographic parameters.

[0116] According to one or more embodiments of the present disclosure, after capturing a preview image through a camera module in response to a preset mode and identifying the scene mode corresponding to the preview image, the method further includes: displaying an indicator mark of the scene mode corresponding to the preview image at a first preset position on the display interface.

[0117] According to one or more embodiments of the present disclosure, the target photography parameters include one or more of a focus mode, a focal length parameter, a shutter speed, a sensitivity parameter, an aperture parameter, an exposure compensation parameter, and a white balance parameter; accordingly, after obtaining the target photography parameters corresponding to the scene mode and adjusting the photography parameters of the camera module to the target photography parameters, it also includes: displaying the target photography parameters corresponding to the scene mode at a second preset position of the display interface.

[0118] In a second aspect, according to one or more embodiments of the present disclosure, there is provided an image capturing device, the device comprising:

[0119] an identification module, configured to capture a preview image through a camera module in response to a preset mode, and identify a scene mode corresponding to the preview image;

[0120] an adjustment module, configured to obtain target photographic parameters corresponding to the scene mode and adjust the photographic parameters of the camera module to the target photographic parameters;

[0121] The shooting module is used to respond to detecting a shooting operation and shoot according to the target photography parameters through the camera module to obtain an image under the target photography parameters.

[0122] According to one or more embodiments of the present disclosure, the recognition module identifies the scene mode corresponding to the preview image, specifically comprising: inputting the preview image into a neural network model, identifying image information of the preview image through the neural network model, and identifying the scene mode corresponding to the preview image through the image information; wherein the image information includes image brightness, image saturation, and at least one photographed object.

[0123] According to one or more embodiments of the present disclosure, the adjustment module obtains the target photography parameters corresponding to the scene mode, specifically including: obtaining the target photography parameters corresponding to the scene mode from a photography parameter template, wherein the photography parameter template includes photography parameters corresponding to each of a plurality of scene modes.

[0124] According to one or more embodiments of the present disclosure, the device also includes: an update module; the update module is used to adjust the photographic parameters according to the adjustment operation in response to detecting an adjustment operation of the photographic parameters corresponding to any scene mode in the photographic parameter template; and update the photographic parameter template according to the adjusted photographic parameters.

[0125] According to one or more embodiments of the present disclosure, the device further includes: an adding module; the adding module is configured to obtain the scene mode and photographic parameters to be added in response to detecting an adding operation of a scene mode; and associate the scene mode and the photographic parameters and store them in the photographic parameter template.

[0126] According to one or more embodiments of the present disclosure, the identification module determines the process of entering the preset mode, specifically including: in response to detecting the opening operation of the camera module, determining to enter the preset mode; or, in response to detecting the opening operation of the camera module, determining the opening status information corresponding to the preset mode, if the opening status information is on, determining to enter the preset mode, if the opening status information is off, determining to enter the manual mode, wherein the manual mode is a mode for manually obtaining the target photography parameters corresponding to the scene mode.

[0127] According to one or more embodiments of the present disclosure, the target photographic parameters include multiple adjusted photographic parameters; accordingly, the shooting module, in response to detecting a shooting operation, shoots according to the target photographic parameters through the camera module to obtain an image under the target photographic parameters, specifically including: in response to detecting a shooting operation, adjusting the target photographic parameters to obtain multiple adjusted photographic parameters, wherein the difference between the adjusted photographic parameters and the target photographic parameters is less than a preset value; for each adjusted photographic parameter, shooting according to the adjusted photographic parameters through the camera module to obtain initial images corresponding to each of the multiple adjusted photographic parameters, and synthesizing the initial images corresponding to each of the multiple adjusted photographic parameters to obtain images under the target photographic parameters.

[0128] According to one or more embodiments of the present disclosure, the device further includes: a display module; the display module is configured to display an indicator of the scene mode corresponding to the preview image at a first preset position of the display interface.

[0129] According to one or more embodiments of the present disclosure, the target photography parameters include one or more of a focus mode, a focal length parameter, a shutter speed, a sensitivity parameter, an aperture parameter, an exposure compensation parameter, and a white balance parameter; accordingly, the display module is further used to: display the target photography parameters corresponding to the scene mode at a second preset position of the display interface.

[0130] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0131] The memory stores computer-executable instructions;

[0132] The processor executes the computer-executable instructions stored in the memory to implement the image capturing method as described in the first aspect and various possible designs of the first aspect.

[0133] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the image capture method described in the first aspect and various possible designs of the first aspect is implemented.

[0134] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the image capture method described in the first aspect and various possible designs of the first aspect.

[0135] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0136] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0137] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. An image capturing method, comprising: In response to the preset mode, a preview image is captured by a camera module, and a scene mode corresponding to the preview image is identified; Acquire target photography parameters corresponding to the scene mode, and adjust the photography parameters of the camera module to the target photography parameters; In response to detecting a shooting operation, the camera module performs shooting according to the target photography parameters to obtain an image under the target photography parameters.

2. The method according to claim 1, wherein: The identifying the scene mode corresponding to the preview image includes: The preview image is input into a neural network model, image information of the preview image is identified by the neural network model, and a scene mode corresponding to the preview image is identified by the image information; wherein the image information includes image brightness, image saturation and at least one photographed object.

3. The method according to claim 1, wherein: The obtaining of the target photography parameters corresponding to the scene mode includes: The target photography parameters corresponding to the scene mode are acquired from a photography parameter template, wherein the photography parameter template includes photography parameters corresponding to each of a plurality of scene modes.

4. The method according to claim 3, further comprising: In response to detecting an adjustment operation for a photographic parameter corresponding to any scene mode in the photographic parameter template, adjusting the photographic parameter according to the adjustment operation; The photographic parameter template is updated according to the adjusted photographic parameters.

5. The method according to claim 3, further comprising: In response to detecting an operation of adding a scene mode, acquiring a scene mode to be added and photographic parameters; The scene mode and the photographic parameter are associated and stored in the photographic parameter template.

6. The method according to claim 1, wherein: The process of determining to enter the preset mode includes: In response to detecting an opening operation of the camera module, determining to enter the preset mode; or, In response to detecting the opening operation of the camera module, the opening status information corresponding to the preset mode is determined. If the opening status information is on, it is determined to enter the preset mode. If the opening status information is off, it is determined to enter the manual mode, wherein the manual mode is a mode for manually obtaining the target photography parameters corresponding to the scene mode.

7. The method according to claim 1, wherein: The target photography parameters include a plurality of adjusted photography parameters; Accordingly, in response to detecting the shooting operation, shooting according to the target photography parameters by the camera module to obtain an image under the target photography parameters includes: In response to detecting a shooting operation, adjusting the target photography parameter to obtain a plurality of adjusted photography parameters, wherein a difference between the adjusted photography parameter and the target photography parameter is less than a preset value; For each adjusted photographic parameter, the camera module performs photographing according to the adjusted photographic parameter to obtain initial images corresponding to each of the plurality of adjusted photographic parameters. The initial images corresponding to the plurality of adjusted photographic parameters are synthesized to obtain images under the target photographic parameters.

8. The method according to any one of claims 1 to 7, wherein: After capturing a preview image through a camera module in response to a preset mode and identifying a scene mode corresponding to the preview image, the method further includes: An indication mark of the scene mode corresponding to the preview image is displayed at a first preset position of the display interface.

9. The method according to any one of claims 1 to 7, wherein: The target photography parameters include one or more of a focus mode, a focal length parameter, a shutter speed, a sensitivity parameter, an aperture parameter, an exposure compensation parameter, and a white balance parameter; Correspondingly, after acquiring the target photography parameters corresponding to the scene mode and adjusting the photography parameters of the camera module to the target photography parameters, the method further includes: The target photography parameters corresponding to the scene mode are displayed at a second preset position of the display interface.

10. An image capturing device, comprising: A recognition module, configured to capture a preview image through a camera module in response to a preset mode, and recognize a scene mode corresponding to the preview image; an adjustment module, configured to obtain target photography parameters corresponding to the scene mode, and adjust the photography parameters of the camera module to the target photography parameters; as well as The shooting module is configured to, in response to detecting a shooting operation, shoot according to the target photography parameters through the camera module to obtain an image under the target photography parameters.

11. An electronic device, comprising: A processor, and a memory connected to the processor in communication; wherein, The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the image capturing method according to any one of claims 1 to 9.

12. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the image capturing method according to any one of claims 1 to 9 is implemented.

13. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the image capturing method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Image processing device and method

    CN105302872A

  • Method and device for adjusting shooting parameter, storage medium and mobile terminal

    CN107820020A

  • Video acquisition method and electronic equipment

    CN112532859A

  • Model quantification method and device, terminal and storage medium

    CN114615495A

  • Image shooting method, terminal and storage medium

    CN115914817A