# US 2021/0279372 A1 · Fabric detecting and recording method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0279372 A1
- Document ID: US20210279372A1
- Status: Published application
- Kind: A1
- Application number: 17/330,433
- Filed: 2021-05-26
- Published: 2021-09-09
- Earliest claimed: 2018-11-30
- Assignees: Shenzhen Lintsense Technology Company Limited
- Applicants: Shenzhen Lintsense Technology Company Limited
- Inventors: LINGLING JIN; TENGFA LUO
- Web page: https://patentgrep.com/patent/US20210279372A1

## CPC

- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/3297: {involving time stamps, e.g. generation of time stamps}
- G01N 21/88: Investigating the presence of flaws or contamination
- G01N 2223/645: quality control
- G06T 2207/30124: Fabrics; Textile; Paper
- G06T 2207/30168: Image quality inspection
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G01N: INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES (measuring or testing apparatus or processes other than immunoassay, involving enzymes or microorganisms C12M, C12Q)

## Abstract

The present disclosure discloses a fabric detecting and recording method and apparatus. The method includes: acquiring a fabric identification of a fabric to be detected; acquiring an image data of a current detecting part of the fabric to be detected; detecting defects on the image data, if there is a defect on the detecting part included in the image data, a detection data corresponding to the detecting part will be generated; packaging the fabric identification and the detection data into a detection data packet, and sending the packet into the blockchain network for broadcasting. The blockchain technology is used in the solution of the embodiments of the present disclosure to broadcast the fabric detection data in real time through the blockchain network, without any manual uploading operation, thus to reduce the risk of data being tampered with during the uploading stage.

## Claims

### Claim 1

A fabric detecting and recording method comprising:
acquiring a fabric identification of a fabric to be detected;
acquiring an image data of a current detecting part of the fabric to be detected;
detecting the image data to generate a detection data corresponding to the detecting part;
packaging the fabric identification and the detecting data into a detection data packet, and sending the packet to a blockchain network for broadcasting.

### Claim 2 (depends on 1)

The fabric detecting and recording method according to claim 1, wherein, when detection of all detecting parts of the fabric to be detected has been completed, the method further comprises:
sending a preset instruction to the blockchain network so that nodes in the blockchain network collect the detection data packet that meets a preset rule, and generate a block for writing into the blockchain according to the collected detection data packet.

### Claim 3

A fabric detecting and recording method comprising:
receiving a detection data packet of a fabric to be detected, wherein the detection data packet includes a fabric identification of the fabric to be detected and a detecting data corresponding to a current detecting part of the fabric to be detected;
storing the detection data packet in a memory pool;
when satisfying a preset condition, collecting the detection data packet that meets a preset rule in the memory pool;
generating a block according to the collected detection data packet and writing the block into a blockchain.

### Claim 4 (depends on 3)

The fabric detecting and recording method according to claim 3, wherein
said satisfying a preset condition includes having received a preset instruction, reaching a preset time, or the number of detection data packets stored in the memory pool reaching a preset threshold.

### Claim 5 (depends on 3)

The fabric detecting and recording method according to claim 3, wherein
said meeting a preset rule includes having the same fabric identification or storing in the memory pool at the same time period.

### Claim 6 (depends on 3)

The fabric detecting and recording method according to claim 3, wherein said generating a block according to the collected detection data packet and writing the block into a blockchain specifically comprises: calculating a root hash value of the Merkel tree according to hash values of the fabric identification and the detection data of the collected detection data packet;
acquiring a timestamp of a current block;
acquiring a hash value corresponding to a previous block;
setting the hash value corresponding to the previous block, the root hash value of the Merkel tree and the timestamp into a block header of the current block, and setting the fabric identification and detection data to into a main body of the current block, thus to generate a current block;
adding the current block to an end of the blockchain; and
broadcasting the blockchain.

### Claim 7

A fabric detecting and recording apparatus comprising:
a first acquiring module for acquiring a fabric identification of a fabric to be detected;
a second acquiring module for acquiring an image data of a current detection part of the fabric to be detected;
a detection generating module for detecting the image data to generate a detection data corresponding to the detecting part; and
a package sending module for packaging the fabric identification and the detection data into a detection data packet and sending the packet to a blockchain network for broadcasting.
