A processing method and electronic device
By distinguishing the position and region of the target object during the determination of shooting parameters, and using only the pixel information of the target object as a factor, the problem of unstable shooting effect caused by face detection mechanism is solved, and better shooting effect is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-01
- Publication Date
- 2026-04-14
AI Technical Summary
In existing technologies, face detection mechanisms can cause unexpected human figures to enter the scene during photography, leading the camera to automatically adjust exposure, white balance, and focus, thus affecting the shooting results.
By distinguishing the location and area of the target object when determining the shooting parameters, and using only the pixel information of the target object as a factor in determining the target parameters, the shooting effect is avoided due to unintended objects.
It achieves the avoidance of image shake caused by unexpected objects during portrait detection, ensuring the stability and consistency of shooting results.
Smart Images

Figure CN115866389B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image acquisition technology, and in particular to a processing method and an electronic device. Background Technology
[0002] When a camera takes a picture, face detection helps to improve image quality. This is because, during shooting, the face detection mechanism provides automatic exposure (AE) or automatic white balance (AWB) information for the face, adjusting the AE, AWB, or auto focus (AF) of the image to achieve the desired brightness, color, and focus position. However, face detection can also have some negative effects. For example, when a user wants to take a landscape photo and a passerby enters the scene, the camera will recalculate the AE, AWB, or AF after recognizing the face. The user has no control over this and can only passively wait for the passerby to leave. Summary of the Invention
[0003] In view of this, embodiments of this application provide a processing method and an electronic device to at least solve the above-mentioned technical problems existing in the prior art.
[0004] According to a first aspect of this application, an embodiment of this application provides a processing method, including: obtaining an Nth acquired image; and determining target parameters for the Nth acquired image based on a first method and a second method;
[0005] Before determining the target parameters, the process also includes: determining whether the pixel information of the target object included in the Nth acquired image determined based on the second method should be used as a factor in determining the target parameters.
[0006] Optionally, determining whether to include the pixel information of the target object in the Nth acquired image determined based on the second method as a factor in determining the target parameters includes:
[0007] If the target object is determined to be included in the Nth acquired image based on the second method, the location of the target object is determined.
[0008] If the target object's location belongs to the target region, the pixel information of the target object is used as a factor in determining the target parameters;
[0009] If the target object's location is not within the target area, the target object's pixel information is not used as a factor in determining the target parameters.
[0010] Optionally, the processing method also includes:
[0011] If it is determined based on the second method that the Nth acquired image does not include the target object, the target parameters are determined based on the pixel information of the Nth acquired image determined by the first method.
[0012] Optionally, if the location of the target object does not belong to the target area, the processing method further includes:
[0013] If a confirmation instruction is received, the pixel information of the target object is used as a factor in determining the target parameters.
[0014] Optionally, the confirmation instruction includes any of the following:
[0015] The position of the target object remains unchanged from the Nth acquired image to the (N+M)th acquired image, and a confirmation command is obtained;
[0016] Obtain confirmation action in response to the prompt message, obtain confirmation instruction, and the prompt message is used to indicate whether to include the target object as a factor in the confirmation target parameter.
[0017] Optionally, the processing method also includes:
[0018] Set the target area, which should be smaller than the light-sensitive area of the camera module;
[0019] Setting the target area includes any of the following:
[0020] Obtain input operations and set the target area based on the input operations;
[0021] Set the target area based on the shooting scene.
[0022] According to a second aspect of this application, embodiments of this application provide an electronic device, including:
[0023] Image acquisition device;
[0024] A processor is used to acquire the Nth image; and to determine target parameters for the Nth image based on a first method and a second method.
[0025] Before determining the target parameters, the processor is also used to: determine whether the pixel information of the target object included in the Nth acquired image determined based on the second method is used as a factor in determining the target parameters.
[0026] Optionally, determining whether to include the pixel information of the target object in the Nth acquired image determined based on the second method as a factor in determining the target parameters includes:
[0027] If the target object is determined to be included in the Nth acquired image based on the second method, the location of the target object is determined.
[0028] If the target object's location belongs to the target region, the pixel information of the target object is used as a factor in determining the target parameters;
[0029] If the target object's location is not within the target area, the target object's pixel information is not used as a factor in determining the target parameters.
[0030] Optionally, the processor is further configured to determine target parameters based on pixel information of the Nth acquired image determined in the first manner if it is determined based on the second method that the Nth acquired image does not include the target object.
[0031] Optionally, if the location of the target object does not belong to the target area, the following may also be included:
[0032] If a confirmation instruction is received, the pixel information of the target object is used as a factor in determining the target parameters.
[0033] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0034] Figure 1 This is a flowchart illustrating a processing method in an embodiment of this application;
[0035] Figure 2 This is a flowchart illustrating another processing method in an embodiment of this application;
[0036] Figure 3 This is a schematic diagram illustrating the issuance of prompt information for edge portraits in an embodiment of this application;
[0037] Figure 4 This is a flowchart illustrating another processing method in an embodiment of this application;
[0038] Figure 5 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0040] In existing technologies, to achieve better imaging results, shooting parameters are typically determined in real time based on all pixel information and facial information in the captured image. If an unexpected person, such as a passerby, appears in the scene, their facial information is directly used as the determining factor for the shooting parameters. This can easily lead to jitter in image focus, white balance, and other aspects.
[0041] Therefore, this application provides a processing method applied to electronic devices, such as... Figure 1 As shown, it includes:
[0042] S100, obtain the Nth acquired image.
[0043] In this embodiment, N is a natural number greater than or equal to 1. The Nth acquired image can be obtained through the viewfinder before responding to the image acquisition command. Alternatively, the Nth acquired image can be obtained through the camera after responding to the image acquisition command.
[0044] S200, for the Nth acquired image, the target parameters are determined based on the first method and the second method; wherein, before determining the target parameters, the method further includes: determining whether the pixel information of the target object included in the Nth acquired image determined based on the second method is used as a factor in determining the target parameters.
[0045] In this embodiment, the first method includes, but is not limited to, all pixels in the image, and the second method includes, but is not limited to, a face. The target parameter can be image capture parameters, including, but not limited to, AE, AF, and AWB. When determining the target parameter for the Nth captured image based on the first and second methods, the target parameter is determined based on the pixel information of all pixels in the Nth captured image and the pixel information of the target object in the Nth captured image.
[0046] In practical implementation, when determining the target parameters for the Nth acquired image based on the first method and the second method, the calculation weights of the target parameters for the first method and the second method can be determined first. Then, preliminary target parameters can be determined based on the first method and the second method respectively. Finally, the final target parameters can be determined based on the weights of the first method and the second method and the corresponding preliminary target parameters. For example, if the weight of the first method is determined to be 80%, the weight of the second method is determined to be 20%, the preliminary target parameter determined based on the first method is A, and the preliminary target parameter determined based on the second method is B, then the final target parameter = A*80% + B*20%.
[0047] In this embodiment, although the target parameters are determined by default based on the first method and the second method, before determining the target parameters, the method further includes: determining whether the pixel information of the target object included in the Nth acquired image determined by the second method is used as a factor in determining the target parameters.
[0048] In practice, the first step is to determine whether the target object is included in the Nth acquired image based on the second method. If the target object is included, then it is determined whether the pixel information of the target object is used as a factor in determining the target parameters.
[0049] In this embodiment, if the pixel information of the target object included in the Nth acquired image determined based on the second method is determined as a factor in determining the target parameters, then the target parameters are determined for the Nth acquired image based on the first and second methods. If the pixel information of the target object included in the Nth acquired image determined based on the second method is determined not as a factor in determining the target parameters, then the target parameters for the Nth acquired image can be directly determined based on the first method, or the target parameters can still be determined based on the first and second methods.
[0050] The processing method provided in this application embodiment obtains the Nth captured image; determines target parameters for the Nth captured image based on a first method and a second method; wherein, before determining the target parameters, it further includes: determining whether the pixel information of the target object included in the Nth captured image determined based on the second method is used as a factor in determining the target parameters; thus, when determining the target parameters, both the first method and the second method are used, which can achieve better photo-taking results; and before determining the target parameters, a choice is provided regarding whether to use the pixel information of the target object in the Nth captured image determined based on the second method as a factor in determining the target parameters, so that the pixel information of the surrounding edge objects in the Nth captured image can be selectively excluded from the determination of target parameters according to actual needs, thereby enabling algorithms such as autofocus and auto white balance to not be adjusted based on the surrounding edge objects.
[0051] In an optional embodiment, such as Figure 2 As shown, in step S102, determining whether the pixel information of the target object included in the Nth acquired image determined based on the second method is used as a factor in determining the target parameters includes:
[0052] If the target object is determined to be included in the Nth acquired image based on the second method, the location of the target object is determined.
[0053] If the target object's location belongs to the target region, the pixel information of the target object is used as a factor in determining the target parameters;
[0054] If the target object's location is not within the target area, the target object's pixel information is not used as a factor in determining the target parameters.
[0055] In this embodiment, generally, if the object is the subject of the photograph, it will be prioritized to be located in the target area of the image, such as the central area, so as to achieve better shooting results. Therefore, when determining whether the pixel information of the target object included in the Nth captured image determined based on the second method is used as a factor in determining the target parameters, the determination of whether the Nth captured image includes the target object and whether the position of the target object belongs to the target area can be automatically performed based on the second method.
[0056] In practice, the presence of a target object in the Nth captured image can first be determined by whether a face is detected. If a face is detected, it indicates that the Nth captured image includes the target object based on the second method; if no face is detected, it indicates that the Nth captured image does not include the target object based on the second method. It should be noted that the face is an example provided in the embodiments of this application, and the second method can be face detection, i.e., the target object is a face. Of course, other detection methods can also be used to determine that the target object is an object other than a face, such as eyes, a face, or other objects.
[0057] If the target object is determined to be included in the Nth acquired image based on the second method, then the location of the target object is determined. The location of the target object can be determined based on the position of a detected face. For example, if a face is detected in the center of the image, then the target object's location is the center of the image.
[0058] Once the location of the target object is determined, it can be compared with a preset target area to determine if the target object's location belongs to that area. If the target object belongs to the target area, it is the subject of the photograph. When determining the target parameters, the pixel information of the target object needs to be considered to ensure the final image captures the subject's face effectively. Therefore, determining the pixel information of the target object is a factor in determining the target parameters. If the target object does not belong to the target area, it is a non-subject, such as a passerby, and its pixel information is not a factor in determining the target parameters.
[0059] In some implementations, after determining that the location of the target object belongs to the target area, if the location of the target object remains unchanged from the Nth captured image to the N+Kth image, the pixel information of the target object is determined as a factor in determining the target parameters, so as to prevent the target object from temporarily entering the target area and causing image jitter.
[0060] In this embodiment, if the pixel information of the target object is used as a factor in determining the target parameters, the target parameters are determined based on the first and second methods for the Nth acquired image. Thus, by referencing the pixel information of the target object when determining the target parameters, the brightness of the target object's face in the final image can be guaranteed, ensuring the shooting effect.
[0061] In this embodiment, if the pixel information of the target object is not used as a factor in determining the target parameters, the target parameters are determined directly based on the first method for the Nth acquired image. This ensures that pixel information of non-subject objects is not used in determining the target parameters, thereby guaranteeing that the brightness, white balance, etc., of the image do not change as non-subject objects enter the photographed environment.
[0062] In this embodiment, if it is determined that the Nth acquired image includes the target object based on the second method, and then the pixel information of the target object is determined as a factor in determining the target parameters based on the position of the target object, then the pixel information of the target object in the Nth acquired image can be automatically selected based on the position of the target object to determine whether it is a factor in determining the target parameters. This ensures that the pixel information of the target object in the non-target area is not used as a factor in determining the target parameters, thereby ensuring that the target object in the non-target area appears in the picture and will not affect the brightness, white balance, etc. of the picture.
[0063] In an optional embodiment, if the user is only taking pictures of the scenery and no target object is in the frame, the processing method further includes:
[0064] If it is determined based on the second method that the Nth acquired image does not include the target object, the target parameters are determined based on the pixel information of the Nth acquired image determined by the first method.
[0065] In practice, the default setting determines the target parameters based on the first and second methods. However, if the Nth captured image does not contain the target object, using the first and second methods to determine the target parameters would lower the target parameters in the absence of a target object, since the first and second methods determine the target parameters with certain weights. Therefore, the target parameters can be directly determined based on the pixel information of the Nth captured image determined by the first method. This ensures that the image brightness and white balance are not reduced when the target object is not present in the image, and that these parameters are not affected.
[0066] In an optional embodiment, if the location of the target object does not belong to the target area, the processing method further includes:
[0067] If a confirmation instruction is received, the pixel information of the target object is used as a factor in determining the target parameters.
[0068] In practice, for certain scenarios, even if the target object is not located within the target area, it may still be necessary to use it as the subject of the photograph if the actual situation requires it. In such cases, the pixel information of the target object can be determined by obtaining a confirmation command, which can improve the user experience.
[0069] In one implementation, if the position of the target object remains unchanged from the Nth acquired image to the (N+M)th acquired image, a confirmation command is obtained.
[0070] In this implementation, if the position of the target object remains unchanged from the Nth captured image to the (N+Mth)th captured image, it indicates that the target object has remained in the frame for a relatively long time and is not merely a passerby temporarily entering the frame. In this case, a confirmation command can be generated, confirming that the target object, whose position does not belong to the target area, is the main subject. The pixel information of the target object is used as a factor in determining the target parameters. This allows for the automatic generation of confirmation commands and conforms to the general rules of image acquisition.
[0071] In another implementation, if a confirmation operation is obtained in response to the prompt message, a confirmation instruction is obtained, and the prompt message is used to indicate whether the target object is a factor in the confirmation target parameter.
[0072] In specific implementation, for example, Figure 3 As shown, the Nth acquired image contains multiple target objects, with the target region being the central region. Some of these target objects include, for example... Figure 3 The two girls in the picture are located within the target area, while the locations of some target individuals, such as... Figure 3 If a male character's location is outside the target area, a notification message can be sent to the target character outside the target area, for example... Figure 3 The prompt box shown asks whether to include the target object as a factor in confirming the target parameters. If the user confirms that the target object is included as a factor in confirming the target parameters, a confirmation instruction is received regarding the prompt message. This instruction confirms that the target object, whose location is not within the target area, is the subject, and the pixel information of the target object is used as a factor in determining the target parameters.
[0073] In this implementation, users can choose whether to include target objects that do not belong to the target area as factors in confirming target parameters, which can improve the user experience.
[0074] In an optional embodiment, the processing method further includes:
[0075] Set the target area, which should be smaller than the light-sensitive area of the camera module.
[0076] Setting the target area includes any of the following:
[0077] Obtain input operations and set the target area based on the input operations;
[0078] Set the target area based on the shooting scene.
[0079] In practice, when setting the target area, the user can define the position and size of the target area in the viewfinder to set the target area, thus enabling manual setting of the target area.
[0080] Alternatively, the target area can be automatically set based on the shooting scene in the Nth captured image. This allows for automated setting of the target area that perfectly matches the shooting scene.
[0081] In an optional embodiment, before determining whether the pixel information of the target object included in the Nth acquired image determined based on the second method is used as a factor in determining the target parameters, the processing method further includes:
[0082] If the Nth acquired image is determined to include the target object based on the second method, a second prompt message is issued to the user, which prompts the user whether to close the second method used to determine the target parameters;
[0083] If a confirmation operation is received for the second prompt message, the target parameters are determined for the Nth acquired image based on the first method.
[0084] If no confirmation is received for the second prompt message, the target object is determined for the Nth captured image based on the first and second methods.
[0085] In practice, when the camera is powered on, the default setting is to determine target parameters based on both the first and second methods. After the camera powers on, once a face is detected in the Nth captured image, a second prompt message appears to the user, asking whether to disable the second method. If the user chooses to disable the second method, the target parameters can be determined directly based on the first method, and the camera will no longer identify the target object in the Nth captured image based on the second method. If the user chooses not to disable the second method, the target parameters will still be determined based on both the first and second methods.
[0086] In one implementation, if the user chooses not to disable the second method, the pixel information of the target object included in the Nth acquired image determined by the second method can be directly used as a factor in determining the target parameters.
[0087] In one implementation, if the user chooses not to close the second method, the location of the target object can continue to be determined. If the location of the target object belongs to the target area, the pixel information of the target object is used as a factor in determining the target parameters; if the location of the target object does not belong to the target area, the pixel information of the target object is not used as a factor in determining the target parameters.
[0088] In this embodiment, as long as the target object is identified in the Nth image, a second prompt message is sent to the user, prompting the user whether to turn off the second method for determining the target parameters. In this way, the user can choose whether to turn off the second method according to actual needs, so as to improve the user experience and improve the accuracy of the target parameter calculation.
[0089] The processing method of this application will be further described below with reference to a specific embodiment.
[0090] Flowchart as follows Figure 4 As shown, after the camera detects a face, it first determines the position of the face. If the face is in the center, it checks if the face is stable. Once stable, it outputs the face's pixel information to the platform for AE, AWB, and AF calculations. If the face is at the edge of the image, the pixel information is not sent to the platform initially, but a prompt appears in the preview interface, allowing the user to choose whether to receive the face information for that edge area. If the user clicks "confirm," the face information for that edge area is sent to the platform for AE, AWB, and AF calculations. If the user clicks "no," the face information for that edge area is not sent to the platform, and the platform will never receive the face information, thus preventing changes in image brightness, color, and focus caused by a passerby appearing in the frame.
[0091] According to embodiments of this application, this application also provides an electronic device, including:
[0092] Image acquisition device;
[0093] A processor is used to acquire the Nth image; and to determine target parameters for the Nth image based on a first method and a second method.
[0094] Before determining the target parameters, the processor is also used to: determine whether the pixel information of the target object included in the Nth acquired image determined based on the second method is used as a factor in determining the target parameters.
[0095] In an optional embodiment, determining whether the pixel information of the target object included in the Nth acquired image determined based on the second method is used as a factor in determining the target parameters includes:
[0096] If the target object is determined to be included in the Nth acquired image based on the second method, the location of the target object is determined.
[0097] If the target object's location belongs to the target region, the pixel information of the target object is used as a factor in determining the target parameters;
[0098] If the target object's location is not within the target area, the target object's pixel information is not used as a factor in determining the target parameters.
[0099] In an optional embodiment, the processor is further configured to determine target parameters based on pixel information of the Nth acquired image determined in the first manner if it is determined based on the second method that the Nth acquired image does not include the target object.
[0100] In an optional embodiment, if the location of the target object does not belong to the target area, the following is further included:
[0101] If a confirmation instruction is received, the pixel information of the target object is used as a factor in determining the target parameters.
[0102] In an optional embodiment, obtaining a confirmation instruction includes any of the following:
[0103] The position of the target object remains unchanged from the Nth acquired image to the (N+M)th image, and a confirmation command is obtained;
[0104] Obtain confirmation action in response to the prompt message, obtain confirmation instruction, and the prompt message is used to indicate whether to include the target object as a factor in the confirmation target parameter.
[0105] In an optional embodiment, the processor is further configured to set a target area, which is smaller than the light-sensitive area of the camera module;
[0106] Setting the target area includes any of the following:
[0107] Obtain input operations and set the target area based on the input operations;
[0108] Set the target area based on the shooting scene.
[0109] It should be noted that the description of the electronic device in the embodiments of this application is similar to the description of the above processing method embodiments, and has similar beneficial effects as the method embodiments, so it will not be described again.
[0110] The following describes exemplary applications of the electronic devices provided in the embodiments of this application. See also: Figure 5 , Figure 5A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of this application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.
[0111] like Figure 5 As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. The RAM 803 may also store various programs and data required for the operation of the electronic device 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0112] Multiple components in electronic device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of displays, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows electronic device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0113] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as processing methods. For example, in some embodiments, the processing method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the processing method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform processing methods by any other suitable means (e.g., by means of firmware).
[0114] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0115] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0116] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0117] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0118] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0119] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this application can be achieved, and this is not limited herein.
[0120] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0121] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A processing method, comprising: Obtain the Nth acquired image; If the Nth acquired image is determined to include the target object based on the second method, the location of the target object is determined. If the location of the target object belongs to the target region, the pixel information representing the target object is used as a factor in determining the target parameters, and the target parameters are determined based on the pixel information of the target object; If the location of the target object does not belong to the target region, the pixel information representing the target object is not used as a factor in determining the target parameter. The target parameter is determined based on the pixel information of the Nth acquired image using a first method. The first method includes all pixels in the acquired image, and the second method includes a face.
2. The processing method according to claim 1, further comprising, after determining if the location of the target object does not belong to the target area: If a confirmation instruction is received, the pixel information of the target object is determined as a factor in determining the target parameters.
3. The processing method according to claim 2, wherein the confirmation instruction includes any one of the following: The position of the target object remains unchanged from the Nth acquired image to the (N+M)th acquired image, and a confirmation command is obtained; A confirmation operation is obtained in response to the prompt information, and a confirmation instruction is obtained. The prompt information is used to indicate whether the target object is used as a factor in confirming the target parameter.
4. The processing method according to claim 1, further comprising: The target area is set, and the target area is smaller than the light-sensitive area of the camera module; Setting the target area includes any of the following: Obtain an input operation, and set the target area based on the input operation; The target area is set based on the shooting scene.
5. An electronic device, comprising: Image acquisition device; The processor is used to acquire the Nth image. If the Nth acquired image is determined to include the target object based on the second method, the location of the target object is determined. If the location of the target object belongs to the target region, the pixel information representing the target object is used as a factor in determining the target parameters, and the target parameters are determined based on the pixel information of the target object; If the location of the target object does not belong to the target region, the pixel information representing the target object is not used as a factor in determining the target parameter. The target parameter is determined based on the pixel information of the Nth acquired image using a first method. The first method includes all pixels in the acquired image, and the second method includes a face.
6. The electronic device according to claim 5, further comprising, after determining if the location of the target object does not belong to the target area: If a confirmation instruction is received, the pixel information of the target object is determined as a factor in determining the target parameters.
Citation Information
Patent Citations
Method and electronic device for obtaining images
CN104486552A
Camera shooting parameter adjusting method and device and electronic equipment
CN113099101A