CN111080725A - Image processing method, system and equipment based on color space conversion - Google Patents

Image processing method, system and equipment based on color space conversion Download PDF

Info

Publication number
CN111080725A
CN111080725A CN201911321082.9A CN201911321082A CN111080725A CN 111080725 A CN111080725 A CN 111080725A CN 201911321082 A CN201911321082 A CN 201911321082A CN 111080725 A CN111080725 A CN 111080725A
Authority
CN
China
Prior art keywords
image
commodity
gray scale
color space
commodity image
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201911321082.9A
Other languages
Chinese (zh)
Inventor
毛霖
聂佳
吴广
丁星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Lixun Technology Co Ltd
Original Assignee
New Lixun Technology Co Ltd
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 New Lixun Technology Co Ltd filed Critical New Lixun Technology Co Ltd
Priority to CN201911321082.9A priority Critical patent/CN111080725A/en
Publication of CN111080725A publication Critical patent/CN111080725A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to the technical field of image processing, and provides an image processing method, a system and equipment based on color space conversion, wherein the method comprises the following steps: the server receives commodity image information uploaded by the mobile terminal, wherein the commodity image information comprises a commodity image and corresponding identification information; the server acquires a corresponding standard image according to the identification information; the server converts the RGB color spaces of the commodity image and the corresponding standard image into HSV color spaces; the server determines the gray scale ratio of the commodity image and the corresponding standard image, and adjusts the gray scale value of the commodity image according to the gray scale ratio; the server converts the adjusted commodity image back to the RGB color space. The invention carries out image processing based on color space conversion on the commodity image uploaded and verified by the user, and can reduce the difference between the commodity image and the shooting environment of the corresponding standard image, thereby avoiding the bad influence on the subsequent image verification caused by the difference due to the influence of the shooting environment.

Description

