CN112818720A - Two-dimensional code detection method, detection device and storage medium - Google Patents

Two-dimensional code detection method, detection device and storage medium Download PDF

Info

Publication number
CN112818720A
CN112818720A CN202110101954.1A CN202110101954A CN112818720A CN 112818720 A CN112818720 A CN 112818720A CN 202110101954 A CN202110101954 A CN 202110101954A CN 112818720 A CN112818720 A CN 112818720A
Authority
CN
China
Prior art keywords
information
picture
image information
cutting
position change
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
CN202110101954.1A
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.)
Shenzhen Vimtag Technology Co ltd
Original Assignee
Shenzhen Vimtag 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 Shenzhen Vimtag Technology Co ltd filed Critical Shenzhen Vimtag Technology Co ltd
Priority to CN202110101954.1A priority Critical patent/CN112818720A/en
Publication of CN112818720A publication Critical patent/CN112818720A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1456Methods for optical code recognition including a method step for retrieval of the optical code determining the orientation of the optical code with respect to the reader and correcting therefore

Abstract

The invention discloses a two-dimensional code detection method, a detection device and a storage medium, wherein the two-dimensional code detection method comprises the steps of obtaining a plurality of image information; identifying position change information of an object in a plurality of image information; determining a cutting mode of the image information according to the position change information to obtain a cut picture; and detecting and identifying the cut picture to obtain and send identification information. The two-dimension code detection method can reduce the consumption of the CPU, and simultaneously can properly increase the detection frequency by utilizing the saved CPU resource, thereby improving the timeliness of the two-dimension code detection.

Description

