WO2020063080A1 - Method, system, and cell phone for creating blurring effect during recording - Google Patents

Method, system, and cell phone for creating blurring effect during recording Download PDF

Info

Publication number
WO2020063080A1
WO2020063080A1 PCT/CN2019/097824 CN2019097824W WO2020063080A1 WO 2020063080 A1 WO2020063080 A1 WO 2020063080A1 CN 2019097824 W CN2019097824 W CN 2019097824W WO 2020063080 A1 WO2020063080 A1 WO 2020063080A1
Authority
WO
WIPO (PCT)
Prior art keywords
target object
camera
recorded image
blurring
image
Prior art date
Application number
PCT/CN2019/097824
Other languages
French (fr)
Chinese (zh)
Inventor
徐彭飞
刘臻
杨萍
王函
Original Assignee
珠海格力电器股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 珠海格力电器股份有限公司 filed Critical 珠海格力电器股份有限公司
Publication of WO2020063080A1 publication Critical patent/WO2020063080A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Definitions

  • the present application relates to the field of mobile phones, and in particular, to a method, a system, and a mobile phone for implementing video blurring.
  • Mobile phones with dual cameras are usually a primary camera and a secondary camera. Due to the different positions of the two cameras, the two are different from two. Take pictures of objects at different angles, so you can get three-dimensional data of the objects. Based on the acquired data, you can blur the background to achieve blur photos.
  • the blurring function is usually implemented when the mobile phone performs dual-camera photography, and when the video is recorded by using a dual-camera mobile phone, the blurring function cannot be implemented.
  • the present application provides a method, a system, and a mobile phone for implementing video blurring.
  • a method for implementing video blurring for a device having a first camera and a second camera, including:
  • the second camera When the target object is included in the recorded image, the second camera is turned on and the first region except the target object in the recorded image is blurred.
  • it further includes:
  • the second camera After the second camera is turned on, detecting whether there is a target object in the recorded image every first time period; if the target object is not included in the recorded image, the first camera or the second camera is turned off , Stopping the blurring processing on the first area.
  • monitoring whether the target object is included in the recorded image includes:
  • the target object is a person, an animal, a plant, and / or a building.
  • setting a target object includes:
  • At least one object on the recorded image is selected as the target object.
  • a system for blurring a recorded image for a device having a first camera and a second camera, including:
  • a first monitoring module configured to monitor whether the target object is included in the recorded image when the first camera is recording video
  • a blurring module is configured to, when the recorded image has the target object, the second camera is turned on and performs a blurring process on a first area except the target object in the recorded image.
  • it further includes:
  • a second monitoring module configured to detect whether there is a target object in the recorded image every first time after the second camera is turned on; if the target object is not included in the recorded image, turn off the The first camera or the second camera stops performing blur processing on the first area.
  • monitoring whether the recorded image has the target object includes:
  • the target object is a person, an animal, a plant, and / or a building.
  • the setting module sets a target object, including:
  • At least one object on the recorded image is selected as the target object.
  • a mobile phone including:
  • the processor includes a processor, a memory, and a program stored in the memory and operable on the processor.
  • the processor executes the program, the steps of the method according to the foregoing embodiment are implemented.
  • a mobile phone including the system described in the above embodiment.
  • the blurred image processing is realized. Specifically, the power consumption is reduced without reducing the user experience, and the service life of the camera is prolonged.
  • Fig. 1 is a flow chart showing a method for implementing video blurring according to an exemplary embodiment
  • Fig. 2 is a composition diagram of a system for blurring a recorded image according to an exemplary embodiment.
  • This application proposes a method for blurring a recorded image, which is used in a device with a first camera and a second camera, for example, a dual-camera mobile phone, which can be specifically used in the process of recording video by the device. Please refer to FIG.
  • the proposed methods include:
  • the target object is an object that does not need to be blurred during the video recording process, that is, an object that needs to be captured clearly, for example, it can be a certain type of person or object, or it can be a specific person or object.
  • the first camera here refers to any camera in a device having dual cameras.
  • the device to record video when using the device to record video, only one camera is opened to record video.
  • the recorded image refers to video recording. Each frame picture produced in the process.
  • the first region is blurred.
  • the first region is The remaining area other than the target object is removed from the recorded image. Because of the blurring process, at least two cameras must be turned on. Therefore, at this time, the first camera and the second camera are both turned on to realize the blurring during the recording process.
  • the recording mode is just turned on, that is, when the target object has not been detected in the recorded image, only the first camera is turned on, thereby reducing power consumption without reducing the user experience. , Which prolongs the service life of the device and has a better user experience.
  • the method provided in this application further includes: after the second camera is turned on, detecting whether there is a target object in the recorded image every first time period; if the target is not included in the recorded image The object, turn off the first camera or the second camera, and stop the blurring processing on the first area.
  • the second camera is turned on after having a target object in the recorded image, that is, both the first camera and the second camera are turned on at this time, thereby realizing the blurring processing of the first area.
  • the target object may It repeatedly appears in the recorded image in a short period of time. If the recorded image is continuously detected in real time, the second camera needs to be repeatedly turned on and off, which shortens the service life of the second camera and the user experience is not good. Therefore, in this implementation, In the example, when the two cameras are turned on at the same time, every first time period, such as every 1 minute, to detect whether there is a target object in the recorded image. If the target object disappears, stop the blurring process and close it.
  • the Either camera reduces power consumption and extends service life. If this time the detection shows that the target object appears in the recorded image, then within the first time from the next detection, even if the target object does not appear in the recorded image, the first camera and the second camera are still turned on at the same time, thereby preventing Repeatedly turning the camera on and off for a short time affects the service life.
  • the first duration can be no less than 1 minute.
  • the first camera and the second camera may work alternately during the process of being operated by one camera. For example, the first camera is turned on at the beginning, and the second camera is turned on after the target object appears for the first time. After the target object disappears, the first camera is turned off, and the second camera works instead of the first camera.
  • the first camera turns on, and when the target object disappears again, the second camera turns off.
  • the service life of the two can be prolonged, so that the frequency of use of the two is similar, and the service life is equivalent.
  • one of the cameras of the dual camera device often fails However, at this time, the service life of the dual-camera device is not much. If the camera is replaced, it will cause waste, and if the camera is not replaced, the user experience will be reduced. Comprehensive service life improves user experience.
  • monitoring whether the target object is included in the recorded image includes: acquiring a recorded image as a test image every second time period; and detecting whether the test object has the test object in the test image.
  • target Specifically, a target object is detected using image recognition technology.
  • the target object is a character, an animal, a plant, and / or a building.
  • setting a target object includes: selecting at least one object as a target object from a photo stored on the device; and / or selecting at least one object from a preview image as a target object during video preview; and / Or, at least one object on the recorded image is selected as the target object during the recording process.
  • the camera itself can be used to obtain the target object, for example, when the display screen is clicked during video preview, photo preview, and / or video recording, the device automatically recognizes the clicked object as the target object, thereby improving User experience and user-friendly operation.
  • the target image may be set as an object in the recorded image, and the area ratio of the area occupied by the recorded image exceeds the first ratio.
  • the occupied area in the recorded image may be set.
  • An object whose area is greater than 10% of the total area of the recorded image is the target object, or an object whose target pixel is more than 300 pixels is set as the target object.
  • any type of object whose area occupies more than the first proportion of the area of the recorded image For example, in the recorded image, a person who occupies an area larger than 10% of the total area of the recorded image can be set as the target object.
  • the scene that uses blurred video is often the scene of shooting people.
  • the first experience can improve the user experience. For example, when performing a virtual recording for a group of people, if you set the target object one by one, it will take time and effort. Therefore, at this time, you can directly set the target object as a person. At the same time, when it is a virtual video, it is easy to set non-targets. The task of the subject is shot in. Therefore, a person whose area of the person accounts for more than the first proportion of the recorded image area is set as the target object.
  • the non-target object is replaced according to the image in the video image.
  • a person who is a non-target object is photographed, as described above, it will be replaced.
  • Blur it is still easy to see from the outline of the non-target object that it is a person, resulting in poor video recording when the user blurs the video. Therefore, at this time, a replacement is generated based on the blurred background image in the first area.
  • Image replacing non-target objects with replacement images.
  • the color and hue of the replacement image are similar to the background image, which has the technical effect of automatically processing the recorded image and improves the user experience when blurring the video.
  • the device having the first camera and the second camera is a dual-camera mobile phone.
  • the user uses the mobile phone, he opens a photo application of the mobile phone and enters a photo preview mode.
  • it is used to select at least one target object. .
  • the preview image is displayed on the mobile phone display.
  • the user can click any object on the preview image as the target object. For example, when a person is displayed on the preview image, click the person. Automatically recognize the outline of a person.
  • the mobile phone can prompt the user to specifically select the person as the target object, or choose the broad category of people as the target object.
  • click the record button to enter the recording mode.
  • the mobile phone only turns on the first camera to capture the recorded image, and at the same time monitors whether the target object selected by the user appears in the recorded image in real time. If the target object appears, turn on
  • the second camera performs dual shooting to obtain information of the target object, and performs blurring processing on other regions except the target object, that is, the first region.
  • the recorded image is detected every first time period. When the target object in the recorded image disappears, any camera is turned off, preferably the first camera and the second camera are turned off in turn. If the target object is still in the recorded image, the first area is continuously blurred.
  • the present application determines whether to select a target object by detecting whether the object obtained by the mobile phone during recording has a selected target object, and determines whether to open two cameras for blurring processing at the same time, so as to realize that the user can Selective blurring is performed on the current video content.
  • the present application also proposes a system for implementing video image blurring, for a device having a first camera and a second camera, for example, a dual-camera mobile phone, which can be specifically used in the process of recording video by the device.
  • the system proposed by the application includes: a setting module 10, a first detection module 20 and a blurring module 30.
  • the setting module 10 is used to set a target object.
  • the target object is an object that does not need to be blurred during the video recording process, that is, an object that needs to be captured clearly, for example, it can be a certain type of person or object, or it can be a specific person or object.
  • the first monitoring module 20 is configured to monitor whether there is a target object in the recorded image when the first camera is recording.
  • the first camera here refers to any camera in a device having dual cameras.
  • the device to record video when using the device to record video, only one camera is opened to record video.
  • the recorded image refers to video recording. Any frame in the process.
  • the blurring module 30 is configured to: when the recorded image has a target object, the second camera is turned on and performs a blurring process on a first area except the target object in the recorded image.
  • the first region is blurred.
  • the first region is The remaining area other than the target object is removed from the recorded image. Because of the blurring process, at least two cameras must be turned on. Therefore, at this time, the first camera and the second camera are both turned on to realize the blurring during the recording process.
  • the recording mode is just turned on, that is, when the target object has not been detected in the recorded image, only the first camera is turned on, thereby reducing power consumption without reducing the user experience. , Which prolongs the service life of the device and has a better user experience.
  • the system proposed in this application further includes: a second detection module 40, configured to detect whether the recorded image has a target object every first time after the second camera is turned on; if the If the recorded image does not have the target object, the first camera or the second camera is turned off, and the blurring processing on the first area is stopped.
  • a second detection module 40 configured to detect whether the recorded image has a target object every first time after the second camera is turned on; if the If the recorded image does not have the target object, the first camera or the second camera is turned off, and the blurring processing on the first area is stopped.
  • the second camera is turned on after having a target object in the recorded image, that is, both the first camera and the second camera are turned on at this time, thereby realizing the blurring processing of the first area.
  • the target object may It repeatedly appears in the recorded image in a short period of time. If the recorded image is continuously detected in real time, the second camera needs to be repeatedly turned on and off, which shortens the service life of the second camera and the user experience is not good. Therefore, in this implementation, In the example, when the two cameras are turned on at the same time, every first time period, such as every 1 minute, to detect whether there is a target object in the recorded image. If the target object disappears, stop the blurring process and close it.
  • the Either camera reduces power consumption and extends service life. If this time the detection shows that the target object appears in the recorded image, then within the first time from the next detection, even if the target object does not appear in the recorded image, the first camera and the second camera are still turned on at the same time, thereby preventing Repeatedly turning the camera on and off for a short time affects the service life.
  • the first duration can be no less than 1 minute.
  • the first camera and the second camera may work alternately during the process of being operated by one camera. For example, the first camera is turned on at the beginning, and the second camera is turned on after the target object appears for the first time. After the target object disappears, the first camera is turned off, and the second camera works instead of the first camera.
  • the first camera turns on, and when the target object disappears again, the second camera turns off.
  • the service life of the two can be prolonged, so that the frequency of use of the two is similar, and the service life is equivalent.
  • one of the cameras in the dual-camera device is often damaged. However, at this time, the service life of the dual-camera device is not much. If the camera is replaced, it will cause waste, and if the camera is not replaced, the user experience will be reduced. Comprehensive service life improves user experience.
  • the first detection module 20 monitors whether the target object is included in the recorded image when the first camera is recording, including: acquiring a recorded image as a test image every second time period; and detecting the test image Whether there is the target object in.
  • a target object is detected using image recognition technology.
  • the target object is a character, an animal, a plant, and / or a building.
  • the setting module 10 sets a target object, including: selecting at least one object as a target object from a photo stored in the device; and / or selecting at least one object from a preview image as a video during video preview. A target object; and / or, selecting at least one object on a recorded image as the target object during a video recording process.
  • a camera-based system can be used to obtain a target object, for example, when the display screen is clicked during video preview, photo preview, and / or video recording, the device automatically recognizes the clicked object as the target object, thereby improving User experience and user-friendly operation.
  • the present application also proposes a mobile phone, including a processor, a memory, and a program stored in the memory and operable on the processor. When the processor executes the program, the steps of any method proposed in the application are implemented.
  • the mobile phone has a first camera. And second camera device.
  • This application also proposes another mobile phone, including any of the systems proposed in this application.
  • the mobile phone is a device having a first camera and a second camera.
  • This application proposes a method, a system, and a mobile phone for realizing the blurring of a recorded image.
  • the blurring processing of the recorded image is realized. Specifically, the power consumption is reduced and the camera is extended without reducing the user experience. Life.
  • Any process or method description in a flowchart or otherwise described herein can be understood as a module, fragment, or portion of code that includes one or more executable instructions for implementing a particular logical function or step of a process
  • the scope of the alternative implementations of this application includes additional implementations, in which the functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved, which It should be understood by those skilled in the art to which the embodiments of the present application belong.
  • each part of the application may be implemented by hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application-specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
  • a person of ordinary skill in the art can understand that all or part of the steps carried by the methods in the foregoing embodiments can be implemented by a program instructing related hardware.
  • the program can be stored in a computer-readable storage medium.
  • the program is When executed, one or a combination of the steps of the method embodiment is included.
  • each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist separately physically, or two or more units may be integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
  • the aforementioned storage medium may be a read-only memory, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The present application relates to a method, a system, and a cell phone for creating a blurring effect during recording, applicable to an apparatus having a first camera and a second camera. The method comprises: setting a target object; detecting whether a recorded image contains the target object while the first camera is recording; and if the recorded image contains the target object, activating the second camera, and performing, in the recorded image, blurring processing on a first region excluding the target object, thereby achieving blurring processing of the recorded image during a recording process.