Image processing method, system and equipment based on color space conversion
Technical Field
The invention relates to the technical field of image processing, in particular to an image processing method, system and device based on color space conversion.
Background
In the prior art, when a consumer needs to judge the authenticity of a commodity, the commodity image is usually shot and uploaded to a corresponding commodity anti-counterfeiting and authenticating system, so that the commodity image and a corresponding standard image are matched and analyzed through the system, and commodity verification is realized. However, when the user takes the commodity image, the environment in which the user takes the commodity image is complex and various, for example, different cameras or light source conditions, so that the commodity image uploaded by the user for verification is greatly different from the actual commodity image, and further the subsequent image matching analysis result is affected.
Disclosure of Invention
In view of the above problems, the present invention provides an image processing method, system and device based on color space conversion.
The purpose of the invention is realized by adopting the following technical scheme:
the invention provides an image processing method based on color space conversion in a first aspect, which comprises the following steps:
the method comprises the steps that a server receives commodity image information uploaded by a mobile terminal, wherein the commodity image information comprises a commodity image and corresponding identification information;
the server acquires a corresponding standard image according to the identification information;
the server converts the RGB color spaces of the commodity image and the corresponding standard image into HSV color spaces;
the server determines the gray scale ratio of the commodity image and the corresponding standard image, and adjusts the gray scale value of the commodity image according to the gray scale ratio;
and the server converts the adjusted commodity image back to an RGB color space.
According to an enabling aspect of the first aspect of the invention, the method further comprises:
and the server performs matching analysis on the commodity image converted back to the RGB color space and the corresponding standard image and outputs a corresponding commodity verification result.
According to an implementation manner of the first aspect of the present invention, the identification information is a name of the commodity and/or corresponding source code information.
According to an implementable aspect of the first aspect of the present invention, the adjusting the gradation value of the product image according to the gradation ratio includes:
and the server calculates the gray scale adjustment value of the commodity image according to the gray scale ratio and adjusts the gray scale value of the commodity image according to the gray scale adjustment value.
A second aspect of the present invention provides an image processing system based on color space conversion, the system comprising:
the receiving module is configured to receive commodity image information uploaded by the mobile terminal, and the commodity image information comprises a commodity image and corresponding identification information;
the acquisition module is configured to acquire a corresponding standard image according to the identification information;
the first image conversion module is configured to convert the RGB color spaces of the commodity image and the corresponding standard image into HSV color spaces;
a gray scale adjusting module configured to determine a gray scale ratio of the commodity image and the corresponding standard image, and adjust a gray scale value of the commodity image according to the gray scale ratio;
a second image conversion module configured to convert the adjusted commodity image back to an RGB color space.
According to an enabling manner of the second aspect of the invention, the system further comprises:
and the image verification module is configured to perform matching analysis on the commodity image converted back to the RGB color space and the corresponding standard image and output a corresponding commodity verification result.
A third aspect of the invention provides an image processing apparatus based on color space conversion, characterized by comprising a processor and being configured to perform the method of the invention as described above.
A fourth aspect of the invention provides an image processing apparatus based on color space conversion, the apparatus comprising a device according to the invention as described above.
A fifth aspect of the invention provides an image processing apparatus based on color space conversion, the apparatus comprising one or more processors, and one or more storage media storing instructions which, when executed by the one or more processors, cause performance of the method according to the invention as described above.
A sixth aspect of the invention provides a computer storage medium storing a computer program which, when executed by a processor, performs the steps of the method according to the invention.
The invention has the beneficial effects that: according to the invention, the commodity image uploaded and verified by the user is subjected to image processing based on color space conversion, so that the difference between the shooting environment of the commodity image and the shooting environment of the corresponding standard image can be reduced, thereby avoiding the bad influence on the subsequent image verification caused by the difference due to the influence of the shooting environment, and further improving the user experience.
Drawings
The invention is further illustrated by means of the attached drawings, but the embodiments in the drawings do not constitute any limitation to the invention, and for a person skilled in the art, other drawings can be obtained on the basis of the following drawings without inventive effort.
FIG. 1 is a flowchart illustrating an image processing method based on color space conversion according to an exemplary embodiment of the present invention;
fig. 2 is a schematic structural diagram of an image processing system based on color space conversion according to an exemplary embodiment of the present invention.
Reference numerals:
the device comprises a receiving module 1, an obtaining module 2, a first image conversion module 3, a gray scale adjusting module 4, a second image conversion module 5 and an image verification module 6.
Detailed Description
The invention is further described with reference to the following examples.
Referring to fig. 1, an embodiment of the first aspect of the present invention provides an image processing method based on color space conversion, where the method includes the following steps:
the S1 server receives commodity image information uploaded by the mobile terminal, wherein the commodity image information comprises a commodity image and corresponding identification information. The mobile terminal is a terminal for a user to take pictures, and the mobile terminal can be a mobile phone, a tablet or other shooting devices. The identification information is a commodity feature for uniquely identifying the commodity, and different commodities can be distinguished through the commodity feature. In one embodiment, the identification information is a tracing code. Wherein the tracing code can be obtained by the user on the commodity package. In another implementation manner, the product identification information may be a product name, and the product name may be a name that is recognized to represent the product, or a name obtained by a user by querying a corresponding source code report.
Further, when receiving the commodity image information uploaded by the mobile terminal, the server firstly performs quality screening on the uploaded commodity image, and when judging that the commodity image does not meet the quality requirement, displays or sends prompt information for prompting the user to upload new commodity image information again to the mobile terminal. Through the image screening in advance, unnecessary image verification operation can be reduced, and the efficiency of subsequent image matching is improved.
The quality requirement may be that the size of the commodity image cannot exceed a preset image size range, or that the detected commodity image noise needs to be smaller than a preset noise threshold, or that the definition of the commodity image needs to be larger than a preset definition threshold, and so on.
S2, the server obtains the corresponding standard image according to the identification information. The server can be internally provided with a database for storing standard images, wherein each standard image corresponds to one piece of identification information. The standard image is acquired through the identification information, so that the server can quickly match the standard image for the commodity image, subsequent commodity image processing is facilitated, and the overall image processing and analyzing efficiency is improved.
S3 the server converts the RGB color space of both the commodity image and the corresponding standard image into HSV color space. The value of each pixel point in the RGB color space corresponds to the values of three color channels, red (R), green (G), and blue (B), and the step may be converting the value of each pixel point in the RGB color space to the HSV color space. In detail, each point can be understood as a vector comprising three elements, and the transformation matrix is a 3 × 3 matrix, by which pixels on the RGB color space can be transformed into pixels in the HSV color space.
S4 the server determines the gray scale ratio of the commodity image and the corresponding standard image, and adjusts the gray scale value of the commodity image according to the gray scale ratio. Specifically, the server calculates a gray scale adjustment value of the commodity image according to the gray scale ratio, and adjusts the gray scale value of the commodity image according to the gray scale adjustment value. In specific implementation, the gray scale distribution data of the standard image and the gray scale distribution data of the commodity image can be extracted, the difference value between the gray scale values of the commodity image relative to the standard image is determined according to the gray scale ratio of the two gray scale distribution data, namely the gray scale adjustment value, and the corresponding difference value is used for remapping the gray scale values of the commodity image, so that the adjustment of the gray scale values of the commodity image is realized.
S5 the server converts the adjusted commodity image back to RGB color space.
As shown in fig. 2, an embodiment of a second aspect of the present invention provides an image processing system based on color space conversion, the system including:
the mobile terminal comprises a receiving module 1, a display module and a display module, wherein the receiving module is configured to receive commodity image information uploaded by the mobile terminal, and the commodity image information comprises a commodity image and corresponding identification information;
the acquisition module 2 is configured to acquire a corresponding standard image according to the identification information;
the first image conversion module 3 is configured to convert the RGB color spaces of the commodity image and the corresponding standard image into HSV color spaces;
a gray scale adjusting module 4 configured to determine a gray scale ratio of the commodity image and the corresponding standard image, and adjust a gray scale value of the commodity image according to the gray scale ratio;
a second image conversion module 5 configured to convert the adjusted commodity image back to an RGB color space.
Further, the system further comprises:
and the image verification module 6 is configured to perform matching analysis on the commodity image converted back to the RGB color space and the corresponding standard image, and output a corresponding commodity verification result.
A third aspect of the present invention provides an image processing apparatus based on color space conversion, characterized by comprising a processor and being configured to perform the above-mentioned method of the present invention.
A fourth aspect of the present invention provides an image processing apparatus based on color space conversion, the apparatus comprising the device according to the present invention as described above.
A fifth aspect embodiment of the present invention provides an image processing apparatus based on color space conversion, the apparatus comprising one or more processors, and one or more storage media storing instructions that, when executed by the one or more processors, cause the method according to the present invention to be performed.
A sixth aspect of the invention provides a computer storage medium storing a computer program which, when executed by a processor, performs the steps of the method according to the invention. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
According to the embodiment of the invention, the commodity image uploaded and verified by the user is subjected to image processing based on color space conversion, so that the difference between the shooting environment of the commodity image and the shooting environment of the corresponding standard image can be reduced, the bad influence of the difference caused by the influence of the shooting environment on the subsequent image verification is avoided, and the user experience is further improved.
Finally, it should be noted that the above-mentioned embodiments illustrate only preferred embodiments of the invention, and are not intended to limit the invention, so that various modifications and changes can be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An image processing method based on color space conversion is characterized by comprising the following steps:
the method comprises the steps that a server receives commodity image information uploaded by a mobile terminal, wherein the commodity image information comprises a commodity image and corresponding identification information;
the server acquires a corresponding standard image according to the identification information;
the server converts the RGB color spaces of the commodity image and the corresponding standard image into HSV color spaces;
the server determines the gray scale ratio of the commodity image and the corresponding standard image, and adjusts the gray scale value of the commodity image according to the gray scale ratio;
and the server converts the adjusted commodity image back to an RGB color space.
2. The method of claim 1, wherein the method further comprises:
and the server performs matching analysis on the commodity image converted back to the RGB color space and the corresponding standard image and outputs a corresponding commodity verification result.
3. The image processing method based on color space conversion according to claim 1, wherein the identification information is a name of the commodity and/or corresponding source code information.
4. The image processing method based on color space conversion according to claim 1, wherein the adjusting the gray scale value of the commodity image according to the gray scale ratio comprises:
and the server calculates the gray scale adjustment value of the commodity image according to the gray scale ratio and adjusts the gray scale value of the commodity image according to the gray scale adjustment value.
5. An image processing system based on color space conversion, the system comprising:
the receiving module is configured to receive commodity image information uploaded by the mobile terminal, and the commodity image information comprises a commodity image and corresponding identification information;
the acquisition module is configured to acquire a corresponding standard image according to the identification information;
the first image conversion module is configured to convert the RGB color spaces of the commodity image and the corresponding standard image into HSV color spaces;
a gray scale adjusting module configured to determine a gray scale ratio of the commodity image and the corresponding standard image, and adjust a gray scale value of the commodity image according to the gray scale ratio;
a second image conversion module configured to convert the adjusted commodity image back to an RGB color space.
6. The image processing system based on color space conversion according to claim 5, wherein the system further comprises:
and the image verification module is configured to perform matching analysis on the commodity image converted back to the RGB color space and the corresponding standard image and output a corresponding commodity verification result.
7. An image processing apparatus based on color space conversion, characterized by comprising a processor and being configured to perform the method according to any of claims 1-4.
8. An image processing apparatus based on color space conversion, characterized in that it comprises a device according to claim 7.
9. An image processing apparatus based on color space conversion, comprising one or more processors and one or more storage media storing instructions which, when executed by the one or more processors, cause performance of the method according to any one of claims 1-4.
10. A computer storage medium storing a computer program which, when executed by a processor, performs the steps of the method according to any one of claims 1 to 4.
CN201911321082.9A 2019-12-19 2019-12-19 Image processing method, system and equipment based on color space conversion Pending CN111080725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911321082.9A CN111080725A (en) 2019-12-19 2019-12-19 Image processing method, system and equipment based on color space conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911321082.9A CN111080725A (en) 2019-12-19 2019-12-19 Image processing method, system and equipment based on color space conversion

