WO2021218416A1 - Readable storage medium, display device and image processing method therefor - Google Patents

Readable storage medium, display device and image processing method therefor Download PDF

Info

Publication number
WO2021218416A1
WO2021218416A1 PCT/CN2021/079894 CN2021079894W WO2021218416A1 WO 2021218416 A1 WO2021218416 A1 WO 2021218416A1 CN 2021079894 W CN2021079894 W CN 2021079894W WO 2021218416 A1 WO2021218416 A1 WO 2021218416A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
initial image
image
target feature
target
Prior art date
Application number
PCT/CN2021/079894
Other languages
French (fr)
Chinese (zh)
Inventor
梁静娴
沈艳
陈乃川
温垦
Original Assignee
京东方科技集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Publication of WO2021218416A1 publication Critical patent/WO2021218416A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • 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
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • 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/20112Image segmentation details
    • G06T2207/20132Image cropping
    • 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 display technology, and in particular, to a readable storage medium, a display device, and an image processing method of the display device.
  • the purpose of the present disclosure is to provide a readable storage medium, a display device, and an image processing method of the display device.
  • an image processing method of a display device including:
  • the initial image is cropped according to the cropping ratio and the focus area to obtain a target image, which is displayed on the display device.
  • determining the focus area according to the recognition result includes:
  • the target feature does not exist in the initial image, use an area in the initial image whose definition reaches a specified threshold as the focus area;
  • the focus area is determined according to the proportion of the target feature in the initial image.
  • determining the focus area according to the proportion of the target feature in the initial image includes:
  • the initial image is used as the focus area
  • the area of the target feature is used as the focus area
  • the proportion of the target feature in the initial image is less than the minimum value of the threshold range, then the area in the initial image whose definition reaches the specified threshold is taken as the focus area.
  • using an area in the initial image whose sharpness reaches a specified threshold as the focus area includes:
  • a line scanning action is performed through a scanning window, and the line scanning action includes: starting from the first starting area, aligning in a row direction
  • the initial image is scanned to obtain the definition of a line scanning area and each line acquisition area in the line scanning area; the boundary of the line scanning area in the line direction coincides with the boundary of the initial image in the line direction;
  • the line acquisition area is an area corresponding to the scan window in the line scan area;
  • the definition of each of the line acquisition areas in the line scanning area does not reach the specified threshold, then reselect the first starting area from the areas where the definition has never been obtained, and perform the line scanning action until it is determined Out of the first reference area; the distance in the column direction between the reselected first starting area and the first starting area before reselecting is an integer multiple of the height of the scan window in the column direction;
  • the boundary of the column scanning area in the column direction coincides with the boundary of the initial image in the column direction;
  • the column acquisition area is an area in the column scanning area corresponding to the scanning window;
  • the focus area is determined according to the first reference area and the second reference area.
  • the boundary of the focus region in the row direction is the outer boundary of the two outermost first reference regions in the row direction;
  • the boundary of the focus area in the column direction is the outer boundary of the two outermost second reference areas in the column direction.
  • the second starting area is the first reference area
  • the center of the second starting region coincides with the midpoint of the center lines of the two outermost first reference regions in the row direction.
  • clipping the initial image according to the clipping ratio and the focus area includes:
  • the initial image is cropped along the edge of the target cropping area.
  • the image processing method further includes:
  • the initial image is cropped according to the cropping area parameter.
  • the target feature includes a human face.
  • a display device including an image processing device, the image processing device including:
  • the image acquisition unit is used to acquire the initial image
  • the parameter acquisition unit is used to acquire the tailoring ratio and target characteristics
  • a recognition unit configured to recognize the target feature in the initial image, and determine the focus area according to the recognition result
  • the processing unit is configured to trim the initial image according to the trimming ratio and the focus area to obtain and display a target image.
  • the identification unit includes:
  • An image recognition module for recognizing target features in the initial image
  • the analysis module is configured to, when the target feature does not exist in the initial image, use an area in the initial image whose definition reaches a specified threshold as the focus area; and when the target feature exists in the initial image, The focus area is determined according to the proportion of the target feature in the initial image.
  • the analysis module includes:
  • a comparison circuit for comparing the proportion of the target feature in the initial image with a threshold range
  • the execution circuit is configured to use the initial image as the focus area when the proportion of the target feature in the initial image is greater than the maximum value of the threshold range; when the target feature is in the initial image When the proportion is within the threshold range, the area of the target feature is used as the focus area; and when the proportion of the target feature in the initial image is less than the minimum value of the threshold range, the initial The area in the image whose sharpness reaches the specified threshold is regarded as the focus area.
  • a readable storage medium on which a computer program is stored, and the computer program implements the image processing method described in any one of the above when the computer program is executed.
  • FIG. 1 is a flowchart of an embodiment of the image processing method of the present disclosure.
  • FIG. 2 is a schematic diagram of a display device and a photographing terminal in an embodiment of the image processing method of the present disclosure.
  • FIG. 3 is a flowchart of step S130 in an embodiment of the image processing method of the present disclosure.
  • FIG. 4 is a flowchart of step S1310 in an embodiment of the image processing method of the present disclosure.
  • FIG. 5 is a flowchart of step S1320 in an embodiment of the image processing method of the present disclosure.
  • FIG. 6 is a flowchart of step S140 in an embodiment of the image processing method of the present disclosure.
  • FIG. 7 is a schematic diagram of the working principle of an embodiment of the image processing method of the present disclosure.
  • FIG. 8 is a schematic diagram of an embodiment of the display device of the present disclosure.
  • FIG. 9 is a schematic diagram of an identification unit in an embodiment of the display device of the present disclosure.
  • FIG. 10 is a schematic diagram of an analysis module in an embodiment of the display device of the present disclosure.
  • FIG. 11 is a schematic diagram of an embodiment of the display system of the present disclosure.
  • FIG. 12 is a schematic diagram of an embodiment of a readable storage medium of the present disclosure.
  • the embodiments of the present disclosure provide an image processing method for a display device.
  • the display device may be a screen, a TV, a computer, a mobile phone, etc., as long as the image can be acquired and displayed, and there is no special limitation here.
  • the image processing method of the embodiment of the present disclosure includes step S110-step S140, wherein:
  • Step S110 Obtain an initial image
  • Step S120 Obtain a tailoring ratio and target characteristics
  • Step S130 Identify the target feature in the initial image, and determine the focus area according to the recognition result
  • Step S140 Clip the initial image according to the clipping ratio and the focus area to obtain a target image, and display it on the display device.
  • the image processing method of the embodiment of the present disclosure can determine the focus area in the initial image based on the recognition result of the target feature, and then crop the initial image according to the focus area and the cropping ratio, so as to obtain a target image that matches the display device more. Improve the display effect.
  • step S110 an initial image is acquired.
  • the initial image can come from a terminal device, which can be a camera terminal or other terminal, and the camera terminal can be a device that can take images such as a camera, a mobile phone, or a tablet computer.
  • a terminal device which can be a camera terminal or other terminal
  • the camera terminal can be a device that can take images such as a camera, a mobile phone, or a tablet computer.
  • the terminal device is a camera terminal, which can communicate with the display device through wireless communication to transmit the image taken by the terminal device to the display device.
  • the wireless communication method can be wifi, Bluetooth, etc.
  • the specific type is not specifically limited here.
  • the image can also be transmitted through a physical interface with a wired connection.
  • the initial image is any image taken by the camera terminal, and its specific parameters and size are not specifically limited here.
  • the initial image may be a group photo of a person, a landscape photo, etc.
  • Obtaining the initial image refers to acquiring the image data of the initial image.
  • the photographing terminal 121 may be a single-lens reflex camera, which has a wifi transmission module 122.
  • the display device 111 may be a picture screen, and the display device 111 may have a wifi signal processing module 112 and a system-on-a-chip (SOC, System-on-a-Chip) that can match and communicate with the wifi transmission module 122, and may also include an image processing device 114 And display module 115.
  • the display device 111 can package the initial image through the wifi transmission module 122 and load it into a wifi signal of 2.4g, 5g or other frequency bands and send it to the wifi signal processing module 112 of the display device 111.
  • the image data is transmitted to the system chip 113 so that the system chip 113 generates the image data of the initial image, which is transmitted to the image processing device 114 to execute the image processing method of the present disclosure, perform image processing, and then display the target image through the display module 115.
  • step S120 the cropping ratio and the target feature are acquired.
  • Both the tailoring ratio and the target feature can be pre-stored in a remote terminal by the user through an operation on a tailoring terminal, and the remote terminal may be a remote server.
  • the cropping ratio can be a user-defined ratio, or a ratio determined according to the display mode of the display device, and the cropping ratio determined according to the display mode can be used as the default cropping ratio. When the user does not set a custom cropping ratio, directly Use the default crop ratio.
  • the display mode depends on the type and placement of the display device.
  • the display device is a drawing screen, and its display modes include landscape mode and portrait mode.
  • the cropping ratio can be 9:16, for portrait mode.
  • the cropping ratio can be 16:9.
  • the cropping ratio can be used as the cropping area ratio when cropping the initial image.
  • the display mode can be preset, and at the same time, the mapping relationship between the display mode and the cropping ratio can be established, so that as long as the display mode is set, the corresponding Cropping ratio.
  • the placement mode of the display device can also be sensed by a device such as a position sensor, and based on a pre-established mapping of placement mode, display mode, and clipping ratio, the clipping can be determined in real time. ratio.
  • the target feature can be used as a reference standard for determining the focus area of the initial image, so that the target feature can be retained to the greatest extent after cropping. It can be a human face, a specific type of animal, a specific type of plant, a building, etc., which are not specifically limited here.
  • the user can select on the tailoring terminal and store the target feature information in the remote terminal for recall. For example, the user can select the target feature of the face on the tailoring terminal and upload it to the remote terminal.
  • step S130 the target feature is recognized in the initial image, and the focus area is determined according to the recognition result.
  • the target feature can be identified in the initial image.
  • the target feature stored by the remote terminal is a human face
  • the human face can be identified in the initial image.
  • the human face is not the facial feature of a specific user, but only refers to the recognition mode. Recognizing the facial area of any person belongs to face recognition.
  • the specific process of face recognition is not specifically limited here, as long as it can perform face detection on the initial image.
  • the face may be a facial feature of a specific user, for example, the facial feature of the user "Zhang San". Only when the facial feature of "Zhang San" is recognized in the initial image can it be determined that there is a facial feature in the initial image.
  • Target characteristics The specific technical details of face recognition for a specific user are not specifically limited here, as long as the function can be realized. The user can set the specific content of the target feature by operating on the tailoring terminal.
  • the target feature may or may not exist in the initial image. Therefore, the recognition result does not necessarily include the target feature.
  • the target feature can be used as the reference standard, while for the initial image without the target feature, the target feature cannot be used as the reference standard, and the area that needs to be retained can be determined by other methods.
  • determining that the target feature does not exist in the initial image includes: actually there is no image data about the target feature, and there is image data of the target feature, but the amount of data is too small, for example, less than a specified value, so It can be considered that there is no target feature.
  • determining the focus area according to the recognition result includes step S1310 and step S1320, where:
  • Step S1310 If the target feature does not exist in the initial image, use an area in the initial image whose definition reaches a specified threshold as a focus area.
  • Clarity can be characterized by variance function, gray variance function, gray variance product function, Brenner gradient function or other functions.
  • the specific algorithm is not specifically limited here. The higher the resolution, the clearer the initial image and the lower the resolution. , The more blurry the initial image.
  • a scanning window can be used to scan the initial image from the row direction and the column direction to obtain the definition of the region corresponding to the scanning window, where the region whose definition reaches the specified threshold is determined as a reference Area, the reference area can be regarded as a more important area in the initial image, and should be cropped based on the reference area. For example, you can first determine the area where the sharpness reaches the specified threshold along the row direction, and then determine the area where the sharpness reaches the specified threshold along the column direction based on the area where the sharpness in the row direction reaches the specified threshold; through the row and column directions, the sharpness reaches the specified threshold The threshold area can be used to construct the focus area.
  • row direction and the column direction only refer to two different directions that cross each other. Those skilled in the art can know that as the position of the display device changes, the actual orientation of the row direction and the column direction may also change.
  • step S1310 the area in the initial image whose sharpness reaches the specified threshold is taken as the focus area, that is, step S1310, which may include step S13110-step S13170, in which:
  • Step S13110 taking an area in the initial image where the definition has not been acquired as the first starting area, and performing a line scanning action through a scanning window.
  • the line scanning action includes: starting from the first starting area and moving along Scan the initial image in the row direction to obtain the definition of the row scan area and each row acquisition area in the row scan area; the boundary of the row scan area in the row direction and the boundary of the initial image in the row direction Coincidence; the line acquisition area is an area corresponding to the scan window in the line scan area.
  • the scan window is used to obtain the definition of its corresponding area, and the shape and size of the first starting area are the same as those of the scan window, depending on the scan window.
  • the first starting area may be located at the middle position of the initial image in the column direction and at the boundary position in the row direction, of course, it may also be other positions.
  • the scanning window can be translated along the row direction by a specified length at a time, and the specified length can be equal to the width of the scanning window in the row direction.
  • the scan window can also move in the row direction in other ways.
  • the area scanned by the scan window in the line direction is a line scan area. Since the boundary of the line scan area in the line direction coincides with the boundary of the original image in the line direction, it is possible to avoid unscanned areas in the line direction. Since the line scanning area is formed by the movement of the scanning window, the line scanning area has a plurality of line acquisition areas corresponding to the scanning windows at various positions, and each line acquisition area is an area where the definition has been acquired. Each time the scanning window moves along the row direction, the row acquisition area is synchronously increased by one, and the definition of the row acquisition area is obtained.
  • Step S13120 It is judged whether the definition of each line acquisition area in the line scanning area reaches a specified threshold.
  • the definition can be compared with a specified threshold to determine whether the definition reaches the specified threshold, that is, whether there is a collection area with a definition not less than the specified threshold.
  • Step S13130 If there is a line acquisition area whose definition reaches the specified threshold value in the line scanning area, a first reference area is determined according to the line acquisition area whose definition reaches the specified threshold value.
  • the position of the corresponding line acquisition area is recorded, so as to determine each line acquisition area in the travel scanning area whose definition reaches the specified threshold.
  • the line acquisition area whose sharpness reaches the specified threshold can be used as the first reference area to limit the range of the focus area in the line direction.
  • the number of the first reference area is one
  • the boundary of the focus area in the row direction is the extension line of the boundary of the first reference area in the row direction along the column direction, that is, the definition reaches the specified threshold.
  • the number of the first reference regions is multiple, and the boundary of the focus region in the row direction is the extension line of the outer boundary of the two outermost first reference regions in the row direction along the column direction.
  • the two outermost first reference regions are the two first reference regions furthest apart in the row direction, and the outer boundaries of the two first reference regions in the row direction are the opposite boundaries in the row direction.
  • the first reference area may be a plurality of continuous acquisition areas, of course, it may also be a plurality of discrete acquisition areas.
  • Step S13140 If the definition of each of the line acquisition areas of the line scan area does not reach the specified threshold, reselect the first starting area from the areas where the definition has never been obtained, and execute the line scan action , Until the first reference area is determined; the distance in the column direction between the reselected first starting area and the first starting area before reselecting is an integer multiple of the height of the scan window in the column direction.
  • the scan window after the last row scan operation can be moved in the column direction
  • the preset distance take the area corresponding to the scan window after the preset distance is moved as the new first starting area, and execute the scan action. Accordingly, step S13120 and step S13130 are executed again, until the first reference area is determined, stop scanning.
  • the preset distance may be an integer multiple of the height of the scan window in the column direction, for example, 1 time, 2 times, and so on.
  • the area after the scanning window moves along the column direction is an area where the definition has not been obtained, so as to avoid repeatedly obtaining the definition of the same area.
  • Step S13150 Determine a second starting area according to the first reference area, and scan the initial image in the column direction through the scanning window to obtain the column scanning area and the acquisition area of each column in the column scanning area. Definition; the boundary of the column scanning area in the column direction coincides with the boundary of the initial image in the column direction; the column acquisition area is an area corresponding to the scanning window in the column scanning area.
  • the shape and size of the second starting area are defined by the scan window, that is, the shape and size of the two are the same.
  • scan the initial image along the column direction to obtain the definition of the area of the scanning window corresponding to different positions.
  • the scanning window can move towards the second starting area along the column direction.
  • the two sides of, simultaneously translate a specified length each time, and the specified length can be equal to the height of the scan window in the column direction.
  • the scan window can also move in the column direction in other ways.
  • the column scanning area includes a plurality of column acquisition areas corresponding to different positions of the scanning window.
  • the specific principles of the formation of the column scanning area and the column acquisition area and the acquisition of definition can refer to the principle of the row scanning action in step S13140, which will not be repeated here. Detailed.
  • a scan window of the same size and shape as in step S13140 may be used in step S13150, but not limited to this.
  • when scanning is performed along the column direction It is also possible to use a scanning window other than scanning in the row direction.
  • the number of the first reference area is one, and the second starting area is the first reference area.
  • the number of the first reference area is multiple, and the second starting area is: the center line of the two outermost first reference areas in the row direction corresponds to the midpoint of the center line of the first reference area. An area with the same size as the scanning window, and the center of the second starting area coincides with the midpoint.
  • the two outermost first reference areas are the two first reference areas furthest apart in the row direction, and the center lines of the outermost two first reference areas are the line connecting the centers of the two first reference areas.
  • Step S13160 Use a column acquisition area whose definition reaches a specified threshold in the column scanning area as a second reference area.
  • the definition can be compared with the specified threshold to determine whether the definition reaches the specified threshold, that is, whether there is a column collection area with a definition not less than the specified threshold.
  • the column acquisition area whose sharpness reaches the specified threshold is used as the second reference area and recorded to limit the range of the focus area in the column direction.
  • the boundary of the focus region in the column direction is an extension line of the outer boundaries of the two outermost second reference regions in the row direction.
  • the two outermost second reference areas are the two second reference areas farthest in the column direction, and the outer boundary of the outermost second reference area is the opposite of the two second reference areas in the column direction. boundary.
  • Step S13170 Determine the focus area according to the first reference area and the second reference area.
  • the boundary of the focus area can be determined through the first reference area and the second reference area.
  • the boundary of the focus area in the row direction is the extension line of the outer boundaries of the two outermost first reference areas along the column direction;
  • the second reference area is multiple One, the boundary of the focus area in the column direction is the outer boundary of the outermost two second reference areas extending in the row direction, and the area enclosed by the two extension lines may be the focus area.
  • the focus area can also be determined based on the outer boundaries of the two outermost first reference areas and the outer boundaries of the two outermost second reference areas through a preset algorithm or image processing method.
  • each column acquisition area in the column scanning area can also be sorted, and one or more column acquisition areas with the highest definition are used as the second reference area. Less than the total number of column collection areas.
  • Step S1320 If the target feature exists in the initial image, determine the focus area according to the proportion of the target feature in the initial image.
  • the focus area needs to be determined based on the size of the area where the target feature is located. For example, if the area occupied by the target feature is larger, the focus area can be determined based on the target feature area. Consider whether the sharpness of the target feature area reaches the specified threshold. If the area occupied by the target feature is too small, it means that it is not the main element of the initial image, so the target feature can be ignored, and the focus area is determined according to the area whose sharpness reaches the specified threshold.
  • the proportion of the target feature in the initial image is the total proportion of all target features in the initial image, that is, the sum of the proportions of each target feature in the initial image.
  • step S1320 includes step S13210-step S13240, wherein:
  • Step S13210 Compare the proportion of the target feature in the initial image with a threshold range.
  • the proportion of the target feature in the initial image is the ratio of the size of the area of the target feature to the total size of the initial image.
  • the proportion may be the ratio of the area of the target feature area to the total area of the initial image; or, the proportion may be the ratio of the number of pixels in the area of the target feature to the number of pixels in the initial image.
  • the specific value of the threshold range is not specifically limited here.
  • the proportion of the target feature in the initial image can be expressed as a percentage.
  • the minimum value of the threshold range can be 5% and the maximum value is 25%, that is, the threshold range is 5%-25%.
  • Step S13220 If the proportion of the target feature in the initial image is greater than the maximum value of the threshold range, the initial image is used as the focus area.
  • the proportion of the target feature in the initial image is greater than the maximum value of the threshold range, indicating that the target feature occupies more areas in the initial image. Therefore, the initial image can be directly used as the focus area, regardless of whether the definition reaches the specified threshold. Taking the target feature as a human face and the threshold range is 5%-25% as an example, if the proportion of the human face in the initial image is greater than 25%, it means that the initial image is a close-up image of a human face. In this case, the initial image can be directly used as the focus area .
  • Step S13230 If the proportion of the target feature in the initial image is within the threshold range, the area of the target feature is used as the focus area.
  • the target feature as a human face and the threshold range is 5%-25% as an example, if the proportion of the human face in the initial image is not less than 5% and not more than 25%, it means that the initial image is an ordinary person image. Therefore, the area of the target feature can be directly used as the focus area, instead of specifically determining the focus area, the boundary of the focus area is the boundary of the area of the target feature.
  • Step S13240 If the proportion of the target feature in the initial image is less than the minimum value of the threshold range, use an area in the initial image whose definition reaches a specified threshold as a focus area.
  • the target feature as a face and the threshold range is 5%-25% as an example
  • the proportion of the face in the initial image is less than 5%, it means that the subject of the initial image is not a person, or most of the face data is lost, and it is difficult to base
  • the human face determines the focus area. Therefore, the area whose definition reaches the specified threshold in the initial image can be used as the focus area, and the area whose definition reaches the specified threshold in the initial image is used as the focus area. It is explained in detail in, so I won’t repeat it here.
  • step S140 the initial image is cropped according to the cropping ratio and the focus area to obtain a target image, which is displayed on the display device.
  • the focus area can be used to determine the basis of trimming, and the trimming ratio can be used to determine the size of the trimming range, that is, the size of the trimming area.
  • step S140 which may include step S1410-step S1430, wherein:
  • Step S1410 Generate a plurality of clipping regions in the initial image according to the clipping ratio, and two opposite edges of each clipping region coincide with the edges of the initial image.
  • the cropping area can be regarded as a window conforming to the cropping ratio. For example, for a rectangular display device in portrait mode and the cropping ratio is 16:9, the cropping area is a window with an aspect ratio of 16:9. The size of each cropping area is the same.
  • the two opposite edges of the cropping area can be overlapped with the edge of the original image. The edges of the image overlap, as long as the cropping ratio can be satisfied, so that an image that meets the cropping ratio can be cropped on the basis of preserving the overlapped edges, and the maximum cropping can be achieved.
  • the initial image and the cropped area are both rectangular, the two opposite edges of the cropped area may coincide with the two opposite edges in the initial image, and the other edges and the overlapped edges conform to the crop ratio.
  • the overlap in this embodiment only refers to the collinear edges, and is not limited to the same length of the edges.
  • step S1420 the cropping area with the smallest distance from the center of the focus area is taken as the target cropping area.
  • the minimum value of the center distance may be zero, that is, the center of the cropping area may coincide with the center of the focus area.
  • Step S1430 crop the initial image along the edge of the target crop area.
  • the target image is displayed on the display device, if the crop ratio is the crop ratio determined according to the display mode of the display device , The size of the target image can be matched with the display device; at the same time, because the target image is determined based on the focus area, the target features in the initial image can be retained to the greatest extent, the loss caused by clipping can be reduced, and the display device's performance can be guaranteed. display effect.
  • the initial image can also be tailored through user-defined operations.
  • the image processing method further includes step S150-step S170, wherein:
  • Step S150 Acquire and display the initial image and the target image through a tailoring terminal.
  • the tailoring terminal can be a mobile phone, a tablet computer or other electronic equipment that can realize human-computer interaction, and it is three independent devices with the camera terminal and the display device.
  • the cutting terminal can communicate with the display device and the camera terminal at the same time, and can acquire and display the initial image, and if there is a target image, it can also acquire and display the target image.
  • Step S160 Receive the cropping area parameter generated by the cropping terminal in response to the user's operation.
  • the trimming area parameters include at least the location and trimming ratio of the trimming area, and the trimming ratio is a user-defined trimming ratio, such as 4:3, 16:9, 7:5, etc.
  • a custom trimming area parameter can be generated and sent to the display device.
  • Step S170 Cropping the initial image according to the cropping area parameter.
  • the trimming action can be performed directly according to the trimming area parameter, and the initial image is trimmed according to the location and trimming ratio of the trimming area included in the trimming area parameter to obtain the target image and display it on the display device.
  • the user can directly perform the custom trimming operation, or first confirm the execution of the smart trimming operation, that is, perform step S110-step S140 to obtain the target image, if The target image does not meet the requirements of the user, or the target image cannot be output, and the above-mentioned custom clipping operation is executed through the clipping terminal to regenerate the target image.
  • Fig. 7 shows the working project of an embodiment of the image processing method of the present disclosure, which includes steps S200-S290 and steps S300-step S370, the specific principles of which have been described in detail above.
  • the display device 100 may include an image processing device 101.
  • the image processing device 101 includes an image acquisition unit 1, a parameter acquisition unit 2, an identification unit 3, and a processing unit 4. in:
  • the image acquisition unit 1 is used to acquire an initial image.
  • the parameter acquisition unit 2 is used to acquire the tailoring ratio and the target feature.
  • the recognition unit 3 is used for recognizing the target feature in the initial image, and determining the focus area according to the recognition result.
  • the processing unit 4 is configured to cut the initial image according to the cut ratio and the focus area to obtain a target image, and display it on the display device.
  • the display device 100 of the embodiment of the present disclosure can determine the focus area in the initial image based on the recognition result of the target feature, and then crop the initial image according to the focus area and the cropping ratio, so as to obtain a target image that better matches the display device. Improve the display effect.
  • the recognition unit 3 includes an image recognition module 31 and an analysis module 32, wherein:
  • the image recognition module 31 is used to recognize target features in the initial image.
  • the analysis module 32 is configured to, when the target feature does not exist in the initial image, use an area in the initial image whose definition reaches a specified threshold as the focus area; and when the target feature exists in the initial image, The focus area is determined according to the proportion of the target feature in the initial image.
  • the analysis module 32 includes a comparison circuit 321 and an execution circuit 322, wherein:
  • the comparison circuit 321 is configured to compare the proportion of the target feature in the initial image with a threshold range
  • the execution circuit 322 is configured to use the initial image as the focus area when the proportion of the target feature in the initial image is greater than the maximum value of the threshold range; When the proportion is within the threshold range, the target feature is used as the focus area; and when the proportion of the target feature in the initial image is less than the minimum value of the threshold range, the initial image is The area where the sharpness reaches the specified threshold is regarded as the focus area.
  • the image processing device 101 in the embodiment of the present disclosure may be the image processing device 114 in FIG. 2.
  • modules, units, or circuits of the device for action execution are mentioned in the above detailed description, this division is not mandatory.
  • the features and functions of two or more modules, units or circuits described above may be embodied in one module, unit or circuit.
  • the features and functions of a module, unit or circuit described above can be further divided into multiple modules, units or circuits to be embodied.
  • the display system may include a display device 100 and a camera terminal 200, wherein:
  • the display device 100 includes the image processing device 101 of the image processing method of any of the above embodiments. Therefore, the image processing device 101 may be the image processing device 101 of any of the above embodiments. The specific details of the image processing method and the image processing device 101 are here. No longer.
  • the camera terminal 200 can be used to take an initial image, and it can be a camera, a mobile phone, a tablet computer, etc., as long as the image can be taken and transmitted.
  • the content and form of the initial image are not specifically limited here.
  • the display system may further include a tailoring terminal 300 and a remote terminal 400.
  • the functions and specific details of the tailoring terminal 300 and the remote terminal 400 have been described in the above image processing method implementation. It is explained in, so I won’t repeat it here.
  • the embodiments of the present disclosure also provide a readable storage medium on which a computer program is stored, and when the computer program is executed, the image processing method of any of the foregoing embodiments is implemented.
  • the various aspects of the present invention can also be implemented in the form of a program product, which includes program code, and when the program product runs on a terminal device, the program code is used to make the terminal device.
  • the readable storage medium 500 can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
  • the program product can use any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
  • the program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
  • the program code used to perform the operations of the present invention can be written in any combination of one or more programming languages.
  • the programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural styles. Programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on.
  • the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (for example, using Internet service providers). Business to connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet service providers for example, using Internet service providers.
  • the example embodiments described here can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) execute the method according to the embodiments of the present disclosure.
  • a non-volatile storage medium which can be a CD-ROM, U disk, mobile hard disk, etc.
  • Including several instructions to make a computing device which may be a personal computer, a server, a mobile terminal, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

