CN220383156U - Image acquisition device and water purification equipment - Google Patents

Image acquisition device and water purification equipment Download PDF

Info

Publication number
CN220383156U
CN220383156U CN202321959810.0U CN202321959810U CN220383156U CN 220383156 U CN220383156 U CN 220383156U CN 202321959810 U CN202321959810 U CN 202321959810U CN 220383156 U CN220383156 U CN 220383156U
Authority
CN
China
Prior art keywords
image
light
filter element
identification
counterfeiting
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.)
Active
Application number
CN202321959810.0U
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.)
Wuhu Midea Smart Kitchen Appliance Manufacturing Co Ltd
Original Assignee
Wuhu Midea Smart Kitchen Appliance Manufacturing 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 Wuhu Midea Smart Kitchen Appliance Manufacturing Co Ltd filed Critical Wuhu Midea Smart Kitchen Appliance Manufacturing Co Ltd
Priority to CN202321959810.0U priority Critical patent/CN220383156U/en
Application granted granted Critical
Publication of CN220383156U publication Critical patent/CN220383156U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The application discloses image acquisition device and water purification unit belongs to water purification unit technical field. The image acquisition device includes: a lens and a light supplementing device; the light guide assembly comprises a first light surface and a second light surface, the first light surface and the second light surface are arranged in a non-opposite mode so that the light path of the light guide assembly is a bent light path, the lens and the light supplementing device are arranged towards the first light surface, and the second light surface is arranged towards the anti-counterfeiting mark area of the filter element; the lens is used for collecting images of the anti-counterfeiting mark area through the light guide component. The image acquisition device guides light transmission between the filter element and the lens through the light guide component with the two light surfaces which are not just arranged, the light supplementing device is close to the lens, sufficient light is provided for anti-counterfeiting recognition, the problem that the image acquisition device is installed in a narrow space inside the water purifying equipment is solved, the space utilization rate inside the water purifying equipment is improved, and the size of the water purifying equipment is reduced.

Description

