Image shooting method and device, equipment and storage medium
Through AI, the scene mode is recognized and the photography parameters are automatically adjusted, and the user needs to adjust the photography parameters multiple times in the shooting scene is solved, which can quickly capture high-quality images and improve the user experience.
Patent Information
- Application Number
- CN202311523874.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-15
- Publication Date
- 2025-05-16
AI Technical Summary
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.
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, adjusting photography parameters of the camera module, and shooting when shooting operations are detected.
It realizes automatic recognition of scene mode and obtains corresponding photography parameters, saving shooting time and improving shooting efficiency and user experience.
Smart Images

Figure CN120017957A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of image processing technology, and in particular to an image shooting method, apparatus, device and storage medium. Background Art
[0002] With the development of image processing technology, more and more users use mobile terminals to shoot images. When using mobile terminals to shoot images, the imaging quality of the image can be improved by adjusting the photographic parameters according to different shooting scenes.
[0003] 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, and ultimately obtain appropriate exposure and clarity.
[0004] However, the inventors have discovered that the prior art 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, which results in a long time spent on manually adjusting the photography parameters and easily misses the shooting opportunity, thus reducing the user experience. Summary of the invention
[0005] The embodiments of the present disclosure provide an image shooting method, apparatus, device and storage medium, which can reduce the time for adjusting photography parameters and improve user experience.
[0006] In a first aspect, an embodiment of the present disclosure provides an image capturing method, including:
[0007] 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;
[0008] Acquire target photography parameters corresponding to the scene mode, and adjust the photography parameters of the camera module to the target photography parameters;
[0009] 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.
[0010] In a second aspect, an embodiment of the present disclosure provides an image capturing device, including:
[0011] 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;
[0012] An adjustment module, used for acquiring target photography parameters corresponding to the scene mode, and adjusting the photography parameters of the camera module to the target photography parameters;
[0013] The shooting module is used for, in response to detecting a shooting operation, shooting according to the target photography parameters through the camera module to obtain an image under the target photography parameters.
[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0015] A processor, and a memory communicatively connected to the processor;
[0016] The memory stores computer-executable instructions;
[0017] The processor executes the computer-executable instructions stored in the memory to implement the image capturing method as described in the first aspect above.
[0018] 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.
[0019] 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 capturing method as described in the first aspect above.
[0020] The image capture method, device, equipment and storage medium provided in this embodiment include: in response to a preset mode, collecting a preview image through a camera module, and identifying the scene mode corresponding to the preview image; obtaining the target photography parameters corresponding to the scene mode, and adjusting the photography parameters of the camera module to the target photography parameters; in response to detecting a shooting operation, shooting according to the target photography parameters through the camera module to obtain an image under the target photography parameters. In the embodiment of the present 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 improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 creative labor.
[0022] Figure 1 A schematic diagram of an application scenario of an image capturing method provided by an embodiment of the present disclosure;
[0023] Figure 2 A flowchart of an image capturing method provided by an embodiment of the present disclosure;
[0024] Figure 3 A schematic diagram of an image capturing method provided by an embodiment of the present disclosure;
[0025] Figure 4 A flowchart of another image capturing method provided by an embodiment of the present disclosure;
[0026] Figure 5 A structural block diagram of an image capturing device provided by an embodiment of the present disclosure;
[0027] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0029] 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.
[0030] 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, according to different shooting scenes, the imaging quality of the images can be improved by adjusting the shooting parameters.
[0031] In the prior art, when a user uses a mobile terminal to capture an image, he can manually adjust the camera's focal length, shutter speed, aperture and other photographic parameters according to the shooting scene, and finally obtain 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, which results in a long time spent on manually adjusting the photographic parameters and easily misses 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 re-adjusting the photographic parameters. In this case, frequent adjustment of the photographic parameters further reduces the user experience.
[0032] It can be seen that how to quickly adjust the photographic parameters in a certain shooting scene to improve shooting efficiency is a problem that needs to be solved urgently.
[0033] 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 the photographic parameters corresponding to the scene mode are automatically matched, so as to improve the shooting efficiency. The specific steps may include: first, in response to the preset mode, the preview image is captured by the 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 the detection of the shooting operation, the camera module is used to shoot according to the target photographic parameters to obtain the 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 and improves shooting efficiency, thereby improving user experience.
[0034] The application scenarios of the embodiments of the present disclosure are explained below:
[0035] The image capturing method provided by the embodiment of the present disclosure can be applied to a scene where photographic parameters are quickly determined when switching scenes. Figure 1 Schematic diagram of an application scenario of an image capturing method provided by an embodiment of the present disclosure. Figure 1As shown, 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 the shooting efficiency and the user experience. The image capture method provided by the embodiment of the present disclosure is described in detail below using a detailed embodiment.
[0036] Figure 2 The flowchart of an image capturing method provided by an embodiment of the present disclosure is shown in FIG. The execution subject of the image capturing method may be a terminal. Figure 2 As shown, the method includes:
[0037] S201. In response to a preset mode, a preview image is captured by a camera module, and a scene mode corresponding to the preview image is identified.
[0038] In the 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.
[0039] In some embodiments, the preset mode can be automatically entered when the camera module is turned on. Accordingly, the process of determining to enter the preset mode includes: in response to detecting the opening operation of the camera module, determining to enter the preset mode. Exemplarily, the camera module can be a camera. If the camera is turned on, the preset mode is entered.
[0040] In other embodiments, the user may also control whether to enter the preset mode through a switch corresponding to the preset mode. Accordingly, the process of determining whether to enter the preset mode includes: in response to detecting the opening operation of the camera module, determining the opening state information corresponding to the preset mode, if the opening state information is on, then determining to enter the preset mode, if the opening state information is off, then determining to enter the manual mode. The manual mode is a mode for manually obtaining the target photography parameters corresponding to the scene mode.
[0041] It should be noted that if Figure 3 As shown in the figure, in preset mode, you can first use AI scene recognition to get 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).
[0042] In the disclosed embodiment, 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 such as the image brightness, image saturation and shooting object corresponding to the preview image may change.
[0043] Optionally, the neural network model can identify the scene mode corresponding to the preview image based on the 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 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. The photographed object can be a person, a scene, etc.
[0044] Optionally, the scene mode includes one or more of a starry sky mode, a sunset mode, a rain silk mode, a raindrop mode, a blue sky and white cloud mode, a frozen stream mode, a busy traffic mode, a night scene mode, a streamer shutter mode and a Tyndall mode.
[0045] 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 identified preview image is the starry sky mode.
[0046] 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 identified preview image is a sunset mode.
[0047] 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.
[0048] Exemplarily, in response to the image information including the photographed object being a vehicle, and the image brightness being less than a third preset brightness value, the scene mode corresponding to the identified preview image is a busy traffic mode.
[0049] In the embodiment of the present application, the values of the first preset brightness value, the second preset brightness value, and the third preset brightness value are not specifically limited and can be set and modified as needed.
[0050] It should be noted that if Figure 3 As shown, the neural network model can be a trained AI model, through which AI scene recognition is performed to obtain image information of the preview image, and the scene mode corresponding to the preview image is obtained through the image information.
[0051] Here, the scene mode corresponding to the preview image can be automatically identified through the neural network model, which improves the recognition efficiency of the scene mode and further improves the user experience.
[0052] 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 also 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.
[0053] Optionally, the indicator of the scene mode may be the name of the scene mode. The first preset position may be located at any position of the display interface, for example, at the top of the display interface or at the bottom of the display interface. The display interface is an interface for displaying the preview image.
[0054] S202: Acquire target photography parameters corresponding to the scene mode, and adjust the photography parameters of the camera module to the target photography parameters.
[0055] In the disclosed embodiment, 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 the multiple scene modes. Among them, the scene mode is used to distinguish different scenes. Optionally, the scene mode can be a 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 a 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.
[0056] 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.
[0057] Exemplarily, as shown in Table 1, the multiple scene modes include: starry sky mode, sunset mode, rain mode, raindrop mode, blue sky and white cloud mode, frozen stream mode, busy traffic mode, night scene mode and streamer shutter mode, and the number of photography parameters corresponding to each scene mode can be multiple. Among them, the photography parameters corresponding to different scene modes can be the same. As shown in Table 1, the photography parameters corresponding to the busy traffic mode, the night scene mode and the streamer shutter mode can be the same.
[0058] Table 1 The photography parameters corresponding to each of the multiple scene modes
[0059]
[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, enhancing image color depth, etc. Therefore, the present application can improve the imaging quality of the captured image while improving the shooting efficiency.
[0061] Optionally, after obtaining the target photography parameters corresponding to the scene mode, the target photography parameters corresponding to the scene mode can also be displayed, so that the user can know the photography parameters currently used. 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 can be located at any position on the display interface, for example, at the top of the display interface or at the bottom of the display interface.
[0062] S203, in response to detecting a shooting operation, shooting is performed by a camera module according to target photography parameters to obtain an image under the target photography 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, shooting is performed multiple times by a camera module to obtain an image under a target photography parameter. The target photography parameter may include a plurality of adjusted photography parameters. Accordingly, this step includes: in response to detecting a shooting operation, adjusting the target photography parameter to obtain a plurality of adjusted photography parameters, wherein the difference between the adjusted photography parameter and the target photography parameter is less than a preset value; for each adjusted photography parameter, shooting is performed by a camera module according to the adjusted photography parameter to obtain initial images corresponding to each of the plurality of adjusted photography parameters; synthesizing the initial images corresponding to each of the plurality of adjusted photography parameters to obtain an image under the target photography parameter.
[0065] It should be noted that the target photography parameter may include one or more. When the target photography parameter includes multiple parameters, one of the photography parameters may be adjusted individually, or multiple photography parameters may be adjusted as a whole. Exemplarily, the target photography parameters include focal length parameters, shutter speed, sensitivity parameters, and aperture parameters; the shutter speed, sensitivity parameters, aperture parameters, and other parameters may be adjusted individually to obtain multiple adjusted photography parameters, or the shutter speed, sensitivity parameters, aperture parameters, and other parameters may be adjusted as a whole to obtain multiple adjusted photography 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 may be set and modified as required.
[0067] The image shooting method provided in this embodiment: in response to a preset mode, a preview image is captured by a camera module, and a scene mode corresponding to the preview image is identified; target photography parameters corresponding to the scene mode are obtained, and the photography parameters of the camera module are adjusted to the target photography parameters; in response to detecting a shooting operation, the camera module is used to shoot according to the target photography parameters to obtain an image under the target photography parameters. In the embodiment of the present application, since the scene mode can be automatically identified and the parameters corresponding to the scene mode can be obtained, professional images can be shot without manually adjusting the parameters, which saves shooting time, improves shooting efficiency, and thus improves user experience.
[0068] Figure 4 This 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. Figure 4 As shown, the method for updating the photography 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, adjusting the photographic parameter according to the adjustment operation.
[0070] In some embodiments, the adjustment operation may be an operation of increasing the photographic parameter, an operation of decreasing the photographic parameter, or an operation of resetting the photographic parameter.
[0071] Exemplarily, 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 100 corresponding to ISO is adjusted 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 according to 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: in response to receiving the update operation, the photography parameter template is updated according to the adjusted photography parameters.
[0074] Exemplarily, 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 an 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 personalized shooting needs of the user, thereby further improving the user experience.
[0076] In some embodiments, the 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 of adding a scene mode, obtaining the scene mode to be added and the 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 photographic parameter to be added may be input by the user in an input box. Accordingly, in response to detecting the operation of adding a scene mode, obtaining the scene mode and photographic parameter to be added includes: in response to detecting the operation of adding a scene mode, displaying a scene mode input box and an input box corresponding to at least one photographic parameter; obtaining information input in the scene mode input box to obtain the scene mode to be added, and obtaining information input in the input boxes corresponding to each photographic parameter to obtain the photographic parameter.
[0078] Exemplarily, the information input in the scene mode input box is: backlight mode. The at least one photography parameter includes: 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.
[0079] In the disclosed embodiment, 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] Figure 5 This is a structural block diagram of an image capturing device provided by an embodiment of the present disclosure. Figure 5 The device includes: an identification module 501, an adjustment module 502 and a shooting module 503.
[0081] The recognition module 501 is used to capture a preview image through a camera module in response to a preset mode, and to recognize a scene mode corresponding to the preview image;
[0082] An adjustment module 502, 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;
[0083] The shooting module 503 is used for, in response to detecting a shooting operation, shooting 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 also includes: an adding module; the adding module is used to obtain the scene mode and photographic parameters to be added in response to detecting an adding operation of a scene mode; 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 state information corresponding to the preset mode, if the opening state information is on, determining to enter the preset mode, if the opening state 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 by 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 by 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 the image 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 used to display an indication mark 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 also 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, the adjustment module 502 and the 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 described in detail in this embodiment.
[0093] Figure 6 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present disclosure. Figure 6 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 terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0094] like Figure 6 As shown, 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 to 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: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[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 contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a 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 executed.
[0097] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit 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 of the above.
[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 an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via 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 flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a 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 the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. 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, 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0104] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may 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 may 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 the preset mode, a preview image is captured by a camera module, and a scene mode corresponding to the preview image is identified;
[0107] Acquire target photography parameters corresponding to the scene mode, and adjust the photography parameters of the camera module to the target photography parameters;
[0108] 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.
[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 each of a plurality of scene modes.
[0111] According to one or more embodiments of the present disclosure, it also includes: in response to detecting an adjustment operation of a photographic parameter corresponding to any scene mode in the photographic parameter template, adjusting the photographic parameter according to the adjustment operation; and updating the photographic parameter template according to the adjusted photographic parameter.
[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 a scene mode and a photographic parameter to be added; associating the scene mode and the photographic parameter, 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: in response to detecting an opening operation of the camera module, determining to enter the preset mode; 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 according to the target photographic parameters by the camera module to obtain an image under the target photographic parameters includes: 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 by 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 the image 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 a 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 of a 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 acquiring 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] 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;
[0120] An adjustment module, used for acquiring target photography parameters corresponding to the scene mode, and adjusting the photography parameters of the camera module to the target photography parameters;
[0121] The shooting module is used for, in response to detecting a shooting operation, shooting 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 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.
[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 also includes: an adding module; the adding module is used to obtain the scene mode and photographic parameters to be added in response to detecting an adding operation of a scene mode; 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 state information corresponding to the preset mode, if the opening state information is on, determining to enter the preset mode, if the opening state 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 the image 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 used to display an indication mark 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 also 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, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution 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 as described in the first aspect and various possible designs of the first aspect.
[0135] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[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 are 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 actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. An image capturing method, characterized in that: include: 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, characterized in that 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, characterized in that: 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, characterized in that Also includes: 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, characterized in that: Also includes: 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, characterized in that 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, characterized in that 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, characterized in that: 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, characterized in that: 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, characterized in that: include: 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, used for acquiring target photography parameters corresponding to the scene mode, and adjusting the photography parameters of the camera module to the target photography parameters; The shooting module is used for, in response to detecting a shooting operation, shooting according to the target photography parameters through the camera module to obtain an image under the target photography parameters.
11. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; 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, characterized in that: 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, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the image capturing method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method and device for adjusting shooting parameter, storage medium and mobile terminal
CN107820020A
Image processing method and device, storage medium and electronic equipment
CN110445988A
Long-focus shooting method and electronic device
CN111212235A
Video shooting method and electronic equipment
CN111526314A
Cited By
Video recording method and device, electronic equipment and readable storage medium
CN119653033A