CN107358234A - The recognition methods of identification code and device - Google Patents

The recognition methods of identification code and device Download PDF

Info

Publication number
CN107358234A
CN107358234A CN201710581177.9A CN201710581177A CN107358234A CN 107358234 A CN107358234 A CN 107358234A CN 201710581177 A CN201710581177 A CN 201710581177A CN 107358234 A CN107358234 A CN 107358234A
Authority
CN
China
Prior art keywords
identification
focal length
focal lengths
identification code
determining
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
CN201710581177.9A
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.)
Shanghai Green Orange Industry Co Ltd
Original Assignee
Shanghai Green Orange Industry 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 Shanghai Green Orange Industry Co Ltd filed Critical Shanghai Green Orange Industry Co Ltd
Priority to CN201710581177.9A priority Critical patent/CN107358234A/en
Publication of CN107358234A publication Critical patent/CN107358234A/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/24Aligning, centring, orientation detection or correction of the image
    • G06V10/245Aligning, centring, orientation detection or correction of the image by locating a pattern; Special marks for positioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present invention, which provides a kind of recognition methods of identification code and device, this method, to be included:The identification instruction of user's input is received, the identification instruction is used to indicate to identify the first identification code by the picture pick-up device in the terminal device;According to the history identification record of the terminal device, N number of identification focal length is determined, the N is the positive integer more than or equal to 1;According to N number of identification focal length, first identification code is identified by the picture pick-up device.For improving the recognition efficiency of identification code.

Description