Two-dimensional code detection method, detection device and storage medium
Technical Field
The invention relates to the field of image algorithms, in particular to a two-dimensional code detection method, a detection device and a storage medium.
Background
The two-dimension code detection technology is widely applied in various fields, as is well known, the CPU (central processing unit) computing capacity of a mobile phone is sufficient, when the mobile phone scans a two-dimension code, a two-dimension code scanning frame is arranged on a screen of a general mobile phone, so that a picture is directly cut into the size of the scanning frame when the mobile phone detects the two-dimension code, the CPU (central processing unit) resource is saved, and the two-dimension code detection efficiency is improved; however, for embedded video devices (such as network cameras), the CPU has very limited computing power, and various problems such as non-zooming, non-controllable scene brightness, and possibly light reflection exist; when the display screen is not used as feedback, a user cannot determine whether the two-dimensional code is aligned with the camera or not, whether the two-dimensional code picture is clear or not and whether the size and the position are proper or not, and therefore when the embedded video equipment detects the two-dimensional code, the full-size picture must be continuously detected and identified, the problems of too much invalid identification, difficult identification, poor identification timeliness and the like occur, so that the CPU consumption is too large, and the system operation becomes unstable or even influences the normal work of other functions.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a two-dimension code detection method, which can reduce the consumption of a CPU (central processing unit), and can properly increase the detection frequency by using the saved CPU resource, thereby improving the timeliness of two-dimension code detection.
The invention further provides a two-dimensional code detection device.
The invention also provides a computer readable storage medium.
The two-dimensional code detection method according to the first aspect of the invention includes:
acquiring a plurality of image information;
identifying position change information of an object in a plurality of image information;
determining a cutting mode of the image information according to the position change information to obtain a cut picture;
and detecting and identifying the cut picture to obtain and send identification information.
The two-dimensional code detection method provided by the embodiment of the invention at least has the following beneficial effects: whether the position information of the object in the image information changes is identified, and the image information is cut in a determined cutting mode, so that the consumption of a CPU (central processing unit) can be reduced, meanwhile, the detection frequency can be properly increased by using saved CPU resources, and the timeliness of two-dimensional code detection is improved.
According to some embodiments of the present invention, the determining the cropping mode of the image information according to the position change information to obtain the cropped picture includes:
if the position change information is changed, determining a picture set according to a time interval between adjacent image information and a preset first time threshold, and cutting pictures in the picture set in the first cutting mode to obtain a first cut picture;
and if the position change information is not changed, determining a static picture according to the image information and a preset second time threshold, and cutting the static picture in the second cutting mode to obtain a second cut picture.
According to some embodiments of the present invention, if the position change information is a change, determining a picture set according to a time interval between adjacent image information and a preset first time threshold, and cropping pictures in the picture set in the first cropping manner to obtain a first cropped picture, includes:
if the position change information is changed, determining a picture set according to a time interval between adjacent image information and a preset first time threshold;
screening the picture set according to the object size of the pictures in the picture set and preset size information to obtain a plurality of first images;
merging the positions of the objects in the plurality of first images to determine a first crop box;
and cutting the first image according to the first cutting frame to obtain a first cutting picture.
According to some embodiments of the present invention, if the position change information is not changed, determining a still picture according to the image information and a preset second time threshold, and cropping the still picture in the second cropping manner to obtain a second cropped picture, includes:
if the position change information is not changed, determining a static picture according to the image information and a preset second time threshold;
and cutting according to the static picture and a preset cutting frame to obtain a second cutting picture.
According to some embodiments of the invention, the identification information comprises any one of: networking information, payment information, transmission information and commodity information.
According to some embodiments of the present invention, if the identification information is networking information, network connection is performed according to the networking information.
According to some embodiments of the present invention, the detecting and recognizing the cut picture to obtain and send recognition information includes:
acquiring pattern change information in the adjacent cutting pictures;
determining the position of a two-dimensional code pattern in the cut picture according to the pattern change information;
and detecting and identifying the two-dimensional code pattern in the cut picture to obtain and send identification information.
The two-dimensional code detection device according to the second aspect of the embodiment of the present invention includes: the device comprises an image acquisition module, a position identification module, a processing module and a detection module. The image acquisition module is used for acquiring image information of a moving object; the position identification module is used for identifying position change information of an object in the image information; the processing module is used for determining the cutting mode of the image information according to the position change information to obtain a cutting picture; the detection module is used for detecting and identifying the cut picture to obtain and send identification information.
The two-dimensional code detection device provided by the embodiment of the invention at least has the following beneficial effects: whether the position information of the object in the image information changes is identified through the position identification module so as to determine the cutting mode to cut the image information, therefore, the consumption of a CPU (central processing unit) can be reduced, meanwhile, the detection frequency can be properly increased by using the saved CPU resource, and the timeliness of two-dimensional code detection is improved.
According to some embodiments of the invention, the detection device further comprises an application module for receiving the identification information and executing an application corresponding to the identification information.
According to the computer-readable storage medium of the third aspect of the present invention, the computer-readable storage medium stores computer-executable instructions for performing the two-dimensional code detection method according to the first aspect.
Additional aspects and advantages of the invention 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 invention.
Drawings
The invention is further described with reference to the following figures and examples, in which:
fig. 1 is a flowchart of a two-dimensional code detection method according to some embodiments of the present invention;
fig. 2 is a flowchart of a two-dimensional code detection method according to some embodiments of the present invention;
fig. 3 is a flowchart of a two-dimensional code detection method according to some embodiments of the present invention;
fig. 4 is a flowchart of a two-dimensional code detection method according to some embodiments of the present invention;
fig. 5 is a flowchart of a two-dimensional code detection method according to some embodiments of the present invention;
fig. 6 is a block diagram of a two-dimensional code detection apparatus according to some embodiments of the present invention.
Reference numerals: 610. an image acquisition module; 620. a location identification module; 630. a detection module; 640. a processing module; 650. and an application module.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and the above, below, exceeding, etc. are understood as excluding the present numbers, and the above, below, within, etc. are understood as including the present numbers. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
In the description of the present invention, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," 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 invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Referring to fig. 1, in a first aspect, some embodiments of the present invention provide a two-dimensional code detection method, including but not limited to step S110, step S120, step S130, and step S140.
Step S110: acquiring a plurality of image information;
step S120: identifying position change information of an object in the plurality of image information;
step S130: determining a cutting mode of the image information according to the position change information to obtain a cut picture;
step S140: and detecting and identifying the cut picture to obtain and send identification information.
Specifically, in the present embodiment, the image information may be a plurality of pieces of image information obtained by extracting video frame image information from video information, or may be a plurality of pictures. And judging whether the position information of the object in the image changes or not by comparing the plurality of image information, and determining the cutting mode of the image information according to the position change information to cut so as to obtain a cut picture. And detecting and identifying the cut picture to obtain identification information, and sending the identification information out so as to facilitate the device using the detection method to carry out the next operation according to the identified two-dimensional code. By identifying whether the position information of the object in the image information changes or not and determining the cutting mode to cut the image information, the consumption of a CPU (central processing unit) can be reduced, and the detection and identification efficiency of the two-dimensional code can be improved.
Referring to fig. 2, in some embodiments of the present invention, the cutting manner includes a first cutting manner and a second cutting manner, and the step S130 includes, but is not limited to, the step S210 and the step S220.
Step S210: if the position change information is changed, determining a picture set according to a time interval between adjacent image information and a preset first time threshold, and cutting pictures in the picture set in a first cutting mode to obtain a first cut picture;
step S220: and if the position change information is unchanged, determining the static picture according to the image information and a preset second time threshold, and cutting the static picture in a second cutting mode to obtain a second cut picture.
In step S210, if the position change information in the image is determined to be changed, a picture set is selected from the plurality of image information according to a preset first time threshold, and the image information that does not meet the condition is ignored, so as to prevent excessive CPU consumption due to over-frequency. Such as: the first time threshold is preset to be 1 second, and the acquired image information is continuous and has a plurality of image information, and many image information in the plurality of image information are similar. If each image information is cut, detected and identified, the CPU must be over-frequency and over-consumption, even the CPU cannot work normally. Therefore, a part of image information is selected from the plurality of image information as a picture set every preset first time threshold (for example, 1 second), and then the picture set is cut in a first cutting mode, so that the frequency of the CPU can be reduced, and the loss of the CPU can be reduced.
Referring to fig. 3, in some embodiments of the present invention, step S210 includes, but is not limited to, step S310, step S320, step S330, and step S340.
Step S310: if the position change information is changed, determining a picture set according to a time interval between adjacent image information and a preset first time threshold;
step S320: screening the picture set according to the object size of the pictures in the picture set and preset size information to obtain a plurality of first images;
step S330: merging positions of objects in the plurality of first images to determine a first crop box;
step S340: and cutting the first image according to the first cutting frame to obtain a first cutting picture.
In step S320, the photo set determined in step S310 is filtered through size information of the object to obtain a plurality of first images, wherein the size information includes size, shape, and the like. By screening the size information of the objects, the objects which are too small in size, too long and too flat in shape and the like and cannot contain the two-dimensional codes are filtered, and if no effective objects exist after filtering (namely all the objects cannot contain the two-dimensional codes), the current detection and identification are quitted, subsequent operation is not performed, and the next image information is waited.
Through setting up like this, can further reduce CPU's energy consumption, simultaneously, utilize the CPU resource of saving out, can suitably increase the detection frequency to improve the timeliness of two-dimensional code detection.
In step S330, the object positions in the plurality of first images obtained in step S320 are merged to generate a first cropping frame including all objects that may have two-dimensional codes and may move, and unrelated picture information is cropped and deleted to reduce the energy consumption of the CPU.
Referring to fig. 4, in some embodiments of the present invention, step S220 includes, but is not limited to, step S410 and step S420.
Step S410: if the position change information is unchanged, determining a static picture according to the image information and a preset second time threshold;
step S420: and cutting according to the static picture and a preset cutting frame to obtain a second cutting picture.
Specifically, in this embodiment, if it is determined that the position change information in the image is not changed, the still picture is determined by using a preset second time threshold (the preset second time threshold is usually greater than the preset first time threshold), and if the time is not reached, the image information is not acquired or any operation is not performed on the acquired image information. Such as: and judging that the position change information in the image is unchanged, and if the preset second time threshold is 5 seconds, cutting the image information once by using the preset cutting frame (or not cutting the image information) at intervals of 5 seconds, detecting and recognizing, and if the other time is not operating the image. The preset cutting frame can be a square frame and the like. Thus, the frequency of the CPU can be further reduced, and the loss of the CPU can be reduced.
In some embodiments of the invention, the identification information comprises any one of: networking information, payment information, transmission information and commodity information. If the identification information comprises the payment information, the payment information is detected and identified and is sent to the corresponding payment module, and the payment module carries out payment according to the payment information.
If the identification information comprises commodity information, the two-dimensional code detection method is used for a warehousing device of a warehouse. The camera of the warehousing device is fixed at one position, collects a plurality of image information and sends the image information to the position identification module of the warehousing device; the position identification module identifies position change information of an object in the image information and sends the position change information to the judgment module; the judging module judges whether the object moves according to the position change information and outputs a judgment result to the processing module; the processing module selects a cutting mode according to the judgment result, cuts the image information to obtain a cut picture, and sends the cut picture to the detection module; the detection module detects and identifies the cut picture to obtain commodity information, and sends the commodity information to the application module so as to realize warehousing of commodities. In the image information collection, whether the camera scans the two-dimensional code cannot be judged, so that the image information is operated in the steps S210 and S220, the frequency of a CPU (central processing unit) can be reduced, the loss of the CPU can be reduced, meanwhile, the detection frequency can be properly increased by using the saved CPU resource, the timeliness of two-dimensional code detection is improved, and the efficiency of commodity warehousing is improved.
Referring to fig. 1, in some embodiments of the present invention, a two-dimensional code detection method includes, but is not limited to, step S150.
Step S150: and if the identification information is networking information, performing network connection according to the networking information.
Specifically, in this embodiment, a wireless network camera distribution network is used for description.
The wireless network camera ipc (ip camera) represents an embedded video device with a mobile detection function, and generally provides functions of video recording, video local SD card storage, video live broadcasting, video playback, video retrieval, mobile detection alarm and the like; however, after a user purchases equipment for the first time, the IPC needs to be configured with a WIFI network, and one way of configuring the WIFI network may use a two-dimensional code way, and the operation process is roughly divided into two parts, namely, a mobile phone APP end operation and an equipment end operation.
And downloading the mobile phone APP of the IPC on the mobile phone and logging in the APP.
Newly purchased devices need to be added to the APP in order to manage and control the devices in the APP.
And selecting a two-dimensional code adding mode in the APP, and starting the two-dimensional code distribution network process according to an operation guide.
The mobile phone APP terminal generates a two-dimensional code pattern configured by WIFI, and the two-dimensional code pattern information at least comprises information such as SSID (account number) and password.
And ensuring that the IPC equipment enters a distribution network configuration state according to the operation guide.
And according to the operation guide, the mobile phone screen with the two-dimensional code is displayed to the camera of the IPC.
And the IPC reads the information of the two-dimension code and performs networking according to the information of the two-dimension code.
Referring to fig. 5, in some embodiments of the invention, step S140 includes, but is not limited to, step S510, step S520, and step S530.
Step S510: acquiring pattern change information in adjacent cut pictures;
step S520: determining the position of a two-dimensional code pattern in the cut picture according to the pattern change information;
step S530: and detecting and identifying the two-dimensional code pattern in the cut picture to obtain and send identification information.
Specifically, in the present embodiment, the two-dimensional code pattern may be on a display device such as a mobile phone or a tablet computer. The color, the position or the size of the two-dimensional code pattern on the display equipment are periodically changed, so that the two-dimensional code scanning equipment can conveniently position the two-dimensional code, and the quick identification of the two-dimensional code is realized.
The two-dimensional code detection method according to the embodiment of the present invention is described in detail with reference to fig. 1 to 4. It is to be understood that the following description is illustrative only and is not intended to be limiting of the invention.
In this embodiment, a plurality of image information is acquired, wherein the image information may be a plurality of image information extracted from the video information or a plurality of pictures. And the image information is identified and judged to determine whether the object in the image information moves, namely whether the position change information is changed.
If the position change information in the image is judged to be changed, a picture set is selected from the plurality of image information by using a preset first time threshold, and the image information which does not meet the condition is ignored, so that the condition that the CPU consumption is too large due to over-frequency is prevented. Such as: the first time threshold is preset to be 1 second, and the acquired image information is continuous and has a plurality of image information, and many image information in the plurality of image information are similar. If each piece of image information is cut, detected and identified, the CPU will consume too much frequency and even fail to work normally, and therefore, a part of image information is selected from the plurality of pieces of image information as a picture set without a preset first time threshold (e.g., 1 second).
And screening the determined picture set through the size information of the object to obtain a plurality of first images, wherein the size information comprises size, shape and the like. By screening the size information of the objects, the objects which are too small in size, too long and too flat in shape and the like and cannot contain the two-dimensional codes are filtered, and if no effective objects exist after filtering (namely all the objects cannot contain the two-dimensional codes), the current detection and identification are quitted, subsequent operation is not performed, and the next image information is waited.
Combining the object positions in the obtained plurality of first images to generate a first cutting frame containing all objects which possibly have two-dimension codes and are possible to move, cutting and deleting irrelevant picture information to reduce the energy consumption of a CPU (Central processing Unit), and simultaneously, utilizing the saved CPU resource, properly increasing the detection frequency so as to improve the timeliness of two-dimension code detection.
If the position change information in the image is judged to be unchanged, the static image is determined by using a preset second time threshold (the preset second time threshold is usually larger than the preset first time threshold), and if the time is not up, the image information is not acquired or any operation is not performed on the acquired image information. Such as: and judging that the position change information in the image is unchanged, and if the preset second time threshold is 5 seconds, cutting the image information once by using the preset cutting frame (or not cutting the image information) at intervals of 5 seconds, detecting and identifying the image information, and if the position change information in the image is unchanged, not operating the image at other times. The preset cutting frame can be a square frame and the like.
According to the two-dimensional code detection method, whether the position information of the object in the image information changes or not is identified, the image information is cut in a determined cutting mode, different cutting frames and different cutting modes are determined according to different conditions, accordingly, the consumption of a CPU (central processing unit) can be reduced, meanwhile, the detection frequency can be properly increased by means of saved CPU resources, and the timeliness of two-dimensional code detection is improved.
Referring to fig. 6, in a second aspect, some embodiments of the present invention further provide a two-dimensional code detection apparatus, where the two-dimensional code detection apparatus includes an image acquisition module 610, a position identification module 620, a processing module 640, and a detection module 630. The image acquisition module 610 is configured to acquire image information of a moving object; the position identification module 620 is used for identifying position change information of the object in the plurality of image information; the processing module 640 is configured to determine a clipping manner of the image information according to the position change information to obtain a clipped picture; the detection module 630 is configured to perform detection and identification on the cropped picture to obtain and send identification information.
Whether the position information of the object in the image information changes is identified through the position identification module so as to determine the cutting mode to cut the image information, therefore, the consumption of a CPU (central processing unit) can be reduced, meanwhile, the detection frequency can be properly increased by using the saved CPU resource, and the timeliness of two-dimensional code detection is improved.
In some embodiments of the present invention, the two-dimensional code detection apparatus further includes: an application module 650, the application module 650 is configured to receive the identification information and execute an application corresponding to the identification information. If the identification information is payment information, the application module 650 is a payment module and performs payment according to the corresponding payment information; if the identification information is networking information, the application module 650 is a networking module and performs networking according to the corresponding networking information.
In a third aspect, embodiments of the present application further provide a computer-readable storage medium.
In some embodiments, a computer-readable storage medium stores computer-executable instructions for performing the two-dimensional code detection method mentioned in the first aspect embodiment.
In some embodiments, the storage medium stores computer-executable instructions that, when executed by one or more control processors, for example, by a processor in the electronic device, cause the one or more processors to perform the program firmware upgrade method.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention. Furthermore, the embodiments of the present invention and the features of the embodiments may be combined with each other without conflict.