Publications (1)

Publication Number Publication Date
CN111080725A true CN111080725A (en) 2020-04-28

Family

ID=70316011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911321082.9A Pending CN111080725A (en) 2019-12-19 2019-12-19 Image processing method, system and equipment based on color space conversion

Country Status (1)

Country Link
CN (1) CN111080725A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907459A (en) * 2021-01-25 2021-06-04 北京达佳互联信息技术有限公司 Image processing method and device
CN113129210A (en) * 2021-04-27 2021-07-16 维沃移动通信有限公司 Image processing method, image processing device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907459A (en) * 2021-01-25 2021-06-04 北京达佳互联信息技术有限公司 Image processing method and device
CN112907459B (en) * 2021-01-25 2024-04-09 北京达佳互联信息技术有限公司 Image processing method and device
CN113129210A (en) * 2021-04-27 2021-07-16 维沃移动通信有限公司 Image processing method, image processing device and electronic equipment

Similar Documents

Publication Publication Date Title
US11882255B2 (en) Predicting detectability and grading prior to printing
US9706111B2 (en) No-reference image and video quality evaluation
CN102722881B (en) Operationally process the method and system of monochromatic image data
CN113170028B (en) Method for generating image data of machine learning based imaging algorithm
US10497081B2 (en) Detecting encoded signals under adverse lighting conditions using adaptive signal detection
US11336795B2 (en) Encoded signal systems and methods to ensure minimal robustness
US9336599B2 (en) Determining proximity of a mobile device to a subject based on shadow analysis
US8515164B2 (en) Non-product image identification
CN109902763B (en) Method and device for generating feature map
CN109948700B (en) Method and device for generating feature map
CN109948699B (en) Method and device for generating feature map
CN108806638B (en) Image display method and device
CN112446864A (en) Flaw detection method, flaw detection device, flaw detection equipment and storage medium
CN111080725A (en) Image processing method, system and equipment based on color space conversion
JPWO2019182108A1 (en) Color correspondence information generation system, program and color correspondence information generation method
US9230188B2 (en) Objective metric relating to perceptual color differences between images
US9832395B2 (en) Information processing method applied to an electronic device and electronic device having at least two image capturing units that have the same image capturing direction
Krasula et al. FFTMI: Features fusion for natural tone-mapped images quality evaluation
Sharma Understanding RGB color spaces for monitors, projectors, and televisions
US10296806B2 (en) Recognition-based color corrections
US20160093066A1 (en) Saturation compensation method
CN105976343B (en) Picture exposure correction method and device and intelligent equipment
JP2021145239A (en) Image processing device and program
CN115049746B (en) Image color correction method, device, electronic equipment and storage medium
He et al. Color fractal structure model for reduced-reference colorful image quality assessment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination