WO2021031850A1 - 图像处理的方法、装置、电子设备及存储介质 - Google Patents

图像处理的方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2021031850A1
WO2021031850A1 PCT/CN2020/106906 CN2020106906W WO2021031850A1 WO 2021031850 A1 WO2021031850 A1 WO 2021031850A1 CN 2020106906 W CN2020106906 W CN 2020106906W WO 2021031850 A1 WO2021031850 A1 WO 2021031850A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame rate
original image
resolution
frame
preview
Prior art date
Application number
PCT/CN2020/106906
Other languages
English (en)
French (fr)
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 WO2021031850A1 publication Critical patent/WO2021031850A1/zh

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/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Definitions

  • the embodiments of the present disclosure relate to image processing technology, and in particular to an image processing method, device, electronic device, and storage medium.
  • the system camera usually draws the collected image data directly to the screen without intermediate processing, so the overall performance loss is less, the frame rate is guaranteed within the resolution range supported by the system, and the frame loss caused by frame loss and other problems are more serious. less.
  • Beauty cameras generally have face recognition and special effects adding functions that consume more CPU. At the same time, because these processes are composed of complex algorithms or graphics processing, delays inevitably occur in the special effects processing stage, causing users to experience problems when using them. Obvious feeling of lag.
  • embodiments of the present disclosure provide an image processing method, including:
  • the resolution used for acquiring new original image frames during the image preview process is controlled.
  • the acquiring the original image frame collected in the process of image preview includes:
  • the original image frames collected by the camera application in the image preview window are acquired.
  • the performing a special effect rendering operation on the original image frame to obtain a special effect image frame includes:
  • a special effect rendering operation of at least one of filters, beauty and stickers is performed to obtain the special effect image frame.
  • the detecting the target object in the original image frame includes:
  • the detection frame rate is less than the preview frame rate, based on the difference between the detection frame rate and the preview frame rate, perform frame drop processing on the original image frame collected during the image preview process;
  • the target object is detected in the original image frame after frame dropping processing.
  • the step of performing frame drop processing on the collected original image frames based on the difference between the detection frame rate and the preview frame rate includes:
  • Frame dropping processing is performed on the original image frames collected every second at intervals, and the number of the original image frames processed by dropping frames per second is greater than or equal to the difference;
  • the original image frames collected per second are continuously dropped frame processing, and the number of original image frames processed by dropping frame per second is greater than or equal to the difference.
  • the controlling the resolution of the new original image frame in the process of image preview based on the difference between the drawing frame rate and the preview frame rate includes:
  • the process of controlling the image preview The resolution used to acquire new original image frames.
  • controlling the resolution of the new original image frame used in the process of image preview includes:
  • the first preset condition includes: the drawing frame rate is greater than a first preset threshold, the difference between the drawing frame rate and the preview frame rate is less than a second preset threshold, and collecting original images
  • the resolution of the frame is greater than or equal to the screen resolution
  • the second preset condition includes: the drawing frame rate is greater than a first preset threshold, the difference between the drawing frame rate and the preview frame rate is less than a second preset threshold, and collecting original images
  • the resolution of the frame is smaller than the screen resolution.
  • the resolution used to collect new original image frames is increased, and the bit rate of the recorded video is reduced.
  • control is based on the value of the drawing frame rate, the difference between the drawing frame rate and the preview frame rate, and the different values of the resolution of the collected original image frame.
  • the resolution used to collect new original image frames during the image preview process includes:
  • the third preset condition includes: the drawing frame rate is less than or equal to a first preset threshold and greater than or equal to a third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than or equal to A second preset threshold and less than or equal to a fourth preset threshold, and the resolution of the collected original image frame is greater than or equal to one-half of the screen resolution and less than the screen resolution;
  • the fourth preset condition includes: the drawing frame rate is less than or equal to a first preset threshold and greater than or equal to a third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than or equal to
  • the second preset threshold is less than or equal to the fourth preset threshold, and the resolution of the collected original image frame is less than half of the screen resolution or greater than or equal to the screen resolution.
  • control is based on the value of the drawing frame rate, the difference between the drawing frame rate and the preview frame rate, and the different values of the resolution of the collected original image frame.
  • the resolution used to collect new original image frames during the image preview process includes:
  • the fifth preset condition includes: the drawing frame rate is less than a third preset threshold, the difference between the drawing frame rate and the preview frame rate is greater than a fourth preset threshold, and collecting original images
  • the resolution of the frame is less than half of the screen resolution
  • the sixth preset condition includes: the drawing frame rate is less than a third preset threshold, the difference between the drawing frame rate and the preview frame rate is greater than a fourth preset threshold, and collecting original images
  • the resolution of the frame is greater than or equal to half of the screen resolution.
  • an image processing apparatus including:
  • the acquiring unit is used to acquire the original image frame acquired in the process of image preview;
  • An execution unit configured to perform a special effect rendering operation on the original image frame to obtain a special effect image frame, and perform a drawing operation of the special effect image frame in a display area;
  • a detecting unit configured to detect the preview frame rate at which the original image frame is presented during the image preview and the drawing frame rate at which the special effect image frame is presented in the display area;
  • the control unit is configured to control the resolution of a new original image frame used to collect new original image frames during the image preview process according to the difference between the drawing frame rate and the preview frame rate.
  • the acquiring unit is further configured to trigger the camera application to start the image preview window by calling the application program interface of the camera application; through the application program interface, acquire the camera application in the image preview window The original image frame acquired.
  • the execution unit is further configured to detect a target object in the original image frame; in the original image frame corresponding to the target object area, perform at least one of filters, beauty and stickers Special effect rendering operation to obtain the special effect image frame.
  • the execution unit is further configured to obtain the detection frame rate in the process of detecting the target object; when the detection frame rate is less than the preview frame rate, based on the detection frame rate and the preview The difference between the frame rates is to perform frame dropping processing on the original image frames collected in the image preview process; the target object is detected in the original image frames after frame dropping processing.
  • the execution unit is further configured to periodically drop frame processing on the original image frames collected per second, and the number of original image frames processed by the frame drop per second is greater than or equal to the difference; or , Performing continuous frame dropping processing on the original image frames collected per second, and the number of original image frames processed by dropping frames per second is greater than or equal to the difference.
  • control unit is further configured to be based on the value of the drawing frame rate, the value of the difference between the drawing frame rate and the preview frame rate, and the value of the resolution of the captured original image frame In different situations, control the resolution of the new original image frame used in the process of controlling the image preview.
  • control unit is further configured to control the resolution of the new original image frame to be unchanged when the first preset condition is met; wherein, the first preset condition includes: The drawing frame rate is greater than a first preset threshold, the difference between the drawing frame rate and the preview frame rate is less than a second preset threshold, and the resolution of the collected original image frame is greater than or equal to the screen resolution;
  • the second preset condition includes: the drawing frame rate is greater than the first preset threshold, and the drawing The difference between the frame rate and the preview frame rate is smaller than the second preset threshold, and the resolution of the collected original image frame is smaller than the screen resolution.
  • control unit is also used for when the original image frames collected during the image preview are used for video recording, and when the second preset condition is met;
  • the resolution of the original image frame reduces the bit rate of the recorded video.
  • control unit is further configured to control the resolution of the new original image frame to be unchanged when the third preset condition is satisfied;
  • the third preset condition includes: The drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than or equal to the second preset threshold and less than or equal to the fourth preset
  • the threshold value and the resolution of the original image frame collected are greater than or equal to one-half of the screen resolution and less than the screen resolution; when the fourth preset condition is met, the image frame used to collect a new original image is reduced Resolution;
  • the fourth preset condition includes: the drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the third preset threshold, the difference between the drawing frame rate and the preview frame rate The value is greater than or equal to the second preset threshold and less than or equal to the fourth preset threshold, and the resolution of the collected original image frame is less than half of the screen resolution or greater than or equal
  • control unit is further configured to control the resolution of the new original image frame to be unchanged when the fifth preset condition is satisfied;
  • the fifth preset condition includes: The drawing frame rate is less than a third preset threshold, the difference between the drawing frame rate and the preview frame rate is greater than a fourth preset threshold, and the resolution of the collected original image frame is less than half of the screen Resolution; when the sixth preset condition is met, reduce the resolution for acquiring new original image frames; wherein, the sixth preset condition includes: the drawing frame rate is less than a third preset threshold, The difference between the drawing frame rate and the preview frame rate is greater than a fourth preset threshold, and the resolution of the collected original image frame is greater than or equal to half of the screen resolution.
  • an electronic device including:
  • Memory used to store executable instructions
  • the processor is configured to implement the image processing method provided by the embodiment of the present disclosure when the executable instruction is executed.
  • an embodiment of the present disclosure provides a storage medium that stores executable instructions, and when the executable instructions are executed, they are used to implement the image processing method provided by the embodiments of the present disclosure.
  • the special effect rendering operation is performed on the original image frame collected in the image preview process to obtain the special effect image frame, and the drawing operation of the special effect image frame is performed in the display area, and then based on the drawing frame rate of the special effect image frame and the original image
  • the difference between the preview frame rate of the frame controls the resolution of the new original image frame used in the image preview process, which can make the resolution and frame rate intelligently balance in the special effect processing process, so that the user The satisfaction of the camera preview effect and video recording is relatively best, and a better user experience is obtained.
  • Figure 1 is a schematic structural diagram of an electronic device implementing an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of the composition structure of an image processing device implementing an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of an optional process for implementing an image processing method of an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of an optional flowchart for implementing the image processing method of the embodiment of the present disclosure
  • FIG. 5 is an optional flowchart of an image processing method for implementing an embodiment of the present disclosure
  • FIG. 6A is a schematic diagram of an optional process for implementing the image processing method of the embodiment of the present disclosure.
  • FIG. 6B is a schematic diagram of an optional flowchart for implementing the image processing method of the embodiment of the present disclosure
  • FIG. 6C is a schematic diagram of an optional flowchart for implementing the image processing method of the embodiment of the present disclosure.
  • Detection frame rate the number of original image frames that complete the target object detection per second.
  • FIG. 1 is a schematic structural diagram of an electronic device implementing an embodiment of the present disclosure.
  • Electronic equipment can be a variety of terminals, including mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs, Personal Digital Assistant), tablet computers (PAD), portable multimedia players (PMP, Portable Media Player), and car
  • PDAs personal digital assistants
  • PDAs Personal Digital Assistant
  • PDAs Personal Digital Assistant
  • PAD tablet computers
  • PMP portable multimedia players
  • TV digital television
  • TV digital television
  • desktop computer and the like.
  • the electronic device shown in FIG. 1 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device may include a processing device (such as a central processing unit, a graphics processor, etc.) 110, which may be based on a program stored in a read-only memory (ROM, Read-Only Memory) 120 or from a storage device 180 A program loaded into a random access memory (RAM, Random Access Memory) 130 executes various appropriate actions and processing.
  • the RAM 130 also stores various programs and data required for the operation of the electronic device.
  • the processing device 110, the ROM 120, and the RAM 130 are connected to each other through a bus 140.
  • An input/output (I/O, Input/Output) interface 150 is also connected to the bus 140.
  • the following devices can be connected to the I/O interface 150: including input devices 160 such as touch screens, touch panels, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD, Liquid Crystal Display) Output devices 170 such as speakers, vibrators, etc.; storage devices 180 including, for example, magnetic tapes, hard disks, etc.; and communication devices 190.
  • the communication device 190 may allow the electronic device to perform wireless or wired communication with other devices to exchange data.
  • the process described by the provided flowchart can be implemented as a computer software program.
  • the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 190, or installed from the storage device 180, or installed from the ROM 120.
  • the processing device 110 the function in the image processing method of the embodiment of the present disclosure is executed.
  • the above-mentioned computer-readable medium in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above, for example. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, RAM, ROM, and Erasable Programmable Read-Only Memory (EPROM). Only Memory), flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • EPROM Erasable Programmable Read-Only Memory
  • the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including wire, optical cable, radio frequency (RF, Radio Frequency), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the foregoing computer-readable medium carries one or more programs, and when the foregoing one or more programs are executed by an electronic device, the electronic device is caused to execute the image processing method provided by the embodiments of the present disclosure.
  • the computer program code used to perform the operations in the embodiments of the present disclosure may be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and Conventional procedural programming language-such as "C" language or similar programming language.
  • the program code may be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user computer through any kind of network, including local area network (LAN, Local Area Network) and wide area network (WAN, Wide Area Network), or it can be connected to an external computer (For example, use an Internet service provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented in a software manner, or may be implemented in a hardware manner.
  • the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
  • the first obtaining unit can also be described as "a unit for obtaining at least two Internet Protocol addresses.”
  • exemplary types of hardware logic components include: Field-Programmable Gate Array (FPGA, Field-Programmable Gate Array), Application Specific Integrated Circuit (ASIC), and Application Specific Integrated Circuit (ASSP) , Application Specific Standard Parts), System on Chip (SOC), Complex Programmable Logic Device (CPLD), etc.
  • FPGA Field-Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • ASSP Application Specific Integrated Circuit
  • SOC System on Chip
  • CPLD Complex Programmable Logic Device
  • a machine-readable medium may be a tangible medium, which may contain or store a program for use by the instruction execution system, apparatus, or device or in combination with the instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • the machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing.
  • machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or flash memory erasable programmable read-only memory
  • CD-ROM portable compact disk read only memory
  • magnetic storage device or any suitable combination of the above.
  • the units or modules in the image processing apparatus can be implemented in the electronic device as shown in FIG. 2 in the form of software (for example, the computer program stored in the above-mentioned computer software program), or the above-mentioned hardware logic components can be used.
  • software for example, the computer program stored in the above-mentioned computer software program
  • hardware logic components can be used.
  • FPGA, ASIC, SOC, and CPLD are implemented in the electronic device as shown in Figure 2.
  • FIG. 2 is an optional structural diagram of an image processing apparatus 300 implementing an embodiment of the present disclosure, showing the following units: an acquisition unit 310, an execution unit 320, a detection unit 330, and a control unit 340, which will be described below Explain the function of each unit.
  • units does not constitute a limitation on the electronic device itself.
  • some units can be split into two or more subunits, or some units can be combined into a new unit.
  • the name of the above-mentioned unit does not constitute a limitation on the unit itself under certain circumstances.
  • the above-mentioned acquisition unit 310 can also be described as a unit that “acquires the original image frame collected during the image preview”. .
  • the units and/or modules that are not described in detail in the electronic device do not represent the default of the corresponding unit and/or module. Any operation performed by the electronic device can be performed through the corresponding unit and/or module in the electronic device. Module realization.
  • FIG. 3 is an optional flow diagram for implementing the image processing method of the embodiment of the present disclosure.
  • the operating system is running in the electronic device, and the system camera application and image special effects are installed to execute the method provided by the embodiment of the present disclosure.
  • the image processing method is taken as an example to illustrate the steps shown in Figure 3, where the camera application can be a camera application used by default in the operating system, such as a native camera application (ie a system camera), and an image special effect is an application that can add special effects, such as It can be a short video APP (add special effects to photos and videos, and share them in the user space of the short video platform) and beauty cameras.
  • a camera application used by default in the operating system
  • an image special effect is an application that can add special effects, such as It can be a short video APP (add special effects to photos and videos, and share them in the user space of the short video platform) and beauty cameras.
  • step S101 the image special effect uses the application program interface of the camera application to start the preview function of the camera application.
  • step S102 the image special effect obtains the original image frames collected by the camera application during the image preview process.
  • the application program interface of the camera application is first called to trigger the camera application to start the image preview window, and the original image frames collected by the camera application in the image preview window are obtained through the application program interface.
  • FIG. 4 is an optional schematic diagram of an image processing method for implementing an embodiment of the present disclosure.
  • the image special effect calls the application program interface of the camera application to The camera application is triggered to start the image preview window to display the original image frames collected in real time, and obtain the original image frames from the application program interface of the camera application, and store them in the buffer for special effects of graphics images.
  • the image effect user can obtain the read permission of the camera from the operating system, so that the camera can be used directly (that is, without calling the camera application) to start the preview process, and During the preview process, the original image frames are collected and stored in the buffer for special effects of graphic images.
  • the image special effect user may have the reading permission of the camera of the electronic device, bypassing the native camera application to implement the image preview function, that is, directly obtaining the data of the original image frame from the interface of the camera in the operating system.
  • step S103 the image special effect uses a special effect rendering operation on the original image frame to obtain a special effect image frame.
  • the image special effect can be used to call the GPU to complete the rendering operation of the special effect of the original image frame without performing target object detection on the original image frame.
  • special effects added uniformly in all positions of the original image frame, including changing the style (old movie) and adding picture frames, etc.
  • the image special effect can call the CPU to detect the target object in the original image frame, and call the GPU to perform the special effect rendering of at least one of filters, beauties, and stickers in the area corresponding to the target object in the original image frame. Operate to get special effects image frames.
  • the image effect is used to obtain the original image frame collected from the camera application, store it in the buffer for the image effect, and call the drawing interface of the operating system to draw the original image frame in the buffer in the display area to achieve Real-time preview function; when the user calibrates the face in the previewed original image frame, the image special effect will call the CPU to read the original image frame from the cache and perform face recognition.
  • the original image frame including the face recognition result will be Stored in the corresponding cache; then the image effect uses the CPU to read the original image frame from the corresponding cache, and combines the recognized face, as well as special effects such as user selection filters, beauty and stickers, to render the original image frame .
  • step S104 the image special effect user sends the rendered special effect image frame to the drawing interface of the operating system, so that the operating system executes the drawing operation of the special effect image frame in the display area.
  • the display area may be an image preview area, that is, an area where the original image frame is displayed when the image preview is started. After the special effect image frame is rendered, the original image frame in the image preview area is covered to display the special effect image frame.
  • the display area can also be an area independent of the image preview area, for example, the preview image and the special effect image are displayed in windows to facilitate simultaneous viewing of the collected original image frame and the special effect image frame added with special effects.
  • step S105 the image special effect is used to detect the preview frame rate of the original image frame in the image preview process, and detect the drawing frame rate of the special effect image frame drawn by the operating system in the display area.
  • the special effect rendered in step S103 may be performed on the target object detected in the original image frame.
  • the applicant found that if the CPU is called to perform target detection on the original image frame for special effect rendering, if the detection frame rate of the CPU is lower than the preview frame rate, subsequent special effects rendering and special effects will be caused. There is an inevitable delay in the drawing of the image frame.
  • Step S103 can be implemented through step S1031 to step S1035, which can solve the delay caused by the CPU performing target object detection. Technical issues will be explained in conjunction with each step.
  • step S1031 the image effect is used to obtain the detection frame rate in the process of detecting the target object.
  • step S1032 when the detection frame rate is less than the preview frame rate, based on the difference between the detection frame rate and the preview frame rate, the image effect uses frame dropping processing on the original image frames collected in the image preview process.
  • the original image frames collected every second are periodically dropped, and The number of original image frames processed by dropping frames is greater than or equal to the difference; or, the original image frames collected per second are continuously dropped, and the number of original image frames processed by dropping frames per second is greater than or equal to the difference value.
  • the image effect can call the CPU to read the original image frame from the buffer of the original image frame collected by the camera application, and perform the interval drop frame processing or continuous frame drop processing, so that the original The number of image frames is not greater than the preview frame rate, and then the original image frames after frame drop processing are stored in the buffer for image effects.
  • the detection unit processes up to 20 original images per second.
  • 10 frames can be discarded from the camera program transmitted to the detection unit per second.
  • the number of original image frames obtained after dropping frames per second is 20, which is equal to the preview frame rate; alternatively, the frames transmitted by the camera program to the detection unit per second are dropped 12 frames, so that after frames are dropped per second
  • the frame number of the obtained original image frame is 18, which is less than the preview frame rate.
  • the frame loss processing method can be continuous frame loss, that is, 10 consecutive original image frames are discarded at one time per second; the frame loss processing method can also be intermittent frame loss, that is, 2 frames per second are discarded every second. 1 frame of original image.
  • the above selection judges the difference between the drawing frame rate and the preview frame rate for subsequent frame dropping processing, but does not choose to judge the difference between the rendering frame rate and the preview frame rate in Figure 4 because the selection of the drawing frame rate and The difference between the preview frame rate can better reflect the delay that may occur between the screen display process and the process of identifying the target object.
  • the processing device 110 can be lost.
  • the pre-judgment process before frame processing is more reasonable and accurate.
  • the rendering frame rate refers to the number of original image frames output per second after performing a special effect rendering operation.
  • the above-mentioned method of discarding the original image frames collected during the image preview process can not only reduce the pressure of the detection unit to identify the target object from the original image frame, but also improve the detection unit's recognition from the original image frame.
  • the speed of the target object can not only reduce the pressure of the detection unit to identify the target object from the original image frame, but also improve the detection unit's recognition from the original image frame. The speed of the target object.
  • step S1033 the image special effect is used to detect the target object in the original image frame after frame dropping processing.
  • the image special effect reads the original image frame after frame dropping processing from the buffer for the image special effect, and performs face recognition to detect the target object in the original image frame.
  • the frames transmitted by the camera program to the buffer per second can be discarded 10 frames, so that the original image frames obtained after the frames are dropped per second The number is 20, and then the beauty camera can detect the target object in the remaining 20 original image frames by calling the CPU.
  • the above method of detecting the target object in the original image frame after the frame drop processing not only reduces the number of frames that the electronic device needs to detect the original image frame, but also reduces the pressure on the electronic device to identify the target object from the original image frame , And can increase the speed of the electronic device to recognize the target object from the original image frame, thereby improving the user's experience in the shooting process.
  • the method of detecting the target object may be automatic detection, that is, the feature of the target object is automatically recognized without manual operation by the user.
  • the detection can also be performed according to user calibration, that is, according to the user to calibrate at least one object to be added with a special effect in the preview window, and then continuously detect the user-calibrated object in the original image frame obtained subsequently to render the special effect.
  • the type of target object may be the whole or part of people, animals, and objects.
  • people For example, human faces.
  • step S1034 the image special effect calls the CPU to perform special effect rendering operations of at least one of filters, beautifications, and stickers in the area corresponding to the target object in the original image frame to obtain the special effect image frame.
  • the special effect rendering operation of at least one of filters, beauty and stickers may be performed on the target area corresponding to the original image frame, so as to obtain the special effect rendering operation.
  • Special effects image frame may be performed on the target area corresponding to the original image frame.
  • step S1035 the image special effect uses the drawing interface of the operating system to execute the drawing operation of the special effect image frame in the display area.
  • step S106 the image effect control is based on the difference between the drawing frame rate and the preview frame rate to control the resolution of the new original image frame in the process of image preview.
  • step S106 can also be implemented in such a way: based on the value of the drawing frame rate, the difference between the drawing frame rate and the preview frame rate, and the value of the resolution of the collected original image frame. In different situations, the resolution of the new original image frame is collected during the process of controlling the image preview (step S1061).
  • the process of controlling the image preview is used to capture new The resolution of the original image frame, the specific control strategy is shown in Table 1.
  • the high, medium and low values of the drawing frame rate respectively represent: the first value space, the second value space, and the third value space.
  • the high, medium, and low values of the difference between the drawing frame rate and the preview frame rate respectively represent: the fourth value space, the fifth value space, and the sixth value space.
  • the high, medium, and low values of the resolution of the collected original image frame respectively represent: the seventh value space, the eighth value space, and the ninth value space.
  • the relationship between the above-mentioned value spaces may be spaced or continuous.
  • FIG. 6A is an optional flowchart of the image processing method provided by an embodiment of the application.
  • FIG. 6A shows that step S1061 can be implemented through step S10611 to step S10612, and each step will be described in combination.
  • Step S10611 when the first preset condition is met, control the resolution for acquiring the new original image frame to remain unchanged; wherein the first preset condition includes: the drawing frame rate is greater than the first preset threshold, and the drawing frame rate The difference between the frame rate and the preview frame rate is less than the second preset threshold, and the resolution of the collected original image frame is greater than or equal to the screen resolution.
  • the drawing frame rate is greater than the first preset threshold, and the difference between the drawing frame rate and the preview frame rate is less than the second preset threshold, and the resolution of the collected original image frame is greater than or equal to the screen resolution
  • the control is used to acquire the new original image frame resolution unchanged.
  • the first preset threshold is 18, the second preset threshold is 2, the preview frame rate is 20 frames, the drawing frame rate is 19 frames, the screen resolution is 920,000 pixels, and the original image frame resolution is When 1 million pixels, the drawing frame rate 19 is greater than the first preset threshold 18, and the difference between the drawing frame rate and the preview frame rate is 1 less than the second preset threshold 2, and the resolution of the original image frame is 1 million The pixel is larger than the screen resolution of 920,000 pixels. At this time, the original image frame is collected in the best state, and the resolution of the new original image frame is not adjusted.
  • Step S10612 when the second preset condition is met, increase the resolution for acquiring new original image frames; wherein, the second preset condition includes: the drawing frame rate is greater than the first preset threshold, and the drawing frame rate and preview The difference between the frame rates is less than the second preset threshold, and the resolution of the collected original image frames is less than the screen resolution.
  • the drawing frame rate is greater than the first preset threshold, and the difference between the drawing frame rate and the preview frame rate is less than the second preset threshold, and the resolution of the captured original image frame is less than the screen resolution .
  • Improve the resolution used to collect new original image frames where the resolution can be increased proportionally or in a certain step.
  • the drawing frame rate is greater than the first preset threshold, and the difference between the drawing frame rate and the preview frame rate is less than the second preset threshold, and the resolution of the collected original image frame is greater than or equal to half
  • the resolution used to collect new original image frames is greater than or equal to half
  • the first preset threshold is 18, the second preset threshold is 2
  • the preview frame rate is 20 frames
  • the drawing frame rate is 19 frames
  • the screen resolution is 920,000 pixels
  • the original image frame resolution is When 800,000 pixels
  • the drawing frame rate 19 is greater than the first preset threshold 18, and the difference between the drawing frame rate and the preview frame rate is 1 less than the second preset threshold 2
  • the original image frame resolution is 800,000
  • the pixels are smaller than the screen resolution of 920,000 pixels and greater than one-half of the screen resolution of 460,000 pixels
  • the resolution of the new original image frame may not be adjusted or the resolution of the original image frame may be increased to 800,000 pixels. 1 million pixels are used to collect new original image frames.
  • the drawing frame rate is greater than the first preset threshold, and the difference between the drawing frame rate and the preview frame rate is less than the second preset threshold, and the resolution of the collected original image frame is less than half
  • the screen resolution is used, increase the resolution used to collect new original image frames.
  • the first preset threshold is 18, the second preset threshold is 2
  • the preview frame rate is 20 frames
  • the drawing frame rate is 19 frames
  • the screen resolution is 920,000 pixels
  • the original image frame resolution is 300,000 pixels
  • the drawing frame rate 19 is greater than the first preset threshold 18, and the difference between the drawing frame rate and the preview frame rate is 1 less than the second preset threshold 2
  • the original image frame resolution is 300,000
  • the screen resolution of pixels less than one-half is 460,000 pixels.
  • the resolution of the collected original image frames can be increased from 300,000 pixels to 1 million pixels for collecting new original image frames.
  • the resolution used to capture the new original image frame is increased, and the bit rate of the recorded video is reduced.
  • the code rate can be increased proportionally or with a certain step length.
  • the bit rate of the recorded video is the number of data bits transmitted per second when the recorded video is transmitted.
  • the unit is kbps, which is kilobits per second.
  • the drawing frame rate when the drawing frame rate is greater than the first preset threshold, and the difference between the drawing frame rate and the preview frame rate is less than the second preset threshold, and the resolution of the original image frame is collected
  • the rate is less than the screen resolution
  • the resolution of the new original image frame will be increased. While increasing the resolution of the new original image frame, the resolution may be too high and the video is not clear.
  • the bit rate of the recorded video can be reduced, which will make the video recording clearer and improve the user experience.
  • FIG. 6B is an optional flowchart of the image processing method provided by an embodiment of the application.
  • FIG. 6B shows that step S1061 can be implemented through step S10613 to step S10614, and each step will be described in combination.
  • Step S10613 when the third preset condition is met, control the resolution for acquiring the new original image frame to remain unchanged; where the third preset condition includes: the drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the first preset threshold. Three preset thresholds, and the difference between the drawing frame rate and the preview frame rate is greater than or equal to the second preset threshold and less than or equal to the fourth preset threshold, and the resolution of the captured original image frame is greater than or equal to half of the screen resolution Rate and less than the screen resolution.
  • the drawing frame rate when the drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than or equal to the second preset threshold and less than or equal to the first preset threshold.
  • the drawing frame rate is 20 frames
  • the drawing frame rate is 17 frames.
  • the screen resolution is 920,000 pixels.
  • the resolution of the original image frame is 800,000 pixels
  • the drawing frame rate 17 is less than the first preset threshold value 18 and greater than the third preset threshold value 15, and the drawing frame rate and the preview frame rate are different
  • the difference between 3 is equal to the fourth preset threshold 3
  • the resolution of the captured original image frame is 800,000 pixels less than the screen resolution of 920,000 pixels and greater than half of the screen resolution of 460,000 pixels.
  • the situation of collecting original image frames is the best state, and the resolution of collecting new original image frames is not adjusted.
  • Step S10614 when the fourth preset condition is met, reduce the resolution for acquiring new original image frames; where the fourth preset condition includes: the drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the third preset Set the threshold, and the difference between the drawing frame rate and the preview frame rate is greater than or equal to the second preset threshold and less than or equal to the fourth preset threshold, and the resolution of the captured original image frame is less than half of the screen resolution or greater than Equal to the screen resolution.
  • the drawing frame rate when the drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than or equal to the second preset threshold and less than or equal to the first preset threshold.
  • Four preset thresholds and when the resolution of the captured original image frame is less than one-half of the screen resolution or greater than or equal to the screen resolution reduce the resolution used to capture a new original image frame, where the resolution can be proportional Or reduce by a certain step.
  • the drawing frame rate when the drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than or equal to the second preset threshold and less than or equal to the first preset threshold.
  • the resolution used to collect the new original image frame is controlled to remain unchanged or the resolution used to collect the new original image frame is reduced.
  • the drawing frame rate 17 is less than the first preset threshold value 18 and greater than the third preset threshold value 15, and the drawing frame rate and the preview frame rate are different
  • the difference between 3 is equal to the fourth preset threshold of 3
  • the resolution of the collected original image frame is 1 million pixels greater than the screen resolution of 920,000 pixels.
  • the resolution of the new original image frame may not be adjusted or The resolution of the collected original image frame is reduced from 1 million pixels to 800,000 pixels for collecting new original image frames.
  • the drawing frame rate when the drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than or equal to the second preset threshold and less than or equal to the first preset threshold.
  • the drawing frame rate 17 is less than the first preset threshold value 18 and greater than the third preset threshold value 15, and the drawing frame rate and the preview frame rate are different
  • the difference between 3 is equal to the fourth preset threshold 3
  • the resolution of the captured original image frame of 300,000 pixels is less than one-half of the screen resolution of 460,000 pixels.
  • the resolution of the captured original image frame can be changed
  • the 300,000 pixels are reduced to 200,000 pixels to collect new original image frames.
  • FIG. 6C is an optional flowchart of the image processing method provided by an embodiment of the application.
  • FIG. 6C shows that step S1061 can be implemented through step S10615 to step S10616, and each step will be described in combination.
  • Step S10615 when the fifth preset condition is met, control the resolution for acquiring the new original image frame to remain unchanged; wherein the fifth preset condition includes: the drawing frame rate is less than the third preset threshold, and the drawing frame rate The difference between the frame rate and the preview frame rate is greater than the fourth preset threshold, and the resolution of the captured original image frame is less than half of the screen resolution.
  • the drawing frame rate is less than the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than the fourth preset threshold, and the resolution of the collected original image frame is less than half
  • the resolution used to control the new original image frame remains unchanged.
  • the third preset threshold is 15, the fourth preset threshold is 3, the preview frame rate is 20 frames, the drawing frame rate is 14 frames, the screen resolution is 920,000 pixels, and the original image frame resolution is When 300,000 pixels, the drawing frame rate 14 is less than the third preset threshold 15, and the difference between the drawing frame rate and the preview frame rate is 6 greater than the fourth preset threshold 2, and the original image frame resolution is 300,000 The pixel is less than one-half of the screen resolution of 460,000 pixels. At this time, the original image frame is collected in the best state and the resolution of the new original image frame is not adjusted.
  • Step S10616 when the sixth preset condition is met, reduce the resolution used to collect the new original image frame; where the sixth preset condition includes: the drawing frame rate is less than the third preset threshold, and the drawing frame rate and preview The difference between the frame rates is greater than the fourth preset threshold, and the resolution of the collected original image frames is greater than or equal to half the screen resolution.
  • the drawing frame rate is less than the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than the fourth preset threshold, and the resolution of the collected original image frame is greater than or equal to half
  • the resolution used to acquire new original image frames is reduced, where the resolution can be reduced proportionally or in a certain step.
  • the drawing frame rate is less than the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than the fourth preset threshold, and the resolution of the collected original image frame is greater than or equal to half
  • the resolution used for acquiring new original image frames is controlled to remain unchanged or the resolution used for acquiring new original image frames is reduced.
  • the third preset threshold is 15, the fourth preset threshold is 3, the preview frame rate is 20 frames, the drawing frame rate is 14 frames, the screen resolution is 920,000 pixels, and the original image frame resolution is When 800,000 pixels, the drawing frame rate 14 is less than the third preset threshold 15, and the difference between the drawing frame rate and the preview frame rate is 6 greater than the fourth preset threshold 2, and the original image frame resolution is 800,000
  • the pixels are smaller than the screen resolution of 920,000 pixels and greater than one-half of the screen resolution of 460,000 pixels.
  • the resolution of the new original image frame may not be adjusted or the resolution of the original image frame shall be 800,000 pixels. Reduced to 300,000 pixels for acquiring new original image frames.
  • the drawing frame rate is less than the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than the fourth preset threshold, and the resolution of the collected original image frame is greater than or equal to the screen resolution When, reduce the resolution used to acquire new original image frames.
  • the fourth preset threshold is 3
  • the preview frame rate is 20 frames
  • the drawing frame rate is 14 frames
  • the screen resolution is 920,000 pixels
  • the original image frame resolution is 1 million pixels
  • the drawing frame rate 14 is less than the third preset threshold 15, and the difference between the drawing frame rate and the preview frame rate is 6 greater than the fourth preset threshold 2
  • the resolution of the original image frame is 1 million
  • the pixel is larger than the screen resolution of 920,000 pixels.
  • the resolution of the collected original image frame can be reduced from 1 million pixels to 300,000 pixels for collecting new original image frames.
  • the electronic device can locally save or upload the final adjusted optimal value of the acquired original image frame to the server. In this way, the next time the camera is started, it can be called locally or obtained from the server.
  • the optimal value obtained by the second adjustment is used as the initial value of the resolution of the collected original image frame.
  • the optimal resolution value for a period of time is stable. Therefore, the next time you start the camera, you can call it locally Or obtain the optimal value obtained from the last adjustment from the server to use as the initial value of the original image frame resolution
  • the above method is based on the difference between the drawing frame rate and the preview frame rate to control the resolution of the new original image frame in the process of image preview, which enables the intelligent balance of resolution and frame rate in the process of special effects processing , So that users can achieve the best satisfaction when previewing images, and get a better user experience.
  • FIG. 2 is a schematic diagram of the composition of an image processing apparatus 300 provided by an embodiment of the present disclosure.
  • the image processing apparatus 300 provided by an embodiment of the present disclosure includes:
  • the acquiring unit is used to acquire the original image frame acquired in the process of image preview;
  • An execution unit configured to perform a special effect rendering operation on the original image frame to obtain a special effect image frame, and perform a drawing operation of the special effect image frame in a display area;
  • the detection unit is configured to detect the preview frame rate of the original image frame presented in the image preview process and the drawing frame rate of the special effect image frame presented in the display area;
  • the control unit is configured to control the resolution of a new original image frame used to collect new original image frames during the image preview process according to the difference between the drawing frame rate and the preview frame rate.
  • the acquiring unit is further configured to trigger the camera application to start the image preview window by invoking the application program interface of the camera application; through the application program interface, acquire the image preview window of the camera application. The original image frame captured in the window.
  • the execution unit is further configured to detect a target object in the original image frame; perform at least one of filters, beautifications, and stickers in the area corresponding to the target object in the original image frame A special effect rendering operation to obtain the special effect image frame.
  • the execution unit is further configured to obtain the detection frame rate in the process of detecting the target object; when the detection frame rate is less than the preview frame rate, based on the detection frame rate and the detection frame rate. According to the difference between the preview frame rates, frame dropping processing is performed on the original image frames collected in the image preview process; the target object is detected in the original image frames after the frame dropping processing.
  • the execution unit is further configured to periodically drop frame processing on the original image frames collected per second, and the number of original image frames processed by dropping frames per second is greater than or equal to the difference.
  • the original image frames collected per second are continuously dropped frames, and the number of original image frames processed by dropping frames per second is greater than or equal to the difference.
  • control unit is further configured to determine the resolution of the original image frame based on the value of the drawing frame rate, the difference between the drawing frame rate and the preview frame rate. Different values are used to control the resolution of the new original image frame in the process of image preview.
  • control unit is further configured to control the resolution of the new original image frame to be unchanged when the first preset condition is satisfied; wherein, the first preset condition includes : The drawing frame rate is greater than a first preset threshold, the difference between the drawing frame rate and the preview frame rate is less than a second preset threshold, and the resolution of the collected original image frame is greater than or equal to the screen resolution When the second preset condition is met, the resolution for acquiring new original image frames is increased; wherein, the second preset condition includes: the drawing frame rate is greater than the first preset threshold, the The difference between the drawing frame rate and the preview frame rate is less than a second preset threshold, and the resolution of the collected original image frame is less than the screen resolution.
  • control unit is also used for when the original image frames collected during the image preview are used for video recording, and when the second preset condition is met;
  • the resolution of the new original image frame reduces the bit rate of the recorded video.
  • control unit is further configured to control the resolution of the new original image frame to be unchanged when a third preset condition is met; wherein, the third preset condition includes : The drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than or equal to the second preset threshold and less than or equal to the fourth The preset threshold and the resolution of the captured original image frame are greater than or equal to one-half of the screen resolution and less than the screen resolution; when the fourth preset condition is met, the original image used for capturing new images is reduced Frame resolution; wherein, the fourth preset condition includes: the drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the third preset threshold, between the drawing frame rate and the preview frame rate The difference between is greater than or equal to the second preset threshold and less than or equal to the fourth preset threshold, and the resolution of the collected original image frame is less than half of the screen resolution or greater than or equal
  • control unit is further configured to control the resolution of the new original image frame to be unchanged when the fifth preset condition is satisfied; wherein, the fifth preset condition includes : The drawing frame rate is less than the third preset threshold, the difference between the drawing frame rate and the preview frame rate is greater than the fourth preset threshold, and the resolution of the collected original image frame is less than half.
  • the embodiments of the present disclosure provide an electronic device, including:
  • Memory used to store executable instructions
  • the processor is configured to implement the image processing method provided by the embodiment of the present disclosure when the executable instruction is executed.
  • the embodiment of the present disclosure provides a storage medium that stores executable instructions, and when the executable instructions are executed, they are used to implement the image processing method provided by the embodiments of the present disclosure.
  • an embodiment of the present disclosure provides an image processing method, including:
  • the resolution used for acquiring new original image frames during the image preview process is controlled.
  • an embodiment of the present disclosure provides an image processing method, which further includes:
  • the obtaining of the original image frame collected in the process of image preview includes:
  • the original image frames collected by the camera application in the image preview window are acquired.
  • an embodiment of the present disclosure provides an image processing method, which further includes:
  • a special effect rendering operation of at least one of filters, beauty and stickers is performed to obtain the special effect image frame.
  • an embodiment of the present disclosure provides an image processing method, which further includes:
  • the detecting the target object in the original image frame includes:
  • the detection frame rate is less than the preview frame rate, based on the difference between the detection frame rate and the preview frame rate, perform frame drop processing on the original image frame collected during the image preview process;
  • the target object is detected in the original image frame after frame dropping processing.
  • an embodiment of the present disclosure provides an image processing method, which further includes:
  • the performing frame dropping processing on the collected original image frames based on the difference between the detection frame rate and the preview frame rate includes:
  • Frame dropping processing is performed on the original image frames collected every second at intervals, and the number of the original image frames processed by dropping frames per second is greater than or equal to the difference;
  • the original image frames collected every second are continuously dropped frames, and the number of original image frames processed by dropping frames per second is greater than or equal to the difference.
  • an embodiment of the present disclosure provides an image processing method, which further includes:
  • the controlling the resolution of the new original image frame in the process of image preview based on the difference between the drawing frame rate and the preview frame rate includes:
  • the process of controlling the image preview The resolution used to acquire new original image frames.
  • an embodiment of the present disclosure provides an image processing method, which further includes:
  • the image preview is controlled based on the value of the drawing frame rate, the difference between the drawing frame rate and the preview frame rate, and the value of the resolution of the collected original image frame
  • the resolution used to collect new original image frames in the process includes:
  • the first preset condition includes: the drawing frame rate is greater than a first preset threshold, and the difference between the drawing frame rate and the preview frame rate is less than a second preset threshold, and collecting original The resolution of the image frame is greater than or equal to the screen resolution;
  • the second preset condition includes: the drawing frame rate is greater than a first preset threshold, and the difference between the drawing frame rate and the preview frame rate is less than a second preset threshold, and collecting original The resolution of the image frame is smaller than the screen resolution.
  • an embodiment of the present disclosure provides an image processing method, which further includes:
  • the resolution used to collect new original image frames is increased, and the bit rate of the recorded video is reduced.
  • an embodiment of the present disclosure provides an image processing method, which further includes:
  • the image preview is controlled based on the value of the drawing frame rate, the difference between the drawing frame rate and the preview frame rate, and the value of the resolution of the collected original image frame
  • the resolution used to collect new original image frames in the process includes:
  • the third preset condition includes: the drawing frame rate is less than or equal to the first preset threshold and greater than or equal to the third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than Equal to the second preset threshold and less than or equal to the fourth preset threshold, and the resolution of the collected original image frame is greater than or equal to half the screen resolution and less than the screen resolution;
  • the fourth preset condition includes: the drawing frame rate is less than or equal to a first preset threshold and greater than or equal to a third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than
  • the resolution is equal to the second preset threshold and less than or equal to the fourth preset threshold, and the resolution of the collected original image frame is less than half of the screen resolution or greater than or equal to the screen resolution.
  • an embodiment of the present disclosure provides an image processing method, which further includes:
  • the image preview is controlled based on the value of the drawing frame rate, the difference between the drawing frame rate and the preview frame rate, and the value of the resolution of the collected original image frame
  • the resolution used to collect new original image frames in the process includes:
  • the fifth preset condition includes: the drawing frame rate is less than a third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than a fourth preset threshold, and collecting original The resolution of the image frame is less than half of the screen resolution;
  • the sixth preset condition includes: the drawing frame rate is less than a third preset threshold, and the difference between the drawing frame rate and the preview frame rate is greater than a fourth preset threshold, and collecting original The resolution of the image frame is greater than or equal to half of the screen resolution.
  • an embodiment of the present disclosure provides an image processing apparatus, which further includes:
  • the acquiring unit is used to acquire the original image frame acquired in the process of image preview;
  • An execution unit configured to perform a special effect rendering operation on the original image frame to obtain a special effect image frame, and perform a drawing operation of the special effect image frame in a display area;
  • the detection unit is configured to detect the preview frame rate of the original image frame presented in the image preview process and the drawing frame rate of the special effect image frame presented in the display area;
  • the control unit is configured to control the resolution of a new original image frame used to collect new original image frames during the image preview process according to the difference between the drawing frame rate and the preview frame rate.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

