Date detection processing method and device in label image

A processing method and technology in images, applied in the field of image processing, can solve problems such as inability to accurately identify dates

Active Publication Date: 2020-08-28
上海归晟科技有限公司
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a method and device for detecting and processing the date in the label image, so as to at least solve the problem in the related art that the date in the label cannot be accurately recognized when the date and the frame are close together or close to sticking together

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Date detection processing method and device in label image
  • Date detection processing method and device in label image
  • Date detection processing method and device in label image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0079] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, figure 1 It is a block diagram of the hardware structure of the mobile terminal of the date detection processing method in the label image of the embodiment of the present invention, as figure 1 As shown, the mobile terminal may include one or more ( figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above-mentioned mobile terminal also A transmission device 106 for communication functions as well as input and output devices 108 may be included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and does no...

Embodiment 2

[0116]According to another embodiment of the present invention, a date detection and processing device in a label image is also provided, Figure 10 is a block diagram of a date detection processing device in a label image according to an embodiment of the present invention, such as Figure 10 shown, including:

[0117] The processing module 102 is configured to perform grayscale processing on the label image, and perform binarization processing on the grayscaled label image to obtain a binary image;

[0118] The extraction module 104 is used to extract the frame of the binary image, obtain the frame of the binary image, and remove the frame of the binary image, and obtain the target image from which the frame is removed;

[0119] The connection module 106 is configured to traverse all the pixel points of the target image, perform regional connection on the target image, obtain a plurality of connected regions of the target image, and perform pixel inversion on the target ima...

Embodiment 3

[0146] Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.

[0147] Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:

[0148] S1, performing grayscale processing on the label image, and performing binarization processing on the grayscaled label image to obtain a binary image;

[0149] S2, performing frame extraction on the binary image to obtain a frame of the binary image, and removing the frame of the binary image to obtain a target image from which the frame is removed;

[0150] S3, traversing all the pixel points of the target image, performing region-connection on the target image to obtain multiple connected regions of the target image, and performing pixel inversion processing on the regi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a date detection processing method and device in a label image. The method comprises the steps: carrying out the graying of the label image, carrying out the binarization of thegrayed label image, and obtaining a binary image; performing frame extraction on the binary image to obtain a frame of the binary image, and removing the frame of the binary image to obtain a targetimage with the frame removed; traversing all pixel points of the target image, carrying out region communication on the target image to obtain a plurality of communication regions of the target image,and carrying out pixel inversion processing on the target image after region communication; the contours of the plurality of connected regions after pixel inversion are acquired, the bounding boxes of the plurality of connected regions are generated according to the contours, and the inspection result of the date is determined according to the bounding boxes, so that the problem that the date cannot be accurately identified when the date and the border in the label are close to each other or close to each other in the prior art can be solved.

Description

technical field [0001] The invention relates to the field of image processing, in particular to a date detection and processing method and device in a label image. Background technique [0002] In the catering field, almost all edible items must carry a production date and an expiration date. Therefore, many merchants directly paste the label with the date on the packaging of the item, so as to reflect the production date and expiration date of the item. In order to uniformly manage the date information of these items, the date information on the label can be obtained through OCR technology, and then the identified information can be entered into the background management system. [0003] The date information obtained by OCR technology on the label can be roughly divided into two parts: detection and identification. Firstly, the position of the date in the label is detected; then the date part is extracted, and the part is identified to obtain the date information. [000...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06K9/20G06F9/38G06K9/46
CPCG06F9/38G06V10/22G06V10/457
Inventor 景逸飞
Owner 上海归晟科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products