CN116030114A - Manufacturing method, device, equipment and medium of bioelectrical homologous electronic impression - Google Patents

Manufacturing method, device, equipment and medium of bioelectrical homologous electronic impression Download PDF

Info

Publication number
CN116030114A
CN116030114A CN202211741704.5A CN202211741704A CN116030114A CN 116030114 A CN116030114 A CN 116030114A CN 202211741704 A CN202211741704 A CN 202211741704A CN 116030114 A CN116030114 A CN 116030114A
Authority
CN
China
Prior art keywords
stamp
line
component
image
pixel points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211741704.5A
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.)
Chongqing Aos Online Information Technology Co ltd
Original Assignee
Chongqing Aos Online Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Aos Online Information Technology Co ltd filed Critical Chongqing Aos Online Information Technology Co ltd
Priority to CN202211741704.5A priority Critical patent/CN116030114A/en
Publication of CN116030114A publication Critical patent/CN116030114A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Image Processing (AREA)

Abstract

The application discloses a manufacturing method of an object-electricity homologous electronic stamp, which comprises the steps of reading a stamp image, decoding the stamp image into ARGB pixel data, setting an alpha component in the ARGB pixel value as a fixed value, setting RGB color component threshold values according to the stamp color, traversing each pixel point, respectively judging the RGB components of the pixel points, setting a transparent component A of the pixel points, of which the RGB components are not in a threshold value range, as 0, obtaining an image with a transparent channel, positioning the stamp position according to the upper, lower, left and right positions of a stamp in the stamp image, cutting out the stamp, and creating image data with an index according to the image with the transparent channel; and compressing the seal image, and marking the image data obtained by the pixel points in the channel A according to the corresponding position of the index map to obtain the PNG picture file, thereby obtaining the electronic stamp. The volume of the impression picture is greatly reduced, and the storage and network transmission are facilitated.

Description