A readable storage medium, a display device and an image processing method therefor, relating to the technical field of display. The image processing method comprises: obtaining an initial image (S110); obtaining a clipping proportion and a target feature (S120); identifying the target feature in the initial image, and determining a focus area according to the identification result (S130); and clipping the initial image according to the clipping proportion and the focus area to obtain a target image, and displaying the target image on a display device (S140).

Description

可读存储介质、显示装置及其图像处理方法Readable storage medium, display device and image processing method thereof
交叉引用cross reference
本公开要求于2020年4月29日提交的申请号为202010354667.7名称为“可读存储介质、显示装置及其图像处理方法”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。This disclosure claims the priority of a Chinese patent application entitled "Readable Storage Medium, Display Device and Image Processing Method" filed on April 29, 2020 with an application number of 202010354667.7. The entire content of the Chinese patent application is fully incorporated by reference. Incorporated into this article.
技术领域Technical field
本公开涉及显示技术领域,具体而言,涉及一种可读存储介质、显示装置、显示装置的图像处理方法。The present disclosure relates to the field of display technology, and in particular, to a readable storage medium, a display device, and an image processing method of the display device.
背景技术Background technique
为了展示存储于手机、相机和电脑等终端中的图像,经常需要将图像通过画屏、电子画框等显示装置显示出来。但是,从终端获取的图像的比例与显示装置的比例经常存在不匹配的情况,影响显示效果。In order to display images stored in terminals such as mobile phones, cameras, and computers, it is often necessary to display the images through display devices such as picture screens and electronic picture frames. However, the ratio of the image obtained from the terminal and the ratio of the display device often do not match, which affects the display effect.
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above background section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art.
公开内容Public content
本公开的目的在于提供一种可读存储介质、显示装置及显示装置的图像处理方法。The purpose of the present disclosure is to provide a readable storage medium, a display device, and an image processing method of the display device.
根据本公开的一个方面,提供一种显示装置的图像处理方法,包括:According to an aspect of the present disclosure, there is provided an image processing method of a display device, including:
获取初始图像;Get the initial image;
获取剪裁比例和目标特征;Obtain tailoring ratio and target characteristics;
在所述初始图像中识别目标特征,并根据识别结果确定焦点区域;Identifying target features in the initial image, and determining the focus area according to the recognition result;
根据所述剪裁比例和所述焦点区域对所述初始图像进行剪裁,得到目标图像,并在所述显示装置上显示。The initial image is cropped according to the cropping ratio and the focus area to obtain a target image, which is displayed on the display device.
在本公开的一种示例性实施例中,根据识别结果确定焦点区域,包括:In an exemplary embodiment of the present disclosure, determining the focus area according to the recognition result includes:
若所述初始图像中不存在所述目标特征,则以所述初始图像中清晰度达到指定阈值的区域作为焦点区域;If the target feature does not exist in the initial image, use an area in the initial image whose definition reaches a specified threshold as the focus area;
若所述初始图像中存在所述目标特征,则根据所述目标特征在所述初始图像中的占比确定焦点区域。If the target feature exists in the initial image, the focus area is determined according to the proportion of the target feature in the initial image.
在本公开的一种示例性实施例中,根据所述目标特征在所述初始图像中的占比确定焦点区域,包括:In an exemplary embodiment of the present disclosure, determining the focus area according to the proportion of the target feature in the initial image includes:
将所述目标特征在所述初始图像中的占比与一阈值范围比较;Comparing the proportion of the target feature in the initial image with a threshold range;
若所述目标特征在所述初始图像中的占比大于所述阈值范围的最大值,则以所述初始图像作为焦点区域;If the proportion of the target feature in the initial image is greater than the maximum value of the threshold range, the initial image is used as the focus area;
若所述目标特征在所述初始图像中的占比位于所述阈值范围内,则以所述目标特征的区域作为焦点区域;If the proportion of the target feature in the initial image is within the threshold range, the area of the target feature is used as the focus area;
若所述目标特征在所述初始图像中的占比小于所述阈值范围的最小值,则以所述初始图像中清晰度达到指定阈值的区域作为焦点区域。If the proportion of the target feature in the initial image is less than the minimum value of the threshold range, then the area in the initial image whose definition reaches the specified threshold is taken as the focus area.
在本公开的一种示例性实施例中,以所述初始图像中清晰度达到指定阈值的区域作为焦点区域,包括:In an exemplary embodiment of the present disclosure, using an area in the initial image whose sharpness reaches a specified threshold as the focus area includes:
以所述初始图像中未被获取过清晰度的一区域为第一起始区域,通过一扫描窗口执行行扫描动作,所述行扫描动作包括:从所述第一起始区域开始,沿行方向对所述初始图像进行扫描,得到行扫描区域和所述行扫描区域中每个行采集区的清晰度;所述行扫描区域在行方向上的边界与所述初始图像在行方向上的边界重合;所述行采集区为所述行扫描区域中对应所述扫描窗口的区域;Taking an area in the initial image where the definition has not been acquired as the first starting area, a line scanning action is performed through a scanning window, and the line scanning action includes: starting from the first starting area, aligning in a row direction The initial image is scanned to obtain the definition of a line scanning area and each line acquisition area in the line scanning area; the boundary of the line scanning area in the line direction coincides with the boundary of the initial image in the line direction; The line acquisition area is an area corresponding to the scan window in the line scan area;
判断所述行扫描区域中各所述行采集区的清晰度是否达到指定阈值;Judging whether the sharpness of each of the line acquisition areas in the line scanning area reaches a specified threshold;
若所述行扫描区域中存在清晰度达到所述指定阈值的行采集区,则根据清晰度达到所述指定阈值的行采集区确定第一参考区域;If there is a line acquisition area whose definition reaches the specified threshold in the line scanning area, determining the first reference area according to the line acquisition area whose definition reaches the specified threshold;
若所述行扫描区域中各所述行采集区的清晰度未达到所述指定阈值,则从未获取过清晰度的区域中重新选择第一起始区域,并执行所述行扫描动作,直至确定出所述第一参考区域;重新选择后的第一起始区域与重新选择前的第一起始区域在列方向上的间距为所述扫描窗口在列方向上的高度的整数倍;If the definition of each of the line acquisition areas in the line scanning area does not reach the specified threshold, then reselect the first starting area from the areas where the definition has never been obtained, and perform the line scanning action until it is determined Out of the first reference area; the distance in the column direction between the reselected first starting area and the first starting area before reselecting is an integer multiple of the height of the scan window in the column direction;
根据所述第一参考区域确定第二起始区域,通过所述扫描窗口沿列方向对所述初始图像进行扫描,得到列扫描区域和所述列扫描区域中每个列采集区的清晰度;所述列扫描区域在列方向上的边界与所述初始图像在列方向上的边界重合;所述列采集区为所述列扫描区域中对应所述扫描窗口的区域;Determining a second starting area according to the first reference area, and scanning the initial image in a column direction through the scanning window to obtain a column scanning area and the definition of each column acquisition area in the column scanning area; The boundary of the column scanning area in the column direction coincides with the boundary of the initial image in the column direction; the column acquisition area is an area in the column scanning area corresponding to the scanning window;
将所述列扫描区域中清晰度达到指定阈值的列采集区作为第二参考区域;Taking a column acquisition area whose definition reaches a specified threshold in the column scanning area as a second reference area;
根据所述第一参考区域和所述第二参考区域确定所述焦点区域。The focus area is determined according to the first reference area and the second reference area.
在本公开的一种示例性实施例中,若所述第一参考区域为多个,所述焦点区域在行方向上的边界为行方向上最外侧的两个所述第一参考区域的外边界;In an exemplary embodiment of the present disclosure, if there are multiple first reference regions, the boundary of the focus region in the row direction is the outer boundary of the two outermost first reference regions in the row direction;
若所述第二参考区域为多个,所述焦点区域在列方向上的边界为列方向上最外侧的两个所述第二参考区域的外边界。If there are multiple second reference areas, the boundary of the focus area in the column direction is the outer boundary of the two outermost second reference areas in the column direction.
在本公开的一种示例性实施例中,若所述第一参考区域的数量为一个,所述第二起始区域为所述第一参考区域;In an exemplary embodiment of the present disclosure, if the number of the first reference area is one, the second starting area is the first reference area;
若所述第一参考区域的数量为多个,所述第二起始区域的中心与在行方向上的最外侧的两个所述第一参考区域的中心线的中点重合。If the number of the first reference regions is multiple, the center of the second starting region coincides with the midpoint of the center lines of the two outermost first reference regions in the row direction.
在本公开的一种示例性实施例中,根据所述剪裁比例和所述焦点区域对所述初始图像进行剪裁,包括:In an exemplary embodiment of the present disclosure, clipping the initial image according to the clipping ratio and the focus area includes:
根据所述剪裁比例在所述初始图像中生成多个剪裁区域,每个所述剪裁区域的两个相对的边缘与所述初始图像的边缘重合;Generating a plurality of clipping regions in the initial image according to the clipping ratio, and two opposite edges of each clipping region coincide with the edges of the initial image;
以与所述焦点区域的中心距最小的剪裁区域,作为目标剪裁区域;Take the clipping area with the smallest distance from the center of the focus area as the target clipping area;
沿所述目标剪裁区域的边缘对所述初始图像进行剪裁。The initial image is cropped along the edge of the target cropping area.
在本公开的一种示例性实施例中,所述图像处理方法还包括:In an exemplary embodiment of the present disclosure, the image processing method further includes:
通过一剪裁终端获取并显示所述初始图像和所述目标图像;Acquiring and displaying the initial image and the target image through a tailoring terminal;
接收所述剪裁终端响应用户的操作而生成的剪裁区域参数;Receiving a trimming area parameter generated by the trimming terminal in response to a user's operation;
根据所述剪裁区域参数对所述初始图像进行剪裁。The initial image is cropped according to the cropping area parameter.
在本公开的一种示例性实施例中,所述目标特征包括人脸。In an exemplary embodiment of the present disclosure, the target feature includes a human face.
根据本公开的一个方面,提供一种显示装置,包括图像处理装置,所述图像处理装置包括:According to an aspect of the present disclosure, there is provided a display device including an image processing device, the image processing device including:
图像获取单元,用于获取初始图像;The image acquisition unit is used to acquire the initial image;
参数获取单元,用于获取剪裁比例和目标特征;The parameter acquisition unit is used to acquire the tailoring ratio and target characteristics;
识别单元,用于在所述初始图像中识别目标特征,并根据识别结果确定焦点区域;A recognition unit, configured to recognize the target feature in the initial image, and determine the focus area according to the recognition result;
处理单元,用于根据所述剪裁比例和所述焦点区域对所述初始图像进行剪裁,得到并显示目标图像。The processing unit is configured to trim the initial image according to the trimming ratio and the focus area to obtain and display a target image.
在本公开的一种示例性实施例中,所述识别单元包括:In an exemplary embodiment of the present disclosure, the identification unit includes:
图像识别模块,用于在所述初始图像中识别目标特征;An image recognition module for recognizing target features in the initial image;
分析模块,用于在所述初始图像中不存在所述目标特征时,以所述初始图像中清晰度达到指定阈值的区域作为焦点区域;以及在所述初始图像中存在所述目标特征时,根据所述目标特征在所述初始图像中的占比确定焦点区域。The analysis module is configured to, when the target feature does not exist in the initial image, use an area in the initial image whose definition reaches a specified threshold as the focus area; and when the target feature exists in the initial image, The focus area is determined according to the proportion of the target feature in the initial image.
在本公开的一种示例性实施例中,所述分析模块包括:In an exemplary embodiment of the present disclosure, the analysis module includes:
比较电路,用于将所述目标特征在所述初始图像中的占比与一阈值范围比较;A comparison circuit for comparing the proportion of the target feature in the initial image with a threshold range;
执行电路,用于在所述目标特征在所述初始图像中的占比大于所述阈值范围的最大值时,以所述初始图像作为焦点区域;在所述目标特征在所述初始图像中的占比位于所述阈值范围内时,以所述目标特征的区域作为焦点区域;以及在所述目标特征在所述初始图像中的占比小于所述阈值范围的最小值时,以所述初始图像中清晰度达到指定阈值的区域作为焦点区域。The execution circuit is configured to use the initial image as the focus area when the proportion of the target feature in the initial image is greater than the maximum value of the threshold range; when the target feature is in the initial image When the proportion is within the threshold range, the area of the target feature is used as the focus area; and when the proportion of the target feature in the initial image is less than the minimum value of the threshold range, the initial The area in the image whose sharpness reaches the specified threshold is regarded as the focus area.
根据本公开的一个方面,提供一种可读存储介质,其上存储有计算机程序,所述计算机程序被执行时实现上述任意一项所述的图像处理方法。According to one aspect of the present disclosure, there is provided a readable storage medium on which a computer program is stored, and the computer program implements the image processing method described in any one of the above when the computer program is executed.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The drawings herein are incorporated into the specification and constitute a part of the specification, show embodiments consistent with the disclosure, and are used together with the specification to explain the principle of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为本公开图像处理方法一实施方式的流程图。FIG. 1 is a flowchart of an embodiment of the image processing method of the present disclosure.
图2为本公开图像处理方法一实施方式中显示装置和摄影终端的示意图。2 is a schematic diagram of a display device and a photographing terminal in an embodiment of the image processing method of the present disclosure.
图3为本公开图像处理方法一实施方式中步骤S130的流程图。FIG. 3 is a flowchart of step S130 in an embodiment of the image processing method of the present disclosure.
图4为本公开图像处理方法一实施方式中步骤S1310的流程图。FIG. 4 is a flowchart of step S1310 in an embodiment of the image processing method of the present disclosure.
图5为本公开图像处理方法一实施方式中步骤S1320的流程图。FIG. 5 is a flowchart of step S1320 in an embodiment of the image processing method of the present disclosure.
图6为本公开图像处理方法一实施方式中步骤S140的流程图。FIG. 6 is a flowchart of step S140 in an embodiment of the image processing method of the present disclosure.
图7为本公开图像处理方法一实施方式的工作原理示意图。FIG. 7 is a schematic diagram of the working principle of an embodiment of the image processing method of the present disclosure.
图8为本公开显示装置一实施方式的示意图。FIG. 8 is a schematic diagram of an embodiment of the display device of the present disclosure.
图9为本公开显示装置一实施方式中识别单元的示意图。FIG. 9 is a schematic diagram of an identification unit in an embodiment of the display device of the present disclosure.
图10为本公开显示装置一实施方式中分析模块的示意图。FIG. 10 is a schematic diagram of an analysis module in an embodiment of the display device of the present disclosure.
图11为本公开显示系统一实施方式的示意图。FIG. 11 is a schematic diagram of an embodiment of the display system of the present disclosure.
图12为本公开可读存储介质一实施方式的示意图。FIG. 12 is a schematic diagram of an embodiment of a readable storage medium of the present disclosure.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的实施方式;相反,提供这些实施方式使得本公开将全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。图中相同的附图标记表示相同或类似的结构,因而将省略它们的详细描述。此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms, and should not be construed as being limited to the embodiments set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be comprehensive and complete, and fully convey the concept of the example embodiments To those skilled in the art. The same reference numerals in the figures indicate the same or similar structures, and thus their detailed descriptions will be omitted. In addition, the drawings are only schematic illustrations of the present disclosure, and are not necessarily drawn to scale.
用语“一个”、“一”、“该”、“所述”和“至少一个”用以表示存在一个或多个要素/组成部分/等;用语“包括”和“具有”用以表示开放式的包括在内的意思并且是指除了列出的要素/组成部分/等之外还可存在另外的要素/组成部分/等;用语“第一”、“第二”仅作为标记使用,不是对其对象的数量限制。The terms "a", "a", "the", "said" and "at least one" are used to indicate the presence of one or more elements/components/etc.; the terms "including" and "have" are used to indicate open-ended The inclusive means and means that in addition to the listed elements/components/etc., there may be other elements/components/etc.; the terms "first" and "second" are only used as marks, not to The number of its objects is limited.
本公开实施方式提供了一种显示装置的图像处理方法,该显示装置可以是画屏、电视、电脑、手机等,只要能获取并显示图像即可,在此不做特殊限定。The embodiments of the present disclosure provide an image processing method for a display device. The display device may be a screen, a TV, a computer, a mobile phone, etc., as long as the image can be acquired and displayed, and there is no special limitation here.
如图1所示,本公开实施方式的图像处理方法包括步骤S110-步骤S140,其中:As shown in FIG. 1, the image processing method of the embodiment of the present disclosure includes step S110-step S140, wherein:
步骤S110、获取初始图像;Step S110: Obtain an initial image;
步骤S120、获取剪裁比例和目标特征;Step S120: Obtain a tailoring ratio and target characteristics;
步骤S130、在所述初始图像中识别目标特征,并根据识别结果确定焦点区域;Step S130: Identify the target feature in the initial image, and determine the focus area according to the recognition result;
步骤S140、根据所述剪裁比例和所述焦点区域对所述初始图像进行剪裁,得到目标图像,并在所述显示装置上显示。Step S140: Clip the initial image according to the clipping ratio and the focus area to obtain a target image, and display it on the display device.
本公开实施方式的图像处理方法,可通过对目标特征的识别结果,在初始图像中确定焦点区域,再根据焦点区域和剪裁比例对初始图像进行剪裁,以便得到更加匹配显示装置的目标图像,从而改善显示效果。The image processing method of the embodiment of the present disclosure can determine the focus area in the initial image based on the recognition result of the target feature, and then crop the initial image according to the focus area and the cropping ratio, so as to obtain a target image that matches the display device more. Improve the display effect.
下面对本公开实施方式图像处理方法进行详细说明:The following describes in detail the image processing method of the embodiment of the present disclosure:
如图1所示,在步骤S110中,获取初始图像。As shown in Fig. 1, in step S110, an initial image is acquired.
初始图像可来自一终端设备,该终端设备可以是摄影终端或其它终端,该摄影终端可以是相机、手机、平板电脑等可以拍摄图像的设备。The initial image can come from a terminal device, which can be a camera terminal or other terminal, and the camera terminal can be a device that can take images such as a camera, a mobile phone, or a tablet computer.
在本公开的一些实施方式中,终端设备为摄影终端,其可通过无线通信的方式与显示装置通信,以向显示装置传输其拍摄的图像。该无线通信方式可以是wifi、蓝牙等,具体类型在此不做特殊限定,当然,也可以通过物理接口配合有线连接的方式传输图像。In some embodiments of the present disclosure, the terminal device is a camera terminal, which can communicate with the display device through wireless communication to transmit the image taken by the terminal device to the display device. The wireless communication method can be wifi, Bluetooth, etc. The specific type is not specifically limited here. Of course, the image can also be transmitted through a physical interface with a wired connection.
初始图像为摄影终端拍摄的任意图像,其具体参数和尺寸在此不做特殊限定,例如,初始图像可以是人物合影、风景照等。获取初始图像指获取初始图像的图像数据。The initial image is any image taken by the camera terminal, and its specific parameters and size are not specifically limited here. For example, the initial image may be a group photo of a person, a landscape photo, etc. Obtaining the initial image refers to acquiring the image data of the initial image.
如图2所示,在本公开的一些实施方式中,摄影终端121可为单反相机,其具有wifi传输模块122。显示装置111可为画屏,该显示装置111可具有能与wifi传输模块122匹配通信的wifi信号处理模块112和系统芯片113(SOC,System-on-a-Chip),还可包括图像处理装置114和显示模块115。显示装置111可通过wifi传输模块122将初始图像打包,并加载成2.4g、5g或其它频段的wifi信号发送显示装置111的wifi信号处理模块112,wifi信号处理模块112对wifi信号进行处理后,传输给系统芯片113,以使系统芯片113生成初始图像的图像数据,传输给图像处理装置114执行本公开的图像处理方法,进行图像处理,再通过显示模块115显示目标图像。As shown in FIG. 2, in some embodiments of the present disclosure, the photographing terminal 121 may be a single-lens reflex camera, which has a wifi transmission module 122. The display device 111 may be a picture screen, and the display device 111 may have a wifi signal processing module 112 and a system-on-a-chip (SOC, System-on-a-Chip) that can match and communicate with the wifi transmission module 122, and may also include an image processing device 114 And display module 115. The display device 111 can package the initial image through the wifi transmission module 122 and load it into a wifi signal of 2.4g, 5g or other frequency bands and send it to the wifi signal processing module 112 of the display device 111. After the wifi signal processing module 112 processes the wifi signal, The image data is transmitted to the system chip 113 so that the system chip 113 generates the image data of the initial image, which is transmitted to the image processing device 114 to execute the image processing method of the present disclosure, perform image processing, and then display the target image through the display module 115.
如图1所示,在步骤S120中,获取剪裁比例和目标特征。As shown in Fig. 1, in step S120, the cropping ratio and the target feature are acquired.
剪裁比例和目标特征均可由用户通过在一剪裁终端上的操作,预存于一远程终端,该远程终端可以是远程的服务器。剪裁比例可以是用户自定义的比例,也可以是根据显示装置的显示模式确定的比例,且根据显示模式确定的剪裁比例可作为默认的剪裁比例,在用户未设置自定义的剪裁比例时,直接采用默认的剪裁比例。Both the tailoring ratio and the target feature can be pre-stored in a remote terminal by the user through an operation on a tailoring terminal, and the remote terminal may be a remote server. The cropping ratio can be a user-defined ratio, or a ratio determined according to the display mode of the display device, and the cropping ratio determined according to the display mode can be used as the default cropping ratio. When the user does not set a custom cropping ratio, directly Use the default crop ratio.
显示模式具体视显示装置的类型和放置方式而定,例如:显示装置为画屏,其显示模式包括横屏模式和竖屏模式,对于横屏模式,其裁剪比例可为9:16,对于竖屏模式,则裁剪比例可为16:9。该剪裁比例可作为对初始图像进行剪裁时的剪裁区域的比例。The display mode depends on the type and placement of the display device. For example, the display device is a drawing screen, and its display modes include landscape mode and portrait mode. For landscape mode, the cropping ratio can be 9:16, for portrait mode. Mode, the cropping ratio can be 16:9. The cropping ratio can be used as the cropping area ratio when cropping the initial image.
针对根据显示模式确定的剪裁比例,在本公开的一些实施方式中,显示模式可 预先设定,同时,可建立显示模式与剪裁比例的映射关系,使得只要设定显示模式,即可调用对应的剪裁比例。或者,在本公开的另一些实施方式中,也可通过位置感应器等装置对显示装置的放置方式进行感应,并根据预先建立的放置方式、显示模式和剪裁比例的映射,从而可实时确定剪裁比列。Regarding the cropping ratio determined according to the display mode, in some embodiments of the present disclosure, the display mode can be preset, and at the same time, the mapping relationship between the display mode and the cropping ratio can be established, so that as long as the display mode is set, the corresponding Cropping ratio. Alternatively, in some other embodiments of the present disclosure, the placement mode of the display device can also be sensed by a device such as a position sensor, and based on a pre-established mapping of placement mode, display mode, and clipping ratio, the clipping can be determined in real time. ratio.
目标特征可作为确定初始图像焦点区域的参考标准,以便在剪裁后,最大程度的保留目标特征。其可以是人脸、特定类型的动物、特定类型的植物、建筑物等,在此不做特殊限定。用户可在剪裁终端上进行选择,并将目标特征的信息存储于远程终端,以供调用,例如,用户可在剪裁终端上选择人脸这一目标特征,上传至远程终端。The target feature can be used as a reference standard for determining the focus area of the initial image, so that the target feature can be retained to the greatest extent after cropping. It can be a human face, a specific type of animal, a specific type of plant, a building, etc., which are not specifically limited here. The user can select on the tailoring terminal and store the target feature information in the remote terminal for recall. For example, the user can select the target feature of the face on the tailoring terminal and upload it to the remote terminal.
如图1所示,在步骤S130中,在所述初始图像中识别目标特征,并根据识别结果确定焦点区域。As shown in FIG. 1, in step S130, the target feature is recognized in the initial image, and the focus area is determined according to the recognition result.
根据从远程终端获取到的目标特征,可在初始图像中识别目标特征,例如,若远程终端存储的目标特征为人脸,则在获取到目标特征后,在初始图像中识别人脸。According to the target feature acquired from the remote terminal, the target feature can be identified in the initial image. For example, if the target feature stored by the remote terminal is a human face, after acquiring the target feature, the human face can be identified in the initial image.
在本公开的一些实施方式中,人脸并非特定用户的面部特征,而仅指识别模式,识别出任何人的面部区域,均属于人脸识别。人脸识别的具体过程在此不做特殊限定,只要能对初始图像进行人脸检测即可。In some embodiments of the present disclosure, the human face is not the facial feature of a specific user, but only refers to the recognition mode. Recognizing the facial area of any person belongs to face recognition. The specific process of face recognition is not specifically limited here, as long as it can perform face detection on the initial image.
在本公开的另一些实施方式中,人脸可以是特定用户的面部特征,例如用户“张三”的面部特征,只有在初始图像中识别出“张三”的面部特征才能判定初始图像中存在目标特征。对特定用户进行人脸识别的具体技术细节在此不做特殊限定,只要能实现该功能即可。用户可通过在剪裁终端上进行操作,来设置目标特征的具体内容。In other embodiments of the present disclosure, the face may be a facial feature of a specific user, for example, the facial feature of the user "Zhang San". Only when the facial feature of "Zhang San" is recognized in the initial image can it be determined that there is a facial feature in the initial image. Target characteristics. The specific technical details of face recognition for a specific user are not specifically limited here, as long as the function can be realized. The user can set the specific content of the target feature by operating on the tailoring terminal.
初始图像中可能存在目标特征,也可能不存在目标特征,因此,识别识别的结果并不必然包括目标特征。对于存在目标特征的初始图像,可以目标特征作为参考标准,而对于没有目标特征的初始图像,无法通过目标特征作为参考标准,可通过其它方式确定需要保留的区域。The target feature may or may not exist in the initial image. Therefore, the recognition result does not necessarily include the target feature. For the initial image with the target feature, the target feature can be used as the reference standard, while for the initial image without the target feature, the target feature cannot be used as the reference standard, and the area that needs to be retained can be determined by other methods.
需要说明的是,判定初始图像中不存在目标特征,包括:实际上不存在任何关于目标特征的图像数据,以及,存在目标特征的图像数据,但数据量过小,例如小于一指定值,从而可视为不存在目标特征。It should be noted that determining that the target feature does not exist in the initial image includes: actually there is no image data about the target feature, and there is image data of the target feature, but the amount of data is too small, for example, less than a specified value, so It can be considered that there is no target feature.
如图3所示,在本公开的一些实施方式中,根据识别结果确定焦点区域,包括步骤S1310和步骤S1320,其中:As shown in FIG. 3, in some embodiments of the present disclosure, determining the focus area according to the recognition result includes step S1310 and step S1320, where:
步骤S1310、若所述初始图像中不存在所述目标特征,则以所述初始图像中清晰度达到指定阈值的区域作为焦点区域。Step S1310: If the target feature does not exist in the initial image, use an area in the initial image whose definition reaches a specified threshold as a focus area.
清晰度可以用方差函数、灰度方差函数、灰度方差乘积函数、Brenner梯度函数或其它函数来表征,具体算法在此不做特殊限定,清晰度越高,初始图像越清晰, 清晰度越低,初始图像越模糊。Clarity can be characterized by variance function, gray variance function, gray variance product function, Brenner gradient function or other functions. The specific algorithm is not specifically limited here. The higher the resolution, the clearer the initial image and the lower the resolution. , The more blurry the initial image.
在本公开的一些实施方式中,可采用一扫描窗口从行方向和列方向上对初始图像进行扫描,获取扫描窗口对应的区域的清晰度,其中,确定出清晰度达到指定阈值的区域作为参考区域,该参考区域可视为初始图像中较为重要的区域,应以该参考区域为基础进行剪裁。例如,可先沿行方向确定清晰度达到指定阈值的区域,再基于行方向上的清晰度达到指定阈值的区域沿列方向确定清晰度达到指定阈值区域;通过行方向和列方向上清晰度达到指定阈值的区域,可构建焦点区域。In some embodiments of the present disclosure, a scanning window can be used to scan the initial image from the row direction and the column direction to obtain the definition of the region corresponding to the scanning window, where the region whose definition reaches the specified threshold is determined as a reference Area, the reference area can be regarded as a more important area in the initial image, and should be cropped based on the reference area. For example, you can first determine the area where the sharpness reaches the specified threshold along the row direction, and then determine the area where the sharpness reaches the specified threshold along the column direction based on the area where the sharpness in the row direction reaches the specified threshold; through the row and column directions, the sharpness reaches the specified threshold The threshold area can be used to construct the focus area.
需要说明的是,行方向和列方向仅指相互交叉的两个不同方向。本领域技术人员可以知晓的是,随着显示装置位置的变化,行方向和列方向的实际朝向也可发生变化。It should be noted that the row direction and the column direction only refer to two different directions that cross each other. Those skilled in the art can know that as the position of the display device changes, the actual orientation of the row direction and the column direction may also change.
具体而言:如图4所示,以所述初始图像中清晰度达到指定阈值的区域作为焦点区域,即步骤S1310,可包括步骤S13110-步骤S13170,其中:Specifically: as shown in Fig. 4, the area in the initial image whose sharpness reaches the specified threshold is taken as the focus area, that is, step S1310, which may include step S13110-step S13170, in which:
步骤S13110、以所述初始图像中未被获取过清晰度的一区域为第一起始区域,通过一扫描窗口执行行扫描动作,所述行扫描动作包括:从所述第一起始区域开始,沿行方向对所述初始图像进行扫描,得到行扫描区域和所述行扫描区域中每个行采集区的清晰度;所述行扫描区域在行方向上的边界与所述初始图像在行方向上的边界重合;所述行采集区为所述行扫描区域中对应所述扫描窗口的区域。Step S13110, taking an area in the initial image where the definition has not been acquired as the first starting area, and performing a line scanning action through a scanning window. The line scanning action includes: starting from the first starting area and moving along Scan the initial image in the row direction to obtain the definition of the row scan area and each row acquisition area in the row scan area; the boundary of the row scan area in the row direction and the boundary of the initial image in the row direction Coincidence; the line acquisition area is an area corresponding to the scan window in the line scan area.
扫描窗口用于获取其对应的区域的清晰度,第一起始区域形状和尺寸与扫描窗口的相同,具体视扫描窗口而定。第一起始区域可以位于初始图像在列方向上的中间位置,且位于行方向上的边界位置,当然,也可以是其它位置。The scan window is used to obtain the definition of its corresponding area, and the shape and size of the first starting area are the same as those of the scan window, depending on the scan window. The first starting area may be located at the middle position of the initial image in the column direction and at the boundary position in the row direction, of course, it may also be other positions.
在执行该行扫描动作时,扫描窗口可沿行方向每次平移一个指定长度,该指定长度可等于扫描窗口在行方向上的宽度。当然,扫描窗口也可以其他方式沿行方向运动。When performing the row scanning action, the scanning window can be translated along the row direction by a specified length at a time, and the specified length can be equal to the width of the scanning window in the row direction. Of course, the scan window can also move in the row direction in other ways.
在执行一次行扫描动作后,扫描窗口在行方向上扫描过的区域即为一个行扫描区域。由于行扫描区域在行方向上的边界与初始图像在行方向上的边界重合,可避免在行方向上存在未扫描的区域。由于行扫描区域由扫描窗口移动而形成,因而,行扫描区域具有对应处于各个位置时的扫描窗口的多个行采集区,每个行采集区即为获取过清晰度的区域。扫描窗口每沿行方向移动一次,则行采集区同步增加一个,并获取到行采集区的清晰度。After performing a line scan action, the area scanned by the scan window in the line direction is a line scan area. Since the boundary of the line scan area in the line direction coincides with the boundary of the original image in the line direction, it is possible to avoid unscanned areas in the line direction. Since the line scanning area is formed by the movement of the scanning window, the line scanning area has a plurality of line acquisition areas corresponding to the scanning windows at various positions, and each line acquisition area is an area where the definition has been acquired. Each time the scanning window moves along the row direction, the row acquisition area is synchronously increased by one, and the definition of the row acquisition area is obtained.
步骤S13120、判断所述行扫描区域中各所述行采集区的清晰度是否达到指定阈值。Step S13120: It is judged whether the definition of each line acquisition area in the line scanning area reaches a specified threshold.
在每获得一个行采集区的清晰度后,可将清晰度与指定阈值进行比较,判断清晰度是否达到指定阈值,即:是否存在清晰度不小于指定阈值的采集区。After obtaining the definition of a line collection area, the definition can be compared with a specified threshold to determine whether the definition reaches the specified threshold, that is, whether there is a collection area with a definition not less than the specified threshold.
步骤S13130、若所述行扫描区域中存在清晰度达到所述指定阈值的行采集区,则根据清晰度达到所述指定阈值的行采集区确定第一参考区域。Step S13130: If there is a line acquisition area whose definition reaches the specified threshold value in the line scanning area, a first reference area is determined according to the line acquisition area whose definition reaches the specified threshold value.
若行扫描区域中存在清晰度达到指定阈值的行采集区,则记录对应的行采集区的位置,从而确定出行扫描区域中每个清晰度达到指定阈值的行采集区。当然,也可以在获取每个行采集区的清晰度后,再逐一与指定阈值比较,若存在清晰度达到指定阈值的行采集区,则记录该采集区。If there is a line acquisition area whose definition reaches the specified threshold in the line scanning area, the position of the corresponding line acquisition area is recorded, so as to determine each line acquisition area in the travel scanning area whose definition reaches the specified threshold. Of course, it is also possible to compare the definition of each line acquisition area with the specified threshold one by one after acquiring the definition, and if there is a line acquisition area whose definition reaches the specified threshold, record the acquisition area.
清晰度达到指定阈值的行采集区可作为第一参考区域,用于限定焦点区域在行方向上的范围。The line acquisition area whose sharpness reaches the specified threshold can be used as the first reference area to limit the range of the focus area in the line direction.
在本公开的一些实施方式中,第一参考区域的数量为一个,则焦点区域在行方向上的边界为第一参考区域在行方向上的边界沿列方向的延伸线,即清晰度达到指定阈值的行采集区在行方向上的边界的延伸线。In some embodiments of the present disclosure, the number of the first reference area is one, and the boundary of the focus area in the row direction is the extension line of the boundary of the first reference area in the row direction along the column direction, that is, the definition reaches the specified threshold. The extension line of the boundary of the row collection area in the row direction.
在本公开的另一些实施方式中,第一参考区域的数量为多个,则焦点区域在行方向上的边界为行方向上最外侧的两个第一参考区域的外边界沿列方向的延伸线,最外侧的两个第一参考区域为在行方向上距离最远的两个第一参考区域,两个第一参考区域在行方向上的外边界为在行方向上相背的边界。In other embodiments of the present disclosure, the number of the first reference regions is multiple, and the boundary of the focus region in the row direction is the extension line of the outer boundary of the two outermost first reference regions in the row direction along the column direction. The two outermost first reference regions are the two first reference regions furthest apart in the row direction, and the outer boundaries of the two first reference regions in the row direction are the opposite boundaries in the row direction.
需要说明的是,对于存在多个第一参考区域的行区域而言,第一参考区域可以是连续的多个采集区,当然,也可以是离散的多个采集区。It should be noted that, for a row area where there are multiple first reference areas, the first reference area may be a plurality of continuous acquisition areas, of course, it may also be a plurality of discrete acquisition areas.
步骤S13140、若所述行扫描区域的各所述行采集区的清晰度未达到所述指定阈值,则从未获取过清晰度的区域中重新选择第一起始区域,并执行所述行扫描动作,直至确定所述第一参考区域;重新选择后的第一起始区域与重新选择前的第一起始区域在列方向上的间距为所述扫描窗口在列方向上的高度的整数倍。Step S13140: If the definition of each of the line acquisition areas of the line scan area does not reach the specified threshold, reselect the first starting area from the areas where the definition has never been obtained, and execute the line scan action , Until the first reference area is determined; the distance in the column direction between the reselected first starting area and the first starting area before reselecting is an integer multiple of the height of the scan window in the column direction.
在本公开的一些实施方式中,若所述行扫描区域的各所述行采集区的清晰度未达到所述指定阈值,则可使执行完上一次行扫描动作后的扫描窗口沿列方向移动预设距离,以移动预设距离后的扫描窗口对应的区域为新的第一起始区域,并执行扫描动作,相应的,再次执行步骤S13120和步骤S13130,直至确定出第一参考区域后,停止扫描。其中,预设距离可以是扫描窗口在列方向上的高度的整数倍,例如1倍、2倍等。同时,扫描窗口在沿列方向移动后的区域为未获取过清晰度的区域,避免重复获取同一区域的清晰度。In some embodiments of the present disclosure, if the definition of each row acquisition area of the row scan area does not reach the specified threshold, the scan window after the last row scan operation can be moved in the column direction For the preset distance, take the area corresponding to the scan window after the preset distance is moved as the new first starting area, and execute the scan action. Accordingly, step S13120 and step S13130 are executed again, until the first reference area is determined, stop scanning. The preset distance may be an integer multiple of the height of the scan window in the column direction, for example, 1 time, 2 times, and so on. At the same time, the area after the scanning window moves along the column direction is an area where the definition has not been obtained, so as to avoid repeatedly obtaining the definition of the same area.
步骤S13150、根据所述第一参考区域确定第二起始区域,通过所述扫描窗口沿列方向对所述初始图像进行扫描,得到列扫描区域和所述列扫描区域中每个列采集区的清晰度;所述列扫描区域在列方向上的边界与所述初始图像在列方向上的边界重合;所述列采集区为所述列扫描区域中对应所述扫描窗口的区域。Step S13150: Determine a second starting area according to the first reference area, and scan the initial image in the column direction through the scanning window to obtain the column scanning area and the acquisition area of each column in the column scanning area. Definition; the boundary of the column scanning area in the column direction coincides with the boundary of the initial image in the column direction; the column acquisition area is an area corresponding to the scanning window in the column scanning area.
第二起始区域的形状和尺寸由扫描窗口来限定,即二者的形状和尺寸相同。可从第二起始区域开始,沿列方向对初始图像进行扫描,获取对应不同位置的扫描窗口的区域的清晰度,在沿列方向扫描时,扫描窗口可沿列方向朝第二起始区域的两侧每次同时平移一个指定长度,该指定长度可等于扫描窗口在列方向上的高度。当然,扫描窗口也可以其他方式沿列方向运动。列扫描区包括对应扫描窗口的不同位 置的多个列采集区,列扫描区域和列采集区的形成和清晰度的获取的具体原理可参考步骤S13140中的行扫描动作的原理,在此不再详述。The shape and size of the second starting area are defined by the scan window, that is, the shape and size of the two are the same. Starting from the second starting area, scan the initial image along the column direction to obtain the definition of the area of the scanning window corresponding to different positions. When scanning along the column direction, the scanning window can move towards the second starting area along the column direction. The two sides of, simultaneously translate a specified length each time, and the specified length can be equal to the height of the scan window in the column direction. Of course, the scan window can also move in the column direction in other ways. The column scanning area includes a plurality of column acquisition areas corresponding to different positions of the scanning window. The specific principles of the formation of the column scanning area and the column acquisition area and the acquisition of definition can refer to the principle of the row scanning action in step S13140, which will not be repeated here. Detailed.
在本公开的一些实施方式中,步骤S13150中可采用与步骤S13140中相同尺寸和形状的扫描窗口,但不以此为限,在本公开的其它实施方式中,在沿列方向进行扫描时,也可采用不同于行方向扫描的扫描窗口。In some embodiments of the present disclosure, a scan window of the same size and shape as in step S13140 may be used in step S13150, but not limited to this. In other embodiments of the present disclosure, when scanning is performed along the column direction, It is also possible to use a scanning window other than scanning in the row direction.
在本公开的一些实施方式中,第一参考区域的数量为一个,第二起始区域即为第一参考区域。In some embodiments of the present disclosure, the number of the first reference area is one, and the second starting area is the first reference area.
在本公开的另一些实施方式中,第一参考区域的数量为多个,第二起始区域为:在行方向上的最外侧的两个第一参考区域中心线的中点对应的所处的一个与扫描窗口大小相同的区域,且第二起始区域的中心与该中点重合。最外侧的两个第一参考区域为在行方向上距离最远的两个第一参考区域,最外侧的两个第一参考区域中心线为该两个第一参考区的中心的连线。In other embodiments of the present disclosure, the number of the first reference area is multiple, and the second starting area is: the center line of the two outermost first reference areas in the row direction corresponds to the midpoint of the center line of the first reference area. An area with the same size as the scanning window, and the center of the second starting area coincides with the midpoint. The two outermost first reference areas are the two first reference areas furthest apart in the row direction, and the center lines of the outermost two first reference areas are the line connecting the centers of the two first reference areas.
步骤S13160、将所述列扫描区域中清晰度达到指定阈值的列采集区作为第二参考区域。Step S13160: Use a column acquisition area whose definition reaches a specified threshold in the column scanning area as a second reference area.
在获得采集区的清晰度后,可将清晰度与指定阈值进行比较,判断清晰度是否达到指定阈值,即:是否存在清晰度不小于指定阈值的列采集区。After obtaining the definition of the collection area, the definition can be compared with the specified threshold to determine whether the definition reaches the specified threshold, that is, whether there is a column collection area with a definition not less than the specified threshold.
清晰度达到指定阈值的列采集区作为第二参考区域,并记录,用于限定焦点区域在列方向上的范围。The column acquisition area whose sharpness reaches the specified threshold is used as the second reference area and recorded to limit the range of the focus area in the column direction.
在本公开的一些实施方式中,第二参考区域为多个,焦点区域在列方向上的边界为最外侧的两个第二参考区域的外边界沿行方向的延伸线。最外侧的两个第二参考区域为在列方向上距离最远的两个第二参考区域,最外侧的第二参考区域的外边界为该两个第二参考区域在列方向上相背的边界。In some embodiments of the present disclosure, there are multiple second reference regions, and the boundary of the focus region in the column direction is an extension line of the outer boundaries of the two outermost second reference regions in the row direction. The two outermost second reference areas are the two second reference areas farthest in the column direction, and the outer boundary of the outermost second reference area is the opposite of the two second reference areas in the column direction. boundary.
在本公开的一些实施方式中,第二参考区域为一个,焦点区域在列方向上的边界为第二参考区域的外边界沿行方向的延伸线。In some embodiments of the present disclosure, there is one second reference area, and the boundary of the focus area in the column direction is an extension line of the outer boundary of the second reference area in the row direction.
步骤S13170、根据所述第一参考区域和所述第二参考区域确定所述焦点区域。Step S13170: Determine the focus area according to the first reference area and the second reference area.
基于上文对步骤S13140和步骤S13160的说明,可通过第一参考区域和第二参考区域确定出焦点区域的边界。Based on the above description of step S13140 and step S13160, the boundary of the focus area can be determined through the first reference area and the second reference area.
在本公开的一些实施方式中,第一参考区域为多个,焦点区域在行方向上的边界为最外侧的两个第一参考区域的外边界沿列方向的延伸线;第二参考区域为多个,焦点区域在列方向上的边界为最外侧的两个第二参考区域的外边界沿行方向延伸线,两个延伸线围成的区域可为焦点区域。In some embodiments of the present disclosure, there are multiple first reference areas, and the boundary of the focus area in the row direction is the extension line of the outer boundaries of the two outermost first reference areas along the column direction; the second reference area is multiple One, the boundary of the focus area in the column direction is the outer boundary of the outermost two second reference areas extending in the row direction, and the area enclosed by the two extension lines may be the focus area.
当然,也可基于为最外侧的两个第一参考区域的外边界以及最外侧的两个第二参考区域的外边界,通过预设的算法或图像处理方式,确定出焦点区域。Of course, the focus area can also be determined based on the outer boundaries of the two outermost first reference areas and the outer boundaries of the two outermost second reference areas through a preset algorithm or image processing method.
在本公开的其它实施方式中,也可对列扫描区域的各个列采集区的清晰度进行排序,以清晰度最高的一个或多个列采集区作为第二参考区,第二参考区的数量小 于列采集区的总数。In other embodiments of the present disclosure, the definition of each column acquisition area in the column scanning area can also be sorted, and one or more column acquisition areas with the highest definition are used as the second reference area. Less than the total number of column collection areas.
步骤S1320、若所述初始图像中存在所述目标特征,则根据所述目标特征在所述初始图像中的占比确定焦点区域。Step S1320: If the target feature exists in the initial image, determine the focus area according to the proportion of the target feature in the initial image.
若初始图像中存在目标特征,则需要基于该目标特征所在区域的大小来确定焦点区域,例如,若目标特征所占的区域较大,则可以目标特征的区域为基准,确定焦点区域,而不用考虑目标特征的区域的清晰度是否达到指定阈值。若目标特征所占的区域过小,说明其并非初始图像的主要元素,因而可忽略目标特征,根据清晰度达到指定阈值的区域确定焦点区域。If there is a target feature in the initial image, the focus area needs to be determined based on the size of the area where the target feature is located. For example, if the area occupied by the target feature is larger, the focus area can be determined based on the target feature area. Consider whether the sharpness of the target feature area reaches the specified threshold. If the area occupied by the target feature is too small, it means that it is not the main element of the initial image, so the target feature can be ignored, and the focus area is determined according to the area whose sharpness reaches the specified threshold.
需要说明的是,若存在多个目标特征,则目标特征在初始图像中的占比为所有目标特征在初始图像中的总占比,即各目标特征在初始图像中的占比之和。It should be noted that if there are multiple target features, the proportion of the target feature in the initial image is the total proportion of all target features in the initial image, that is, the sum of the proportions of each target feature in the initial image.
如图5所示,在本公开的一些实施方式中,根据所述目标特征在所述初始图像中的占比确定焦点区域,即步骤S1320,包括步骤S13210-步骤S13240,其中:As shown in FIG. 5, in some embodiments of the present disclosure, the focus area is determined according to the proportion of the target feature in the initial image, that is, step S1320 includes step S13210-step S13240, wherein:
步骤S13210、将所述目标特征在所述初始图像中的占比与一阈值范围比较。Step S13210: Compare the proportion of the target feature in the initial image with a threshold range.
目标特征在初始图像中的占比为目标特征的区域的尺寸与初始图像的总尺寸之比。例如,该占比可为目标特征的区域的面积与初始图像的总面积之比;或者,该占比可为目标特征的区域的像素数量与初始图像的像素数量之比。The proportion of the target feature in the initial image is the ratio of the size of the area of the target feature to the total size of the initial image. For example, the proportion may be the ratio of the area of the target feature area to the total area of the initial image; or, the proportion may be the ratio of the number of pixels in the area of the target feature to the number of pixels in the initial image.
阈值范围的具体数值在此不做特殊限定,举例而言,目标特征在初始图像中的占比可以百分数表示,该阈值范围的最小值可为5%,最大值为25%,即阈值范围为5%-25%。The specific value of the threshold range is not specifically limited here. For example, the proportion of the target feature in the initial image can be expressed as a percentage. The minimum value of the threshold range can be 5% and the maximum value is 25%, that is, the threshold range is 5%-25%.
步骤S13220、若所述目标特征在所述初始图像中的占比大于所述阈值范围的最大值,则以所述初始图像作为焦点区域。Step S13220: If the proportion of the target feature in the initial image is greater than the maximum value of the threshold range, the initial image is used as the focus area.
目标特征在初始图像中的占比大于阈值范围的最大值,说明目标特征占据了初始图像中的较多区域,因此,可直接以初始图像作为焦点区域,而不用考虑清晰度是否达到指定阈值。以目标特征为人脸,阈值范围为5%-25%为例,若人脸在初始图像中的占比大于25%,说明初始图像为人脸特写图像,此时,可直接以初始图像作为焦点区域。The proportion of the target feature in the initial image is greater than the maximum value of the threshold range, indicating that the target feature occupies more areas in the initial image. Therefore, the initial image can be directly used as the focus area, regardless of whether the definition reaches the specified threshold. Taking the target feature as a human face and the threshold range is 5%-25% as an example, if the proportion of the human face in the initial image is greater than 25%, it means that the initial image is a close-up image of a human face. In this case, the initial image can be directly used as the focus area .
步骤S13230、若所述目标特征在所述初始图像中的占比位于所述阈值范围内,则以所述目标特征的区域作为焦点区域。Step S13230: If the proportion of the target feature in the initial image is within the threshold range, the area of the target feature is used as the focus area.
以目标特征为人脸,阈值范围为5%-25%为例,若人脸在初始图像中的占比不小于5%,且不大于25%,说明初始图像为普通的人物图像。因而可直接以目标特征的区域为焦点区域,而不用专门确定焦点区域,焦点区域的边界即为目标特征的区域的边界。Taking the target feature as a human face and the threshold range is 5%-25% as an example, if the proportion of the human face in the initial image is not less than 5% and not more than 25%, it means that the initial image is an ordinary person image. Therefore, the area of the target feature can be directly used as the focus area, instead of specifically determining the focus area, the boundary of the focus area is the boundary of the area of the target feature.
步骤S13240、若所述目标特征在所述初始图像中的占比小于所述阈值范围的最小值,则以所述初始图像中清晰度达到指定阈值的区域作为焦点区域。Step S13240: If the proportion of the target feature in the initial image is less than the minimum value of the threshold range, use an area in the initial image whose definition reaches a specified threshold as a focus area.
以目标特征为人脸,阈值范围为5%-25%为例,若人脸在初始图像中的占比小 于5%,说明初始图像的主体并非人物,或者人脸数据大部分丢失,而难以根据人脸确定焦点区域,因此,可以初始图像中清晰度达到指定阈值的区域作为焦点区域,以初始图像中清晰度达到指定阈值的区域作为焦点区域的具体方法已在上文的步骤S13110-步骤S13170中进行了详细说明,在此不再赘述。Taking the target feature as a face and the threshold range is 5%-25% as an example, if the proportion of the face in the initial image is less than 5%, it means that the subject of the initial image is not a person, or most of the face data is lost, and it is difficult to base The human face determines the focus area. Therefore, the area whose definition reaches the specified threshold in the initial image can be used as the focus area, and the area whose definition reaches the specified threshold in the initial image is used as the focus area. It is explained in detail in, so I won’t repeat it here.
在步骤S140中,根据所述剪裁比例和所述焦点区域对所述初始图像进行剪裁,得到目标图像,并在所述显示装置上显示。In step S140, the initial image is cropped according to the cropping ratio and the focus area to obtain a target image, which is displayed on the display device.
为了尽可能多的保留焦点区域,可通过焦点区域确定剪裁的基准,通过剪裁比例可确定剪裁的范围的大小,即剪裁区域的大小。In order to preserve as much of the focus area as possible, the focus area can be used to determine the basis of trimming, and the trimming ratio can be used to determine the size of the trimming range, that is, the size of the trimming area.
在本公开的一些实施方式中,如图6所示,根据所述剪裁比例和所述焦点区域对所述初始图像进行剪裁,即步骤S140,可包括步骤S1410-步骤S1430,其中:In some embodiments of the present disclosure, as shown in FIG. 6, the initial image is cropped according to the cropping ratio and the focus area, that is, step S140, which may include step S1410-step S1430, wherein:
步骤S1410、根据所述剪裁比例在所述初始图像中生成多个剪裁区域,每个所述剪裁区域的两个相对的边缘与所述初始图像的边缘重合。Step S1410: Generate a plurality of clipping regions in the initial image according to the clipping ratio, and two opposite edges of each clipping region coincide with the edges of the initial image.
剪裁区域可视为一符合剪裁比例的窗口,例如:对于竖屏模式的矩形的显示装置,剪裁比例为16:9,则剪裁区域为高宽比为16:9的窗口。各剪裁区域的大小相同,为了实现剪裁区域的最大化,可使剪裁区域的两个相对的边缘与初始图像的边缘重合,其余边缘可位于初始图像以内,或其余边缘中的最多一个边缘与初始图像的边缘重合,只要能满足剪裁比例即可,从而可在保留重合边缘的基础上剪裁出符合剪裁比例的图像,实现最大化剪裁。例如,初始图像和剪裁区域均为矩形,剪裁区域的相对的两边缘可与初始图像中相对的两边缘重合,其它边缘与重合边缘符合剪裁比例。本实施方式中的重合仅指边缘共线,并不限定为边缘的长度相同。The cropping area can be regarded as a window conforming to the cropping ratio. For example, for a rectangular display device in portrait mode and the cropping ratio is 16:9, the cropping area is a window with an aspect ratio of 16:9. The size of each cropping area is the same. In order to maximize the cropping area, the two opposite edges of the cropping area can be overlapped with the edge of the original image. The edges of the image overlap, as long as the cropping ratio can be satisfied, so that an image that meets the cropping ratio can be cropped on the basis of preserving the overlapped edges, and the maximum cropping can be achieved. For example, the initial image and the cropped area are both rectangular, the two opposite edges of the cropped area may coincide with the two opposite edges in the initial image, and the other edges and the overlapped edges conform to the crop ratio. The overlap in this embodiment only refers to the collinear edges, and is not limited to the same length of the edges.
步骤S1420、以与所述焦点区域的中心距最小的剪裁区域,作为目标剪裁区域。In step S1420, the cropping area with the smallest distance from the center of the focus area is taken as the target cropping area.
针对每个剪裁区域,计算其中心与焦点区域的中心的中心距;同时,比较各个中心距的大小,确定对应最小中心距的剪裁区域,作为目标剪裁区域,以便在复合剪裁比例的前提下,最大程度的保留焦点区域。特别地,中心距的最小值可为零,也就是说,剪裁区域的中心可与焦点区域的中心重合。For each clipping area, calculate the center distance between its center and the center of the focus area; at the same time, compare the size of each center distance, determine the clipping area corresponding to the minimum center distance, as the target clipping area, so that under the premise of compound clipping ratio, Keep the focus area to the greatest extent. In particular, the minimum value of the center distance may be zero, that is, the center of the cropping area may coincide with the center of the focus area.
步骤S1430、沿所述目标剪裁区域的边缘对所述初始图像进行剪裁。Step S1430, crop the initial image along the edge of the target crop area.
去除初始图像中的目标剪裁区域以外的区域,仅保留目标剪裁区域内的图像,作为目标图像,在显示装置上显示该目标图像时,若剪裁比例为根据显示装置的显示模式而确定的剪裁比例,可使目标图像的尺寸与显示装置匹配;同时,由于目标图像是基于焦点区域而确定的,从而可最大程度的保留初始图像中的目标特征,减少因为剪裁而造成的损失,保证显示装置的显示效果。Remove the area outside the target crop area in the initial image, and only keep the image in the target crop area as the target image. When the target image is displayed on the display device, if the crop ratio is the crop ratio determined according to the display mode of the display device , The size of the target image can be matched with the display device; at the same time, because the target image is determined based on the focus area, the target features in the initial image can be retained to the greatest extent, the loss caused by clipping can be reduced, and the display device's performance can be guaranteed. display effect.
在本公开的图像处理方法中,还可通过用户的自定义操作实现对初始图像的剪裁,在本公开的一些实施方式中,该图像处理方法还包括步骤S150-步骤S170,其中:In the image processing method of the present disclosure, the initial image can also be tailored through user-defined operations. In some embodiments of the present disclosure, the image processing method further includes step S150-step S170, wherein:
步骤S150、通过一剪裁终端获取并显示所述初始图像和所述目标图像。Step S150: Acquire and display the initial image and the target image through a tailoring terminal.
剪裁终端可以是手机、平板电脑或其它可实现人机交互的电子设备,且其与摄影终端和显示装置是三个独立的设备。剪裁终端可同时与显示装置和摄影终端通信,并可通过获取并显示初始图像,若存在目标图像,也可获取并显示目标图像。The tailoring terminal can be a mobile phone, a tablet computer or other electronic equipment that can realize human-computer interaction, and it is three independent devices with the camera terminal and the display device. The cutting terminal can communicate with the display device and the camera terminal at the same time, and can acquire and display the initial image, and if there is a target image, it can also acquire and display the target image.
步骤S160、接收所述剪裁终端响应用户的操作而生成的剪裁区域参数。Step S160: Receive the cropping area parameter generated by the cropping terminal in response to the user's operation.
剪裁区域参数至少包括剪裁区域的位置和剪裁比例,该剪裁比例为用户自定义的剪裁比例,例如4:3、16:9、7:5等。The trimming area parameters include at least the location and trimming ratio of the trimming area, and the trimming ratio is a user-defined trimming ratio, such as 4:3, 16:9, 7:5, etc.
在剪裁终端在接收到初始图像后,若用户在剪裁终端上对初始图像的进行了自定义剪裁操作,则可生成自定义的剪裁区域参数,并将该剪裁区域参数发送给显示装置。After the trimming terminal receives the initial image, if the user performs a custom trimming operation on the initial image on the trimming terminal, a custom trimming area parameter can be generated and sent to the display device.
步骤S170、根据所述剪裁区域参数对所述初始图像进行剪裁。Step S170: Cropping the initial image according to the cropping area parameter.
可直接根据剪裁区域参数执行剪裁动作,按照剪裁区域参数包括的剪裁区域的位置和剪裁比例对初始图像进行剪裁,得到目标图像,并在显示装置上显示。The trimming action can be performed directly according to the trimming area parameter, and the initial image is trimmed according to the location and trimming ratio of the trimming area included in the trimming area parameter to obtain the target image and display it on the display device.
在本公开的一些实施方式中,用户在剪裁终端上看到初始图像后,可直接进行自定义剪裁操作,也可先确认执行智能剪裁操作,即执行步骤S110-步骤S140,得到目标图像,若目标图像不满足用户的要求,或无法输出目标图像,再通过剪裁终端执行上述的自定义剪裁操作,重新生成目标图像。In some embodiments of the present disclosure, after the user sees the initial image on the trimming terminal, the user can directly perform the custom trimming operation, or first confirm the execution of the smart trimming operation, that is, perform step S110-step S140 to obtain the target image, if The target image does not meet the requirements of the user, or the target image cannot be output, and the above-mentioned custom clipping operation is executed through the clipping terminal to regenerate the target image.
如图7所示,图7示出了本公开图像处理方法一实施方式的工作工程,其中包括步骤S200-S290以及步骤S300-步骤S370,其具体原理已在上文中进行了详细说明。As shown in Fig. 7, Fig. 7 shows the working project of an embodiment of the image processing method of the present disclosure, which includes steps S200-S290 and steps S300-step S370, the specific principles of which have been described in detail above.
需要说明的是,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。It should be noted that although the various steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that these steps must be performed in the specific order, or that all the steps shown must be performed. Achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, etc.
本公开实施方式提供一种显示装置,如图8所示,显示装置100可包括图像处理装置101,该图像处理装置101包括图像获取单元1、参数获取单元2、识别单元3和处理单元4,其中:The embodiments of the present disclosure provide a display device. As shown in FIG. 8, the display device 100 may include an image processing device 101. The image processing device 101 includes an image acquisition unit 1, a parameter acquisition unit 2, an identification unit 3, and a processing unit 4. in:
图像获取单元1用于获取初始图像。The image acquisition unit 1 is used to acquire an initial image.
参数获取单元2用于获取剪裁比例和目标特征。The parameter acquisition unit 2 is used to acquire the tailoring ratio and the target feature.
识别单元3用于在所述初始图像中识别目标特征,并根据识别结果确定焦点区域。The recognition unit 3 is used for recognizing the target feature in the initial image, and determining the focus area according to the recognition result.
处理单元4用于根据所述剪裁比例和所述焦点区域对所述初始图像进行剪裁,得到目标图像,并在所述显示装置上显示。The processing unit 4 is configured to cut the initial image according to the cut ratio and the focus area to obtain a target image, and display it on the display device.
本公开实施方式的显示装置100,可通过对目标特征的识别结果,在初始图像中确定焦点区域,再根据焦点区域和剪裁比例对初始图像进行剪裁,以便得到更加 匹配显示装置的目标图像,从而改善显示效果。The display device 100 of the embodiment of the present disclosure can determine the focus area in the initial image based on the recognition result of the target feature, and then crop the initial image according to the focus area and the cropping ratio, so as to obtain a target image that better matches the display device. Improve the display effect.
如图9所示,在本公开的一些实施方式中,识别单元3包括图像识别模块31和分析模块32,其中:As shown in FIG. 9, in some embodiments of the present disclosure, the recognition unit 3 includes an image recognition module 31 and an analysis module 32, wherein:
图像识别模块31用于在所述初始图像中识别目标特征。The image recognition module 31 is used to recognize target features in the initial image.
分析模块32用于在所述初始图像中不存在所述目标特征时,以所述初始图像中清晰度达到指定阈值的区域作为焦点区域;以及在所述初始图像中存在所述目标特征时,根据所述目标特征在所述初始图像中的占比确定焦点区域。The analysis module 32 is configured to, when the target feature does not exist in the initial image, use an area in the initial image whose definition reaches a specified threshold as the focus area; and when the target feature exists in the initial image, The focus area is determined according to the proportion of the target feature in the initial image.
如图10所示,在本公开的一些实施方式中,分析模块32包括比较电路321和执行电路322,其中:As shown in FIG. 10, in some embodiments of the present disclosure, the analysis module 32 includes a comparison circuit 321 and an execution circuit 322, wherein:
比较电路321用于将所述目标特征在所述初始图像中的占比与一阈值范围比较;The comparison circuit 321 is configured to compare the proportion of the target feature in the initial image with a threshold range;
执行电路322用于在所述目标特征在所述初始图像中的占比大于所述阈值范围的最大值时,以所述初始图像作为焦点区域;在所述目标特征在所述初始图像中的占比位于所述阈值范围内时,以所述目标特征作为焦点区域;以及在所述目标特征在所述初始图像中的占比小于所述阈值范围的最小值时,以所述初始图像中清晰度达到指定阈值的区域作为焦点区域。The execution circuit 322 is configured to use the initial image as the focus area when the proportion of the target feature in the initial image is greater than the maximum value of the threshold range; When the proportion is within the threshold range, the target feature is used as the focus area; and when the proportion of the target feature in the initial image is less than the minimum value of the threshold range, the initial image is The area where the sharpness reaches the specified threshold is regarded as the focus area.
本公开实施方式显示装置的各单元、模块和电路部分的细节以及有益效果已在上文图像处理方法的实施方式中进行了详细的说明,在此不再详述。其中,本公开实施方式中的图像处理装置101可为图2中的图像处理装置114。The details and beneficial effects of the units, modules, and circuit parts of the display device in the embodiments of the present disclosure have been described in detail in the above embodiment of the image processing method, and will not be described in detail here. The image processing device 101 in the embodiment of the present disclosure may be the image processing device 114 in FIG. 2.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块、单元或电路,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块、单元或电路的特征和功能可以在一个模块、单元或电路中具体化。反之,上文描述的一个模块、单元或电路的特征和功能可以进一步划分为由多个模块、单元或电路来具体化。It should be noted that although several modules, units, or circuits of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules, units or circuits described above may be embodied in one module, unit or circuit. Conversely, the features and functions of a module, unit or circuit described above can be further divided into multiple modules, units or circuits to be embodied.
本公开实施方式还提供一种显示系统,如图11所示,该显示系统可包括显示装置100和摄影终端200,其中:The embodiment of the present disclosure also provides a display system. As shown in FIG. 11, the display system may include a display device 100 and a camera terminal 200, wherein:
显示装置100包括上述任意实施方式的图像处理方法的图像处理装置101,因而,图像处理装置101可以是上述任意实施方式的图像处理装置101,该图像处理方法和图像处理装置101的具体细节在此不再赘述。The display device 100 includes the image processing device 101 of the image processing method of any of the above embodiments. Therefore, the image processing device 101 may be the image processing device 101 of any of the above embodiments. The specific details of the image processing method and the image processing device 101 are here. No longer.
摄影终端200可用于拍摄初始图像,其可以是相机、手机、平板电脑等,只要能拍摄并传输图像即可。初始图像的内容和形式在此不做特殊限定。The camera terminal 200 can be used to take an initial image, and it can be a camera, a mobile phone, a tablet computer, etc., as long as the image can be taken and transmitted. The content and form of the initial image are not specifically limited here.
此外,在本公开的一些实施方式中,该显示系统还可包括剪裁终端300和远程终端400,其中:剪裁终端300和远程终端400的功能和具体细节已在上文的图像处理方法的实施方式中进行了说明,在此不再赘述。In addition, in some embodiments of the present disclosure, the display system may further include a tailoring terminal 300 and a remote terminal 400. The functions and specific details of the tailoring terminal 300 and the remote terminal 400 have been described in the above image processing method implementation. It is explained in, so I won’t repeat it here.
需要说明的是,显示装置100的其它结构可参考图2中的显示装置111,不再详 述。It should be noted that, for other structures of the display device 100, reference may be made to the display device 111 in FIG. 2 and will not be described in detail.
本公开实施方式还提供一种可读存储介质,其上存储有计算机程序,该计算机程序被执行时实现上述任意实施方式的图像处理方法。在一些实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述图像处理方法中描述的根据本发明各种示例性实施方式的步骤。The embodiments of the present disclosure also provide a readable storage medium on which a computer program is stored, and when the computer program is executed, the image processing method of any of the foregoing embodiments is implemented. In some embodiments, the various aspects of the present invention can also be implemented in the form of a program product, which includes program code, and when the program product runs on a terminal device, the program code is used to make the terminal device The steps according to various exemplary embodiments of the present invention described in the above-mentioned image processing method of this specification are performed.
如图12所示,描述了根据本发明的实施方式的用于实现上述图像处理方法的程序产品,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质500可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。As shown in FIG. 12, a program product for implementing the above-mentioned image processing method according to an embodiment of the present invention is described. , Such as running on a personal computer. However, the program product of the present invention is not limited thereto. In this document, the readable storage medium 500 can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product can use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。The computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。The program code used to perform the operations of the present invention can be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural styles. Programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on. In the case of a remote computing device, the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (for example, using Internet service providers). Business to connect via the Internet).
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此, 根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施方式的方法。Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described here can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) execute the method according to the embodiments of the present disclosure.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由所附的权利要求指出。Those skilled in the art will easily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptive changes of the present disclosure. These variations, uses, or adaptive changes follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field that are not disclosed in the present disclosure. . The description and the embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the appended claims.