Identification code identification method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an identification code identification method and device.
Background
With the continuous development of computer technology, identification codes (such as bar codes and two-dimensional codes) are applied more and more widely, for example, commodity information can be acquired by identifying the two-dimensional codes, or friends can be added by identifying the two-dimensional codes.
In the prior art, identification codes are generally required to be identified by an application installed in a terminal device, for example, identification codes are generally identified by an identification function in a WeChat, a preset browser and the like at present, in the process of identifying the identification codes, an application with an identification function is usually started in the terminal device, the identification function is started in the application, a camera of the terminal device is called by the identification function, and the identification codes are identified by the camera. In the process of identifying the identification code, focusing is carried out by adopting an automatic focusing mode, namely, the terminal equipment firstly adopts an initial focal length to carry out focusing and identifies the identification code, if the identification is successful, the process is finished, if the identification is unsuccessful, the initial focal length is increased or reduced by a preset value, the focusing is carried out by the changed focal length and the identification code is identified, and the rest is done until the identification code is successfully identified.
However, in the prior art, it usually takes a long time to achieve successful focusing and successful identification of the identification code, which results in low identification efficiency of the identification code.
Disclosure of Invention
The embodiment of the invention provides an identification code identification method and device, which improve identification efficiency of identification codes.
In a first aspect, an embodiment of the present invention provides an identification code identification method, including:
receiving an identification instruction input by a user, wherein the identification instruction is used for indicating that a first identification code is identified through a camera device in the terminal device;
determining N identification focal lengths according to the historical identification records of the terminal equipment, wherein N is a positive integer greater than or equal to 1;
and identifying the first identification code through the camera equipment according to the N identification focal lengths.
In a possible implementation manner, the determining N identification focal lengths according to the historical identification record of the terminal device includes:
acquiring at least one historical identification record of the terminal equipment;
acquiring an identification focal length corresponding to each historical identification record;
and determining the N identification focal lengths according to the identification focal length corresponding to each historical identification record.
In another possible implementation manner, the determining the N identification focal distances according to the identification focal distance corresponding to each historical identification record includes:
counting the number of the identification focal lengths corresponding to the preset focal length sections according to the identification focal length corresponding to each historical identification record;
determining N target focal length sections in the plurality of preset focal length sections according to the number of identification focal lengths corresponding to the plurality of preset focal length sections;
and respectively determining the focal lengths corresponding to the N target focal length sections as the N identification focal lengths.
In another possible embodiment, the receiving the identification instruction input by the user includes:
receiving the identification instruction input by a user in a camera application program;
or,
and receiving the identification instruction input by the user through a preset key in the terminal equipment.
In another possible implementation, the recognizing, by the image capturing apparatus, the first identification code according to the N identification focal lengths includes:
step A, identifying the first identification code according to the Nth identification focal length, and judging whether the first identification code is successfully identified;
step B, if the first identification code is not successfully identified, adding 1 to the value of N, and executing the step A until the first identification code is successfully identified;
wherein, initially, N is 1.
In a second aspect, an embodiment of the present invention provides an apparatus for identifying an identification code, including a receiving module, a determining module, and an identifying module, wherein,
the receiving module is used for receiving an identification instruction input by a user, wherein the identification instruction is used for indicating that a first identification code is identified through a camera device in the terminal device;
the determining module is used for determining N identification focal lengths according to the historical identification records of the terminal equipment, wherein N is a positive integer greater than or equal to 1;
the identification module is used for identifying the first identification code through the camera equipment according to the N identification focal lengths.
In one possible embodiment, the determining module comprises a first obtaining unit, a second obtaining unit and a determining unit, wherein,
the first obtaining unit is used for obtaining at least one history identification record of the terminal equipment;
the second acquisition unit is used for acquiring the identification focal length corresponding to each historical identification record;
the determining unit is used for determining the N identification focal lengths according to the identification focal length corresponding to each historical identification record.
In another possible implementation manner, the determining unit is specifically configured to:
counting the number of the identification focal lengths corresponding to the preset focal length sections according to the identification focal length corresponding to each historical identification record;
determining N target focal length sections in the plurality of preset focal length sections according to the number of identification focal lengths corresponding to the plurality of preset focal length sections;
and respectively determining the focal lengths corresponding to the N target focal length sections as the N identification focal lengths.
In another possible implementation manner, the receiving module is specifically configured to:
receiving the identification instruction input by a user in a camera application program;
or,
and receiving the identification instruction input by the user through a preset key in the terminal equipment.
In another possible implementation, the identification module is specifically configured to perform the following step a and the following step B:
step A, identifying the first identification code according to the Nth identification focal length, and judging whether the first identification code is successfully identified;
step B, if the first identification code is not successfully identified, adding 1 to the value of N, and executing the step A until the first identification code is successfully identified;
wherein, initially, N is 1.
According to the identification code identification method and device provided by the embodiment of the invention, when the terminal equipment needs to identify the identification code, the terminal equipment firstly determines N identification focal lengths according to the historical identification record, the N identification focal lengths are the N identification focal lengths with the highest identification success rate in the historical identification record, the terminal equipment firstly identifies the first identification code according to the N identification focal lengths, and when the first identification code cannot be successfully identified according to the N identification focal lengths, the first identification code is identified in an automatic focusing mode. For the same user, the habit of the user is relatively fixed, so that when the user identifies the identification code through the terminal equipment, the distance between the camera and the identification code is generally relatively fixed, and N identification focal lengths obtained according to the historical identification record are determined to be related to the habit of the user, therefore, in the process of identifying the first identification code, the first identification code can be generally and successfully identified according to the N identification focal lengths obtained through determination, and the identification efficiency of the identification code is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of an identification code identification method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an identification code identification method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for obtaining N identification focal lengths according to an embodiment of the present invention;
fig. 4 is a first schematic structural diagram of an identification apparatus for identifying an identification code according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an identification apparatus for identification codes according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic view of an application scenario of an identification code identification method according to an embodiment of the present invention. Referring to fig. 1, the terminal device may be a mobile phone, a computer, or other devices, wherein the terminal device has an image capturing device, so that the terminal device can scan the identification code through the image capturing device. The terminal device also has an identification function of an identification code, which may be integrated into an application installed in the terminal device, for example, the identification function may be integrated into a camera application, the identification function may be integrated into a wechat application, and so on.
In the application, after the terminal device completes one-time identification of the identification code, the terminal device may generate an identification record of the current identification, so that a historical identification record is stored in the terminal device, and optionally, the historical identification record may include an identification focal length, an identification time, an identification duration, and the like of successful identification. When the terminal device needs to identify the identification code, the terminal device may determine the N most frequently used identification focal lengths of the user according to the historical identification record, identify the identification code according to the N identification focal lengths, and identify the identification code through an automatic focusing mode when the identification code cannot be successfully identified according to the N identification focal lengths. In the practical application process, when the same user identifies the identification code, the distance between the camera and the identification code is usually related to the habit of the user, for example, the distance between the camera and the identification code is far when part of the user is used, and the distance between the camera and the identification code is far when part of the user is used; the distance between the camera and the identification code is related to the identification focal length, and the habit of a user is fixed for the same user, so that the distance between the camera and the identification code is usually fixed when the user identifies the identification code, and in the identification process of the identification code, the N identification focal lengths obtained according to the historical identification record are determined to be the identification code which can be successfully identified usually, and the identification efficiency of the identification code is improved without multiple times of identification in an automatic focusing mode.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following embodiments may be combined with each other, and the description of the same or similar contents in different embodiments is not repeated.
Fig. 2 is a flowchart illustrating an identification code identification method according to an embodiment of the present invention. Referring to fig. 2, the method may include:
s201, receiving an identification instruction input by a user, wherein the identification instruction is used for indicating that the first identification code is identified through an image pickup device in the terminal device.
The execution main body of the embodiment of the invention can be terminal equipment, and also can be an identification device arranged in the terminal equipment. Alternatively, the identification means may be implemented by software, or the identification means may be implemented by a combination of software and hardware.
Optionally, the identification code in the embodiment of the present invention may include a two-dimensional code, a barcode, and the like, and certainly, in an actual application process, the identification code may be set according to an actual need, which is not specifically limited in the embodiment of the present invention.
Optionally, the identification function of the identification code may be integrated in the camera application program of the terminal device, and since the camera application programs are installed in most terminal devices, the user directly recognizes the identification code through the camera application program without additionally installing an application program with the identification code identification function, thereby improving the user experience.
When the recognition function of the identification code is integrated in the camera application of the terminal device, the user can input a recognition instruction in the camera application. For example, the user may start a camera application program and perform a click operation on a preset button in the camera application program to input a recognition instruction in the terminal device.
Of course, in order to enable the user to input the identification instruction in the terminal device quickly, the user may perform a preset type of operation on a preset key in the terminal device to implement the input of the identification instruction in the terminal device. For example, the user may perform a double-click operation on a power-on key of the terminal device to input the identification instruction in the terminal device.
S202, determining N identification focal lengths according to the historical identification records of the terminal equipment, wherein N is a positive integer greater than or equal to 1.
Optionally, the historical identification record of the terminal device may be all the historical identification records of the terminal device, or may be the historical identification record of the terminal device within a preset time period, where the preset time period may be 3 months, 6 months, a year, and the like.
Alternatively, the historical identification record may be an identification record of successful identification of the identification code. Optionally, the historical identification record may include an identification focal length when the identification code is successfully identified, and of course, the historical identification record may further include an identification time, an identification duration, and the like. In an actual application process, the content included in the history identification record may be set according to actual needs, and this is not specifically limited in the embodiment of the present invention.
Optionally, the identification focal lengths in the historical identification record may be counted to obtain N identification focal lengths, where the N identification focal lengths are the N identification focal lengths with the highest identification success rate in the historical identification record of the terminal device.
It should be noted that, in the embodiment shown in fig. 3, a process of obtaining N identification focal lengths is described in detail, and details are not repeated here.
It should be further noted that the N identification focal lengths may also be preset for the terminal device. For example, since most users are accustomed to a code scanning distance of 17 cm to 35 cm when performing the identification code scanning, the N identification focal lengths may be set to 30 cm, 26 cm, and 22 cm for the code scanning distance.
And S203, identifying the first identification code through the camera equipment according to the N identification focal lengths.
Optionally, the identifying the first identification code may be implemented by the following steps a and B:
step A, identifying a first identification code according to the Nth identification focal length, and judging whether the first identification code is successfully identified;
step B, if the first identification code is not successfully identified, adding 1 to the value of N, and executing the step A until the first identification code is successfully identified; wherein, initially, N is 1.
In the practical application process, the identification success rate corresponding to each of the N identification focal lengths may be obtained, and the N identification focal lengths are sorted according to the sequence of the identification success rate corresponding to each identification focal length from high to low.
For example, the identification success rate corresponding to each identification focal length may be obtained through the following feasible implementation manners, assuming that the terminal device performs 100 times of successful identification codes, where the identification focal length for 60 times is 30 centimeters, the identification focal length for 25 times is 35 centimeters, the identification focal length for 10 times is 20 centimeters, and the terminal device obtains 3 identification focal lengths that are 30 centimeters, 35 centimeters, and 20 centimeters respectively, where the identification success rate corresponding to 30 centimeters is: 60/100 is 0.6, and the recognition success rate for 35 cm is: 25/100 is 0.25, and the recognition success rate for 20 cm is 10/100 is 0.1.
In the process of identifying the first identification code, the terminal equipment identifies the first identification code according to the first identification focal length, if the identification is successful, the process is ended, if the identification is failed, the first identification code is identified according to the second identification focal length, if the identification is successful, the process is ended, if the identification is failed, the first identification code is identified according to the third identification focal length, and so on until the first identification code is successfully identified, or the first identification code is still unsuccessfully identified when the value of N is greater than a preset threshold value.
It should be noted that, when the first identification code cannot be successfully identified according to the N identification focal lengths, the first identification code may be identified in an automatic focusing manner.
It should be further noted that, in the embodiment of the present invention, when the identification function is integrated in the camera application, after the terminal device successfully identifies the identification code, the page jump may be performed according to the identified identification code. For example, if the terminal device recognizes the commodity detail information, a webpage corresponding to the commodity detail information can be directly opened, and if the terminal device recognizes the WeChat friend business card, a WeChat interface can be called to start WeChat, and a friend adding page in the WeChat can be skipped to.
According to the identification code identification method provided by the embodiment of the invention, when the terminal equipment needs to identify the identification code, the terminal equipment firstly determines N identification focal lengths according to the historical identification record, the N identification focal lengths are the N identification focal lengths with the highest identification success rate in the historical identification record, the terminal equipment firstly identifies the first identification code according to the N identification focal lengths, and when the first identification code cannot be successfully identified according to the N identification focal lengths, the first identification code is identified in an automatic focusing mode. For the same user, the habit of the user is relatively fixed, so that when the user identifies the identification code through the terminal equipment, the distance between the camera and the identification code is generally relatively fixed, and N identification focal lengths obtained according to the historical identification record are determined to be related to the habit of the user, therefore, in the process of identifying the first identification code, the first identification code can be generally and successfully identified according to the N identification focal lengths obtained through determination, and the identification efficiency of the identification code is further improved.
Based on the embodiment shown in fig. 2, the following describes in detail a process of determining N identification focal lengths (S202 in the embodiment shown in fig. 2) according to the historical identification records of the terminal device by the embodiment shown in fig. 3, specifically, please refer to the embodiment shown in fig. 3.
Fig. 3 is a schematic flowchart of a method for obtaining N identification focal lengths according to an embodiment of the present invention. Referring to fig. 3, the method may include:
s301, at least one history identification record of the terminal equipment is obtained.
Optionally, after the terminal device successfully identifies one identification code each time, the terminal device stores the corresponding historical identification record in the preset storage space. Accordingly, the terminal device may obtain at least one history identification record of the terminal device in the preset storage space.
S302, acquiring the identification focal distance corresponding to each historical identification record.
The identification focal distance corresponding to the historical identification record is as follows: and in the identification process corresponding to the historical identification record, the identification focal length is used when the identification code is successfully identified.
And S303, counting the number of the identification focal lengths corresponding to the plurality of preset focal length sections according to the identification focal length corresponding to each historical identification record.
The preset focal length is a preset focal length range, for example, the plurality of preset focal length sections may be 20-25 cm, 25.1-30 cm, 30.1-35 cm, and the like. Of course, in an actual application process, the plurality of preset focal length segments may be set according to actual needs, which is not specifically limited in the embodiment of the present invention.
Optionally, the preset focal length section where the identification focal length corresponding to each historical identification record is located may be determined, and the number of the identification focal lengths corresponding to the plurality of preset focal length sections may be counted according to the preset focal length section where the identification focal length corresponding to each historical identification record is located.
S304, determining N target focal length sections in the plurality of preset focal length sections according to the number of the identification focal lengths corresponding to the plurality of preset focal length sections.
Optionally, the N preset focal length segments with the largest number of corresponding identification focal lengths may be determined as the N target focal length segments.
S305, respectively determining the focal lengths corresponding to the N target focal length sections as N identification focal lengths.
Each focal length segment has its corresponding identification focal length, e.g., focal lengths 20-25 cm may correspond to an identification focal length of 22.5 cm, and focal lengths 25.1-30 cm may correspond to an identification focal length of 27.5 cm.
It should be noted that, in an actual application process, the identification focal length corresponding to each focal length segment may be determined according to actual needs, which is not specifically limited in the embodiment of the present invention.
It should be further noted that, because the habit of the user usually does not change frequently, in the actual application process, the terminal device may periodically execute the technical scheme shown in the embodiment of fig. 3, for example, execute the technical scheme shown in the embodiment of fig. 3 once every week or every month, to determine N identification focal lengths at a time, and store the N identification focal lengths obtained by the determination, so that, in the subsequent identification process, it is only necessary to directly obtain the stored N identification focal lengths, and thus, the efficiency of obtaining the N identification focal lengths may be improved.
The technical solutions shown in the above method embodiments are described in detail below by specific examples.
For example, assuming that a two-dimensional code recognition function is integrated in a camera application of the terminal device, when a user needs to perform two-dimensional code recognition, the user may start a camera in the terminal device and start the two-dimensional code recognition function into the camera function, and after the user starts the two-dimensional code recognition function, the terminal device obtains a history recognition record.
Assuming that before the current time, the user successfully performs two-dimensional code scanning for 100 times through the terminal device, and accordingly, the history of two-dimensional code scanning obtained by the terminal device is shown in table 1:
TABLE 1
Identification of history identification records Identifying focal distance
History identification record 1 30 cm
History identification record 2 31 cm
History identification record 3 31 cm
History identification record 4 30 cm
…… ……
History identification record 100 31 cm
And then, the preset focal length sections in the terminal equipment are assumed to be 25-27 cm, 27.1-29 cm, 29.1-31 cm, 31.1-33 cm and 33.1-35 cm.
The terminal equipment determines the identification focal length corresponding to each historical identification record, and counts the identification focal length number corresponding to each focal length, and it is assumed that the identification focal length number corresponding to each preset focal length and the identification focal length corresponding to each preset focal length are shown in table 2:
TABLE 2
Focal length segment Number of corresponding identification focal lengths Identifying focal distance
25-27 cm 2 26 cm
27.1-29 cm 3 28 cm
29.1-31 cm 75 30 cm
31.1-33 cm 15 32 cm
33.1-35 cm 5 34 cm
Assuming that N is 2, from the data shown in table 2, 2 identified focal lengths can be determined to be 30 centimeters and 32 centimeters.
When two-dimensional code recognition is carried out, firstly, two-dimensional code recognition is carried out according to a focal length of 30 cm, if the two-dimensional code cannot be successfully recognized according to the focal length of 30 cm, the two-dimensional code recognition is carried out through a focal length of 32 cm, and if the two-dimensional code cannot be successfully recognized according to the focal length of 32 cm, the two-dimensional code is recognized through an automatic focusing mode.
In the practical application process, according to the data counted in table 2, the user usually recognizes the two-dimensional code with a focal length of 30 cm, and the success rate of recognizing the two-dimensional code through the focal length of 30 cm is high, so that the user can recognize the two-dimensional code successfully through the focal length of 30 cm under the condition that the habit of the user is not changed, and the efficiency of recognizing the two-dimensional code can be improved.
Fig. 4 is a first schematic structural diagram of an identification device for identification codes according to an embodiment of the present invention. Referring to fig. 4, the apparatus may include a receiving module 11, a determining module 12, and an identifying module 13, wherein,
the receiving module 11 is configured to receive an identification instruction input by a user, where the identification instruction is used to instruct a camera device in the terminal device to identify a first identification code;
the determining module 12 is configured to determine N identification focal lengths according to a historical identification record of the terminal device, where N is a positive integer greater than or equal to 1;
the identification module 13 is configured to identify the first identification code through the image capturing device according to the N identification focal lengths.
The identification device of the identification code provided by the embodiment of the present invention can implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
Fig. 5 is a schematic structural diagram of an identification apparatus for identification codes according to an embodiment of the present invention. On the basis of the embodiment shown in fig. 4, please refer to fig. 5, the determining module 12 includes a first obtaining unit 121, a second obtaining unit 122, and a determining unit 123, wherein,
the first obtaining unit 121 is configured to obtain at least one history identification record of the terminal device;
the second obtaining unit 122 is configured to obtain an identification focal length corresponding to each historical identification record;
the determining unit 123 is configured to determine the N identification focal lengths according to the identification focal length corresponding to each historical identification record.
In a possible implementation manner, the determining unit 123 is specifically configured to:
counting the number of the identification focal lengths corresponding to the preset focal length sections according to the identification focal length corresponding to each historical identification record;
determining N target focal length sections in the plurality of preset focal length sections according to the number of identification focal lengths corresponding to the plurality of preset focal length sections;
and respectively determining the focal lengths corresponding to the N target focal length sections as the N identification focal lengths.
In another possible implementation, the receiving module 11 is specifically configured to:
receiving the identification instruction input by a user in a camera application program;
or,
and receiving the identification instruction input by the user through a preset key in the terminal equipment.
In another possible implementation, the identification module 13 is specifically configured to execute the following step a and the following step B:
step A, identifying the first identification code according to the Nth identification focal length, and judging whether the first identification code is successfully identified;
step B, if the first identification code is not successfully identified, adding 1 to the value of N, and executing the step A until the first identification code is successfully identified;
wherein, initially, N is 1.
The identification device of the identification code provided by the embodiment of the present invention can implement the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the embodiments of the present invention.

