WO2023061326A1 - Photographing method and apparatus, and electronic device - Google Patents

Photographing method and apparatus, and electronic device Download PDF

Info

Publication number
WO2023061326A1
WO2023061326A1 PCT/CN2022/124354 CN2022124354W WO2023061326A1 WO 2023061326 A1 WO2023061326 A1 WO 2023061326A1 CN 2022124354 W CN2022124354 W CN 2022124354W WO 2023061326 A1 WO2023061326 A1 WO 2023061326A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
image
information
target
functional
Prior art date
Application number
PCT/CN2022/124354
Other languages
French (fr)
Chinese (zh)
Inventor
马文超
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023061326A1 publication Critical patent/WO2023061326A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/65Control of camera operation in relation to power supply
    • H04N23/651Control of camera operation in relation to power supply for reducing power consumption by affecting camera operations, e.g. sleep mode, hibernation mode or power off of selective parts of the camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Definitions

  • the present application belongs to the technical field of photographing, and more specifically relates to a photographing method, device and electronic equipment.
  • the current camera has added many special functions. These functions include complex algorithm processing modules, resulting in a sharp increase in power consumption, causing the terminal device to become hot, and reducing the use time of the terminal device.
  • the purpose of the embodiments of the present application is to provide a photographing method, device, and electronic equipment, which can solve the problems in the prior art that the power consumption of the terminal equipment increases during the photographing process and the use time of the terminal equipment is reduced.
  • an embodiment of the present application provides a photographing method applied to electronic equipment, the photographing device includes an image signal processor, the image signal processor includes a plurality of functional modules, and the method includes:
  • a first image is generated when the target function module is in a closed state.
  • an embodiment of the present application provides a photographing device, which is applied to electronic equipment, the photographing device includes an image signal processor, the image signal processor includes a plurality of functional modules, and the device includes:
  • An acquisition module configured to acquire target parameter information when the shooting preview interface is displayed
  • a control module configured to determine a target function module from the plurality of function modules according to the target parameter information, and close the target function module;
  • a generating module configured to generate a first image when the target function module is in a closed state in response to a photographing operation performed on the photographing preview interface.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • the embodiment of the present application further provides an electronic device configured to execute the steps of the method described in the first aspect.
  • the embodiment of the present application provides a computer program product that can be executed by a processor to implement the steps of the method described in the first aspect.
  • the electronic device when the shooting preview interface is displayed, the electronic device will obtain the target parameter information, and according to the target parameter information, determine the target function module from a plurality of function modules, and close the target function module, and then shoot Get the first image. That is, when taking an image, it will first determine the target functional module from multiple functional modules according to the acquired target parameter information, and then turn off the target functional module, thereby reducing the complexity of the photographing process, reducing power consumption, and improving How long the electronic device is used.
  • FIG. 1 is a flow chart of the shooting method provided by the embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a photographing device provided in an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic device provided by another embodiment of the present application.
  • FIG. 1 is a flow chart of a shooting method provided by an embodiment of the present application.
  • the method can be applied to electronic equipment, and the electronic equipment can be a mobile phone, a tablet computer, a notebook computer, and the like.
  • the electronic device includes a camera device, and the camera device includes an image signal processor (Image Signal Processing, ISP) and an image sensor sensor. Wherein, the image signal processor ISP communicates with the image sensor sensor.
  • the image signal processor ISP includes multiple functional modules. The multiple functional modules include a functional module associated with each camera module.
  • the multiple functional modules also include a first image processing sub-module and a second image processing sub-module, wherein the first image processing sub-module is a module for performing special processing on images, and the first image processing sub-module may include a noise reduction module , used to denoise the image.
  • the second image processing sub-module is a module for performing necessary processing on the image, and the second image processing sub-module may include an image conversion module (demosaic module) and an image generation module (JPEG generation module).
  • the demosaic module is used to convert the Bell image (RAW Image Format, RAW) output by the image sensor into a true color image
  • the JPEG generation module is used to convert the true color image into a jpeg format image.
  • an electronic device with a shooting function can provide users with a variety of shooting modes, such as but not limited to: normal camera mode, flash mode, panorama mode, beauty mode, portrait mode, anti-shake mode, night scene mode , Time-lapse camera mode.
  • the so-called flashlight mode refers to controlling the state of the flashlight switch to be on, and usually the flashlight mode will be turned on simultaneously with other modes.
  • the image signal processor ISP includes functional modules associated with each shooting mode.
  • the image signal processor ISP has a corresponding anti-shake module.
  • the image signal processor ISP corresponds to a flash light control module.
  • all the first image processing sub-modules and all the second image processing sub-modules in the image processing module are in the ON state.
  • the electronic device when the camera application is in the anti-shake mode, the electronic device will at least turn on the anti-shake module and the noise reduction module in the image signal processor ISP, and at this time, the anti-shake module in the image signal processor ISP and Noise Cancellation module will be on.
  • the camera application program when the camera application program is in the flashlight mode, the electronic device will at least turn on the flashlight control module and the noise reduction module in the image signal processor ISP. At this time, the flashlight control module and the noise reduction module in the image signal processor ISP will be on. According to the above two examples, it can be seen that when the user selects different shooting modes, different functional modules will be turned on, which will lead to a sharp increase in power consumption of the electronic device and reduce the use time of the electronic device.
  • the photographing method may include the following steps S1100 to S1300 , which will be described in detail below.
  • Step S1100 when the shooting preview interface is displayed, acquire target parameter information.
  • the electronic device includes a camera application program
  • the shooting preview interface is an interface displayed after entering the camera application program.
  • the camera application may be entered in different ways, for example, the user may click the icon of the camera application displayed on the display screen of the electronic device to enter the shooting preview interface of the camera application.
  • the camera application program may be called through the camera call interface of other application programs to enter the shooting preview interface of the camera application program.
  • the user when the shooting preview interface is displayed, the user can select the target shooting mode to be shot in the shooting preview interface.
  • the shooting preview interface provides general photo mode, flash mode, panorama mode, beauty mode, portrait mode, anti-shake mode, night scene mode, time-lapse camera mode, etc.
  • the user can select the anti-shake mode as the target camera mode, and when the target camera mode is the anti-shake mode, the anti-shake module and the noise reduction module in the image signal processor ISP will be turned on.
  • the user can also select the flashlight mode, that is, control the flashlight switch control to be in the on state, and the flashlight control module and the noise reduction module in the image information processor ISP will be in the on state.
  • the target parameter information includes at least one item of shooting scene information and use state information of the electronic device.
  • the above shooting scene information includes at least one of the following: brightness information of the shooting scene, category information of the shooting scene.
  • the brightness information of the shooting scene may be the brightness level of the current shooting scene, for example, the brightness level of the current shooting scene may be medium brightness, low brightness and high brightness.
  • the category information of the shooting scene may be the type of the environment where the current shooting scene is located and the types of the shooting objects in the current shooting scene.
  • the environment type of the current shooting scene may be, for example, whether the current shooting scene is an indoor scene or an outdoor scene.
  • the type of the object to be photographed in the current shooting scene may be, for example, whether the object in the current shooting scene is a person, an object, or a scene.
  • the above use status information includes at least attitude information.
  • the attitude detection module such as a gyroscope in the electronic equipment can detect the current attitude of the electronic equipment to obtain the attitude information of the electronic equipment, and then judge based on the attitude information Whether the electronic equipment shakes.
  • Step S1200 according to the target parameter information, determine the target function module from multiple function modules, and close the target function module.
  • the target parameter information includes at least one item of shooting scene information and usage state information of the electronic device.
  • determining the target function module from the multiple function modules, and closing the target function module may further include: determining from the multiple function modules that is related to the target parameter information The relevant functional modules are used as the target functional modules.
  • the user can select the anti-shake mode as the target camera mode, and when the target camera mode is the anti-shake mode, the anti-shake module and the noise reduction module in the image signal processor ISP will be turned on.
  • the target parameter information is: high brightness, it means that even if no noise reduction processing is performed on the captured image, it will not have a great impact on the photographing effect, and the electronic device can turn off the noise reduction module to reduce the noise reduction processing power of the image. consumption.
  • the target parameter information is attitude information
  • the attitude information indicates that the current shaking of the electronic device is very small
  • the electronic device can turn off the anti-shake module , power consumption for anti-shake processing with noise reduction.
  • the target parameter information is: high brightness and attitude information
  • the attitude information indicates that the current shaking of the electronic device is very small
  • the electronic device can turn off the noise reduction module and the anti-shake module.
  • the user can also select the flashlight mode, that is, control the flashlight switch control to be in the on state, and the flashlight control module and the noise reduction module in the image information processor ISP will be in the on state.
  • the target function modules include a flashlight control module and a noise reduction module.
  • the target function module that needs to be turned off from the function modules that have been turned on. Even after the target function module is turned off, the impact on the photographing effect is very small. At the same time, the power consumption of the electronic equipment is reduced, and the service life of the electronic equipment is increased.
  • the target parameter information includes battery power information.
  • determining the target function module from multiple function modules, and closing the target function module may further include: when the battery power information is lower than the preset power threshold, from the All the functional modules except the image conversion module and the image generation module are determined among the plurality of functional modules as the target functional modules.
  • the target function module includes all function modules except the image conversion module and the image generation module among the plurality of function modules.
  • the preset power threshold may be a value set according to actual application scenarios and actual needs.
  • the preset power threshold may be a preset power percentage, for example, the preset power threshold may be 10%.
  • the battery power information may be a battery power percentage, for example, the battery power information may be 9% or 80%.
  • the electronic device when the shooting preview interface is displayed, since the battery power is 9%, which is 10% lower than the preset power threshold, at this time, the electronic device will shut down other modules except the demosaic module and the JPEG generation module. All functional modules. At this time, it has nothing to do with the shooting mode selected by the user, or it has nothing to do with the shooting mode selected by the user.
  • the battery power of the electronic device when the battery power of the electronic device is lower than the preset power threshold, only two modules, the demosaic module and the JPEG generation module, are turned on to generate thumbnail images, which not only meets the needs of users for taking pictures, but also reduces the electronic cost.
  • the power consumption of the device increases the usage time of the electronic device.
  • Step S1300 in response to the photographing operation performed on the photographing preview interface, when the target function module is in a closed state, a first image is generated.
  • the user can perform a click operation on the camera button on the shooting preview interface, and the electronic device can generate the first image when the target function module is in a closed state.
  • the first image is generated after only turning off functional modules that do not affect image quality image.
  • the first image is the image
  • the second image output by the sensor sensor is processed by the demosaic module and the JPEG generation module.
  • the second image is the above Bell image, and the second image can also be called a thumbnail image. It can be understood that, when the battery power of the electronic device is lower than the preset power threshold, only two modules, the demosaic module and the JPEG generating module, are turned on.
  • the battery power of the electronic device when the battery power of the electronic device is lower than the preset power threshold, only two modules, the demosaic module and the JPEG generation module, are turned on to generate thumbnail images, which not only meets the needs of users for taking photos, but also reduces the cost of electronic devices.
  • the power consumption of the device increases the usage time of the electronic device.
  • the electronic device when the shooting preview interface is displayed, the electronic device will obtain the target parameter information, and according to the target parameter information, determine the target function module from a plurality of function modules, and close the target function module, and then shoot to obtain first image. That is, when taking an image, it will first determine the target functional module from multiple functional modules according to the acquired target parameter information, and then turn off the target functional module, thereby reducing the complexity of the photographing process, reducing power consumption, and improving How long the electronic device is used.
  • the photographing method of the present disclosure may further include the following steps S2100-S2300:
  • Step S2100 when the target function module is in a closed state, acquire a second image.
  • the second image is an image output by the image sensor, and the second image output by the image sensor is the above Bell image.
  • Step S2200 acquiring the function module information preset by the user.
  • the preset functional module information may include: the functional module information of the functional module associated with the target camera mode selected by the user on the shooting preview interface, and the preset functional module information may also include the module function information of the first image processing sub-module .
  • the user selects the anti-shake mode as the target camera mode before, and when the target camera mode is the anti-shake mode, the anti-shake module in the image signal processor ISP is in the on state, and at this time, the noise reduction module is also in the on state,
  • the module information of the anti-shake module and the module information of the noise reduction module may be used as preset functional module information.
  • the flashlight control module in the image information processor ISP will be turned on, and at this time, the noise reduction module is also turned on.
  • the flashlight can be
  • the module information of the control module and the module information of the noise reduction module serve as preset functional module information.
  • Step S2300 saving the second image and functional module information.
  • it may first package the second image and functional module information, and encrypt the packaged third image and functional module information.
  • it will first package the second image and functional module information, then encrypt the packaged second image and functional module information to obtain ciphertext information, and finally save the ciphertext information to the storage module in the electronic device.
  • the above 3A statistics include autofocus (AF), auto exposure (AE) and auto white balance (AWB).
  • it will first pack the second image, functional module information, 3A statistical information, and gyroscope information, and then encrypt the packaged second image, functional module information, 3A statistical information, and gyroscope information to obtain ciphertext information, and finally Save the ciphertext information to the storage module in the electronic device.
  • the automatic exposure (AE) and automatic white balance (AWB) in the 3A statistical information can be recalculated based on the Bell image output by the image sensor, and the automatic focus (AF) in the 3A statistical information is usually after taking a picture It can be determined, so 3A statistical information is not necessary information.
  • the gyroscope information is used to obtain the attitude information of the electronic device, which has an impact on the anti-shake effect.
  • the gyroscope information is only needed when the user selects the shooting mode as the anti-shake mode.
  • the image sensor will store the Bell image output by the image sensor and the function module information preset by the user, so as to restore the normal image after the battery power is sufficient, so as to meet the personalized needs of the user.
  • the shooting method of the present disclosure may further include the following steps S3100-S3300:
  • Step S3100 when the battery power information is greater than the preset power threshold, load the saved second image and functional module information.
  • the battery power information of the electronic device when the battery power information of the electronic device is greater than the preset power threshold, the previously saved second image and function module information will be loaded.
  • Step S3200 enabling the function module indicated by the function module information.
  • Step S3300 when the functional module is in an on state, generate a fourth image according to the second image and the functional module.
  • the battery after the battery is fully charged, it will restore an image with a normal effect based on the Bell image output by the image sensor and the function module information preset by the user, so as to meet the personalized needs of the user.
  • the embodiment of the present application also provides a photographing device 200, which is applied to an electronic device, the electronic device includes a camera, the camera includes an image signal processor, and the image signal processor includes multiple functions Module, the shooting device 200 includes:
  • the obtaining module 210 is configured to obtain target parameter information when the shooting preview interface is displayed.
  • the control module 220 is configured to determine a target function module from the plurality of function modules according to the target parameter information, and shut down the target function module.
  • the generation module 230 is configured to generate a first image when the target function module is in a closed state in response to a photographing operation performed on the photographing preview interface.
  • the target parameter information includes at least one item of shooting scene information and usage state information of the electronic device.
  • the control module 220 is specifically configured to: determine a function module related to the target parameter information from the plurality of function modules as the target function module.
  • the shooting scene information includes at least one of the following: brightness information of the shooting scene, category information of the shooting scene; and,
  • the use status information includes at least posture information.
  • the camera device further includes an image sensor, the plurality of functional modules at least include an image conversion module and an image generation module, and the target parameter information includes battery power information,
  • the control module 220 is further configured to determine, from the plurality of functional modules, all other functional modules except the image conversion module and the image generation module when the battery power information is lower than a preset power threshold.
  • a function module is used as the target function module.
  • the photographing device 200 further includes a storage module (not shown in the figure).
  • the obtaining module 210 is further configured to obtain the second image when the target function module is in a closed state; and obtain function module information preset by the user.
  • a storage module configured to save the second image and the information of the functional modules.
  • the storage module is further configured to: package the second image and the functional module information; encrypt the packaged second image and the functional module information.
  • control module 220 is further configured to load the saved second image and the function module information when the battery power information is greater than a preset power threshold; and, enable the function module The functional module indicated by the information.
  • the generation module 230 is further configured to generate a third image according to the second image and the function module when the function module is in an on state.
  • the photographing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the photographing device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the photographing device provided in the embodiment of the present application can realize various processes realized in the foregoing method embodiments, and to avoid repetition, details are not repeated here.
  • the embodiment of the present application further provides an electronic device 300, including a processor 301 and a memory 302, which are stored in the memory 302 and can be stored in the processor 301.
  • the program or instruction running on the computer when the program or instruction is executed by the processor 301, realizes the various processes of the above-mentioned shooting method embodiment, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, etc. part.
  • the electronic device 400 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 410 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 4 does not constitute a limitation to the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 410 is configured to obtain target parameter information when the shooting preview interface is displayed; determine a target function module from the plurality of function modules according to the target parameter information, and close the target function module ; In response to the photographing operation performed on the photographing preview interface, when the target function module is in a closed state, generating a first image.
  • the target parameter information includes at least one item of shooting scene information and usage state information of the electronic device.
  • the processor 410 is further configured to determine a function module related to the target parameter information from the plurality of function modules as the target function module.
  • the camera device further includes an image sensor
  • the plurality of functional modules include at least an image conversion module and an image generation module
  • the target parameter information includes battery power information.
  • the processor 410 is further configured to determine, from the plurality of functional modules, all other functional modules except the image conversion module and the image generation module when the battery power information is lower than a preset power threshold.
  • a function module is used as the target function module.
  • the processor 410 is further configured to obtain the second image when the target function module is in an off state; obtain the function module information preset by the user; save the second image and the Information about the functional modules described above.
  • the processor 410 is further configured to package the second image and the functional module information; encrypt the packaged second image and the functional module information.
  • the processor 410 is further configured to load the saved second image and the function module information when the battery power information is greater than a preset power threshold; The indicated functional module; when the functional module is in an on state, generate a third image according to the second image and the functional module.
  • the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, and the graphics processor 4041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 407 includes a touch panel 4071 and other input devices 4072 .
  • the touch panel 4071 is also called a touch screen.
  • the touch panel 4071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 409 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 410 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned video processing method embodiment is realized, and the same To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the various aspects of the above shooting method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Abstract