Claims (13)

  1. 一种显示装置的图像处理方法,其中,包括:An image processing method for a display device, which includes:
    获取初始图像;Get the initial image;
    获取剪裁比例和目标特征;Obtain tailoring ratio and target characteristics;
    在所述初始图像中识别目标特征,并根据识别结果确定焦点区域;Identifying target features in the initial image, and determining the focus area according to the recognition result;
    根据所述剪裁比例和所述焦点区域对所述初始图像进行剪裁,得到目标图像,并在所述显示装置上显示。The initial image is cropped according to the cropping ratio and the focus area to obtain a target image, which is displayed on the display device.
  2. 根据权利要求1所述的图像处理方法,其中,根据识别结果确定焦点区域,包括:The image processing method according to claim 1, wherein determining the focus area according to the recognition result comprises:
    若所述初始图像中不存在所述目标特征,则以所述初始图像中清晰度达到指定阈值的区域作为焦点区域;If the target feature does not exist in the initial image, use an area in the initial image whose definition reaches a specified threshold as the focus area;
    若所述初始图像中存在所述目标特征,则根据所述目标特征在所述初始图像中的占比确定焦点区域。If the target feature exists in the initial image, the focus area is determined according to the proportion of the target feature in the initial image.
  3. 根据权利要求2所述的图像处理方法,其中,根据所述目标特征在所述初始图像中的占比确定焦点区域,包括:The image processing method according to claim 2, wherein determining the focus area according to the proportion of the target feature in the initial image comprises:
    将所述目标特征在所述初始图像中的占比与一阈值范围比较;Comparing the proportion of the target feature in the initial image with a threshold range;
    若所述目标特征在所述初始图像中的占比大于所述阈值范围的最大值,则以所述初始图像作为焦点区域;If the proportion of the target feature in the initial image is greater than the maximum value of the threshold range, the initial image is used as the focus area;
    若所述目标特征在所述初始图像中的占比位于所述阈值范围内,则以所述目标特征的区域作为焦点区域;If the proportion of the target feature in the initial image is within the threshold range, the area of the target feature is used as the focus area;
    若所述目标特征在所述初始图像中的占比小于所述阈值范围的最小值,则以所述初始图像中清晰度达到指定阈值的区域作为焦点区域。If the proportion of the target feature in the initial image is less than the minimum value of the threshold range, then the area in the initial image whose definition reaches the specified threshold is taken as the focus area.
  4. 根据权利要求2或3所述的图像处理方法,其中,以所述初始图像中清晰度达到指定阈值的区域作为焦点区域,包括:The image processing method according to claim 2 or 3, wherein the use of an area in the initial image whose sharpness reaches a specified threshold as the focus area includes:
    以所述初始图像中未被获取过清晰度的一区域为第一起始区域,通过一扫描窗口执行行扫描动作,所述行扫描动作包括:从所述第一起始区域开始,沿行方向对所述初始图像进行扫描,得到行扫描区域和所述行扫描区域中每个行采集区的清晰度;所述行扫描区域在行方向上的边界与所述初始图像在行方向上的边界重合;所述行采集区为所述行扫描区域中对应所述扫描窗口的区域;Taking an area in the initial image where the definition has not been acquired as the first starting area, a line scanning action is performed through a scanning window, and the line scanning action includes: starting from the first starting area, aligning in a row direction The initial image is scanned to obtain the definition of a line scanning area and each line acquisition area in the line scanning area; the boundary of the line scanning area in the line direction coincides with the boundary of the initial image in the line direction; The line acquisition area is an area corresponding to the scan window in the line scan area;
    判断所述行扫描区域中各所述行采集区的清晰度是否达到指定阈值;Judging whether the sharpness of each of the line acquisition areas in the line scanning area reaches a specified threshold;
    若所述行扫描区域中存在清晰度达到所述指定阈值的行采集区,则根据清晰度达到所述指定阈值的行采集区确定第一参考区域;If there is a line acquisition area whose definition reaches the specified threshold in the line scanning area, determining the first reference area according to the line acquisition area whose definition reaches the specified threshold;
    若所述行扫描区域中各所述行采集区的清晰度未达到所述指定阈值,则从未获取过清晰度的区域中重新选择第一起始区域,并执行所述行扫描动作,直至确定出所述第一参考区域;重新选择后的第一起始区域与重新选择前的第一起始区域在列 方向上的间距为所述扫描窗口在列方向上的高度的整数倍;If the definition of each of the line acquisition areas in the line scanning area does not reach the specified threshold, then reselect the first starting area from the areas where the definition has never been obtained, and perform the line scanning action until it is determined Out of the first reference area; the distance in the column direction between the reselected first starting area and the first starting area before reselecting is an integer multiple of the height of the scan window in the column direction;
    根据所述第一参考区域确定第二起始区域,通过所述扫描窗口沿列方向对所述初始图像进行扫描,得到列扫描区域和所述列扫描区域中每个列采集区的清晰度;所述列扫描区域在列方向上的边界与所述初始图像在列方向上的边界重合;所述列采集区为所述列扫描区域中对应所述扫描窗口的区域;Determining a second starting area according to the first reference area, and scanning the initial image in a column direction through the scanning window to obtain a column scanning area and the definition of each column acquisition area in the column scanning area; The boundary of the column scanning area in the column direction coincides with the boundary of the initial image in the column direction; the column acquisition area is an area in the column scanning area corresponding to the scanning window;
    将所述列扫描区域中清晰度达到指定阈值的列采集区作为第二参考区域;Taking a column acquisition area whose definition reaches a specified threshold in the column scanning area as a second reference area;
    根据所述第一参考区域和所述第二参考区域确定所述焦点区域。The focus area is determined according to the first reference area and the second reference area.
  5. 根据权利要求4所述的图像处理方法,其中,若所述第一参考区域为多个,所述焦点区域在行方向上的边界为行方向上最外侧的两个所述第一参考区域的外边界;The image processing method according to claim 4, wherein if there are multiple first reference regions, the boundary of the focus region in the row direction is the outer boundary of the two outermost first reference regions in the row direction ;
    若所述第二参考区域为多个,所述焦点区域在列方向上的边界为列方向上最外侧的两个所述第二参考区域的外边界。If there are multiple second reference areas, the boundary of the focus area in the column direction is the outer boundary of the two outermost second reference areas in the column direction.
  6. 根据权利要求4所述的图像处理方法,其中,若所述第一参考区域的数量为一个,所述第二起始区域为所述第一参考区域;4. The image processing method according to claim 4, wherein if the number of the first reference area is one, the second starting area is the first reference area;
    若所述第一参考区域的数量为多个,所述第二起始区域的中心与在行方向上的最外侧的两个所述第一参考区域的中心线的中点重合。If the number of the first reference regions is multiple, the center of the second starting region coincides with the midpoint of the center lines of the two outermost first reference regions in the row direction.
  7. 根据权利要求3所述的图像处理方法,其中,根据所述剪裁比例和所述焦点区域对所述初始图像进行剪裁,包括:3. The image processing method according to claim 3, wherein the cropping of the initial image according to the cropping ratio and the focus area comprises:
    根据所述剪裁比例在所述初始图像中生成多个剪裁区域,每个所述剪裁区域的两个相对的边缘与所述初始图像的边缘重合;Generating a plurality of clipping regions in the initial image according to the clipping ratio, and two opposite edges of each clipping region coincide with the edges of the initial image;
    以与所述焦点区域的中心距最小的剪裁区域,作为目标剪裁区域;Take the clipping area with the smallest distance from the center of the focus area as the target clipping area;
    沿所述目标剪裁区域的边缘对所述初始图像进行剪裁。The initial image is cropped along the edge of the target cropping area.
  8. 根据权利要求1所述的图像处理方法,其中,所述图像处理方法还包括:The image processing method according to claim 1, wherein the image processing method further comprises:
    通过一剪裁终端获取并显示所述初始图像和所述目标图像;Acquiring and displaying the initial image and the target image through a tailoring terminal;
    接收所述剪裁终端响应用户的操作而生成的剪裁区域参数;Receiving a trimming area parameter generated by the trimming terminal in response to a user's operation;
    根据所述剪裁区域参数对所述初始图像进行剪裁。The initial image is cropped according to the cropping area parameter.
  9. 根据权利要求1所述的图像处理方法,其中,所述目标特征包括人脸。The image processing method according to claim 1, wherein the target feature includes a human face.
  10. 一种显示装置,其中,包括图像处理装置,所述图像处理装置包括:A display device, which includes an image processing device, and the image processing device includes:
    图像获取单元,用于获取初始图像;The image acquisition unit is used to acquire the initial image;
    参数获取单元,用于获取剪裁比例和目标特征;The parameter acquisition unit is used to acquire the tailoring ratio and target characteristics;
    识别单元,用于在所述初始图像中识别目标特征,并根据识别结果确定焦点区域;A recognition unit, configured to recognize the target feature in the initial image, and determine the focus area according to the recognition result;
    处理单元,用于根据所述剪裁比例和所述焦点区域对所述初始图像进行剪裁,得到并显示目标图像。The processing unit is configured to trim the initial image according to the trimming ratio and the focus area to obtain and display a target image.
  11. 根据权利要求10所述的显示装置,其中,所述识别单元包括:The display device according to claim 10, wherein the identification unit comprises:
    图像识别模块,用于在所述初始图像中识别目标特征;An image recognition module for recognizing target features in the initial image;
    分析模块,用于在所述初始图像中不存在所述目标特征时,以所述初始图像中清晰度达到指定阈值的区域作为焦点区域;以及在所述初始图像中存在所述目标特征时,根据所述目标特征在所述初始图像中的占比确定焦点区域。The analysis module is configured to, when the target feature does not exist in the initial image, use an area in the initial image whose definition reaches a specified threshold as the focus area; and when the target feature exists in the initial image, The focus area is determined according to the proportion of the target feature in the initial image.
  12. 根据权利要求11所述的显示装置,其中,所述分析模块包括:The display device according to claim 11, wherein the analysis module comprises:
    比较电路,用于将所述目标特征在所述初始图像中的占比与一阈值范围比较;A comparison circuit for comparing the proportion of the target feature in the initial image with a threshold range;
    执行电路,用于在所述目标特征在所述初始图像中的占比大于所述阈值范围的最大值时,以所述初始图像作为焦点区域;在所述目标特征在所述初始图像中的占比位于所述阈值范围内时,以所述目标特征的区域作为焦点区域;以及在所述目标特征在所述初始图像中的占比小于所述阈值范围的最小值时,以所述初始图像中清晰度达到指定阈值的区域作为焦点区域。The execution circuit is configured to use the initial image as the focus area when the proportion of the target feature in the initial image is greater than the maximum value of the threshold range; when the target feature is in the initial image When the proportion is within the threshold range, the area of the target feature is used as the focus area; and when the proportion of the target feature in the initial image is less than the minimum value of the threshold range, the initial The area in the image whose sharpness reaches the specified threshold is regarded as the focus area.
  13. 一种可读存储介质,其上存储有计算机程序,其中,所述计算机程序被执行时实现权利要求1-9任一项所述的图像处理方法。A readable storage medium having a computer program stored thereon, wherein the computer program implements the image processing method according to any one of claims 1-9 when the computer program is executed.