Claims (10)

1. The two-dimensional code detection method is characterized by comprising the following steps:
acquiring a plurality of image information;
identifying position change information of an object in a plurality of image information;
determining a cutting mode of the image information according to the position change information to obtain a cut picture;
and detecting and identifying the cut picture to obtain and send identification information.
2. The detection method according to claim 1, wherein the cropping mode includes a first cropping mode and a second cropping mode, and the determining the cropping mode of the image information according to the position change information to obtain a cropped picture includes:
if the position change information is changed, determining a picture set according to a time interval between adjacent image information and a preset first time threshold, and cutting pictures in the picture set in the first cutting mode to obtain a first cut picture;
and if the position change information is not changed, determining a static picture according to the image information and a preset second time threshold, and cutting the static picture in the second cutting mode to obtain a second cut picture.
3. The detection method according to claim 2, wherein if the position change information is a change, determining a picture set according to a time interval between adjacent image information and a preset first time threshold, and cropping the pictures in the picture set in the first cropping manner to obtain a first cropped picture, includes:
if the position change information is changed, determining a picture set according to a time interval between adjacent image information and a preset first time threshold;
screening the picture set according to the object size of the pictures in the picture set and preset size information to obtain a plurality of first images;
merging the positions of the objects in the plurality of first images to determine a first crop box;
and cutting the first image according to the first cutting frame to obtain a first cutting picture.
4. The detection method according to claim 2, wherein if the position change information is unchanged, determining a still picture according to the image information and a preset second time threshold, and cropping the still picture in the second cropping mode to obtain a second cropped picture, includes:
if the position change information is not changed, determining a static picture according to the image information and a preset second time threshold;
and cutting according to the static picture and a preset cutting frame to obtain a second cutting picture.
5. The detection method according to claim 1, wherein the identification information includes any one of:
networking information, payment information, transmission information and commodity information.
6. The detection method according to claim 5, further comprising:
and if the identification information is networking information, performing network connection according to the networking information.
7. The detection method according to any one of claims 1 to 6, wherein the detecting and identifying the cropped picture to obtain and send identification information comprises:
acquiring pattern change information in the adjacent cutting pictures;
determining the position of a two-dimensional code pattern in the cut picture according to the pattern change information;
and detecting and identifying the two-dimensional code pattern in the cut picture to obtain and send identification information.
8. Two-dimensional code detection device, its characterized in that includes:
the image acquisition module is used for acquiring image information of a moving object;
a position identification module for identifying position change information of an object in the plurality of image information;
the processing module is used for determining the cutting mode of the image information according to the position change information to obtain a cutting picture;
and the detection module is used for detecting and identifying the cut picture so as to obtain and send identification information.
9. The detection device according to claim 8, further comprising:
an application module for receiving the identification information and executing an application corresponding to the identification information.
10. Computer-readable storage media, characterized in that the computer-readable storage media stores computer-executable instructions for performing the two-dimensional code detection method according to any one of claims 1 to 7.
CN202110101954.1A 2021-01-26 2021-01-26 Two-dimensional code detection method, detection device and storage medium Pending CN112818720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110101954.1A CN112818720A (en) 2021-01-26 2021-01-26 Two-dimensional code detection method, detection device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110101954.1A CN112818720A (en) 2021-01-26 2021-01-26 Two-dimensional code detection method, detection device and storage medium