本公开实施例提供一种图像处理方法、装置、电子设备及存储介质;方法包括:获取在图像预览的过程中采集到的原始图像帧;对所述原始图像帧执行特效渲染操作以得到特效图像帧,并在显示区域执行所述特效图像帧的绘制操作;检测在图像预览的过程中呈现所述原始图像帧的预览帧率、以及显示区域中呈现所述特效图像帧的绘制帧率;基于所述绘制帧率和所述预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。本公开能够使特效处理过程中分辨率和帧率的智能化平衡。

Description

图像处理的方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请要求于2019年08月19日提交的,申请号为201910763721.0、发明名称为“图像处理的方法、装置、电子设备及存储介质”的中国专利申请的优先权,该申请的全文通过引用结合在本申请中。
技术领域
本公开实施例涉及图像处理技术,尤其涉及一种图像处理的方法、装置、电子设备及存储介质。
背景技术
系统相机通常将采集到的图像数据直接绘制到屏幕上,没有中间处理,因此整体性能损耗较少,在系统支持的分辨率范围内帧率都有一定保障,丢帧造成的卡顿等问题较少。
而美颜相机一般会有人脸识别和添加特效的功能对CPU消耗比较高,同时因为这些过程有复杂的算法或图形处理组成,因此在特效处理阶段不可避免地产生延迟,导致用户在使用时有明显的卡顿感。
发明内容
提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。
第一方面,本公开实施例提供了一种图像处理的方法,包括:
获取在图像预览的过程中采集到的原始图像帧;
对所述原始图像帧执行特效渲染操作以得到特效图像帧,并在显 示区域执行所述特效图像帧的绘制操作;
检测在图像预览的过程中呈现所述原始图像帧的预览帧率、以及显示区域中呈现所述特效图像帧的绘制帧率;
基于所述绘制帧率和所述预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
上述方案中,所述获取在图像预览的过程中采集到的原始图像帧,包括:
通过调用相机应用的应用程序接口以触发所述相机应用启动图像预览窗口;
通过所述应用程序接口,获取所述相机应用在所述图像预览窗口中采集的原始图像帧。
上述方案中,所述对所述原始图像帧执行特效渲染操作以得到特效图像帧,包括:
在所述原始图像帧中检测目标对象;
在所述原始图像帧中对应所述目标对象的区域,执行滤镜、美颜和贴纸至少之一的特效渲染操作,以得到所述特效图像帧。
上述方案中,所述在所述原始图像帧中检测目标对象,包括:
获取在检测所述目标对象过程中的检测帧率;
当所述检测帧率小于所述预览帧率时,基于所述检测帧率和所述预览帧率之间的差值,对在图像预览的过程中采集到的原始图像帧进行丢帧处理;
在进行丢帧处理后的原始图像帧中检测目标对象。
上述方案中,所述基于所述检测帧率和所述预览帧率之间的差值,对采集到的原始图像帧进行丢帧处理,包括:
对每秒采集到的原始图像帧进行间隔性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于所述差值;
或者,
对每秒采集到的原始图像帧进行连续性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于所述差值。
上述方案中,所述基于所述绘制帧率和所述预览帧率之间的差值, 控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
基于所述绘制帧率的取值、所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
上述方案中,其特征在于,所述基于所述绘制帧率的取值、以及所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
当满足第一预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;
其中,所述第一预设条件包括:所述绘制帧率大于第一预设阈值、所述绘制帧率和所述预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率大于等于所述屏幕分辨率;
当满足第二预设条件时,提高所述用于采集新的原始图像帧的分辨率;
其中,所述第二预设条件包括:所述绘制帧率大于第一预设阈值、所述绘制帧率和所述预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率小于所述屏幕分辨率。
上述方案中,其特征在于,还包括:
当在图像预览的过程中采集到的原始图像帧用于视频录制时,
并且,当满足第二预设条件时;
提高所述用于采集新的原始图像帧的分辨率,降低录制视频的码率。
上述方案中,所述基于所述绘制帧率的取值、以及所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
当满足第三预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;
其中,所述第三预设条件包括:所述绘制帧率小于等于第一预设 阈值且大于等于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一所述屏幕分辨率且小于所述屏幕分辨率;
当满足第四预设条件时,降低所述用于采集新的原始图像帧的分辨率;
其中,所述第四预设条件包括:所述绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一所述屏幕分辨率或大于等于所述屏幕分辨率。
上述方案中,所述基于所述绘制帧率的取值、以及所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
当满足第五预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;
其中,所述第五预设条件包括:所述绘制帧率小于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一所述屏幕分辨率;
当满足第六预设条件时,降低所述用于采集新的原始图像帧的分辨率;
其中,所述第六预设条件包括:所述绘制帧率小于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一所述屏幕分辨率。
第二方面,本公开实施例提供了一种图像处理的装置,包括:
获取单元,用于获取在图像预览的过程中采集到的原始图像帧;
执行单元,用于对所述原始图像帧执行特效渲染操作以得到特效图像帧,并在显示区域执行所述特效图像帧的绘制操作;
检测单元,用于检测在图像预览的过程中呈现所述原始图像帧的 预览帧率、以及显示区域中呈现所述特效图像帧的绘制帧率;
控制单元,用于根据所述绘制帧率和所述预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
上述方案中,所述获取单元,还用于通过调用相机应用的应用程序接口以触发所述相机应用启动图像预览窗口;通过所述应用程序接口,获取所述相机应用在所述图像预览窗口中采集的原始图像帧。
上述方案中,所述执行单元,还用于在所述原始图像帧中检测目标对象;在所述原始图像帧中对应所述目标对象的区域,执行滤镜、美颜和贴纸至少之一的特效渲染操作,以得到所述特效图像帧。
上述方案中,所述执行单元,还用于获取在检测所述目标对象过程中的检测帧率;当所述检测帧率小于所述预览帧率时,基于所述检测帧率和所述预览帧率之间的差值,对在图像预览的过程中采集到的原始图像帧进行丢帧处理;在进行丢帧处理后的原始图像帧中检测目标对象。
上述方案中,所述执行单元,还用于对每秒采集到的原始图像帧进行间隔性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于所述差值;或者,对每秒采集到的原始图像帧进行连续性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于所述差值。
上述方案中,所述控制单元,还用于基于所述绘制帧率的取值、所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
上述方案中,所述控制单元,还用于当满足第一预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;其中,所述第一预设条件包括:所述绘制帧率大于第一预设阈值、所述绘制帧率和所述预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率大于等于所述屏幕分辨率;当满足第二预设条件时,提高所述用于采集新的原始图像帧的分辨率;其中,所述第二预设条件包括:所述绘制帧率大于第一预设阈值、所述绘制帧率和所述预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率小于所述屏幕分辨 率。
上述方案中,所述控制单元,还用于当在图像预览的过程中采集到的原始图像帧用于视频录制时,并且,当满足第二预设条件时;提高所述用于采集新的原始图像帧的分辨率,降低录制视频的码率。
上述方案中,所述控制单元,还用于当满足第三预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;其中,所述第三预设条件包括:所述绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一所述屏幕分辨率且小于所述屏幕分辨率;当满足第四预设条件时,降低所述用于采集新的原始图像帧的分辨率;其中,所述第四预设条件包括:所述绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一所述屏幕分辨率或大于等于所述屏幕分辨率。
上述方案中,所述控制单元,还用于当满足第五预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;其中,所述第五预设条件包括:所述绘制帧率小于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一所述屏幕分辨率;当满足第六预设条件时,降低所述用于采集新的原始图像帧的分辨率;其中,所述第六预设条件包括:所述绘制帧率小于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一所述屏幕分辨率。
第三方面,本公开实施例提供了一种电子设备,包括:
存储器,用于存储可执行指令;
处理器,用于执行所述可执行指令时,实现本公开实施例提供的图像处理的方法。
第四方面,本公开实施例提供了一种存储介质,存储有可执行指令,所述可执行指令被执行时,用于实现本公开实施例提供的图像处 理的方法。
本公开实施例具有如下有益效果:
通过对在图像预览的过程中采集到的原始图像帧执行特效渲染操作以得到特效图像帧,并在显示区域执行所述特效图像帧的绘制操作,然后基于特效图像帧的绘制帧率和原始图像帧的预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,能够使特效处理过程中分辨率和帧率的智能化平衡,从而使得用户对相机预览效果和视频录制的满意度达到相对最佳,并且获得更优质的使用体验。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。
图1是实现本公开实施例的电子设备的结构示意图;
图2是实现本公开实施例的图像处理装置的组成结构示意图;
图3是实现本公开实施例的图像处理方法的一个可选的流程示意图;
图4是实现本公开实施例的图像处理方法的一个可选的流程示意图;
图5是实现本公开实施例的图像处理方法的一个可选的流程示意图;
图6A是实现本公开实施例的图像处理方法的一个可选的流程示意图;
图6B是实现本公开实施例的图像处理方法的一个可选的流程示意图;
图6C是实现本公开实施例的图像处理方法的一个可选的流程示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
对本公开实施例进行进一步详细说明之前,对本公开实施例中涉及的名词和术语进行说明,本公开实施例中涉及的名词和术语适用于如下的解释。
1)预览帧率,图像预览窗口中每秒显示的原始图像帧(即不经过特效处理的图像帧)的数量。
2)绘制帧率,操作系统的显示组件每秒绘制特效图像帧(即包括 特效的图像帧,通过对原始图像帧添加特效而形成)以在屏幕显示的数量。
3)检测帧率,每秒完成目标对象检测的原始图像帧的数量。
下面参见图1,图1是实现本公开实施例的电子设备的结构示意图。电子设备可以是各种终端,包括移动电话、笔记本电脑、数字广播接收器、个人数字助理(PDA,Personal Digital Assistant)、平板电脑(PAD)、便携式多媒体播放器(PMP,Portable Media Player)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(TV)、台式计算机等等的固定终端。图1示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图1所示,电子设备可以包括处理装置(例如中央处理器、图形处理器等)110,其可以根据存储在只读存储器(ROM,Read-Only Memory)120中的程序或者从存储装置180加载到随机访问存储器(RAM,Random Access Memory)130中的程序而执行各种适当的动作和处理。在RAM 130中,还存储有电子设备操作所需的各种程序和数据。处理装置110、ROM 120以及RAM 130通过总线140彼此相连。输入/输出(I/O,Input/Output)接口150也连接至总线140。
通常,以下装置可以连接至I/O接口150:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置160;包括例如液晶显示器(LCD,Liquid Crystal Display)、扬声器、振动器等的输出装置170;包括例如磁带、硬盘等的存储装置180;以及通信装置190。通信装置190可以允许电子设备与其他设备进行无线或有线通信以交换数据。
特别地,根据本公开实施例,所提供的流程图描述的过程可以被实现为计算机软件程序。例如,本公开实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,计算机程序可以通过通信装置190从网络上被下载和安装,或者从存储装置180被安装,或者从ROM 120被安装。在计算机程序被处理装置110执行时,执行本公开实施例的图像处理方法中的功能。
需要说明的是,本公开实施例上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以包括但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、ROM、可擦式可编程只读存储器(EPROM,Erasable Programmable Read Only Memory)、闪存、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。
在本公开实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括电线、光缆、射频(RF,Radio Frequency)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被电子设备执行时,使得电子设备执行本公开实施例提供的图像处理方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开实施例中操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立 的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络,包括局域网(LAN,Local Area Network))和广域网(WAN,Wide Area Network),以连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
本公开实施例提供的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
本公开实施例中描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA,Field-Programmable Gate Array)、专用集成电路(ASIC,Application Specific Integrated Circuit)、专用标准产品(ASSP,Application Specific Standard Parts))、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开实施例的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读 信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
下面说明实现本公开实施例提供的图像处理装置中的单元和/或模块。可以理解地,图像处理装置中的单元或模块可以采用软件(例如上述的计算机软件程序中存储的计算机程序)的方式在如图2所示的电子设备中实现,也可以采用上述的硬件逻辑部件(例如FPGA、ASIC、SOC和CPLD)的方式在如图2所示的电子设备中实现。
参见图2,图2是实现本公开实施例的图像处理装置300的一个可选的结构示意图,示出了以下单元:获取单元310、执行单元320、检测单元330和控制单元340,将在下文说明各个单元的功能。
需要指出,上述单元的分类并不构成对电子设备本身的限定,例如一些单元可以拆分为两个或以上的子单元,或者,一些单元可以合并为一个新的单元。
还需要指出,上述单元的名称在某种情况下并不构成对单元本身的限定,例如,上述获取单元310也可以被描述为“获取在图像预览的过程中采集到的原始图像帧”的单元。
基于同样的理由,电子设备中未详尽描述的单元和/或模块不代表相应的单元和/或模块的缺省,凡是电子设备所执行的操作都可以通过电子设备中的相应的单元和/或模块实现。
继续参见图3,图3是实现本公开实施例的图像处理方法的一个可选的流程示意图,以电子设备中运行操作系统、并安装有系统相机应用和图像特效应用执行本公开实施例提供的图像处理方法为例说明图3示出的步骤,其中,相机应用可以是操作系统中默认使用的相机应用,例如原生的相机应用(即系统相机),图像特效应用是能够添加特效的应用,例如可以是短视频APP(对照片和视频添加特效,并分 享到短视频平台的用户空间)和美颜相机等。
在步骤S101中,图像特效应用调用相机应用的应用程序接口以启动相机应用的预览功能,在步骤S102中,图像特效应用获取相机应用在图像预览的过程中采集到的原始图像帧。
在一些实施例中,首先调用相机应用的应用程序接口以触发相机应用启动图像预览窗口,通过应用程序接口,获取相机应用在图像预览窗口中采集的原始图像帧。
作为示例,参见图4,图4是实现本公开实施例的图像处理方法的一个可选的原理示意图,当电子设备中安装的图像特效应用启动时,图像特效应用调用相机应用的应用程序接口以触发相机应用,从而启动图像预览窗口显示实时采集的原始图像帧,并从相机应用的应用程序接口获取原始图像帧,存储到图形图像特效应用的缓存(Buffer)中。
在一些实施例中,作为步骤S101和步骤S102的替换步骤,图像特效应用可以从操作系统获得摄像头的读取权限,从而可以直接使用摄像头(即不通过调用相机应用)而启动预览过程,并在预览过程中采集原始图像帧,并存储到图形图像特效应用的缓存。
作为示例,图像特效应用可以具有电子设备的摄像头的读取权限,绕过原生的相机应用实现图像预览功能,即直接从操作系统中摄像头的接口获取原始图像帧的数据。
在步骤S103中,图像特效应用对原始图像帧执行特效渲染操作以得到特效图像帧。
在一些实施例中,图像特效应用可在不对原始图像帧进行目标对象检测的情况下,调用GPU完成对原始图像帧的特效的渲染操作。例如在原始图像帧的所有位置统一添加的特效,包括改变风格(老电影)和添加画框等。
在另一些实施例中,图像特效应用可以调用CPU在原始图像帧中检测目标对象,并且调用GPU在原始图像帧中对应目标对象的区域,执行滤镜、美颜和贴纸至少之一的特效渲染操作,以得到特效图像帧。
作为示例,参见图4,图像特效应用从相机应用获取其采集的原始图像帧,存储到图像特效应用的缓存中,并调用操作系统的绘制接 口在显示区域中绘制缓存中的原始图像帧以实现实时预览功能;当用户在预览的原始图像帧中标定了人脸时,图像特效应用将调用CPU从缓存中读取原始图像帧并进行人脸识别,包括人脸识别结果的原始图像帧将被存储到对应的缓存中;然后图像特效应用调用CPU从相应的缓存中读取原始图像帧,并结合识别的人脸、以及用户选择滤镜、美颜和贴纸等特效,对原始图像帧进行渲染。
在步骤S104中,图像特效应用向操作系统的绘制接口发送渲染的特效图像帧,以使操作系统在显示区域中执行特效图像帧的绘制操作。
作为示例,显示区域可以是图像预览区域,即图像预览启动时显示原始图像帧的区域,当特效图像帧渲染完成后,覆盖图像预览区域的原始图像帧来显示特效图像帧。显示区域也可以是独立于图像预览区域的区域,例如预览图像和特效图像分窗口显示,方便同时观看采集的原始图像帧和添加有特效的特效图像帧。
在步骤S105中,图像特效应用检测在图像预览的过程中原始图像帧的预览帧率,并检测操作系统在显示区域绘制特效图像帧的绘制帧率。
在一些实施例中,在步骤S103中渲染的特效,可以是针对原始图像帧中检测到的目标对象进行的。申请人在实施本公开实施例的过程中发现,如果调用CPU针对原始图像帧进行目标检测以进行特效渲染,如果出现CPU的检测帧率小于预览帧率的情形,会导致后续的特效渲染和特效图像帧的绘制出现不可避免的延迟。
针对上述情况,参见图5,图5为本申请实施例提供的图像处理方法的一个可选的流程示意图,步骤S103可以通过步骤S1031至步骤S1035实现,能够解决CPU进行目标对象检测时导致延迟的技术问题,将结合各步骤进行说明。
步骤S1031,图像特效应用获取在检测目标对象过程中的检测帧率。
步骤S1032,当检测帧率小于预览帧率时,基于检测帧率和预览帧率之间的差值,图像特效应用对在图像预览的过程中采集到的原始图像帧进行丢帧处理。
在一些实施例中,当检测帧率小于预览帧率时,基于检测帧率和预览帧率之间的差值,对每秒采集到的原始图像帧进行间隔性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于差值;或者,对每秒采集到的原始图像帧进行连续性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于差值。
作为示例,参见图4,在图像预览的过程中,当预览帧率大于检测帧率时,检测单元从原始图像帧识别目标对象的过程比较耗时。此时图像特效应用可以调用CPU从相机应用采集原始图像帧的缓存中读取原始图像帧,并进行间隔性地丢帧处理或连续性地丢帧处理,以使每秒丢帧后得到的原始图像帧的帧数不大于预览帧率,然后将丢帧处理后的原始图像帧存储到图像特效应用的缓存中。
作为示例,当预览帧率为30帧,检测帧率为20帧时,检测单元每秒最多处理20帧原始图像,此时,可以将相机程序每秒传输至检测单元的帧丢弃10帧,以使每秒内丢帧后得到的原始图像帧的帧数为20,和预览帧率相等;也可以,将相机程序每秒传输至检测单元的帧丢弃12帧,以使每秒内丢帧后得到的原始图像帧的帧数为18,小于预览帧率。其中,丢帧处理方式可以为连续性丢帧,即每秒内一次性丢弃10帧连续的原始图像帧;丢帧处理方式也可以为间隔性地丢帧,即每秒内每间隔2帧丢弃1帧原始图像帧。
上述选择对绘制帧率和预览帧率的差值判断,去进行后续丢帧处理,而未选择对图4中的渲染帧率和预览帧率的差值进行判断,是由于选择绘制帧率和预览帧率之间的差值更能体现出屏幕显示过程和识别目标对象过程之间可能会出现的延迟,通过选择绘制帧率和预览帧率之间的差值可以使处理装置110在进行丢帧处理前的预判断过程更加合理以及准确。其中,渲染帧率指执行特效渲染操作后每秒输出的原始图像帧的帧数。
上述的对在图像预览的过程中采集到的原始图像帧进行丢帧处理的方式,不仅能够减小检测单元从原始图像帧中识别目标对象的压力,而且能够提高检测单元从原始图像帧中识别目标对象的速度。
步骤S1033,图像特效应用在进行丢帧处理后的原始图像帧中检 测目标对象。
作为示例,参见图4,图像特效应用从图像特效应用的缓存中读取丢帧处理后的原始图像帧,并且在原始图像帧中进行人脸识别检测目标对象。
作为示例,当预览帧率为30,检测帧率为20时,可以将相机程序每秒传输至缓存(Buffer)的帧丢弃10帧,以使每秒内丢帧后得到的原始图像帧的帧数为20,然后美颜相机可以通过调用CPU在剩下的20帧原始图像帧中去检测目标对象。
上述的在进行丢帧处理后的原始图像帧中检测目标对象的方式,不仅减少了电子设备需要检测原始图像帧的帧数,更进一步的减小电子设备从原始图像帧中识别目标对象的压力,而且能够提高电子设备从原始图像帧中识别目标对象的速度,从而提高了用户在拍摄过程中的体验。
作为示例,检测目标对象的方式可以是自动检测,即自动识别目标对象的特征,无需用户手动操作。也可以是根据用户标定进行检测,即根据用户在预览窗口中标定至少一个需要添加的特效的对象,然后在后续获取的原始图像帧中持续检测用户标定的对象以渲染特效。
作为示例,目标对象的类型可以是人、动物和物体的整体或者局部。例如人脸。
步骤S1034,图像特效应用调用CPU在原始图像帧中对应目标对象的区域,执行滤镜、美颜和贴纸至少之一的特效渲染操作,以得到特效图像帧。
在一些实施例中,在完成对目标对象的检测后,可以对原始图像帧对应的目标的区域,执行滤镜、美颜和贴纸至少之一的特效渲染操作,从而得到经过特效渲染操作后的特效图像帧。
作为示例,在完成人脸识别后,可以根据人脸在原始图像帧的位置,选择给人脸上进行磨皮、美白等操作,或在人脸周围添加装饰等操作,例如:用户在打开美颜相机程序进行自拍时,摄像头启动,程序自动识别用户人脸的位置,然后用户根据自我需求,在其中进行磨皮或美白或添加装饰等操作。
步骤S1035,图像特效应用调用操作系统的绘制接口,在显示区域执行特效图像帧的绘制操作。
在步骤S106中,图像特效应用基于绘制帧率和预览帧率之间的差值,控制图像预览的过程中用于采集新的原始图像帧的分辨率。
申请人在实施本申请的过程中发现,在图像预览并添加特效的过程中,由于电子设备的CPU和GPU的性能的限制,使得显示特效图像帧的实时性取决于预览帧率与采集原始图像帧的分辨率之间的差异,差异越大,则显示特效图像帧的实时性越差,从而,可以根据绘制帧率和预览帧率之间的差值,控制图像预览的过程中采集新的原始图像帧的分辨率,使得分辨率与电子设备的CPU和GPU的性能适配以减小差异,从而保证特效图像帧显示的实时性。
在一些实施例中,步骤S106还可以采用这样的方式实现:基于绘制帧率的取值、以及绘制帧率和预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制图像预览的过程中用于采集新的原始图像帧的分辨率(步骤S1061)。
作为示例,根据绘制帧率的取值、以及绘制帧率和预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制图像预览的过程中用于采集新的原始图像帧的分辨率,具体控制策略如表1所示。
Figure PCTCN2020106906-appb-000001
Figure PCTCN2020106906-appb-000002
表1具体控制策略
其中,绘制帧率的取值的高、中和低分别表示:第一取值空间、第二取值空间、和第三取值空间。
绘制帧率和预览帧率之间的差值的高、中和低分别表示:第四取值空间、第五取值空间、和第六取值空间。
采集原始图像帧的分辨率的取值的高、中和低分别表示:第七取值空间、第八取值空间、和第九取值空间。
其中,上述取值空间之间的关系可以是间隔的也可以是连续的。
参见图6A,图6A为本申请实施例提供的图像处理方法的一个可选的流程示意图,图6A示出了步骤S1061可以通过步骤S10611至步骤S10612实现,将结合各步骤进行说明。
步骤S10611,当满足第一预设条件时,控制用于采集新的原始图像帧的分辨率不变;其中,第一预设条件包括:绘制帧率大于第一预设阈值、以及绘制帧率和预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率大于等于屏幕分辨率。
在一些实施例中,当绘制帧率大于第一预设阈值、以及绘制帧率和预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率大于等于屏幕分辨率时,控制用于采集新的原始图像帧的分辨率不变。
作为示例,当第一预设阈值为18,第二预设阈值为2,预览帧率为20帧,绘制帧率为19帧,屏幕分辨率为92万像素,采集原始图像帧的分辨率为100万像素时,绘制帧率19大于第一预设阈值18,以及绘制帧率和预览帧率之间的差值为1小于第二预设阈值2,以及采集原始图像帧的分辨率100万像素大于屏幕分辨率为92万像素,此时,采集原始图像帧的情况为最佳状态,不调整采集新的原始图像帧的分辨率。
步骤S10612,当满足第二预设条件时,提高用于采集新的原始图像帧的分辨率;其中,第二预设条件包括:绘制帧率大于第一预设阈值、以及绘制帧率和预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率小于屏幕分辨率。
在一些实施例中,当绘制帧率大于第一预设阈值、以及绘制帧率和预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率小于屏幕分辨率时,提高用于采集新的原始图像帧的分辨率,其中,可以将分辨率按比例或一定的步长进行提高。
在一些实施例中,当绘制帧率大于第一预设阈值、以及绘制帧率和预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率大于等于二分之一屏幕分辨率且小于屏幕分辨率时,控制用于采集新的原始图像帧的分辨率不变或者提高用于采集新的原始图像帧的分辨率。
作为示例,当第一预设阈值为18,第二预设阈值为2,预览帧率为20帧,绘制帧率为19帧,屏幕分辨率为92万像素,采集原始图像帧的分辨率为80万像素时,绘制帧率19大于第一预设阈值18,以及绘制帧率和预览帧率之间的差值为1小于第二预设阈值2,以及采集原始图像帧的分辨率80万像素小于屏幕分辨率为92万像素且大于二分之一的屏幕分辨率46万像素时,可以不调整采集新的原始图像帧的分辨率或者将采集原始图像帧的分辨率80万像素提高至100万像素用于采集新的原始图像帧。
在一些实施例中,当绘制帧率大于第一预设阈值、以及绘制帧率和预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率小于二分之一屏幕分辨率时,提高用于采集新的原始图像帧的分辨率。
作为示例,当第一预设阈值为18,第二预设阈值为2,预览帧率为20帧,绘制帧率为19帧,屏幕分辨率为92万像素,采集原始图像帧的分辨率为30万像素时,绘制帧率19大于第一预设阈值18,以及绘制帧率和预览帧率之间的差值为1小于第二预设阈值2,以及采集原始图像帧的分辨率30万像素小于二分之一的屏幕分辨率46万像素, 此时,可以将采集原始图像帧的分辨率30万像素提高至100万像素用于采集新的原始图像帧。
在一些实施例中,当在图像预览的过程中采集到的原始图像帧用于视频录制时,并且,当绘制帧率大于第一预设阈值、以及绘制帧率和预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率小于屏幕分辨率时,提高用于采集新的原始图像帧的分辨率,降低录制视频的码率。其中,可以将码率按比例或一定的步长进行提高。
这里,录制视频的码率是录制视频传输数据时每秒传送的数据位数,单位是kbps即千位每秒。
在一些实施例中,在进行视频录制时,当绘制帧率大于第一预设阈值、以及绘制帧率和预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率小于屏幕分辨率时,会提高用于采集新的原始图像帧的分辨率,在提高采集新的原始图像帧的分辨率的同时,可能会导致分辨率过高而导致录像不清晰,此时可以将录制视频的码率降低,从而会使在视频录制时更加清晰,提高用户体验。
参见图6B,图6B为本申请实施例提供的图像处理方法的一个可选的流程示意图,图6B示出了步骤S1061可以通过步骤S10613至步骤S10614实现,将结合各步骤进行说明。
步骤S10613,当满足第三预设条件时,控制用于采集新的原始图像帧的分辨率不变;其中,第三预设条件包括:绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一屏幕分辨率且小于屏幕分辨率。
在一些实施例中,当绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一屏幕分辨率且小于屏幕分辨率时,控制用于采集新的原始图像帧的分辨率不变。
作为示例,当第一预设阈值为18,第二预设阈值为2,第三预设阈值为15,第四预设阈值为3,预览帧率为20帧,绘制帧率为17帧, 屏幕分辨率为92万像素,采集原始图像帧的分辨率为80万像素时,绘制帧率17小于第一预设阈值18且大于第三预设阈值15,以及绘制帧率和预览帧率之间的差值为3等于第四预设阈值3,以及采集原始图像帧的分辨率80万像素小于屏幕分辨率为92万像素且大于二分之一的屏幕分辨率46万像素,此时,采集原始图像帧的情况为最佳状态,不调整采集新的原始图像帧的分辨率。
步骤S10614,当满足第四预设条件时,降低用于采集新的原始图像帧的分辨率;其中,第四预设条件包括:绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一屏幕分辨率或大于等于屏幕分辨率。
在一些实施例中,当绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一屏幕分辨率或大于等于屏幕分辨率时,降低用于采集新的原始图像帧的分辨率,其中,可以将分辨率按比例或一定的步长进行降低。
在一些实施例中,当绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率大于等于屏幕分辨率时,控制用于采集新的原始图像帧的分辨率不变或者降低用于采集新的原始图像帧的分辨率。
作为示例,当第一预设阈值为18,第二预设阈值为2,第三预设阈值为15,第四预设阈值为3,预览帧率为20帧,绘制帧率为17帧,屏幕分辨率为92万像素,采集原始图像帧的分辨率为100万像素时,绘制帧率17小于第一预设阈值18且大于第三预设阈值15,以及绘制帧率和预览帧率之间的差值为3等于第四预设阈值3,以及采集原始图像帧的分辨率100万像素大于屏幕分辨率为92万像素,此时,可以不调整采集新的原始图像帧的分辨率或者将采集原始图像帧的分辨率100万像素降低至80万像素用于采集新的原始图像帧。
在一些实施例中,当绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一屏幕分辨率时,降低用于采集新的原始图像帧的分辨率。
作为示例,当第一预设阈值为18,第二预设阈值为2,第三预设阈值为15,第四预设阈值为3,预览帧率为20帧,绘制帧率为17帧,屏幕分辨率为92万像素,采集原始图像帧的分辨率为30万像素时,绘制帧率17小于第一预设阈值18且大于第三预设阈值15,以及绘制帧率和预览帧率之间的差值为3等于第四预设阈值3,以及采集原始图像帧的分辨率30万像素小于二分之一的屏幕分辨率46万像素,此时,可以将采集原始图像帧的分辨率30万像素降低至20万像素用于采集新的原始图像帧。
参见图6C,图6C为本申请实施例提供的图像处理方法的一个可选的流程示意图,图6C示出了步骤S1061可以通过步骤S10615至步骤S10616实现,将结合各步骤进行说明。
步骤S10615,当满足第五预设条件时,控制用于采集新的原始图像帧的分辨率不变;其中,第五预设条件包括:绘制帧率小于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一屏幕分辨率。
在一些实施例中,当绘制帧率小于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一屏幕分辨率时,控制用于采集新的原始图像帧的分辨率不变。
作为示例,当第三预设阈值为15,第四预设阈值为3,预览帧率为20帧,绘制帧率为14帧,屏幕分辨率为92万像素,采集原始图像帧的分辨率为30万像素时,绘制帧率14小于第三预设阈值15,以及绘制帧率和预览帧率之间的差值为6大于第四预设阈值2,以及采集原始图像帧的分辨率30万像素小于二分之一屏幕分辨率46万像素,此时,采集原始图像帧的情况为最佳状态,不调整采集新的原始图像帧的分辨率。
步骤S10616,当满足第六预设条件时,降低用于采集新的原始图像帧的分辨率;其中,第六预设条件包括:绘制帧率小于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一屏幕分辨率。
在一些实施例中,当绘制帧率小于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一屏幕分辨率时,降低用于采集新的原始图像帧的分辨率,其中,可以将分辨率按比例或一定的步长进行降低。
在一些实施例中,当绘制帧率小于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一屏幕分辨率且小于屏幕分辨率时,控制用于采集新的原始图像帧的分辨率不变或者降低用于采集新的原始图像帧的分辨率。
作为示例,当第三预设阈值为15,第四预设阈值为3,预览帧率为20帧,绘制帧率为14帧,屏幕分辨率为92万像素,采集原始图像帧的分辨率为80万像素时,绘制帧率14小于第三预设阈值15,以及绘制帧率和预览帧率之间的差值为6大于第四预设阈值2,以及采集原始图像帧的分辨率80万像素小于屏幕分辨率为92万像素且大于二分之一的屏幕分辨率46万像素,此时,可以不调整采集新的原始图像帧的分辨率或者将采集原始图像帧的分辨率80万像素降低至30万像素用于采集新的原始图像帧。
在一些实施例中,当绘制帧率小于第三预设阈值、以及绘制帧率和预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率大于等于屏幕分辨率时,降低用于采集新的原始图像帧的分辨率。
作为示例,当第三预设阈值为15,第四预设阈值为3,预览帧率为20帧,绘制帧率为14帧,屏幕分辨率为92万像素,采集原始图像帧的分辨率为100万像素时,绘制帧率14小于第三预设阈值15,以及绘制帧率和预览帧率之间的差值为6大于第四预设阈值2,以及采集原始图像帧的分辨率100万像素大于屏幕分辨率为92万像素,此时,可以将采集原始图像帧的分辨率100万像素降低至30万像素用于 采集新的原始图像帧。
在一些实施例中,电子设备可以对最终调整得到的采集新的原始图像帧最优值进行本地保存或上传至服务器端,这样的话,在下次启动相机时,可以从本地调用或从服务器获取上次调整所得的最优值来作为采集原始图像帧的分辨率初始值进行使用。
作为示例,相同型号或类似型号的电子设备在相同或类似的应用场景去进行拍照或录像时,一段时间内的最优分辨率值是稳定的,因此,在下次启动相机时,可以从本地调用或从服务器获取上次调整所得的最优值来作为采集原始图像帧的分辨率初始值进行使用
上述基于绘制帧率和预览帧率之间的差值,控制图像预览的过程中用于采集新的原始图像帧的分辨率的方式,能够使特效处理过程中分辨率和帧率的智能化平衡,从而使得用户在进行图像预览时满意度达到最佳,并且获得更优质的使用体验。
图2为本公开实施例提供的图像处理装置300的组成示意图,参见图2,本公开实施例提供的图像处理装置300包括:
获取单元,用于获取在图像预览的过程中采集到的原始图像帧;
执行单元,用于对所述原始图像帧执行特效渲染操作以得到特效图像帧,并在显示区域执行所述特效图像帧的绘制操作;
检测单元,用于检测在图像预览的过程中呈现所述原始图像帧的预览帧率、以及显示区域中呈现所述特效图像帧的绘制帧率;
控制单元,用于根据所述绘制帧率和所述预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
在一些实施例中,所述获取单元,还用于通过调用相机应用的应用程序接口以触发所述相机应用启动图像预览窗口;通过所述应用程序接口,获取所述相机应用在所述图像预览窗口中采集的原始图像帧。
在一些实施例中,所述执行单元,还用于在所述原始图像帧中检测目标对象;在所述原始图像帧中对应所述目标对象的区域,执行滤镜、美颜和贴纸至少之一的特效渲染操作,以得到所述特效图像帧。
在一些实施例中,所述执行单元,还用于获取在检测所述目标对 象过程中的检测帧率;当所述检测帧率小于所述预览帧率时,基于所述检测帧率和所述预览帧率之间的差值,对在图像预览的过程中采集到的原始图像帧进行丢帧处理;在进行丢帧处理后的原始图像帧中检测目标对象。
在一些实施例中,所述执行单元,还用于对每秒采集到的原始图像帧进行间隔性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于所述差值;或者,对每秒采集到的原始图像帧进行连续性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于所述差值。
在一些实施例中,所述控制单元,还用于基于所述绘制帧率的取值、所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
在一些实施例中,所述控制单元,还用于当满足第一预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;其中,所述第一预设条件包括:所述绘制帧率大于第一预设阈值、所述绘制帧率和所述预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率大于等于所述屏幕分辨率;当满足第二预设条件时,提高所述用于采集新的原始图像帧的分辨率;其中,所述第二预设条件包括:所述绘制帧率大于第一预设阈值、所述绘制帧率和所述预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率小于所述屏幕分辨率。
在一些实施例中,所述控制单元,还用于当在图像预览的过程中采集到的原始图像帧用于视频录制时,并且,当满足第二预设条件时;提高所述用于采集新的原始图像帧的分辨率,降低录制视频的码率。
在一些实施例中,所述控制单元,还用于当满足第三预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;其中,所述第三预设条件包括:所述绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一所述屏幕分辨率且小于所述屏幕分辨率;当满足第四预设 条件时,降低所述用于采集新的原始图像帧的分辨率;其中,所述第四预设条件包括:所述绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一所述屏幕分辨率或大于等于所述屏幕分辨率。
在一些实施例中,所述控制单元,还用于当满足第五预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;其中,所述第五预设条件包括:所述绘制帧率小于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一所述屏幕分辨率;当满足第六预设条件时,降低所述用于采集新的原始图像帧的分辨率;其中,所述第六预设条件包括:所述绘制帧率小于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一所述屏幕分辨率。
本公开实施例提供了一种电子设备,包括:
存储器,用于存储可执行指令;
处理器,用于执行所述可执行指令时,实现本公开实施例提供的图像处理的方法。
本公开实施例提供了一种存储介质,存储有可执行指令,所述可执行指令被执行时,用于实现本公开实施例提供的图像处理的方法。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像处理方法,包括:
获取在图像预览的过程中采集到的原始图像帧;
对所述原始图像帧执行特效渲染操作以得到特效图像帧,并在显示区域执行所述特效图像帧的绘制操作;
检测在图像预览的过程中呈现所述原始图像帧的预览帧率、以及显示区域中呈现所述特效图像帧的绘制帧率;
基于所述绘制帧率和所述预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像处理方法,还包括:
所述获取在图像预览的过程中采集到的原始图像帧,包括:
通过调用相机应用的应用程序接口以触发所述相机应用启动图像预览窗口;
通过所述应用程序接口,获取所述相机应用在所述图像预览窗口中采集的原始图像帧。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像处理方法,还包括:
所述对所述原始图像帧执行特效渲染操作以得到特效图像帧,包括:
在所述原始图像帧中检测目标对象;
在所述原始图像帧中对应所述目标对象的区域,执行滤镜、美颜和贴纸至少之一的特效渲染操作,以得到所述特效图像帧。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像处理方法,还包括:
所述在所述原始图像帧中检测目标对象,包括:
获取在检测所述目标对象过程中的检测帧率;
当所述检测帧率小于所述预览帧率时,基于所述检测帧率和所述预览帧率之间的差值,对在图像预览的过程中采集到的原始图像帧进行丢帧处理;
在进行丢帧处理后的原始图像帧中检测目标对象。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像处理方法,还包括:
所述基于所述检测帧率和所述预览帧率之间的差值,对采集到的原始图像帧进行丢帧处理,包括:
对每秒采集到的原始图像帧进行间隔性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于所述差值;
或者,
对每秒采集到的原始图像帧进行连续性地丢帧处理,且每秒丢帧 处理的原始图像帧的数量大于或等于所述差值。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像处理方法,还包括:
所述基于所述绘制帧率和所述预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
基于所述绘制帧率的取值、以及所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像处理方法,还包括:
所述基于所述绘制帧率的取值、以及所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
当满足第一预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;
其中,所述第一预设条件包括:所述绘制帧率大于第一预设阈值、以及所述绘制帧率和所述预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率大于等于所述屏幕分辨率;
当满足第二预设条件时,提高所述用于采集新的原始图像帧的分辨率;
其中,所述第二预设条件包括:所述绘制帧率大于第一预设阈值、以及所述绘制帧率和所述预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率小于所述屏幕分辨率。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像处理方法,还包括:
当在图像预览的过程中采集到的原始图像帧用于视频录制时,
并且,当满足第二预设条件时;
提高所述用于采集新的原始图像帧的分辨率,降低录制视频的码率。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像 处理方法,还包括:
所述基于所述绘制帧率的取值、以及所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
当满足第三预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;
其中,所述第三预设条件包括:所述绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、以及所述绘制帧率和所述预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一所述屏幕分辨率且小于所述屏幕分辨率;
当满足第四预设条件时,降低所述用于采集新的原始图像帧的分辨率;
其中,所述第四预设条件包括:所述绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、以及所述绘制帧率和所述预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一所述屏幕分辨率或大于等于所述屏幕分辨率。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像处理方法,还包括:
所述基于所述绘制帧率的取值、以及所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
当满足第五预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;
其中,所述第五预设条件包括:所述绘制帧率小于第三预设阈值、以及所述绘制帧率和所述预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一所述屏幕分辨率;
当满足第六预设条件时,降低所述用于采集新的原始图像帧的分辨率;
其中,所述第六预设条件包括:所述绘制帧率小于第三预设阈值、以及所述绘制帧率和所述预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一所述屏幕分辨率。
根据本公开的一个或多个实施例,本公开实施例提供了一种图像处理装置,还包括:
获取单元,用于获取在图像预览的过程中采集到的原始图像帧;
执行单元,用于对所述原始图像帧执行特效渲染操作以得到特效图像帧,并在显示区域执行所述特效图像帧的绘制操作;
检测单元,用于检测在图像预览的过程中呈现所述原始图像帧的预览帧率、以及显示区域中呈现所述特效图像帧的绘制帧率;
控制单元,用于根据所述绘制帧率和所述预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
以上描述仅为本公开的实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (13)

  1. 一种图像处理的方法,其特征在于,包括:
    获取在图像预览的过程中采集到的原始图像帧;
    对所述原始图像帧执行特效渲染操作以得到特效图像帧,并在显示区域执行所述特效图像帧的绘制操作;
    检测在图像预览的过程中呈现所述原始图像帧的预览帧率、以及显示区域中呈现所述特效图像帧的绘制帧率;
    基于所述绘制帧率和所述预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
  2. 根据权利要求1所述的方法,其特征在于,所述获取在图像预览的过程中采集到的原始图像帧,包括:
    通过调用相机应用的应用程序接口以触发所述相机应用启动图像预览窗口;
    通过所述应用程序接口,获取所述相机应用在所述图像预览窗口中采集的原始图像帧。
  3. 根据权利要求1所述的方法,其特征在于,所述对所述原始图像帧执行特效渲染操作以得到特效图像帧,包括:
    在所述原始图像帧中检测目标对象;
    在所述原始图像帧中对应所述目标对象的区域,执行滤镜、美颜和贴纸至少之一的特效渲染操作,以得到所述特效图像帧。
  4. 根据权利要求3所述的方法,所述在所述原始图像帧中检测目标对象,包括:
    获取在检测所述目标对象过程中的检测帧率;
    当所述检测帧率小于所述预览帧率时,基于所述检测帧率和所述预览帧率之间的差值,对在图像预览的过程中采集到的原始图像帧进行丢帧 处理;
    在进行丢帧处理后的原始图像帧中检测目标对象。
  5. 根据权利要求4所述的方法,所述基于所述检测帧率和所述预览帧率之间的差值,对采集到的原始图像帧进行丢帧处理,包括:
    对每秒采集到的原始图像帧进行间隔性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于所述差值;
    或者,
    对每秒采集到的原始图像帧进行连续性地丢帧处理,且每秒丢帧处理的原始图像帧的数量大于或等于所述差值。
  6. 根据权利要求1所述的方法,其特征在于,所述基于所述绘制帧率和所述预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
    基于所述绘制帧率的取值、所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
  7. 根据权利要求6所述的方法,其特征在于,所述基于所述绘制帧率的取值、所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
    当满足第一预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;
    其中,所述第一预设条件包括:所述绘制帧率大于第一预设阈值、所述绘制帧率和所述预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率大于等于所述屏幕分辨率;
    当满足第二预设条件时,提高所述用于采集新的原始图像帧的分辨率;
    其中,所述第二预设条件包括:所述绘制帧率大于第一预设阈值、所述绘制帧率和所述预览帧率之间的差值小于第二预设阈值、以及采集原始图像帧的分辨率小于所述屏幕分辨率。
  8. 根据权利要求7所述的方法,其特征在于,还包括:
    当在图像预览的过程中采集到的原始图像帧用于视频录制时,
    并且,当满足第二预设条件时;
    提高所述用于采集新的原始图像帧的分辨率,降低录制视频的码率。
  9. 根据权利要求6所述的方法,其特征在于,所述基于所述绘制帧率的取值、所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率,包括:
    当满足第三预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;
    其中,所述第三预设条件包括:所述绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一所述屏幕分辨率且小于所述屏幕分辨率;
    当满足第四预设条件时,降低所述用于采集新的原始图像帧的分辨率;
    其中,所述第四预设条件包括:所述绘制帧率小于等于第一预设阈值且大于等于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于等于第二预设阈值且小于等于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一所述屏幕分辨率或大于等于所述屏幕分辨率。
  10. 根据权利要求6所述的方法,其特征在于,所述基于所述绘制帧率的取值、所述绘制帧率和所述预览帧率之间的差值、以及采集原始图像帧的分辨率的取值的不同情况,控制所述图像预览的过程中用于采集新 的原始图像帧的分辨率,包括:
    当满足第五预设条件时,控制所述用于采集新的原始图像帧的分辨率不变;
    其中,所述第五预设条件包括:所述绘制帧率小于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率小于二分之一所述屏幕分辨率;
    当满足第六预设条件时,降低所述用于采集新的原始图像帧的分辨率;
    其中,所述第六预设条件包括:所述绘制帧率小于第三预设阈值、所述绘制帧率和所述预览帧率之间的差值大于第四预设阈值、以及采集原始图像帧的分辨率大于等于二分之一所述屏幕分辨率。
  11. 一种图像处理的装置,其特征在于,包括:
    获取单元,用于获取在图像预览的过程中采集到的原始图像帧;
    执行单元,用于对所述原始图像帧执行特效渲染操作以得到特效图像帧,并在显示区域执行所述特效图像帧的绘制操作;
    检测单元,用于检测在图像预览的过程中呈现所述原始图像帧的预览帧率、以及显示区域中呈现所述特效图像帧的绘制帧率;
    控制单元,用于根据所述绘制帧率和所述预览帧率之间的差值,控制所述图像预览的过程中用于采集新的原始图像帧的分辨率。
  12. 一种电子设备,其特征在于,包括:
    存储器,用于存储可执行指令;
    处理器,用于执行所述可执行指令时,实现如权利要求1至10任一项所述的图像处理的方法。
  13. 一种存储介质,其特征在于,存储有可执行指令,所述可执行指令被执行时,用于实现如权利要求1至10任一项所述的图像处理的方法。