Image acquisition device and water purification equipment
Technical Field
The application belongs to the technical field of water purification equipment, and particularly relates to an image acquisition device and water purification equipment.
Background
The filter element is a key consumable of the water purifying equipment, needs to be replaced at regular time, and some fake filter elements appear on the market frequently, so that the fake filter elements not only infringe the interests of manufacturers, but also are difficult to ensure, the running of the water purifying equipment and the health of users are influenced, and the anti-counterfeiting identification of the filter element of the water purifying equipment is very important.
At present, some water purifiers attach anti-fake two-dimensional codes on the filter core, carry out anti-fake discernment through sweeping the sign indicating number equipment, but this kind of equipment sweeps the required shooting distance of sign indicating number camera lens longer, and the purifier inner space is limited, is difficult to install, and is the enclosure space in the purifier, and light is not enough, leads to sweeping the imaging quality of sign indicating number equipment relatively poor.
Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the prior art. Therefore, the application provides an image acquisition device and water purification equipment, can install image acquisition device inside water purification equipment to provide sufficient light and carry out anti-fake discernment, help reducing water purification equipment's size, improve the inside space utilization of water purification equipment.
In a first aspect, the present application provides an image acquisition device for anti-counterfeiting identification of a water purification device cartridge, the image acquisition device comprising:
A lens and a light supplementing device;
the light guide assembly comprises a first light surface and a second light surface, the first light surface and the second light surface are not arranged right opposite to each other so that the light path of the light guide assembly is a bent light path, the lens and the light supplementing device are arranged towards the first light surface, and the second light surface is arranged towards the anti-counterfeiting mark area of the filter element;
the lens is used for collecting images of the anti-counterfeiting mark area through the light guide assembly.
According to the image acquisition device, the light transmission between the filter element and the lens is guided through the light guide assembly with the two light surfaces which are not just arranged, the light supplementing device is close to the lens, sufficient light is provided for anti-counterfeiting recognition, the problem that the image acquisition device is installed in a narrow space inside the water purifying equipment is solved, the space utilization rate inside the water purifying equipment is improved, and the size of the water purifying equipment is reduced.
According to one embodiment of the present application, the light guide assembly is a prismatic structure.
According to one embodiment of the present application, the prism structure includes a first prism column and a second prism column, the first light surface is located at one end of the first prism column, the other end of the first prism column is connected with one end of the second prism column, and the second light surface is located at the other end of the second prism column.
According to one embodiment of the present application, the first prism column is provided with a first reflecting surface, the second prism column is provided with a second reflecting surface, the first reflecting surface is used for reflecting the light of the first light surface to the second reflecting surface, and the second reflecting surface is used for reflecting the light of the second light surface to the first reflecting surface.
According to one embodiment of the present application, a third reflecting surface is disposed at a connection position of the first prism column and the second prism column, and the third reflecting surface is configured to reflect light rays from the first reflecting surface to the second reflecting surface.
According to an embodiment of the present application, the included angle between the first reflecting surface and the first light surface is 45 degrees, the included angle between the second reflecting surface and the second light surface is 45 degrees, and the included angle between the third reflecting surface and the first reflecting surface and the included angle between the third reflecting surface and the second reflecting surface are both 90 degrees.
According to one embodiment of the present application, the prism structure is made of plastic or glass.
According to one embodiment of the present application, the light guide assembly defines a light guide channel, one end of the light guide channel is the first light surface, the other end of the light guide channel is the second light surface, and at least one reflecting mirror is disposed in the light guide channel.
According to one embodiment of the present application, the light filling device comprises one or more light filling lamps.
In a second aspect, the present application provides a water purification apparatus comprising:
a housing defining an accommodation space;
at least one filter cartridge located within the receiving space;
at least one above-mentioned first aspect the image acquisition device, the image acquisition device is located in the accommodation space, the image acquisition device with the filter core one-to-one, the image acquisition device orientation the anti-fake label region setting of filter core.
According to the water purification equipment, the light transmission between the filter element and the lens is guided through the light guide assembly with the two light surfaces which are not just arranged, the light supplementing device is close to the lens, sufficient light is provided for anti-counterfeiting recognition, the problem that the image acquisition device is installed in a narrow space inside the water purification equipment is solved, the space utilization rate inside the water purification equipment is improved, and the size of the water purification equipment is reduced.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, wherein:
FIG. 1 is one of the flow diagrams of the anti-counterfeit identification method of the filter element provided in the embodiment of the application;
FIG. 2 is a schematic diagram of a first identification image provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a first logo sub-image provided in an embodiment of the present application;
FIG. 4 is a second flow chart of the anti-counterfeit identification method of the filter element according to the embodiment of the present application;
FIG. 5 is one of schematic structural diagrams of an anti-counterfeiting recognition device for a filter element according to an embodiment of the present disclosure;
FIG. 6 is a third flow chart of an anti-counterfeit identification method of a filter element according to an embodiment of the present disclosure;
FIG. 7 is one of the schematic diagrams of the security device image provided in the embodiments of the present application;
FIG. 8 is a second schematic view of a security device image according to an embodiment of the present disclosure;
FIG. 9 is a third schematic diagram of a security device image according to an embodiment of the present disclosure;
FIG. 10 is a flow chart of a method for anti-counterfeit identification of a filter element according to an embodiment of the present disclosure;
FIG. 11 is a second schematic structural view of the anti-counterfeit identification device of the filter element according to the embodiment of the present application;
FIG. 12 is a flow chart of a method for anti-counterfeit identification of a filter element according to an embodiment of the present disclosure;
FIG. 13 is one of the schematic diagrams of an image to be processed provided in the embodiments of the present application;
FIG. 14 is a second schematic view of an image to be processed according to an embodiment of the present disclosure;
FIG. 15 is a third schematic view of an image to be processed according to an embodiment of the present disclosure;
FIG. 16 is a schematic illustration of solid color pixel fill for a target binary image provided by an embodiment of the present application;
FIG. 17 is a schematic view of a first target image provided by an embodiment of the present application;
FIG. 18 is a schematic diagram of counting target pixels of a first target image according to an embodiment of the present disclosure;
FIG. 19 is a schematic view of the location of a target area provided by an embodiment of the present application;
FIG. 20 is a fifth flow chart of the anti-counterfeit identification method of the filter element provided in the embodiment of the present application;
FIG. 21 is a third schematic structural view of the anti-counterfeit identification device of the filter element according to the embodiment of the present application;
fig. 22 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 23 is one of schematic structural diagrams of a water purifying apparatus provided in an embodiment of the present application;
FIG. 24 is a schematic diagram of a flow of resetting a filter element of a water purification device according to an embodiment of the present application;
Fig. 25 is a schematic structural diagram of a light guide component of the image capturing device according to the embodiment of the present application;
FIG. 26 is a second schematic structural diagram of a light guide assembly of the image capturing device according to the embodiment of the present disclosure;
fig. 27 is a second schematic structural diagram of a water purifying apparatus according to an embodiment of the present disclosure.
Reference numerals:
the device comprises a shell 200, a filter element 300, an image acquisition device 400, a light guide assembly 410, a first light surface 411, a second light surface 412, a first prism column 413, a second prism column 414, a first reflecting surface 415, a second reflecting surface 416, a third reflecting surface 417 and a reflecting mirror 418.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The anti-counterfeiting recognition method of the filter element, the anti-counterfeiting recognition device of the filter element, the electronic equipment, the readable storage medium, the water purifying equipment and the image acquisition device provided by the embodiment of the application are described in detail below by means of specific embodiments and application scenes of the specific embodiments with reference to the accompanying drawings.
The anti-counterfeiting recognition method of the filter element can be applied to a terminal, and can be specifically executed by hardware or software in the terminal.
The execution main body of the anti-counterfeiting identification method of the filter element provided by the embodiment of the application can be electronic equipment or a functional module or a functional entity capable of realizing the anti-counterfeiting identification method of the filter element in the electronic equipment, and the electronic equipment mentioned in the embodiment of the application comprises, but is not limited to, a mobile phone, a tablet computer, a camera, a wearable device and the like.
It should be noted that, the surface of the filter element in the embodiment of the application is provided with the anti-counterfeiting mark, the anti-counterfeiting mark can be an icon, a two-dimensional code and other mark patterns used for anti-counterfeiting recognition, and the anti-counterfeiting mark can be arranged on the surface of the filter element in a printing mode and the like.
As shown in fig. 1, the anti-counterfeiting identification method for the filter element provided by the embodiment of the application includes: steps 110 to 140.
Step 110, acquiring a first filter element image of the filter element 300 to be identified.
Wherein the first filter element image is a YUV image, and the first filter element image comprises an anti-counterfeiting mark of the filter element 300.
The first filter image is an image that uses YUV three components to store data, Y representing brightness, i.e., gray values, U and V both representing chromaticity to describe color and color saturation.
In this step, the first filter element image in YUV format is directly collected, the imaging requirement on the image collecting device 400 is not high, the anti-counterfeit identification cost is reduced, and the first filter element image has a smaller data size than the image in RGB format, so that the first filter element image is convenient to store and process in a Micro Control Unit (MCU) with smaller Random Access Memory (RAM) and lower cost.
And 120, obtaining a second filter element image based on the gray data of the first filter element image.
In this embodiment, the gray data of the first filter element image is extracted, so as to obtain the second filter element image, and the collection and storage of the image data of the filter element 300 are completed.
In actual implementation, the second filter element image may be saved to an on-chip Flash (Flash) memory of the micro control unit for further processing.
And 130, intercepting an anti-counterfeiting mark image from the second filter element image.
In the step, the second filter element image is cut, images of other areas except the anti-counterfeiting mark in the second filter element image are cut, the anti-counterfeiting mark image is obtained, and the data size of the anti-counterfeiting mark image is smaller.
And 140, comparing the anti-counterfeiting mark image with the template mark image to determine the product authenticity information of the filter element 300.
After the anti-counterfeiting mark image is obtained through interception, the anti-counterfeiting mark image and the template mark image are used for comparison, and the authenticity of the filter element 300 is judged according to the difference degree of the currently acquired anti-counterfeiting mark image and the template mark image.
When the difference between the anti-counterfeiting mark image and the template mark image is large, the filter element 300 is indicated to be false, and when the difference between the anti-counterfeiting mark image and the template mark image is small, the filter element 300 is indicated to be true.
By comparing the template identification image with the template identification image, a complex image processing algorithm does not need to be run in a processor such as a micro control unit, and the like, so that the requirement on the processor for anti-counterfeiting identification of the filter element is reduced.
In this embodiment, the anti-counterfeit identification of the cartridge 300 is divided into two separate stages: acquiring and storing images, namely acquiring a YUV format first filter element image and storing gray data of the first filter element image; and (3) processing and matching the image, intercepting a second filter element image to obtain an anti-counterfeiting mark image, and comparing the anti-counterfeiting mark image with the template mark image to determine the authenticity of the product.
In actual implementation, the image acquisition and storage and image processing and matching processes can be implemented by adopting a micro control unit with smaller random access memory and lower cost, so that the filter element anti-counterfeiting identification with low cost is realized.
It can be understood that the scene timeliness requirement of the filter element anti-counterfeiting recognition is not high, the anti-counterfeiting recognition is carried out through the image acquisition and storage and the image processing and matching two independent stages, and the requirement of the water purification equipment filter element anti-counterfeiting recognition can be met.
According to the anti-counterfeiting recognition method for the filter element, provided by the embodiment of the application, the first filter element image is collected, the gray data is extracted to obtain the second filter element image, the second filter element image is intercepted to obtain the anti-counterfeiting mark image, the anti-counterfeiting mark image is compared with the template mark image, the authenticity of the filter element is judged, the requirement of an image processor is lower, the anti-counterfeiting recognition of the filter element can be realized by adopting a micro control unit with a smaller random access memory and a lower cost, and the anti-counterfeiting recognition cost of the filter element is effectively reduced.
In some embodiments, step 140, comparing the anti-counterfeit label image with the template label image, and determining product authenticity information of the filter element 300 may include:
performing image segmentation processing based on gray information on the anti-counterfeiting mark image to obtain a first mark image;
Performing binarization processing and rotation processing on the first identification image to obtain a binarized image;
performing image segmentation processing on the binarized image based on the identification size to obtain a plurality of first identification sub-images;
respectively carrying out translation processing on the plurality of first identification sub-images to obtain a plurality of second identification sub-images corresponding to the second identification images;
and comparing the second identification image with the template identification image to determine the authenticity information of the product.
Image segmentation refers to dividing an image into a plurality of mutually disjoint regions according to features such as gray scale, color, spatial texture, geometry, etc., such that the features exhibit consistency or similarity within the same region and differ significantly between different regions.
In the embodiment, according to the gray information of the anti-counterfeiting mark image, image segmentation is performed to obtain a first mark image, so that the influence of other factors except the anti-counterfeiting mark in the anti-counterfeiting mark image on the anti-counterfeiting recognition of the filter element is reduced.
After binarization processing and rotation processing are carried out on the first identification image, second image segmentation is carried out according to the identification size of the anti-counterfeiting identification, so that a plurality of first identification sub-images are obtained, and each first identification sub-image corresponds to different areas of the anti-counterfeiting identification.
For example, as shown in fig. 2, the first identification image includes an anti-counterfeit label of Abcde, and the binarized image of the first identification image is subjected to image segmentation according to the identification size of each letter of Abcde.
As shown in fig. 3, the anti-counterfeiting mark of Abcde is divided into a first mark sub-image corresponding to A, b, c, d and e five letters.
In this embodiment, after the first identification sub-image is obtained by segmentation, a plurality of first identification sub-images are subjected to translation processing to obtain a plurality of corresponding second identification sub-images, the plurality of second identification sub-images form a second identification image, the second identification image is compared with the template identification image, and the authenticity of the filter element is judged.
In some embodiments, performing binarization processing and rotation processing on the first identification image may include:
based on the first identification image, the binarization threshold is traversed within the binarization threshold range to carry out binarization processing, and the rotation angle is traversed within the rotation angle range to carry out rotation processing.
In this embodiment, the first identification image is subjected to multiple binarization processing and rotation processing until the binarization threshold value in the binarization threshold value range and the rotation angle in the rotation angle range are traversed to obtain multiple binarization images, then each binarization image is subjected to image segmentation and translation processing based on the identification size to obtain multiple second identification images, and the multiple second identification images are compared with the template identification images to judge whether the filter element is true or false.
For example, the binarization threshold range includes a binarization threshold 1, a binarization threshold 2, and a binarization threshold 3, and the rotation angle range includes a rotation angle 1 and a rotation angle 2.
And performing binarization processing and rotation processing on the first identification image, performing binarization processing on the first identification image according to a binarization threshold value 1, a binarization threshold value 2 and a binarization threshold value 3 respectively to obtain three binarization images, and performing rotation processing on the three binarization images by a rotation angle 1 and a rotation angle 2 respectively to obtain six rotated binarization images.
In some embodiments, performing the translation processing on the plurality of first identification sub-images may include:
and traversing the translation action in the translation action set based on the first identification sub-image to carry out translation processing.
In this embodiment, the first identification sub-image is subjected to a translation process of traversing the translation actions in the translation action set, and one first identification sub-image may be processed to obtain a plurality of second identification sub-images corresponding to different translation actions.
For example, the translation action set includes upward translation, downward translation and leftward translation, and the translation processing is performed on one first identification sub-image, so that three second identification sub-images can be obtained.
In some embodiments, comparing the second identification image with the template identification image to determine product authenticity information includes:
comparing a plurality of second identification sub-images in the second identification image with a plurality of template identification sub-images in the template identification image in a one-to-one correspondence manner to obtain an image difference value between the second identification image and the template identification image;
and determining the authenticity information of the product based on the image difference value corresponding to the second identification image.
The second identification image comprises a plurality of second identification sub-images, each second identification sub-image represents one area of the anti-counterfeiting mark, the second identification sub-images are compared with the template identification sub-images in the template identification image in a one-to-one correspondence mode, the difference degree between different areas of the anti-counterfeiting mark of the filter element 300 is obtained, and the authenticity of the filter element is judged according to the image difference value between the second identification image and the template identification image.
For example, the second identification image includes second identification sub-images corresponding to A, b, c, d and e five letters, and the five second identification sub-images and the corresponding template identification sub-images in the template identification image are subjected to the second identification sub-images, so that an image difference value between each second identification sub-image and the corresponding template identification sub-image is obtained.
In actual implementation, the image difference may be a pixel difference of each pixel point in the two images.
In some embodiments, determining the product authenticity information based on the image difference value corresponding to the second identification image may include:
acquiring a plurality of second identification images;
and determining the authenticity information of the product according to the smallest image difference value in the image difference values of the plurality of second identification images.
It will be appreciated that the image captured by the image capturing device 400 is different from the pre-stored template identification image in terms of capturing angle, light, etc.
In this embodiment, a plurality of second identification images can be obtained through binarization, rotation and translation processing, so that the amplification of image data volume is realized, and the second identification images are sufficiently compared with the template identification images on the premise of not changing the anti-counterfeiting identification characteristics of the current filter element 300, so that the influence of the conditions of image acquisition angle, light and the like on aspect comparison can be reduced, and the accuracy of anti-counterfeiting identification of the filter element is ensured.
In some embodiments, capturing the security device image from the second cartridge image comprises:
determining an anti-counterfeiting mark boundary in the second filter element image based on the target gray threshold;
based on the anti-counterfeiting mark boundary and the anti-counterfeiting mark size information, intercepting the second filter element image to obtain an anti-counterfeiting mark image.
In this embodiment, the boundary of the anti-counterfeit mark in the second filter element image is searched according to a preset target gray threshold, and the second filter element image is intercepted according to the boundary of the anti-counterfeit mark and the size information of the anti-counterfeit mark.
It can be understood that when the second filter element image is intercepted according to the anti-counterfeiting mark size information, whether the size of the second filter element image is consistent with the pre-stored anti-counterfeiting mark size information can be judged first, and if not, the second filter element image is scaled in a proper proportion.
A specific embodiment is described below.
As shown in fig. 4, the image acquisition device 400 directly acquires the image of the filter element 300, the MCU extracts gray data from a complete first filter element image transmitted from the image acquisition device 400, and the second filter element image is obtained and stored in the on-chip Flash of the MCU to wait for the next processing.
The MCU reads the second filter element image stored in Flash, searches the boundary of the complete anti-counterfeiting mark through a preset target gray threshold value, and intercepts the second filter element image by combining the size information of the anti-counterfeiting mark to obtain the anti-counterfeiting mark image.
And (3) performing image matching operation on the anti-counterfeiting mark image and the template mark image, and comparing the first mark image obtained by first segmentation with the original template mark image after overlapping processing of three dimensions of image binarization, image rotation and image translation to judge the authenticity of the product in order to improve the matching degree.
In this embodiment, a preset binarization threshold value is selected for the first identification image, binarization processing is performed first, then rotation is performed on the images at intervals of 1 degree between preset rotation ranges, then the rotated logo images are segmented according to preset identification sizes to obtain a plurality of first identification sub-images, translation processing of 4 translation actions such as up, down, left and right actions is performed on the first identification sub-images, image matching is performed after the translation processing is completed, and the processed image data is compared with the original template identification images to obtain corresponding image difference values.
And changing different binarization thresholds to perform binarization processing on the segmented image, and repeating the steps until all the loops are completed, and calculating a minimum image difference value, wherein the minimum image difference value represents the error between the image acquired by the image acquisition device 400 and the template identification image.
According to the comparison between the calculated image difference value of the second identification sub-image and the template identification sub-image and the preset difference value threshold, whether the filter element 300 is true or not can be judged, when the image difference value is very close to the preset error threshold in the identification process, and the true or false cannot be determined, the image can be directly uploaded to a server for higher-order identification, and the identification rate is improved.
The embodiment of the application also provides an anti-counterfeiting recognition device for the filter element.
As shown in fig. 5, the anti-counterfeit identification device of the filter element includes:
the obtaining module 510 is configured to obtain a first filter element image of the filter element 300 to be identified, where the first filter element image is a YUV image, and the first filter element image includes an anti-counterfeit identifier of the filter element 300;
the first processing module 520 is configured to obtain a second filter element image based on the gray data of the first filter element image;
a second processing module 530, configured to intercept an anti-counterfeit label image from the second filter element image;
the third processing module 540 is configured to compare the anti-counterfeit label image with the template label image, and determine product authenticity information of the filter element 300.
According to the anti-counterfeiting recognition device of the filter element, provided by the embodiment of the application, the first filter element image is collected, the gray data is extracted to obtain the second filter element image, the second filter element image is intercepted to obtain the anti-counterfeiting mark image, the anti-counterfeiting mark image is compared with the template mark image, the authenticity of the filter element 300 product is determined, the requirement of an image processor can be effectively reduced, the anti-counterfeiting recognition of the filter element can be realized by adopting a micro control unit with a smaller random access memory and a lower cost, and the anti-counterfeiting recognition cost of the filter element is effectively reduced.
In some embodiments, the third processing module 540 is configured to perform an image segmentation process on the anti-counterfeit label image based on gray information, so as to obtain a first label image;
performing binarization processing and rotation processing on the first identification image to obtain a binarized image;
performing image segmentation processing on the binarized image based on the identification size to obtain a plurality of first identification sub-images;
respectively carrying out translation processing on the plurality of first identification sub-images to obtain a plurality of second identification sub-images corresponding to the second identification images;
and comparing the second identification image with the template identification image to determine the authenticity information of the product.
In some embodiments, the third processing module 540 is configured to perform binarization processing by traversing the binarization threshold within a range of binarization thresholds and performing rotation processing by traversing the rotation angle within a range of rotation angles based on the first identification image.
In some embodiments, the third processing module 540 is configured to traverse the translation action within the translation action set for performing a translation process based on the first identification sub-image.
In some embodiments, the third processing module 540 is configured to compare the plurality of second identification sub-images in the second identification image with the plurality of template identification sub-images in the template identification image in a one-to-one correspondence manner, so as to obtain an image difference value between the second identification image and the template identification image;
And determining the authenticity information of the product based on the image difference value corresponding to the second identification image.
In some embodiments, a third processing module 540 is configured to acquire a plurality of the second identification images;
and determining the authenticity information of the product according to the smallest image difference value in the image difference values of the plurality of second identification images.
In some embodiments, a second processing module 530 is configured to determine a boundary of the security mark in the second cartridge image based on a target gray threshold;
based on the anti-counterfeiting mark boundary and the anti-counterfeiting mark size information, intercepting the second filter element image to obtain the anti-counterfeiting mark image.
The embodiment of the application also provides a water purifying device, which comprises a filter element 300 and an anti-counterfeiting identification system, wherein the anti-counterfeiting identification system comprises an image acquisition device 400 and a micro control unit, and the image acquisition device 400 is electrically connected with the micro control unit.
In this embodiment, the image acquisition device 400 is configured to acquire a first filter element image of the filter element 300, the flash memory of the micro control unit is configured to store a second filter element image, the second filter element image is obtained based on gray data of the first filter element image, and the micro control unit is configured to perform anti-counterfeit identification on the filter element 300 based on the anti-counterfeit identification method of the filter element.
In some embodiments, the anti-counterfeiting identification system can include an anti-counterfeiting identification device of the filter cartridge as shown in fig. 5.
According to the water purifying equipment provided by the embodiment of the application, the first filter element image is collected, the gray data is extracted to obtain the second filter element image, the second filter element image is intercepted to obtain the anti-counterfeiting mark image, the anti-counterfeiting mark image is compared with the template mark image, the authenticity of the filter element is determined, the requirement of an image processor can be effectively reduced, the anti-counterfeiting recognition of the filter element can be realized by adopting the micro control unit with smaller random access memory and lower cost, and the anti-counterfeiting recognition cost of the filter element is effectively reduced.
It can be understood that conditions such as moisture regain or water leakage may occur in the water purifying device, so that the lens surface of the image collecting device 400 may be atomized, and the image quality may be affected, so that anti-counterfeit identification cannot be performed.
As shown in fig. 6, the present application further provides an anti-counterfeit identification method for a filter element, where the method includes steps 610 to 630, and the method can accurately identify atomization conditions, and perform corresponding anti-counterfeit identification operations, without improving a lens, so as to help reduce cost of anti-counterfeit identification for the filter element.
Step 610, acquiring an anti-counterfeiting mark image of the filter element 300 to be identified.
In this step, the anti-counterfeit mark image of the filter element 300 may be collected by the image collecting device 400, and the anti-counterfeit mark image may be an image subjected to interception processing.
And 620, performing ternary processing on the anti-counterfeiting mark image to obtain a ternary image.
It can be understood that when the lens surface of the image capturing device 400 is not atomized, the anti-counterfeit mark image captured by the image capturing device 400 includes an anti-counterfeit mark with a distinct boundary, and when the lens surface of the image capturing device 400 is atomized, the captured anti-counterfeit mark image is blurred.
Take the two-dimensional code as an example of the anti-counterfeit label of the filter element 300.
As shown in fig. 7, the lens surface of the image acquisition device 400 is not atomized, and the anti-counterfeit mark image acquired by the image acquisition device 400 includes two-dimensional codes with distinct boundaries, and all small squares with distinct black and white can be displayed.
As shown in fig. 8, the lens surface of the image acquisition device 400 is atomized, and the anti-counterfeit mark image acquired by the image acquisition device 400 is blurred, and only a small square with a clear black and white part can be displayed.
As shown in fig. 9, the lens surface of the image acquisition device 400 is severely atomized, and the anti-counterfeit mark image acquired by the image acquisition device 400 is blurred, so that small squares with distinct black and white cannot be displayed.
In this step, a first pixel threshold value and a second pixel threshold value may be preset, the first pixel threshold value is smaller than the second pixel threshold value, and the first pixel threshold value and the second pixel threshold value are used to perform ternary processing on the anti-counterfeit mark image.
In this embodiment, the pixel value in the anti-counterfeit mark image is less than or equal to the first pixel threshold value and is set to a gray minimum value (e.g., 0), the pixel value between the first pixel threshold value and the second pixel threshold value is set to a gray intermediate value (e.g., 1), and the pixel value is greater than or equal to the second pixel threshold value and is set to a gray maximum value (e.g., 2).
Taking the anti-counterfeiting mark of the filter element 300 as a two-dimensional code as an example, dividing the intervals based on RGB data of the anti-counterfeiting mark image, and performing three-valued processing.
In practical implementation, the lens surface of the image capturing device 400 normally captures RGB data of black-and-white blocks in the anti-counterfeit mark image, and the RGB data of black squares is smaller than 20, and the RGB data of white squares is larger than 240.
After the lens surface of the image acquisition device 400 is atomized, the acquired anti-counterfeiting mark image is partially or completely blurred in different degrees, and a series of intermediate RGB data between 20 and 240 appear.
In this embodiment, the security mark image is subjected to a binarization process, the gray value of the black square position where RGB data is smaller than 20 is set to 0, the gray value of the white square position where RGB data is larger than 240 is set to 2, and the gray value of the intermediate RGB data position is set to 1.
Step 630, under the condition that the pixel ratio of the gray level intermediate value of the ternary image is larger than the target ratio threshold value, anti-counterfeiting identification operation is performed on the filter element 300, and the product authenticity information of the filter element 300 is determined.
It should be noted that, the number of pixels in the image collected by the image collecting device 400 is fixed, for example, the anti-counterfeit mark image includes 64×64 pixels, and whether the lens surface of the image collecting device 400 is blurred is determined according to the pixel ratio of the gray middle value of the tri-valued image, that is, the ratio of the gray middle value of the tri-valued image to the total number of pixels.
In actual implementation, a target duty ratio threshold value may be preset according to actual test data, and when the pixel duty ratio of the gray intermediate value is greater than the target duty ratio threshold value, the anti-counterfeit mark image is blurred, which indicates that the lens surface of the image acquisition device 400 is atomized.
For example, the target duty ratio threshold is 40%, and when the pixel duty ratio of the gray intermediate value of the ternary image is greater than 40%, it indicates that the lens surface of the image capturing apparatus 400 is atomized.
In this embodiment, after the lens surface of the image capturing device 400 is atomized, a corresponding anti-counterfeit operation is performed on the filter element 300, so as to determine whether the filter element 300 is genuine or genuine.
In actual implementation, the frequency of occurrence of the atomization condition inside the water purifying equipment is low, the timeliness requirement of filter element authenticity identification is not high, anti-counterfeiting identification images can be acquired through the low-cost image acquisition device 400, corresponding anti-counterfeiting identification operation is adopted after lens atomization is determined, the lens with anti-counterfeiting material is not required to be added, and the filter element anti-counterfeiting identification requirement can be met.
It should be noted that, for some counterfeit filter elements 300 with missing surface marks or completed without marks, the anti-counterfeit mark image is subjected to tri-value processing, and whether to atomize is judged according to the fact that the pixel duty ratio of the gray intermediate value is greater than the target duty ratio threshold value, so that the counterfeit and the atomization conditions can be accurately distinguished, and the image of the counterfeit filter element 300 does not have the pixels corresponding to the gray intermediate value.
According to the anti-counterfeiting identification method of the filter element, through carrying out ternary processing on the anti-counterfeiting identification image, according to the pixel ratio of the gray intermediate value of the ternary image, the atomization condition is accurately identified, the corresponding anti-counterfeiting identification operation is carried out, the lens is not required to be improved, and the anti-counterfeiting identification cost of the filter element is reduced.
In actual implementation, after the lens of the image acquisition device 400 is determined to be atomized according to the pixel ratio of the gray intermediate value of the tri-valued image, the product authenticity information of the filter element 300 can be determined through at least two anti-counterfeit recognition operations as follows.
1. And when the true and false judgment is not made, carrying out multiple times of detection subsequently.
In some embodiments, performing the anti-counterfeit identification operation on the filter element 300, determining the product authenticity information of the filter element 300 may include:
acquiring a plurality of anti-counterfeiting mark images again according to a first time interval;
performing ternary processing on the multiple anti-counterfeiting mark images respectively to obtain multiple new ternary images;
and under the condition that at least one target three-valued image is included in the new plurality of three-valued images, determining the authenticity information of the product based on the anti-counterfeiting mark image corresponding to the target three-valued image, wherein the target three-valued image is a three-valued image with the pixel duty ratio of the gray intermediate value smaller than or equal to the target duty ratio threshold value.
In this embodiment, the lens of the image acquisition device 400 is determined to be atomized according to the currently acquired image after the three-valued processing of the anti-counterfeit mark image, and the authenticity of the filter element 300 is not determined currently.
It will be appreciated that lens fogging may change with changes in the environment, and that the current lens fogging may disappear after a period of time.
And continuously acquiring a plurality of anti-counterfeiting mark images at a first time interval and performing ternary process, wherein the new plurality of ternary images only need at least one ternary image to judge that the lens is not atomized, namely, a target ternary image, and performing anti-counterfeiting recognition by using the anti-counterfeiting mark image corresponding to the target ternary image to judge whether the filter element 300 is true or false.
For example, the first time interval is 6 hours.
The lens of the image acquisition device 400 is atomized, the authenticity of the filter element 300 is not judged currently, 1 anti-counterfeiting mark image is acquired every 6 hours continuously, 20 anti-counterfeiting mark images are acquired in total, the three-valued processing is carried out on the 20 anti-counterfeiting mark images, and when the pixel ratio of the gray level intermediate value of at least one three-valued image in the new 20 three-valued images is smaller than or equal to the target ratio threshold value, anti-counterfeiting recognition can be carried out according to the corresponding anti-counterfeiting mark image.
In some embodiments, after determining the product authenticity information based on the anti-counterfeit identification image corresponding to the target ternary image, the anti-counterfeit identification method of the filter element may further include:
and acquiring the anti-counterfeiting mark image again according to a second time interval, wherein the second time interval is larger than the first time interval, so as to perform anti-counterfeiting identification on the filter element 300.
In this embodiment, after the anti-counterfeit identification is performed according to the anti-counterfeit identification image corresponding to the target ternary image, the frequency of the anti-counterfeit identification operation may be reduced, for example, the first time interval is 6 hours, and the second time interval is 24 hours.
It can be understood that, according to the preset second time interval, the anti-counterfeit mark image is obtained periodically, so that not only the true and false condition of the filter element 300 can be monitored in real time, but also the lens atomization condition of the image acquisition device 400 and the moisture regaining or water leakage condition inside the water purifying equipment can be judged according to the ternary image corresponding to the anti-counterfeit mark image.
2. The true and false judgment is not made locally, and the cloud end carries out the true and false judgment.
In some embodiments, performing the anti-counterfeit identification operation on the filter element 300, determining the product authenticity information of the filter element 300 may include:
sending the anti-counterfeiting mark image to a server;
and receiving the product authenticity information sent by the server.
In this embodiment, after the lens of the image capturing device 400 is atomized, the water purifying device or other terminals do not determine the authenticity of the current filter element 300, send the current anti-counterfeit mark image to the cloud server, and restore and analyze the fuzzy data by using the powerful operation capability of the server to determine the authenticity of the filter element 300.
It should be noted that, only when it is determined that the lens of the image capturing device 400 is atomized according to the ternary image corresponding to the anti-counterfeit image, the above-mentioned anti-counterfeit identification operation of performing multiple detection or performing real and false determination by cloud is adopted, and for the anti-counterfeit image with clear imaging, the real and false of the filter element 300 can be directly determined.
In some embodiments, after obtaining the ternary image, the anti-counterfeit identification method of the filter element may further include:
and under the condition that the pixel duty ratio of the gray intermediate value of the ternary image is smaller than or equal to the target duty ratio threshold value, determining the authenticity information of the product based on the anti-counterfeiting mark image.
In this embodiment, the pixel duty ratio of the gray level intermediate value of the ternary image is smaller than or equal to the target duty ratio threshold, which indicates that the lens of the image acquisition device 400 is not atomized, so that anti-counterfeit identification can be directly performed, and the true and false information of the product can be determined by using the current anti-counterfeit mark image.
In some embodiments, the anti-counterfeit identification image is a color image, and after the anti-counterfeit identification image of the filter cartridge 300 to be identified is obtained, the anti-counterfeit identification method of the filter cartridge further comprises:
And converting the anti-counterfeiting mark image into a gray image.
It can be understood that the color image is also called an RGB image, and has color components of R, G, B channels, and after the color image of the anti-counterfeiting mark image is converted into a gray image, only the color components of a single channel are used, so that the processing speed of performing tri-value processing on the anti-counterfeiting mark image can be effectively improved.
A specific embodiment is described below.
As shown in fig. 10, the anti-counterfeit mark image is initialized and acquired, the RGB data of the image is acquired, the three-valued process of RGB data is performed, the gray value of the black square position where RGB data is smaller than 20 is set to 0, the gray value of the white square position where RGB data is larger than 240 is set to 2, and the gray value of the middle RGB data position is set to 1.
Calculating the ratio of the 1 value in the whole data, namely the proportion of the gray level intermediate value of the three-valued image to the total number of pixel points, judging that the lens of the image acquisition device 400 is atomized or abnormal when the 1 value accounts for more than 40%, and executing the subsequent abnormal processing anti-counterfeiting identification operation of carrying out multiple detection or real and false judgment by the cloud.
When the 1 value is less than or equal to 40%, judging that the lens of the image acquisition device 400 is normal, identifying the lens normally, outputting a judging result, and waiting for triggering to acquire an image next time.
In the embodiment, through carrying out the ternary process on the anti-counterfeiting mark image, the atomization condition is accurately identified according to the pixel ratio of the gray intermediate value of the ternary image, and the corresponding anti-counterfeiting identification operation is executed without improving the lens, so that the cost of anti-counterfeiting identification of the filter element is reduced.
The embodiment of the application also provides an anti-counterfeiting recognition device for the filter element.
As shown in fig. 11, the anti-counterfeit identification device of the filter cartridge includes:
a second obtaining module 1110, configured to obtain an anti-counterfeit label image of the filter element 300 to be identified;
a fourth processing module 1120, configured to perform a ternary process on the anti-counterfeit label image, so as to obtain a ternary image;
and a fifth processing module 1130, configured to perform anti-counterfeit identification operation on the filter element 300 and determine product authenticity information of the filter element 300 when the pixel duty ratio of the gray intermediate value of the ternary image is greater than the target duty ratio threshold.
According to the anti-counterfeiting recognition device of the filter element, through carrying out ternary process on the anti-counterfeiting mark image, according to the pixel ratio of the gray level intermediate value of the ternary image, the atomization condition is accurately recognized, the corresponding anti-counterfeiting recognition operation is executed, the lens is not required to be improved, and the anti-counterfeiting recognition cost of the filter element is reduced.
In some embodiments, a fifth processing module 1130 is configured to acquire the plurality of anti-counterfeit mark images again at the first time interval;
performing ternary processing on the multiple anti-counterfeiting mark images respectively to obtain multiple new ternary images;
and under the condition that at least one target three-valued image is included in the new plurality of three-valued images, determining the authenticity information of the product based on the anti-counterfeiting mark image corresponding to the target three-valued image, wherein the target three-valued image is a three-valued image with the pixel duty ratio of the gray intermediate value smaller than or equal to the target duty ratio threshold value.
In some embodiments, the fifth processing module 1130 is configured to, after determining the product authenticity information based on the anti-counterfeit label image corresponding to the target ternary image, acquire the anti-counterfeit label image again at a second time interval, so as to perform anti-counterfeit identification on the filter element 300, where the second time interval is greater than the first time interval.
In some embodiments, fifth processing module 1130 is configured to send the security identification image to a server;
and receiving the product authenticity information sent by the server.
In some embodiments, the fifth processing module 1130 is further configured to determine the product authenticity information based on the anti-counterfeit label image if the pixel duty cycle of the gray intermediate value of the ternary image is less than or equal to the target duty cycle threshold.
In some embodiments, the security device image is a color image, and the fourth processing module 1120 is further configured to convert the security device image into a grayscale image.
The embodiment of the application also provides a water purifying device, which comprises a filter element 300 and an anti-counterfeiting recognition system.
In this embodiment, the anti-counterfeit identification system is used for anti-counterfeit identification based on the anti-counterfeit identification method of the filter element, and the anti-counterfeit identification method of the filter element can include: acquiring an anti-counterfeiting mark image of the filter element 300 to be identified; performing ternary processing on the anti-counterfeiting mark image to obtain a ternary image; and under the condition that the pixel duty ratio of the gray level intermediate value of the three-valued image is larger than the target duty ratio threshold value, performing anti-counterfeiting identification operation on the filter element 300, and determining the product authenticity information of the filter element 300.
In some embodiments, the anti-counterfeiting identification system can include an anti-counterfeiting identification device of a filter cartridge as shown in fig. 11.
According to the water purifying equipment provided by the embodiment of the application, through carrying out ternary process on the anti-counterfeiting mark image, according to the pixel duty ratio of the gray level intermediate value of the ternary image, the atomization condition is accurately identified, the corresponding anti-counterfeiting identification operation is executed, the lens is not required to be improved, and the cost of anti-counterfeiting identification of the filter element is reduced.
It can be appreciated that the low-cost anti-counterfeit identification can be performed on the filter element 300 by using a low-cost processor, and for the low-cost processor, the internal storage space of the low-cost processor is not too large to process the complete image acquired by the camera, and the expansion of the storage space can bring about the increase of the anti-counterfeit identification cost.
As shown in fig. 12, the present application further provides an anti-counterfeit identification method for a filter element, which includes steps 1210 to 1240, and the method can accurately locate the key position of the image of the filter element 300, cut the image according to the locating information, and perform anti-counterfeit identification processing, so as to facilitate low-cost anti-counterfeit identification for the filter element.
Step 1210, acquiring a to-be-processed image of the to-be-identified filter element 300.
The image to be processed includes the anti-counterfeit mark of the filter element 300, and the image to be processed may be an image acquired by the image acquisition device 400.
As shown in fig. 13, for the case that only the clear boundary of the anti-counterfeit mark exists in the image to be processed, a black edge searching mode can be adopted to confirm the target area where the anti-counterfeit mark exists, or the data of the central part of the image can be directly intercepted.
In an actual scene, as shown in fig. 14, interference factors in an image to be processed are too many, a target area where the anti-counterfeiting mark is located cannot be accurately identified by searching for a black edge, as shown in fig. 15, the acquisition angle of the image to be processed is offset, and effective image data of the anti-counterfeiting mark cannot be obtained by intercepting data of the central part of the image.
Step 1220, performing image preprocessing on the image to be processed to obtain a first target image.
The difference between the anti-counterfeiting mark area and the background area in the first target image is larger than that in the image to be processed.
In the step, the difference between the anti-counterfeiting mark area and the background area in the image to be processed is increased through an image preprocessing means, so that a first target image is obtained, and the anti-counterfeiting mark area in the first target image is easier to identify.
The difference between the anti-counterfeiting mark region and the background region in the image refers to the difference between the image features of the anti-counterfeiting mark region and the image features of the background region, and the difference between the anti-counterfeiting mark region and the background region in the image to be processed can be increased through image processing means such as pixel expansion, contrast adjustment, binarization and the like, so that the anti-counterfeiting mark region in the image to be processed can be accurately positioned.
Step 1230, determining the target area where the anti-counterfeiting mark is located in the first target image based on the size information of the anti-counterfeiting mark.
In the step, a target area where the anti-counterfeiting mark is located is positioned in a first target image with obvious difference between the anti-counterfeiting mark area and the background area according to the size information of the anti-counterfeiting mark.
For example, the anti-counterfeiting mark is a square two-dimensional code with 90x90 pixels, and a target area where the anti-counterfeiting mark matched with the square with the size is located is searched for in the first target image based on the square with 90x90 pixels.
Step 1240, based on the target area, clipping the image to be processed to obtain the anti-counterfeiting mark image.
Wherein the anti-counterfeiting mark image is used for determining the product authenticity information of the filter element 300.
In this embodiment, the first target image is cut according to the target area where the anti-counterfeit mark is located, so as to obtain an anti-counterfeit mark image corresponding to the target area where the anti-counterfeit mark is located, the size of the cut image is greatly reduced, and the anti-counterfeit identification of the filter element 300 can also be realized by using a low-cost processor.
According to the anti-counterfeiting recognition method for the filter element, the image to be processed is preprocessed, the difference degree between the anti-counterfeiting mark area and the background area in the image to be processed is increased, the anti-counterfeiting mark area in the image can be accurately positioned, the image is cut according to the positioned target area, anti-counterfeiting recognition processing is carried out, and low-cost anti-counterfeiting recognition of the filter element can be achieved.
In some embodiments, step 1220 may include:
Performing binarization processing on the image to be processed to obtain a target binary image;
and based on the pixel value of each pixel point in the target binary image, performing expansion filling on the pixel points adjacent to each pixel point in the target binary image by adopting solid-color pixels to obtain a first target image.
In the embodiment, the image preprocessing of the image to be processed comprises binarization processing and pixel expansion filling, and the difference between the anti-counterfeiting mark area and the background area in the image to be processed is effectively increased through the binarization processing and the pixel expansion filling, so that the first target image is obtained.
In actual execution, binarization processing is carried out on the image to be processed according to a preset binarization threshold value, and the anti-counterfeiting mark area and the background area are primarily separated to obtain a target binary image.
And according to the pixel value of each pixel point in the target binary image, filling the adjacent pixel points with solid color pixels, highlighting the boundary between the anti-counterfeiting mark region and the background region, and increasing the difference between the anti-counterfeiting mark region and the background region in the image to be processed.
For example, as shown in fig. 16, the pixels of the target binary image are expanded, the pixel values of the pixels adjacent to one pixel of the target binary image are read one by one in the directions of the lower, left and diagonal directions, a threshold value is determined, whether the pixel is a black point is determined, and if the pixel is a black point, filling is performed by using black pixels until the expansion process of the entire target binary image is completed.
The image to be processed shown in fig. 15 is subjected to binarization processing and image preprocessing of pixel expansion filling, so that a first target image shown in fig. 17 can be obtained, and the difference between the anti-counterfeiting mark area and the background area in the first target image is more obvious.
In some embodiments, the fill extension direction of the solid-color pixels is determined based on a distribution characteristic of a background region in the target binary image.
It can be understood that the background area is the interference printing which affects the identification and positioning of the anti-counterfeiting mark area, and the filling expansion direction of the solid-color pixels is determined according to the distribution characteristics of the background area, so that the difference between the anti-counterfeiting mark area and the background area is effectively increased.
For example, as shown in fig. 15, the interference factor of the background area is a large number of vertical stripes, and the first target image with an increased degree of difference between the anti-counterfeit mark area and the background area can be obtained by expanding the filling and expanding directions of the black pixels as shown in fig. 16.
In some embodiments, step 1230 may include:
sequentially traversing all pixel points of a first target image by taking the pixel points of the first target image as reference points, and acquiring a count value of target pixel points in a region corresponding to size information in the first target image, wherein the target pixel points are pixel points with pixel values larger than a target pixel threshold value;
The target area is determined based on the count value of the target pixel point.
In this embodiment, according to the size information of the anti-counterfeit mark, starting from a pixel point at the lower left corner of the first target image, all pixel points of the first target image may be traversed in sequence, and calculating the count value of the target pixel point in the area corresponding to the size information with each pixel point as a reference point.
For example, the target pixel point is a black pixel point, the anti-counterfeiting mark is a square of 90x90 pixels, as shown in fig. 18, the pixel point at the lower left corner is used as the starting point, the count value of the black pixel point in the image of 90x90 pixels is calculated, then the reference point is shifted to the right by one pixel point, and the count value of the black pixel point in the image of 90x90 pixels is continuously calculated until all the pixel points of the first target image are traversed.
In some embodiments, a region in the first target image where the count value of the target pixel point is the largest is determined as the target region.
In this embodiment, after the count value of the target pixel point in the area corresponding to each size information in the first target image is obtained, the area with the largest count value is taken as the target area, as shown in fig. 19, the image to be processed may be cut according to the target area (the black frame beside the two-dimensional code), and the anti-counterfeit identification image is obtained for anti-counterfeit identification.
In some embodiments, after obtaining the count value of the target pixel point in the area corresponding to the size information in the first target image, the anti-counterfeit identification method of the filter element may further include:
and under the condition that the number of the areas, of which the count value of the target pixel points is larger than the target count threshold value, in the first target image is multiple, at least one of the image to be processed and the first target image is sent to a server so as to enable the server to perform anti-counterfeiting recognition on the filter element 300.
The target counting threshold may be a counting threshold determined according to a pixel ratio of a target pixel point in the anti-counterfeit mark, and when the count value of the target pixel point in a certain area in the first target image is greater than the target counting threshold, the area may be the area where the anti-counterfeit mark is located.
In this embodiment, the number of the areas in the first target image, in which the count value of the target pixel point is greater than the target count threshold, is multiple, so that the accurate position of the target area cannot be accurately positioned, and the image to be processed and/or the first target image can be sent to the server, so that the anti-counterfeiting recognition can be performed by using the strong computing capability of the server, and the recognition accuracy can be improved.
A specific embodiment is described below.
As shown in fig. 20, the image acquisition device 400 acquires an image to be processed, and may store the image in an on-chip Flash of the micro-processing unit, and then read the image from the on-chip Flash to perform image preprocessing.
And selecting a threshold value to perform binarization processing, performing binarization processing on an image to be processed, performing image preprocessing of black pixel expansion, judging the image to be a black pixel through the threshold value, filling black into adjacent data below, and reading a next pixel point until all filling is completed.
After the image preprocessing is completed, counting black pixel points in the area corresponding to the size information of the anti-counterfeiting mark in the first target image, selecting the first pixel point as a coordinate origin, reading square image data with a set width from the coordinate origin, calculating the number of black pixel points, moving the coordinate point to the next pixel point until all square pixel statistics is completed, and determining the area with the largest count value of the black pixel points as the target area where the anti-counterfeiting mark is located.
In the embodiment, the image preprocessing is carried out on the image to be processed, so that the difference degree between the anti-counterfeiting mark area and the background area in the image to be processed is increased, the anti-counterfeiting mark area in the image is accurately positioned, the image is cut according to the positioned target area, and low-cost anti-counterfeiting recognition of the filter element can be realized.
The embodiment of the application also provides an anti-counterfeiting recognition device for the filter element.
As shown in fig. 21, the anti-counterfeit identification device of the filter cartridge includes:
A third obtaining module 2110, configured to obtain an image to be processed of the filter element 300 to be identified, where the image to be processed includes an anti-counterfeit identifier of the filter element 300;
a sixth processing module 2120, configured to perform image preprocessing on an image to be processed to obtain a first target image, where a difference between an anti-counterfeit mark region and a background region in the first target image is greater than a difference between the anti-counterfeit mark region and the background region in the image to be processed;
a seventh processing module 2130, configured to determine a target area in which the anti-counterfeit mark is located in the first target image based on the size information of the anti-counterfeit mark;
the eighth processing module 2140 is configured to cut the image to be processed based on the target area to obtain an anti-counterfeit mark image, where the anti-counterfeit mark image is used to determine the product authenticity information of the filter element 300.
According to the anti-counterfeiting recognition device for the filter element, provided by the embodiment of the application, the image pretreatment is carried out on the image to be processed, so that the difference degree between the anti-counterfeiting mark area and the background area in the image to be processed is increased, the anti-counterfeiting mark area in the image can be accurately positioned, the image is cut according to the positioned target area, the anti-counterfeiting recognition processing is carried out, and the low-cost anti-counterfeiting recognition of the filter element can be realized.
In some embodiments, a sixth processing module 2120 is configured to perform binarization processing on the image to be processed to obtain a target binary image;
and based on the pixel value of each pixel point in the target binary image, performing expansion filling on the pixel points adjacent to each pixel point in the target binary image by adopting solid-color pixels to obtain a first target image.
In some embodiments, the fill extension direction of the solid-color pixels is determined based on a distribution characteristic of a background region in the target binary image.
In some embodiments, the seventh processing module 2130 is configured to sequentially traverse all pixels of the first target image with the pixels of the first target image as reference points, and obtain a count value of a target pixel in a region corresponding to the size information in the first target image, where the target pixel is a pixel whose pixel value is greater than a target pixel threshold;
the target area is determined based on the count value of the target pixel point.
In some embodiments, the seventh processing module 2130 is configured to determine a region of the first target image where the count value of the target pixel point is the largest as the target region.
In some embodiments, the seventh processing module 2130 is further configured to send at least one of the image to be processed and the first target image to the server for the server to perform anti-counterfeit identification on the filter element 300 if the count value of the target pixel point in the first target image is greater than the target count threshold value.
The embodiment of the application also provides a water purifying device, which comprises a filter element 300 and an anti-counterfeiting recognition system.
In this embodiment, the anti-counterfeit identification system is used for anti-counterfeit identification based on the anti-counterfeit identification method of the filter element, and the anti-counterfeit identification method of the filter element can include: acquiring a to-be-processed image of the filter element 300 to be identified, wherein the to-be-processed image comprises an anti-counterfeiting mark of the filter element 300; image preprocessing is carried out on the image to be processed to obtain a first target image, wherein the difference degree of the anti-counterfeiting mark area and the background area in the first target image is larger than that of the anti-counterfeiting mark area and the background area in the image to be processed; determining a target area where the anti-counterfeiting mark is located in the first target image based on the size information of the anti-counterfeiting mark; based on the target area, the image to be processed is cut to obtain an anti-counterfeiting mark image, and the anti-counterfeiting mark image is used for determining the authenticity information of the product of the filter element 300.
In some embodiments, the anti-counterfeiting identification system can include an anti-counterfeiting identification device of a filter cartridge as shown in fig. 21.
According to the water purifying equipment provided by the embodiment of the application, the image pretreatment is carried out on the image to be processed, so that the difference degree between the anti-counterfeiting mark area and the background area in the image to be processed is increased, the anti-counterfeiting mark area in the image can be accurately positioned, the image is cut according to the positioned target area, anti-counterfeiting recognition processing is carried out, and low-cost anti-counterfeiting recognition of the filter element can be realized.
As shown in fig. 22, the embodiment of the present application further provides an electronic device 2200, including a processor 2201, a memory 2202, and a computer program stored in the memory 2202 and capable of running on the processor 2201, where the program, when executed by the processor 2201, implements each process of the foregoing embodiments of the anti-counterfeit identification method of any filter element, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
The embodiment of the application also provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements each process of the above-mentioned embodiments of the anti-counterfeiting identification method of any filter element, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application also provides a computer program product, which comprises a computer program, and the computer program realizes the anti-counterfeiting identification method of any filter element when being executed by a processor.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application also provides a water purifying device, which can reduce the anti-counterfeiting recognition cost of the filter element and simplify the replacement operation of the filter element 300, and the water purifying device can perform anti-counterfeiting recognition of the filter element 300 based on the anti-counterfeiting recognition method of any filter element.
In this embodiment, the water purifying apparatus includes: the device comprises a shell 200, a filter element 300, an image acquisition device 400, a reset key and a control board.
As shown in fig. 23, the casing 200 defines an accommodating space, the filter element 300 is located in the accommodating space, the control board is located in the accommodating space, the image capturing device 400 is located in the accommodating space, and the image capturing device 400 is disposed toward the anti-counterfeit mark region of the filter element 300.
The image acquisition device 400 is configured to acquire an image of the anti-counterfeit label area of the filter element 300, and output the image to the control board, and the control board processes the image to perform anti-counterfeit identification of the filter element 300.
The reset key is arranged on the shell 200 and is used for outputting a reset key signal based on the received input; the control panel is connected with reset key and image acquisition device 400 electricity, and the control panel is used for controlling image acquisition device 400 to gather the image in anti-fake label region based on reset key signal.
In this embodiment, the user can click the reset key, and the control panel receives the reset key signal, and forwards the reset key signal to the image acquisition device 400, and the image acquisition device 400 starts to acquire images by receiving the signal, and through setting the reset key, the images are acquired when the reset key signal is input, and compared with the scheme of single shooting identification according to a certain frequency in the related art, the shooting frequency can be reduced, and the service life of the device is prolonged.
It should be noted that, the image acquisition device 400 is installed in the casing 200 of the water purifying apparatus, by comparing the images of the anti-counterfeit marks photographed by the image acquisition device 400 before and after receiving the reset key signal, it can be determined whether the filter element 300 of the water purifying apparatus is replaced, if the image data is inconsistent before and after receiving the reset key signal, it indicates that the filter element 300 is replaced, the anti-counterfeit identification is performed on the replaced new filter element 300, it is determined that the new filter element 300 is true, the new filter element 300 is reset, and the controller performs data binding according to the image of the anti-counterfeit mark of the new filter element 300, so that the replacement operation of the filter element 300 is simplified.
In some embodiments, the image capturing device 400 includes a plurality of image capturing units, which are disposed in one-to-one correspondence with the plurality of filter cartridges 300 of the water purifying apparatus.
The image acquisition device 400 can monitor a plurality of filter elements 300 in the water purifying equipment at the same time, and a user can automatically identify the filter elements 300 replaced in the water purifying equipment by inputting a reset key signal only once and automatically reset the filter elements 300.
In actual execution, when the replacement filter element 300 is detected to be false, the reset operation of pressing the reset key by the user is not effective, and the water purifying device outputs information to remind the user that the filter element 300 is false.
According to the water purifying equipment provided by the embodiment of the application, the image acquisition device 400 is matched with the reset key on the shell 200, the image of the anti-counterfeiting mark area of the filter element 300 is acquired, anti-counterfeiting recognition and reset operation are performed, the anti-counterfeiting recognition cost of the filter element can be reduced, and the replacement operation of the filter element 300 is simplified.
In some embodiments, the water purification apparatus further comprises a security information output device.
In this embodiment, the anti-counterfeiting information output device is disposed on the casing 200, and the anti-counterfeiting information output device is electrically connected to the control board, and is used for outputting the product authenticity information of the filter element 300.
The image acquisition device 400 acquires the image of the anti-counterfeiting mark area of the filter element 300, performs anti-counterfeiting recognition on the filter element 300, and when the filter element 300 is recognized as true, the anti-counterfeiting information output device can output information that the filter element 300 is true, and the control board performs automatic resetting operation on the filter element 300.
When the filter element 300 is identified as false, the anti-counterfeiting information output device can output information that the filter element 300 is false, remind a user that the filter element 300 is false, and a reset key signal input by the user is not effective.
In practical implementation, the anti-counterfeiting information output device may be a display, a speaker, or other devices capable of outputting information.
In some embodiments, the security information output device includes a security indicator light for lighting up if the cartridge 300 is identified as being false.
In this embodiment, when the cartridge 300 is identified as false, the tamper indicator lights up alerting the user that the cartridge 300 is false.
In some embodiments, image capture device 400 includes an image capture component and a light supplementing component.
In this embodiment, the image capturing device 400 is disposed in the accommodating space of the casing 200, and the light supplementing component can supplement light for capturing of the image capturing component, so as to ensure that the image capturing device 400 can capture a clear image.
In some embodiments, the water purification apparatus may further include a communication module.
In this embodiment, the communication module is electrically connected to a control board for communicating with the server through the communication module.
In actual implementation, the control board can collect the image collected by the image collection device 400 and transmit the image to the server, the anti-counterfeiting identification is performed by utilizing the strong computing power of the server, and the control board can also transmit the information such as the serial number obtained by the anti-counterfeiting identification of the filter element to the server, so that the binding of the water purification equipment and the filter element 300 is realized.
In some embodiments, the control board is configured to receive a heartbeat signal sent by the image capturing device 400 at a target time interval, and send a feedback signal corresponding to the heartbeat signal to the image capturing device 400.
In this embodiment, a communication mode of timing heartbeat is adopted between the control board and the image acquisition device 400, so that a communication link between the control board and the image acquisition device 400 is smooth, and the image can be normally output to the control board when the image acquisition device 400 acquires an image.
In some embodiments, the water purifying apparatus may further include a fault information output device.
In this embodiment, a fault information output device is electrically connected to the control board, the fault information output device being provided to the cabinet 200, the fault information output device being for outputting fault information of the water purification apparatus.
When the image acquisition device 400, the reset key, the control panel or other components of the water purification device fail, the failure information output device can output corresponding failure information to remind the user of the failure of the device, and timely inform the user of after-sale maintenance of the failure.
In practical implementation, the anti-counterfeiting information output device may be a display, a speaker, or other devices capable of outputting information.
In some embodiments, the fault information output means comprises at least one fault indicator light for lighting up in case of a malfunction of the water purification apparatus.
In actual implementation, the fault information output device may include fault indication lamps corresponding to a plurality of components of the water purifying apparatus, for example, the fault information output device may include three fault indication lamps, and two fault indication lamps respectively correspond to the image capturing device 400, the reset key, and the communication module.
When a fault indicator corresponding to the image acquisition device 400 is lighted, the image acquisition device 400 is indicated to have a fault; when a fault indicator lamp corresponding to the reset key is turned on, indicating that the reset key is faulty; and when the fault indicator lamp corresponding to the communication module is lighted, indicating that the communication module is faulty.
Among them, the malfunction of the image pickup device 400 can be classified into a malfunction of the image pickup section and a malfunction of the light supplementing section.
When the light supplementing component fails, the image collected by the image collecting device 400 may be darker, and whether the light supplementing component fails may be determined according to the image collected by the image collecting device 400.
A specific embodiment is described below.
As shown in fig. 24, the user presses the reset key, receives the reset key information, and the image pickup device 400 picks up an image, recognizing the image.
In this embodiment, it is determined whether or not each component of the water purifying apparatus has failed, no failure has occurred, and the cartridge 300 is recognized as true, and the reset operation of the cartridge 300 is automatically performed; when a fault occurs, the fault information output device outputs fault information to inform a reminding user of after-sale solution.
In some embodiments, the reset key of the water purification device is a light sensitive key.
In this embodiment, the light sensing key is used to collect light sensing signals, generate corresponding reset key signals, control the image collecting device 400 to collect images, collect light sensing information, and can trigger the light sensing key without direct contact when a user gets an object in wet hands or hands.
It can be understood that the interior space of the casing 200 of the water purifying device is limited, the photographing distance required by the conventional camera module is long, the conventional camera module is difficult to install in the casing 200, the interior of the water purifying device is a closed space, the light is insufficient, and the imaging quality of the conventional camera module is poor.
The embodiment of the application also provides an image acquisition device 400, and the image acquisition device 400 is used for anti-counterfeiting identification of the water purification device filter element 300, and can be installed inside the water purification device, and sufficient light is provided for anti-counterfeiting identification, so that the size of the water purification device is reduced, and the space utilization rate of the inside of the water purification device is improved.
The image capturing device 400 according to the embodiment of the present application may include a lens, a light supplementing device, and a light guiding assembly 410.
The lens is used for collecting images of the anti-counterfeiting mark area of the filter element 300, and the light supplementing device is used for supplementing light for the images collected by the lens.
As shown in fig. 25, the light guide assembly 410 includes a first light surface 411 and a second light surface 412, the first light surface 411 and the second light surface 412 are not disposed opposite to each other so that the light path of the light guide assembly 410 is a bent light path, the lens and the light supplementing device are disposed towards the first light surface 411, and the second light surface 412 is disposed towards the anti-counterfeit mark region of the filter element 300.
In this embodiment, the first light surface 411 and the second light surface 412 are not disposed opposite to each other, the light path of the light guide assembly 410 is bent compactly, the distance between the two light surfaces is greatly reduced compared to the conventional light path in the vertical or horizontal direction in the related art, and the size of the image capturing device 400 is reduced, so that the device can be conveniently installed in a narrow space in the cabinet 200.
In actual implementation, as shown in fig. 27, the image acquisition device 400 provided with the bent light path light guide component 410 may be attached to the surface of the filter element, and installed in a narrow space between the filter element 300 and the casing 200, so as to improve the space utilization rate inside the water purifying apparatus and help to reduce the size of the water purifying apparatus.
In this embodiment, the light guide assembly 410 is used to guide light to transmit between the first light surface 411 and the second light surface 412, and the lens is used to collect an image of the anti-counterfeit mark region through the light guide assembly 410.
Light rays emitted by the light supplementing device enter from the first light surface 411, are guided by the light guide assembly 410, and are emitted from the second light surface 412 to uniformly illuminate the anti-counterfeiting mark area of the filter element 300; light rays of the anti-counterfeiting mark area of the filter element 300 enter from the second light surface 412, are guided by the light guide assembly 410, are emitted from the first light surface 411, are received by the lens, and collect images of the anti-counterfeiting mark area of the filter element 300.
According to the image acquisition device 400 provided by the embodiment of the application, the light guide assemblies 410 with the two light surfaces which are not just arranged guide the light transmission between the filter element 300 and the lens, the light supplementing device is close to the lens, sufficient light is provided for anti-counterfeiting recognition, the problem that the image acquisition device 400 is installed in a narrow space inside the water purifying equipment is solved, the space utilization rate inside the water purifying equipment is improved, and the size of the water purifying equipment is reduced.
The following describes embodiments of the present application in detail from two different implementation angles, respectively.
1. The light guide assembly 410 is a prismatic structure.
In this embodiment, the light guide assembly 410 is a prism structure, through which the proceeding direction of the light is changed, and the light is propagated and reflected in the prism structure to be turned, so that a light path longer in the vertical or horizontal direction in the related art is folded.
In some embodiments, as shown in fig. 26, the prism structure includes a first prism column 413 and a second prism column 414, the first light surface 411 is located at one end of the first prism column 413, the other end of the first prism column 413 is connected to one end of the second prism column 414, and the second light surface 412 is located at the other end of the second prism column 414.
Light emitted by the light supplementing device enters from one end of the first prism column 413, the light completes propagation and reflection steering in the first prism column 413 and the second prism column 414, and the light exits from the other end of the second prism column 414, so that the anti-counterfeiting mark area of the filter element 300 is uniformly illuminated.
Light rays in the anti-counterfeiting mark area of the filter element 300 are emitted from the other end of the second prism column 414, the light rays are transmitted and reflected and turned by the second prism column 414 and the first prism column 413, emitted from one end of the first prism column 413, received by a lens, and an image of the anti-counterfeiting mark area of the filter element 300 is acquired.
In some embodiments, the first prism column 413 is provided with a first reflecting surface 415, the second prism column 414 is provided with a second reflecting surface 416, the first reflecting surface 415 is configured to reflect the light of the first light surface 411 to the second reflecting surface 416, and the second reflecting surface 416 is configured to reflect the light of the second light surface 412 to the first reflecting surface 415.
In this embodiment, the first reflecting surface 415 of the first prism 413 and the second reflecting surface 416 of the second prism 414 provide a light reflection and steering function, and by adjusting the connection angle between the first prism 413 and the second prism 414, the angle between the first reflecting surface 415 and the first light surface 411, and the angle between the second reflecting surface 416 and the second light surface 412, light is ensured to be transmitted between the first light surface 411 and the second light surface 412.
In some embodiments, a third reflecting surface 417 is disposed at the connection between the first prism column 413 and the second prism column 414, and the third reflecting surface 417 is configured to reflect the light beam from the first reflecting surface 415 to the second reflecting surface 416.
In this embodiment, the light guide component 410 is provided with three reflective surfaces, namely, a first reflective surface 415, a second reflective surface 416 and a third reflective surface 417, where the first reflective surface 415 cannot directly reflect light to the second reflective surface 416, and the light can be transmitted between the first light surface 411 and the second light surface 412 by the light reflection of the third reflective surface 417.
It should be noted that, when the light guide component 410 is in a prism structure, the number of reflecting surfaces of the prism structure may be three, or may be other numbers, and the number and the included angle of the reflecting surfaces may be adjusted according to the positional relationship between the anti-counterfeit mark area of the filter element 300 and the lens, so as to ensure that the first light surface 411 and the second light surface 412 are not directly opposite to each other, and the light path of the light guide component 410 is a bent light path.
In some embodiments, the angle between the first reflecting surface 415 and the first light surface 411 is 45 degrees, the angle between the second reflecting surface 416 and the second light surface 412 is 45 degrees, and the angle between the third reflecting surface 417 and the first reflecting surface 415 and the angle between the third reflecting surface 417 and the second reflecting surface 416 are both 90 degrees.
For example, the ambient light reflected by the anti-counterfeit mark region of the filter element 300 is in a vertical direction, enters the prism structure from the second light surface 412, is converted into a horizontal direction after being totally reflected by the second reflecting surface 416, is totally reflected once by the third reflecting surface 417, is totally reflected once by the first reflecting surface 415, and then is emitted from the first light surface 411, is received by the lens, and acquires the image of the anti-counterfeit mark region.
In this embodiment, the light is turned by multiple total reflections in the light guide assembly 410, the overall light path of the light guide assembly 410 is compact, the light path is greatly compressed in the vertical space, the overall size of the image acquisition device 400 is reduced, and the device is easy to install inside the water purifier.
In some embodiments, the prism structure is made of plastic or glass.
In practical implementations, the prism structure may be made of optical materials such as plastic or glass, and the optical materials are polished to form reflecting surfaces with different angles and different positions in the prism structure.
2. The light guide assembly 410 is provided with a mirror 418.
In some embodiments, the light guide assembly 410 defines a light guide channel, one end of the light guide channel is a first light surface 411, the other end of the light guide channel is a second light surface 412, and at least one mirror 418 is disposed in the light guide channel.
The light guide component 410 defines a light guide channel, light is transmitted in the light guide channel, one end of the light guide channel is a first light surface 411, the lens and the light supplementing device are arranged towards the first light surface 411, the other end of the light guide channel is a second light surface 412, and the anti-counterfeiting mark area of the filter element 300 is arranged towards the second light surface 412.
As shown in fig. 25, a reflecting mirror 418 is disposed in the light guide channel, the ambient light reflected by the anti-counterfeit mark region of the filter element 300 is in a vertical direction, enters the light guide channel from the second light surface 412, is converted into a horizontal direction after being totally reflected by the reflecting mirror 418, and exits from the first light surface 411 to be received by the lens, and the image of the anti-counterfeit mark region is collected.
It should be noted that, the number and the setting angle of the reflecting mirrors 418 in the light guide channel may be one or more, and may be adjusted according to the positional relationship between the anti-counterfeit mark area of the filter element 300 and the lens, so as to ensure that the first light surface 411 and the second light surface 412 are not directly opposite to each other, and the light path of the light guide component 410 is a bent light path.
In actual implementation, the mirror 418 may be a smooth material with a reflective coating on the surface or back.
In some embodiments, the light supplementing means comprises one or more light supplementing lamps.
In this embodiment, a light supplement lamp with enough power or a plurality of light supplement lamps can be provided to provide enough illumination so that the lens can collect an image of the clear anti-counterfeit mark region.
In actual implementation, the light supplement lamp may be an LED lamp.
The embodiment of the application also provides a water purifying device, which comprises the image acquisition device 400.
As shown in fig. 27, the water purifying apparatus includes: the housing 200, at least one cartridge 300, and at least one image capture device 400.
The housing 200 defines an accommodating space, the filter element 300 and the image acquisition device 400 are located in the accommodating space, the image acquisition device 400 corresponds to the filter element 300 one by one, and the image acquisition device 400 is arranged towards the anti-counterfeiting mark area of the filter element 300.
The light guide assembly 410 of the image capturing device 400 includes a first light surface 411 and a second light surface 412, the first light surface 411 and the second light surface 412 are not disposed directly opposite to each other so that the light path of the light guide assembly 410 is a bent light path, the lens and the light supplementing device are disposed towards the first light surface 411, and the second light surface 412 is disposed towards the anti-counterfeit mark region of the filter element 300.
In this embodiment, the first light surface 411 and the second light surface 412 are not disposed opposite to each other, the light path of the light guide assembly 410 is bent compactly, the distance between the two light surfaces is greatly reduced compared to the conventional light path in the vertical or horizontal direction in the related art, and the size of the image capturing device 400 is reduced, so that the device can be conveniently installed in a narrow space in the cabinet 200.
Light rays emitted by the light supplementing device enter from the first light surface 411, are guided by the light guide assembly 410, and are emitted from the second light surface 412 to uniformly illuminate the anti-counterfeiting mark area of the filter element 300; light rays of the anti-counterfeiting mark area of the filter element 300 enter from the second light surface 412, are guided by the light guide assembly 410, are emitted from the first light surface 411, are received by the lens, and collect images of the anti-counterfeiting mark area of the filter element 300.
According to the water purification equipment provided by the embodiment of the application, the light guide assembly 410 with the two light surfaces which are not just arranged is used for guiding the light transmission between the filter element 300 and the lens, the light supplementing device is close to the lens, sufficient light is provided for anti-counterfeiting identification, the problem that the image acquisition device 400 is installed in a narrow space inside the water purification equipment is solved, the space utilization rate inside the water purification equipment is improved, and the size of the water purification equipment is reduced.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
In the description of the present application, it should be understood that the terms "center," "longitudinal," "transverse," "length," "width," "upper," "lower," "left," "right," "vertical," "horizontal," and the like indicate an orientation or a positional relationship based on that shown in the drawings, merely for convenience of description and to simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application.
In the description of the present application, "first feature", "second feature" may include one or more such features, and "plurality" means two or more.
In the description of the present specification, reference to the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. An image acquisition device, its characterized in that, image acquisition device is used for the anti-fake discernment of water purification unit filter core, image acquisition device includes:
a lens and a light supplementing device;
the light guide assembly comprises a first light surface and a second light surface, the first light surface and the second light surface are not arranged right opposite to each other so that the light path of the light guide assembly is a bent light path, the lens and the light supplementing device are arranged towards the first light surface, and the second light surface is arranged towards the anti-counterfeiting mark area of the filter element;
the lens is used for collecting images of the anti-counterfeiting mark area through the light guide assembly.
2. The image acquisition device of claim 1, wherein the light guide assembly is a prismatic structure.
3. The image capturing device of claim 2, wherein the prismatic structure comprises a first prism column and a second prism column, the first light surface is located at one end of the first prism column, the other end of the first prism column is connected to one end of the second prism column, and the second light surface is located at the other end of the second prism column.
4. The image capturing device of claim 3, wherein the first prism column is provided with a first reflective surface, the second prism column is provided with a second reflective surface, the first reflective surface is configured to reflect light from the first light surface to the second reflective surface, and the second reflective surface is configured to reflect light from the second light surface to the first reflective surface.
5. The image capturing device of claim 4, wherein a third reflecting surface is disposed at a junction of the first prism column and the second prism column, and the third reflecting surface is configured to reflect light rays from the first reflecting surface to the second reflecting surface.
6. The image capturing device of claim 5, wherein an angle between the first reflective surface and the first light surface is 45 degrees, an angle between the second reflective surface and the second light surface is 45 degrees, and an angle between the third reflective surface and the first reflective surface and an angle between the third reflective surface and the second reflective surface are both 90 degrees.
7. The image capturing device of claim 2, wherein the prism structure is made of plastic or glass.
8. The image capturing device of claim 1, wherein the light guide assembly defines a light guide channel, one end of the light guide channel is the first light surface, the other end of the light guide channel is the second light surface, and at least one mirror is disposed in the light guide channel.
9. The image capture device of any one of claims 1-8, wherein the light supplementing device comprises one or more light supplementing lamps.
10. A water purification apparatus, comprising:
a housing defining an accommodation space;
at least one filter cartridge located within the receiving space;
at least one image acquisition device according to any one of claims 1-9, wherein the image acquisition device is located in the accommodating space, the image acquisition device corresponds to the filter element one by one, and the image acquisition device is arranged towards the anti-counterfeiting mark area of the filter element.
CN202321959810.0U 2023-07-21 2023-07-21 Image acquisition device and water purification equipment Active CN220383156U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202321959810.0U CN220383156U (en) 2023-07-21 2023-07-21 Image acquisition device and water purification equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202321959810.0U CN220383156U (en) 2023-07-21 2023-07-21 Image acquisition device and water purification equipment

