CN105760867A - Method and device for extracting two-dimension code and/or text in image - Google Patents

Method and device for extracting two-dimension code and/or text in image Download PDF

Info

Publication number
CN105760867A
CN105760867A CN201610095132.6A CN201610095132A CN105760867A CN 105760867 A CN105760867 A CN 105760867A CN 201610095132 A CN201610095132 A CN 201610095132A CN 105760867 A CN105760867 A CN 105760867A
Authority
CN
China
Prior art keywords
information
word
quick response
picture
code
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
CN201610095132.6A
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 WINLAND TECHNOLOGIES Inc
Original Assignee
SHENZHEN WINLAND TECHNOLOGIES Inc
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 WINLAND TECHNOLOGIES Inc filed Critical SHENZHEN WINLAND TECHNOLOGIES Inc
Priority to CN201610095132.6A priority Critical patent/CN105760867A/en
Publication of CN105760867A publication Critical patent/CN105760867A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • G06V10/225Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition based on a marking or identifier characterising the area
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/09Recognition of logos
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention is applicable to the field of picture information processing, and especially relates to a method and a device for extracting the two-dimension code and/or text in an image. According to an embodiment of the invention, the method for extracting the two-dimension code and/or text in an image comprises the following steps: judging whether there is a two-dimension code and/or text in a target image in the shooting process; if there is a two-dimension code and/or text in the target image, extracting the two-dimension code information of the two-dimension code and/or the text information of the text; and marking the two-dimension code information and/or the text information, and saving the two-dimension code information and/or the text information in the EXIF information of a shot picture when shooting is finished. Thus, the two-dimension code information in the picture can be viewed directly from the EXIF information of the picture when there is a need to know about the two-dimension code information in the picture in the later period, the step of scanning the two-dimension code to get the two-dimension code information for subsequent view is avoided, the operation is simple, and the user experience is enhanced.

Description

