WO2022042679A1 - Picture processing method and apparatus, device, and storage medium - Google Patents

Picture processing method and apparatus, device, and storage medium Download PDF

Info

Publication number
WO2022042679A1
WO2022042679A1 PCT/CN2021/114944 CN2021114944W WO2022042679A1 WO 2022042679 A1 WO2022042679 A1 WO 2022042679A1 CN 2021114944 W CN2021114944 W CN 2021114944W WO 2022042679 A1 WO2022042679 A1 WO 2022042679A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
picture
image area
processed
processing part
Prior art date
Application number
PCT/CN2021/114944
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 北京字节跳动网络技术有限公司
Priority to KR1020237010651A priority Critical patent/KR102662873B1/en
Priority to JP2023513987A priority patent/JP7453471B2/en
Priority to EP21860511.1A priority patent/EP4191391A4/en
Publication of WO2022042679A1 publication Critical patent/WO2022042679A1/en
Priority to US17/819,485 priority patent/US11941777B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • G06V10/225Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition based on a marking or identifier characterising the area
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/24Indexing scheme for image data processing or generation, in general involving graphical user interfaces [GUIs]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Definitions

  • the present disclosure relates to the field of picture data processing, and in particular, to a picture processing method, apparatus, device, and storage medium.
  • the present disclosure provides a picture processing method, apparatus, device and storage medium, which can improve the efficiency of picture processing.
  • the present disclosure provides a picture processing method, the method comprising:
  • the image area is enlarged and displayed.
  • the method further includes:
  • Enlarging and displaying the image area on the image editing interface includes:
  • the image area is enlarged and displayed.
  • the picture to be processed includes at least two of the image areas; the displaying a zoom-in control for the image areas includes:
  • Enlarging and displaying the image area on the image editing interface in response to the triggering operation for the enlargement control includes:
  • the target image area corresponding to the target zoom control is enlarged and displayed; wherein, the target image area is one of the at least two image areas. any of the image areas.
  • the enlargement control has a thumbnail image corresponding to the image area, and the thumbnail image is a thumbnail image of the target processing part included in the image area.
  • the method before the image area is enlarged and displayed on the image editing interface, the method further includes:
  • Enlarging and displaying the image area on the image editing interface includes:
  • the image editing interface based on the magnification, the image area is enlarged and displayed.
  • determining the magnification corresponding to the image area based on the area ratio between the image area and the image editing interface includes:
  • the standard magnification is determined as the magnification corresponding to the image area
  • the magnification corresponding to the image area is determined according to the area ratio; The magnification is larger.
  • the method further includes:
  • the edited image is synthesized into the picture to be processed, and the synthesized picture is displayed.
  • the method before performing the target processing part detection on the to-be-processed picture in response to the image editing trigger operation, the method further includes:
  • the at least one processing part is determined as a target processing part of the picture to be processed.
  • the present disclosure provides a picture processing apparatus, the apparatus comprising:
  • a first detection module configured to detect the target processing part of the picture to be processed in response to an image editing trigger operation
  • a first determining module configured to determine the image area including the target processing part on the picture to be processed
  • the magnifying display module is used for magnifying and displaying the image area on the image editing interface.
  • the present disclosure provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device is made to implement the above method.
  • the present disclosure provides a device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program, Implement the above method.
  • An embodiment of the present disclosure provides a picture processing method.
  • an image editing trigger operation is received, a target processing part is detected on the to-be-processed picture, then an image area including the target processing part on the to-be-processed picture is determined, and finally, the image editing On the interface, the image area is enlarged and displayed.
  • the embodiment of the present disclosure can quickly locate the target processing part on the picture to be processed when an image editing operation is triggered, and at the same time, it can be enlarged and displayed on the image editing interface, which is convenient for the user to perform image editing processing on the target processing part. To a certain extent It improves the efficiency of image processing.
  • FIG. 1 is a flowchart of a picture processing method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method for processing a group photo of a group of people according to an embodiment of the present disclosure
  • FIG. 3 is a structural block diagram of a picture processing apparatus according to an embodiment of the present disclosure.
  • FIG. 4 is a structural block diagram of a picture processing device according to an embodiment of the present disclosure.
  • the user needs to manually enlarge the picture, and then find the face part by dragging and drop continuously, and then retouch the image according to the face part.
  • the present disclosure provides a picture processing method.
  • an image editing trigger operation is received, the target processing part is detected on the to-be-processed picture, and then the image area including the target processing part on the to-be-processed picture is determined.
  • the image area is enlarged and displayed. It can be seen that the embodiment of the present disclosure can quickly locate the target processing part on the picture to be processed when an image editing operation is triggered, and at the same time, it can be enlarged and displayed on the image editing interface, which is convenient for the user to perform image editing processing on the target processing part. To a certain extent It improves the efficiency of image processing.
  • an embodiment of the present disclosure provides a picture processing method.
  • a flowchart of a picture processing method provided by an embodiment of the present disclosure includes:
  • the picture to be processed may be a picture that needs to be processed on the details of the picture, for example, a picture of a person that needs to be retouched.
  • the picture to be processed may be a picture of a specific object that needs to be retouched in detail, such as an advertisement picture of a certain object.
  • pictures may have processing requirements for different details.
  • pictures of people may have processing requirements for face, legs or eyes
  • pictures of specific objects may have requirements for other specific parts.
  • details such as an advertisement image of a specific object, it is necessary to retouch the specific object on the advertisement image.
  • the target processing part corresponding to the picture to be processed may be determined based on the picture processing requirements, so that the to-be-processed picture can be processed for the target processing part subsequently.
  • the user can be provided with a variety of selectable processing parts, and the user can select at least one processing part for the picture to be processed from the selectable processing parts based on the picture processing requirements, as the to-be-processed part.
  • the target processing part corresponding to the image.
  • three optional processing parts can be provided to the user at the same time: the face part, the human leg part and the eye part. After the user selects at least one processing part for the picture to be processed, the selected processing part is used as the processing part.
  • the target processing part corresponding to the picture to be processed.
  • the target processing part corresponding to the picture to be processed may be one or multiple.
  • the corresponding target processing part may include both a human face part and a human leg part.
  • the target processing part when an image editing trigger operation is received, the target processing part may be detected on the picture to be processed. For example, when an image editing trigger operation is received, the face position of the picture to be processed is detected.
  • the target processing part on the picture to be processed is detected. For example, after the target processing part corresponding to the picture to be processed is determined, the detection of the target processing part on the picture to be processed can be triggered by clicking the image editing button.
  • the image editing operation of the picture to be processed may be triggered by determining the target processing part corresponding to the picture to be processed. For example, when the corresponding target processing part is selected for the picture to be processed and the confirmation button is triggered, the image editing operation of the picture to be processed can also be triggered at the same time.
  • the detection of the target processing part on the to-be-processed picture may be implemented based on a machine learning model.
  • a machine learning model of a face image is pre-trained, and then based on the machine learning model, the face position on the image to be processed is detected.
  • the detection of other target processing parts can also be implemented in a similar manner, which is not described in detail in this embodiment of the present disclosure.
  • S102 Determine an image area including a target processing part on the picture to be processed.
  • the position of the target processing part on the picture to be processed can be determined, and the image area including the target processing part on the picture to be processed can be further determined.
  • the image area may be the smallest rectangular area including the target treatment part.
  • the image area on the to-be-processed picture includes the target processing part
  • the image area can be highlighted on the to-be-processed picture, so that the user can intuitively understand that the areas that need to be treated.
  • the boundary of the image area may be displayed in the form of dotted lines, so as to realize the highlighted display of the image area.
  • the image area on the picture to be processed includes the target processing part
  • the image area can be enlarged and displayed on the image editing interface, so that the user can perform image editing processing on the enlarged and displayed image area.
  • the enlarged display of the image area may be triggered by double-clicking the image area on the picture to be processed.
  • the image area may be enlarged and displayed in response to a triggering operation for the enlargement control.
  • the zoomed-in display of the image area corresponding to the zoomed-in control may be triggered by clicking on the zoomed-in control.
  • the magnification of the image area to be enlarged and displayed can also be determined. Specifically, the magnification corresponding to the image area may be determined based on the area ratio between the image area and the image editing interface. Then, on the image editing interface, the image area is enlarged and displayed based on the magnification factor.
  • the area ratio between the image area and the image editing interface is determined.
  • the area ratio is greater than the preset ratio coefficient, it means that the image area occupies a larger proportion of the display screen, and the standard magnification can be determined as the magnification corresponding to the image area, and then, based on the preset magnification, the image area is enlarged.
  • the enlarged display based on the same preset magnification can realize the clear display of the target processing part in the image area, and the enlarged display can be realized.
  • the post-target processing part can meet the user's image processing requirements.
  • the problem that the target processing part in the enlarged image area may still not be displayed clearly. That is to say, even if the image area is enlarged and displayed based on the preset magnification, because the target processing part in the enlarged and displayed image area is not clearly displayed, even the enlarged display cannot meet the processing requirements of the user for the image area. .
  • the magnification corresponding to the image area can be determined according to the area ratio.
  • the embodiment of the present disclosure displays the edited image of the image area on the image editing interface, and then when receiving a display trigger operation for the image to be processed, Synthesize the edited image into the image to be processed, and display the synthesized image.
  • a display control can be set on the display interface, and after the user completes the image editing processing on the target processing part in the image area, the user can click on the display to trigger the display operation of the image to be processed, and display the image to be processed.
  • the edited image is synthesized into the to-be-processed picture, and the synthesized to-be-processed picture is displayed, so that the user can view the overall effect of the to-be-processed picture after image editing processing is performed on the target processing part.
  • the function settings of one-click restoration can improve the overall picture processing efficiency.
  • the embodiment of the present disclosure when an image editing trigger operation is received, the target processing part is detected on the to-be-processed image, and then the image area including the target processing part on the to-be-processed image is determined, and finally, on the image editing interface , the image area is enlarged and displayed. It can be seen that the embodiment of the present disclosure can quickly locate the target processing part on the picture to be processed when an image editing operation is triggered, and at the same time, it can be enlarged and displayed on the image editing interface, which is convenient for the user to perform image editing processing on the target processing part. To a certain extent It improves the efficiency of image processing.
  • FIG. 2 a flowchart of a method for processing a group photo of a group of people provided by an embodiment of the present disclosure, wherein the method includes:
  • S201 Determine a face position as a target processing position corresponding to a group photo of multiple people.
  • the face position is determined as the target processing part corresponding to the group photo of multiple people, so that the user can perform retouching processing on the faces in the group photo of multiple people.
  • the target processing part may be one type or multiple types. Specifically, when a user's selection operation for at least one treatment part among multiple treatment parts is received, the at least one treatment part may be determined as the target treatment part of the group photo of multiple people, for example, the at least one treatment part Including the human face and human legs.
  • each face position in a group photo of multiple people can be detected, and specifically, the face position detection can be realized by using a face recognition model.
  • a detection operation for the face position can be triggered, so as to detect the faces on the group photo of multiple people.
  • S203 Determine an image area including a human face on the group photo of multiple people, and display a zoom-in control for each image area respectively.
  • the position of each face in the group photo of multiple people can be determined, and an image area can be determined for each face.
  • the to-be-processed picture includes 3 faces
  • the embodiment of the present disclosure may generate an enlargement control for the image area, which is used to trigger the A magnified display of the area.
  • corresponding magnification controls may be generated for each image area, wherein each magnification control is used to trigger and The enlargement control has enlarged display of the corresponding image area, and realizes the enlarged display of the image area, that is, the enlarged display of the target processing part included in the image area.
  • a thumbnail can be set for each magnification control.
  • the thumbnail of the target processing part included in the image area corresponding to each magnification control can be used as the Zoom in on the thumbnail of the control.
  • the display pattern on the enlargement control is the thumbnail image of the target treatment part included in the image area corresponding to the enlargement control. Based on the displayed thumbnails, it is possible to more accurately trigger the enlarged display of the image area that needs to be processed on the group photo of multiple people.
  • a zoom control can be generated for each image area. Specifically, after any image area on the multi-person group photo picture is selected, the enlarged display of the selected image area can be triggered by clicking on the enlargement control.
  • the image area corresponding to each face may be the smallest rectangular area including the face.
  • S204 In response to the triggering operation for the target zoom control, on the image editing interface, perform zoomed display on the target image area corresponding to the target zoom control; wherein, the target image area is one of the at least two image areas. of any of the image regions.
  • the target image area is one of the at least two image areas. of any of the image regions.
  • S205 In response to an image editing operation for the image area, display the edited image of the image area on the image editing interface;
  • the user can perform image editing operations on the image area, such as retouching the details of the human face, adjusting the overall color, etc., and then on the image editing interface Displays the edited image corresponding to the image area.
  • the embodiment of the present disclosure can trigger the display operation of the multi-person group photo, such as clicking the restore button, etc., to trigger the synthesis of the edited image into the original picture, so as to realize the restoration and display of the multi-person group photo triggered by one key, and improve the Image processing efficiency.
  • the present disclosure adopts one-click operation. Trigger the enlarged display of the image area, and one-click trigger to synthesize the edited image area into the original image to view the overall effect, which is convenient for users to complete the effect processing of the group photo of multiple people.
  • the image part corresponding to each face in the multi-person group photo picture can be determined, thereby realizing fast face location.
  • a picture processing apparatus provided in an embodiment of the present disclosure includes:
  • the first detection module 301 is configured to detect the target processing part of the picture to be processed in response to an image editing trigger operation
  • a first determining module 302 configured to determine the image area including the target processing part on the picture to be processed
  • the magnifying display module 303 is used for magnifying and displaying the image area on the image editing interface.
  • the device further includes:
  • a first display module configured to display a zoom-in control for the image area
  • the enlarged display module is specifically used for:
  • the image area is enlarged and displayed.
  • the picture to be processed includes at least two of the image areas
  • the first display module is specifically configured to display the zoom controls corresponding to the at least two image regions respectively;
  • the enlarged display module 303 is specifically used for:
  • the target image area corresponding to the target zoom control is enlarged and displayed; wherein, the target image area is one of the at least two image areas. any of the image areas.
  • the enlargement control has a thumbnail image corresponding to the image area, and the thumbnail image is a thumbnail image of the target processing part included in the image area.
  • the device further includes:
  • a third determining module configured to determine the magnification corresponding to the image area based on the area ratio between the image area and the image editing interface
  • the enlarged display module is specifically used for:
  • the image editing interface based on the magnification, the image area is enlarged and displayed.
  • the third determining module includes:
  • a first determining submodule configured to determine a preset magnification as the magnification corresponding to the image area when the area ratio between the image area and the image editing interface is greater than a preset scale factor
  • the second determination submodule is configured to determine the magnification corresponding to the image area according to the area ratio when the area ratio between the image area and the image editing interface is not greater than the preset scale factor; wherein, the The smaller the area ratio, the greater the magnification.
  • the device further includes:
  • a second display module configured to display the edited image of the image area on the image editing interface in response to an image editing operation for the image area
  • a third display module configured to synthesize the edited image into the to-be-processed picture in response to a display triggering operation for the to-be-processed picture, and display the synthesized picture.
  • the device further includes:
  • the fourth determining module is configured to, in response to a selection operation for at least one processing part among the multiple processing parts, determine the at least one processing part as the target processing part of the picture to be processed.
  • the embodiment of the present disclosure when an image editing trigger operation is received, the target processing part is detected on the to-be-processed image, and then the image area including the target processing part on the to-be-processed image is determined, and finally, on the image editing interface , the image area is enlarged and displayed. It can be seen that the embodiment of the present disclosure can quickly locate the target processing part on the picture to be processed when an image editing operation is triggered, and at the same time, it can be enlarged and displayed on the image editing interface, which is convenient for the user to perform image editing processing on the target processing part. It improves the efficiency of image processing.
  • an embodiment of the present disclosure also provides a picture processing device, as shown in FIG. 4 , which may include:
  • Processor 401 memory 402 , input device 403 and output device 404 .
  • the number of processors 401 in the image processing device may be one or more, and one processor is taken as an example in FIG. 4 .
  • the processor 401 , the memory 402 , the input device 403 , and the output device 404 may be connected by a bus or in other ways, wherein the connection by a bus is taken as an example in FIG. 4 .
  • the memory 402 can be used to store software programs and modules, and the processor 401 executes various functional applications and data processing of the image processing apparatus by running the software programs and modules stored in the memory 402 .
  • the memory 402 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, and the like. Additionally, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input device 403 can be used to receive input numerical or character information, and generate signal input related to user settings and function control of the picture processing apparatus.
  • the processor 401 loads the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the executable files stored in the memory 402 application, so as to realize various functions of the above picture processing device.