Description

实现录像虚化的方法、系统和手机Method, system and mobile phone for implementing video blurring
相关申请Related applications
本申请要求2018年09月28日申请的,申请号为201811141071.8,名称为“实现录像虚化的方法、系统和手机”的中国专利申请的优先权,在此将其全文引入作为参考。This application claims the priority of a Chinese patent application filed on September 28, 2018, with application number 201811141071.8, entitled "Method, System and Mobile Phone for Video Bluring", which is hereby incorporated by reference in its entirety.
技术领域Technical field
本申请涉及手机领域,具体涉及实现录像虚化的方法、系统和手机。The present application relates to the field of mobile phones, and in particular, to a method, a system, and a mobile phone for implementing video blurring.
背景技术Background technique
随着智能手机的升级换代,越来越多的智能手机装配了双摄像头,具有双摄像头的手机通常是一个主摄像头加一个副摄像头,由于两个摄像头的位置不同,两者分别从两个不同的角度对物体进行拍照,因此可以获得物体的三维立体数据,基于获取的数据可以对背景进行虚化处理,实现虚化拍照。With the upgrading of smartphones, more and more smartphones are equipped with dual cameras. Mobile phones with dual cameras are usually a primary camera and a secondary camera. Due to the different positions of the two cameras, the two are different from two. Take pictures of objects at different angles, so you can get three-dimensional data of the objects. Based on the acquired data, you can blur the background to achieve blur photos.
在现有技术中,通常是在手机进行双摄照相时实现虚化功能,而当用双摄手机进行录像时,无法实现虚化功能In the prior art, the blurring function is usually implemented when the mobile phone performs dual-camera photography, and when the video is recorded by using a dual-camera mobile phone, the blurring function cannot be implemented.
因此,在录像时实现录像图像的虚化处理,是本领域亟待解决的问题。Therefore, it is an urgent problem in the art to realize the blurring processing of the recorded image during the recording.
发明内容Summary of the Invention
为至少在一定程度上克服相关技术中存在的问题,本申请提供实现录像虚化的方法、系统和手机。In order to overcome the problems in the related technology at least to a certain extent, the present application provides a method, a system, and a mobile phone for implementing video blurring.
根据本申请实施例的第一方面,提供一种实现录像虚化的方法,用于具有第一摄像头和第二摄像头的设备,包括:According to a first aspect of the embodiments of the present application, a method for implementing video blurring is provided for a device having a first camera and a second camera, including:
设定目标对象;Set a target audience;
在第一摄像头进行录像时,监测录像图像中是否具有所述目标对象;Monitoring whether the target object exists in the recorded image when the first camera is recording;
当所述录像图像中具有所述目标对象时,所述第二摄像头开启并对所述录像图像中除所述目标对象以外的第一区域进行虚化处理。When the target object is included in the recorded image, the second camera is turned on and the first region except the target object in the recorded image is blurred.
在其中一个实施例中,还包括:In one of the embodiments, it further includes:
在所述第二摄像头开启后,每隔第一时长检测一次所述录像图像中是否具有目标对象;若所述录像图像中不具有所述目标对象,则关闭所述第一摄像头或第二摄像头,停止 对所述第一区域进行虚化处理。After the second camera is turned on, detecting whether there is a target object in the recorded image every first time period; if the target object is not included in the recorded image, the first camera or the second camera is turned off , Stopping the blurring processing on the first area.
在其中一个实施例中,在第一摄像头进行录像时,监测录像图像中是否具有所述目标对象,包括:In one embodiment, when the first camera is recording, monitoring whether the target object is included in the recorded image includes:
每隔第二时长获取一次录像图像作为待测图像;Acquiring a video image as a test image every second time period;
检测所述待测图像中是否具有所述目标对象。Detect whether the target object is present in the image to be tested.
在其中一个实施例中,所述目标对象为人物、动物、植物和/或建筑物。In one embodiment, the target object is a person, an animal, a plant, and / or a building.
在其中一个实施例中,设定目标对象,包括:In one embodiment, setting a target object includes:
从所述设备存储的照片上选取至少一个对象作为目标对象;Selecting at least one object as a target object from a photo stored on the device;
和/或,and / or,
在录像预览时从预览图像中选取至少一个对象作为所述目标对象;Selecting at least one object from the preview image as the target object during video preview;
和/或,and / or,
在录像过程中选取录像图像上至少一个对象作为所述目标对象。During the recording process, at least one object on the recorded image is selected as the target object.
根据本申请实施例的第二方面,提供一种实现录像图像虚化的系统,用于具有第一摄像头和第二摄像头的设备,包括:According to a second aspect of the embodiments of the present application, a system for blurring a recorded image is provided for a device having a first camera and a second camera, including:
设定模块,用于设定目标对象;A setting module for setting a target object;
第一监测模块,用于在第一摄像头进行录像时,监测录像图像中是否具有所述目标对象;A first monitoring module, configured to monitor whether the target object is included in the recorded image when the first camera is recording video;
虚化模块,用于当所述录像图像中具有所述目标对象时,所述第二摄像头开启并对所述录像图像中除所述目标对象以外的第一区域进行虚化处理。A blurring module is configured to, when the recorded image has the target object, the second camera is turned on and performs a blurring process on a first area except the target object in the recorded image.
在其中一个实施例中,还包括:In one of the embodiments, it further includes:
第二监测模块,用于在所述第二摄像头开启后,每隔第一时长检测一次所述录像图像中是否具有目标对象;若所述录像图像中不具有所述目标对象,则关闭所述第一摄像头或第二摄像头,停止对所述第一区域进行虚化处理。A second monitoring module, configured to detect whether there is a target object in the recorded image every first time after the second camera is turned on; if the target object is not included in the recorded image, turn off the The first camera or the second camera stops performing blur processing on the first area.
在其中一个实施例中,所述第一检测模块在第一摄像头进行录像时,监测录像图像中是否具有所述目标对象,包括:In one of the embodiments, when the first detection module performs recording on the first camera, monitoring whether the recorded image has the target object includes:
每隔第二时长获取一次录像图像作为待测图像;Acquiring a video image as a test image every second time period;
检测所述待测图像中是否具有所述目标对象。Detect whether the target object is present in the image to be tested.
在其中一个实施例中,所述目标对象为人物、动物、植物和/或建筑物。In one embodiment, the target object is a person, an animal, a plant, and / or a building.
在其中一个实施例中,所述设定模块设定目标对象,包括:In one embodiment, the setting module sets a target object, including:
从所述设备存储的照片上选取至少一个对象作为目标对象;Selecting at least one object as a target object from a photo stored on the device;
和/或,and / or,
在录像预览时从预览图像中选取至少一个对象作为所述目标对象;Selecting at least one object from the preview image as the target object during video preview;
和/或,and / or,
在录像过程中选取录像图像上至少一个对象作为所述目标对象。During the recording process, at least one object on the recorded image is selected as the target object.
根据本申请实施例的第三方面,提供一种手机,包括:According to a third aspect of the embodiments of the present application, a mobile phone is provided, including:
包括处理器、存储器以及存储在存储器上可在处理器上工作的程序,所述处理器执行所述程序时实现上述实施例所述的方法的步骤。The processor includes a processor, a memory, and a program stored in the memory and operable on the processor. When the processor executes the program, the steps of the method according to the foregoing embodiment are implemented.
在其中一个实施例中,提供一种手机,包括如上述实施例所述的系统。In one embodiment, a mobile phone is provided, including the system described in the above embodiment.
本申请的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present application may include the following beneficial effects:
在录像过程中实现了录像图像的虚化处理,具体的,在不降低用户体验的情况下降低了功耗,延长了摄像头的使用寿命。During the video recording process, the blurred image processing is realized. Specifically, the power consumption is reduced without reducing the user experience, and the service life of the camera is prolonged.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and should not limit the present application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description serve to explain the principles of the application.
图1是根据一示例性实施例示出的一种实现录像虚化的方法的流程图;Fig. 1 is a flow chart showing a method for implementing video blurring according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种实现录像图像虚化的系统的组成图。Fig. 2 is a composition diagram of a system for blurring a recorded image according to an exemplary embodiment.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution, and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described in combination with specific embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、装置、产品或电器不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或电器固有的其它步骤或单元。It should be noted that the terms “first” and “second” in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data so used may be interchanged where appropriate so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. Furthermore, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, device, product, or appliance that includes a series of steps or units need not be limited to those explicitly listed Those steps or units may instead include other steps or units not explicitly listed or inherent to these processes, methods, products or appliances.
在现有技术中,具有多摄像头的设备越来越多,例如双摄手机、平板和电脑,但是现有的具有多摄像头的设备往往只能进行虚化拍照,不能进行虚化录像,因此,本申请提出一种实现录像图像虚化的方法,用于具有第一摄像头和第二摄像头的设备,例如用于双摄手机,具体可用于设备进行录像的过程中,请查看图1,本申请提出的方法包括:In the prior art, more and more devices have multiple cameras, such as dual-camera phones, tablets, and computers. However, the existing devices with multiple cameras can often only take blurred photos and cannot perform blurred video recording. Therefore, This application proposes a method for blurring a recorded image, which is used in a device with a first camera and a second camera, for example, a dual-camera mobile phone, which can be specifically used in the process of recording video by the device. Please refer to FIG. The proposed methods include:
S11:设定目标对象。S11: Set a target object.
具体的,目标对象是录像过程中不用进行虚化的对象,即需要清晰拍摄的对象,例如可以是某一类的人或物,也可以是具体的一个人或物。Specifically, the target object is an object that does not need to be blurred during the video recording process, that is, an object that needs to be captured clearly, for example, it can be a certain type of person or object, or it can be a specific person or object.
S12:在第一摄像头进行录像时,监测录像图像中是否具有目标对象。S12: When the first camera is recording, monitor whether there is a target object in the recorded image.
具体的,此处的第一摄像头是指具有双摄像头的设备中的任意一个摄像头,在本实施例中,当用该设备进行录像时,先只打开一个摄像头,进行录像,录像图像是指录像过程中产生的各个帧画面。Specifically, the first camera here refers to any camera in a device having dual cameras. In this embodiment, when using the device to record video, only one camera is opened to record video. The recorded image refers to video recording. Each frame picture produced in the process.
S13:当录像图像中具有目标对象时,第二摄像头开启并对录像图像中除目标对象以外的第一区域进行虚化处理。S13: When there is a target object in the recorded image, the second camera is turned on, and the first region except the target object in the recorded image is blurred.
具体的,在用设备进行录像的过程中,当录像图像中出现目标对象时,需要对除了目标对象以外的其余全部对象进行虚化处理,即对第一区域进行虚化处理,第一区域是录像图像中去除目标对象以外的剩余区域,因为要进行虚化处理,所以必须要开启至少2个摄像头,因此,此时第一摄像头和第二摄像头都处于开启状态,以实现录像过程中的虚化处理,并且,在本实施例中,在刚开启录像模式时,即在录像图像中尚未检测到目标对象时,只开启第一摄像头,从而在不降低用户体验的情况下,降低了功耗,延长了设备的使用寿命,具有较好的用户体验。Specifically, in the process of recording with a device, when a target object appears in a recorded image, all objects except the target object need to be blurred, that is, the first region is blurred. The first region is The remaining area other than the target object is removed from the recorded image. Because of the blurring process, at least two cameras must be turned on. Therefore, at this time, the first camera and the second camera are both turned on to realize the blurring during the recording process. Moreover, in this embodiment, when the recording mode is just turned on, that is, when the target object has not been detected in the recorded image, only the first camera is turned on, thereby reducing power consumption without reducing the user experience. , Which prolongs the service life of the device and has a better user experience.
可选的,本申请提出的方法,还包括:在所述第二摄像头开启后,每隔第一时长检测一次所述录像图像中是否具有目标对象;若所述录像图像中不具有所述目标对象,则关闭所述第一摄像头或第二摄像头,停止对所述第一区域进行虚化处理。Optionally, the method provided in this application further includes: after the second camera is turned on, detecting whether there is a target object in the recorded image every first time period; if the target is not included in the recorded image The object, turn off the first camera or the second camera, and stop the blurring processing on the first area.
具体的,第二摄像头是在录像图像中具有目标对象后开启的,即此时第一摄像头和第二摄像头都开启,从而实现第一区域的虚化处理,在录像过程中,目标对象可能会在短时间内反复的出现在录像图像中,如果实时不间断的检测录像图像,则第二摄像头需要反复开关,缩短了第二摄像头的使用寿命,且用户体验也不佳,因此,在本实施例中,在两个摄像头同时开启的情况下,每隔第一时长,例如每隔1分钟,检测一次录像图像中是否具有目标对象,如果目标对象消失,则停止进行虚化处理,并且关闭其中任一摄像头,从而降低功耗,延长使用寿命。如果这一次检测显示目标对象出现在录像图像中,那么在距离下一次检测的第一时长内,即使目标对象不出现在录像图像中,也仍然同时开启第一摄像 头和第二摄像头,从而防止因为短时间内反复开关摄像头影响使用寿命。可选的,第一时长可以不短于1分钟。此外,在本申请中,在由一个摄像头工作的过程中,第一摄像头和第二摄像头可以交替工作,例如,最开始打开的是第一摄像头,第一次出现目标对象后,第二摄像头打开,目标对象消失后,第一摄像头关闭,由第二摄像头代替第一摄像头工作,目标对象再一次出现后,第一摄像头打开,目标对象再一次消失时,第二摄像头关闭。通过第一摄像头和第二摄像头交替单独工作,可以延长两者的使用寿命,使得两者的使用频率相近,使用寿命相当,在现有技术中,经常出现双摄设备中其中一个摄像头损坏的问题,而此时双摄设备使用寿命剩余不多,如果更换摄像头则造成浪费,不更换摄像头则降低了用户体验,本申请通过保证第一摄像头和第二摄像头的使用频率相近,从而延长两者的综合使用寿命,提高了用户体验。Specifically, the second camera is turned on after having a target object in the recorded image, that is, both the first camera and the second camera are turned on at this time, thereby realizing the blurring processing of the first area. During the recording process, the target object may It repeatedly appears in the recorded image in a short period of time. If the recorded image is continuously detected in real time, the second camera needs to be repeatedly turned on and off, which shortens the service life of the second camera and the user experience is not good. Therefore, in this implementation, In the example, when the two cameras are turned on at the same time, every first time period, such as every 1 minute, to detect whether there is a target object in the recorded image. If the target object disappears, stop the blurring process and close it. Either camera reduces power consumption and extends service life. If this time the detection shows that the target object appears in the recorded image, then within the first time from the next detection, even if the target object does not appear in the recorded image, the first camera and the second camera are still turned on at the same time, thereby preventing Repeatedly turning the camera on and off for a short time affects the service life. Optionally, the first duration can be no less than 1 minute. In addition, in this application, the first camera and the second camera may work alternately during the process of being operated by one camera. For example, the first camera is turned on at the beginning, and the second camera is turned on after the target object appears for the first time. After the target object disappears, the first camera is turned off, and the second camera works instead of the first camera. After the target object appears again, the first camera turns on, and when the target object disappears again, the second camera turns off. By alternately working the first camera and the second camera separately, the service life of the two can be prolonged, so that the frequency of use of the two is similar, and the service life is equivalent. In the prior art, one of the cameras of the dual camera device often fails However, at this time, the service life of the dual-camera device is not much. If the camera is replaced, it will cause waste, and if the camera is not replaced, the user experience will be reduced. Comprehensive service life improves user experience.
可选的,在第一摄像头进行录像时,监测录像图像中是否具有所述目标对象,包括:每隔第二时长获取一次录像图像作为待测图像;检测所述待测图像中是否具有所述目标对象。具体的,采用图像识别技术检测目标对象。Optionally, when the first camera is recording, monitoring whether the target object is included in the recorded image includes: acquiring a recorded image as a test image every second time period; and detecting whether the test object has the test object in the test image. target. Specifically, a target object is detected using image recognition technology.
可选的,所述目标对象为人物、动物、植物和/或建筑物。可选的,设定目标对象,包括:从所述设备存储的照片上选取至少一个对象作为目标对象;和/或,在录像预览时从预览图像中选取至少一个对象作为所述目标对象;和/或,在录像过程中选取录像图像上至少一个对象作为所述目标对象。与现有技术相比,本身可以使用摄像头拍摄的方法获取目标对象,例如在录像预览、照相预览和/或录像过程中点击显示屏,设备自动识别被点击的对象,作为目标对象,从而提高了用户体验,并方便用户操作。Optionally, the target object is a character, an animal, a plant, and / or a building. Optionally, setting a target object includes: selecting at least one object as a target object from a photo stored on the device; and / or selecting at least one object from a preview image as a target object during video preview; and / Or, at least one object on the recorded image is selected as the target object during the recording process. Compared with the prior art, the camera itself can be used to obtain the target object, for example, when the display screen is clicked during video preview, photo preview, and / or video recording, the device automatically recognizes the clicked object as the target object, thereby improving User experience and user-friendly operation.
可选的,在本申请提出的方法和系统中,可以设定目标图像为录像图像中,所占面积与录像图像的面积比超过第一比例的对象,例如可以设定录像图像中,所占面积大于录像图像总面积10%的对象为目标对象,或者设定目标对象为像素超过300像素的对象为目标对象。或是,所占面积占录像图像的面积超过第一比例的任一类别的对象,例如可以设定录像图像中,所占面积大于录像图像总面积10%的人为目标对象,在实际使用过程中,采用虚化录像的场景常常是拍摄人物的场景,在拍摄人物时,很多时候会将其他人物拍摄进来,但是其他人物一般所占的比例较小,因此通过设置第一比例可以提高用户体验。例如,在为一群人进行虚化录像时,如果一个一个设定目标对象必然费时费力,因此,此时可以直接设定目标对象为人物,同时,在虚化录像的时候,因为容易将非目标对象的任务拍摄进来,因此,设定人物面积占录像图像面积超过第一比例的人物为目标对象。从而实现快速设定目标对象,节省用户时间,并且避免了因意外录入非目标对象的路人导致的拍摄效果差的问题,提高用户体验,在进行虚化录像时无需刻意避开路人。可选的,还可以设定 在拍摄到非目标对象的人物时,根据录像图像中的图像对非目标对象进行替换,在拍摄到非目标对象的人物时,如前所述,会对其进行虚化,但是,仍然容易从非目标对象的轮廓中看出其是人物,导致用户虚化录像时录像效果不佳,因此,此时根据第一区域中的被虚化的背景图像,生成替换图像,用替换图像替换非目标对象。替换图像的色彩和色调与背景图像相似,起到自动对录像图像进行处理的技术效果,提高虚化录像时的用户体验。Optionally, in the method and system proposed in the present application, the target image may be set as an object in the recorded image, and the area ratio of the area occupied by the recorded image exceeds the first ratio. For example, the occupied area in the recorded image may be set. An object whose area is greater than 10% of the total area of the recorded image is the target object, or an object whose target pixel is more than 300 pixels is set as the target object. Or, any type of object whose area occupies more than the first proportion of the area of the recorded image. For example, in the recorded image, a person who occupies an area larger than 10% of the total area of the recorded image can be set as the target object. During actual use, The scene that uses blurred video is often the scene of shooting people. When shooting people, other people are often shot in, but the proportion of other people is generally small, so the first experience can improve the user experience. For example, when performing a virtual recording for a group of people, if you set the target object one by one, it will take time and effort. Therefore, at this time, you can directly set the target object as a person. At the same time, when it is a virtual video, it is easy to set non-targets. The task of the subject is shot in. Therefore, a person whose area of the person accounts for more than the first proportion of the recorded image area is set as the target object. Therefore, it is possible to quickly set a target object, save user time, and avoid the problem of poor shooting results caused by passers-by who accidentally enter a non-target object, improve the user experience, and avoid deliberately avoiding passers-by when performing blurred recording. Optionally, when a person who is not a target object is photographed, the non-target object is replaced according to the image in the video image. When a person who is a non-target object is photographed, as described above, it will be replaced. Blur, however, it is still easy to see from the outline of the non-target object that it is a person, resulting in poor video recording when the user blurs the video. Therefore, at this time, a replacement is generated based on the blurred background image in the first area. Image, replacing non-target objects with replacement images. The color and hue of the replacement image are similar to the background image, which has the technical effect of automatically processing the recorded image and improves the user experience when blurring the video.
为了更好的说明本申请的有益效果,以下提出一可选的实施例。In order to better illustrate the beneficial effects of this application, an optional embodiment is provided below.
在本实施例中,具有第一摄像头和第二摄像头的设备为双摄手机,用户使用该手机时,打开手机的拍照应用,进入拍照预览模式,使用本方法时用于需要选择至少一个目标对象。用于将拍照预览模式切换至录像预览模式,此时手机显示屏上显示有预览图像,用户可以点击预览图像上的任何对象作为目标对象,例如预览图像上显示有人物时,点击该人物,手机自动识别人物轮廓,此时手机可以提示用户具体选择该人物作为目标对象,还是选择人这一大类作为目标对象。在用户开始进行录像时,点击录像按钮,进入录像模式,此时手机只开启第一摄像头捕获录像图像,同时实时监测录像图像中是否出现了用户选择的目标对象,如果出现了目标对象,则开启第二摄像头,进行双摄,获取目标对象的信息,对除了目标对象以外的其他区域,即第一区域,进行虚化处理,在双摄像头同时工作期间,每隔第一时长检测一次录像图像,当录像图像中的目标对象消失时,关闭任意一个摄像头,优选为第一摄像头和第二摄像头轮流关闭。如果目标对象仍然在录像图像内,就继续对第一区域进行虚化处理。本申请通过判断检测手机在录像时获取的对象是否存在已选择的目标对象,决定是否同时打开两个摄进行虚化处理,从而在尽量减小功耗的前提下实现用户在用手机录像时对当前摄像内容进行可选择性虚化处理。In this embodiment, the device having the first camera and the second camera is a dual-camera mobile phone. When the user uses the mobile phone, he opens a photo application of the mobile phone and enters a photo preview mode. When using this method, it is used to select at least one target object. . Used to switch the photo preview mode to the video preview mode. At this time, the preview image is displayed on the mobile phone display. The user can click any object on the preview image as the target object. For example, when a person is displayed on the preview image, click the person. Automatically recognize the outline of a person. At this time, the mobile phone can prompt the user to specifically select the person as the target object, or choose the broad category of people as the target object. When the user starts recording, click the record button to enter the recording mode. At this time, the mobile phone only turns on the first camera to capture the recorded image, and at the same time monitors whether the target object selected by the user appears in the recorded image in real time. If the target object appears, turn on The second camera performs dual shooting to obtain information of the target object, and performs blurring processing on other regions except the target object, that is, the first region. During the simultaneous operation of the dual cameras, the recorded image is detected every first time period. When the target object in the recorded image disappears, any camera is turned off, preferably the first camera and the second camera are turned off in turn. If the target object is still in the recorded image, the first area is continuously blurred. The present application determines whether to select a target object by detecting whether the object obtained by the mobile phone during recording has a selected target object, and determines whether to open two cameras for blurring processing at the same time, so as to realize that the user can Selective blurring is performed on the current video content.
本申请还提出一种实现录像图像虚化的系统,用于具有第一摄像头和第二摄像头的设备,例如用于双摄手机,具体可用于设备进行录像的过程中,请查看图2,本申请提出的系统包括:设定模块10、第一检测模块20和虚化模块30。The present application also proposes a system for implementing video image blurring, for a device having a first camera and a second camera, for example, a dual-camera mobile phone, which can be specifically used in the process of recording video by the device. Please refer to FIG. The system proposed by the application includes: a setting module 10, a first detection module 20 and a blurring module 30.
设定模块10用于设定目标对象。The setting module 10 is used to set a target object.
具体的,目标对象是录像过程中不用进行虚化的对象,即需要清晰拍摄的对象,例如可以是某一类的人或物,也可以是具体的一个人或物。Specifically, the target object is an object that does not need to be blurred during the video recording process, that is, an object that needs to be captured clearly, for example, it can be a certain type of person or object, or it can be a specific person or object.
第一监测模块20用于在第一摄像头进行录像时,监测录像图像中是否具有目标对象。The first monitoring module 20 is configured to monitor whether there is a target object in the recorded image when the first camera is recording.
具体的,此处的第一摄像头是指具有双摄像头的设备中的任意一个摄像头,在本实施例中,当用该设备进行录像时,先只打开一个摄像头,进行录像,录像图像是指录像过程中的任一帧画面。Specifically, the first camera here refers to any camera in a device having dual cameras. In this embodiment, when using the device to record video, only one camera is opened to record video. The recorded image refers to video recording. Any frame in the process.
虚化模块30用于当录像图像中具有目标对象时,第二摄像头开启并对录像图像中除 目标对象以外的第一区域进行虚化处理。The blurring module 30 is configured to: when the recorded image has a target object, the second camera is turned on and performs a blurring process on a first area except the target object in the recorded image.
具体的,在用设备进行录像的过程中,当录像图像中出现目标对象时,需要对除了目标对象以外的其余全部对象进行虚化处理,即对第一区域进行虚化处理,第一区域是录像图像中去除目标对象以外的剩余区域,因为要进行虚化处理,所以必须要开启至少2个摄像头,因此,此时第一摄像头和第二摄像头都处于开启状态,以实现录像过程中的虚化处理,并且,在本实施例中,在刚开启录像模式时,即在录像图像中尚未检测到目标对象时,只开启第一摄像头,从而在不降低用户体验的情况下,降低了功耗,延长了设备的使用寿命,具有较好的用户体验。Specifically, in the process of recording with a device, when a target object appears in a recorded image, all objects except the target object need to be blurred, that is, the first region is blurred. The first region is The remaining area other than the target object is removed from the recorded image. Because of the blurring process, at least two cameras must be turned on. Therefore, at this time, the first camera and the second camera are both turned on to realize the blurring during the recording process. Moreover, in this embodiment, when the recording mode is just turned on, that is, when the target object has not been detected in the recorded image, only the first camera is turned on, thereby reducing power consumption without reducing the user experience. , Which prolongs the service life of the device and has a better user experience.
可选的,本申请提出的系统,还包括:第二检测模块40,用于在所述第二摄像头开启后,每隔第一时长检测一次所述录像图像中是否具有目标对象;若所述录像图像中不具有所述目标对象,则关闭所述第一摄像头或第二摄像头,停止对所述第一区域进行虚化处理。Optionally, the system proposed in this application further includes: a second detection module 40, configured to detect whether the recorded image has a target object every first time after the second camera is turned on; if the If the recorded image does not have the target object, the first camera or the second camera is turned off, and the blurring processing on the first area is stopped.
具体的,第二摄像头是在录像图像中具有目标对象后开启的,即此时第一摄像头和第二摄像头都开启,从而实现第一区域的虚化处理,在录像过程中,目标对象可能会在短时间内反复的出现在录像图像中,如果实时不间断的检测录像图像,则第二摄像头需要反复开关,缩短了第二摄像头的使用寿命,且用户体验也不佳,因此,在本实施例中,在两个摄像头同时开启的情况下,每隔第一时长,例如每隔1分钟,检测一次录像图像中是否具有目标对象,如果目标对象消失,则停止进行虚化处理,并且关闭其中任一摄像头,从而降低功耗,延长使用寿命。如果这一次检测显示目标对象出现在录像图像中,那么在距离下一次检测的第一时长内,即使目标对象不出现在录像图像中,也仍然同时开启第一摄像头和第二摄像头,从而防止因为短时间内反复开关摄像头影响使用寿命。可选的,第一时长可以不短于1分钟。此外,在本申请中,在由一个摄像头工作的过程中,第一摄像头和第二摄像头可以交替工作,例如,最开始打开的是第一摄像头,第一次出现目标对象后,第二摄像头打开,目标对象消失后,第一摄像头关闭,由第二摄像头代替第一摄像头工作,目标对象再一次出现后,第一摄像头打开,目标对象再一次消失时,第二摄像头关闭。通过第一摄像头和第二摄像头交替单独工作,可以延长两者的使用寿命,使得两者的使用频率相近,使用寿命相当,在现有技术中,经常出现双摄设备中其中一个摄像头损坏的问题,而此时双摄设备使用寿命剩余不多,如果更换摄像头则造成浪费,不更换摄像头则降低了用户体验,本申请通过保证第一摄像头和第二摄像头的使用频率相近,从而延长两者的综合使用寿命,提高了用户体验。Specifically, the second camera is turned on after having a target object in the recorded image, that is, both the first camera and the second camera are turned on at this time, thereby realizing the blurring processing of the first area. During the recording process, the target object may It repeatedly appears in the recorded image in a short period of time. If the recorded image is continuously detected in real time, the second camera needs to be repeatedly turned on and off, which shortens the service life of the second camera and the user experience is not good. Therefore, in this implementation, In the example, when the two cameras are turned on at the same time, every first time period, such as every 1 minute, to detect whether there is a target object in the recorded image. If the target object disappears, stop the blurring process and close it. Either camera reduces power consumption and extends service life. If this time the detection shows that the target object appears in the recorded image, then within the first time from the next detection, even if the target object does not appear in the recorded image, the first camera and the second camera are still turned on at the same time, thereby preventing Repeatedly turning the camera on and off for a short time affects the service life. Optionally, the first duration can be no less than 1 minute. In addition, in this application, the first camera and the second camera may work alternately during the process of being operated by one camera. For example, the first camera is turned on at the beginning, and the second camera is turned on after the target object appears for the first time. After the target object disappears, the first camera is turned off, and the second camera works instead of the first camera. After the target object appears again, the first camera turns on, and when the target object disappears again, the second camera turns off. By alternately working the first camera and the second camera separately, the service life of the two can be prolonged, so that the frequency of use of the two is similar, and the service life is equivalent. In the prior art, one of the cameras in the dual-camera device is often damaged. However, at this time, the service life of the dual-camera device is not much. If the camera is replaced, it will cause waste, and if the camera is not replaced, the user experience will be reduced. Comprehensive service life improves user experience.
可选的,第一检测模块20在第一摄像头进行录像时,监测录像图像中是否具有所述目标对象,包括:每隔第二时长获取一次录像图像作为待测图像;检测所述待测图像中是 否具有所述目标对象。具体的,采用图像识别技术检测目标对象。Optionally, the first detection module 20 monitors whether the target object is included in the recorded image when the first camera is recording, including: acquiring a recorded image as a test image every second time period; and detecting the test image Whether there is the target object in. Specifically, a target object is detected using image recognition technology.
可选的,所述目标对象为人物、动物、植物和/或建筑物。可选的,设定模块10设定目标对象,包括:从所述设备存储的照片上选取至少一个对象作为目标对象;和/或,在录像预览时从预览图像中选取至少一个对象作为所述目标对象;和/或,在录像过程中选取录像图像上至少一个对象作为所述目标对象。与现有技术相比,本身可以使用摄像头拍摄的系统获取目标对象,例如在录像预览、照相预览和/或录像过程中点击显示屏,设备自动识别被点击的对象,作为目标对象,从而提高了用户体验,并方便用户操作。Optionally, the target object is a character, an animal, a plant, and / or a building. Optionally, the setting module 10 sets a target object, including: selecting at least one object as a target object from a photo stored in the device; and / or selecting at least one object from a preview image as a video during video preview. A target object; and / or, selecting at least one object on a recorded image as the target object during a video recording process. Compared with the prior art, a camera-based system can be used to obtain a target object, for example, when the display screen is clicked during video preview, photo preview, and / or video recording, the device automatically recognizes the clicked object as the target object, thereby improving User experience and user-friendly operation.
本申请还提出一种手机,包括处理器、存储器以及存储在存储器上可在处理器上工作的程序,处理器执行程序时实现本申请提出的任一方法的步骤,该手机为具有第一摄像头和第二摄像头的设备。本申请还提出另一种手机,包括本申请提出的任一的系统,该手机为具有第一摄像头和第二摄像头的设备。The present application also proposes a mobile phone, including a processor, a memory, and a program stored in the memory and operable on the processor. When the processor executes the program, the steps of any method proposed in the application are implemented. The mobile phone has a first camera. And second camera device. This application also proposes another mobile phone, including any of the systems proposed in this application. The mobile phone is a device having a first camera and a second camera.
本申请提出了一种实现录像图像虚化的方法、系统和手机,在录像过程中实现了录像图像的虚化处理,具体的,在不降低用户体验的情况下降低了功耗,延长了摄像头的使用寿命。This application proposes a method, a system, and a mobile phone for realizing the blurring of a recorded image. During the recording process, the blurring processing of the recorded image is realized. Specifically, the power consumption is reduced and the camera is extended without reducing the user experience. Life.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above description is only a preferred embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, this application may have various modifications and changes. Any modification, equivalent replacement, or improvement made within the spirit and principle of this application shall be included in the protection scope of this application.
可以理解的是,上述各实施例中相同或相似部分可以相互参考,在一些实施例中未详细说明的内容可以参见其他实施例中相同或相似的内容。It can be understood that the same or similar parts in the above embodiments can be referred to each other. For the content that is not described in detail in some embodiments, refer to the same or similar content in other embodiments.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的可选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in a flowchart or otherwise described herein can be understood as a module, fragment, or portion of code that includes one or more executable instructions for implementing a particular logical function or step of a process And, the scope of the alternative implementations of this application includes additional implementations, in which the functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved, which It should be understood by those skilled in the art to which the embodiments of the present application belong.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the application may be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application-specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是 可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。A person of ordinary skill in the art can understand that all or part of the steps carried by the methods in the foregoing embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium. The program is When executed, one or a combination of the steps of the method embodiment is included.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist separately physically, or two or more units may be integrated into one module. The above integrated modules may be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。The aforementioned storage medium may be a read-only memory, a magnetic disk, or an optical disk.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, the description with reference to the terms “one embodiment”, “some embodiments”, “examples”, “specific examples”, or “some examples” and the like means specific features described in conjunction with the embodiments or examples , Structure, material, or characteristic is included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application. Those skilled in the art may, within the scope of the present application, understand the above. Embodiments are subject to change, modification, substitution, and modification.