Manufacturing method, device, equipment and medium of bioelectrical homologous electronic impression
Technical Field
The application relates to the technical field of electronic information technology and electronic seals, in particular to a manufacturing method of an object-electricity homologous electronic stamp.
Background
When the paper file becomes an electronic document, the evolution of the physical seal into an electronic seal takes place naturally as if it were a seal. The existing electronic seal is mostly manufactured by printing a seal shape by using an entity seal, then uploading seal information to a computer through scanning or photographing, and operating pictures by using professional software to form the electronic seal. The physical seal is simulated in an electronic mode, so that a user has application experience conforming to the traditional seal using habit in e-government affairs, e-commerce and other activities. However, this method has many drawbacks, including firstly a high requirement for the picture to be processed in the incoming computer software, and secondly, whether the picture is an entity seal or an electronic seal in the actual use process and the condition of having the same name, it is difficult to determine whether the picture is a seal of a designated party. Due to the specificity of the electronic document, the electronic seal is easier to forge by technical means.
The electronic stamp is used for manufacturing the electronic stamp, and has equivalent legal effect by combining with CA for signing PDF and OFD files.
The method mainly adopted for manufacturing the electronic stamp at present comprises the steps of 1, directly generating the stamp according to stamp information, wherein the stamp is quite different from a physical stamp and is not in physical-electrical homology. 2. After stamping by using a real object, the PS software is used for matting after scanning, and the storage space occupied by the matting is large.
As disclosed in publication No. CN114782293a, entitled "method, apparatus, and electronic device for manufacturing an electronic stamp of physical and electrical homology", discloses a method for manufacturing an electronic stamp of physical and electrical homology, in which an image of a stamp card is acquired to obtain an image of the stamp card, and a stamp card is covered with a stamp image of a physical financial stamp to be acquired; and cutting out a seal image from the seal card image to obtain the target electronic seal with the same size as the physical financial seal.
However, when the method generates the stamp, the color space conversion is needed, a special stamp acquisition card is needed to be manufactured, the realization is complex, more stamp information is lost in the stamp face data extracted by converting the rendering image, the picture storage space is large, and the electronic stamp is not suitable to be manufactured.
Disclosure of Invention
The invention aims to solve the technical problems that in the prior art, a special stamp acquisition card needs to be manufactured, the realization is complex and the picture storage space is large in order to manufacture an electronic stamp, and provides a manufacturing method of an object-electricity homologous electronic stamp. The stamp processing program has simple logic and easy realization.
The technical scheme of the invention for solving the technical problems is that the manufacturing method of the bioelectrical homologous electronic stamp is characterized in that stamp image data on a carrier is collected, the image data is converted into ARGB (Alpha, red, green, blue. Alpha-image channel) image data based on RGB threshold sampling, a stamp part is positioned and cut out, the electronic stamp is obtained, and the storage volume of the electronic stamp is compressed.
According to one aspect of the application, a manufacturing method of an object-electricity homologous electronic stamp is provided, which comprises the steps of reading a stamp image, decoding the stamp image into ARGB pixel data, setting an alpha (transparency) component in the ARGB pixel value as a fixed value, setting RGB color component threshold values according to the stamp color, traversing each pixel point, respectively judging the RGB component of the pixel point, setting a transparent component A of the pixel point, of which the RGB component (red, green and blue channels) is not in a threshold value range, as 0, obtaining an image with a transparent channel, positioning the stamp position according to the upper, lower, left and right positions of a stamp in the stamp image, cutting out the stamp, and creating image data with an index according to the image with the transparent channel; and compressing the seal image, and marking the image data obtained by the pixel points in the channel A according to the corresponding position of the index map to obtain the PNG picture file, thereby obtaining the electronic stamp.
Further preferably, an alpha component in the decoded ARGB pixel value is fixed to 255, each byte corresponds to one channel of the ARGB, each pixel point is traversed, and the RGB components of the pixel points are respectively judged; according to the seal color, RGB component thresholds are preset as R1, G1 and B1 respectively.
Further preferably, for a red stamp, the RGB components have values R greater than R1 and G less than G1 and B less than B1, and the R component is greater than 200, less than or equal to 255 and the B and G components are less than 50 in the print ARGB data.
Further preferably, the print is distinguished according to the RGB value, coordinates of the uppermost, lowermost, leftmost and rightmost pixel points of the print part are taken, a rectangle is enclosed to obtain the print size, the picture is cut to obtain the print, an index table is constructed to store specific ARGB data, and each pixel point uploads a corresponding index number in the index table.
Further preferably, positioning the stamp position to cut out the stamp includes: scanning pixel points downwards from the top of the picture line by line according to the width and the height of the picture line by line and line by line from the periphery of the picture to the middle, discarding the line when the transparent component A component of the pixel points is 0, until a line with the component A not being 0 is found, and positioning the line as the upper edge of the printing line; scanning pixel points upwards line by line from the bottom of the picture, discarding the line data when the transparent component A of the pixel points is 0, until a line with the component A of not being 0 is found, wherein the line position is used as the lower edge of the printing line; scanning pixel points from the left side of the picture column by column to the right, discarding the column data when the component A of the pixel points is 0, until a column with the component A not being 0 is found, wherein the column is used as the left side of the printing line; and scanning the pixel points from the right side of the picture to the left column by column, and discarding the column data when the A component of the pixel points is all 0 until a column with the A component not being all 0 is found, wherein the column is taken as the left side of the print.
Further preferably, compressing the picture includes: traversing the print image data to obtain print pixel points, setting the pixel point with the component A of 0 in the print as 0 at the corresponding position of the new index map, setting the pixel point with the component A of not 0 as 1 at the corresponding position of the new index map, and encoding the data into a PNG picture file to obtain the compressed print.
According to another aspect of the present application, there is provided a system for fabricating an electrohomology electronic stamp, comprising: the image acquisition part reads the seal image and decodes the seal image into ARGB pixel data, and alpha component in the ARGB pixel value is set as a fixed value; the channel setting part sets RGB color component threshold values according to the seal colors, traverses each pixel point, respectively judges the RGB components of the pixel points, and sets the transparent component A of the pixel points with the RGB components not within the threshold value range to be 0, so as to obtain an image with a transparent channel; : positioning the stamp positions according to the upper, lower, left and right positions of the stamp patterns in the stamp image, cutting out the stamp, and creating image data with an index according to the image with the transparent channel; the image compression part compresses the seal image, and the image data obtained by labeling the pixel points in the channel A according to the corresponding position of the index map is encoded into a PNG picture file to obtain the electronic stamp.
Further preferably, positioning the stamp position to cut out the stamp includes: scanning pixel points downwards from the top of the picture line by line according to the width and the height of the picture line by line and line by line from the periphery of the picture to the middle, discarding the line when the transparent component A component of the pixel points is 0, until a line with the component A not being 0 is found, and positioning the line as the upper edge of the printing line; scanning pixel points upwards line by line from the bottom of the picture, discarding the line data when the transparent component A of the pixel points is 0, until a line with the component A of not being 0 is found, wherein the line position is used as the lower edge of the printing line; scanning pixel points from the left side of the picture column by column to the right, discarding the column data when the component A of the pixel points is 0, until a column with the component A not being 0 is found, wherein the column is used as the left side of the printing line; and scanning the pixel points from the right side of the picture to the left column by column, and discarding the column data when the A component of the pixel points is all 0 until a column with the A component not being all 0 is found, wherein the column is taken as the left side of the print.
According to another aspect of the present application, there is provided an electronic device, including: a processor; and a memory storing a program, wherein the program comprises instructions that when executed by the processor cause the processor to perform the method of making an electrohomology electronic stamp as described above.
According to another aspect of the present application, a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform a method of manufacturing an electrolessly homologous electronic stamp according to the above is presented.
The method and the device distinguish the print and the background by utilizing the single characteristic of the print and the background color, and are simple to realize. The stamp data is extracted through the RGB channel component threshold value, the PNG picture volume is compressed through binarization, the stamp colors are processed uniformly, the picture is compressed, the storage volume of the stamp picture can be greatly reduced, so that a smaller electronic stamp is manufactured, storage and network transmission are facilitated, the storage space of a signed file is smaller, and the storage cost is reduced.
Drawings
FIG. 1 is a schematic diagram of a method for manufacturing an electron stamp with homology to an object in an exemplary embodiment of the present application;
fig. 2 is a schematic diagram illustrating the positioning of a stamp in an exemplary embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present application are shown in the drawings, it is to be understood that the present application may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and examples of the present application are for illustrative purposes only and are not intended to limit the scope of the present application.
It should be understood that the various steps recited in the method embodiments of the present application may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present application is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below. It should be noted that the terms "first," "second," and the like herein are merely used for distinguishing between different devices, modules, or units and not for limiting the order or interdependence of the functions performed by such devices, modules, or units.
It should be noted that references to "one" or "a plurality" in this application are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be interpreted as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present application are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The invention is described in further detail below with respect to the drawings and specific examples.
As shown in fig. 1, which is a schematic flow chart of an electronic stamp manufacturing method, stamp image data on a carrier is collected and preprocessed to obtain a stamp picture, the stamp image data is converted into ARGB image data based on RGB threshold sampling, a stamp part is positioned and cut, an electronic stamp is obtained, and a storage volume of the electronic stamp is compressed. The method comprises the following steps:
acquiring a seal image, decoding the seal image into ARGB pixel data, setting an alpha component in the ARGB pixel data as a fixed value, setting RGB color component thresholds according to seal colors, traversing each pixel point in the ARGB pixel data, respectively judging the RGB components of the pixel points, setting a transparent component A of the pixel points, of which the RGB components are not in a threshold range, as 0, obtaining an image with a transparent channel, positioning the position of the seal according to the upper, lower, left and right positions of a seal pattern in the seal image, cutting out the seal, and creating image data with an index according to the image with the transparent channel; and traversing the pixel points of the seal image print, and marking the pixel points in the channel A according to the corresponding position of the index map to obtain image data which is encoded into a PNG picture file, thereby obtaining the electronic stamp.
If the entity seal to be made into the electronic seal can be rubbed on a carrier such as blank paper, the seal image on the carrier can be obtained by scanning or photographing, and the pretreatment is carried out to generate a pretreatment picture. The preprocessing mode comprises cutting the picture, removing redundant background, ensuring that no other images except the print are present in the picture, and preprocessing to obtain the picture with the print.
In this embodiment, the seal image is processed into ARGB image data with a transparent channel, and the processing method includes:
and reading the picture, decoding the picture into ARGB pixel data, analyzing and obtaining picture attribute information, and calling a corresponding picture analysis library to load and decode the picture into the pixel data, wherein if jpg picture uses libjpeg, png picture uses libng to load and decode the picture into the ARGB pixel data.
Because the original image has no transparent channel, the alpha component in the decoded ARGB pixel value is fixed to 255, the alpha component 255 is an opaque channel, and the other is a semitransparent channel. Wherein, each byte corresponds to each channel in ARGB data, one pixel occupies 4 bytes, 1 byte occupies 8 bits, the value range is 0-255, and 0 is fully transparent. Traversing each pixel point, respectively judging RGB components of the pixel points, setting a threshold value according to the color of the seal, such as a seal needing to be covered with red, setting a high proportion of red components (R) of a seal pattern part, setting a low proportion of green components (G) and blue components (B), which can be close to 0, presetting red, green and blue component thresholds as R1, G1 and B1 respectively, setting a possible color range according to the color of the seal pattern, wherein the values of the red, green and blue color components of the red seal die are R more than R1, G is less than G1, and B is less than B1. The red, green and blue color components of the blue stamp are also valued at B greater than B1 and G less than G1, and R less than R1.
If the print is red, setting R component to be more than 200 and less than or equal to 255 and B and G components to be less than 50 in print ARGB data, and confirming that the print color is red.
The transparent component (a component) of the pixel point not within the threshold value range is set to 0 so as to become fully transparent, and image data with a transparent channel is obtained. The a component may default to 255 within the threshold range.
A schematic diagram of positioning the stamp in an exemplary embodiment of the present application is shown in fig. 2. In general, image data is formed by tiling pixels one by one, each pixel is divided into ARGB4 channels, and the ARGB4 channels respectively represent transparency, red, green and blue, and the red, green and blue are ratios of different values for three primary colors, so that 224 configuration colors can be obtained, and whether the print is a background or a background can be distinguished according to the RGB value. And then taking the coordinates of the uppermost pixel point, the lowermost pixel point, the leftmost pixel point and the rightmost pixel point of the print line part to form a rectangle, obtaining the print line size through local pixel data, then cutting the picture to obtain the print line, constructing an index table, storing specific ARGB data by using the index table, and uploading a corresponding index number in the index table by each pixel point.
And processing the picture. Specifically, the picture is cut so that the size of the picture is consistent with the size of the print.
The stamp locations are located and the stamp is cut out. And (3) positioning the upper part of the print, scanning pixel points downwards row by row from the top of the preprocessed picture, and discarding the row of data when the transparent component A of the pixel points is 0 until a row with the component A of not being 0 is found, namely, print data is found.
And (3) positioning the lower part of the printing line, scanning the pixels upwards line by line from the bottom of the picture from the periphery to the middle of the picture line by line according to the width and the height of the picture, discarding the line when the transparent component A of the pixels is 0, and until finding the line with the A component not 0, wherein the line position is used as the lower part of the printing line.
And positioning the left part of the print, scanning the pixel points from the left side of the picture column by column to the right, discarding the column data when the component A of the pixel points is 0, and until a column with the component A not being 0 is found, wherein the column is used as the left side of the print.
And positioning the right part of the print, scanning the pixel points from the right side of the picture column by column to the left, and discarding the column data when the A component of the pixel points is 0 until a column with the A component not being 0 is found.
The image size is recalculated by positioning the up, down, left, right positions of the print, so that the remaining data is print data.
And further generating a compressed electronic stamp picture according to the print data, creating image data with indexes, creating a blank picture for the binary index picture with the palette, and preparing for the subsequent writing of data.
The picture is compressed, generally, one pixel point is 4 bytes, 1 byte is used for representing 1 pixel, and the size of the picture data is directly compressed to 1/4 of the original size. The image data with the index is 8-bit image data, one pixel point only occupies 1 byte of storage space, the pixel point with a transparent channel generally occupies 4 bytes, the size of a palette is set to be 2, the transparent color index is set to be 0, the print color index is set to be 1, and the size of the picture is the size of the print after cutting.
Traversing uncompressed print image data to obtain print pixel points, setting the pixel point with the component A of 0 in the print as 0 at the corresponding position of the new index map, setting the pixel point with the component A of not 0 as 1 at the corresponding position of the new index map. And after the processing is finished, encoding the data into a PNG picture file to obtain a final result. And obtaining the compressed printing patterns. The uniform color of the impression is beneficial to compressing images and beautifying the prints.
The exemplary embodiment of the application also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor. The memory stores a computer program executable by the at least one processor for causing the electronic device to perform a method according to an embodiment of the present application when executed by the at least one processor.
The present exemplary embodiments also provide a non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is for causing the computer to perform a method according to an embodiment of the present application.
The present exemplary embodiments also provide a computer program product comprising a computer program, wherein the computer program, when being executed by a processor of a computer, is for causing the computer to perform a method according to embodiments of the present application.
Referring to fig. 2, a block diagram of an electronic device 300 that may be a server or client of the present application, which is an example of a hardware device that may be applied to aspects of the present application, will now be described. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 2, the electronic device 300 includes a computing unit 301 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 302 or a computer program loaded from a storage unit 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the device 300 may also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other by a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Various components in the electronic device 300 are connected to the I/O interface 305, including: an input unit 306, an output unit 307, a storage unit 308, and a communication unit 309. The input unit 306 may be any type of device capable of inputting information to the electronic device 300, and the input unit 306 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device. The output unit 307 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, video/audio output terminals, vibrators, and/or printers. Storage unit 308 may include, but is not limited to, magnetic disks, optical disks. The communication unit 309 allows the electronic device 300 to exchange information/data with other devices through a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth devices, wiFi devices, wiMax devices, cellular communication devices, and/or the like.
The computing unit 301 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 301 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 301 performs the respective methods and processes described above. For example, in some embodiments, the reconstruction and decomposition of the muscle movement trajectories of the signature strokes as they are re-plotted from their original trajectories, the decomposition of their log velocity profiles, and the like may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 308. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 300 via the ROM 302 and/or the communication unit 309. In some embodiments, the computing unit 301 may be configured to perform the signature script dynamic acquisition implementation by any other suitable means (e.g., by means of firmware).
Program code for carrying out methods of the present application may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
While the applicant has described and illustrated the embodiments of the present invention in detail with reference to the drawings, it should be understood by those skilled in the art that the above embodiments are only preferred embodiments of the present invention, and the detailed description is only for the purpose of helping the reader to better understand the spirit of the present invention, and not to limit the scope of the present invention, but any improvements or modifications based on the spirit of the present invention should fall within the scope of the present invention.