PCT/CN2020/106906 2019-08-19 2020-08-04 图像处理的方法、装置、电子设备及存储介质 WO2021031850A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910763721.0 2019-08-19
CN201910763721.0A CN110475065B (zh) 2019-08-19 2019-08-19 图像处理的方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2021031850A1 true WO2021031850A1 (zh) 2021-02-25

Family

ID=68511845

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/106906 WO2021031850A1 (zh) 2019-08-19 2020-08-04 图像处理的方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN110475065B (zh)
WO (1) WO2021031850A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087569B (zh) * 2019-06-12 2022-03-04 杭州萤石软件有限公司 一种摄像机及摄像机启动方法、装置
CN110475065B (zh) * 2019-08-19 2021-03-16 北京字节跳动网络技术有限公司 图像处理的方法、装置、电子设备及存储介质
CN111105392B (zh) * 2019-11-25 2022-12-06 紫光展讯通信(惠州)有限公司 显示性能测试方法、装置及存储介质
CN110855980B (zh) * 2019-11-26 2021-03-26 北京三快在线科技有限公司 一种传感数据处理方法、系统、装置及存储介质
CN110798622B (zh) * 2019-11-29 2022-01-25 维沃移动通信有限公司 一种共享拍摄方法及电子设备
CN112312203B (zh) * 2020-08-25 2023-04-07 北京沃东天骏信息技术有限公司 视频播放方法、装置和存储介质
CN112995504B (zh) * 2021-02-08 2023-04-07 北京小米移动软件有限公司 图像的显示方法及装置、存储介质
CN113556495B (zh) * 2021-07-21 2022-10-28 北京达佳互联信息技术有限公司 视频录制方法、视频处理方法及相应设备
CN115103210B (zh) * 2022-07-12 2024-02-20 北京字跳网络技术有限公司 信息处理方法、装置、终端和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050140787A1 (en) * 2003-11-21 2005-06-30 Michael Kaplinsky High resolution network video camera with massively parallel implementation of image processing, compression and network server
CN101345892A (zh) * 2008-08-19 2009-01-14 北京中星微电子有限公司 一种视频显示方法及其系统
US20160191997A1 (en) * 2014-12-30 2016-06-30 Spotify Ab Method and an electronic device for browsing video content
CN106210853A (zh) * 2016-07-08 2016-12-07 上海幻电信息科技有限公司 弹幕显示系统及其cpu消耗控制方法
CN107277616A (zh) * 2017-07-21 2017-10-20 广州爱拍网络科技有限公司 视频特效渲染方法、装置及终端
CN109474833A (zh) * 2018-11-28 2019-03-15 广州华多网络科技有限公司 一种网络直播的方法、相关装置和系统
CN110475065A (zh) * 2019-08-19 2019-11-19 北京字节跳动网络技术有限公司 图像处理的方法、装置、电子设备及存储介质

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8885099B2 (en) * 2007-02-16 2014-11-11 Marvell World Trade Ltd. Methods and systems for improving low resolution and low frame rate video
EP1990774A1 (en) * 2007-05-11 2008-11-12 Deutsche Thomson OHG Renderer for presenting an image frame by help of a set of displaying commands
JP5701707B2 (ja) * 2011-07-25 2015-04-15 株式会社ソニー・コンピュータエンタテインメント 動画像撮影装置、情報処理システム、情報処理装置、および画像データ処理方法
CN106664389A (zh) * 2014-09-26 2017-05-10 英特尔公司 用于在视频会议中增强用户体验的技术
CN105975046A (zh) * 2016-04-29 2016-09-28 乐视控股(北京)有限公司 拍照预览方法和装置
CN106127843B (zh) * 2016-06-16 2019-05-17 福建数博讯信息科技有限公司 三维虚拟场景的渲染方法和装置
CN108304753B (zh) * 2017-01-24 2020-05-19 腾讯科技(深圳)有限公司 视频通信方法及视频通信装置
CN106919243B (zh) * 2017-03-10 2019-09-24 Oppo广东移动通信有限公司 一种移动终端的控制方法、装置及移动终端
CN107172345B (zh) * 2017-04-07 2020-02-04 深圳市金立通信设备有限公司 一种图像处理方法及终端
CN107948543B (zh) * 2017-11-16 2021-02-02 北京奇虎科技有限公司 一种视频特效处理方法及装置
CN108211352B (zh) * 2017-12-28 2021-11-23 深圳市创梦天地科技有限公司 一种调节画质的方法及终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050140787A1 (en) * 2003-11-21 2005-06-30 Michael Kaplinsky High resolution network video camera with massively parallel implementation of image processing, compression and network server
CN101345892A (zh) * 2008-08-19 2009-01-14 北京中星微电子有限公司 一种视频显示方法及其系统
US20160191997A1 (en) * 2014-12-30 2016-06-30 Spotify Ab Method and an electronic device for browsing video content
CN106210853A (zh) * 2016-07-08 2016-12-07 上海幻电信息科技有限公司 弹幕显示系统及其cpu消耗控制方法
CN107277616A (zh) * 2017-07-21 2017-10-20 广州爱拍网络科技有限公司 视频特效渲染方法、装置及终端
CN109474833A (zh) * 2018-11-28 2019-03-15 广州华多网络科技有限公司 一种网络直播的方法、相关装置和系统
CN110475065A (zh) * 2019-08-19 2019-11-19 北京字节跳动网络技术有限公司 图像处理的方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN110475065A (zh) 2019-11-19
CN110475065B (zh) 2021-03-16