Claims (12)

  1. 一种实现录像虚化的方法,用于具有第一摄像头和第二摄像头的设备,其特征在于,包括:A method for implementing video blurring for a device having a first camera and a second camera, which includes:
    设定目标对象;Set a target audience;
    在第一摄像头进行录像时,监测录像图像中是否具有所述目标对象;Monitoring whether the target object exists in the recorded image when the first camera is recording;
    当所述录像图像中具有所述目标对象时,所述第二摄像头开启并对所述录像图像中除所述目标对象以外的第一区域进行虚化处理。When the target object is included in the recorded image, the second camera is turned on and the first region except the target object in the recorded image is blurred.
  2. 根据权利要求1所述的实现录像图像虚化的方法,其特征在于,还包括:The method for blurring a recorded image according to claim 1, further comprising:
    在所述第二摄像头开启后,每隔第一时长检测一次所述录像图像中是否具有目标对象;若所述录像图像中不具有所述目标对象,则关闭所述第一摄像头或第二摄像头,停止对所述第一区域进行虚化处理。After the second camera is turned on, detecting whether there is a target object in the recorded image every first time period; if the target object is not included in the recorded image, the first camera or the second camera is turned off , Stopping the blurring processing on the first area.
  3. 根据权利要求1-2任一项所述的实现录像图像虚化的方法,其特征在于,在第一摄像头进行录像时,监测录像图像中是否具有所述目标对象,包括:The method for blurring a recorded image according to any one of claims 1-2, wherein when the first camera performs recording, monitoring whether the recorded image has the target object comprises:
    每隔第二时长获取一次录像图像作为待测图像;Acquiring a video image as a test image every second time period;
    检测所述待测图像中是否具有所述目标对象。Detect whether the target object is present in the image to be tested.
  4. 根据权利要求1-3任一项所述的实现录像图像虚化的方法,其特征在于,所述目标对象为人物、动物、植物和/或建筑物。The method for blurring a recorded image according to any one of claims 1-3, wherein the target object is a person, an animal, a plant, and / or a building.
  5. 根据权利要求1-4任一项所述的实现录像图像虚化的方法,其特征在于,设定目标对象,包括:The method for blurring a recorded image according to any one of claims 1-4, wherein setting a target object comprises:
    从所述设备存储的照片上选取至少一个对象作为目标对象;Selecting at least one object as a target object from a photo stored on the device;
    和/或,and / or,
    在录像预览时从预览图像中选取至少一个对象作为所述目标对象;Selecting at least one object from the preview image as the target object during video preview;
    和/或,and / or,
    在录像过程中选取录像图像上至少一个对象作为所述目标对象。During the recording process, at least one object on the recorded image is selected as the target object.
  6. 一种实现录像图像虚化的系统,用于具有第一摄像头和第二摄像头的设备,其特征在于,包括:A system for implementing the blurring of recorded images for a device having a first camera and a second camera, which is characterized in that it includes:
    设定模块,用于设定目标对象;A setting module for setting a target object;
    第一监测模块,用于在第一摄像头进行录像时,监测录像图像中是否具有所述目标对象;A first monitoring module, configured to monitor whether the target object is included in the recorded image when the first camera is recording video;
    虚化模块,用于当所述录像图像中具有所述目标对象时,所述第二摄像头开启并对所述录像图像中除所述目标对象以外的第一区域进行虚化处理。A blurring module is configured to, when the recorded image has the target object, the second camera is turned on and performs a blurring process on a first area except the target object in the recorded image.
  7. 根据权利要求6所述的实现录像图像虚化的系统,其特征在于,还包括:The system for blurring a recorded image according to claim 6, further comprising:
    第二监测模块,用于在所述第二摄像头开启后,每隔第一时长检测一次所述录像图像中是否具有目标对象;若所述录像图像中不具有所述目标对象,则关闭所述第一摄像头或第二摄像头,停止对所述第一区域进行虚化处理。A second monitoring module, configured to detect whether there is a target object in the recorded image every first time after the second camera is turned on; if the target object is not included in the recorded image, turn off the The first camera or the second camera stops performing blur processing on the first area.
  8. 根据权利要求6-7任一项所述的实现录像图像虚化的系统,其特征在于,所述第一检测模块在第一摄像头进行录像时,监测录像图像中是否具有所述目标对象,包括:The system for blurring a recorded image according to any one of claims 6 to 7, wherein the first detection module monitors whether the target object is included in the recorded image when the first camera performs recording, including: :
    每隔第二时长获取一次录像图像作为待测图像;Acquiring a video image as a test image every second time period;
    检测所述待测图像中是否具有所述目标对象。Detect whether the target object is present in the image to be tested.
  9. 根据权利要求6-8任一项所述的实现录像图像虚化的系统,其特征在于,所述目标对象为人物、动物、植物和/或建筑物。The system for blurring a recorded image according to any one of claims 6 to 8, wherein the target object is a person, an animal, a plant, and / or a building.
  10. 根据权利要求6-9任一项所述的实现录像图像虚化的系统,其特征在于,所述设定模块设定目标对象,包括:The system for blurring a recorded image according to any one of claims 6-9, wherein the setting module sets a target object, including:
    从所述设备存储的照片上选取至少一个对象作为目标对象;Selecting at least one object as a target object from a photo stored on the device;
    和/或,and / or,
    在录像预览时从预览图像中选取至少一个对象作为所述目标对象;Selecting at least one object from the preview image as the target object during video preview;
    和/或,and / or,
    在录像过程中选取录像图像上至少一个对象作为所述目标对象。During the recording process, at least one object on the recorded image is selected as the target object.
  11. 一种手机,其特征在于,包括处理器、存储器以及存储在存储器上可在处理器上工作的程序,所述处理器执行所述程序时实现权利要求1-5任一所述方法的步骤。A mobile phone is characterized by comprising a processor, a memory, and a program stored in the memory and operable on the processor. When the processor executes the program, the steps of the method according to any one of claims 1-5 are implemented.
  12. 一种手机,其特征在于,包括如权利要求6-10任一所述的系统。A mobile phone, comprising the system according to any one of claims 6-10.