PCT/CN2021/079894 2020-04-29 2021-03-10 Readable storage medium, display device and image processing method therefor WO2021218416A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010354667.7 2020-04-29
CN202010354667.7A CN111583273A (en) 2020-04-29 2020-04-29 Readable storage medium, display device and image processing method thereof

Publications (1)

Publication Number Publication Date
WO2021218416A1 true WO2021218416A1 (en) 2021-11-04

Family

ID=72116950

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/079894 WO2021218416A1 (en) 2020-04-29 2021-03-10 Readable storage medium, display device and image processing method therefor

Country Status (2)

Country Link
CN (1) CN111583273A (en)
WO (1) WO2021218416A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111583273A (en) * 2020-04-29 2020-08-25 京东方科技集团股份有限公司 Readable storage medium, display device and image processing method thereof
CN113592874A (en) * 2020-04-30 2021-11-02 杭州海康威视数字技术股份有限公司 Image display method and device and computer equipment
CN112087579B (en) * 2020-09-17 2022-08-12 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN112532785B (en) * 2020-11-23 2022-02-01 上海米哈游天命科技有限公司 Image display method, image display device, electronic apparatus, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685620A (en) * 2008-09-26 2010-03-31 鸿富锦精密工业(深圳)有限公司 Display device capable of adjusting image and image adjusting method
US20140176612A1 (en) * 2012-12-26 2014-06-26 Canon Kabushiki Kaisha Image processing apparatus, image capturing apparatus, image processing method, and storage medium
CN108122238A (en) * 2018-01-30 2018-06-05 百度在线网络技术(北京)有限公司 Image processing method, device, equipment and computer readable storage medium
CN109523503A (en) * 2018-09-11 2019-03-26 北京三快在线科技有限公司 A kind of method and apparatus of image cropping
CN110298380A (en) * 2019-05-22 2019-10-01 北京达佳互联信息技术有限公司 Image processing method, device and electronic equipment
CN110378312A (en) * 2019-07-26 2019-10-25 上海商汤智能科技有限公司 Image processing method and device, electronic equipment and storage medium
CN111583273A (en) * 2020-04-29 2020-08-25 京东方科技集团股份有限公司 Readable storage medium, display device and image processing method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454105A (en) * 2016-10-28 2017-02-22 努比亚技术有限公司 Device and method for image processing
CN108776970B (en) * 2018-06-12 2021-01-12 北京字节跳动网络技术有限公司 Image processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685620A (en) * 2008-09-26 2010-03-31 鸿富锦精密工业(深圳)有限公司 Display device capable of adjusting image and image adjusting method
US20140176612A1 (en) * 2012-12-26 2014-06-26 Canon Kabushiki Kaisha Image processing apparatus, image capturing apparatus, image processing method, and storage medium
CN108122238A (en) * 2018-01-30 2018-06-05 百度在线网络技术(北京)有限公司 Image processing method, device, equipment and computer readable storage medium
CN109523503A (en) * 2018-09-11 2019-03-26 北京三快在线科技有限公司 A kind of method and apparatus of image cropping
CN110298380A (en) * 2019-05-22 2019-10-01 北京达佳互联信息技术有限公司 Image processing method, device and electronic equipment
CN110378312A (en) * 2019-07-26 2019-10-25 上海商汤智能科技有限公司 Image processing method and device, electronic equipment and storage medium
CN111583273A (en) * 2020-04-29 2020-08-25 京东方科技集团股份有限公司 Readable storage medium, display device and image processing method thereof