The present application belongs to the technical field of photography. Disclosed are a photographing method and apparatus, and an electronic device. The electronic device comprises a photographing apparatus, the photographing apparatus comprises an image signal processor, and the image signal processor comprises a plurality of functional modules. The method comprises: if a photographic preview interface is displayed, acquiring target parameter information; according to the target parameter information, determining a target functional module from among a plurality of functional modules, and turning off the target functional module; and in response to a picture photographing operation that is implemented on the photographic preview interface, generating a first image when the target functional module is in a turned-off state.

Description

拍摄方法、装置及电子设备Shooting method, device and electronic equipment
相关申请的交叉引用Cross References to Related Applications
本申请要求享有于2021年10月11日提交的名称为“拍摄方法、装置及电子设备”的中国专利申请202111183483.X的优先权,该申请的全部内容通过引用并入本文中。This application claims priority to Chinese patent application 202111183483.X filed on October 11, 2021, entitled "Photographing Method, Device and Electronic Equipment", the entire content of which is incorporated herein by reference.
技术领域technical field
本申请属于拍摄技术领域,更具体地,涉及一种拍摄方法、装置及电子设备。The present application belongs to the technical field of photographing, and more specifically relates to a photographing method, device and electronic equipment.
背景技术Background technique
随着计算机技术发展,终端设备的功能越来越强大,拍照功能是终端设备常见的功能。拍照技术的日新月异,使终端设备的拍照功能越来越强大,用户对拍照要求也越来越高。With the development of computer technology, functions of terminal devices become more and more powerful, and a camera function is a common function of terminal devices. With the rapid development of photographing technology, the photographing function of terminal equipment is becoming more and more powerful, and users have higher and higher requirements for photographing.
当前相机为了追求效果,加入了很多特色功能,这些功能包含了复杂的算法处理模块,导致功耗剧增,引发终端设备发烫,减少了终端设备的使用时长。In order to pursue the effect, the current camera has added many special functions. These functions include complex algorithm processing modules, resulting in a sharp increase in power consumption, causing the terminal device to become hot, and reducing the use time of the terminal device.
发明内容Contents of the invention
本申请实施例的目的是提供一种拍摄方法、装置及电子设备,能够解决现有技术中在拍照过程中,终端设备功耗增大,降低终端设备的使用时长的问题。The purpose of the embodiments of the present application is to provide a photographing method, device, and electronic equipment, which can solve the problems in the prior art that the power consumption of the terminal equipment increases during the photographing process and the use time of the terminal equipment is reduced.
第一方面,本申请实施例提供一种拍摄方法,应用于电子设备,所述摄像装置包括图像信号处理器,所述图像信号处理器包括多个功能模块,所述方法包括:In the first aspect, an embodiment of the present application provides a photographing method applied to electronic equipment, the photographing device includes an image signal processor, the image signal processor includes a plurality of functional modules, and the method includes:
在显示拍摄预览界面的情况下,获取目标参数信息;Obtain target parameter information when the shooting preview interface is displayed;
根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块,并关闭所述目标功能模块;determining a target function module from the plurality of function modules according to the target parameter information, and closing the target function module;
响应于在所述拍摄预览界面实施的拍照操作,在所述目标功能模块处于关闭状态的情况下,生成第一图像。In response to a photographing operation performed on the photographing preview interface, a first image is generated when the target function module is in a closed state.
第二方面,本申请实施例提供一种拍摄装置,应用于电子设备,所述摄像装置包括图像信号处理器,所述图像信号处理器包括多个功能模块,所述装置包括:In the second aspect, an embodiment of the present application provides a photographing device, which is applied to electronic equipment, the photographing device includes an image signal processor, the image signal processor includes a plurality of functional modules, and the device includes:
获取模块,用于在显示拍摄预览界面的情况下,获取目标参数信息;An acquisition module, configured to acquire target parameter information when the shooting preview interface is displayed;
控制模块,用于根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块,并关闭所述目标功能模块;A control module, configured to determine a target function module from the plurality of function modules according to the target parameter information, and close the target function module;
生成模块,用于响应于在所述拍摄预览界面实施的拍照操作,在所述目标功能模块处于关闭状态的情况下,生成第一图像。A generating module, configured to generate a first image when the target function module is in a closed state in response to a photographing operation performed on the photographing preview interface.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。第六方面,本申请实施例还提供一种电子设备,被配置成用于执行如第一方面所述的方法的步骤。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described. In a sixth aspect, the embodiment of the present application further provides an electronic device configured to execute the steps of the method described in the first aspect.
第七方面,本申请实施例提供了一种计算机程序产品,可被处理器执行以实现如第一方面所述的方法的步骤。In a seventh aspect, the embodiment of the present application provides a computer program product that can be executed by a processor to implement the steps of the method described in the first aspect.
在本申请实施例中,在显示拍摄预览界面的情况下,电子设备会获取 目标参数信息,并根据目标参数信息,从多个功能模块中确定出目标功能模块,并关闭目标功能模块,进而拍摄得到第一图像。即,其在拍摄图像时,会根据所获取的目标参数信息,先从多个功能模块中确定出目标功能模块,进而关闭该目标功能模块,进而减少拍照的流程复杂度,降低功耗,提升电子设备的使用时长。In the embodiment of the present application, when the shooting preview interface is displayed, the electronic device will obtain the target parameter information, and according to the target parameter information, determine the target function module from a plurality of function modules, and close the target function module, and then shoot Get the first image. That is, when taking an image, it will first determine the target functional module from multiple functional modules according to the acquired target parameter information, and then turn off the target functional module, thereby reducing the complexity of the photographing process, reducing power consumption, and improving How long the electronic device is used.
附图说明Description of drawings
被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention.
图1为本申请实施例提供的拍摄方法的流程图;FIG. 1 is a flow chart of the shooting method provided by the embodiment of the present application;
图2是本申请实施例提供的拍摄装置的结构示意图;FIG. 2 is a schematic structural diagram of a photographing device provided in an embodiment of the present application;
图3为本申请实施例提供的电子设备的结构示意图;FIG. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
图4为本申请另一实施例提供的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by another embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的拍摄方法进行详细地说明。The photographing method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
请参看图1,其是本申请实施例提供的一种拍摄方法的流程图。该方 法可以应用于电子设备中,该电子设备可以为手机、平板电脑、笔记本电脑等。该电子设备包括摄像装置,该摄像装置包括图像信号处理器(Image Signal Processing,ISP)和图像传感器sensor。其中,图像信号处理器ISP与图像传感器sensor通信连接。图像信号处理器ISP中包括多个功能模块。多个功能模块中包括与每一拍摄模块关联的功能模块。多个功能模块中还包括第一图像处理子模块和第二图像处理子模块,其中,第一图像处理子模块为对图像进行特殊处理的模块,该第一图像处理子模块可以包括降噪模块,用于对图像进行降噪处理。第二图像处理子模块为对图像进行必要处理的模块,该第二图像处理子模块可以包括图像转换模块(demosaic模块)和图像生成模块(JPEG生成模块)。该demosaic模块用于将图像传感器所输出的贝尔图像(RAW Image Format,RAW)转换为真彩图像,该JPEG生成模块用于将真彩图像转换为jpeg格式的图像。Please refer to FIG. 1 , which is a flow chart of a shooting method provided by an embodiment of the present application. The method can be applied to electronic equipment, and the electronic equipment can be a mobile phone, a tablet computer, a notebook computer, and the like. The electronic device includes a camera device, and the camera device includes an image signal processor (Image Signal Processing, ISP) and an image sensor sensor. Wherein, the image signal processor ISP communicates with the image sensor sensor. The image signal processor ISP includes multiple functional modules. The multiple functional modules include a functional module associated with each camera module. The multiple functional modules also include a first image processing sub-module and a second image processing sub-module, wherein the first image processing sub-module is a module for performing special processing on images, and the first image processing sub-module may include a noise reduction module , used to denoise the image. The second image processing sub-module is a module for performing necessary processing on the image, and the second image processing sub-module may include an image conversion module (demosaic module) and an image generation module (JPEG generation module). The demosaic module is used to convert the Bell image (RAW Image Format, RAW) output by the image sensor into a true color image, and the JPEG generation module is used to convert the true color image into a jpeg format image.
通常,具有拍摄功能的电子设备可以为用户提供多种拍摄模式,多种拍摄模式例如但不限于包括:普通拍照模式、闪光灯模式、全景模式、美颜模式、人像模式、防抖模式、夜景模式、延时摄像模式。可以理解的是,所谓的闪光灯模式是指控制闪光灯开关状态处于开启状态,通常闪光灯模式会与其他模式同时开启。对应的,图像信号处理器ISP中包括与每一拍摄模式相关联的功能模块。例如针对于防抖模式,图像信号处理器ISP中对应有防抖模块。又例如针对于闪光灯模式,图像信号处理器ISP中对应有闪光灯控制模块。再例如针对于以上任意一种拍照模式而言,图像处理模块中的所有第一图像处理子模块和所有第二图像处理子模块均处于开启状态。Generally, an electronic device with a shooting function can provide users with a variety of shooting modes, such as but not limited to: normal camera mode, flash mode, panorama mode, beauty mode, portrait mode, anti-shake mode, night scene mode , Time-lapse camera mode. It can be understood that the so-called flashlight mode refers to controlling the state of the flashlight switch to be on, and usually the flashlight mode will be turned on simultaneously with other modes. Correspondingly, the image signal processor ISP includes functional modules associated with each shooting mode. For example, for the anti-shake mode, the image signal processor ISP has a corresponding anti-shake module. For another example, for the flash light mode, the image signal processor ISP corresponds to a flash light control module. For another example, for any one of the above photographing modes, all the first image processing sub-modules and all the second image processing sub-modules in the image processing module are in the ON state.
相关技术中,例如在相机应用程序处于防抖模式的情况下,电子设备至少会开启图像信号处理器ISP中的防抖模块和降噪模块,此时,图像信号处理器ISP中的防抖模块和降噪模块会处于开启状态。又例如在相机应用程序处于闪光灯模式的情况下,电子设备至少会开启图像信号处理器ISP中的闪光灯控制模块和降噪模块,此时,图像信号处理器ISP中的闪光灯控制模块和降噪模块会处于开启状态。根据以上两个例子可知,在用户选择不同的拍摄模式时,均会开启不同的功能模块,从而导致电子设备的 功耗剧增、降低了电子设备的使用时长。In related technologies, for example, when the camera application is in the anti-shake mode, the electronic device will at least turn on the anti-shake module and the noise reduction module in the image signal processor ISP, and at this time, the anti-shake module in the image signal processor ISP and Noise Cancellation module will be on. For another example, when the camera application program is in the flashlight mode, the electronic device will at least turn on the flashlight control module and the noise reduction module in the image signal processor ISP. At this time, the flashlight control module and the noise reduction module in the image signal processor ISP will be on. According to the above two examples, it can be seen that when the user selects different shooting modes, different functional modules will be turned on, which will lead to a sharp increase in power consumption of the electronic device and reduce the use time of the electronic device.
图1中,该拍摄方法可以包括如下步骤S1100~步骤S1300,以下予以详细说明。In FIG. 1 , the photographing method may include the following steps S1100 to S1300 , which will be described in detail below.
步骤S1100,在显示拍摄预览界面的情况下,获取目标参数信息。Step S1100, when the shooting preview interface is displayed, acquire target parameter information.
本实施例中,电子设备中包括相机应用程序,拍摄预览界面为进入相机应用程序后所显示的界面。在此,可以是通过不同的方式进入相机应用程序,例如可以是由用户点击电子设备的显示屏幕上所显示的相机应用程序的图标以进入相机应用程序的拍摄预览界面。又例如也可以是在电子设备中运行其他应用程序的过程中,通过其他应用程序的相机调用接口调用相机应用程序以进入相机应用程序的拍摄预览界面。In this embodiment, the electronic device includes a camera application program, and the shooting preview interface is an interface displayed after entering the camera application program. Here, the camera application may be entered in different ways, for example, the user may click the icon of the camera application displayed on the display screen of the electronic device to enter the shooting preview interface of the camera application. For another example, in the process of running other application programs in the electronic device, the camera application program may be called through the camera call interface of other application programs to enter the shooting preview interface of the camera application program.
本实施例中,在显示拍摄预览界面的情况下,用户可以在拍摄预览界面中选择所要拍摄的目标拍摄模式。In this embodiment, when the shooting preview interface is displayed, the user can select the target shooting mode to be shot in the shooting preview interface.
例如拍摄预览界面提供有普通拍照模式、闪光灯模式、全景模式、美颜模式、人像模式、防抖模式、夜景模式、延时摄像模式等。用户可以选择防抖模式作为目标摄像模式,在目标摄像模式为防抖模式的情况下,图像信号处理器ISP中的防抖模块和降噪模块会处于开启状态。用户也可以选择闪光灯模式即控制闪光灯开关控制处于开启状态,图像信息处理器ISP中的闪光灯控制模块和降噪模块会处于开启状态。For example, the shooting preview interface provides general photo mode, flash mode, panorama mode, beauty mode, portrait mode, anti-shake mode, night scene mode, time-lapse camera mode, etc. The user can select the anti-shake mode as the target camera mode, and when the target camera mode is the anti-shake mode, the anti-shake module and the noise reduction module in the image signal processor ISP will be turned on. The user can also select the flashlight mode, that is, control the flashlight switch control to be in the on state, and the flashlight control module and the noise reduction module in the image information processor ISP will be in the on state.
目标参数信息包括拍摄场景信息、电子设备的使用状态信息中至少一项。The target parameter information includes at least one item of shooting scene information and use state information of the electronic device.
以上拍摄场景信息包括以下至少一项:拍摄场景的亮度信息、拍摄场景的类别信息。拍摄场景的亮度信息可以是当前拍摄场景的亮度等级,例如当前拍摄场景的亮度等级可以为中等亮度、低亮度和高亮度。拍摄场景的类别信息可以是当前拍摄场景所处的环境类型和当前拍摄场景中的拍摄对象中的类型。其中,当前拍摄场景所处的环境类型例如可以是当前拍摄场景是室内场景或室外场景。当前拍摄场景中的拍摄对象的类型例如可以是当前拍摄场景中的对象是人、物体还是景物等。The above shooting scene information includes at least one of the following: brightness information of the shooting scene, category information of the shooting scene. The brightness information of the shooting scene may be the brightness level of the current shooting scene, for example, the brightness level of the current shooting scene may be medium brightness, low brightness and high brightness. The category information of the shooting scene may be the type of the environment where the current shooting scene is located and the types of the shooting objects in the current shooting scene. Wherein, the environment type of the current shooting scene may be, for example, whether the current shooting scene is an indoor scene or an outdoor scene. The type of the object to be photographed in the current shooting scene may be, for example, whether the object in the current shooting scene is a person, an object, or a scene.
以上使用状态信息至少包括姿态信息。本实施例中,可以是在显示拍摄预览界面的情况下,可以是通过电子设备中的陀螺仪等姿态检测模块检 测电子设备当前所处姿态以获得电子设备的姿态信息,进而基于姿态信息才判断电子设备是否晃动。The above use status information includes at least attitude information. In this embodiment, when the shooting preview interface is displayed, the attitude detection module such as a gyroscope in the electronic equipment can detect the current attitude of the electronic equipment to obtain the attitude information of the electronic equipment, and then judge based on the attitude information Whether the electronic equipment shakes.
在显示拍摄预览界面的情况下,获取目标参数信息之后,进入:When the shooting preview interface is displayed, after obtaining the target parameter information, enter:
步骤S1200,根据目标参数信息,从多个功能模块中确定出目标功能模块,并关闭目标功能模块。Step S1200, according to the target parameter information, determine the target function module from multiple function modules, and close the target function module.
在一个例子中,所述目标参数信息包括拍摄场景信息、所述电子设备的使用状态信息中至少一项。该例子中,本步骤S1200中根据目标参数信息,从多个功能模块中确定出目标功能模块,并关闭目标功能模块可以进一步包括:从所述多个功能模块中确定出与所述目标参数信息相关的功能模块,作为所述目标功能模块。In an example, the target parameter information includes at least one item of shooting scene information and usage state information of the electronic device. In this example, in this step S1200, according to the target parameter information, determining the target function module from the multiple function modules, and closing the target function module may further include: determining from the multiple function modules that is related to the target parameter information The relevant functional modules are used as the target functional modules.
例如,用户可以选择防抖模式作为目标摄像模式,在目标摄像模式为防抖模式的情况下,图像信号处理器ISP中的防抖模块和降噪模块会处于开启状态。当目标参数信息为:高亮度,则表明即使不对拍摄的图像进行降噪处理,对拍照效果也不会有较大影响,则电子设备可以关闭降噪模块以减少对图像进行降噪处理的功耗。当目标参数信息为姿态信息,且姿态信息指示电子设备当前晃动非常小,则表明即使不对拍摄的图像进行防抖处理,对拍照效果也不会有较大影响,则电子设备可以关闭防抖模块,以降噪进行防抖处理的功耗。当目标参数信息为:高亮度和姿态信息,且姿态信息指示电子设备当前晃动非常小,则电子设备可以关闭降噪模块和防抖模块。For example, the user can select the anti-shake mode as the target camera mode, and when the target camera mode is the anti-shake mode, the anti-shake module and the noise reduction module in the image signal processor ISP will be turned on. When the target parameter information is: high brightness, it means that even if no noise reduction processing is performed on the captured image, it will not have a great impact on the photographing effect, and the electronic device can turn off the noise reduction module to reduce the noise reduction processing power of the image. consumption. When the target parameter information is attitude information, and the attitude information indicates that the current shaking of the electronic device is very small, it means that even if no anti-shake processing is performed on the captured image, it will not have a great impact on the photo effect, and the electronic device can turn off the anti-shake module , power consumption for anti-shake processing with noise reduction. When the target parameter information is: high brightness and attitude information, and the attitude information indicates that the current shaking of the electronic device is very small, the electronic device can turn off the noise reduction module and the anti-shake module.
又例如,用户也可以选择闪光灯模式即控制闪光灯开关控制处于开启状态,图像信息处理器ISP中的闪光灯控制模块和降噪模块会处于开启状态。即,则目标功能模块包括闪光灯控制模块和降噪模块。当目标参数信息为高亮度且为室外环境,表明即使不开启闪光灯,对拍照效果也不会有较大影响,则电子设备可以关闭闪光灯控制模块以减少闪光灯的功耗。For another example, the user can also select the flashlight mode, that is, control the flashlight switch control to be in the on state, and the flashlight control module and the noise reduction module in the image information processor ISP will be in the on state. That is, the target function modules include a flashlight control module and a noise reduction module. When the target parameter information is high brightness and is an outdoor environment, indicating that even if the flashlight is not turned on, the photographing effect will not be greatly affected, the electronic device may turn off the flashlight control module to reduce the power consumption of the flashlight.
本实施例中,其会基于以上步骤S1100所得到的目标参数信息,从已经开启的功能模块中确定出需要关闭的目标功能模块,即使关闭目标功能模块之后,对拍照效果影响也是非常小的,同时降低了电子设备的功耗,提高电子设备的使用时长。In this embodiment, based on the target parameter information obtained in the above step S1100, it will determine the target function module that needs to be turned off from the function modules that have been turned on. Even after the target function module is turned off, the impact on the photographing effect is very small. At the same time, the power consumption of the electronic equipment is reduced, and the service life of the electronic equipment is increased.
在一个例子中,所述目标参数信息包括电池电量信息。该例子中,本步骤S1200中根据目标参数信息,从多个功能模块中确定出目标功能模块,并关闭目标功能模块可以进一步包括:在电池电量信息低于预设电量阈值的情况下,从所述多个功能模块中确定出除所述图像转换模块和所述图像生成模块之外的其他所有功能模块,作为所述目标功能模块。In one example, the target parameter information includes battery power information. In this example, in this step S1200, according to the target parameter information, determining the target function module from multiple function modules, and closing the target function module may further include: when the battery power information is lower than the preset power threshold, from the All the functional modules except the image conversion module and the image generation module are determined among the plurality of functional modules as the target functional modules.
本例子中,目标功能模块包括多个功能模块中的除图像转换模块和图像生成模块之外的其他所有功能模块。In this example, the target function module includes all function modules except the image conversion module and the image generation module among the plurality of function modules.
预设电量阈值可以是根据实际应用场景和实际需求设置的数值。预设电量阈值可以是预设电量百分数,例如预设电量阈值可以是10%。The preset power threshold may be a value set according to actual application scenarios and actual needs. The preset power threshold may be a preset power percentage, for example, the preset power threshold may be 10%.
电池电量信息可以是电池电量百分数,例如电池电量信息可以是9%,也可以是80%。The battery power information may be a battery power percentage, for example, the battery power information may be 9% or 80%.
本例子中,其在电池电量值低于预设阈值的情况下,会关闭多个功能模块中的除图像转换模块和图像生成模块之外的其他所有功能模块。In this example, when the power level of the battery is lower than the preset threshold, it will shut down all the functional modules except the image conversion module and the image generation module among the multiple functional modules.
示例性地,在显示拍摄预览界面的情况下,由于电池电量为9%,低于预设电量阈值10%,此时,电子设备会关闭除demosaic模块和JPEG生成模块这两个模块以外的其他所有功能模块。此时,其并不关系用户所选择的拍摄模式,或者说是与用户所选择的拍摄模式无关。For example, when the shooting preview interface is displayed, since the battery power is 9%, which is 10% lower than the preset power threshold, at this time, the electronic device will shut down other modules except the demosaic module and the JPEG generation module. All functional modules. At this time, it has nothing to do with the shooting mode selected by the user, or it has nothing to do with the shooting mode selected by the user.
根据本步骤,其在电子设备的电池电量低于预设电量阈值的情况下,仅开启demosaic模块和JPEG生成模块这两个模块生成缩略图像,既满足了用户的拍照需求,用降低了电子设备的功耗,提高了电子设备的使用时长。According to this step, when the battery power of the electronic device is lower than the preset power threshold, only two modules, the demosaic module and the JPEG generation module, are turned on to generate thumbnail images, which not only meets the needs of users for taking pictures, but also reduces the electronic cost. The power consumption of the device increases the usage time of the electronic device.
在根据目标参数信息,从所述多个功能模块中确定出目标功能模块,并关闭所述目标功能模块之后,进入:After determining the target function module from the plurality of function modules according to the target parameter information, and closing the target function module, enter:
步骤S1300,响应于在拍摄预览界面实施的拍照操作,在目标功能模块处于关闭状态的情况下,生成第一图像。Step S1300, in response to the photographing operation performed on the photographing preview interface, when the target function module is in a closed state, a first image is generated.
本实施例中,用户可以针对拍摄预览界面的拍照按钮实施点击操作,电子设备便可在目标功能模块处于关闭状态的情况下,生成第一图像。In this embodiment, the user can perform a click operation on the camera button on the shooting preview interface, and the electronic device can generate the first image when the target function module is in a closed state.
在一个例子中,所述目标参数信息包括拍摄场景信息、所述电子设备的使用状态信息中至少一项的情况下,该第一图像为仅将不影响图像质量 的功能模块关闭后所生成的图像。In one example, when the target parameter information includes at least one item of shooting scene information and usage status information of the electronic device, the first image is generated after only turning off functional modules that do not affect image quality image.
在一个例子中,在目标功能模块为所述多个功能模块中确定出除所述图像转换模块和所述图像生成模块之外的其他所有功能模块的情况下,该第一图像为,将图像传感器sensor所输出的第二图像经过demosaic模块和JPEG生成模块进行处理得到的图像,该第二图像即为以上的贝尔图像,该第二图像也可以称之为缩略图像。可以理解的是,由于在电子设备的电池电量低于预设电量阈值的情况下,仅有demosaic模块和JPEG生成模块这两个模块处于开启状态。In one example, when the target functional modules are all other functional modules determined among the plurality of functional modules except the image conversion module and the image generation module, the first image is the image The second image output by the sensor sensor is processed by the demosaic module and the JPEG generation module. The second image is the above Bell image, and the second image can also be called a thumbnail image. It can be understood that, when the battery power of the electronic device is lower than the preset power threshold, only two modules, the demosaic module and the JPEG generating module, are turned on.
该例子中,由于在电池电量信息低于预设电量阈值的情况下,会关闭除demosaic模块和JPEG生成模块之外的其他所有功能模块,此时仅会生成缩略图像。In this example, when the battery power information is lower than the preset power threshold, all functional modules except the demosaic module and the JPEG generation module will be turned off, and only a thumbnail image will be generated at this time.
该例子中,其在电子设备的电池电量低于预设电量阈值的情况下,仅开启demosaic模块和JPEG生成模块这两个模块生成缩略图像,既满足了用户的拍照需求,用降低了电子设备的功耗,提高了电子设备的使用时长。In this example, when the battery power of the electronic device is lower than the preset power threshold, only two modules, the demosaic module and the JPEG generation module, are turned on to generate thumbnail images, which not only meets the needs of users for taking photos, but also reduces the cost of electronic devices. The power consumption of the device increases the usage time of the electronic device.
根据本申请实施例,在显示拍摄预览界面的情况下,电子设备会获取目标参数信息,并根据目标参数信息,从多个功能模块中确定出目标功能模块,并关闭目标功能模块,进而拍摄得到第一图像。即,其在拍摄图像时,会根据所获取的目标参数信息,先从多个功能模块中确定出目标功能模块,进而关闭该目标功能模块,进而减少拍照的流程复杂度,降低功耗,提升电子设备的使用时长。According to the embodiment of the present application, when the shooting preview interface is displayed, the electronic device will obtain the target parameter information, and according to the target parameter information, determine the target function module from a plurality of function modules, and close the target function module, and then shoot to obtain first image. That is, when taking an image, it will first determine the target functional module from multiple functional modules according to the acquired target parameter information, and then turn off the target functional module, thereby reducing the complexity of the photographing process, reducing power consumption, and improving How long the electronic device is used.
在一个实施例中,在所述目标参数信息包括电池电量信息的情况下,在执行以上步骤S1200在所述根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块之后,本公开的拍摄方法还可以进一步包括如下步骤S2100~S2300:In one embodiment, when the target parameter information includes battery power information, after performing the above step S1200 and determining the target function module from the plurality of function modules according to the target parameter information, The photographing method of the present disclosure may further include the following steps S2100-S2300:
步骤S2100,在所述目标功能模块处于关闭状态的情况下,获取第二图像。Step S2100, when the target function module is in a closed state, acquire a second image.
第二图像为图传感器所输出的图像,图像传感器所输出的第二图像即为以上的贝尔图像。The second image is an image output by the image sensor, and the second image output by the image sensor is the above Bell image.
步骤S2200,获取用户预先设置的功能模块信息。Step S2200, acquiring the function module information preset by the user.
预先设置的功能模块信息可以包括:与用户在拍摄预览界面所选择的目标摄像模式相关联的功能模块的功能模块信息,预先设置的功能模块信息还可以包括第一图像处理子模块的模块功能信息。The preset functional module information may include: the functional module information of the functional module associated with the target camera mode selected by the user on the shooting preview interface, and the preset functional module information may also include the module function information of the first image processing sub-module .
例如,用户之前选择防抖模式作为目标摄像模式,在目标摄像模式为防抖模式的情况下,图像信号处理器ISP中的防抖模块处于开启状态,此时,降噪模块也处于开启状态,在此,可以将该防抖模块的模块信息和降噪模块的模块信息作为预先设置的功能模块信息。For example, the user selects the anti-shake mode as the target camera mode before, and when the target camera mode is the anti-shake mode, the anti-shake module in the image signal processor ISP is in the on state, and at this time, the noise reduction module is also in the on state, Here, the module information of the anti-shake module and the module information of the noise reduction module may be used as preset functional module information.
又例如,用户之前选择闪光灯模式即控制闪光灯开关控制处于开启状态,图像信息处理器ISP中的闪光灯控制模块会处于开启状态,此时,降噪模块也处于开启状态,在此,可以将该闪光灯控制模块的模块信息和降噪模块的模块信息作为预先设置的功能模块信息。For another example, if the user selects the flashlight mode before, that is, the control of the flashlight switch control is turned on, the flashlight control module in the image information processor ISP will be turned on, and at this time, the noise reduction module is also turned on. Here, the flashlight can be The module information of the control module and the module information of the noise reduction module serve as preset functional module information.
步骤S2300,保存第二图像和功能模块信息。Step S2300, saving the second image and functional module information.
本实施例中,其会将图像传感器所输出的贝尔图像、和用户所设置的功能模块信息保存至电子设备中以供后续使用。In this embodiment, it will save the Bell image output by the image sensor and the function module information set by the user to the electronic device for subsequent use.
在一个例子中,其可以是先打包第二图像和功能模块信息,并加密打包后的第三图像和功能模块信息。In an example, it may first package the second image and functional module information, and encrypt the packaged third image and functional module information.
本例子中,其会先打包第二图像和功能模块信息,然后加密打包后的第二图像和功能模块信息得到密文信息,最后保存密文信息至电子设备中的存储模块。In this example, it will first package the second image and functional module information, then encrypt the packaged second image and functional module information to obtain ciphertext information, and finally save the ciphertext information to the storage module in the electronic device.
本实施例中,其还会将图像传感器所输出的贝尔图像、用户所设置的功能模块信息、3A统计信息、陀螺仪信息保存至电子设备中以供后续使用。In this embodiment, it also saves the Bell image output by the image sensor, the functional module information set by the user, 3A statistical information, and gyroscope information to the electronic device for subsequent use.
以上3A统计信息包括自动对焦(AF)、自动曝光(AE)和自动白平衡(AWB)。The above 3A statistics include autofocus (AF), auto exposure (AE) and auto white balance (AWB).
本例子中,其会先打包第二图像、功能模块信息、3A统计信息、陀螺仪信息,然后加密打包后的第二图像、功能模块信息、3A统计信息、陀螺仪信息得到密文信息,最后保存密文信息至电子设备中的存储模块。In this example, it will first pack the second image, functional module information, 3A statistical information, and gyroscope information, and then encrypt the packaged second image, functional module information, 3A statistical information, and gyroscope information to obtain ciphertext information, and finally Save the ciphertext information to the storage module in the electronic device.
可以理解的是,3A统计信息中的自动曝光(AE)和自动白平衡(AWB)可以是根据图像传感器所输出的贝尔图像重新计算出来,3A统计信息中的自动对焦(AF)通常在拍照后就可以确定,所以3A统计信息 不是必要信息。It is understandable that the automatic exposure (AE) and automatic white balance (AWB) in the 3A statistical information can be recalculated based on the Bell image output by the image sensor, and the automatic focus (AF) in the 3A statistical information is usually after taking a picture It can be determined, so 3A statistical information is not necessary information.
可以理解的是,陀螺仪信息是用于获取电子设备的姿态信息,对防抖效果有影响,只有当用户选择拍摄模式为防抖模式的情况才,才会需要陀螺仪信息。It can be understood that the gyroscope information is used to obtain the attitude information of the electronic device, which has an impact on the anti-shake effect. The gyroscope information is only needed when the user selects the shooting mode as the anti-shake mode.
根据本实施例,其会将图像传感器所输出的贝尔图像和用户预先设置的功能模块信息进行存储,以供电池电量充足后恢复出正常效果的图像,从而满足用户的个性化需求。According to this embodiment, it will store the Bell image output by the image sensor and the function module information preset by the user, so as to restore the normal image after the battery power is sufficient, so as to meet the personalized needs of the user.
在一个实施例中,在执行以上步骤S2300保存第二图像和功能模块信息之后,本公开的拍摄方法还可以进一步包括如下步骤S3100~S3300:In one embodiment, after performing the above step S2300 to save the second image and the functional module information, the shooting method of the present disclosure may further include the following steps S3100-S3300:
步骤S3100,在电池电量信息大于预设电量阈值的情况下,加载保存的第二图像和功能模块信息。Step S3100, when the battery power information is greater than the preset power threshold, load the saved second image and functional module information.
本实施例中,其在电子设备的电池电量信息大于预设电量阈值的情况下,会加载之前所保存的第二图像和功能模块信息。In this embodiment, when the battery power information of the electronic device is greater than the preset power threshold, the previously saved second image and function module information will be loaded.
步骤S3200,开启功能模块信息所指示的功能模块。Step S3200, enabling the function module indicated by the function module information.
步骤S3300,在功能模块处于开启状态的情况下,根据第二图像和功能模块,生成第四图像。Step S3300, when the functional module is in an on state, generate a fourth image according to the second image and the functional module.
根据本实施例,其在电池电量充足后,会基于图像传感器所输出的贝尔图像和用户预先设置的功能模块信息,恢复出正常效果的图像,从而满足用户的个性化需求。According to this embodiment, after the battery is fully charged, it will restore an image with a normal effect based on the Bell image output by the image sensor and the function module information preset by the user, so as to meet the personalized needs of the user.
与上述实施例相对应,参见图2,本申请实施例还提供一种拍摄装置200,应用于电子设备,电子设备包括摄像装置,摄像装置包括图像信号处理器,图像信号处理器包括多个功能模块,拍摄装置200包括:Corresponding to the above embodiment, referring to FIG. 2, the embodiment of the present application also provides a photographing device 200, which is applied to an electronic device, the electronic device includes a camera, the camera includes an image signal processor, and the image signal processor includes multiple functions Module, the shooting device 200 includes:
获取模块210,用于在显示拍摄预览界面的情况下,获取目标参数信息。The obtaining module 210 is configured to obtain target parameter information when the shooting preview interface is displayed.
控制模块220,用于根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块,并关闭所述目标功能模块。The control module 220 is configured to determine a target function module from the plurality of function modules according to the target parameter information, and shut down the target function module.
生成模块230,用于响应于在所述拍摄预览界面实施的拍照操作,在所述目标功能模块处于关闭状态的情况下,生成第一图像。The generation module 230 is configured to generate a first image when the target function module is in a closed state in response to a photographing operation performed on the photographing preview interface.
在一个实施例中,所述目标参数信息包括拍摄场景信息、所述电子设 备的使用状态信息中至少一项。控制模块220,具体用于:从所述多个功能模块中确定出与所述目标参数信息相关的功能模块,作为所述目标功能模块。In one embodiment, the target parameter information includes at least one item of shooting scene information and usage state information of the electronic device. The control module 220 is specifically configured to: determine a function module related to the target parameter information from the plurality of function modules as the target function module.
在一个实施例中,所述拍摄场景信息包括以下至少一项:拍摄场景的亮度信息、拍摄场景的类别信息;以及,In one embodiment, the shooting scene information includes at least one of the following: brightness information of the shooting scene, category information of the shooting scene; and,
所述使用状态信息至少包括姿态信息。The use status information includes at least posture information.
在一个实施例中,所述摄像装置还包括图像传感器,所述多个功能模块中至少包括图像转换模块和图像生成模块,所述目标参数信息包括电池电量信息,In one embodiment, the camera device further includes an image sensor, the plurality of functional modules at least include an image conversion module and an image generation module, and the target parameter information includes battery power information,
控制模块220,还用于在所述电池电量信息低于预设电量阈值的情况下,从所述多个功能模块中确定出除所述图像转换模块和所述图像生成模块之外的其他所有功能模块,作为所述目标功能模块。The control module 220 is further configured to determine, from the plurality of functional modules, all other functional modules except the image conversion module and the image generation module when the battery power information is lower than a preset power threshold. A function module is used as the target function module.
在一个实施例中,拍摄装置200还包括存储模块(图中未示出)。In one embodiment, the photographing device 200 further includes a storage module (not shown in the figure).
获取模块210,还用于在所述目标功能模块处于关闭状态的情况下,获取所述第二图像;以及,获取用户预先设置的功能模块信息。The obtaining module 210 is further configured to obtain the second image when the target function module is in a closed state; and obtain function module information preset by the user.
存储模块,用于保存所述第二图像和所述功能模块信息。a storage module, configured to save the second image and the information of the functional modules.
在一个实施例中,存储模块,还用于:打包所述第二图像和所述功能模块信息;加密打包后的所述第二图像和所述功能模块信息。In one embodiment, the storage module is further configured to: package the second image and the functional module information; encrypt the packaged second image and the functional module information.
在一个实施例中,控制模块220,还用于在所述电池电量信息大于预设电量阈值的情况下,加载保存的所述第二图像和所述功能模块信息;以及,开启所述功能模块信息所指示的功能模块。In one embodiment, the control module 220 is further configured to load the saved second image and the function module information when the battery power information is greater than a preset power threshold; and, enable the function module The functional module indicated by the information.
生成模块230,还用于在所述功能模块处于开启状态的情况下,根据所述第二图像和所述功能模块,生成第三图像。The generation module 230 is further configured to generate a third image according to the second image and the function module when the function module is in an on state.
本申请实施例中的拍摄装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network  Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The photographing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的拍摄装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The photographing device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的拍摄装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。The photographing device provided in the embodiment of the present application can realize various processes realized in the foregoing method embodiments, and to avoid repetition, details are not repeated here.
与上述实施例相对应,可选的,如图3所示,本申请实施例还提供一种电子设备300,包括处理器301,存储器302,存储在存储器302上并可在所述处理器301上运行的程序或指令,该程序或指令被处理器301执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Corresponding to the above embodiment, optionally, as shown in FIG. 3 , the embodiment of the present application further provides an electronic device 300, including a processor 301 and a memory 302, which are stored in the memory 302 and can be stored in the processor 301. The program or instruction running on the computer, when the program or instruction is executed by the processor 301, realizes the various processes of the above-mentioned shooting method embodiment, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图4为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、以及处理器410等部件。The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, etc. part.
本领域技术人员可以理解,电子设备400还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图4中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 400 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 410 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 4 does not constitute a limitation to the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
其中,处理器410,用于在显示拍摄预览界面的情况下,获取目标参数信息;根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块,并关闭所述目标功能模块;响应于在所述拍摄预览界面实施的拍照操作,在所述目标功能模块处于关闭状态的情况下,生成第一图像。Wherein, the processor 410 is configured to obtain target parameter information when the shooting preview interface is displayed; determine a target function module from the plurality of function modules according to the target parameter information, and close the target function module ; In response to the photographing operation performed on the photographing preview interface, when the target function module is in a closed state, generating a first image.
在一个实施例中,所述目标参数信息包括拍摄场景信息、所述电子设 备的使用状态信息中至少一项。处理器410,还用于从所述多个功能模块中确定出与所述目标参数信息相关的功能模块,作为所述目标功能模块。In one embodiment, the target parameter information includes at least one item of shooting scene information and usage state information of the electronic device. The processor 410 is further configured to determine a function module related to the target parameter information from the plurality of function modules as the target function module.
在一个实施例中,所述摄像装置还包括图像传感器,所述多个功能模块中至少包括图像转换模块和图像生成模块,所述目标参数信息包括电池电量信息。处理器410,还用于在所述电池电量信息低于预设电量阈值的情况下,从所述多个功能模块中确定出除所述图像转换模块和所述图像生成模块之外的其他所有功能模块,作为所述目标功能模块。In one embodiment, the camera device further includes an image sensor, the plurality of functional modules include at least an image conversion module and an image generation module, and the target parameter information includes battery power information. The processor 410 is further configured to determine, from the plurality of functional modules, all other functional modules except the image conversion module and the image generation module when the battery power information is lower than a preset power threshold. A function module is used as the target function module.
在一个实施例中,处理器410,还用于在所述目标功能模块处于关闭状态的情况下,获取所述第二图像;获取用户预先设置的功能模块信息;保存所述第二图像和所述功能模块信息。In one embodiment, the processor 410 is further configured to obtain the second image when the target function module is in an off state; obtain the function module information preset by the user; save the second image and the Information about the functional modules described above.
在一个实施例中,处理器410,还用于打包所述第二图像和所述功能模块信息;加密打包后的所述第二图像和所述功能模块信息。In one embodiment, the processor 410 is further configured to package the second image and the functional module information; encrypt the packaged second image and the functional module information.
在一个实施例中,处理器410,还用于在所述电池电量信息大于预设电量阈值的情况下,加载保存的所述第二图像和所述功能模块信息;开启所述功能模块信息所指示的功能模块;在所述功能模块处于开启状态的情况下,根据所述第二图像和所述功能模块,生成第三图像。In one embodiment, the processor 410 is further configured to load the saved second image and the function module information when the battery power information is greater than a preset power threshold; The indicated functional module; when the functional module is in an on state, generate a third image according to the second image and the functional module.
应理解的是,本申请实施例中,输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元406可包括显示面板4061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板4061。用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器409可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。It should be understood that, in the embodiment of the present application, the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, and the graphics processor 4041 is used for the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072 . The touch panel 4071 is also called a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 409 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 410 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述视频处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned video processing method embodiment is realized, and the same To avoid repetition, the technical effects will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc. The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the various aspects of the above shooting method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是 手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (19)

  1. 一种拍摄方法,应用于电子设备,所述电子设备包括摄像装置,所述摄像装置包括图像信号处理器,所述图像信号处理器包括多个功能模块,所述方法包括:A shooting method, applied to electronic equipment, the electronic equipment includes a camera, the camera includes an image signal processor, the image signal processor includes a plurality of functional modules, the method includes:
    在显示拍摄预览界面的情况下,获取目标参数信息;Obtain target parameter information when the shooting preview interface is displayed;
    根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块,并关闭所述目标功能模块;determining a target function module from the plurality of function modules according to the target parameter information, and closing the target function module;
    响应于在所述拍摄预览界面实施的拍照操作,在所述目标功能模块处于关闭状态的情况下,生成第一图像。In response to a photographing operation performed on the photographing preview interface, a first image is generated when the target function module is in a closed state.
  2. 根据权利要求1所述的方法,其中,所述目标参数信息包括拍摄场景信息、所述电子设备的使用状态信息中至少一项;The method according to claim 1, wherein the target parameter information includes at least one item of shooting scene information and usage state information of the electronic device;
    所述根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块,包括:The determining the target function module from the plurality of function modules according to the target parameter information includes:
    从所述多个功能模块中确定出与所述目标参数信息相关的功能模块,作为所述目标功能模块。A function module related to the target parameter information is determined from the plurality of function modules as the target function module.
  3. 根据权利要求2所述的方法,其中,所述拍摄场景信息包括以下至少一项:拍摄场景的亮度信息、拍摄场景的类别信息;以及,The method according to claim 2, wherein the shooting scene information includes at least one of the following: brightness information of the shooting scene, category information of the shooting scene; and,
    所述使用状态信息至少包括姿态信息。The use status information includes at least posture information.
  4. 根据权利要求1所述的方法,其中,所述摄像装置还包括图像传感器,所述多个功能模块中至少包括图像转换模块和图像生成模块,所述目标参数信息包括电池电量信息,The method according to claim 1, wherein the camera device further includes an image sensor, the plurality of functional modules at least include an image conversion module and an image generation module, and the target parameter information includes battery power information,
    所述根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块,包括:The determining the target function module from the plurality of function modules according to the target parameter information includes:
    在所述电池电量信息低于预设电量阈值的情况下,从所述多个功能模块中确定出除所述图像转换模块和所述图像生成模块之外的其他所有功能模块,作为所述目标功能模块。When the battery power information is lower than a preset power threshold, determine all functional modules from the plurality of functional modules except the image conversion module and the image generation module as the target functional module.
  5. 根据权利要求4所述的方法,在所述根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块之后,还包括:The method according to claim 4, after determining the target function module from the plurality of function modules according to the target parameter information, further comprising:
    在所述目标功能模块处于关闭状态的情况下,获取第二图像;其中, 所述第二图像为所述图像传感器所输出的图像;Acquiring a second image when the target function module is in a closed state; wherein, the second image is an image output by the image sensor;
    获取用户预先设置的功能模块信息;Obtain the function module information preset by the user;
    保存所述第二图像和所述功能模块信息。Save the second image and the functional module information.
  6. 根据权利要求5所述的方法,所述保存所述第二图像和所述功能模块信息之前,还包括:The method according to claim 5, before saving the second image and the functional module information, further comprising:
    打包所述第二图像和所述功能模块信息;Packing the second image and the functional module information;
    加密打包后的所述第二图像和所述功能模块信息。Encrypting the packaged second image and the functional module information.
  7. 根据权利要求5所述的方法,在所述保存所述第二图像和所述功能模块信息之后,还包括:The method according to claim 5, after the saving of the second image and the functional module information, further comprising:
    在所述电池电量信息大于预设电量阈值的情况下,加载保存的所述第二图像和所述功能模块信息;When the battery power information is greater than a preset power threshold, load the saved second image and the functional module information;
    开启所述功能模块信息所指示的功能模块;Turn on the functional module indicated by the functional module information;
    在所述功能模块处于开启状态的情况下,根据所述第二图像和所述功能模块,生成第三图像。When the functional module is in an on state, a third image is generated according to the second image and the functional module.
  8. 一种拍摄装置,应用于电子设备,所述电子设备包括摄像装置,所述摄像装置包括图像信号处理器,所述图像信号处理器包括多个功能模块,所述装置包括:A photographing device, applied to electronic equipment, the electronic equipment includes a camera, the camera includes an image signal processor, the image signal processor includes a plurality of functional modules, and the device includes:
    获取模块,用于在显示拍摄预览界面的情况下,获取目标参数信息;An acquisition module, configured to acquire target parameter information when the shooting preview interface is displayed;
    控制模块,用于根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块,并关闭所述目标功能模块;A control module, configured to determine a target function module from the plurality of function modules according to the target parameter information, and close the target function module;
    生成模块,用于响应于在所述拍摄预览界面实施的拍照操作,在所述目标功能模块处于关闭状态的情况下,生成第一图像。A generating module, configured to generate a first image when the target function module is in a closed state in response to a photographing operation performed on the photographing preview interface.
  9. 根据权利要求8所述的装置,其中,所述目标参数信息包括拍摄场景信息、所述电子设备的使用状态信息中至少一项;The device according to claim 8, wherein the target parameter information includes at least one item of shooting scene information and usage state information of the electronic device;
    所述控制模块,具体用于:The control module is specifically used for:
    从所述多个功能模块中确定出与所述目标参数信息相关的功能模块,作为所述目标功能模块。A function module related to the target parameter information is determined from the plurality of function modules as the target function module.
  10. 根据权利要求9所述的装置,其中,所述拍摄场景信息包括以下至少一项:拍摄场景的亮度信息、拍摄场景的类别信息;以及,The device according to claim 9, wherein the shooting scene information includes at least one of the following: brightness information of the shooting scene, category information of the shooting scene; and,
    所述使用状态信息至少包括姿态信息。The use status information includes at least posture information.
  11. 根据权利要求8所述的装置,其中,所述摄像装置还包括图像传感器,所述多个功能模块中至少包括图像转换模块和图像生成模块,所述目标参数信息包括电池电量信息,The device according to claim 8, wherein the camera device further includes an image sensor, the plurality of functional modules at least include an image conversion module and an image generation module, and the target parameter information includes battery power information,
    所述控制模块,还用于在所述电池电量信息低于预设电量阈值的情况下,从所述多个功能模块中确定出除所述图像转换模块和所述图像生成模块之外的其他所有功能模块,作为所述目标功能模块。The control module is further configured to, when the battery power information is lower than a preset power threshold, determine from the plurality of functional modules other than the image conversion module and the image generation module All functional modules are used as the target functional modules.
  12. 根据权利要求11所述的装置,还包括:The apparatus of claim 11, further comprising:
    所述获取模块,还用于在所述根据所述目标参数信息,从所述多个功能模块中确定出目标功能模块之后,在所述目标功能模块处于关闭状态的情况下,获取第二图像;其中,所述第二图像为所述图像传感器所输出的图像;The acquisition module is further configured to acquire a second image when the target function module is in a closed state after the target function module is determined from the plurality of function modules according to the target parameter information ; Wherein, the second image is an image output by the image sensor;
    获取用户预先设置的功能模块信息;Obtain the function module information preset by the user;
    存储模块,用于保存所述第二图像和所述功能模块信息。a storage module, configured to save the second image and the information of the functional modules.
  13. 根据权利要求12所述的装置,所述存储模块,还用于:The device according to claim 12, the storage module is further used for:
    所述保存所述第二图像和所述功能模块信息之前,打包所述第二图像和所述功能模块信息;Before saving the second image and the functional module information, pack the second image and the functional module information;
    加密打包后的所述第二图像和所述功能模块信息。Encrypting the packaged second image and the functional module information.
  14. 根据权利要求12所述的装置,所述控制模块,还用于:The device according to claim 12, the control module is further used for:
    在所述保存所述第二图像和所述功能模块信息之后,在所述电池电量信息大于预设电量阈值的情况下,加载保存的所述第二图像和所述功能模块信息;After the saving of the second image and the functional module information, when the battery power information is greater than a preset power threshold, load the saved second image and the functional module information;
    开启所述功能模块信息所指示的功能模块;enabling the functional module indicated by the functional module information;
    所述生成模块,还用于在所述功能模块处于开启状态的情况下,根据所述第二图像和所述功能模块,生成第三图像。The generation module is further configured to generate a third image according to the second image and the function module when the function module is in an on state.
  15. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-7中任一项所述的拍摄方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and operable on the processor, when the program or instruction is executed by the processor, claims 1-7 are implemented The steps of any one of the photographing methods.
  16. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述 程序或指令被处理器执行时实现如权利要求1-7中任一项所述的拍摄方法的步骤。A readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the photographing method according to any one of claims 1-7 are realized.
  17. 一种电子设备,被配置成用于执行如权利要求1-7中任一项所述的的拍摄方法的步骤。An electronic device configured to execute the steps of the photographing method according to any one of claims 1-7.
  18. 一种计算机程序产品,计算机程序产品可被处理器执行以实现如权利要求1-7中任一项所述的拍摄方法的步骤。A computer program product, which can be executed by a processor to implement the steps of the photographing method according to any one of claims 1-7.
  19. 一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,程序或指令被处理器执行时实现如权利要求1-7中任一项所述的拍摄方法的步骤。A chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run programs or instructions, and when the programs or instructions are executed by the processor, the shooting as described in any one of claims 1-7 is realized method steps.