PCT/CN2019/097824 2018-09-28 2019-07-26 Method, system, and cell phone for creating blurring effect during recording WO2020063080A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811141071.8A CN109087271A (en) 2018-09-28 2018-09-28 Realize method, system and the mobile phone of video recording virtualization
CN201811141071.8 2018-09-28

Publications (1)

Publication Number Publication Date
WO2020063080A1 true WO2020063080A1 (en) 2020-04-02

Family

ID=64842691

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/097824 WO2020063080A1 (en) 2018-09-28 2019-07-26 Method, system, and cell phone for creating blurring effect during recording

Country Status (2)

Country Link
CN (1) CN109087271A (en)
WO (1) WO2020063080A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109087271A (en) * 2018-09-28 2018-12-25 珠海格力电器股份有限公司 Realize method, system and the mobile phone of video recording virtualization

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100245610A1 (en) * 2009-03-31 2010-09-30 Electronics And Telecommunications Research Institute Method and apparatus for processing digital image
CN104994291A (en) * 2015-06-30 2015-10-21 广东欧珀移动通信有限公司 Method for starting wide-angle camera based on shooting scene environment, and terminal
CN107426416A (en) * 2017-06-23 2017-12-01 广东欧珀移动通信有限公司 A kind of method for reducing temperature rise, computer-readable recording medium, mobile terminal
CN108305223A (en) * 2018-01-09 2018-07-20 珠海格力电器股份有限公司 Image background blurs processing method and processing device
CN109087271A (en) * 2018-09-28 2018-12-25 珠海格力电器股份有限公司 Realize method, system and the mobile phone of video recording virtualization

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878588A (en) * 2017-02-27 2017-06-20 努比亚技术有限公司 A kind of video background blurs terminal and method
CN106952247B (en) * 2017-03-17 2020-06-23 成都通甲优博科技有限责任公司 Double-camera terminal and image processing method and system thereof
CN108900790B (en) * 2018-06-26 2021-01-01 努比亚技术有限公司 Video image processing method, mobile terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100245610A1 (en) * 2009-03-31 2010-09-30 Electronics And Telecommunications Research Institute Method and apparatus for processing digital image
CN104994291A (en) * 2015-06-30 2015-10-21 广东欧珀移动通信有限公司 Method for starting wide-angle camera based on shooting scene environment, and terminal
CN107426416A (en) * 2017-06-23 2017-12-01 广东欧珀移动通信有限公司 A kind of method for reducing temperature rise, computer-readable recording medium, mobile terminal
CN108305223A (en) * 2018-01-09 2018-07-20 珠海格力电器股份有限公司 Image background blurs processing method and processing device
CN109087271A (en) * 2018-09-28 2018-12-25 珠海格力电器股份有限公司 Realize method, system and the mobile phone of video recording virtualization