Claims (10)

1. A method for identifying an identification code, comprising:
receiving an identification instruction input by a user, wherein the identification instruction is used for indicating that a first identification code is identified through a camera device in the terminal device;
determining N identification focal lengths according to the historical identification records of the terminal equipment, wherein N is a positive integer greater than or equal to 1;
and identifying the first identification code through the camera equipment according to the N identification focal lengths.
2. The method of claim 1, wherein the determining N identification focal lengths from the historical identification record of the terminal device comprises:
acquiring at least one historical identification record of the terminal equipment;
acquiring an identification focal length corresponding to each historical identification record;
and determining the N identification focal lengths according to the identification focal length corresponding to each historical identification record.
3. The method of claim 2, wherein determining the N identification focal lengths from the identification focal length corresponding to each historical identification record comprises:
counting the number of the identification focal lengths corresponding to the preset focal length sections according to the identification focal length corresponding to each historical identification record;
determining N target focal length sections in the plurality of preset focal length sections according to the number of identification focal lengths corresponding to the plurality of preset focal length sections;
and respectively determining the focal lengths corresponding to the N target focal length sections as the N identification focal lengths.
4. The method according to any one of claims 1-3, wherein the receiving of the user-input identification instruction comprises:
receiving the identification instruction input by a user in a camera application program;
or,
and receiving the identification instruction input by the user through a preset key in the terminal equipment.
5. The method according to any one of claims 1-3, wherein said identifying the first identification code by the camera device according to the N identification focal lengths comprises:
step A, identifying the first identification code according to the Nth identification focal length, and judging whether the first identification code is successfully identified;
step B, if the first identification code is not successfully identified, adding 1 to the value of N, and executing the step A until the first identification code is successfully identified;
wherein, initially, N is 1.
6. The identification device of the identification code is characterized by comprising a receiving module, a determining module and an identifying module, wherein,
the receiving module is used for receiving an identification instruction input by a user, wherein the identification instruction is used for indicating that a first identification code is identified through a camera device in the terminal device;
the determining module is used for determining N identification focal lengths according to the historical identification records of the terminal equipment, wherein N is a positive integer greater than or equal to 1;
the identification module is used for identifying the first identification code through the camera equipment according to the N identification focal lengths.
7. The apparatus of claim 6, wherein the determining means comprises an obtaining first obtaining unit, a second obtaining unit, and a determining unit, wherein,
the first obtaining unit is used for obtaining at least one history identification record of the terminal equipment;
the second acquisition unit is used for acquiring the identification focal length corresponding to each historical identification record;
the determining unit is used for determining the N identification focal lengths according to the identification focal length corresponding to each historical identification record.
8. The apparatus according to claim 7, wherein the determining unit is specifically configured to:
counting the number of the identification focal lengths corresponding to the preset focal length sections according to the identification focal length corresponding to each historical identification record;
determining N target focal length sections in the plurality of preset focal length sections according to the number of identification focal lengths corresponding to the plurality of preset focal length sections;
and respectively determining the focal lengths corresponding to the N target focal length sections as the N identification focal lengths.
9. The apparatus according to any one of claims 6 to 8, wherein the receiving module is specifically configured to:
receiving the identification instruction input by a user in a camera application program;
or,
and receiving the identification instruction input by the user through a preset key in the terminal equipment.
10. The apparatus according to any one of claims 6 to 8, wherein the identification module is specifically configured to perform the following step a and the following step B:
step A, identifying the first identification code according to the Nth identification focal length, and judging whether the first identification code is successfully identified;
step B, if the first identification code is not successfully identified, adding 1 to the value of N, and executing the step A until the first identification code is successfully identified;
wherein, initially, N is 1.
CN201710581177.9A 2017-07-17 2017-07-17 The recognition methods of identification code and device Pending CN107358234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710581177.9A CN107358234A (en) 2017-07-17 2017-07-17 The recognition methods of identification code and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710581177.9A CN107358234A (en) 2017-07-17 2017-07-17 The recognition methods of identification code and device