Publications (1)

Publication Number Publication Date
CN220383156U true CN220383156U (en) 2024-01-23

Family

ID=89569538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202321959810.0U Active CN220383156U (en) 2023-07-21 2023-07-21 Image acquisition device and water purification equipment

Country Status (1)

Country Link
CN (1) CN220383156U (en)

Similar Documents

Publication Publication Date Title
JP5318122B2 (en) Method and apparatus for reading information contained in bar code
US20070183652A1 (en) Method for detecting a code with the aid of a mobile station
CN103471512B (en) A kind of glass plate width detecting system based on machine vision
CN112165573B (en) Shooting processing method and device, equipment and storage medium
CN109100370A (en) A kind of pcb board defect inspection method based on sciagraphy and connected domain analysis
WO2017157034A1 (en) Method, device, and storage medium for identifying two-dimensional code
CN102833478B (en) Fault-tolerant background model
EP2551833A1 (en) Device for registering and managing book based on computer vision and radio frequency identification technique
CN112052815B (en) Behavior detection method and device and electronic equipment
WO2007067132A1 (en) A method and a device for obtaining a meter reading of a counter mechanism
CN110008771B (en) Code scanning system and code scanning method
CN105279511A (en) Color time varying characteristic-based traffic light relocating method and device
CN113688820A (en) Stroboscopic stripe information identification method and device and electronic equipment
CN107742119B (en) Object contour extraction and matching device and method based on back-image imaging
CN116523921A (en) Detection method, device and system for tab turnover condition
CN108876824B (en) Target tracking method, device and system and dome camera
CN107622496A (en) Image processing method and device
CN220383156U (en) Image acquisition device and water purification equipment
CN220381596U (en) Water purifying equipment
CN113537088A (en) Digital image sensor hardware fingerprint matching method and system based on small sample learning
CN116883022A (en) Anti-counterfeiting recognition method and device for filter element and water purification equipment
CN116883021A (en) Anti-counterfeiting recognition method and device for filter element and water purification equipment
CN116883019A (en) Anti-counterfeiting recognition method and device for filter element, water purifying equipment and electronic equipment
CN110896469A (en) Resolution testing method for three-shot photography and application thereof
CN113780037A (en) Indicator light identification method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant