WO2018059453A1 - Image quality rating method, device and terminal apparatus - Google Patents

Image quality rating method, device and terminal apparatus Download PDF

Info

Publication number
WO2018059453A1
WO2018059453A1 PCT/CN2017/103719 CN2017103719W WO2018059453A1 WO 2018059453 A1 WO2018059453 A1 WO 2018059453A1 CN 2017103719 W CN2017103719 W CN 2017103719W WO 2018059453 A1 WO2018059453 A1 WO 2018059453A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
pixel
quality level
quality rating
quality
Prior art date
Application number
PCT/CN2017/103719
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 WO2018059453A1 publication Critical patent/WO2018059453A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof

Definitions

  • the embodiments of the present application relate to the field of network applications, and in particular, to a picture quality rating method, apparatus, and terminal device.
  • the pixels of the picture will change, because the process is processed on the clothing, so there are certain requirements for the picture pixels.
  • the user can only use the naked eye to recognize whether the picture is clear, and the design scheme obtained by the person for recognizing the picture clarity cannot satisfy the process requirement as accurately as possible, resulting in poor image clarity of the produced clothing. Reduce the quality of the clothing and the user experience.
  • the technical problem to be solved by the embodiments of the present application is to provide a picture quality rating method, device and terminal device, which can display the picture quality level in real time when the user designs the clothing to zoom the picture.
  • a technical solution adopted by the present application is to provide a picture quality rating method, the method comprising: acquiring a selected clothing template, displaying a clothing picture corresponding to the clothing template; acquiring the user from the advance a first picture selected in the saved material library, displaying the first picture on a predetermined position or a user selected position on the clothing picture; determining whether the first picture is enlarged or reduced to a second picture; When determining that the first picture is enlarged or reduced to the second picture, calculating the second picture pixel according to a ratio of an area of the second picture to an area of the first picture; querying a quality rating table, Determining a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, wherein the quality rating table is used to record the at least Correspondence between two preset pixels and picture quality level; and output and display Showing a picture quality level corresponding to the second picture pixel.
  • the Query Quality Rating Table determines a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, specifically Querying the quality rating table to determine a preset pixel having the smallest absolute value of the difference from the second picture pixel, and setting it as the first preset pixel; and querying the quality rating table to determine a picture quality level corresponding to the first preset pixel, and setting the picture quality level corresponding to the second picture pixel.
  • the outputting and displaying the picture quality level corresponding to the second picture pixel is specifically: outputting and displaying the picture quality level corresponding to the second picture pixel in a numerical form.
  • the image quality level corresponding to the graphic element is also recorded in the quality rating table, and the “output and display the image quality level corresponding to the second image pixel” is specifically: querying and the second image pixel a corresponding graphic quality level corresponding to the graphic element; and outputting and displaying the graphic element.
  • a picture quality rating device including: a template obtaining module, configured to acquire a selected clothing template, and display a clothing picture corresponding to the clothing template.
  • a selection module configured to acquire a first picture selected by a user from a pre-saved material library, display the first picture on a predetermined position or a user-selected position on the clothing picture; and a determining module, configured to determine Whether the first picture is enlarged or reduced to a second picture; and a calculating module, configured to: when the determining module determines that the first picture is enlarged or reduced to the second picture, according to the second picture a ratio of an area to an area of the first picture, the second picture pixel; a rating module, configured to query a quality rating table, according to the second picture pixel and at least two preset pixels in the quality rating table a numerical relationship determining a picture quality level corresponding to the second picture pixel, wherein the quality rating table is used to record
  • the rating module specifically includes: a preset pixel acquiring module, configured to query the quality rating table to determine a preset pixel having a minimum absolute value of a difference from the second picture pixel, and set the a first preset pixel; and a quality level determining module for querying the location Determining a quality rating table to determine a picture quality level corresponding to the first preset pixel and setting it to a picture quality level corresponding to the second picture pixel.
  • the output module is specifically configured to output and display a picture quality level corresponding to the second picture pixel in a numerical form.
  • the quality rating table further records a correspondence between a picture quality level and a graphic element
  • the output module is specifically configured to query a graphic element corresponding to a picture quality level corresponding to the second picture pixel; The graphic element is displayed.
  • the terminal device includes: one or more processors; a memory; and one or more modules, the one or a plurality of modules are stored in the memory and are executed by the one or more processors, configured to: obtain a selected clothing template, display a clothing picture corresponding to the clothing template; and acquire a material saved by the user from the pre-preserved a first picture selected in the library, displaying the first picture on a predetermined position or a user selected position on the clothing picture; determining whether the first picture is enlarged or reduced to a second picture; When the first picture is enlarged or reduced to the second picture, the second picture pixel is calculated according to a ratio of an area of the second picture to an area of the first picture; and a quality rating table is queried according to the Determining, according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, a picture quality level corresponding to the second picture pixel,
  • the one or more modules are further configured to query the quality rating table to determine a preset pixel having a smallest absolute value of a difference from the second picture pixel, and set the first pixel as a first preset pixel. And querying the quality rating table to determine a picture quality level corresponding to the first preset pixel, and setting it as a picture quality level corresponding to the second picture pixel.
  • the beneficial effects of the embodiments of the present application are: different from the prior art, when the user scales the picture on the clothing, the scaled pixel is calculated, and according to a preset quality rating table, The pixels of the scaled picture are graded and displayed in real time, and the picture quality rating is promptly displayed in the design process to avoid poor design definition caused by visual confirmation, so that the picture quality satisfies the garment processing technology as much as possible, thereby making the clothing design It is more efficient and high quality, which improves the user experience.
  • FIG. 1 is a flowchart of execution of a picture quality rating method in a first embodiment of the present application
  • the query quality rating table determines the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table.
  • the execution flow chart of the corresponding picture quality level is a second embodiment of the present application, the query quality rating table determines the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table.
  • FIG. 3 is a schematic diagram of an output picture quality level in a fourth embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a picture quality rating apparatus in a first embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a picture quality rating apparatus in a second embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the execution body of the picture quality rating method provided by the embodiment of the present application may be a terminal, for example, a smart TV, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
  • FIG. 1 is a flowchart of execution of a picture quality rating method in the first embodiment of the present application.
  • the method includes:
  • Step S10 Acquire a selected clothing template, and display a clothing picture corresponding to the clothing template.
  • Step S11 Acquire a first picture selected by the user from the pre-saved material library, and display the first picture on a predetermined location on the clothing picture or a user-selected location.
  • Step S12 Determine whether the first picture is enlarged or reduced to a second picture.
  • Step S13 When it is determined that the first picture is enlarged or reduced to the second picture, the second picture pixel is calculated according to a ratio of an area of the second picture to an area of the first picture.
  • Step S14 Query a quality rating table, and determine a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, where the quality The rating table is used to record the correspondence between the at least two preset pixels and the picture quality level.
  • Step S15 output and display a picture quality level corresponding to the second picture pixel.
  • the “query quality rating table determines the number according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table.
  • the step S14 specifically includes:
  • Step S20 Query the quality rating table to determine a preset pixel having the smallest absolute value of the difference from the second picture pixel, and set it as the first preset pixel.
  • Step S21 Query the quality rating table to determine a picture quality level corresponding to the first preset pixel, and set it as a picture quality level corresponding to the second picture pixel.
  • the step S15 is specifically: outputting and displaying the picture quality level corresponding to the second picture pixel in a numerical form.
  • FIG. 3 is a schematic diagram of the output picture quality level in the fourth embodiment of the present application.
  • the corresponding relationship between the picture quality level and the graphic element is also recorded in the quality rating table, and the step S15 is specifically:
  • the graphic element is output and displayed.
  • the picture quality level is represented by the number of high-brightness graphics in the graphic element, and the more high-brightness smiley graphics, the higher the picture quality level.
  • the picture quality level has 5 levels and 4 high-brightness graphics, which means that the picture quality level is 4 levels.
  • the picture quality rating device 40 includes a template acquisition module 41, a selection module 42, a determination module 43, a calculation module 44, a rating module 45, and an output module 46.
  • the template obtaining module 41 is configured to acquire a selected clothing template, and display a clothing picture corresponding to the clothing template.
  • the selecting module 42 is configured to acquire a first picture selected by a user from a pre-saved material library, and display the first picture on a predetermined location on the clothing picture or a user selected location.
  • the determining module 43 is configured to determine whether the first picture is enlarged or reduced to a second picture.
  • the calculating module 44 is configured to calculate, according to a ratio of an area of the second picture to an area of the first picture, when the determining module determines that the first picture is enlarged or reduced to the second picture The second picture pixel.
  • the rating module 45 is configured to query a quality rating table, and determine a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, where
  • the quality rating table is configured to record a correspondence between the at least two preset pixels and a picture quality level.
  • the output module 46 is configured to output and display a picture quality level corresponding to the second picture pixel.
  • the rating module 45 specifically includes a preset pixel acquiring module 51 and a quality level determining module 52.
  • the preset pixel obtaining module 51 is configured to query the quality rating table to determine a preset pixel having the smallest absolute value of the difference from the second picture pixel, and set it as the first preset pixel.
  • the quality level determining module 52 is configured to query the quality rating table to determine a picture quality level corresponding to the first preset pixel, and set the picture quality level corresponding to the second picture pixel.
  • the output module is specifically configured to output and display a picture quality level corresponding to the second picture pixel in a numerical form.
  • the quality rating table further records a correspondence between a picture quality level and a graphic element, where the output module is specifically configured to query a picture quality level corresponding to the second picture pixel. Graphic element; and outputting and displaying the graphic element.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 60 includes a processor 61, a memory 62, and a bus system 63.
  • the processor 61 and the memory 62 are connected by a bus system 63 for storing instructions, and the processor 61 is configured to execute the instructions stored in the memory 62, specifically for: acquiring the selected clothing template, displaying and a clothing picture corresponding to the clothing template; acquiring a first picture selected by the user from the pre-saved material library, displaying the first picture at a predetermined location on the clothing picture or a user selected location; determining the first Whether the picture is enlarged or reduced to a second picture; when it is determined that the first picture is enlarged or reduced to the second picture, calculating according to a ratio of an area of the second picture to an area of the first picture a second picture pixel; a query quality rating table, determining a picture quality level corresponding to the second picture pixel according to a numerical relationship
  • the processor 61 is further configured to query the quality rating table to determine a preset pixel having the smallest absolute value of the difference from the second picture pixel, and set it as the first Presetting pixels; and querying the quality rating table to determine a picture quality level corresponding to the first preset pixel, and setting the picture quality level corresponding to the second picture pixel.
  • the memory 62 can be a non-transitory computer readable storage medium for storing computer-executable instructions that, when executed by one or more processors 61, can cause the processor 61 to perform the steps of the above method embodiments, such as Steps S10 to S15 as described in FIG. 1, or steps S20 to S21 as described in FIG. 2.
  • the processor 61 may also be caused to perform the functions of the various modules in the various embodiments of the above quality rating apparatus, such as the functions of the modules 41 to 46 as shown in FIG. 4, and the functions of the modules 51 and 52 as shown in FIG.
  • the computer executable instructions may also be stored and/or transferred in any non-transitory computer readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, where the instructions are executed.
  • a system, apparatus, or device such as a computer-based system, a system containing a processor, or other system that can obtain instructions from, and execute instructions from, an instruction execution system, apparatus, or device.
  • a "non-transitory computer readable storage medium" can be any medium that tangibly contains or stores computer-executable instructions, which can be used by an instruction execution system, device, or system Or use in conjunction with an instruction execution system, device, or device.
  • Non-volatile computer readable storage media may include, but are not limited to, magnetic, optical, and/or semiconductor storage devices. Examples of such storage devices include magnetic disks, CD-ROM based on CD, DVD or Blu-ray technology, and persistent solid-state memories (such as flash memory, solid state drives, etc.).
  • the processor 61 may be a central processing unit (Central Processing Unit, abbreviated as "CPU”).
  • the processor 91 can also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete Hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the bus system 63 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 63 in the figure.
  • the terminal device 60 is not limited to the components and configurations of FIG. 6, and may include other or additional components in various configurations.
  • each step of the above method or each module of the device may be completed by an integrated logic circuit of hardware in the processor 61 or an instruction in the form of software.
  • the steps of the method disclosed in the embodiments of the present application or the units of the management server may be directly embodied as hardware processor execution completion. Or complete with a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 62, and the processor 61 reads the information in the memory 62 and combines the hardware thereof.
  • the scaled pixel is calculated, and the pixels of the scaled picture are ranked and displayed in real time according to a preset quality rating table.
  • the picture quality rating is promptly displayed to avoid poor design clarity caused by visual confirmation, so that the picture quality can satisfy the garment processing technology as much as possible, so that the clothing design is more efficient and high quality, and the user experience is improved.

Abstract

Disclosed are an image quality rating method, device and a terminal apparatus. The method comprises: acquiring a selected apparel template, displaying an apparel image corresponding to the apparel template (S10); acquiring a first image selected by a user from a pre-stored material library, displaying the first image at a predetermined position or a user-selected position on the apparel image (S11); upon determining that the first image has been enlarged or shrunk to form a second image, calculating pixels of the second image according to a ratio between an area of the second image and an area of the first image (S13); querying a quality rating table, determining an image quality level corresponding to the pixels of the second image according to a numerical relationship between the pixels of the second image and at least two preset pixels in the quality rating table (S14); and outputting and displaying the image quality level corresponding to the pixels of the second image (S15). The method can be used to rate and display in real-time the pixels of an image that has been enlarged or shrunk, thus indicating in real-time the image quality level during a design process and enhancing user experience.

Description

一种图片质量评级方法、装置及终端设备Picture quality rating method, device and terminal device 技术领域Technical field
本申请实施方式涉及网络应用领域,特别是涉及一种图片质量评级方法、装置及终端设备。The embodiments of the present application relate to the field of network applications, and in particular, to a picture quality rating method, apparatus, and terminal device.
背景技术Background technique
当前服装设计应用,通常提供用户设计服装上的图案的功能,使用用户自主选择图片作为服装图案,并调整图片位置及大小。Current apparel design applications typically provide the user with the ability to design a pattern on the garment, using the user's own choice of the image as the garment pattern, and adjusting the position and size of the image.
在用户对图片进行缩放时,图片的像素会发生改变,因为要通过工艺加工在服装上,所以对图片像素有一定的要求。然而,在现有技术中,用户只能用肉眼识别图片是否清晰,该人为识别图片清晰度得出的设计方案无法尽量精准的满足工艺需求,导致产出的服装上图片清晰度不佳,因此降低了服装的质量以及用户的体验。When the user zooms the picture, the pixels of the picture will change, because the process is processed on the clothing, so there are certain requirements for the picture pixels. However, in the prior art, the user can only use the naked eye to recognize whether the picture is clear, and the design scheme obtained by the person for recognizing the picture clarity cannot satisfy the process requirement as accurately as possible, resulting in poor image clarity of the produced clothing. Reduce the quality of the clothing and the user experience.
申请内容Application content
本申请实施方式主要解决的技术问题是提供一种图片质量评级方法、装置以及终端设备,能够在用户设计服装对图片进行缩放时,实时的显示图片质量等级。The technical problem to be solved by the embodiments of the present application is to provide a picture quality rating method, device and terminal device, which can display the picture quality level in real time when the user designs the clothing to zoom the picture.
为解决上述技术问题,本申请采用的一个技术方案是:提供一种图片质量评级方法,所述方法包括:获取被选定服装模板,显示与所述服装模板对应的服装图片;获取用户从预先保存的素材库中选择的第一图片,在所述服装图片上的预定位置或用户选定位置上显示所述第一图片;判断所述第一图片是否被放大或缩小为第二图片;当判定所述第一图片被放大或缩小为所述第二图片时,根据所述第二图片的面积与所述第一图片的面积的比例,计算所述第二图片像素;查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别,其中,所述质量评级表用于记录所述至少两个预设像素与图片质量级别的对应关系;以及输出并显 示所述第二图片像素对应的图片质量级别。In order to solve the above technical problem, a technical solution adopted by the present application is to provide a picture quality rating method, the method comprising: acquiring a selected clothing template, displaying a clothing picture corresponding to the clothing template; acquiring the user from the advance a first picture selected in the saved material library, displaying the first picture on a predetermined position or a user selected position on the clothing picture; determining whether the first picture is enlarged or reduced to a second picture; When determining that the first picture is enlarged or reduced to the second picture, calculating the second picture pixel according to a ratio of an area of the second picture to an area of the first picture; querying a quality rating table, Determining a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, wherein the quality rating table is used to record the at least Correspondence between two preset pixels and picture quality level; and output and display Showing a picture quality level corresponding to the second picture pixel.
其中,所述“查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别”,具体为:查询所述质量评级表以确定与所述第二图片像素的差值的绝对值最小的预设像素,并将其设定为第一预设像素;以及查询所述质量评级表以确定与所述第一预设像素对应的图片质量级别,并将其设定为所述第二图片像素对应的图片质量级别。The Query Quality Rating Table determines a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, specifically Querying the quality rating table to determine a preset pixel having the smallest absolute value of the difference from the second picture pixel, and setting it as the first preset pixel; and querying the quality rating table to determine a picture quality level corresponding to the first preset pixel, and setting the picture quality level corresponding to the second picture pixel.
其中,所述“输出并显示所述第二图片像素对应的图片质量级别”,具体为:以数值形式输出并显示所述第二图片像素对应的图片质量级别。The outputting and displaying the picture quality level corresponding to the second picture pixel is specifically: outputting and displaying the picture quality level corresponding to the second picture pixel in a numerical form.
其中,所述质量评级表中还记录有图片质量级别与图形元素的对应关系,所述“输出并显示所述第二图片像素对应的图片质量级别”具体为:查询与所述第二图片像素对应的图片质量级别相对应的图形元素;以及输出并显示所述图形元素。The image quality level corresponding to the graphic element is also recorded in the quality rating table, and the “output and display the image quality level corresponding to the second image pixel” is specifically: querying and the second image pixel a corresponding graphic quality level corresponding to the graphic element; and outputting and displaying the graphic element.
为解决上述技术问题,本申请采用的另一个技术方案是:提供一种图片质量评级装置,包括:模板获取模块,用于获取被选定的服装模板,显示与所述服装模板对应的服装图片;选定模块,用于获取用户从预先保存的素材库中选择的第一图片,在所述服装图片上的预定位置或用户选定位置上显示所述第一图片;判定模块,用于判断所述第一图片是否被放大或缩小为第二图片;计算模块,用于当所述判定模块判定所述第一图片被放大或缩小为所述第二图片时,根据所述第二图片的面积与所述第一图片的面积的比例,计算所述第二图片像素;评级模块,用于查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别,其中,所述质量评级表用于记录所述至少两个预设像素与图片质量级别的对应关系;以及输出模块,用于输出并显示所述第二图片像素对应的图片质量级别。In order to solve the above technical problem, another technical solution adopted by the present application is to provide a picture quality rating device, including: a template obtaining module, configured to acquire a selected clothing template, and display a clothing picture corresponding to the clothing template. a selection module, configured to acquire a first picture selected by a user from a pre-saved material library, display the first picture on a predetermined position or a user-selected position on the clothing picture; and a determining module, configured to determine Whether the first picture is enlarged or reduced to a second picture; and a calculating module, configured to: when the determining module determines that the first picture is enlarged or reduced to the second picture, according to the second picture a ratio of an area to an area of the first picture, the second picture pixel; a rating module, configured to query a quality rating table, according to the second picture pixel and at least two preset pixels in the quality rating table a numerical relationship determining a picture quality level corresponding to the second picture pixel, wherein the quality rating table is used to record the at least two preset pixels and figures Quality levels corresponding relationship; and an output means for outputting and displaying the image quality level corresponding to the second image pixel.
其中,所述评级模块具体包括:预设像素获取模块,用于查询所述质量评级表以确定与所述第二图片像素的差值的绝对值最小的预设像素,并将其设定为第一预设像素;以及质量级别确定模块,用于查询所 述质量评级表以确定与所述第一预设像素对应的图片质量级别,并将其设定为所述第二图片像素对应的图片质量级别。The rating module specifically includes: a preset pixel acquiring module, configured to query the quality rating table to determine a preset pixel having a minimum absolute value of a difference from the second picture pixel, and set the a first preset pixel; and a quality level determining module for querying the location Determining a quality rating table to determine a picture quality level corresponding to the first preset pixel and setting it to a picture quality level corresponding to the second picture pixel.
其中,所述输出模块具体用于以数值形式输出并显示所述第二图片像素对应的图片质量级别。The output module is specifically configured to output and display a picture quality level corresponding to the second picture pixel in a numerical form.
其中,所述质量评级表中还记录有图片质量级别与图形元素的对应关系,所述输出模块具体用于查询与所述第二图片像素对应的图片质量级别相对应的图形元素;以及输出并显示所述图形元素。Wherein, the quality rating table further records a correspondence between a picture quality level and a graphic element, and the output module is specifically configured to query a graphic element corresponding to a picture quality level corresponding to the second picture pixel; The graphic element is displayed.
为解决上述技术问题,本申请采用的另一个技术方案是:提供一种终端设备,其中,所述终端设备包括:一个或多个处理器;存储器;以及一个或多个模块,所述一个或多个模块存储于所述存储器中,并由所述一个或多个处理器运行,用于:获取被选定服装模板,显示与所述服装模板对应的服装图片;获取用户从预先保存的素材库中选择的第一图片,在所述服装图片上的预定位置或用户选定位置上显示所述第一图片;判断所述第一图片是否被放大或缩小为第二图片;当判定所述第一图片被放大或缩小为所述第二图片时,根据所述第二图片的面积与所述第一图片的面积的比例,计算所述第二图片像素;查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别,其中,所述质量评级表用于记录所述至少两个预设像素与图片质量级别的对应关系;以及输出并显示所述第二图片像素对应的图片质量级别。In order to solve the above technical problem, another technical solution adopted by the present application is to provide a terminal device, where the terminal device includes: one or more processors; a memory; and one or more modules, the one or a plurality of modules are stored in the memory and are executed by the one or more processors, configured to: obtain a selected clothing template, display a clothing picture corresponding to the clothing template; and acquire a material saved by the user from the pre-preserved a first picture selected in the library, displaying the first picture on a predetermined position or a user selected position on the clothing picture; determining whether the first picture is enlarged or reduced to a second picture; When the first picture is enlarged or reduced to the second picture, the second picture pixel is calculated according to a ratio of an area of the second picture to an area of the first picture; and a quality rating table is queried according to the Determining, according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, a picture quality level corresponding to the second picture pixel, where Rating scale for recording the amount of the at least two pixels and image quality level preset corresponding relation; and outputting and displaying the image corresponding to the pixels of the second image quality level.
其中,所述一个或多个模块还用于查询所述质量评级表以确定与所述第二图片像素的差值的绝对值最小的预设像素,并将其设定为第一预设像素;以及查询所述质量评级表以确定与所述第一预设像素对应的图片质量级别,并将其设定为所述第二图片像素对应的图片质量级别。The one or more modules are further configured to query the quality rating table to determine a preset pixel having a smallest absolute value of a difference from the second picture pixel, and set the first pixel as a first preset pixel. And querying the quality rating table to determine a picture quality level corresponding to the first preset pixel, and setting it as a picture quality level corresponding to the second picture pixel.
本申请实施方式的有益效果是:区别于现有技术的情况,本申请实施方式当用户对服装上的图片进行缩放设计时,计算缩放后的像素,并根据预先设定的质量评级表,对缩放后的图片的像素进行评级和实时显示,在设计过程中实时提示图片质量评级,避免通过肉眼确认所导致的设计清晰度不佳,使得图片质量尽量满足服装加工工艺,从而使服装设 计更为高效高质量,提升了用户体验。The beneficial effects of the embodiments of the present application are: different from the prior art, when the user scales the picture on the clothing, the scaled pixel is calculated, and according to a preset quality rating table, The pixels of the scaled picture are graded and displayed in real time, and the picture quality rating is promptly displayed in the design process to avoid poor design definition caused by visual confirmation, so that the picture quality satisfies the garment processing technology as much as possible, thereby making the clothing design It is more efficient and high quality, which improves the user experience.
附图说明DRAWINGS
图1是本申请第一实施方式中的图片质量评级方法的执行流程图;1 is a flowchart of execution of a picture quality rating method in a first embodiment of the present application;
图2是本申请第二实施方式中,所述“查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别”的执行流程图;2 is a second embodiment of the present application, the query quality rating table determines the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table. The execution flow chart of the corresponding picture quality level";
图3是本申请第四实施方式中输出图片质量级别的示意图;3 is a schematic diagram of an output picture quality level in a fourth embodiment of the present application;
图4是本申请第一实施方式中的图片质量评级装置的结构示意图;4 is a schematic structural diagram of a picture quality rating apparatus in a first embodiment of the present application;
图5是本申请第二实施方式中的图片质量评级装置的结构示意图;FIG. 5 is a schematic structural diagram of a picture quality rating apparatus in a second embodiment of the present application; FIG.
图6是本申请一实施方式中的终端设备的结构示意图。FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
具体实施方式detailed description
为了便于理解本申请,下面结合附图和具体实施方式,对本申请进行更详细的说明。In order to facilitate the understanding of the present application, the present application will be described in more detail below with reference to the accompanying drawings and specific embodiments.
除非另有定义,本说明书所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本说明书中在本申请的说明书中所使用的术语只是为了描述具体的实施方式的目的,不是用于限制本申请。本说明书所使用的术语“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used in the specification are the same meaning The terms used in the specification of the present application are for the purpose of describing the specific embodiments, and are not intended to limit the application. The term "and/or" used in this specification includes any and all combinations of one or more of the associated listed items.
需要说明的是,本申请实施方式提供的图片质量评级方法的执行主体可以是终端,例如,智能电视、智能手机、平板电脑、笔记本电脑、台式电脑等。It should be noted that the execution body of the picture quality rating method provided by the embodiment of the present application may be a terminal, for example, a smart TV, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
请参阅图1,是本申请第一实施方式中的图片质量评级方法的执行流程图。该方法包括:Please refer to FIG. 1 , which is a flowchart of execution of a picture quality rating method in the first embodiment of the present application. The method includes:
步骤S10:获取被选定服装模板,显示与所述服装模板对应的服装图片。Step S10: Acquire a selected clothing template, and display a clothing picture corresponding to the clothing template.
步骤S11:获取用户从预先保存的素材库中选择的第一图片,在所述服装图片上的预定位置或用户选定位置上显示所述第一图片。Step S11: Acquire a first picture selected by the user from the pre-saved material library, and display the first picture on a predetermined location on the clothing picture or a user-selected location.
步骤S12:判断所述第一图片是否被放大或缩小为第二图片。 Step S12: Determine whether the first picture is enlarged or reduced to a second picture.
步骤S13:当判定所述第一图片被放大或缩小为所述第二图片时,根据所述第二图片的面积与所述第一图片的面积的比例,计算所述第二图片像素。Step S13: When it is determined that the first picture is enlarged or reduced to the second picture, the second picture pixel is calculated according to a ratio of an area of the second picture to an area of the first picture.
步骤S14:查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别,其中,所述质量评级表用于记录所述至少两个预设像素与图片质量级别的对应关系。Step S14: Query a quality rating table, and determine a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, where the quality The rating table is used to record the correspondence between the at least two preset pixels and the picture quality level.
步骤S15:输出并显示所述第二图片像素对应的图片质量级别。Step S15: output and display a picture quality level corresponding to the second picture pixel.
请参阅图2,是本申请第二实施方式中,所述“查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别”的执行流程图。在第二实施方式中,所述步骤S14具体包括:Referring to FIG. 2, in the second embodiment of the present application, the “query quality rating table determines the number according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table. The execution flow chart of the picture quality level corresponding to the two picture pixels. In the second embodiment, the step S14 specifically includes:
步骤S20:查询所述质量评级表以确定与所述第二图片像素的差值的绝对值最小的预设像素,并将其设定为第一预设像素。Step S20: Query the quality rating table to determine a preset pixel having the smallest absolute value of the difference from the second picture pixel, and set it as the first preset pixel.
步骤S21:查询所述质量评级表以确定与所述第一预设像素对应的图片质量级别,并将其设定为所述第二图片像素对应的图片质量级别。Step S21: Query the quality rating table to determine a picture quality level corresponding to the first preset pixel, and set it as a picture quality level corresponding to the second picture pixel.
在本申请第三实施方式中所述步骤S15具体为:以数值形式输出并显示所述第二图片像素对应的图片质量级别。In the third embodiment of the present application, the step S15 is specifically: outputting and displaying the picture quality level corresponding to the second picture pixel in a numerical form.
请参阅图3,是本申请第四实施方式中输出图片质量级别的示意图。在本申请第四实施方式中,所述质量评级表中还记录有图片质量级别与图形元素的对应关系,所述步骤S15具体为:Please refer to FIG. 3 , which is a schematic diagram of the output picture quality level in the fourth embodiment of the present application. In the fourth embodiment of the present application, the corresponding relationship between the picture quality level and the graphic element is also recorded in the quality rating table, and the step S15 is specifically:
查询与所述第二图片像素对应的图片质量级别相对应的图形元素;以及Querying a graphic element corresponding to a picture quality level corresponding to the second picture pixel;
输出并显示所述图形元素。The graphic element is output and displayed.
在图3中,以图形元素中高亮度的图形数量来表示图片质量级别,越多的高亮度笑脸图形,表示越高的图片质量级别。例如,在本图中,图片质量级别有5个级别,4个高亮度图形,即表明图片质量级别为4级。In FIG. 3, the picture quality level is represented by the number of high-brightness graphics in the graphic element, and the more high-brightness smiley graphics, the higher the picture quality level. For example, in this figure, the picture quality level has 5 levels and 4 high-brightness graphics, which means that the picture quality level is 4 levels.
参阅图4,是本申请第一实施方式中的图片质量评级装置的结构示 意图。图片质量评级装置40包括模板获取模块41、选定模块42、判定模块43、计算模块44、评级模块45、输出模块46。Referring to FIG. 4, it is a structural diagram of a picture quality rating apparatus in the first embodiment of the present application. intention. The picture quality rating device 40 includes a template acquisition module 41, a selection module 42, a determination module 43, a calculation module 44, a rating module 45, and an output module 46.
所述模板获取模块41用于获取被选定的服装模板,显示与所述服装模板对应的服装图片。The template obtaining module 41 is configured to acquire a selected clothing template, and display a clothing picture corresponding to the clothing template.
所述选定模块42用于获取用户从预先保存的素材库中选择的第一图片,在所述服装图片上的预定位置或用户选定位置上显示所述第一图片。The selecting module 42 is configured to acquire a first picture selected by a user from a pre-saved material library, and display the first picture on a predetermined location on the clothing picture or a user selected location.
所述判定模块43用于判断所述第一图片是否被放大或缩小为第二图片。The determining module 43 is configured to determine whether the first picture is enlarged or reduced to a second picture.
所述计算模块44用于当所述判定模块判定所述第一图片被放大或缩小为所述第二图片时,根据所述第二图片的面积与所述第一图片的面积的比例,计算所述第二图片像素。The calculating module 44 is configured to calculate, according to a ratio of an area of the second picture to an area of the first picture, when the determining module determines that the first picture is enlarged or reduced to the second picture The second picture pixel.
所述评级模块45用于查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别,其中,所述质量评级表用于记录所述至少两个预设像素与图片质量级别的对应关系。The rating module 45 is configured to query a quality rating table, and determine a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, where The quality rating table is configured to record a correspondence between the at least two preset pixels and a picture quality level.
所述输出模块46用于输出并显示所述第二图片像素对应的图片质量级别。The output module 46 is configured to output and display a picture quality level corresponding to the second picture pixel.
参阅图5,是本申请第二实施方式中的图片质量评级装置的结构示意图。在该实施方式中,所述评级模块45具体包括预设像素获取模块51以及质量级别确定模块52。Referring to FIG. 5, it is a schematic structural diagram of a picture quality rating apparatus in a second embodiment of the present application. In this embodiment, the rating module 45 specifically includes a preset pixel acquiring module 51 and a quality level determining module 52.
所述预设像素获取模块51用于查询所述质量评级表以确定与所述第二图片像素的差值的绝对值最小的预设像素,并将其设定为第一预设像素。The preset pixel obtaining module 51 is configured to query the quality rating table to determine a preset pixel having the smallest absolute value of the difference from the second picture pixel, and set it as the first preset pixel.
所述质量级别确定模块52用于查询所述质量评级表以确定与所述第一预设像素对应的图片质量级别,并将其设定为所述第二图片像素对应的图片质量级别。The quality level determining module 52 is configured to query the quality rating table to determine a picture quality level corresponding to the first preset pixel, and set the picture quality level corresponding to the second picture pixel.
其中,在一实施方式中,所述输出模块具体用于以数值形式输出并显示所述第二图片像素对应的图片质量级别。 In an embodiment, the output module is specifically configured to output and display a picture quality level corresponding to the second picture pixel in a numerical form.
其中,在另一实施方式中,所述质量评级表中还记录有图片质量级别与图形元素的对应关系,所述输出模块具体用于查询与所述第二图片像素对应的图片质量级别相对应的图形元素;以及输出并显示所述图形元素。In another embodiment, the quality rating table further records a correspondence between a picture quality level and a graphic element, where the output module is specifically configured to query a picture quality level corresponding to the second picture pixel. Graphic element; and outputting and displaying the graphic element.
请参阅图6,是本申请一实施方式中的终端设备的结构示意图。终端设备60包括处理器61、存储器62、总线系统63。其中,处理器61和存储器62通过总线系统63相连,该存储器62用于存储指令,该处理器61用于执行该存储器62存储的指令,具体用于:获取被选定服装模板,显示与所述服装模板对应的服装图片;获取用户从预先保存的素材库中选择的第一图片,在所述服装图片上的预定位置或用户选定位置上显示所述第一图片;判断所述第一图片是否被放大或缩小为第二图片;当判定所述第一图片被放大或缩小为所述第二图片时,根据所述第二图片的面积与所述第一图片的面积的比例,计算所述第二图片像素;查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别,其中,所述质量评级表用于记录所述至少两个预设像素与图片质量级别的对应关系;以及输出并显示所述第二图片像素对应的图片质量级别。Please refer to FIG. 6 , which is a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device 60 includes a processor 61, a memory 62, and a bus system 63. The processor 61 and the memory 62 are connected by a bus system 63 for storing instructions, and the processor 61 is configured to execute the instructions stored in the memory 62, specifically for: acquiring the selected clothing template, displaying and a clothing picture corresponding to the clothing template; acquiring a first picture selected by the user from the pre-saved material library, displaying the first picture at a predetermined location on the clothing picture or a user selected location; determining the first Whether the picture is enlarged or reduced to a second picture; when it is determined that the first picture is enlarged or reduced to the second picture, calculating according to a ratio of an area of the second picture to an area of the first picture a second picture pixel; a query quality rating table, determining a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, wherein The quality rating table is configured to record a correspondence between the at least two preset pixels and a picture quality level; and output and display the second picture pixel corresponding to Picture quality levels.
在另一实施方式中,所述处理器61还用于查询所述质量评级表以确定与所述第二图片像素的差值的绝对值最小的预设像素,并将其设定为第一预设像素;以及查询所述质量评级表以确定与所述第一预设像素对应的图片质量级别,并将其设定为所述第二图片像素对应的图片质量级别。In another embodiment, the processor 61 is further configured to query the quality rating table to determine a preset pixel having the smallest absolute value of the difference from the second picture pixel, and set it as the first Presetting pixels; and querying the quality rating table to determine a picture quality level corresponding to the first preset pixel, and setting the picture quality level corresponding to the second picture pixel.
存储器62可以是非易失性计算机可读存储介质,以用于存储计算机可执行指令,该指令在由一个或多个处理器61执行时,可以使得处理器61执行以上方法实施方式的步骤,比如,如图1描述的步骤S10~S15,或者如图2描述的步骤S20至步骤S21。The memory 62 can be a non-transitory computer readable storage medium for storing computer-executable instructions that, when executed by one or more processors 61, can cause the processor 61 to perform the steps of the above method embodiments, such as Steps S10 to S15 as described in FIG. 1, or steps S20 to S21 as described in FIG. 2.
也可以使得处理器61执行以上质量评级装置各实施方式中的各模块的功能,比如,如图4所示模块41至46的功能,如图5所示模块51以及52的功能。 The processor 61 may also be caused to perform the functions of the various modules in the various embodiments of the above quality rating apparatus, such as the functions of the modules 41 to 46 as shown in FIG. 4, and the functions of the modules 51 and 52 as shown in FIG.
计算机可执行指令也可以在任何非易失性计算机可读存储介质内存储和/或传输,以便由指令执行系统、装置或设备使用,或者结合指令执行系统、装置或设备使用,其中该指令执行系统、装置或设备诸如基于计算机的系统、包含处理器的系统或可以从指令执行系统、装置或设备获取指令并执行该指令的其他系统。出于本文档的目的,“非易失性计算机可读存储介质”可以是有形地包含或存储计算机可执行指令的任何介质,该计算机可执行指令可以用于由指令执行系统、设备或系统使用或者结合指令执行系统、装置或设备使用。非易失性计算机可读存着介质可以包括但不限于磁的、光的和/或半导体存储装置。这些存储装置的示例包括磁盘、基于CD、DVD或蓝光技术的光盘以及持久性固态存储器(诸如,闪存、固态驱动器等)。The computer executable instructions may also be stored and/or transferred in any non-transitory computer readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, where the instructions are executed. A system, apparatus, or device, such as a computer-based system, a system containing a processor, or other system that can obtain instructions from, and execute instructions from, an instruction execution system, apparatus, or device. For the purposes of this document, a "non-transitory computer readable storage medium" can be any medium that tangibly contains or stores computer-executable instructions, which can be used by an instruction execution system, device, or system Or use in conjunction with an instruction execution system, device, or device. Non-volatile computer readable storage media may include, but are not limited to, magnetic, optical, and/or semiconductor storage devices. Examples of such storage devices include magnetic disks, CD-ROM based on CD, DVD or Blu-ray technology, and persistent solid-state memories (such as flash memory, solid state drives, etc.).
应当理解,在本申请实施例中,该处理器61可以是中央处理单元(CentralProcessingUnit,简称为“CPU”)。该处理器91还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor 61 may be a central processing unit (Central Processing Unit, abbreviated as "CPU"). The processor 91 can also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete Hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该总线系统63除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统63。The bus system 63 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 63 in the figure.
在本申请实施方式中,终端设备60不限于图6的部件和配置,还可以包括以多种配置形式的其他或附加部件。In the embodiment of the present application, the terminal device 60 is not limited to the components and configurations of FIG. 6, and may include other or additional components in various configurations.
在实现过程中,上述方法的各步骤或装置的各模块可以通过处理器61中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施方式所公开的方法的步骤或管理服务器的各单元可以直接体现为硬件处理器执行完成。或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器62,处理器61读取存储器62中的信息,结合其硬件完 成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method or each module of the device may be completed by an integrated logic circuit of hardware in the processor 61 or an instruction in the form of software. The steps of the method disclosed in the embodiments of the present application or the units of the management server may be directly embodied as hardware processor execution completion. Or complete with a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 62, and the processor 61 reads the information in the memory 62 and combines the hardware thereof. Into the steps of the above method. To avoid repetition, it will not be described in detail here.
以上方案,本申请实施方式中,当用户对服装上的图片进行缩放设计时,计算缩放后的像素,并根据预先设定的质量评级表,对缩放后的图片的像素进行评级和实时显示,在设计过程中实时提示图片质量评级,避免通过肉眼确认所导致的设计清晰度不佳,使得图片质量尽量满足服装加工工艺,从而使服装设计更为高效高质量,提升了用户体验。In the above solution, in the embodiment of the present application, when the user scales the picture on the clothing, the scaled pixel is calculated, and the pixels of the scaled picture are ranked and displayed in real time according to a preset quality rating table. During the design process, the picture quality rating is promptly displayed to avoid poor design clarity caused by visual confirmation, so that the picture quality can satisfy the garment processing technology as much as possible, so that the clothing design is more efficient and high quality, and the user experience is improved.
需要说明的是,本申请的说明书及其附图中给出了本申请的较佳的实施方式,但是,本申请可以通过许多不同的形式来实现,并不限于本说明书所描述的实施方式,这些实施方式不作为对本申请内容的额外限制,提供这些实施方式的目的是使对本申请的公开内容的理解更加透彻全面。并且,上述各技术特征继续相互组合,形成未在上面列举的各种实施方式,均视为本申请说明书记载的范围;进一步地,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,而所有这些改进和变换都应属于本申请所附权利要求的保护范围。 It should be noted that the preferred embodiments of the present application are given in the specification and the drawings of the present application, but the present application can be implemented in many different forms, and is not limited to the embodiments described in the present specification. These embodiments are not intended to be limiting of the scope of the present application, and the embodiments are provided to make the understanding of the disclosure of the present application more comprehensive. Further, each of the above technical features is further combined with each other to form various embodiments that are not listed above, and are considered to be within the scope of the specification of the present application; further, those skilled in the art can improve or change according to the above description. All such improvements and modifications are intended to fall within the scope of the appended claims.

Claims (10)

  1. 一种图片质量评级方法,其特征在于,所述方法包括:A picture quality rating method, characterized in that the method comprises:
    获取被选定服装模板,显示与所述服装模板对应的服装图片;Obtaining a selected clothing template, and displaying a clothing picture corresponding to the clothing template;
    获取用户从预先保存的素材库中选择的第一图片,在所述服装图片上的预定位置或用户选定位置上显示所述第一图片;Obtaining a first picture selected by a user from a pre-saved material library, displaying the first picture on a predetermined location on the clothing picture or a user selected location;
    判断所述第一图片是否被放大或缩小为第二图片;Determining whether the first picture is enlarged or reduced to a second picture;
    当判定所述第一图片被放大或缩小为所述第二图片时,根据所述第二图片的面积与所述第一图片的面积的比例,计算所述第二图片像素;When it is determined that the first picture is enlarged or reduced to the second picture, calculating the second picture pixel according to a ratio of an area of the second picture to an area of the first picture;
    查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别,其中,所述质量评级表用于记录所述至少两个预设像素与图片质量级别的对应关系;以及Querying a quality rating table, determining a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, wherein the quality rating table is used Recording a correspondence between the at least two preset pixels and a picture quality level;
    输出并显示所述第二图片像素对应的图片质量级别。Outputting and displaying a picture quality level corresponding to the second picture pixel.
  2. 根据权利要求1所述的图片质量评级方法,其特征在于,所述“查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别”,具体为:The picture quality rating method according to claim 1, wherein the "query quality rating table determines the location based on the numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table. The picture quality level corresponding to the second picture pixel, specifically:
    查询所述质量评级表以确定与所述第二图片像素的差值的绝对值最小的预设像素,并将其设定为第一预设像素;以及Querying the quality rating table to determine a preset pixel having the smallest absolute value of the difference from the second picture pixel, and setting it as the first preset pixel;
    查询所述质量评级表以确定与所述第一预设像素对应的图片质量级别,并将其设定为所述第二图片像素对应的图片质量级别。Querying the quality rating table to determine a picture quality level corresponding to the first preset pixel, and setting it as a picture quality level corresponding to the second picture pixel.
  3. 根据权利要求1~2任意一项所述的图片质量评级方法,其特征在于,所述“输出并显示所述第二图片像素对应的图片质量级别”,具体为:以数值形式输出并显示所述第二图片像素对应的图片质量级别。The picture quality rating method according to any one of claims 1 to 2, wherein the "outputting and displaying a picture quality level corresponding to the second picture pixel" is specifically: outputting and displaying the value in a numerical form The picture quality level corresponding to the second picture pixel.
  4. 根据权利要求1~2任意一项所述的图片质量评级方法,其特征在于,所述质量评级表中还记录有图片质量级别与图形元素的对应关系,所述“输出并显示所述第二图片像素对应的图片质量级别”具体为:The picture quality rating method according to any one of claims 1 to 2, wherein the quality rating table further records a correspondence between a picture quality level and a graphic element, and the outputting and displaying the second The image quality level corresponding to the image pixel is specifically:
    查询与所述第二图片像素对应的图片质量级别相对应的图形元素; 以及Querying a graphic element corresponding to a picture quality level corresponding to the second picture pixel; as well as
    输出并显示所述图形元素。The graphic element is output and displayed.
  5. 一种图片质量评级装置,其特征在于,包括:A picture quality rating device, comprising:
    模板获取模块,用于获取被选定的服装模板,显示与所述服装模板对应的服装图片;a template obtaining module, configured to acquire a selected clothing template, and display a clothing picture corresponding to the clothing template;
    选定模块,用于获取用户从预先保存的素材库中选择的第一图片,在所述服装图片上的预定位置或用户选定位置上显示所述第一图片;a selection module, configured to acquire a first picture selected by a user from a pre-saved material library, and display the first picture on a predetermined location on the clothing picture or a user-selected location;
    判定模块,用于判断所述第一图片是否被放大或缩小为第二图片;a determining module, configured to determine whether the first picture is enlarged or reduced to a second picture;
    计算模块,用于当所述判定模块判定所述第一图片被放大或缩小为所述第二图片时,根据所述第二图片的面积与所述第一图片的面积的比例,计算所述第二图片像素;a calculating module, configured to calculate, according to a ratio of an area of the second picture to an area of the first picture, when the determining module determines that the first picture is enlarged or reduced to the second picture Second picture pixel;
    评级模块,用于查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别,其中,所述质量评级表用于记录所述至少两个预设像素与图片质量级别的对应关系;以及a rating module, configured to query a quality rating table, and determine a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, where The quality rating table is configured to record a correspondence between the at least two preset pixels and a picture quality level;
    输出模块,用于输出并显示所述第二图片像素对应的图片质量级别。And an output module, configured to output and display a picture quality level corresponding to the second picture pixel.
  6. 根据权利要求5所述的图片质量评级装置,其特征在于,所述评级模块具体包括:The picture quality rating device according to claim 5, wherein the rating module comprises:
    预设像素获取模块,用于查询所述质量评级表以确定与所述第二图片像素的差值的绝对值最小的预设像素,并将其设定为第一预设像素;以及a preset pixel acquiring module, configured to query the quality rating table to determine a preset pixel having a minimum absolute value of a difference from the second picture pixel, and set the first pixel as a first preset pixel;
    质量级别确定模块,用于查询所述质量评级表以确定与所述第一预设像素对应的图片质量级别,并将其设定为所述第二图片像素对应的图片质量级别。a quality level determining module, configured to query the quality rating table to determine a picture quality level corresponding to the first preset pixel, and set the picture quality level corresponding to the second picture pixel.
  7. 根据权利要求5~6任意一项所述的图片质量评级装置,其特征在于,所述输出模块具体用于以数值形式输出并显示所述第二图片像素对应的图片质量级别。The picture quality rating device according to any one of claims 5 to 6, wherein the output module is specifically configured to output and display a picture quality level corresponding to the second picture pixel in a numerical form.
  8. 根据权利要求5~6任意一项所述的图片质量评级方法,其特征在于,所述质量评级表中还记录有图片质量级别与图形元素的对应关系,所述 输出模块具体用于查询与所述第二图片像素对应的图片质量级别相对应的图形元素;以及输出并显示所述图形元素。The picture quality rating method according to any one of claims 5 to 6, wherein the quality rating table further records a correspondence between a picture quality level and a graphic element, The output module is specifically configured to query a graphic element corresponding to a picture quality level corresponding to the second picture pixel; and output and display the graphic element.
  9. 一种终端设备,其中,所述终端设备包括:A terminal device, where the terminal device includes:
    一个或多个处理器;One or more processors;
    存储器;以及Memory;
    一个或多个模块,所述一个或多个模块存储于所述存储器中,并由所述一个或多个处理器运行,用于:One or more modules, the one or more modules being stored in the memory and executed by the one or more processors for:
    获取被选定服装模板,显示与所述服装模板对应的服装图片;Obtaining a selected clothing template, and displaying a clothing picture corresponding to the clothing template;
    获取用户从预先保存的素材库中选择的第一图片,在所述服装图片上的预定位置或用户选定位置上显示所述第一图片;Obtaining a first picture selected by a user from a pre-saved material library, displaying the first picture on a predetermined location on the clothing picture or a user selected location;
    判断所述第一图片是否被放大或缩小为第二图片;Determining whether the first picture is enlarged or reduced to a second picture;
    当判定所述第一图片被放大或缩小为所述第二图片时,根据所述第二图片的面积与所述第一图片的面积的比例,计算所述第二图片像素;When it is determined that the first picture is enlarged or reduced to the second picture, calculating the second picture pixel according to a ratio of an area of the second picture to an area of the first picture;
    查询质量评级表,根据所述第二图片像素与所述质量评级表中至少两个预设像素的数值关系,确定所述第二图片像素对应的图片质量级别,其中,所述质量评级表用于记录所述至少两个预设像素与图片质量级别的对应关系;以及Querying a quality rating table, determining a picture quality level corresponding to the second picture pixel according to a numerical relationship between the second picture pixel and at least two preset pixels in the quality rating table, wherein the quality rating table is used Recording a correspondence between the at least two preset pixels and a picture quality level;
    输出并显示所述第二图片像素对应的图片质量级别。Outputting and displaying a picture quality level corresponding to the second picture pixel.
  10. 根据权利要求9所述的终端设备,其特征在于,所述一个或多个模块还用于查询所述质量评级表以确定与所述第二图片像素的差值的绝对值最小的预设像素,并将其设定为第一预设像素;以及The terminal device according to claim 9, wherein the one or more modules are further configured to query the quality rating table to determine a preset pixel having a minimum absolute value of a difference from the second picture pixel And set it as the first preset pixel;
    查询所述质量评级表以确定与所述第一预设像素对应的图片质量级别,并将其设定为所述第二图片像素对应的图片质量级别。 Querying the quality rating table to determine a picture quality level corresponding to the first preset pixel, and setting it as a picture quality level corresponding to the second picture pixel.
PCT/CN2017/103719 2016-09-27 2017-09-27 Image quality rating method, device and terminal apparatus WO2018059453A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610855495.5 2016-09-27
CN201610855495.5A CN107871305B (en) 2016-09-27 2016-09-27 Picture quality rating method and device and terminal equipment

Publications (1)

Publication Number Publication Date
WO2018059453A1 true WO2018059453A1 (en) 2018-04-05

Family

ID=61750852

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103719 WO2018059453A1 (en) 2016-09-27 2017-09-27 Image quality rating method, device and terminal apparatus

Country Status (2)

Country Link
CN (1) CN107871305B (en)
WO (1) WO2018059453A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110363241A (en) * 2019-07-11 2019-10-22 合肥联宝信息技术有限公司 A kind of picture comparative approach and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102181994A (en) * 2011-04-25 2011-09-14 张爱平 Pattern manufacturing method and weaving system for textile
CN103542937A (en) * 2013-10-08 2014-01-29 杭州慕锐网络技术有限公司 Digital printing color difference inspecting method
CN105096353A (en) * 2014-05-05 2015-11-25 腾讯科技(深圳)有限公司 Image processing method and device
US9418399B1 (en) * 2012-06-12 2016-08-16 Armorworks Holdings, Inc. Hybrid image camouflage

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6538694B1 (en) * 1997-12-04 2003-03-25 Victor Company Of Japan, Limited Image pickup apparatus equipped with compatible-with-zooming type contour compensation circuit, compatible-with-image-pickup-conditions type image output circuit, and compatible-with-all-pixel-readout-system-solid-image-pickup-element type electronic zoom circuit
JP2003263546A (en) * 2002-03-08 2003-09-19 Matsushita Electric Ind Co Ltd Information evaluation system, information evaluation method, its program, and information evaluation device
CN102073985B (en) * 2010-12-23 2012-05-09 清华大学 Method and device for objectively evaluating scaled image quality by matching pixel points
JP5492233B2 (en) * 2012-02-07 2014-05-14 富士フイルム株式会社 Image evaluation apparatus, image evaluation method, and program
CN103426173B (en) * 2013-08-12 2017-05-10 浪潮电子信息产业股份有限公司 Objective evaluation method for stereo image quality
CN104462873A (en) * 2013-09-13 2015-03-25 北大方正集团有限公司 Picture processing method and picture processing device
CN103996192B (en) * 2014-05-12 2017-01-11 同济大学 Non-reference image quality evaluation method based on high-quality natural image statistical magnitude model
CN105843386B (en) * 2016-03-22 2019-05-17 浙江诺和品牌管理有限公司 A kind of market virtual fitting system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102181994A (en) * 2011-04-25 2011-09-14 张爱平 Pattern manufacturing method and weaving system for textile
US9418399B1 (en) * 2012-06-12 2016-08-16 Armorworks Holdings, Inc. Hybrid image camouflage
CN103542937A (en) * 2013-10-08 2014-01-29 杭州慕锐网络技术有限公司 Digital printing color difference inspecting method
CN105096353A (en) * 2014-05-05 2015-11-25 腾讯科技(深圳)有限公司 Image processing method and device

Also Published As

Publication number Publication date
CN107871305A (en) 2018-04-03
CN107871305B (en) 2020-04-21

Similar Documents

Publication Publication Date Title
TWI462035B (en) Object detection metadata
TWI694381B (en) Image processing method and device
TWI736765B (en) Image processing method, device, equipment and storage medium
TW201839704A (en) Image-based vehicle damage determining method, apparatus, and electronic device
CN110888521B (en) Mobile terminal and application program running method thereof
WO2017024964A1 (en) Object-associated image quick preview method and device
US8310582B2 (en) Digital image processing apparatus and method for displaying a plurality of images
JP2017130929A (en) Correction method and correction device for document image acquired by imaging apparatus
CN110544214A (en) Image restoration method and device and electronic equipment
WO2016154806A1 (en) Automatic zooming method and device
WO2022042679A1 (en) Picture processing method and apparatus, device, and storage medium
KR102254676B1 (en) Image processing circuit for processing image on-the fly and devices having the same
WO2018176876A1 (en) Image display method, mobile terminal, and computer storage medium
CN106940722B (en) Picture display method and device
WO2018059453A1 (en) Image quality rating method, device and terminal apparatus
TW201301121A (en) Electronic reader and page flipping method thereof
CN108932703B (en) Picture processing method, picture processing device and terminal equipment
TWI694371B (en) Color selection method and equipment
WO2017107310A1 (en) Display interface switching method and apparatus, terminal and storage medium
CN111210472A (en) 3D positioning method, device, equipment and medium for video picture
JP2020525963A (en) Method and apparatus for comparing media characteristics
TWI595448B (en) Method for image processing, electronic apparatus, electronic apparatus readable storage medium and program apllied in electronic apparatus
JP2015032261A (en) Display device and control method
WO2017011680A1 (en) Device and method for processing data
WO2021087773A1 (en) Recognition method and apparatus, electronic device, and storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 22.08.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17854903

Country of ref document: EP

Kind code of ref document: A1