Claims (10)

1. A manufacturing method of an object-electricity homologous electronic stamp is characterized by reading a stamp image, decoding the stamp image into ARGB pixel data, setting an alpha component in the ARGB pixel value as a fixed value, setting RGB color component threshold values according to the stamp color, traversing each pixel point, respectively judging the RGB components of the pixel points, setting a transparent component A of the pixel points with the RGB components not in the threshold value range as 0, obtaining an image with a transparent channel, positioning the stamp position according to the upper, lower, left and right positions of a stamp in the stamp image, cutting out the stamp, and creating an image data with an index according to the image with the transparent channel; and compressing the seal image, and marking the image data obtained by the pixel points in the channel A according to the corresponding position of the index map to obtain the PNG picture file, thereby obtaining the electronic stamp.
2. The method of claim 1 wherein an alpha component in the decoded ARGB pixel values is fixed to 255, each byte corresponds to a channel of the ARGB, each pixel is traversed, and RGB components of the pixel are respectively determined; according to the seal color, RGB component thresholds are preset as R1, G1 and B1 respectively.
3. A method according to claim 3, wherein for a red stamp, the RGB components have values R greater than R1 and G less than G1 and B less than B1, and the R component in the pattern ARGB data is set to be greater than 200 and less than or equal to 255 and the B and G components are set to be less than 50.
4. The method according to one of claims 1 to 4, wherein the print is distinguished according to RGB values, coordinates of the uppermost, lowermost, leftmost, and rightmost pixels of the print are taken, a rectangle is enclosed to obtain the print size, the picture is cut to obtain the print, an index table is constructed to store specific ARGB data, and each pixel is uploaded with a corresponding index number in the index table.
5. The method of any of claims 1-4, wherein positioning the stamp location to cut out the stamp comprises: scanning pixel points downwards from the top of the picture line by line according to the width and the height of the picture line by line and line by line from the periphery of the picture to the middle, discarding the line when the transparent component A component of the pixel points is 0, until a line with the component A not being 0 is found, and positioning the line as the upper edge of the printing line; scanning pixel points upwards line by line from the bottom of the picture, discarding the line data when the transparent component A of the pixel points is 0, until a line with the component A of not being 0 is found, wherein the line position is used as the lower edge of the printing line; scanning pixel points from the left side of the picture column by column to the right, discarding the column data when the component A of the pixel points is 0, until a column with the component A not being 0 is found, wherein the column is used as the left side of the printing line; and scanning the pixel points from the right side of the picture to the left column by column, and discarding the column data when the A component of the pixel points is all 0 until a column with the A component not being all 0 is found, wherein the column is taken as the left side of the print.
6. The method according to one of claims 1 to 4, wherein compressing the picture comprises: traversing the print image data to obtain print pixel points, setting the pixel point with the component A of 0 in the print as 0 at the corresponding position of the new index map, setting the pixel point with the component A of not 0 as 1 at the corresponding position of the new index map, and encoding the data into a PNG picture file to obtain the compressed print.
7. A system for fabricating an electrohomology electronic stamp, comprising: the image acquisition part reads the seal image and decodes the seal image into ARGB pixel data, and alpha component in the ARGB pixel value is set as a fixed value; the channel setting part sets RGB color component threshold values according to the seal colors, traverses each pixel point, respectively judges the RGB components of the pixel points, and sets the transparent component A of the pixel points with the RGB components not within the threshold value range to be 0, so as to obtain an image with a transparent channel; : positioning the stamp positions according to the upper, lower, left and right positions of the stamp patterns in the stamp image, cutting out the stamp, and creating image data with an index according to the image with the transparent channel; the image compression part compresses the seal image, and the image data obtained by labeling the pixel points in the channel A according to the corresponding position of the index map is encoded into a PNG picture file to obtain the electronic stamp.
8. The system of claim 7, wherein positioning the stamp location cutting out the stamp comprises: scanning pixel points downwards from the top of the picture line by line according to the width and the height of the picture line by line and line by line from the periphery of the picture to the middle, discarding the line when the transparent component A component of the pixel points is 0, until a line with the component A not being 0 is found, and positioning the line as the upper edge of the printing line; scanning pixel points upwards line by line from the bottom of the picture, discarding the line data when the transparent component A of the pixel points is 0, until a line with the component A of not being 0 is found, wherein the line position is used as the lower edge of the printing line; scanning pixel points from the left side of the picture column by column to the right, discarding the column data when the component A of the pixel points is 0, until a column with the component A not being 0 is found, wherein the column is used as the left side of the printing line; and scanning the pixel points from the right side of the picture to the left column by column, and discarding the column data when the A component of the pixel points is all 0 until a column with the A component not being all 0 is found, wherein the column is taken as the left side of the print.
9. An electronic device, comprising: a processor; and a memory storing a program, wherein the program comprises instructions that when executed by the processor cause the processor to perform the method of making an electrologistic homologous electronic stamp according to any one of claims 1-6.
10. A non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions are for causing the computer to perform the method of making an electrologistic homologous electronic stamp according to any one of claims 1-6.
CN202211741704.5A 2022-12-31 2022-12-31 Manufacturing method, device, equipment and medium of bioelectrical homologous electronic impression Pending CN116030114A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211741704.5A CN116030114A (en) 2022-12-31 2022-12-31 Manufacturing method, device, equipment and medium of bioelectrical homologous electronic impression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211741704.5A CN116030114A (en) 2022-12-31 2022-12-31 Manufacturing method, device, equipment and medium of bioelectrical homologous electronic impression