The extracting method of Quick Response Code and/or word and device in a kind of image
Technical field
The invention belongs to pictorial information process field, particularly relate to extracting method and the device of Quick Response Code and/or word in a kind of image.
Background technology
Along with the arrival of information age, Quick Response Code is widely applied in every field because it can carry various information.A lot of bus stations, tourist attractions advertising device on all can attach the relevant information of some businessmans, these information carry mainly by the form of Quick Response Code or word.And people are when taking pictures in the places such as tourist attractions, it is not intended to middle meeting will be taken in photo with the advertisement of Quick Response Code or Word message.
And when people want to be not intended to take understand into the advertising message in photo time, the scanning tools of photographic head or specific application software must be used, first choose the photo taken, then be scanned obtaining advertising message to the Quick Response Code in photo, so operation is comparatively laborious, and Consumer's Experience sense is poor.
Summary of the invention
The purpose of the embodiment of the present invention is in that to provide the extracting method of Quick Response Code and/or word in a kind of image, aim to solve the problem that prior art is when extracting the 2 D code information in photo, need to first choose photo, then the 2 D code information in photo is identified causing the problem of complex operation.
The embodiment of the present invention is achieved in that in a kind of image the extracting method of Quick Response Code and/or word, and in described image, the extracting method of Quick Response Code and/or word includes:
In the process of taking pictures, whether automatic decision target picture exists Quick Response Code and/or word;
If judgement target picture exists Quick Response Code and/or word, extract the 2 D code information of described Quick Response Code and/or the Word message of described word;
Described 2 D code information and/or described Word message are carried out labelling, and when having taken pictures, described 2 D code information and/or described Word message is stored to the EXIF information of clapped picture;
In the EXIF information of clapped picture, directly read the 2 D code information and/or Word message that comprise in this picture.
The another object of the embodiment of the present invention is in that to provide the extraction element of Quick Response Code and/or word in a kind of image, and in described image, the extraction element of Quick Response Code and/or word includes:
Whether judge module, for, in the process of taking pictures, existing Quick Response Code and/or word in automatic decision target picture;
Information extraction modules, if for judging there is Quick Response Code and/or word in target picture, extracting the 2 D code information of described Quick Response Code and/or the Word message of described word;
Labelling memory module, for described 2 D code information and/or described Word message are carried out labelling, and when having taken pictures, stores described 2 D code information and/or described Word message to the EXIF information of clapped picture;
Read module, for, in the EXIF information of clapped picture, directly reading the 2 D code information and/or Word message that comprise in this picture.
In an embodiment of the present invention, in described image, the extracting method of Quick Response Code and/or word includes: in the process of taking pictures, it is judged that whether there is Quick Response Code and/or word in target picture;If existing, extract the 2 D code information of described Quick Response Code and/or the Word message of described word;Described 2 D code information and/or described Word message are carried out labelling, and when having taken pictures, described 2 D code information and/or described Word message are stored to the EXIF information of clapped picture, so, follow-up it should be understood that during 2 D code information in picture, directly can check from the EXIF information of picture, need scanning Quick Response Code to obtain the step of 2 D code information when eliminating follow-up checking, operation is succinct, enhances Consumer's Experience sense.
Accompanying drawing explanation
Fig. 1 is the flow chart of the extracting method of Quick Response Code and/or word in the image that the embodiment of the present invention provides;
Fig. 2 is the module map of the extraction element of Quick Response Code and/or word in the image that the embodiment of the present invention provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 illustrates the flow chart of the extracting method of Quick Response Code and/or word in the image that first embodiment of the invention provides, and for the ease of illustrating, illustrate only the part relevant to the embodiment of the present invention.
The extracting method of Quick Response Code and/or word in a kind of image, method comprises the steps:
In step S101, in the process of taking pictures, whether automatic decision target picture exists Quick Response Code and/or word.
In the present embodiment, the executive agent of the method can be the equipment with camera function, such as mobile phone, flat board, camera etc..When concrete operations, open the photographing unit of described equipment, to take pictures.
In step s 102, if judging target picture exists Quick Response Code and/or word, extract the 2 D code information of described Quick Response Code and/or the Word message of described word.
In the present embodiment, described equipment is while taking pictures, if finding that captured target picture exists Quick Response Code and/or word, the shooting interface of described equipment does not have any information, in order to avoid interrupting shooting process, but described equipment automatically identifies described Quick Response Code and/or word on backstage, and extracts the 2 D code information of described Quick Response Code and/or the Word message of described word, when specifically extracting, it is possible to adopt existing Quick Response Code and/Text region and extractive technique.
In step s 103, described 2 D code information and/or described Word message are carried out labelling, and when having taken pictures, described 2 D code information and/or described Word message are stored to the EXIF information of clapped picture.Described EXIF (ExchangeableImageFile, exchangeable image file) information contains the metadata customized exclusively for photo, it is possible to the acquisition parameters of recording photograph, thumbnail and other attribute informations.
In step S104, in the EXIF information of clapped picture, directly read the 2 D code information and/or Word message that comprise in this picture.
In the present embodiment, if user wants to understand into the Quick Response Code in photo and/or Word message taking unintentionally, directly can read the 2 D code information comprised in this picture and/or Word message from the EXIF information of clapped picture, taken a picture without again choosing, Quick Response Code therein and/or word are identified, simple to operate, enhance Consumer's Experience sense.
As one embodiment of the invention, step S103, described 2 D code information and/or described Word message are carried out labelling particularly as follows:
Automatically identify the type of described 2 D code information and/or described Word message, and described 2 D code information and/or described Word message are carried out labelling by the type according to described 2 D code information and/or described Word message.Because described 2 D code information and/or described Word message belong to different classes of information with other information in the EXIF information taken a picture, therefore different classes of information is carried out labelling, in order to follow-up can pass through to retrieve directly inquire about it is to be understood that information.
As one embodiment of the invention, the type of described 2 D code information and/or described Word message includes but not limited to: word, business card, network address, phone, mailbox and map.
As one embodiment of the invention, after step S102, described method also includes:
Position positional information when taking pictures, and positional information during by described taking pictures stores to the EXIF information of clapped picture.
As one embodiment of the invention, the EXIF information of described clapped picture also includes: the thumbnail of the temporal information of clapped picture, the facility information of clapped picture, the parameter information of clapped picture and clapped picture.
Fig. 2 illustrates the module map of the extraction element of Quick Response Code and/or word in the image that second embodiment of the invention provides, and for the ease of illustrating, illustrate only the part relevant to the embodiment of the present invention.
The extraction element of Quick Response Code and/or word in a kind of image, described device includes:
Whether judge module 201, for, in the process of taking pictures, existing Quick Response Code and/or word in automatic decision target picture.
In the present embodiment, in described image, the extraction element of Quick Response Code and/or word can be the equipment with camera function, such as mobile phone, flat board, camera etc..When concrete operations, open the photographing unit of described equipment, to take pictures.
Information extraction modules 202, if for judging there is Quick Response Code and/or word in target picture, extracting the 2 D code information of described Quick Response Code and/or the Word message of described word.
In the present embodiment, described equipment is while taking pictures, if finding that captured target picture exists Quick Response Code and/or word, the shooting interface of described equipment does not have any information, in order to avoid interrupting shooting process, but described equipment automatically identifies described Quick Response Code and/or word on backstage, and extracts the 2 D code information of described Quick Response Code and/or the Word message of described word, when specifically extracting, it is possible to adopt existing Quick Response Code and/Text region and extractive technique.
Labelling memory module 203, for described 2 D code information and/or described Word message are carried out labelling, and when having taken pictures, stores described 2 D code information and/or described Word message to the EXIF information of clapped picture.EXIF (ExchangeableImageFile, exchangeable image file) information contains the metadata customized exclusively for photo, it is possible to the acquisition parameters of recording photograph, thumbnail and other attribute informations.
Read module 204, for, in the EXIF information of clapped picture, directly reading the 2 D code information and/or Word message that comprise in this picture.
In the present embodiment, if user wants to understand into the Quick Response Code in photo and/or Word message taking unintentionally, the 2 D code information comprised in this picture and/or Word message can be read from the EXIF information of clapped picture either directly through read module 204, taken a picture without again choosing, Quick Response Code therein and/or word are identified, simple to operate, enhance Consumer's Experience sense.
As one embodiment of the invention, labelling memory module 203 includes:
Indexing unit 2031, for automatically identifying the type of described 2 D code information and/or described Word message, and described 2 D code information and/or described Word message are carried out labelling by the type according to described 2 D code information and/or described Word message.Because described 2 D code information and/or described Word message belong to different classes of information with other information in the EXIF information taken a picture, therefore different classes of information is carried out labelling, in order to follow-up can pass through to retrieve directly inquire about it is to be understood that information.
As one embodiment of the invention, the type of described 2 D code information and/or described Word message includes but not limited to: word, business card, network address, phone, mailbox and map.
As one embodiment of the invention, in described image, the extraction element of Quick Response Code and/or word also includes:
Locating module 205, for positioning positional information when taking pictures, and positional information during by described taking pictures stores to the EXIF information of clapped picture.
As one embodiment of the invention, the EXIF information of described clapped picture also includes: the thumbnail of the temporal information of clapped picture, the facility information of clapped picture, the parameter information of clapped picture and clapped picture.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method can be by the hardware that program controls to be correlated with and completes, described program can in being stored in a computer read/write memory medium, described storage medium, such as ROM/RAM, disk, CD etc..
In an embodiment of the present invention, in described image, the extracting method of Quick Response Code and/or word includes: in the process of taking pictures, it is judged that whether there is Quick Response Code and/or word in target picture;If existing, extract the 2 D code information of described Quick Response Code and/or the Word message of described word;Described 2 D code information and/or described Word message are carried out labelling, and when having taken pictures, described 2 D code information and/or described Word message are stored to the EXIF information of clapped picture, so, follow-up it should be understood that during 2 D code information in picture, directly can check from the EXIF information of picture, need scanning Quick Response Code to obtain the step of 2 D code information when eliminating follow-up checking, operation is succinct, enhances Consumer's Experience sense.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all any amendment, equivalent replacement and improvement etc. made within the spirit and principles in the present invention, should be included within protection scope of the present invention.