PCT/CN2022/124354 2021-10-11 2022-10-10 Photographing method and apparatus, and electronic device WO2023061326A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111183483.XA CN113873161A (en) 2021-10-11 2021-10-11 Shooting method and device and electronic equipment
CN202111183483.X 2021-10-11

Publications (1)

Publication Number Publication Date
WO2023061326A1 true WO2023061326A1 (en) 2023-04-20

Family

ID=78998411

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124354 WO2023061326A1 (en) 2021-10-11 2022-10-10 Photographing method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN113873161A (en)
WO (1) WO2023061326A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873161A (en) * 2021-10-11 2021-12-31 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN116055859B (en) * 2022-08-29 2023-10-20 荣耀终端有限公司 Image processing method and electronic device
CN116320732B (en) * 2023-04-18 2023-12-05 广州市宏视电子技术有限公司 Solar camera control method and device, solar camera and storage medium
CN117560552A (en) * 2024-01-10 2024-02-13 荣耀终端有限公司 Shooting control method, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379268A (en) * 2012-04-25 2013-10-30 鸿富锦精密工业(深圳)有限公司 Power-saving monitoring system and method
US20130286202A1 (en) * 2012-04-25 2013-10-31 Hon Hai Precision Industry Co., Ltd. Surveillance system capable of saving power
CN104811554A (en) * 2015-04-29 2015-07-29 努比亚技术有限公司 Method and terminal for switching camera modes
CN105843361A (en) * 2016-03-22 2016-08-10 广东欧珀移动通信有限公司 Method for reducing power consumption while photographing, and mobile terminal
JP2018148454A (en) * 2017-03-07 2018-09-20 パナソニックIpマネジメント株式会社 Image processor, image processing system including the same, and electric power control method
CN113873161A (en) * 2021-10-11 2021-12-31 维沃移动通信有限公司 Shooting method and device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395978A (en) * 2017-08-14 2017-11-24 维沃移动通信有限公司 The control method and mobile terminal of a kind of camera module
CN108243489B (en) * 2018-01-17 2020-09-11 维沃移动通信有限公司 Photographing control method and mobile terminal
CN108777767A (en) * 2018-08-22 2018-11-09 Oppo广东移动通信有限公司 Photographic method, device, terminal and computer readable storage medium
CN110933294B (en) * 2019-11-04 2022-11-04 深圳传音控股股份有限公司 Image processing method, terminal and computer storage medium
CN112200825B (en) * 2020-10-14 2022-06-14 长光卫星技术股份有限公司 Space target luminosity inversion method based on Bell coding image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379268A (en) * 2012-04-25 2013-10-30 鸿富锦精密工业(深圳)有限公司 Power-saving monitoring system and method
US20130286202A1 (en) * 2012-04-25 2013-10-31 Hon Hai Precision Industry Co., Ltd. Surveillance system capable of saving power
CN104811554A (en) * 2015-04-29 2015-07-29 努比亚技术有限公司 Method and terminal for switching camera modes
CN105843361A (en) * 2016-03-22 2016-08-10 广东欧珀移动通信有限公司 Method for reducing power consumption while photographing, and mobile terminal
JP2018148454A (en) * 2017-03-07 2018-09-20 パナソニックIpマネジメント株式会社 Image processor, image processing system including the same, and electric power control method
CN113873161A (en) * 2021-10-11 2021-12-31 维沃移动通信有限公司 Shooting method and device and electronic equipment