Also Published As

Publication number Publication date
CN109087271A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
US9674395B2 (en) Methods and apparatuses for generating photograph
US9253375B2 (en) Camera obstruction detection
KR101992306B1 (en) Method for operating for camera an electronic device thereof
US10284732B2 (en) Masking latency in USB photo capture
US9571739B2 (en) Camera timer
US20170032725A1 (en) Method, device, and computer-readable medium for setting color gamut mode
US20090167890A1 (en) Image capture device that records image accordant with predetermined condition and storage medium that stores program
JP6220076B2 (en) Delayed imaging method, apparatus, program, and recording medium
CN106961558B (en) Photographing processing method and device
JP2006203809A5 (en)
TWI545508B (en) Method for performing a face tracking function and an electric device having the same
US20220417417A1 (en) Content Operation Method and Device, Terminal, and Storage Medium
US20130076941A1 (en) Systems And Methods For Editing Digital Photos Using Surrounding Context
CN103916597A (en) Shooting method based on simulated scenario
WO2014161386A1 (en) Video apparatus and photography method thereof
CN113014798A (en) Image display method and device and electronic equipment
US10778947B2 (en) Sympathetic assistive mutation of live camera preview/display image stream
WO2020063080A1 (en) Method, system, and cell phone for creating blurring effect during recording
WO2022222002A1 (en) Photographing device and control method thereof, and storage medium
US8891833B2 (en) Image processing apparatus and image processing method
WO2024061134A1 (en) Photographing method and apparatus, electronic device, and medium
JP6519157B2 (en) INFORMATION EVALUATING DEVICE, INFORMATION EVALUATING METHOD, AND PROGRAM
CN112702508A (en) Camera position indication method and device, mobile terminal and storage medium
US9710724B2 (en) Multi-camera device
JP2008109668A (en) Blemish repair tool for digital photographs in camera

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: 19865234

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: 19865234

Country of ref document: EP

Kind code of ref document: A1