Abstract

The present disclosure provides a picture processing method and apparatus, a device, and a storage medium. The method comprises: upon receiving an image editing triggering operation, detecting a target processing part of a picture to be processed; then, determining an image region on said picture comprising the target processing part; and finally, magnifying the image region for display on an image editing interface. Hence, according to the embodiments of the present disclosure, when an image editing operation is triggered, the target processing part on the picture to be processes can be quickly positioned, and magnified display can be performed on the image editing interface, so that a user can conveniently perform image editing on the target processing part, and the picture processing efficiency is improved to a certain extent.

Description

一种图片处理方法、装置、设备及存储介质A picture processing method, device, equipment and storage medium
本申请要求于2020年08月31日提交中国国家知识产权局、申请号为202010899327.2、申请名称为“一种图片处理方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on August 31, 2020, with the application number of 202010899327.2 and the application name of "A picture processing method, device, equipment and storage medium", the entire content of which is Incorporated herein by reference.
技术领域technical field
本公开涉及图片数据处理领域,尤其涉及一种图片处理方法、装置、设备及存储介质。The present disclosure relates to the field of picture data processing, and in particular, to a picture processing method, apparatus, device, and storage medium.
背景技术Background technique
目前,随着图片效果处理软件种类的增多,用户对于图片效果处理的需求也越来越高。At present, with the increase in the types of image effect processing software, users' demands for image effect processing are also getting higher and higher.
但是,由于移动端屏幕小等原因,导致对图片进行效果处理的操作不便,一定程度上影响了图片处理的效率。However, due to reasons such as the small screen of the mobile terminal, it is inconvenient to perform effect processing on pictures, which affects the efficiency of picture processing to a certain extent.
发明内容SUMMARY OF THE INVENTION
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开提供了一种图片处理方法、装置、设备及存储介质,能够提高图片处理的效率。In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a picture processing method, apparatus, device and storage medium, which can improve the efficiency of picture processing.
第一方面,本公开提供了一种图片处理方法,所述方法包括:In a first aspect, the present disclosure provides a picture processing method, the method comprising:
响应于图像编辑触发操作,对待处理图片进行目标处理部位的检测;In response to the image editing triggering operation, detecting the target processing part of the image to be processed;
确定所述待处理图片上包括所述目标处理部位的图像区域;Determine the image area including the target processing part on the picture to be processed;
在图像编辑界面上,对所述图像区域进行放大显示。On the image editing interface, the image area is enlarged and displayed.
一种可选的实施方式中,所述确定所述待处理图片上包括所述目标处理部位的图像区域之后,还包括:In an optional implementation manner, after determining the image area on the picture to be processed that includes the target processing part, the method further includes:
显示针对所述图像区域的放大控件;displaying a zoom-in control for the image area;
所述在图像编辑界面上,对所述图像区域进行放大显示,包括:Enlarging and displaying the image area on the image editing interface includes:
响应于针对所述放大控件的触发操作,在图像编辑界面上,对所述图像区域进行放大显示。In response to the triggering operation for the enlargement control, on the image editing interface, the image area is enlarged and displayed.
一种可选的实施方式中,所述待处理图片上包括至少两个所述图像区域;所述显示针对所述图像区域的放大控件,包括:In an optional implementation manner, the picture to be processed includes at least two of the image areas; the displaying a zoom-in control for the image areas includes:
显示所述至少两个所述图像区域分别对应的放大控件;displaying zoom controls corresponding to the at least two image areas respectively;
所述响应于针对所述放大控件的触发操作,在图像编辑界面上,对所述图像区域进行放大显示,包括:Enlarging and displaying the image area on the image editing interface in response to the triggering operation for the enlargement control includes:
响应于针对目标放大控件的触发操作,在图像编辑界面上,对所述目标放大控件对应的目标图像区域进行放大显示;其中,所述目标图像区域为所述至少两个所述图像区域中的任一所述图像区域。In response to the triggering operation for the target zoom control, on the image editing interface, the target image area corresponding to the target zoom control is enlarged and displayed; wherein, the target image area is one of the at least two image areas. any of the image areas.
一种可选的实施方式中,所述放大控件具有所述图像区域对应的缩略图,所述缩略图为所述图像区域中包括的所述目标处理部位的缩略图。In an optional implementation manner, the enlargement control has a thumbnail image corresponding to the image area, and the thumbnail image is a thumbnail image of the target processing part included in the image area.
一种可选的实施方式中,所述在图像编辑界面上,对所述图像区域进行放大显示之前,还包括:In an optional implementation manner, before the image area is enlarged and displayed on the image editing interface, the method further includes:
基于所述图像区域与图像编辑界面之间的面积比例,确定所述图像区域对应的放大倍数;Determine the magnification corresponding to the image area based on the area ratio between the image area and the image editing interface;
所述在图像编辑界面上,对所述图像区域进行放大显示,包括:Enlarging and displaying the image area on the image editing interface includes:
在所述图像编辑界面上,基于所述放大倍数,对所述图像区域进行放大显示。On the image editing interface, based on the magnification, the image area is enlarged and displayed.
一种可选的实施方式中,所述基于所述图像区域与图像编辑界面之间的面积比例,确定所述图像区域对应的放大倍数,包括:In an optional implementation manner, determining the magnification corresponding to the image area based on the area ratio between the image area and the image editing interface includes:
当所述图像区域与图像编辑界面之间的面积比例大于预设比例系数时,则将标准放大倍数确定为所述图像区域对应的放大倍数;When the area ratio between the image area and the image editing interface is greater than the preset scale factor, the standard magnification is determined as the magnification corresponding to the image area;
当所述图像区域与图像编辑界面之间的面积比例不大于所述预设比例系数时,则根据所述面积比例确定所述图像区域对应的放大倍数;其中,所述面积比例越小,则所述放大倍数越大。When the area ratio between the image area and the image editing interface is not greater than the preset scale factor, the magnification corresponding to the image area is determined according to the area ratio; The magnification is larger.
一种可选的实施方式中,所述在图像编辑界面上,对所述图像区域进行放大显示之后,还包括:In an optional implementation manner, after the image area is enlarged and displayed on the image editing interface, the method further includes:
响应于针对所述图像区域的图像编辑操作,在所述图像编辑界面上显示所述图像区域的编辑后图像;In response to an image editing operation for the image region, displaying an edited image of the image region on the image editing interface;
响应于针对所述待处理图片的显示触发操作,将所述编辑后图像合成到所述待处理图片,显示合成得到的图片。In response to a display triggering operation for the picture to be processed, the edited image is synthesized into the picture to be processed, and the synthesized picture is displayed.
一种可选的实施方式中,所述响应于图像编辑触发操作,对待处理图片进行目标处理部位的检测之前,还包括:In an optional implementation manner, before performing the target processing part detection on the to-be-processed picture in response to the image editing trigger operation, the method further includes:
响应于针对多种处理部位中的至少一种处理部位的选中操作,将所述至少一种处理部位确定为待处理图片的目标处理部位。In response to a selection operation for at least one processing part among the plurality of processing parts, the at least one processing part is determined as a target processing part of the picture to be processed.
第二方面,本公开提供了一种图片处理装置,所述装置包括:In a second aspect, the present disclosure provides a picture processing apparatus, the apparatus comprising:
第一检测模块,用于响应于图像编辑触发操作,对待处理图片进行目标处理部位的检测;a first detection module, configured to detect the target processing part of the picture to be processed in response to an image editing trigger operation;
第一确定模块,用于确定所述待处理图片上包括目标处理部位的图像区域;a first determining module, configured to determine the image area including the target processing part on the picture to be processed;
放大显示模块,用于在图像编辑界面上,对所述图像区域进行放大显示。The magnifying display module is used for magnifying and displaying the image area on the image editing interface.
第三方面,本公开提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备实现上述的方法。In a third aspect, the present disclosure provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device is made to implement the above method.
第四方面,本公开提供了一种设备,包括:存储器,处理器,及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现上述的方法。In a fourth aspect, the present disclosure provides a device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, when the processor executes the computer program, Implement the above method.
本公开实施例提供的技术方案与现有技术相比具有如下优点:Compared with the prior art, the technical solutions provided by the embodiments of the present disclosure have the following advantages:
本公开实施例提供了一种图片处理方法,在接收到图像编辑触发操作时,对待处理图片进行目标处理部位的检测,然后确定待处理图片上包括目标处理部位的图像区域,最终,在图像编辑界面上,对该图像区域进行放大显示。可见,本公开实施例能够在触发图像编辑操作时,针对待处理图片上的目标处理部位进行快速定位,同时在图像编辑界面上进行放大显示,便于用户对目标处理部位进行图像编辑处理,一定程度上提高了图片处理的效率。An embodiment of the present disclosure provides a picture processing method. When an image editing trigger operation is received, a target processing part is detected on the to-be-processed picture, then an image area including the target processing part on the to-be-processed picture is determined, and finally, the image editing On the interface, the image area is enlarged and displayed. It can be seen that the embodiment of the present disclosure can quickly locate the target processing part on the picture to be processed when an image editing operation is triggered, and at the same time, it can be enlarged and displayed on the image editing interface, which is convenient for the user to perform image editing processing on the target processing part. To a certain extent It improves the efficiency of image processing.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the accompanying drawings that are required to be used in the description of the embodiments or the prior art will be briefly introduced below. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.
图1为本公开实施例提供的一种图片处理方法的流程图;FIG. 1 is a flowchart of a picture processing method according to an embodiment of the present disclosure;
图2为本公开实施例提供的一种多人合照图片处理方法的流程图;2 is a flowchart of a method for processing a group photo of a group of people according to an embodiment of the present disclosure;
图3为本公开实施例提供的一种图片处理装置结构框图;FIG. 3 is a structural block diagram of a picture processing apparatus according to an embodiment of the present disclosure;
图4为本公开实施例提供的一种图片处理设备结构框图。FIG. 4 is a structural block diagram of a picture processing device according to an embodiment of the present disclosure.
具体实施方式detailed description
为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments may be combined with each other under the condition of no conflict.
在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。Many specific details are set forth in the following description to facilitate a full understanding of the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, and Not all examples.
在用户对图片进行效果处理的过程中,如果需要针对图片上的某个细节部位进行调整,通常需求手动将图片进行放大,然后找到放大后的该细节部分,进而针对性的进行效果处理。In the process of effect processing on a picture, if a user needs to adjust a certain detail part of the picture, it is usually necessary to manually enlarge the picture, and then find the enlarged detail part, and then carry out targeted effect processing.
例如,用户在通过智能手机对图片上的人脸进行修图的过程中,需要手动将图片放大,然后通过不断拖拽的方式找到人脸部位,进而针对人脸部位进行修图。For example, in the process of retouching the face on the picture through the smartphone, the user needs to manually enlarge the picture, and then find the face part by dragging and drop continuously, and then retouch the image according to the face part.
显然,上述图片处理过程的操作过于繁杂,针对图片中需要处理的细节部位进行定位和放大的效率较低,一定程度上影响了图片处理的效率。Obviously, the operations in the above-mentioned picture processing process are too complicated, and the efficiency of locating and enlarging the detail parts to be processed in the picture is low, which affects the efficiency of picture processing to a certain extent.
为此,本公开提供了一种图片处理方法,在接收到图像编辑触发操作时,对待处理图片进行目标处理部位的检测,然后确定待处理图片上包括目标处理部位的图像区域,最终,在图像编辑界面上,对该图像区域进行放大显示。可见,本公开实施例能够在触发图像编辑操作时,针对待处理图片上的目标 处理部位进行快速定位,同时在图像编辑界面上进行放大显示,便于用户对目标处理部位进行图像编辑处理,一定程度上提高了图片处理的效率。To this end, the present disclosure provides a picture processing method. When an image editing trigger operation is received, the target processing part is detected on the to-be-processed picture, and then the image area including the target processing part on the to-be-processed picture is determined. On the editing interface, the image area is enlarged and displayed. It can be seen that the embodiment of the present disclosure can quickly locate the target processing part on the picture to be processed when an image editing operation is triggered, and at the same time, it can be enlarged and displayed on the image editing interface, which is convenient for the user to perform image editing processing on the target processing part. To a certain extent It improves the efficiency of image processing.
基于此,本公开实施例提供了一种图片处理方法,参考图1,为本公开实施例提供的一种图片处理方法的流程图,该方法包括:Based on this, an embodiment of the present disclosure provides a picture processing method. Referring to FIG. 1 , a flowchart of a picture processing method provided by an embodiment of the present disclosure includes:
S101:响应于图像编辑触发操作,对待处理图片进行目标处理部位的检测。S101: In response to the image editing triggering operation, detect the target processing part of the picture to be processed.
本公开实施例中,待处理图片可以为需要对图片上的细节部位进行处理的图片,例如需要对人物进行修图的人物图片,可以包括单人自拍图片,也可以包括多人合照图片。又例如待处理图片可以为需要进行细节修图的特定物体图片,如某个物体的广告图片等。In this embodiment of the present disclosure, the picture to be processed may be a picture that needs to be processed on the details of the picture, for example, a picture of a person that needs to be retouched. For another example, the picture to be processed may be a picture of a specific object that needs to be retouched in detail, such as an advertisement picture of a certain object.
实际应用中,不同的图片可能存在对不同细节部位的处理需求,例如人物图片可能存在对人脸部位、人腿部位或眼睛部位的修图处理需求,而特定物体图片可能存在对其他特定细节部位,如某款特定物体的广告图片,则需要针对广告图片上的该特定物体进行修图处理。In practical applications, different pictures may have processing requirements for different details. For example, pictures of people may have processing requirements for face, legs or eyes, while pictures of specific objects may have requirements for other specific parts. For details, such as an advertisement image of a specific object, it is necessary to retouch the specific object on the advertisement image.
因此,一种可选的实施方式中,在对待处理图片进行处理之前,可以先基于图片处理需求,确定待处理图片对应的目标处理部位,以便后续针对该目标处理部位对该待处理图片进行处理。Therefore, in an optional embodiment, before the picture to be processed is processed, the target processing part corresponding to the picture to be processed may be determined based on the picture processing requirements, so that the to-be-processed picture can be processed for the target processing part subsequently. .
一种可选的实施方式中,可以为用户提供多种可选择的处理部位,用户可以基于图片处理需求,从可选择的处理部位中为待处理图片选择至少一种处理部位,作为该待处理图片对应的目标处理部位。例如针对人物图片,可以同时为用户提供人脸部位、人腿部位和眼睛部位三种可选择的处理部位,在用户为待处理图片选择至少一个处理部位后,将被选择的处理部位作为该待处理图片对应的目标处理部位。In an optional implementation, the user can be provided with a variety of selectable processing parts, and the user can select at least one processing part for the picture to be processed from the selectable processing parts based on the picture processing requirements, as the to-be-processed part. The target processing part corresponding to the image. For example, for a picture of a person, three optional processing parts can be provided to the user at the same time: the face part, the human leg part and the eye part. After the user selects at least one processing part for the picture to be processed, the selected processing part is used as the processing part. The target processing part corresponding to the picture to be processed.
值得注意的是,本公开实施例中待处理图片对应的目标处理部位可以为一个,也可以为多个。例如,针对人物图片,其对应的目标处理部位可以同时包括人脸部位和人腿部位。It should be noted that, in the embodiment of the present disclosure, the target processing part corresponding to the picture to be processed may be one or multiple. For example, for a picture of a person, the corresponding target processing part may include both a human face part and a human leg part.
本公开实施例中,在接收到图像编辑触发操作时,可以对待处理图片进行目标处理部位的检测。例如,在接收到图像编辑触发操作时,对待处理图片进行人脸部位的检测。In the embodiment of the present disclosure, when an image editing trigger operation is received, the target processing part may be detected on the picture to be processed. For example, when an image editing trigger operation is received, the face position of the picture to be processed is detected.
一种可选的实施方式中,在确定待处理图片对应的目标处理部位之后,如果接收到图像编辑触发操作,则对待处理图片上的目标处理部位进行检测。例如,在确定待处理图片对应的目标处理部位之后,可以通过点击图像编辑按钮,触发对待处理图片上的目标处理部位的检测。In an optional implementation manner, after the target processing part corresponding to the picture to be processed is determined, if an image editing trigger operation is received, the target processing part on the picture to be processed is detected. For example, after the target processing part corresponding to the picture to be processed is determined, the detection of the target processing part on the picture to be processed can be triggered by clicking the image editing button.
另一种可选的实施方式中,可以通过确定待处理图片对应的目标处理部位,触发对待处理图片的图像编辑操作。例如,在为待处理图片选择对应的目标处理部位并触发确认按钮时,也可以同时触发对该待处理图片图像编辑 操作。In another optional implementation manner, the image editing operation of the picture to be processed may be triggered by determining the target processing part corresponding to the picture to be processed. For example, when the corresponding target processing part is selected for the picture to be processed and the confirmation button is triggered, the image editing operation of the picture to be processed can also be triggered at the same time.
本公开实施例中,对待处理图片上的目标处理部位的检测可以基于机器学习模型实现。例如,预先训练人脸图像的机器学习模型,然后基于该机器学习模型对待处理图片上的人脸部位进行检测。对于其他目标处理部位的检测,也可以基于相似的方式实现,本公开实施例不做具体介绍。In the embodiment of the present disclosure, the detection of the target processing part on the to-be-processed picture may be implemented based on a machine learning model. For example, a machine learning model of a face image is pre-trained, and then based on the machine learning model, the face position on the image to be processed is detected. The detection of other target processing parts can also be implemented in a similar manner, which is not described in detail in this embodiment of the present disclosure.
S102:确定所述待处理图片上包括目标处理部位的图像区域。S102: Determine an image area including a target processing part on the picture to be processed.
本公开实施例中,在对待处理图片上的目标处理部位进行检测之后,能够确定待处理图片上的目标处理部位的位置,进一步的确定待处理图片上包括该目标处理部位的图像区域。其中,该图像区域可以为包括该目标处理部位的最小矩形区域。In the embodiment of the present disclosure, after the target processing part on the picture to be processed is detected, the position of the target processing part on the picture to be processed can be determined, and the image area including the target processing part on the picture to be processed can be further determined. Wherein, the image area may be the smallest rectangular area including the target treatment part.
实际应用中,由于待处理图片上的目标处理部位可能包括多个,因此,可以在检测出待处理图片上的各个目标处理部位后,针对检测出的每一个目标处理部位,分别确定包括该目标处理部位的图像区域。In practical applications, since there may be multiple target processing parts on the picture to be processed, after detecting each target processing part on the to-be-processed picture, for each detected target processing part, it is possible to determine the target processing part separately. The image area of the treatment site.
一种可选的实施方式中,在确定待处理图片上包括有目标处理部位的图像区域之后,可以在该待处理图片上突出显示该图像区域,以便用户能够直观的了解到该待处理图片上需要处理的部位。一种可选的实施方式中,可以将图像区域的边界以虚线的形式进行显示,以实现对该图像区域的突出显示。In an optional implementation manner, after it is determined that the image area on the to-be-processed picture includes the target processing part, the image area can be highlighted on the to-be-processed picture, so that the user can intuitively understand that the areas that need to be treated. In an optional implementation manner, the boundary of the image area may be displayed in the form of dotted lines, so as to realize the highlighted display of the image area.
S103:在图像编辑界面上,所述图像区域进行放大显示。S103: On the image editing interface, the image area is enlarged and displayed.
本公开实施例中,在确定待处理图片上包括有目标处理部位的图像区域之后,可以在图像编辑界面上对该图像区域进行放大显示,以便用户对放大显示后的图像区域进行图像编辑处理。In this embodiment of the present disclosure, after it is determined that the image area on the picture to be processed includes the target processing part, the image area can be enlarged and displayed on the image editing interface, so that the user can perform image editing processing on the enlarged and displayed image area.
一种可选的实施方式中,可以通过双击待处理图片上的图像区域的方式,触发针对该图像区域的放大显示。In an optional implementation manner, the enlarged display of the image area may be triggered by double-clicking the image area on the picture to be processed.
另一种可选的实施方式中,如果图像区域具有对应的放大控件,则可以响应于针对该放大控件的触发操作,对该图像区域进行放大显示。具体的,可以通过点击放大控件的方式,触发针对该放大控件对应的图像区域的放大显示。In another optional implementation manner, if the image area has a corresponding enlargement control, the image area may be enlarged and displayed in response to a triggering operation for the enlargement control. Specifically, the zoomed-in display of the image area corresponding to the zoomed-in control may be triggered by clicking on the zoomed-in control.
另外,在对图像区域进行放大显示之前,还可以确定针对该图像区域进行放大显示的放大倍数。具体的,可以基于该图像区域与图像编辑界面之间的面积比例,确定图像区域对应的放大倍数。然后,在所述图像编辑界面上,基于该放大倍数对该图像区域进行放大显示。In addition, before the image area is enlarged and displayed, the magnification of the image area to be enlarged and displayed can also be determined. Specifically, the magnification corresponding to the image area may be determined based on the area ratio between the image area and the image editing interface. Then, on the image editing interface, the image area is enlarged and displayed based on the magnification factor.
一种可选的实施方式中,在对图像区域进行放大显示之前,确定该图像区域与图像编辑界面之间的面积比例。当该面积比例大于预设比例系数,则说明该图像区域占显示屏幕的比例较大,可以将标准放大倍数确定为该图像区域对应的放大倍数,然后,基于该预设放大倍数,对该图像区域进行放大显示。In an optional implementation manner, before the image area is enlarged and displayed, the area ratio between the image area and the image editing interface is determined. When the area ratio is greater than the preset ratio coefficient, it means that the image area occupies a larger proportion of the display screen, and the standard magnification can be determined as the magnification corresponding to the image area, and then, based on the preset magnification, the image area is enlarged.
可以理解的是,对于面积比例大于预设比例系数的图像区域而言,基于 同一个预设放大倍数对其进行放大显示,即可以实现对该图像区域中的目标处理部位的清楚显示,放大显示后的目标处理部位能够满足用户的图片处理需求。It can be understood that, for an image area whose area ratio is greater than the preset scale factor, the enlarged display based on the same preset magnification can realize the clear display of the target processing part in the image area, and the enlarged display can be realized. The post-target processing part can meet the user's image processing requirements.
而对于面积比例不大于预设比例系数的图像区域而言,如果均基于统一的预设放大倍数进行放大显示,则可能出现放大显示后的图像区域中的目标处理部位仍然显示不清楚的问题,也就是说,即使基于预设放大倍数对该图像区域进行放大显示,而由于放大显示后的图像区域中的目标处理部位显示不清楚,导致即使放大显示也不能满足用户对该图像区域的处理需求。However, for the image area whose area ratio is not greater than the preset scale factor, if the enlarged display is performed based on the unified preset magnification factor, the problem that the target processing part in the enlarged image area may still not be displayed clearly. That is to say, even if the image area is enlarged and displayed based on the preset magnification, because the target processing part in the enlarged and displayed image area is not clearly displayed, even the enlarged display cannot meet the processing requirements of the user for the image area. .
因此,本公开实施例在确定图像区域与显示屏幕之间的面积比例不大于预设放大倍数时,可以根据该面积比例确定该图像区域对应的放大倍数。其中,面积比例越小,则对应的放大倍数越大,以保证放大显示后的图像区域中的目标处理部位能够满足用户对该图像区域的处理需求。Therefore, in the embodiment of the present disclosure, when it is determined that the area ratio between the image area and the display screen is not greater than the preset magnification, the magnification corresponding to the image area can be determined according to the area ratio. Wherein, the smaller the area ratio is, the larger the corresponding magnification is, so as to ensure that the target processing part in the enlarged and displayed image area can meet the processing requirements of the user for the image area.
实际应用场景中,由于图片处理的过程中,需要不断的对图片进行放大和还原操作,以便在每次完成对图像区域的图像编辑处理之后,通过将编辑后图像区域合成到待处理图片中,以查看编辑后图片在原图片中的整体效果。In practical application scenarios, during the process of image processing, it is necessary to continuously enlarge and restore the image, so that after each image editing and processing of the image area is completed, the edited image area can be synthesized into the image to be processed. to see the overall effect of the edited image in the original image.
为此,本公开实施例在接收到针对放大显示后的图像区域的图像编辑操作时,在图像编辑界面上显示图像区域的编辑后图像,然后在接收到针对待处理图片的显示触发操作时,将编辑后图像合成到待处理图片,显示合成得到的图片。To this end, when an image editing operation for the enlarged and displayed image area is received, the embodiment of the present disclosure displays the edited image of the image area on the image editing interface, and then when receiving a display trigger operation for the image to be processed, Synthesize the edited image into the image to be processed, and display the synthesized image.
一种可选的实施方式中,可以在显示界面上设置显示控件,用户在完成对图像区域中的目标处理部位的图像编辑处理之后,可以通过点击该显示,触发对待处理图片的显示操作,将编辑后图像合成到待处理图片中,显示合成后的待处理图片,从而使得用户能够查看将目标处理部位进行图像编辑处理之后的待处理图片的整体效果。同时,通过一键还原的功能设置,能够提高整体的图片处理效率。In an optional embodiment, a display control can be set on the display interface, and after the user completes the image editing processing on the target processing part in the image area, the user can click on the display to trigger the display operation of the image to be processed, and display the image to be processed. The edited image is synthesized into the to-be-processed picture, and the synthesized to-be-processed picture is displayed, so that the user can view the overall effect of the to-be-processed picture after image editing processing is performed on the target processing part. At the same time, the function settings of one-click restoration can improve the overall picture processing efficiency.
本公开实施例提供的图片处理方法中,在接收到图像编辑触发操作时,对待处理图片进行目标处理部位的检测,然后确定待处理图片上包括目标处理部位的图像区域,最终,在图像编辑界面上,对该图像区域进行放大显示。可见,本公开实施例能够在触发图像编辑操作时,针对待处理图片上的目标处理部位进行快速定位,同时在图像编辑界面上进行放大显示,便于用户对目标处理部位进行图像编辑处理,一定程度上提高了图片处理的效率。In the image processing method provided by the embodiments of the present disclosure, when an image editing trigger operation is received, the target processing part is detected on the to-be-processed image, and then the image area including the target processing part on the to-be-processed image is determined, and finally, on the image editing interface , the image area is enlarged and displayed. It can be seen that the embodiment of the present disclosure can quickly locate the target processing part on the picture to be processed when an image editing operation is triggered, and at the same time, it can be enlarged and displayed on the image editing interface, which is convenient for the user to perform image editing processing on the target processing part. To a certain extent It improves the efficiency of image processing.
为了便于对本方案进行理解,本公开还提供了一种应用场景实施例,参考图2,为本公开实施例提供的一种多人合照图片处理方法的流程图,其中,该方法包括:In order to facilitate the understanding of this solution, the present disclosure also provides an application scenario embodiment. Referring to FIG. 2 , a flowchart of a method for processing a group photo of a group of people provided by an embodiment of the present disclosure, wherein the method includes:
S201:将人脸部位确定为多人合照图片对应的目标处理部位。S201: Determine a face position as a target processing position corresponding to a group photo of multiple people.
本公开实施例中,针对多人合照图片,将人脸部位确定为多人合照图片 对应的目标处理部位,以便于用户对该多人合照图片中的人脸进行修图处理。In the embodiment of the present disclosure, for a group photo of multiple people, the face position is determined as the target processing part corresponding to the group photo of multiple people, so that the user can perform retouching processing on the faces in the group photo of multiple people.
值得注意的是,本公开实施例是以人脸部位作为目标处理部位的示例,对于其他部位作为目标处理部位的实现方式可参考理解,在此不再赘述。而对于多人合照图片的目标处理部位可以是一种,也可以是多种。具体的,可以在接收到用户针对多种处理部位中的至少一种处理部位的选中操作时,将该至少一种处理部位确定为多人合照图片的目标处理部位,例如该至少一种处理部位包括人脸部位和人腿部位。It is worth noting that the embodiment of the present disclosure uses the face part as an example of the target processing part, and the implementation manner of other parts as the target processing part can be understood with reference, and will not be repeated here. For the multi-person group photo, the target processing part may be one type or multiple types. Specifically, when a user's selection operation for at least one treatment part among multiple treatment parts is received, the at least one treatment part may be determined as the target treatment part of the group photo of multiple people, for example, the at least one treatment part Including the human face and human legs.
S202:响应于图像编辑触发操作,对所述多人合照图片进行人脸部位的检测。S202: In response to the image editing triggering operation, perform face position detection on the group photo of the group of people.
本公开实施例中,在接收到图像编辑触发操作时,可以对多人合照图片中的各个人脸部位进行检测,具体可以利用人脸识别模型实现对人脸部位的检测。In the embodiment of the present disclosure, when an image editing trigger operation is received, each face position in a group photo of multiple people can be detected, and specifically, the face position detection can be realized by using a face recognition model.
一种可选的实施方式中,可以在确定多人合照图片对应的目标处理部位的同时,触发针对人脸部位的检测操作,实现对多人合照图片上的人脸进行检测。In an optional implementation manner, while determining the target processing part corresponding to the group photo of multiple people, a detection operation for the face position can be triggered, so as to detect the faces on the group photo of multiple people.
S203:确定多人合照图片上包括人脸部位的图像区域,并分别显示针对各个图像区域的放大控件。S203 : Determine an image area including a human face on the group photo of multiple people, and display a zoom-in control for each image area respectively.
本公开实施例中,通过对多人合照图片中各个人脸部位的检测,能够确定该多人合照图片中每张人脸的位置,并为每张人脸确定一个图像区域。具体的,假设待处理图片上包括有3张人脸,则确定该待处理图片上分别包括有上述3张人脸的图像区域,即确定出3个图像区域,每个图像区域包括有上述3张人脸中的一张人脸。In the embodiment of the present disclosure, by detecting the position of each person's face in the group photo of multiple people, the position of each face in the group photo of multiple people can be determined, and an image area can be determined for each face. Specifically, assuming that the to-be-processed picture includes 3 faces, it is determined that the to-be-processed picture includes the image areas of the above-mentioned 3 faces, that is, 3 image areas are determined, and each image area includes the above-mentioned 3 A face within a face.
本公开实施例中,在确定多人合照图片上包括人脸部位的图像区域之后,为了便于触发对图像区域的放大显示,本公开实施例可以针对图像区域生成放大控件,用于触发对图像区域的放大显示。In this embodiment of the present disclosure, after determining an image area including a face on a group photo of multiple people, in order to facilitate triggering the enlarged display of the image area, the embodiment of the present disclosure may generate an enlargement control for the image area, which is used to trigger the A magnified display of the area.
一种可选的实施方式中,如果确定多人合照图片上存在多个包括有目标处理部位的图像区域,可以针对各个图像区域分别生成对应的放大控件,其中,每个放大控件用于触发与该放大控件具有对应关系的图像区域的放大显示,实现对图像区域进行放大显示,即对该图像区域包括的目标处理部位进行放大显示。In an optional embodiment, if it is determined that there are multiple image areas including the target processing part on the group photo of multiple people, corresponding magnification controls may be generated for each image area, wherein each magnification control is used to trigger and The enlargement control has enlarged display of the corresponding image area, and realizes the enlarged display of the image area, that is, the enlarged display of the target processing part included in the image area.
另外,为了便于确定各个放大控件分别对应的图像区域,可以分别为每个放大控件设置缩略图,具体的,可以利用每个放大控件对应的图像区域中包括的目标处理部位的缩略图,作为该放大控件的缩略图。In addition, in order to facilitate the determination of the image area corresponding to each magnification control, a thumbnail can be set for each magnification control. Specifically, the thumbnail of the target processing part included in the image area corresponding to each magnification control can be used as the Zoom in on the thumbnail of the control.
一种可选的实施方式中,放大控件上的显示图案即为该放大控件对应的图像区域中包括的目标处理部位的缩略图。基于显示的缩略图,能够更准确触发多人合照图片上需要处理的图像区域的放大显示。In an optional implementation manner, the display pattern on the enlargement control is the thumbnail image of the target treatment part included in the image area corresponding to the enlargement control. Based on the displayed thumbnails, it is possible to more accurately trigger the enlarged display of the image area that needs to be processed on the group photo of multiple people.
另一种可选的实施方式中,如果确定多人合照图片上存在多个包括有目 标处理部位的图像区域,可以为各个图像区域生成一个放大控件。具体的,在多人合照图片上的任意一个图像区域被选中之后,可以通过对该放大控件的点击,触发针对被选中的图像区域的放大显示。In another optional implementation manner, if it is determined that there are multiple image areas including the target processing part on the group photo of multiple people, a zoom control can be generated for each image area. Specifically, after any image area on the multi-person group photo picture is selected, the enlarged display of the selected image area can be triggered by clicking on the enlargement control.
其中,每张人脸对应的图像区域可以为包括有该人脸的最小矩形区域。The image area corresponding to each face may be the smallest rectangular area including the face.
S204:响应于针对目标放大控件的触发操作,在图像编辑界面上,对该目标放大控件对应的目标图像区域进行放大显示;其中,所述目标图像区域为所述至少两个所述图像区域中的任一所述图像区域。本公开实施例中,针对多人合照图片上的每一张人脸,均具有对应的放大控件,用户可以基于图片处理需求,点击目标放大控件,以便在图像编辑界面上对该目标放大控件对应的图像区域进行放大显示。S204: In response to the triggering operation for the target zoom control, on the image editing interface, perform zoomed display on the target image area corresponding to the target zoom control; wherein, the target image area is one of the at least two image areas. of any of the image regions. In the embodiment of the present disclosure, there is a corresponding zoom-in control for each face in a group photo of a group of people. The user can click the target zoom-in control based on the image processing requirements, so as to correspond to the target zoom-in control on the image editing interface. the image area is enlarged.
S205:响应于针对所述图像区域的图像编辑操作,在所述图像编辑界面上显示所述图像区域的编辑后图像;S205: In response to an image editing operation for the image area, display the edited image of the image area on the image editing interface;
本公开实施例中,在图像编辑界面上放大显示图像区域之后,用户可以对该图像区域执行图像编辑操作,例如对人脸部位的细节修图、整体色彩调整等,然后在图像编辑界面上显示该图像区域对应的编辑后图像。In the embodiment of the present disclosure, after the image area is enlarged and displayed on the image editing interface, the user can perform image editing operations on the image area, such as retouching the details of the human face, adjusting the overall color, etc., and then on the image editing interface Displays the edited image corresponding to the image area.
S206:响应于针对多人合照图片的显示触发操作,将所述编辑后图像合成到多人合照图片后,显示合成得到的多人合照图片。S206: In response to the display triggering operation for the multi-person group photo picture, after synthesizing the edited image into the multi-person group photo picture, display the synthesized multi-person group photo picture.
实际应用中,用户在针对放大显示的图像区域中的人脸进行修图后,通常需要查看修图后的人脸在整张多人合照图片中的整体显示效果。In practical applications, after retouching the face in the enlarged and displayed image area, the user usually needs to check the overall display effect of the retouched face in the entire group photo.
因此,本公开实施例可以通过触发对多人合照图片的显示操作,例如点击还原按钮等方式,触发将编辑后图像合成到原图片中,实现一键触发多人合照图片的还原显示,提高了图片处理效率。Therefore, the embodiment of the present disclosure can trigger the display operation of the multi-person group photo, such as clicking the restore button, etc., to trigger the synthesis of the edited image into the original picture, so as to realize the restoration and display of the multi-person group photo triggered by one key, and improve the Image processing efficiency.
由于对图像编辑的操作是需要不断的对多人合照图片的图像区域进行放大显示、图像编辑,以及将编辑后图像区域合成到原图像中查看整体效果的循环操作,因此,本公开通过一键触发图像区域放大显示,以及一键触发将编辑后图像区域合成到原图像中查看整体效果,便于用户完成对多人合照图片的效果处理。Since the operation of image editing requires continuous enlargement and display of the image area of the picture taken by multiple people, image editing, and cyclic operation of synthesizing the edited image area into the original image to view the overall effect, the present disclosure adopts one-click operation. Trigger the enlarged display of the image area, and one-click trigger to synthesize the edited image area into the original image to view the overall effect, which is convenient for users to complete the effect processing of the group photo of multiple people.
本公开实施例提供的合照图片处理方法中,通过对多人合照图片进行人脸识别,能够确定多人合照图片上每张人脸对应的图像部位,实现快速人脸定位。另外,还可以通过按钮,一键触发图像区域的放大显示,以及一键触发多人合照图片的还原显示,用户操作简单,一定程度上提高了图片处理的效率。In the group photo processing method provided by the embodiments of the present disclosure, by performing face recognition on the multi-person group photo picture, the image part corresponding to each face in the multi-person group photo picture can be determined, thereby realizing fast face location. In addition, it is also possible to trigger the enlarged display of the image area with one button, and the restoration and display of a group photo of multiple people with one button. The user operation is simple, and the efficiency of image processing is improved to a certain extent.
与上述方法实施例基于同一个发明构思,本公开还提供了一种图片处理装置,参考图3,为本公开实施例提供的一种图片处理装置,所述装置包括:Based on the same inventive concept as the above method embodiments, the present disclosure further provides a picture processing apparatus. Referring to FIG. 3 , a picture processing apparatus provided in an embodiment of the present disclosure includes:
第一检测模块301,用于响应于图像编辑触发操作,对待处理图片进行目标处理部位的检测;The first detection module 301 is configured to detect the target processing part of the picture to be processed in response to an image editing trigger operation;
第一确定模块302,用于确定所述待处理图片上包括目标处理部位的图像区域;a first determining module 302, configured to determine the image area including the target processing part on the picture to be processed;
放大显示模块303,用于在图像编辑界面上,对所述图像区域进行放大显示。The magnifying display module 303 is used for magnifying and displaying the image area on the image editing interface.
一种可选的实施方式中,所述装置还包括:In an optional embodiment, the device further includes:
第一显示模块,用于显示针对所述图像区域的放大控件;a first display module, configured to display a zoom-in control for the image area;
所述放大显示模块,具体用于:The enlarged display module is specifically used for:
响应于针对所述放大控件的触发操作,在图像编辑界面上,对所述图像区域进行放大显示。In response to a triggering operation for the enlargement control, on the image editing interface, the image area is enlarged and displayed.
一种可选的实施方式中,所述待处理图片上包括至少两个所述图像区域;In an optional implementation manner, the picture to be processed includes at least two of the image areas;
所述第一显示模块,具体用于显示所述至少两个所述图像区域分别对应的放大控件;The first display module is specifically configured to display the zoom controls corresponding to the at least two image regions respectively;
所述放大显示模块303,具体用于:The enlarged display module 303 is specifically used for:
响应于针对目标放大控件的触发操作,在图像编辑界面上,对所述目标放大控件对应的目标图像区域进行放大显示;其中,所述目标图像区域为所述至少两个所述图像区域中的任一所述图像区域。In response to the triggering operation for the target zoom control, on the image editing interface, the target image area corresponding to the target zoom control is enlarged and displayed; wherein, the target image area is one of the at least two image areas. any of the image areas.
一种可选的实施方式中,所述放大控件具有所述图像区域对应的缩略图,所述缩略图为所述图像区域中包括的所述目标处理部位的缩略图。In an optional implementation manner, the enlargement control has a thumbnail image corresponding to the image area, and the thumbnail image is a thumbnail image of the target processing part included in the image area.
一种可选的实施方式中,所述装置还包括:In an optional embodiment, the device further includes:
第三确定模块,用于确定基于所述图像区域与图像编辑界面之间的面积比例,确定所述图像区域对应的放大倍数;a third determining module, configured to determine the magnification corresponding to the image area based on the area ratio between the image area and the image editing interface;
所述放大显示模块,具体用于:The enlarged display module is specifically used for:
在所述图像编辑界面上,基于所述放大倍数,对所述图像区域进行放大显示。On the image editing interface, based on the magnification, the image area is enlarged and displayed.
一种可选的实施方式中,所述第三确定模块,包括:In an optional implementation manner, the third determining module includes:
第一确定子模块,用于当所述图像区域与图像编辑界面之间的面积比例大于预设比例系数时,将预设放大倍数确定为所述图像区域对应的放大倍数;a first determining submodule, configured to determine a preset magnification as the magnification corresponding to the image area when the area ratio between the image area and the image editing interface is greater than a preset scale factor;
第二确定子模块,用于当所述图像区域与图像编辑界面之间的面积比例不大于所述预设比例系数时,根据所述面积比例确定所述图像区域对应的放大倍数;其中,所述面积比例越小,则所述放大倍数越大。The second determination submodule is configured to determine the magnification corresponding to the image area according to the area ratio when the area ratio between the image area and the image editing interface is not greater than the preset scale factor; wherein, the The smaller the area ratio, the greater the magnification.
一种可选的实施方式中,所述装置还包括:In an optional embodiment, the device further includes:
第二显示模块,用于响应于针对所述图像区域的图像编辑操作,在所述图像编辑界面上显示所述图像区域的编辑后图像;a second display module, configured to display the edited image of the image area on the image editing interface in response to an image editing operation for the image area;
第三显示模块,用于响应于针对所述待处理图片的显示触发操作,将所述编辑后图像合成到所述待处理图片,显示合成得到的图片。A third display module, configured to synthesize the edited image into the to-be-processed picture in response to a display triggering operation for the to-be-processed picture, and display the synthesized picture.
一种可选的实施方式中,所述装置还包括:In an optional embodiment, the device further includes:
第四确定模块,用于响应于针对多种处理部位中的至少一种处理部位的 选中操作,将所述至少一种处理部位确定为待处理图片的目标处理部位。The fourth determining module is configured to, in response to a selection operation for at least one processing part among the multiple processing parts, determine the at least one processing part as the target processing part of the picture to be processed.
本公开实施例提供的图片处理装置中,在接收到图像编辑触发操作时,对待处理图片进行目标处理部位的检测,然后确定待处理图片上包括目标处理部位的图像区域,最终,在图像编辑界面上,对该图像区域进行放大显示。可见,本公开实施例能够在触发图像编辑操作时,针对待处理图片上的目标处理部位进行快速定位,同时在图像编辑界面上进行放大显示,便于用户对目标处理部位进行图像编辑处理,一定程度上提高了图片处理的效率。In the image processing apparatus provided by the embodiment of the present disclosure, when an image editing trigger operation is received, the target processing part is detected on the to-be-processed image, and then the image area including the target processing part on the to-be-processed image is determined, and finally, on the image editing interface , the image area is enlarged and displayed. It can be seen that the embodiment of the present disclosure can quickly locate the target processing part on the picture to be processed when an image editing operation is triggered, and at the same time, it can be enlarged and displayed on the image editing interface, which is convenient for the user to perform image editing processing on the target processing part. It improves the efficiency of image processing.
另外,本公开实施例还提供了一种图片处理设备,参见图4所示,可以包括:In addition, an embodiment of the present disclosure also provides a picture processing device, as shown in FIG. 4 , which may include:
处理器401、存储器402、输入装置403和输出装置404。图片处理设备中的处理器401的数量可以一个或多个,图4中以一个处理器为例。在本公开的一些实施例中,处理器401、存储器402、输入装置403和输出装置404可通过总线或其它方式连接,其中,图4中以通过总线连接为例。 Processor 401 , memory 402 , input device 403 and output device 404 . The number of processors 401 in the image processing device may be one or more, and one processor is taken as an example in FIG. 4 . In some embodiments of the present disclosure, the processor 401 , the memory 402 , the input device 403 , and the output device 404 may be connected by a bus or in other ways, wherein the connection by a bus is taken as an example in FIG. 4 .
存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的软件程序以及模块,从而执行图片处理设备的各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。输入装置403可用于接收输入的数字或字符信息,以及产生与图片处理设备的用户设置以及功能控制有关的信号输入。The memory 402 can be used to store software programs and modules, and the processor 401 executes various functional applications and data processing of the image processing apparatus by running the software programs and modules stored in the memory 402 . The memory 402 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, and the like. Additionally, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The input device 403 can be used to receive input numerical or character information, and generate signal input related to user settings and function control of the picture processing apparatus.
具体在本实施例中,处理器401会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现上述图片处理设备的各种功能。Specifically in this embodiment, the processor 401 loads the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the executable files stored in the memory 402 application, so as to realize various functions of the above picture processing device.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these Any such actual relationship or sequence exists between entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见 的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

  1. 一种图片处理方法,其特征在于,所述方法包括:A picture processing method, characterized in that the method comprises:
    响应于图像编辑触发操作,对待处理图片进行目标处理部位的检测;In response to the image editing triggering operation, detecting the target processing part of the image to be processed;
    确定所述待处理图片上包括所述目标处理部位的图像区域;Determine the image area including the target processing part on the picture to be processed;
    在图像编辑界面上,对所述图像区域进行放大显示。On the image editing interface, the image area is enlarged and displayed.
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述待处理图片上包括所述目标处理部位的图像区域之后,还包括:The method according to claim 1, wherein after the determining the image area including the target processing part on the picture to be processed, the method further comprises:
    显示针对所述图像区域的放大控件;displaying a zoom-in control for the image area;
    所述在图像编辑界面上,对所述图像区域进行放大显示,包括:Enlarging and displaying the image area on the image editing interface includes:
    响应于针对所述放大控件的触发操作,在图像编辑界面上,对所述图像区域进行放大显示。In response to a triggering operation for the enlargement control, on the image editing interface, the image area is enlarged and displayed.
  3. 根据权利要求2所述的方法,其特征在于,所述待处理图片上包括至少两个所述图像区域;所述显示针对所述图像区域的放大控件,包括:The method according to claim 2, wherein the picture to be processed includes at least two image areas; and the displaying a zoom-in control for the image areas includes:
    显示所述至少两个所述图像区域分别对应的放大控件;displaying zoom controls corresponding to the at least two image areas respectively;
    所述响应于针对所述放大控件的触发操作,在图像编辑界面上,对所述图像区域进行放大显示,包括:Enlarging and displaying the image area on the image editing interface in response to the triggering operation for the enlargement control includes:
    响应于针对目标放大控件的触发操作,在图像编辑界面上,对所述目标放大控件对应的目标图像区域进行放大显示;其中,所述目标图像区域为所述至少两个所述图像区域中的任一所述图像区域。In response to a triggering operation for the target zoom control, on the image editing interface, the target image area corresponding to the target zoom control is displayed in an enlarged manner; wherein the target image area is one of the at least two image areas. any of the image areas.
  4. 根据权利要求2或3所述的方法,其特征在于,所述放大控件具有所述图像区域对应的缩略图,所述缩略图为所述图像区域中包括的所述目标处理部位的缩略图。The method according to claim 2 or 3, wherein the zoom-in control has a thumbnail image corresponding to the image area, and the thumbnail image is a thumbnail image of the target processing part included in the image area.
  5. 根据权利要求1所述的方法,其特征在于,所述在图像编辑界面上,对所述图像区域进行放大显示之前,还包括:The method according to claim 1, wherein, before the image area is enlarged and displayed on the image editing interface, the method further comprises:
    基于所述图像区域与图像编辑界面之间的面积比例,确定所述图像区域对应的放大倍数;determining a magnification corresponding to the image area based on the area ratio between the image area and the image editing interface;
    所述在图像编辑界面上,对所述图像区域进行放大显示,包括:Enlarging and displaying the image area on the image editing interface includes:
    在所述图像编辑界面上,基于所述放大倍数,对所述图像区域进行放大显示。On the image editing interface, the image area is enlarged and displayed based on the magnification.
  6. 根据权利要求5所述的方法,其特征在于,所述基于所述图像区域与图像编辑界面之间的面积比例,确定所述图像区域对应的放大倍数,包括:The method according to claim 5, wherein the determining the magnification corresponding to the image area based on the area ratio between the image area and the image editing interface comprises:
    当所述图像区域与图像编辑界面之间的面积比例大于预设比例系数时,则将标准放大倍数确定为所述图像区域对应的放大倍数;When the area ratio between the image area and the image editing interface is greater than the preset scale factor, the standard magnification is determined as the magnification corresponding to the image area;
    当所述图像区域与图像编辑界面之间的面积比例不大于所述预设比例系数时,则根据所述面积比例确定所述图像区域对应的放大倍数;其中,所述面积比例越小,则所述放大倍数越大。When the area ratio between the image area and the image editing interface is not greater than the preset scale factor, the magnification corresponding to the image area is determined according to the area ratio; The magnification is larger.
  7. 根据权利要求1所述的方法,其特征在于,所述在图像编辑界面上, 对所述图像区域进行放大显示之后,还包括:The method according to claim 1, wherein, after the image area is enlarged and displayed on the image editing interface, the method further comprises:
    响应于针对所述图像区域的图像编辑操作,在所述图像编辑界面上显示所述图像区域的编辑后图像;In response to an image editing operation for the image region, displaying an edited image of the image region on the image editing interface;
    响应于针对所述待处理图片的显示触发操作,将所述编辑后图像合成到所述待处理图片,显示合成得到的图片。In response to a display triggering operation for the picture to be processed, the edited image is synthesized into the picture to be processed, and the synthesized picture is displayed.
  8. 根据权利要求1所述的方法,其特征在于,所述响应于图像编辑触发操作,对待处理图片进行目标处理部位的检测之前,还包括:The method according to claim 1, wherein, before performing the target processing part detection on the picture to be processed in response to an image editing trigger operation, the method further comprises:
    响应于针对多种处理部位中的至少一种处理部位的选中操作,将所述至少一种处理部位确定为待处理图片的目标处理部位。In response to a selection operation for at least one processing part among the plurality of processing parts, the at least one processing part is determined as a target processing part of the picture to be processed.
  9. 一种图片处理装置,其特征在于,所述装置包括:A picture processing device, characterized in that the device comprises:
    第一检测模块,用于响应于图像编辑触发操作,对待处理图片进行目标处理部位的检测;a first detection module, configured to detect the target processing part of the picture to be processed in response to an image editing trigger operation;
    第一确定模块,用于确定所述待处理图片上包括目标处理部位的图像区域;a first determining module, configured to determine the image area including the target processing part on the picture to be processed;
    放大显示模块,用于在图像编辑界面上,对所述图像区域进行放大显示。The magnifying display module is used for magnifying and displaying the image area on the image editing interface.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备实现如权利要求1-8任一项所述的方法。A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed on a terminal device, the terminal device is made to implement any one of claims 1-8. the method described.
  11. 一种设备,其特征在于,包括:存储器,处理器,及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1-8任一项所述的方法。A device, characterized in that it comprises: a memory, a processor, and a computer program stored in the memory and running on the processor, when the processor executes the computer program, the computer program as claimed in the claims is realized. The method of any one of 1-8.