Also Published As

Publication number Publication date
CN113873161A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
US11838650B2 (en) Photographing using night shot mode processing and user interface
WO2023061326A1 (en) Photographing method and apparatus, and electronic device
US10122942B2 (en) Photo shooting method, device, and mobile terminal
CN104994277B (en) A kind of method and apparatus of mobile communication terminal snapshots
KR20160016068A (en) Method for generating image and electronic device thereof
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
US20200059597A1 (en) Shooting method and terminal
WO2023083132A1 (en) Photographing method and apparatus, and electronic device and readable storage medium
WO2023226612A1 (en) Exposure parameter determining method and apparatus
JP2020516094A (en) Camera control method and terminal
WO2022267506A1 (en) Image fusion method, electronic device, storage medium, and computer program product
CN108540636A (en) A kind of photographic method and device based on dual camera
CN112399237A (en) Screen display control method and device and electronic equipment
WO2023125273A1 (en) Image display method of electronic equipment, image processing circuit and electronic equipment
WO2023020532A1 (en) Image processing method and apparatus, electronic device, and readable storage medium
WO2022095878A1 (en) Photographing method and apparatus, and electronic device and readable storage medium
WO2022042753A1 (en) Photographing method and apparatus, and electronic device
CN112312024A (en) Photographing processing method and device and storage medium
CN112653841A (en) Shooting method and device and electronic equipment
WO2024088163A1 (en) Image processing method and circuit, device, and medium
CN116017146A (en) Image processing method and device
CN113965688A (en) Image sensor, camera module, camera device and control method
CN117956296A (en) Video shooting method and device