Disclosure of Invention
In order to solve the related technical problems in the prior art, the invention provides a block chain type lens appearance identification system which can intelligently judge the shape and the area of a single-side lens to be polished based on the appearance and the size of a field user spectacle frame and execute respective single-side lens polishing operations of a left-side lens and a right-side lens, thereby reducing manual operation links.
Therefore, the invention needs to have the following three important points:
(1) introducing a monotonous green background plate right below a user frame to improve the identification precision and efficiency of the left lens occupying area and the right lens occupying area of the user frame and provide valuable reference data for subsequently determining the polishing shapes of the left lens and the right lens;
(2) calculating the entity area of the left lens after polishing based on the imaging area of the left lens area and the current imaging focal length of the imaging mechanism, and calculating the entity area of the right lens after polishing based on the imaging area of the right lens area and the current imaging focal length of the imaging mechanism;
(3) and performing remote identification operation on key processing, namely a left lens area and a right lens area of the user spectacle frame by adopting a block chain processing node, so that key data leakage is avoided, and occupation of local hardware resources is reduced.
According to an aspect of the present invention, there is provided a block chain lens profile recognition system, the system comprising:
a grinding executing mechanism arranged near the clamping mechanism and used for grinding the left lens based on the received first reference appearance;
the polishing executing mechanism is also used for polishing the right lens based on the received second reference shape;
the user input equipment is connected with the polishing actuating mechanism and used for sending a left polishing instruction or a right polishing instruction to the polishing actuating mechanism under the control of a user;
the spectacle frame supporting mechanism is used for horizontally placing a user spectacle frame to be used for manufacturing lenses, and a monotonous green background plate is arranged right below the spectacle frame supporting mechanism;
the automatic telescopic structure comprises a clamping mechanism, a mechanical arm and a micro-control motor, wherein the micro-control motor is connected with the mechanical arm and is used for driving the mechanical arm to drive a lens to be polished clamped by the clamping mechanism to rush to a polishing area;
the data acquisition equipment is arranged right above the mirror bracket supporting mechanism and used for acquiring real-time image data of a scene in which the mirror bracket supporting mechanism is horizontally placed on a user mirror bracket so as to obtain a corresponding real-time scene image;
the curve processing equipment is connected with the data acquisition equipment and is used for adjusting the maximum radian of each curve in the received real-time scene image to be lower than or equal to a preset curve maximum radian threshold value so as to obtain and output a corresponding radian adjustment image;
the smooth filtering equipment is connected with the curve processing equipment and is used for executing edge-preserving smooth filtering processing on the received radian adjustment image so as to obtain and output a corresponding smooth filtering image;
the content filtering equipment is connected with the smoothing filtering equipment and is used for executing Butterworth low-pass filtering processing on the received smoothing filtering image so as to obtain and output a corresponding content filtering image;
the color filtering mechanism is connected with the content filtering equipment and is used for filtering a monotone green imaging area from the content filtering image to obtain an imaging area of a user lens frame;
a block chain processing node, disposed at a distal end, connected to the color filtering mechanism through a network, and configured to identify a left lens area and a right lens area from an imaging area of the user frame based on a reference frame configuration shape, where the reference frame configuration shape is a layout shape of a left lens, an intermediate connector, and a right lens;
and the signal extraction mechanism is connected with the block chain processing node through a network and is used for taking the geometric shape formed by the edge pixel points of the left side lens area as a first reference shape and taking the geometric shape formed by the edge pixel points of the right side lens area as a second reference shape.
According to another aspect of the present invention, there is also provided a block chain lens shape recognition terminal, comprising: a memory and a processor, the processor coupled to the memory; the memory for storing executable instructions of the processor; the processor is configured to invoke executable instructions in the memory to implement a method of using the block chained lens shape recognition system as described above to intelligently determine the shape and area of a single-sided lens that needs to be polished based on the shape and size of a field user frame.
The block chain type lens shape identification system and the corresponding terminal logic of the invention are reliable and have wide application. Because the shape and the area of the single-side lens needing to be polished can be intelligently judged based on the appearance and the size of the spectacle frame of the field user, and the respective single-side lens polishing operation of the corresponding left-side lens and the right-side lens is executed, the manual operation links in the lens polishing process are reduced.
Detailed Description
Embodiments of a block chain lens profile recognition system and a corresponding terminal according to the present invention will be described in detail with reference to the accompanying drawings.
The lens is made of transparent materials with one or more curved surfaces, which are made of optical materials such as glass or resin, and the lens is often assembled with a spectacle frame to form spectacles after being polished, so that the spectacles are used for correcting the eyesight of a user and obtaining a clear visual field.
The lens can be mainly classified into a glass lens, a resin lens, a PC lens, etc. according to the material. Resins are hydrocarbon (hydrocarbon) secretions from plants, particularly conifers, that are valued for other specific chemical structures. The resin can be classified into natural resin and synthetic resin, and the resin lens is a lens chemically synthesized by using the resin as a raw material and formed by processing and polishing. The resin lens has obvious advantages, light weight and more comfortable wearing; secondly, the resin lens has strong shock resistance, is not easy to break and is safer; meanwhile, the resin lens also has good light transmission; in addition, the resin lens is easy to reprocess and can meet special requirements, and finally, the resin lens also has good wear resistance due to the innovation and promotion of a coating process, so that the resin lens becomes the mainstream of the lens on the market.
Currently, after a user wearing eyeglasses selects an eyeglass frame and lenses, the lenses are ground to obtain a lens shape and size that matches the various different types of eyeglass frames selected. However, currently, most of the existing methods manually perform the polishing process of the lenses by using a manual polishing method, or manually perform subsequent fine polishing operations after polishing a semi-finished lens product with a fixed size and a large size by using an automatic polishing machine, obviously, the speed of the polishing mechanism of the lenses is slow, and users who need to wear glasses wait for a long time.
Fig. 1 is a schematic structural diagram of a user frame to which a block chain lens shape recognition system is applied according to an embodiment of the present invention.
In order to overcome the defects, the invention builds a block chain type lens shape identification system and a corresponding terminal, and can effectively solve the corresponding technical problem.
A block chain lens outline recognition system according to an embodiment of the present invention is shown comprising:
a grinding executing mechanism arranged near the clamping mechanism and used for grinding the left lens based on the received first reference appearance;
the polishing executing mechanism is also used for polishing the right lens based on the received second reference shape;
the user input equipment is connected with the polishing actuating mechanism and used for sending a left polishing instruction or a right polishing instruction to the polishing actuating mechanism under the control of a user;
the spectacle frame supporting mechanism is used for horizontally placing a user spectacle frame to be used for manufacturing lenses, and a monotonous green background plate is arranged right below the spectacle frame supporting mechanism;
the automatic telescopic structure comprises a clamping mechanism, a mechanical arm and a micro-control motor, wherein the micro-control motor is connected with the mechanical arm and is used for driving the mechanical arm to drive a lens to be polished clamped by the clamping mechanism to rush to a polishing area;
the data acquisition equipment is arranged right above the mirror bracket supporting mechanism and used for acquiring real-time image data of a scene in which the mirror bracket supporting mechanism is horizontally placed on a user mirror bracket so as to obtain a corresponding real-time scene image;
the curve processing equipment is connected with the data acquisition equipment and is used for adjusting the maximum radian of each curve in the received real-time scene image to be lower than or equal to a preset curve maximum radian threshold value so as to obtain and output a corresponding radian adjustment image;
the smooth filtering equipment is connected with the curve processing equipment and is used for executing edge-preserving smooth filtering processing on the received radian adjustment image so as to obtain and output a corresponding smooth filtering image;
the content filtering equipment is connected with the smoothing filtering equipment and is used for executing Butterworth low-pass filtering processing on the received smoothing filtering image so as to obtain and output a corresponding content filtering image;
the color filtering mechanism is connected with the content filtering equipment and is used for filtering a monotone green imaging area from the content filtering image to obtain an imaging area of a user lens frame;
a block chain processing node, disposed at a distal end, connected to the color filtering mechanism through a network, and configured to identify a left lens area and a right lens area from an imaging area of the user frame based on a reference frame configuration shape, where the reference frame configuration shape is a layout shape of a left lens, an intermediate connector, and a right lens;
and the signal extraction mechanism is connected with the block chain processing node through a network and is used for taking the geometric shape formed by the edge pixel points of the left side lens area as a first reference shape and taking the geometric shape formed by the edge pixel points of the right side lens area as a second reference shape.
Next, the specific structure of the block chain lens shape recognition system of the present invention will be further described.
In the block chain lens profile identification system:
and when the grinding executing mechanism receives the left grinding instruction, the grinding executing mechanism carries out grinding on the left lens on the lens to be ground, which is clamped by the clamping mechanism.
In the block chain lens profile identification system:
and when the polishing executing mechanism receives the right polishing instruction, the right lens to be polished clamped by the clamping mechanism is polished.
The block chain lens shape recognition system can further comprise:
and the area recognition mechanism is connected with the appearance analysis equipment and used for calculating the entity area of the polished left lens based on the pixel point number of the left lens area and the current imaging focal length of the data acquisition equipment.
In the block chain lens profile identification system:
the area identification mechanism is further used for calculating the entity area of the polished right lens based on the number of pixel points in the right lens area and the current imaging focal length of the data acquisition equipment.
In the block chain lens profile identification system:
the smoothing filter device has a serial communication interface for receiving serial communication data inputted from the outside.
In the block chain lens profile identification system:
the content filtering device is provided with a parallel communication interface for receiving externally input parallel communication data, and the number of bits of the parallel communication interface is 8 bits or 16 bits.
In the block chain lens profile identification system:
the color filtering mechanism is connected with an IIC control bus and used for receiving various control commands sent by the IIC control bus, and the various control commands are used for respectively configuring various working parameters of the color filtering mechanism;
wherein the smoothing filter device, the content filter device, and the color filter mechanism share a same clock generation device, which is a quartz oscillator.
The block chain lens shape recognition system can further comprise:
the content display equipment is connected with the smoothing filter equipment and is used for receiving and displaying the working state of the smoothing filter equipment;
the content display device is also connected with the content filtering device and used for receiving and displaying the working state of the content filtering device.
Meanwhile, in order to overcome the defects, the invention also builds a block chain type lens shape identification terminal, and the terminal comprises: a memory and a processor, the processor coupled to the memory;
wherein the memory is used for storing executable instructions of the processor;
wherein the processor is configured to invoke executable instructions in the memory to implement a method of using the block chained lens shape recognition system as described above to intelligently determine the shape and area of a single-sided lens that needs to be polished based on the shape and size of a field user frame.
In addition, during IIC bus transfers, two specific cases are defined as start and stop conditions: when SCL remains "high", SDA changes from "high" to "low" as a starting condition; the stop condition is when SCL remains "high" and SDA changes from "low" to "high". Both start and stop conditions are generated by the master controller. Start and stop conditions can be easily detected using a hardware interface, and a microcomputer without such an interface must sample the SDA at least twice per clock cycle to detect such a change.
The data on the SDA line must be stable during the clock "high", and the "high" or "low" state on the data line can only change when the clock signal on the SCL line is low. Each byte output onto the SDA line must be 8 bits, the bytes per transfer are not limited, but there must be an acknowledge ACK per byte. If a receiving device is unable to receive a complete byte of another data before performing another function (e.g., an internal interrupt), it may hold clock line SCL low to cause the transmitter to enter a wait state; the data transfer continues after the receiver is ready to accept the other bytes of data and release the clock SCL.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.