Publications (1)

Publication Number Publication Date
CN107358234A true CN107358234A (en) 2017-11-17

Family

ID=60292307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710581177.9A Pending CN107358234A (en) 2017-07-17 2017-07-17 The recognition methods of identification code and device

Country Status (1)

Country Link
CN (1) CN107358234A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109145667A (en) * 2018-08-30 2019-01-04 深圳大势智能科技有限公司 Quick identification bar code method, system, equipment and storage medium based on code reader
CN110798608A (en) * 2018-08-02 2020-02-14 北京京东尚科信息技术有限公司 Method and device for identifying image
WO2023280285A1 (en) * 2021-07-08 2023-01-12 杭州海康机器人股份有限公司 Focusing method and apparatus, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098397A (en) * 2006-06-26 2008-01-02 富士通株式会社 Mobile terminal device, controlling device, controlling method, and computer product
CN102324014A (en) * 2005-03-11 2012-01-18 手持产品公司 Bar code reading device with global electronic shutter control
CN103279730A (en) * 2013-06-05 2013-09-04 北京奇虎科技有限公司 Method and device for processing visualized image encoding by mobile terminal
CN104364710A (en) * 2012-06-04 2015-02-18 理光映像有限公司 Imaging device
CN105488447A (en) * 2016-01-24 2016-04-13 苏州摩比力特电子科技有限公司 Mobile bar code scanning device based on hand-held terminal with shooting function
CN106131415A (en) * 2016-07-19 2016-11-16 广东欧珀移动通信有限公司 Image in 2 D code scan method, device and mobile terminal
CN106657785A (en) * 2016-12-23 2017-05-10 广东小天才科技有限公司 operation control method and device for camera

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324014A (en) * 2005-03-11 2012-01-18 手持产品公司 Bar code reading device with global electronic shutter control
CN101098397A (en) * 2006-06-26 2008-01-02 富士通株式会社 Mobile terminal device, controlling device, controlling method, and computer product
CN104364710A (en) * 2012-06-04 2015-02-18 理光映像有限公司 Imaging device
CN103279730A (en) * 2013-06-05 2013-09-04 北京奇虎科技有限公司 Method and device for processing visualized image encoding by mobile terminal
CN105488447A (en) * 2016-01-24 2016-04-13 苏州摩比力特电子科技有限公司 Mobile bar code scanning device based on hand-held terminal with shooting function
CN106131415A (en) * 2016-07-19 2016-11-16 广东欧珀移动通信有限公司 Image in 2 D code scan method, device and mobile terminal
CN106657785A (en) * 2016-12-23 2017-05-10 广东小天才科技有限公司 operation control method and device for camera

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110798608A (en) * 2018-08-02 2020-02-14 北京京东尚科信息技术有限公司 Method and device for identifying image
CN109145667A (en) * 2018-08-30 2019-01-04 深圳大势智能科技有限公司 Quick identification bar code method, system, equipment and storage medium based on code reader
WO2023280285A1 (en) * 2021-07-08 2023-01-12 杭州海康机器人股份有限公司 Focusing method and apparatus, and storage medium