Claims (10)

1. the extracting method of Quick Response Code and/or word in an image, it is characterised in that in described image, the extracting method of Quick Response Code and/or word includes:
In the process of taking pictures, whether automatic decision target picture exists Quick Response Code and/or word;
If judgement target picture exists Quick Response Code and/or word, extract the 2 D code information of described Quick Response Code and/or the Word message of described word;
Described 2 D code information and/or described Word message are carried out labelling, and when having taken pictures, described 2 D code information and/or described Word message is stored to the EXIF information of clapped picture;
In the EXIF information of described picture, directly read the 2 D code information and/or Word message that comprise in this picture.
2. the extracting method of Quick Response Code and/or word in image as claimed in claim 1, it is characterised in that described described 2 D code information and/or described Word message are carried out labelling particularly as follows:
Automatically identify the type of described 2 D code information and/or described Word message, and described 2 D code information and/or described Word message are carried out labelling by the type according to described 2 D code information and/or described Word message.
3. the extracting method of Quick Response Code and/or word in image as claimed in claim 2, it is characterised in that the type of described 2 D code information and/or described Word message includes: word, business card, network address, phone, mailbox and map.
4. the extracting method of Quick Response Code and/or word in image as claimed in claim 1, it is characterized in that, if judging there is Quick Response Code and/or word in target picture described, after extracting the 2 D code information of described Quick Response Code and/or the Word message of described word, described method also includes:
Position positional information when taking pictures, and positional information during by described taking pictures stores to the EXIF information of clapped picture.
5. the extracting method of Quick Response Code and/or word in image as claimed in claim 1, it is characterized in that, the EXIF information of described clapped picture also includes: the thumbnail of the temporal information of clapped picture, the facility information of clapped picture, the parameter information of clapped picture and clapped picture.
6. the extraction element of Quick Response Code and/or word in an image, it is characterised in that in described image, the extraction element of Quick Response Code and/or word includes:
Whether judge module, for, in the process of taking pictures, existing Quick Response Code and/or word in automatic decision target picture;
Information extraction modules, if for judging there is Quick Response Code and/or word in target picture, extracting the 2 D code information of described Quick Response Code and/or the Word message of described word;
Labelling memory module, for described 2 D code information and/or described Word message are carried out labelling, and when having taken pictures, stores described 2 D code information and/or described Word message to the EXIF information of clapped picture;
Read module, for, in the EXIF information of clapped picture, directly reading the 2 D code information and/or Word message that comprise in this picture.
7. the extraction element of Quick Response Code and/or word in image as claimed in claim 6, it is characterised in that described labelling memory module includes:
Indexing unit, for automatically identifying the type of described 2 D code information and/or described Word message, and described 2 D code information and/or described Word message are carried out labelling by the type according to described 2 D code information and/or described Word message.
8. the extraction element of Quick Response Code and/or word in image as claimed in claim 7, it is characterised in that the type of described 2 D code information and/or described Word message includes: word, business card, network address, phone, mailbox and map.
9. the extraction element of Quick Response Code and/or word in image as claimed in claim 6, it is characterised in that in described image, the extraction element of Quick Response Code and/or word also includes:
Locating module, for positioning positional information when taking pictures, and positional information during by described taking pictures stores to the EXIF information of clapped picture.
10. the extraction element of Quick Response Code and/or word in image as claimed in claim 6, it is characterized in that, the EXIF information of described clapped picture also includes: the thumbnail of the temporal information of clapped picture, the facility information of clapped picture, the parameter information of clapped picture and clapped picture.
CN201610095132.6A 2016-02-19 2016-02-19 Method and device for extracting two-dimension code and/or text in image Pending CN105760867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610095132.6A CN105760867A (en) 2016-02-19 2016-02-19 Method and device for extracting two-dimension code and/or text in image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610095132.6A CN105760867A (en) 2016-02-19 2016-02-19 Method and device for extracting two-dimension code and/or text in image