Also Published As

Publication number Publication date
CN111583273A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
WO2021218416A1 (en) Readable storage medium, display device and image processing method therefor
WO2020177583A1 (en) Image cropping method and electronic device
CN108933915B (en) Video conference device and video conference management method
CN105874776B (en) Image processing apparatus and method
WO2017071062A1 (en) Area extracting method and apparatus
WO2017031901A1 (en) Human-face recognition method and apparatus, and terminal
US11481975B2 (en) Image processing method and apparatus, electronic device, and computer-readable storage medium
WO2021031609A1 (en) Living body detection method and device, electronic apparatus and storage medium
US10003785B2 (en) Method and apparatus for generating images
CN108024065B (en) Terminal shooting method, terminal and computer readable storage medium
US20220166930A1 (en) Method and device for focusing on target subject, and electronic device
EP3687157A1 (en) Method for capturing images and electronic device
KR101620933B1 (en) Method and apparatus for providing a mechanism for gesture recognition
KR102559859B1 (en) Object segmentation in a sequence of color image frames based on adaptive foreground mask upsampling
CN107566742B (en) Shooting method, shooting device, storage medium and electronic equipment
WO2021208875A1 (en) Visual detection method and visual detection apparatus
WO2021212810A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN107622497B (en) Image cropping method and device, computer readable storage medium and computer equipment
US10621730B2 (en) Missing feet recovery of a human object from an image sequence based on ground plane detection
CN105654039A (en) Image processing method and device
CN112017137A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
TW201502998A (en) Image recognizing method, apparatus, terminal apparatus and server
CN113711123A (en) Focusing method and device and electronic equipment
JP2014027355A (en) Object retrieval device, method, and program which use plural images
US20150009314A1 (en) Electronic device and eye region detection method in electronic device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21796678

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21796678

Country of ref document: EP

Kind code of ref document: A1

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 21796678

Country of ref document: EP

Kind code of ref document: A1