Similar Documents

Publication Publication Date Title
CN109255277B (en) Two-dimensional code analysis method and device
CN111371988B (en) Content operation method, device, terminal and storage medium
EP2309420A1 (en) Method for improving the barcode recognition efficiency using continuous sampling, computer readable medium, and barcode recognition apparatus
CN105447454A (en) Fingerprint template improving method, device and terminal device
CN105159913B (en) Method and device for determining file to be cleaned
CN107358234A (en) The recognition methods of identification code and device
JP2021135993A (en) Text recognition method, text recognition apparatus, electronic device, and storage medium
US20180239839A1 (en) Method and Apparatus for Identifying To-Be-Cleaned Data, and Electronic Device
CN111401238B (en) Method and device for detecting character close-up fragments in video
CN109766422A (en) Information processing method, apparatus and system, storage medium, terminal
CN109213448B (en) Method, device, equipment and storage medium for erasing and writing data of smart card
CN107992872B (en) Method for carrying out text recognition on picture and mobile terminal
CN105956553B (en) Unlocking method and mobile terminal
CN112287713A (en) Two-dimensional code identification method and device
US9648112B2 (en) Electronic device and method for setting network model
CN105159701A (en) System resetting method and terminal
CN106161951B (en) A kind of focusing method, device and mobile terminal
CN112653612B (en) Message processing method, device and system and message server
CN112417810A (en) Method, device and equipment for confirming content information in display window and storage medium
CN108875349B (en) Verification code generation method and device based on pinyin
CN111078082A (en) Point reading method based on image recognition and electronic equipment
CN116844164A (en) Character recognition method, device and electronic equipment
CN111091531B (en) Click recognition method and electronic equipment
CN113255689B (en) Text line picture identification method, device and equipment
CN110209934A (en) Information-pushing method and relevant apparatus based on micro- Expression Recognition

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171117

WD01 Invention patent application deemed withdrawn after publication