Jewelry terminal and jewelry detection method, device and readable storage medium thereof
By integrating multiple testing instruments and image processing technologies into the jewelry terminal, rapid identification of jewelry materials and damage can be achieved, solving the inconvenience of users having to come to the site for testing and improving the convenience and accuracy of testing.
Patent Information
- Application Number
- CN202210575986.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2042-05-25
AI Technical Summary
Current jewelry testing methods require users to visit a jewelry testing institution in person, which is quite inconvenient.
A jewelry terminal is provided, equipped with various jewelry testing instruments, light source devices, and cameras. Through automatic detection and image processing technology, it can quickly identify the material and damage of jewelry, generate test reports, and send analysis results.
Users can conveniently conduct jewelry testing on the jewelry terminal, which reduces testing costs, improves the convenience and accuracy of testing, and promotes the widespread application of jewelry terminals.
Smart Images

Figure CN115239935B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of jewelry detection, in particular to a jewelry terminal and a jewelry detection method, device and readable storage medium thereof. BACKGROUND
[0002] Currently, jewelry detection is generally performed by users entrusting professional personnel of a jewelry detection agency to operate special jewelry detection instruments (such as energy dispersive X-ray fluorescence spectrometers, etc.) to detect and identify the material of the jewelry. However, the existing mode needs users to go to the jewelry detection agency for detection entrustment, which is very inconvenient. Therefore, how to enable users to conveniently perform jewelry detection needs to be solved. SUMMARY
[0003] The present application provides a jewelry terminal and a jewelry detection method, device and readable storage medium thereof, which can enable users to conveniently perform jewelry detection.
[0004] An embodiment of the present application provides a jewelry detection method of a jewelry terminal, comprising:
[0005] When detecting that the jewelry is placed on a detection station of the jewelry terminal, a display of the jewelry terminal is controlled to display a detection scheme option to a user for selection and confirmation; the detection scheme option comprises a jewelry detection instrument detection scheme;
[0006] When the user selects the jewelry detection instrument detection scheme, a plurality of jewelry detection instruments provided by the jewelry terminal are sequentially used to automatically detect the jewelry, and each detection result is saved; the detection result comprises a jewelry detection spectrum;
[0007] All the detection results of the jewelry are sent to an analysis device of a detection analyst for analysis and arrangement by the detection analyst;
[0008] An analysis and arrangement result returned by the analysis device is received, and the display of the jewelry terminal is controlled to display the analysis and arrangement result to the user.
[0009] As an improvement of the above scheme, the detection scheme option further comprises a quick detection scheme; the method further comprises:
[0010] When the user selects the quick detection scheme, a light source device is used to irradiate the jewelry on the detection station of the jewelry terminal with light of a first light intensity, and a camera is used to capture a first light intensity image of the jewelry according to preset shooting parameters;
[0011] irradiate the jewelry on the detection station with light of a second light intensity through the light source device, and capture a second light intensity image of the jewelry through the camera with the shooting parameters;
[0012] extract a first image region of the jewelry from the first light intensity image, and extract a second image region of the jewelry from the first light intensity image;
[0013] calculate the average brightness of each pixel of the first image region and the second image region;
[0014] block the jewelry in the image according to the difference between the average brightness of each pixel of the first image region and the second image region, and obtain each part of the jewelry through blocking;
[0015] calculate the average difference of the pixel brightness of each part of the jewelry in the first image region and the second image region, calculate the ratio of the average difference of the pixel brightness of each part of the jewelry to the light intensity difference of the first light intensity and the second light intensity, and calculate the average color value of the pixels of each part of the jewelry;
[0016] identify the material type of each part of the jewelry according to the ratio of the average difference of the pixel brightness of each part of the jewelry to the light intensity difference and according to the average color value of the pixels of each part of the jewelry.
[0017] As an improvement of the above-mentioned scheme, the identification of the material type of each part of the jewelry according to the ratio of the average difference of the pixel brightness of each part of the jewelry to the light intensity difference and according to the average color value of the pixels of each part of the jewelry comprises:
[0018] According to the ratio of the average difference of the pixel brightness of each part of the jewelry to the light intensity difference and according to the average color value of the pixels of each part of the jewelry, the material type of each part of the jewelry is identified based on a preset mapping relationship among the ratio of the pixel brightness difference to the light intensity difference, the average color value of the pixels, and the material type.
[0019] As an improvement of the above-mentioned scheme, after the jewelry in the image is blocked according to the difference between the average brightness of each pixel of the first image region and the second image region, the method further comprises:
[0020] calculate the image region width and the image region length of each part of the jewelry;
[0021] determine whether the image region width is less than a preset width threshold value, and determine whether the image region length is greater than a preset length threshold value;
[0022] According to the judgment result, the damage condition of the jewelry is obtained; if both are yes, it is determined that the part of the jewelry has a scratch; otherwise, it is determined that the part of the jewelry does not have a scratch.
[0023] As an improvement of the above scheme, after the damage condition of the jewelry is obtained according to the judgment result, the method further comprises:
[0024] According to the material types of the parts of the jewelry identified and the damage condition of the jewelry, a detection report of the jewelry is generated, and display on the screen of the jewelry terminal is controlled;
[0025] In response to a user's instruction of generating a submission code issued to the jewelry terminal after checking the detection report, a submission code is generated according to the material types of the parts of the jewelry identified and the damage condition of the jewelry; the submission code contains the following information: the material types of the parts of the jewelry, and the damage condition of the parts of the jewelry.
[0026] The submission code is sent to the user's mobile phone, so that the mobile phone generates a corresponding jewelry submission scheme according to the submission code; the jewelry submission scheme includes: the material types of the jewelry to be submitted, and the estimated cost of the jewelry to be submitted.
[0027] As an improvement of the above scheme, the jewelry in the image is divided into blocks according to the difference between the average brightness of each pixel of the two, and each part of the jewelry is obtained, including:
[0028] The difference between the average brightness of each adjacent pixel of the two is compared;
[0029] If the difference is less than a preset threshold, the area where the pixel corresponding to the difference is located is the same part of the jewelry; if the difference is greater than the preset threshold, the area where the pixel corresponding to the difference is located is the remaining part of the jewelry.
[0030] Another embodiment of the present application correspondingly provides a jewelry detection device of a jewelry terminal, comprising:
[0031] A display control module is configured to control the display of the jewelry terminal to display a detection scheme option to a user for selection and confirmation when detecting that the jewelry is placed on the detection station of the jewelry terminal; the detection scheme option includes a jewelry detection instrument detection scheme.
[0032] A detection control module is configured to automatically detect the jewelry by a plurality of jewelry detection instruments provided by the jewelry terminal in sequence when the user selects the jewelry detection instrument detection scheme, and save each detection result; the detection result includes a jewelry detection map.
[0033] a sending module configured to send all the detection results of the jewelry to an analysis device of a detection analyst for analysis and arrangement by the detection analyst;
[0034] a receiving and displaying module configured to receive analysis and arrangement results returned by the analysis device and control a display of the jewelry terminal to display the analysis and arrangement results to a user.
[0035] Another embodiment of the present application provides a jewelry terminal, comprising:
[0036] a display;
[0037] a plurality of jewelry detection instruments; and
[0038] a controller connected to and controlling the display and the plurality of jewelry detection instruments; the controller comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor executes the computer program to implement the jewelry detection method of the jewelry terminal as described in the above-mentioned embodiments of the present application.
[0039] Another embodiment of the present application provides a computer readable storage medium comprising a stored computer program, wherein the computer program, when executed, controls a device where the computer readable storage medium is located to execute the jewelry detection method of the jewelry terminal as described in the above-mentioned embodiments of the present application.
[0040] Compared with the prior art, one of the above technical solutions has the following advantages:
[0041] When the user needs to detect the jewelry, the user can place the jewelry on the detection station of the jewelry terminal, when the jewelry is detected to be placed on the detection station of the jewelry terminal, the display of the jewelry terminal is controlled to display the detection scheme options to the user; when the user selects the jewelry detection instrument detection scheme, the jewelry is sequentially detected by the various jewelry detection instruments provided by the jewelry terminal, and each detection result is saved; the detection results of the jewelry are sent to the analysis equipment of the detection analysis personnel for analysis and arrangement by the detection analysis personnel; the analysis and arrangement results returned by the analysis equipment are received, and the display of the jewelry terminal is controlled to display the analysis and arrangement results to the user. As can be seen, the embodiment of the application can enable the gradually widely used jewelry terminal to have a jewelry detection function, so that the user can detect the jewelry through the gradually widely used jewelry terminal, which is convenient to use, so as to greatly facilitate the jewelry detection needs of the user. At the same time, since the jewelry terminal has the above-mentioned jewelry detection function, the jewelry terminal can also be better promoted and applied. Of course, any product implementing the present application does not necessarily need to achieve all the advantages described above. BRIEF DESCRIPTION OF DRAWINGS
[0042] Figure 1 is a flow diagram of a jewelry detection method of a jewelry terminal provided by an embodiment of the application;
[0043] Figure 2 is a structural diagram of a jewelry detection device of a jewelry terminal provided by an embodiment of the application;
[0044] Figure 3 is a structural diagram of a jewelry terminal provided by an embodiment of the application. DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the application will be clearly and completely described below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, rather than all the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the application.
[0046] At present, the jewelry terminal is used to display and sell jewelry and related accessories, and is gradually promoted and used in various places. The existing jewelry terminal does not have the function of detecting and identifying jewelry, which affects the application of the jewelry terminal. Therefore, the present inventor believes that if the jewelry terminal has a low-cost and easy-to-operate jewelry detection function, the jewelry terminal can be better promoted and applied. For this reason, the present inventor provides the following embodiments:
[0047] Referring toFigure 1 is a flowchart of a jewelry detection method of a jewelry terminal provided in an embodiment of the present application. The method is performed by the jewelry terminal, specifically by a controller of the jewelry terminal. The method comprises steps S10 to S16:
[0048] S1, when detecting that the jewelry is placed on the detection station of the jewelry terminal, controlling the display of the jewelry terminal to display a detection scheme option to the user for selection and confirmation; the detection scheme option includes a jewelry detection instrument detection scheme;
[0049] S2, after the user selects the jewelry detection instrument detection scheme, sequentially detecting the jewelry by the various jewelry detection instruments provided in the jewelry terminal, and saving each detection result; the detection result includes a jewelry detection map;
[0050] S3, sending all the detection results of the jewelry to an analysis device of a detection analyst for analysis and arrangement by the detection analyst;
[0051] S4, receiving the analysis and arrangement result returned by the analysis device, and controlling the display of the jewelry terminal to display the analysis and arrangement result to the user.
[0052] In this embodiment, the jewelry terminal is provided with various jewelry detection instruments (such as energy dispersive X-ray fluorescence spectrometer, Fourier transform infrared spectrophotometer, laser Raman spectrometer, etc.), which can be arranged in a circular ring. The detection station of the jewelry terminal is a movable tray. When the corresponding jewelry detection instrument is needed to detect the jewelry on the tray, the driving device provided in the jewelry terminal can be used to drive the tray to move to the corresponding position, so that the corresponding jewelry detection instrument can detect the jewelry on the tray. By setting multiple jewelry detection instruments to sequentially and automatically test the jewelry, the accuracy of jewelry detection can be improved. Among them, the jewelry terminal obtains the jewelry detection map of each jewelry detection instrument according to the detection data of the jewelry detection instrument.
[0053] In the embodiment, when the user needs to detect the jewelry, the user can place the jewelry on the detection work station of the jewelry terminal, when the jewelry is detected to be placed on the detection work station of the jewelry terminal, the display of the jewelry terminal is controlled to display the detection scheme options to the user; when the user selects the jewelry detection instrument detection scheme, the jewelry is sequentially detected by the various jewelry detection instruments provided by the jewelry terminal, and each detection result is saved; the detection results of the jewelry are sent to the analysis equipment of the detection analysis personnel for analysis and arrangement by the detection analysis personnel; the analysis and arrangement results returned by the analysis equipment are received, and the display of the jewelry terminal is controlled to display the analysis and arrangement results to the user. As can be seen, the embodiment can enable the gradually widely used jewelry terminal to have the jewelry detection function, so that the user can detect the jewelry through the gradually widely used jewelry terminal, which is convenient to use, so as to greatly facilitate the jewelry detection needs of the user. At the same time, since the jewelry terminal has the above-mentioned jewelry detection function, the jewelry terminal can be better popularized and applied.
[0054] As another jewelry detection scheme, the detection scheme options further include: a quick detection scheme; the method further includes:
[0055] S10, when the user selects the quick detection scheme, the light source device irradiates the jewelry on the detection work station of the jewelry terminal with light of a first light intensity, and a first light intensity image of the jewelry is obtained by the camera with preset shooting parameters.
[0056] The light source device can be one or more LED lamps provided in the jewelry terminal and aligned with the detection work station. The light source device works according to a preset power and emits light of a first light intensity. The detection work station can be a jewelry detection table provided in the jewelry terminal. In addition, the shooting parameters can be pre-set when the jewelry terminal is shipped, or can be updated through cloud upgrade. The shooting parameters can include shutter, aperture, ISO, EV value and the like. Herein, no specific limitation is made.
[0057] S11, the light source device irradiates the jewelry on the detection work station with light of a second light intensity, and a second light intensity image of the jewelry is obtained by the camera with the shooting parameters.
[0058] The second light intensity can be stronger than the first light intensity, or weaker than the first light intensity, but the two are different.
[0059] S12, a first image area of the jewelry is extracted from the first light intensity image, and a second image area of the jewelry is extracted from the first light intensity image.
[0060] Exemplarily, the image region of the jewelry can be extracted from the relevant image by image processing technology of image feature extraction. For example, the image contour in the relevant image is extracted first, and then image contour analysis is performed to determine that the image region in the image contour is the image region of the jewelry.
[0061] S13, calculating the luminance average value of each pixel of the first image region and the second image region.
[0062] Specifically, the luminance value of each pixel in the first image region is obtained, and the luminance value of each pixel in the second image region is obtained. At this time, the luminance average value of the pixel of the first image region and the second image region can be calculated by using the two luminance values of the pixel. The luminance value average calculation is performed pixel by pixel, so as to calculate the luminance average value of each pixel of the first image region and the second image region.
[0063] S14, according to the difference of the luminance average value of each pixel of the two, the jewelry in the image is blocked, and each part of the jewelry is obtained by blocking.
[0064] Exemplarily, the step S14 comprises:
[0065] S140, comparing the difference between the luminance average value of each adjacent pixel of the two;
[0066] S141, if the difference is less than a preset threshold, the region where the pixel corresponding to the difference is located is the same part of the jewelry; if the difference is greater than the preset threshold, the region where the pixel corresponding to the difference is located is the remaining part of the jewelry
[0067] In the embodiment, the inventors find that, in order to avoid the identification error of jewelry segmentation (for example, the light source device is one LED lamp, the placing position of the jewelry on the detection station is not opposite to the LED lamp, but deviates from the LED lamp, and under certain light intensity of the LED lamp, due to the distance and the irradiation angle of different parts of the jewelry relative to the LED lamp, the reflection intensity of different material parts of the jewelry is basically the same, and generally, the reflection intensity of different material parts of the jewelry is different under the same light intensity at the same position), the embodiment irradiates the jewelry twice with light of different intensities, then calculates the average brightness of the pixels of the images under the light of different intensities, so as to reflect the average reflection intensity of different parts of the jewelry under the light of different intensities (because the reflection intensity of different material parts of the jewelry is basically the same under a certain light intensity, and when the light intensity changes, due to the different reflection rates of different materials, the parts of the jewelry with different materials but basically the same reflection intensity will have obvious difference in reflection intensity), and then the average reflection intensity is used to reflect the parts of the jewelry with different materials, so that the above-mentioned identification error of jewelry segmentation can be avoided, and the parts of the jewelry in the image can be accurately identified.
[0068] S15, calculating the average difference value of the pixel brightness of each part of the jewelry in the two, calculating the ratio of the average difference value of the pixel brightness of each part of the jewelry to the light intensity difference value of the first light intensity and the second light intensity, and calculating the average color value of the pixels of each part of the jewelry.
[0069] S16, identifying the material types of each part of the jewelry according to the ratio of the average difference value of the pixel brightness of each part of the jewelry to the light intensity difference value and according to the average color value of the pixels of each part of the jewelry.
[0070] As an example, the step S16 includes:
[0071] According to the ratio of the average difference value of the pixel brightness of each part of the jewelry to the light intensity difference value and according to the average color value of the pixels of each part of the jewelry, the material types of each part of the jewelry are identified based on the mapping relationship among the preset ratio of the pixel brightness difference value to the light intensity difference value, the average color value of the pixels and the material types.
[0072] It should be noted that the inventors have found that the same jewelry generally uses only one or a few materials (for example, the materials of the jewelry of jade inlay gold are Hetian jade and pure gold), and the reflectivity characteristics of the materials used in the same jewelry are generally different, so in step S15, the different material parts of the jewelry can be distinguished by the reflectivity of the different materials of the jewelry. However, in step S15, only the different material parts of the jewelry are preliminarily partitioned, and the materials of the different parts of the jewelry can be accurately obtained. Because the types of materials of the jewelry are various, the reflectivity of the different materials of the jewelry may be basically the same. Therefore, only judging the reflectivity of the materials cannot accurately determine the specific material type of the jewelry. Therefore, in this step, the inventors creatively use the following two simple analysis parameters to accurately determine the specific material of the jewelry: the ratio of the pixel brightness difference value to the light intensity difference value, and the average color value of the pixel. The inventors have found that the materials used in the jewelry can be divided into various colors, and the ratio of the reflectivity difference value to the light intensity difference value of the materials under each color is often different. Therefore, as an image parameter representation of visual technology, the ratio of the pixel brightness difference value to the light intensity difference value and the average color value of the pixel can be used to accurately determine the material of the jewelry. It should be noted that by calculating the average color value of the pixel under two different light intensities, the deviation of the pixel color value under certain light intensity (for example, the deviation of the pixel color value under high light intensity or low light intensity) can be avoided, so that the identification and detection of the material of the jewelry are more accurate. It can be understood that the first light intensity and the second light intensity can be two different normal light intensities, and the two light intensities cannot be too weak or too strong.
[0073] Specifically, the mapping relationship among the ratio of the pixel brightness difference value to the light intensity difference value, the average color value of the pixel, and the material type is pre-set, which can be pre-set according to the experience value by testing a large number of samples of different jewelry materials in advance. In this way, when the ratio of the average difference value of the pixel brightness of each part of the jewelry to the light intensity difference value and the average color value of the pixel of each part of the jewelry are obtained, the material type of each part of the jewelry can be identified according to the mapping relationship.
[0074] In the embodiment of the present application, when jewelry detection is needed, light rays with different light intensities are sequentially emitted to jewelry at a detection station of a jewelry terminal to obtain two jewelry images; two image regions of the jewelry are extracted from the two jewelry images; the average brightness of each pixel of the two image regions of the jewelry is calculated, and the jewelry is blocked according to the average brightness to obtain each part of the jewelry; the brightness difference of each pixel is calculated, the ratio of the brightness difference of each pixel to the light intensity difference between the first light intensity and the second light intensity is calculated, and the average color value of each pixel is calculated; and the material type of each part of the jewelry is identified according to the calculated parameters. As can be seen, the embodiment of the present application can enable the gradually widely used jewelry terminal to have a jewelry detection function. The jewelry terminal uses the image processing technology specific to the embodiment of the present application to realize jewelry detection, so that users can perform jewelry detection through the gradually widely used jewelry terminal. The jewelry terminal does not need to be equipped with a special jewelry detection instrument, and users do not need to entrust professional jewelry detection agencies for detection, so as to reduce the cost of jewelry detection and greatly facilitate the jewelry detection needs of users. At the same time, since the jewelry terminal has the above-mentioned jewelry detection function, the jewelry terminal can also be better promoted and applied.
[0075] In summary, the embodiment of the present application only needs to set a light source device and a camera on the jewelry terminal, and uses visual technology to calculate the pixel brightness and color value of the jewelry images obtained by shooting under different light intensities through a simple calculation method, so as to accurately identify the material of the jewelry according to these parameters. The entire process does not need to use complex image processing algorithms, requires very few computing resources, and does not need the jewelry terminal to be equipped with a high-end processor and complex image processing algorithms. Therefore, the use cost of the jewelry detection function of the jewelry terminal of the embodiment of the present application is very low, and the detection accuracy of the jewelry material is also relatively good.
[0076] In the above embodiment, further, after the jewelry is blocked according to the difference between the average brightness of each pixel of the two image regions to obtain each part of the jewelry, the method further comprises:
[0077] calculating the image region width and the image region length of each part of the jewelry;
[0078] judging whether the image region width is less than a preset width threshold value and whether the image region length is greater than a preset length threshold value;
[0079] obtaining the damage condition of the jewelry according to the judgment result; wherein if both are true, it is determined that the part of the jewelry has scratches; otherwise, it is determined that the part of the jewelry does not have scratches.
[0080] Specifically, if a scratch appears on the surface of a certain material part of the jewelry (the scratch is generally small), the reflective intensity of the part with the scratch and the rest of the material is different, that is, the average brightness of the two places is different, so that the part with the scratch is separately blocked. Due to the scratch, the material of the part with the scratch cannot be accurately analyzed, so in the embodiment of the application, when it is determined that the surface of the jewelry has a scratch, the small part with the scratch can not be subjected to the jewelry material detection method of the above-mentioned embodiment of the application for material detection, thereby avoiding affecting the detection accuracy of the jewelry material.
[0081] In the above embodiment, further, after the damage condition of the jewelry is obtained according to the judgment result, the method further comprises:
[0082] According to the material types of the parts of the jewelry and the damage condition of the jewelry, a detection report of the jewelry is generated, and display on the screen of the jewelry terminal is controlled;
[0083] In response to the instruction of generating a submission code issued by the user to the jewelry terminal after checking the detection report, a submission code is generated according to the material types of the parts of the jewelry and the damage condition of the jewelry; the submission code contains the following information: the material types of the parts of the jewelry, the damage condition of the parts of the jewelry;
[0084] The submission code is sent to the mobile phone of the user, so that the mobile phone generates a corresponding jewelry submission scheme according to the submission code; the jewelry submission scheme includes: the material types of the jewelry to be submitted, the estimated cost of the jewelry to be submitted.
[0085] In the embodiment, after the material types of the parts of the jewelry and the damage condition of the jewelry are identified, the user can consider whether the jewelry needs to be submitted according to the actual situation (for example, the user cannot determine the result after checking the detection report, needs to issue a certificate for a valuable gemstone, generates a submission code, and finally hands it over to a professional jewelry detection agency for more comprehensive and accurate jewelry detection), so as to further detect and maintain the jewelry.
[0086] Referring to Figure 2 is a structural schematic diagram of a jewelry detection device of a jewelry terminal provided by an embodiment of the application. The jewelry detection device comprises:
[0087] The display control module 1 is used for controlling the display of the jewelry terminal to display a detection scheme option to the user for selection and confirmation when detecting that the jewelry is placed on the detection station of the jewelry terminal; the detection scheme option includes: a jewelry detection instrument detection scheme;
[0088] A detection control module 2 is configured to, after a user selects a jewelry detection instrument detection scheme, sequentially detect the jewelry by various jewelry detection instruments provided on the jewelry terminal, and save each detection result; the detection result includes a jewelry detection graph;
[0089] A sending module 3 is configured to send all the detection results of the jewelry to an analysis device of a detection analyst for analysis and arrangement by the detection analyst;
[0090] A receiving and displaying module 4 is configured to receive an analysis and arrangement result returned by the analysis device, and control a display of the jewelry terminal to display the analysis and arrangement result to the user.
[0091] In the embodiment, when a user needs to detect jewelry, the user can place the jewelry on a detection station of the jewelry terminal, and when the jewelry is detected to be placed on the detection station of the jewelry terminal, a display of the jewelry terminal is controlled to display detection scheme options to the user; after the user selects a jewelry detection instrument detection scheme, the jewelry is sequentially detected by various jewelry detection instruments provided on the jewelry terminal, and each detection result is saved; all the detection results of the jewelry are sent to an analysis device of a detection analyst for analysis and arrangement by the detection analyst; an analysis and arrangement result returned by the analysis device is received, and a display of the jewelry terminal is controlled to display the analysis and arrangement result to the user. It can be seen that the embodiment can enable a gradually widely used jewelry terminal to have a jewelry detection function, so that a user can detect jewelry through the gradually widely used jewelry terminal, which is convenient to use, and thus greatly facilitates the jewelry detection needs of the user. Meanwhile, since the jewelry terminal has the above-described jewelry detection function, the jewelry terminal can be better promoted and applied.
[0092] As an improvement of the above scheme, the detection scheme options further include a quick detection scheme; and the jewelry detection device includes:
[0093] A first shooting control module is configured to, after the user selects the quick detection scheme, irradiate light of a first light intensity on the jewelry on the detection station of the jewelry terminal by a light source device, and obtain a first light intensity image of the jewelry by shooting the jewelry by a camera with preset shooting parameters;
[0094] A second shooting control module is configured to irradiate light of a second light intensity on the jewelry on the detection station by the light source device, and obtain a second light intensity image of the jewelry by shooting the jewelry by the camera with the shooting parameters;
[0095] an image region extraction module configured to extract a first image region of the jewelry from the first light intensity image and extract a second image region of the jewelry from the second light intensity image;
[0096] a first calculation module configured to calculate an average brightness value of each pixel in the first image region and an average brightness value of each pixel in the second image region;
[0097] an image block module configured to block the jewelry in the image according to a difference between the average brightness value of each pixel in the first image region and the average brightness value of each pixel in the second image region, and obtain each part of the jewelry by blocking;
[0098] a second calculation module configured to calculate an average difference value of the pixel brightness of each part of the jewelry, calculate a ratio of the average difference value of the pixel brightness of each part of the jewelry to a light intensity difference value of the first light intensity and the second light intensity, and calculate an average color value of the pixels of each part of the jewelry;
[0099] an identification module configured to identify a material type of each part of the jewelry according to the ratio of the average difference value of the pixel brightness of each part of the jewelry to the light intensity difference value and according to the average color value of the pixels of each part of the jewelry.
[0100] As an improvement of the above-mentioned solution, the identification module is specifically configured to:
[0101] identify the material type of each part of the jewelry according to the ratio of the average difference value of the pixel brightness of each part of the jewelry to the light intensity difference value and according to the average color value of the pixels of each part of the jewelry based on a preset mapping relationship among the ratio of the pixel brightness difference value to the light intensity difference value, the average color value of the pixels and the material type.
[0102] As an improvement of the above-mentioned solution, the image block module is specifically configured to:
[0103] compare a difference value between the average brightness value of each adjacent pixel in the first image region and the average brightness value of each adjacent pixel in the second image region;
[0104] if the difference value is less than a preset threshold value, a region where the pixel corresponding to the difference value is located is a same part of the jewelry, and if the difference value is greater than the preset threshold value, a region where the pixel corresponding to the difference value is located is a remaining part of the jewelry.
[0105] As an improvement of the above-mentioned solution, the device further comprises:
[0106] a third calculation module configured to calculate an image region width and an image region length of each part of the jewelry whose material type has been analyzed;
[0107] The first judging module is configured to judge whether the image region width is less than a preset width threshold and whether the image region length is greater than a preset length threshold.
[0108] The analysis module is configured to obtain the damage condition of the jewelry according to the judgment result; if both are true, it is determined that the jewelry has scratches in the part; otherwise, it is determined that the jewelry does not have scratches in the part.
[0109] As an improvement of the above-mentioned scheme, the device further comprises:
[0110] The detection report generation module is configured to generate a detection report of the jewelry according to the material types of the parts of the jewelry identified and the damage condition of the jewelry, and control the display of the screen of the jewelry terminal;
[0111] In response to the instruction of generating a submission code issued by the jewelry terminal after the user reviews the detection report, a submission code is generated according to the material types of the parts of the jewelry identified and the damage condition of the jewelry; the submission code contains the following information: the material types of the parts of the jewelry, the damage condition of the parts of the jewelry;
[0112] The submission scheme generation module is configured to send the submission code to the user's mobile phone, so that the mobile phone generates a corresponding jewelry submission scheme according to the submission code; the jewelry submission scheme includes: the material types of the jewelry to be submitted, the estimated cost of the jewelry to be submitted.
[0113] It can be understood that the related embodiments of the jewelry detection device of the jewelry terminal described above can correspond to the description of the related embodiments of the jewelry detection method of the jewelry terminal described above, and will not be repeated here.
[0114] Referring to Figure 3 is a schematic diagram of a jewelry terminal provided by an embodiment of the present application. The jewelry terminal of the embodiment comprises a display 10, a plurality of jewelry detection instruments 20 and a controller 30; the controller 30 is connected with and controls the work of the display 10 and the plurality of jewelry detection instruments 20; the controller 30 comprises a processor 300, a memory 301 and a computer program stored in the memory 301 and executable on the processor 300, such as a jewelry detection program of the jewelry terminal. The processor 300 implements the steps in each of the above-mentioned jewelry detection method embodiments of the jewelry terminal when executing the computer program. Alternatively, the processor 300 implements the functions of each module / unit in each of the above-mentioned device embodiments when executing the computer program.
[0115] For example, the computer program can be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present application. The one or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program in the jewelry terminal. For example, the computer program can be divided into a jewelry detection module (a module in a virtual device) of the jewelry terminal.
[0116] The jewelry terminal can include, but is not limited to, a processor, a memory. Those skilled in the art can understand that the schematic diagram is only an example of the jewelry terminal and does not constitute a limitation on the jewelry terminal, and can include more or fewer components than the diagram, or combine certain components, or different components, for example, the jewelry terminal can also include an input / output device, a network access device, a bus, etc.
[0117] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor is the control center of the jewelry terminal, which connects various parts of the jewelry terminal through various interfaces and lines.
[0118] The memory can be used to store the computer program and / or modules, and the processor realizes various functions of the jewelry terminal by running or executing the computer program and / or modules stored in the memory, and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), and the like; and the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), and the like. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, for example, a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state memory devices.
[0119] The modules / units integrated in the jewelry terminal can be stored in a computer readable storage medium if they are realized in the form of software function units and sold or used as independent products. Based on this understanding, all or part of the processes in the above-mentioned embodiment methods can also be completed by a computer program instructing related hardware, and the computer program can be stored in a computer readable storage medium. The computer program can realize the steps of the above-mentioned various method embodiments when executed by a processor. The computer program includes computer program code, which can be in the form of source code, object code, an executable file, or some intermediate form, etc. The computer readable medium can include any entity or device capable of carrying the computer program code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the contents included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
[0120] It should be noted that the apparatus embodiments described above are merely illustrative, and the units described as separate units can or can not be physically separate, and the units shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment according to actual needs. In addition, the connection relationship between the modules in the apparatus embodiment provided by the present application indicates that there is a communication connection between them, which can be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement it without creative labor.
[0121] The above is the preferred embodiment of the present application. It should be noted that those skilled in the art can make several improvements and refinements without departing from the principles of the present application, and these improvements and refinements are also considered within the scope of protection of the present application.
Claims
1. A jewelry detection method of a jewelry terminal, characterized by, The method comprises the following steps: When detecting that the jewelry is placed on the detection station of the jewelry terminal, the display of the jewelry terminal is controlled to display detection scheme options to the user for selection and confirmation; The detection scheme options comprise a jewelry detection instrument detection scheme; When the user selects the jewelry detection instrument detection scheme, the jewelry is automatically detected by a plurality of jewelry detection instruments provided on the jewelry terminal in sequence, and each detection result is saved; the detection result comprises a jewelry detection map; All the detection results of the jewelry are sent to an analysis device of a detection analyst for analysis and arrangement by the detection analyst; The analysis and arrangement result returned by the analysis device is received, and the display of the jewelry terminal is controlled to display the analysis and arrangement result to the user; The detection scheme options further comprise a quick detection scheme, and the method further comprises the following steps: When the user selects the quick detection scheme, the jewelry on the detection station of the jewelry terminal is irradiated with light of a first light intensity by a light source device, and a first light intensity image of the jewelry is obtained by photographing with a camera at preset photographing parameters; The jewelry on the detection station is irradiated with light of a second light intensity by the light source device, and a second light intensity image of the jewelry is obtained by photographing with the camera at the photographing parameters; A first image area of the jewelry is extracted from the first light intensity image, and a second image area of the jewelry is extracted from the second light intensity image; The average brightness of each pixel of the first image area and the second image area is calculated; According to the difference between the average brightness of each pixel of the first image area and the second image area, the jewelry is divided into blocks, and each part of the jewelry is obtained; The average difference value of the pixel brightness of each part of the jewelry in the two is calculated, the ratio of the average difference value of the pixel brightness of each part of the jewelry to the light intensity difference value of the first light intensity and the second light intensity is calculated, and the average color value of the pixels of each part of the jewelry is calculated; According to the ratio of the average difference value of the pixel brightness of each part of the jewelry to the light intensity difference value, and according to the average color value of the pixels of each part of the jewelry, the material type of each part of the jewelry is identified.
2. The jewelry detection method of the jewelry kiosk of claim 1, wherein, According to the ratio of the average difference value of the pixel brightness of each part of the jewelry to the light intensity difference value, and according to the average color value of the pixels of each part of the jewelry, the material type of each part of the jewelry is identified. According to the ratio of the average difference value of the pixel brightness of each part of the jewelry to the light intensity difference value, and according to the average color value of the pixels of each part of the jewelry, the material type of each part of the jewelry is identified.
3. The jewelry detection method of the jewelry kiosk of claim 1, wherein, After the jewelry is divided into blocks according to the difference between the average brightness of each pixel of the first image area and the second image area, the method further comprises the following steps: calculating a respective image area width and an image area length of each part of the jewelry; judging whether the image area width is less than a preset width threshold and whether the image area length is greater than a preset length threshold; obtaining a damage condition of the jewelry according to the judging result; if both are true, it is determined that the part of the jewelry has a scratch; otherwise, it is determined that the part of the jewelry does not have a scratch.
4. The jewelry detection method of the jewelry kiosk of claim 3, wherein, After the damage condition of the jewelry is obtained according to the judging result, the method further comprises: generating a detection report of the jewelry according to the material types of the parts of the jewelry identified and the damage condition of the jewelry, and controlling the display of the jewelry terminal to display the detection report on the screen; in response to a user's instruction of generating a submission code issued by the jewelry terminal after checking the detection report, generating a submission code according to the material types of the parts of the jewelry identified and the damage condition of the jewelry; the submission code contains the following information: the material types of the parts of the jewelry, the damage condition of the parts of the jewelry; sending the submission code to the user's mobile phone, so that the mobile phone generates a corresponding jewelry submission scheme according to the submission code; the jewelry submission scheme includes: the material types of the jewelry to be submitted, the estimated cost of the jewelry to be submitted.
5. The jewelry detection method of the jewelry kiosk of claim 1, wherein, The jewelry in the image is divided into parts according to the difference between the average brightness of each pixel of the two, including: comparing the difference between the average brightness of each adjacent pixel of the two; if the difference is less than a preset threshold, the area where the pixels corresponding to the difference are located is the same part of the jewelry; if the difference is greater than a preset threshold, the area where the pixels corresponding to the difference are located is the rest of the jewelry.
6. A jewelry testing device for a jewelry terminal, characterized in that, including: a display control module, configured to control the display of the jewelry terminal to display a detection scheme option to the user when the jewelry is detected to be placed on the detection station of the jewelry terminal for the user to select and confirm; the detection scheme option includes: a jewelry detection instrument detection scheme; a detection control module, configured to automatically detect the jewelry in sequence through a plurality of jewelry detection instruments provided by the jewelry terminal when the user selects the jewelry detection instrument detection scheme, and save each detection result; the detection result includes: a jewelry detection map; a sending module, configured to send all the detection results of the jewelry to an analysis device of a detection analyst for analysis and arrangement by the detection analyst; a receiving and displaying module, configured to receive an analysis and arrangement result returned by the analysis device, and control the display of the jewelry terminal to display the analysis and arrangement result to the user; the detection scheme option further includes a quick detection scheme, and the jewelry detection device further includes: a first shooting control module, configured to irradiate the jewelry on the detection station of the jewelry terminal with light of a first light intensity through a light source device when the user selects the quick detection scheme, and obtain a first light intensity image of the jewelry by shooting with a preset shooting parameter through a camera. a second photographing control module configured to irradiate light with a second light intensity to the jewelry on the detection station by the light source device, and to obtain a second light intensity image of the jewelry by the camera with the photographing parameters; an image region extraction module configured to extract a first image region of the jewelry from the first light intensity image, and to extract a second image region of the jewelry from the second light intensity image; a first calculation module configured to calculate the average brightness of each pixel of the first image region and the second image region; an image block module configured to block the jewelry in the image according to the difference of the average brightness of each pixel of the first image region and the second image region, and to obtain each part of the jewelry; a second calculation module configured to calculate the average difference of the pixel brightness of each part of the jewelry, to calculate the ratio of the average difference of the pixel brightness of each part of the jewelry to the light intensity difference of the first light intensity and the second light intensity, and to calculate the average color value of the pixels of each part of the jewelry; an identification module configured to identify the material type of each part of the jewelry according to the ratio of the average difference of the pixel brightness of each part of the jewelry to the light intensity difference, and according to the average color value of the pixels of each part of the jewelry.
7. A jewelry kiosk, characterized by, comprise: a display; a plurality of jewelry detection instruments; and a controller connected with and controlling the operation of the display and the plurality of jewelry detection instruments; the controller comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the jewelry detection method of the jewelry terminal machine according to any one of claims 1 to 5 when executing the computer program. the computer readable storage medium comprises a stored computer program, wherein the computer readable storage medium controls the device where the computer readable storage medium is located to execute the jewelry detection method of the jewelry terminal machine according to any one of claims 1 to 5 when the computer program is running.
8. A computer-readable storage medium, characterized in that,
Citation Information
Patent Citations
Multi -functional bullion detection achievement platform
CN204694640U