PCT/CN2021/114944 2020-08-31 2021-08-27 Picture processing method and apparatus, device, and storage medium WO2022042679A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020237010651A KR102662873B1 (en) 2020-08-31 2021-08-27 Picture processing methods and apparatus, devices and storage media
JP2023513987A JP7453471B2 (en) 2020-08-31 2021-08-27 Picture processing method, apparatus, device and storage medium
EP21860511.1A EP4191391A4 (en) 2020-08-31 2021-08-27 Picture processing method and apparatus, device, and storage medium
US17/819,485 US11941777B2 (en) 2020-08-31 2022-08-12 Picture enlargement method and apparatus, device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010899327.2A CN112035038B (en) 2020-08-31 2020-08-31 Picture processing method, device, equipment and storage medium
CN202010899327.2 2020-08-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/819,485 Continuation US11941777B2 (en) 2020-08-31 2022-08-12 Picture enlargement method and apparatus, device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022042679A1 true WO2022042679A1 (en) 2022-03-03

Family

ID=73587760

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/114944 WO2022042679A1 (en) 2020-08-31 2021-08-27 Picture processing method and apparatus, device, and storage medium

Country Status (5)

Country Link
US (1) US11941777B2 (en)
EP (1) EP4191391A4 (en)
JP (1) JP7453471B2 (en)
CN (1) CN112035038B (en)
WO (1) WO2022042679A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4190307A1 (en) * 2021-11-25 2023-06-07 Henkel AG & Co. KGaA Leave-on cosmetic products for improving styling properties

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112036310A (en) * 2020-08-31 2020-12-04 北京字节跳动网络技术有限公司 Picture processing method, device, equipment and storage medium
CN112035038B (en) * 2020-08-31 2022-03-04 北京字节跳动网络技术有限公司 Picture processing method, device, equipment and storage medium
CN112667134A (en) * 2021-01-06 2021-04-16 青岛海信移动通信技术股份有限公司 Mobile terminal and updating method of display interface thereof
CN112887537B (en) * 2021-01-18 2022-08-23 维沃移动通信有限公司 Image processing method and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268200A (en) * 2018-01-22 2018-07-10 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment, computer program and storage medium
CN109859211A (en) * 2018-12-28 2019-06-07 努比亚技术有限公司 A kind of image processing method, mobile terminal and computer readable storage medium
CN112035038A (en) * 2020-08-31 2020-12-04 北京字节跳动网络技术有限公司 Picture processing method, device, equipment and storage medium

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6803931B1 (en) 1999-11-04 2004-10-12 Kendyl A. Roman Graphical user interface including zoom control box representing image and magnification of displayed image
US20100162163A1 (en) 2008-12-18 2010-06-24 Nokia Corporation Image magnification
KR101587137B1 (en) * 2009-07-01 2016-01-21 엘지전자 주식회사 Mobile terminal and method for controlling the same
JP2011211621A (en) * 2010-03-30 2011-10-20 Nikon Corp Image display processing apparatus, electronic camera and program
CN102486793A (en) * 2010-12-06 2012-06-06 武汉若鱼网络科技有限公司 Method and system for searching target user
CN105278771A (en) * 2014-07-25 2016-01-27 南京瀚宇彩欣科技有限责任公司 Non-blocking touch handheld electronic device, method and graphical user interface
CN110268703A (en) * 2017-03-15 2019-09-20 深圳市大疆创新科技有限公司 Imaging method and imaging control apparatus
CN106942878A (en) * 2017-03-17 2017-07-14 合肥龙图腾信息技术有限公司 Partial enlargement make up system, apparatus and method
CN107122108B (en) * 2017-04-27 2020-10-16 腾讯科技(深圳)有限公司 Picture editing method and device
CN109034173A (en) * 2017-06-08 2018-12-18 北京君正集成电路股份有限公司 Target object choosing method and device
CN107463306B (en) * 2017-07-12 2020-02-14 北京潘达互娱科技有限公司 Image display method and device
CN108170363A (en) * 2017-12-29 2018-06-15 努比亚技术有限公司 picture editing method, intelligent terminal and computer readable storage medium
CN108664948B (en) * 2018-05-21 2022-12-27 北京京东尚科信息技术有限公司 Method and apparatus for generating information
WO2020070801A1 (en) * 2018-10-02 2020-04-09 マクセル株式会社 Information processing device
CN109445669B (en) * 2018-11-06 2022-03-22 湖南中医药大学 Method for displaying and drawing picture
CN111324270A (en) * 2020-02-24 2020-06-23 北京字节跳动网络技术有限公司 Image processing method, assembly, electronic device and storage medium
CN111352557B (en) * 2020-02-24 2021-09-14 北京字节跳动网络技术有限公司 Image processing method, assembly, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268200A (en) * 2018-01-22 2018-07-10 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment, computer program and storage medium
CN109859211A (en) * 2018-12-28 2019-06-07 努比亚技术有限公司 A kind of image processing method, mobile terminal and computer readable storage medium
CN112035038A (en) * 2020-08-31 2020-12-04 北京字节跳动网络技术有限公司 Picture processing method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4191391A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4190307A1 (en) * 2021-11-25 2023-06-07 Henkel AG & Co. KGaA Leave-on cosmetic products for improving styling properties