Publications (1)

Publication Number Publication Date
CN116030114A true CN116030114A (en) 2023-04-28

Family

ID=86073592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211741704.5A Pending CN116030114A (en) 2022-12-31 2022-12-31 Manufacturing method, device, equipment and medium of bioelectrical homologous electronic impression

Country Status (1)

Country Link
CN (1) CN116030114A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116309893A (en) * 2023-05-18 2023-06-23 深圳市微克科技有限公司 Picture compression method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116309893A (en) * 2023-05-18 2023-06-23 深圳市微克科技有限公司 Picture compression method and device, storage medium and electronic equipment
CN116309893B (en) * 2023-05-18 2023-08-11 深圳市微克科技有限公司 Picture compression method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US9137418B2 (en) Image processing device and computer-readable storage medium storing computer-readable instructions
CN108235055B (en) Method and device for realizing transparent video in AR scene
JP5995864B2 (en) Display data encoding method and system
CN107665128B (en) Image processing method, system, server and readable storage medium
CN113343958B (en) Text recognition method, device, equipment and medium
CN103402091A (en) Cloud desktop image classifying and encoding method
CN116030114A (en) Manufacturing method, device, equipment and medium of bioelectrical homologous electronic impression
CN113421312A (en) Method and device for coloring black and white video, storage medium and terminal
CN111918065A (en) Information compression/decompression method and device
CN115529357B (en) Updating abnormity matching method based on MES intercommunication interconnection production data
CN111222611B (en) Color-based stacked three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium
CN108471536B (en) Alpha channel transmission method and device, terminal device and storage medium
CN112991497B (en) Method, device, storage medium and terminal for coloring black-and-white cartoon video
CN112468792B (en) Image recognition method and device, electronic equipment and storage medium
CN102210149A (en) Method and apparatus for encoding/decoding image in bitmap format
JPH07322074A (en) Equipment and method for data processing to process 2 level image file that a dither ring happened
CN112153388A (en) Image compression method, device and related equipment
CN109685861A (en) Picture compression method, apparatus, equipment and computer readable storage medium
US11582464B2 (en) Using morphological operations to process frame masks in video content
CN110855990B (en) Image encoding method, image decoding method, computer device, and image processing system
CN114079823A (en) Video rendering method, device, equipment and medium based on Flutter
CN113473150B (en) Image processing method and device and computer readable storage device
JP2016158223A (en) Image compression device, image compression method and image compression program
US11601665B2 (en) Embedding frame masks in a video stream
US20230262210A1 (en) Visual lossless image/video fixed-rate compression

Legal Events

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