Publications (1)

Publication Number Publication Date
CN112818720A true CN112818720A (en) 2021-05-18

Family

ID=75859257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110101954.1A Pending CN112818720A (en) 2021-01-26 2021-01-26 Two-dimensional code detection method, detection device and storage medium

Country Status (1)

Country Link
CN (1) CN112818720A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090121027A1 (en) * 2007-11-13 2009-05-14 Cognex Corporation System and method for reading patterns using multiple image frames
CN103065148A (en) * 2012-12-03 2013-04-24 黄敏 Method and device of acquiring clothing two-dimension code in video
US20180114323A1 (en) * 2016-10-26 2018-04-26 Datalogic Automation, Inc. Data processing reduction in barcode reading systems with overlapping frames
CN109583535A (en) * 2018-11-29 2019-04-05 湖南视比特机器人有限公司 A kind of logistics bar code detection method, the computer program of view-based access control model
CN111860482A (en) * 2020-07-20 2020-10-30 中移(杭州)信息技术有限公司 Dynamic graphic code verification method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090121027A1 (en) * 2007-11-13 2009-05-14 Cognex Corporation System and method for reading patterns using multiple image frames
CN103065148A (en) * 2012-12-03 2013-04-24 黄敏 Method and device of acquiring clothing two-dimension code in video
US20180114323A1 (en) * 2016-10-26 2018-04-26 Datalogic Automation, Inc. Data processing reduction in barcode reading systems with overlapping frames
CN109583535A (en) * 2018-11-29 2019-04-05 湖南视比特机器人有限公司 A kind of logistics bar code detection method, the computer program of view-based access control model
CN111860482A (en) * 2020-07-20 2020-10-30 中移(杭州)信息技术有限公司 Dynamic graphic code verification method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP5318122B2 (en) Method and apparatus for reading information contained in bar code
US20170032219A1 (en) Methods and devices for picture processing
CN108062507B (en) Video processing method and device
WO2019179283A1 (en) Image recognition method and device
US7081814B2 (en) Change detecting method and apparatus and monitoring system using the method or apparatus
US20130170760A1 (en) Method and System for Video Composition
US8311369B2 (en) Method and apparatus for searching for images
JP2004094353A (en) Identity discrimination system based on reading of pda/portable telephone picture multiple one-dimensional bar code
WO2014194825A1 (en) Method and apparatus for processing visible graphic code by mobile terminal
CN109766071B (en) Display adjustment method and device for bar-shaped electronic shelf label
WO2019183775A1 (en) Intelligent assistant control method and terminal device
CN108875328B (en) Identity verification method, device and storage medium
US20230351604A1 (en) Image cutting method and apparatus, computer device, and storage medium
JP2022509191A (en) Video decoding control methods, devices, electronic devices and storage media
CN105227947A (en) Dirt detecting method and device
CN114782899A (en) Image processing method and device and electronic equipment
US9076207B1 (en) Image processing method, system and electronic device
CN108388781B (en) Mobile terminal, image data acquisition method and related product
CN112818720A (en) Two-dimensional code detection method, detection device and storage medium
CN106790716B (en) Picture pushing method and system based on screen locking state
CN112613358A (en) Article identification method, article identification device, storage medium, and electronic device
WO2018099779A1 (en) Visible light communication detecting and/or decoding.
CN110868531B (en) Method and device for sending trigger signal
CN113421211B (en) Method for blurring light spots, terminal equipment and storage medium
CN112948627B (en) Alarm video generation method, display method and device

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