Also Published As

Publication number Publication date
KR20230058458A (en) 2023-05-03
US20220383451A1 (en) 2022-12-01
CN112035038B (en) 2022-03-04
US11941777B2 (en) 2024-03-26
JP2023540271A (en) 2023-09-22
JP7453471B2 (en) 2024-03-19
EP4191391A4 (en) 2023-09-13
CN112035038A (en) 2020-12-04
EP4191391A1 (en) 2023-06-07

Similar Documents

Publication Publication Date Title
WO2022042679A1 (en) Picture processing method and apparatus, device, and storage medium
CN110100251B (en) Apparatus, method, and computer-readable storage medium for processing document
CN108924440B (en) Sticker display method, device, terminal and computer-readable storage medium
WO2018166069A1 (en) Photographing preview method, graphical user interface, and terminal
TWI777098B (en) Method, apparatus and electronic device for image processing and storage medium thereof
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
WO2019237747A1 (en) Image cropping method and apparatus, and electronic device and computer-readable storage medium
WO2017107855A1 (en) Picture searching method and device
WO2022001648A1 (en) Image processing method and apparatus, and device and medium
CN112188097B (en) Photographing method, photographing apparatus, terminal device, and computer-readable storage medium
WO2019090734A1 (en) Photographing method and apparatus, mobile terminal, and computer readable storage medium
WO2017088228A1 (en) Picture zooming method and apparatus
WO2019196662A1 (en) Local enlargement of image
WO2020057241A1 (en) Method and apparatus for displaying application program, and terminal device
CN111147659A (en) Display control method and device, electronic equipment and storage medium
US11900726B2 (en) Picture processing method and apparatus, device, and storage medium
CN110677586B (en) Image display method, image display device and mobile terminal
WO2022194211A1 (en) Image processing method and apparatus, electronic device and readable storage medium
KR102662873B1 (en) Picture processing methods and apparatus, devices and storage media
US20170017370A1 (en) Device and method for processing data
CN113273167B (en) Data processing apparatus, method and storage medium
CN112383708A (en) Shooting method, shooting device, electronic equipment and readable storage medium
US20110074804A1 (en) Selection of a region
TWI823301B (en) Method for zooming visual content, host, and computer readable medium
TW201828118A (en) Picture search method and device searching in a search dimension for a second picture matching the first picture according to the search dimension corresponding to the first picture

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

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2023513987

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20237010651

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021860511

Country of ref document: EP

Effective date: 20230228