Similar Documents

Publication Publication Date Title
WO2021031850A1 (zh) 图像处理的方法、装置、电子设备及存储介质
CN112165632B (zh) 视频处理方法、装置及设备
US20140111670A1 (en) System and method for enhanced image capture
WO2021254502A1 (zh) 目标对象显示方法、装置及电子设备
WO2015070694A1 (zh) 屏幕拼接系统和视频数据流的处理方法
WO2021082639A1 (zh) 操作用户界面的方法、装置、电子设备及存储介质
WO2021027631A1 (zh) 图像特效处理方法、装置、电子设备和计算机可读存储介质
WO2023040749A1 (zh) 图像处理方法、装置、电子设备及存储介质
US20220094846A1 (en) Method for selecting image based on burst shooting and electronic device
WO2021027596A1 (zh) 图像特效处理方法、装置、电子设备和计算机可读存储介质
US20220394192A1 (en) Video processing method, terminal device and storage medium
WO2022022689A1 (zh) 交互方法、装置和电子设备
WO2023109842A1 (zh) 图像展示方法、装置、电子设备及存储介质
WO2023035882A1 (zh) 视频处理方法、设备、存储介质和程序产品
WO2021135864A1 (zh) 图像处理方法及装置
CN113099146A (zh) 一种视频生成方法、装置及相关设备
WO2021027547A1 (zh) 图像特效处理方法、装置、电子设备和计算机可读存储介质
WO2020052062A1 (zh) 检测方法和装置
WO2022242497A1 (zh) 视频拍摄方法、装置、电子设备和存储介质
CN111352560B (zh) 分屏方法、装置、电子设备和计算机可读存储介质
CN116934577A (zh) 一种风格图像生成方法、装置、设备及介质
WO2021248988A1 (zh) 跨终端录屏方法、终端设备及存储介质
JP2023538825A (ja) ピクチャのビデオへの変換の方法、装置、機器および記憶媒体
WO2021073206A1 (zh) 视频预览的方法、装置、存储介质及电子设备
WO2023231918A1 (zh) 图像处理方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20853916

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20853916

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 26/08/2022)