Publications (1)

Publication Number Publication Date
CN105760867A true CN105760867A (en) 2016-07-13

Family

ID=56330906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610095132.6A Pending CN105760867A (en) 2016-02-19 2016-02-19 Method and device for extracting two-dimension code and/or text in image

Country Status (1)

Country Link
CN (1) CN105760867A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106650547A (en) * 2016-11-18 2017-05-10 惠州Tcl移动通信有限公司 Method and system for recording two-dimensional code scanning information by mobile terminal
CN107169393A (en) * 2017-04-12 2017-09-15 北京小米移动软件有限公司 Two-dimensional code scanning method and device
CN108305291A (en) * 2018-01-08 2018-07-20 武汉大学 Utilize the monocular vision positioning and orientation method of the wall advertisement comprising positioning Quick Response Code
CN109190425A (en) * 2018-07-25 2019-01-11 维沃移动通信有限公司 A kind of information identifying method and terminal device
CN111428594A (en) * 2020-03-13 2020-07-17 北京三快在线科技有限公司 Identity authentication method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020037104A1 (en) * 2000-09-22 2002-03-28 Myers Gregory K. Method and apparatus for portably recognizing text in an image sequence of scene imagery
CN101667251A (en) * 2008-09-05 2010-03-10 三星电子株式会社 OCR recognition method and device with auxiliary positioning function
CN104346597A (en) * 2014-10-29 2015-02-11 中山大学 QR (quick response) code detection and correction extraction method and IP (intellectual property) core
CN105046186A (en) * 2015-08-27 2015-11-11 北京恒华伟业科技股份有限公司 Two-dimensional code recognition method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020037104A1 (en) * 2000-09-22 2002-03-28 Myers Gregory K. Method and apparatus for portably recognizing text in an image sequence of scene imagery
CN101667251A (en) * 2008-09-05 2010-03-10 三星电子株式会社 OCR recognition method and device with auxiliary positioning function
CN104346597A (en) * 2014-10-29 2015-02-11 中山大学 QR (quick response) code detection and correction extraction method and IP (intellectual property) core
CN105046186A (en) * 2015-08-27 2015-11-11 北京恒华伟业科技股份有限公司 Two-dimensional code recognition method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106650547A (en) * 2016-11-18 2017-05-10 惠州Tcl移动通信有限公司 Method and system for recording two-dimensional code scanning information by mobile terminal
CN107169393A (en) * 2017-04-12 2017-09-15 北京小米移动软件有限公司 Two-dimensional code scanning method and device
CN108305291A (en) * 2018-01-08 2018-07-20 武汉大学 Utilize the monocular vision positioning and orientation method of the wall advertisement comprising positioning Quick Response Code
CN108305291B (en) * 2018-01-08 2022-02-01 武汉大学 Monocular vision positioning and attitude determination method utilizing wall advertisement containing positioning two-dimensional code
CN109190425A (en) * 2018-07-25 2019-01-11 维沃移动通信有限公司 A kind of information identifying method and terminal device
CN109190425B (en) * 2018-07-25 2021-12-28 维沃移动通信有限公司 Information identification method and terminal equipment
CN111428594A (en) * 2020-03-13 2020-07-17 北京三快在线科技有限公司 Identity authentication method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11714523B2 (en) Digital image tagging apparatuses, systems, and methods
CN105760867A (en) Method and device for extracting two-dimension code and/or text in image
US8611592B2 (en) Landmark identification using metadata
US8396246B2 (en) Tagging images with labels
US20140164927A1 (en) Talk Tags
KR102001218B1 (en) Method and device for providing information regarding the object
JP6209962B2 (en) Information processing apparatus and information processing program
CN105808782A (en) Adding method and device for picture labels
CN102033958A (en) Photo sort management system and method
US20180025215A1 (en) Anonymous live image search
CN102831106A (en) Electronic document generation method of mobile terminal and mobile terminal
CN110933299B (en) Image processing method and device and computer storage medium
CN102547090A (en) Digital photographing apparatus and methods of providing pictures thereof
CN103327270B (en) A kind of image processing method, device and terminal
CN105094760A (en) Picture marking method and device
US20140293069A1 (en) Real-time image classification and automated image content curation
CN106055554A (en) Method, system and terminal for electronic phone album classification
WO2014086287A1 (en) Text image automatic dividing method and device, method for automatically dividing handwriting entries
US20150278248A1 (en) Personal Information Management Service System
KR102286015B1 (en) Method and device for text-based image retrieval
US20160104052A1 (en) Text-based thumbnail generation
US20200005689A1 (en) Generating three-dimensional user experience based on two-dimensional media content
CN107818099B (en) Location configuration method and device based on photos
CN106384071A (en) Two-dimensional code scanning recognition processing method and device
US9767541B2 (en) Techniques for automatically correcting groups of images

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160713

RJ01 Rejection of invention patent application after publication