WO2017049507A1 - Barcode recognition method and smart wristband - Google Patents
Barcode recognition method and smart wristband Download PDFInfo
- Publication number
- WO2017049507A1 WO2017049507A1 PCT/CN2015/090443 CN2015090443W WO2017049507A1 WO 2017049507 A1 WO2017049507 A1 WO 2017049507A1 CN 2015090443 W CN2015090443 W CN 2015090443W WO 2017049507 A1 WO2017049507 A1 WO 2017049507A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- target
- barcode
- recognition result
- smart bracelet
- image
- Prior art date
Links
Classifications
-
- A—HUMAN NECESSITIES
- A44—HABERDASHERY; JEWELLERY
- A44C—PERSONAL ADORNMENTS, e.g. JEWELLERY; COINS
- A44C5/00—Bracelets; Wrist-watch straps; Fastenings for bracelets or wrist-watch straps
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
- G06K7/10881—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices constructional details of hand-held scanners
- G06K7/10891—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices constructional details of hand-held scanners the scanner to be worn on a finger or on a wrist
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
- G06K7/10881—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices constructional details of hand-held scanners
- G06K7/1091—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices constructional details of hand-held scanners means to wake up the scanner from a sleep mode, e.g. using an acceleration sensor indicating that the scanner is being picked up by a user
Definitions
- the present invention relates to the field of electronic technologies, and in particular, to a method for identifying a barcode and a smart bracelet.
- the smart bracelet is very convenient to carry, the built-in function expansion is still very small, and it is only used to record data such as exercise and sleep in the daily life of the user, and functions relative to other smart devices. It is relatively simple and cannot meet the individual needs of users. For example: With the rapid development of electronic information technology, many items currently carry barcodes, which is convenient for users to obtain specific information of items by scanning barcodes. ⁇ Because the smart bracelet cannot provide this function, users need to pass the tablet, mobile terminal, etc. It is convenient to carry the terminal for scanning acquisition, which brings inconvenience to the user.
- the technical problem to be solved by the embodiments of the present invention is to provide a method for identifying a barcode and a smart bracelet.
- the smart bracelet can be used to identify the barcode.
- an embodiment of the present invention provides a method for identifying a barcode, including
- the smart bracelet When the smart bracelet receives an operation command to start the identification barcode, the smart bracelet enters the identification barcode mode, and starts the camera to scan;
- the smart bracelet when the camera scans to the image, the smart bracelet performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition;
- the smart bracelet determines that the image has a target barcode that meets a preset condition, the smart bracelet acquires the target barcode;
- the smart bracelet identifies the target barcode, and acquires a target recognition result corresponding to the target barcode; [0013] The smart bracelet outputs the target recognition result.
- the smart bracelet identifies the target barcode
- the target recognition result corresponding to the target barcode includes:
- the smart bracelet converts the target barcode into corresponding target text data according to a preset conversion rule
- the smart bracelet identifies the text data to obtain a target recognition result.
- the smart bracelet identifies the text data, and obtaining the target recognition result includes:
- the smart bracelet acquires a target recognition result corresponding to the target text data according to a correspondence between the preset text data and the recognition result.
- the smart bracelet identifies the target text data, and obtaining the target recognition result includes: [0020] the smart bracelet sends the target text data to a barcode connected to the smart bracelet Explain the server;
- the smart bracelet receives a target recognition result returned by the barcode interpretation server according to the target barcode, wherein the barcode interpretation server is configured to provide a recognition result of the barcode.
- the output of the target recognition result by the smart bracelet includes:
- the smart bracelet voice broadcasts the target recognition result
- the smart bracelet displays the target recognition result
- the smart bracelet transmits the target recognition result to a terminal connected to the smart bracelet, so that the terminal outputs the target recognition result.
- An embodiment of the present invention further provides a smart bracelet, including:
- an activation unit configured to enter an identification barcode mode when receiving an operation instruction for starting the identification barcode
- an image recognition unit configured to: when the camera scans an image, the smart bracelet performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition;
- an acquiring unit when the image recognition unit determines that the image has a target barcode that satisfies a preset condition ⁇
- an identification unit configured to identify the target barcode, and obtain a target recognition result corresponding to the target barcode
- an output unit configured to output the target recognition result.
- the identification unit comprises:
- a conversion subunit configured to convert the target barcode into a corresponding target text data according to a preset conversion rule
- an identification subunit configured to identify the text data, and obtain a target recognition result.
- identification subunit is specifically configured to:
- identification subunit comprises:
- a sending subunit configured to send the target text data to a barcode interpretation server connected to the smart bracelet;
- a receiving subunit configured to receive a target recognition result returned by the barcode interpretation server according to the target barcode, wherein the barcode interpretation server is configured to provide a recognition result of the barcode.
- the output unit comprises:
- a broadcast unit configured to voice broadcast the target recognition result
- a display unit configured to display the target recognition result
- a sending unit configured to send the target recognition result to the terminal connected to the smart bracelet, so that the terminal outputs the target recognition result.
- the present invention also provides a computer storage medium
- the computer storage medium stores a program, and the program execution includes some or all of the steps of the method for identifying a barcode as described above.
- the present invention also provides a smart wristband, comprising: an input device, a memory and a processor, wherein the memory stores a set of program codes, and the processor is configured to call the program code stored in the memory, and is configured to execute the following Operation:
- the processor identifies the target barcode, and the target recognition result corresponding to the target barcode includes:
- the processor identifies the text data, and obtaining the target recognition result includes:
- the processor identifies the target text data, and obtaining the target recognition result includes: [0058] controlling the output device to send the target text data to a barcode interpretation connected to the smart bracelet Server
- processor controlling the output device to output the target recognition result comprises:
- the smart bracelet when the smart bracelet receives the operation instruction for starting the identification barcode, the smart bracelet enters the recognition barcode mode, and starts the camera to scan, when the camera scans to the image, the smart hand The ring performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition.
- the smart bracelet determines that the image has a target barcode that meets a preset condition
- the smart bracelet acquires The target barcode
- the smart bracelet identifies the target barcode
- the smart bracelet outputs the target recognition result, so that the smart bracelet can pass the camera Scan the barcode and identify the barcode to improve your intelligence The intelligence of the bracelet and the convenience of the user.
- FIG. 1 is a schematic flow chart of a first embodiment of a method for identifying a barcode according to an embodiment of the present invention.
- FIG. 2 is a structural diagram of a first embodiment of a smart wristband according to an embodiment of the present invention
- FIG. 3 is a structural diagram of a first embodiment of a smart wristband according to an embodiment of the present invention.
- the main body smart bracelet is implemented as a ring.
- FIG. 1 it is a schematic diagram of a first embodiment of a method for identifying a barcode provided by an embodiment of the present invention.
- a method for identifying a barcode according to an embodiment of the present invention includes the following steps:
- the smart bracelet When the smart bracelet receives an operation command to start the identification barcode, the smart bracelet enters the identification barcode mode, and starts the camera to scan to obtain the scanned image.
- the barcode is a black and white strip having different widths and different reflectances, and is formed according to a certain encoding rule to express an image identifier of a set of digital or alphabetic symbol information. That is, the barcode is a set of parallel line images with different thicknesses and arranged according to certain rules.
- a common bar code consists of black bars and white bars with widely varying reflectances. Barcodes can indicate the country of manufacture, manufacturer, item name, date of manufacture, book classification number, start and end of mail, category, date, etc., and thus in many areas such as item circulation, library management, postal management, banking system, etc. Get a wide range of applications.
- the user may trigger a preset button, screen or gesture of the smart bracelet to generate Start an operation command to identify the barcode.
- the smart bracelet acquires an operation command to start the identification barcode, the smart bracelet enters the recognition barcode mode.
- the smart bracelet when the smart bracelet enters the recognition barcode mode, the smart bracelet activates the camera to scan the image, and then the user can place the barcode-attached article in the scanning area of the camera.
- the smart bracelet can set the scanning period, so that the camera of the smart bracelet scans according to the scanning period. S101.
- the smart bracelet performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition.
- the smart bracelet when the camera scans to the image, the smart bracelet can perform image recognition on the scanned image.
- the barcode is a combination of a black strip and a white strip
- the smart bracelet can adopt the image recognition technology according to the preset strip image information, and the black and white strips of the scanned image are recognized.
- the bar image information may be preset by the sender, or the user may add new bar image information by acquiring the bar image information during use.
- the smart bracelet can also use the image recognition technology to identify the black and white bars of the scanned image according to the preset strip feature information.
- the strip feature information may include feature information of black bars and white bars, color feature information of black bars and white bars, and texture feature information of black bars and white bars.
- the strip feature information may be preset by the bursting personnel, or the user may process the acquired strip image information to obtain the strip feature information, thereby adding new strip feature information. .
- the smart bracelet when the smart bracelet identifies an image formed by combining the preset strip image information or the black strip and the white strip matching the preset strip feature information on the image, The smart bracelet can determine whether the number of black bars and white bars is greater than a preset threshold, such as greater than the value of 6. If the smart bracelet determines that the number of black bars and white bars is greater than a preset threshold, the smart bracelet can determine that the image is satisfied.
- the target barcode for the preset condition S102.
- the smart bracelet acquires the target barcode.
- the smart bracelet identifies the target barcode, and obtains a target recognition result corresponding to the target barcode.
- the smart bracelet can convert the target barcode into corresponding target text data according to a preset conversion rule, wherein the target text data can be a binary character.
- the conversion rule can be 1 for black bars and 0 for white bars.
- the smart bracelet when the smart bracelet acquires the target text data, the smart bracelet can target the text.
- the data is identified, and the target recognition result corresponding to the target text data is obtained.
- the target recognition result includes specific information such as the country of manufacture, the manufacturer, the name of the item, and the date of manufacture.
- the smart bracelet identifies the target text data
- the target recognition result corresponding to the target text data may be: the correspondence between the smart bracelet and the preset text data and the recognition result The relationship, so that the smart bracelet obtains the target recognition result corresponding to the target text text according to the correspondence between the preset text data and the recognition result.
- the smart bracelet identifies the target text data
- the target recognition result corresponding to the target text data may be: the smart bracelet sends the target text data to the smart bracelet.
- the connected barcode interprets the server such that the interpretation server identifies the result based on the target returned by the target barcode.
- the barcode interpretation server is used to provide the recognition result of the barcode.
- the barcode interpretation server can obtain the target recognition result corresponding to the target text data, and send the target recognition result to the smart bracelet, and the smart bracelet receives the target recognition result sent by the barcode interpretation server.
- the smart bracelet can establish a communication connection with the interpretation server, such as establishing a WIFI communication connection, a GPRS communication connection, and the like. S104.
- the smart bracelet outputs the target recognition result.
- the smart bracelet after the smart bracelet acquires the target recognition result, the smart bracelet can play the target recognition result by voice, or the smart bracelet displays the target recognition result through the display screen, or the smart bracelet will target the target.
- the recognition result is sent to the terminal connected to the smart bracelet to cause the terminal to output the target recognition result.
- the smart bracelet when the smart bracelet receives an operation instruction for starting to recognize the barcode, the smart bracelet enters the recognition barcode mode, and starts the camera to scan, when the camera scans to the image, the smart hand The ring performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition.
- the smart bracelet determines that the image has a target barcode that meets a preset condition
- the smart bracelet acquires The target barcode
- the smart bracelet identifies the target barcode
- the smart bracelet outputs the target recognition result, so that the smart bracelet can pass the camera Scan barcodes and identify barcodes to increase the intelligence of the smart bracelet and the convenience of the user.
- FIG. 2 is a structural diagram of a first embodiment of a smart wristband according to an embodiment of the present invention. This invention The smart bracelet described in the embodiment includes:
- the starting unit 100 is configured to enter an identification barcode mode when an operation instruction for starting the identification barcode is received, and start the scanning of the camera.
- the image recognition unit 200 is configured to perform image recognition on the image when the camera scans to the image, and determine whether the image has a target barcode that meets a preset condition.
- the acquiring unit 300 is configured to acquire the target barcode when the image recognition unit determines that the image has a target barcode that meets a preset condition.
- the identifying unit 400 is configured to identify the target barcode, and obtain a target recognition result corresponding to the target barcode.
- the output unit 500 is configured to output the target recognition result.
- identifying unit 400 is specifically configured to:
- the identification unit 400 is further specifically configured to:
- the identification unit 400 is further specifically configured to:
- the output unit is specifically configured to:
- the barcode is a black and white strip with different widths and different reflectances, and is formed according to a certain encoding rule, and is used to express an image identifier of a set of digital or alphabetic symbol information. That is, the barcode is a set of parallel line images with different thicknesses and arranged according to certain rules. Common strip The shape code is composed of black bars and white bars with widely different reflectances. Barcodes can indicate the country of manufacture, manufacturer, item name, date of manufacture, book classification number, start and end of mail, category, date, etc., and thus in many areas such as item circulation, library management, postal management, banking system, etc. Get a wide range of applications.
- the user may trigger a preset button, a screen or a gesture of the smart bracelet to generate an operation instruction for starting the identification barcode.
- the activation unit 100 acquires an operation command to activate the identification barcode, the smart bracelet enters the recognition barcode mode.
- the activation unit 100 activates the camera to scan the image, and then the user can place the barcode-attached article in the scanning area of the camera.
- the smart bracelet can set the scanning period, so that the camera of the starting unit 100 scans according to the scanning period.
- the image recognition unit 200 may perform image recognition on the scanned image.
- the image recognizing unit 200 can perform black strip and white strip recognition on the scanned image according to the preset strip image information by using image recognition technology.
- the bar image information may be preset by the trigger, or the user may add new bar image information by acquiring the bar image information during use.
- the image recognition unit 200 may also use the image recognition technology to identify the black and white stripes of the scanned image according to the preset strip feature information.
- the strip feature information may include feature information of black bars and white bars, color feature information of black bars and white bars, and texture feature information of black bars and white bars.
- the strip feature information may be preset by the bursting personnel, or the user may process the acquired strip image information to obtain the strip feature information, thereby adding new strip feature information.
- the image recognition unit 200 when the image recognition unit 200 recognizes an image formed by combining the preset strip image information or the black strip and the white strip matching the preset strip feature information on the image, The image recognition unit 200 can determine whether the number of black bars and white bars is greater than a preset threshold, such as greater than a value of 6, etc., when the image recognition unit 200 determines that the number of black bars and white bars is greater than a preset threshold, the smart bracelet can determine The image has a target barcode that meets the preset conditions.
- a preset threshold such as greater than a value of 6, etc.
- the identification unit 400 can convert the target barcode into phases according to a preset conversion rule.
- Target text data where the target text data can be binary characters
- the conversion rule can be 1 for black bars and 0 for white bars.
- the recognition unit 400 when the recognition unit 400 acquires the target text data, the recognition unit 400 may identify the target text data, and acquire a target recognition result corresponding to the target text data.
- the target recognition result includes specific information such as the country of manufacture of the article, the manufacturer, the name of the article, and the date of manufacture.
- the identifying unit 400 identifies the target text data, and the target recognition result corresponding to the target text data may be: the identifying unit 400 may preset the correspondence between the text data and the recognition result. The relationship is such that the recognition unit 400 acquires the target recognition result corresponding to the target text text according to the correspondence between the preset text data and the recognition result.
- the identifying unit 400 identifies the target text data, and the target recognition result corresponding to the target text data may be: the identifying unit 400 sends the target text data to the smart bracelet.
- the connected barcode interprets the server such that the interpretation server identifies the result based on the target returned by the target barcode.
- the barcode interpretation server is used to provide the recognition result of the barcode.
- the barcode interpretation server can acquire the target recognition result corresponding to the target text data, and send the target recognition result to the identification unit 400, and the recognition unit 400 receives the target recognition result sent by the barcode interpretation server.
- the smart bracelet can establish a communication connection with the interpretation server, such as establishing a WIFI communication connection, a GPRS communication connection, and the like.
- the output unit 500 may play the target recognition result by voice, or the output unit 500 displays the target recognition result through the display screen, or the output unit 500 targets the target.
- the recognition result is sent to the terminal connected to the smart bracelet to cause the terminal to output the target recognition result.
- the smart bracelet when the smart bracelet receives an operation instruction for starting to recognize the barcode, the smart bracelet enters the recognition barcode mode, and starts the camera to scan, when the camera scans the image, the smart hand The ring performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition.
- the smart bracelet determines that the image has a target barcode that meets a preset condition, the smart bracelet acquires The target barcode, the smart bracelet makes an identification of the target barcode, and obtains a target recognition result corresponding to the target barcode, and the smart bracelet outputs the target identifier.
- the smart bracelet can scan the barcode and identify the barcode through the camera, thereby improving the intelligence of the smart bracelet and the convenience of the user.
- FIG. 3 is a structural diagram of a first embodiment of a smart wristband according to an embodiment of the present invention.
- the smart bracelet described in the embodiment of the present invention includes:
- the processor 201 (the number of the processors 201 in the terminal may be one or more, FIG. 3 is exemplified by one processor), the memory 202, the output device 203, and the input device 204.
- the processor 201 the number of the processors 201 in the terminal may be one or more, FIG. 3 is exemplified by one processor, the memory 202, the output device 203, and the input device 204.
- the processor 201 the number of the processors 201 in the terminal may be one or more, FIG. 3 is exemplified by one processor
- the memory 202 the memory 202
- the output device 203 the output device 203
- the input device 204 the input device 204.
- the memory 202, the output device 203, and the input device 204 can be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
- the processor 201 performs the following steps:
- the processor 201 identifies the target barcode, and the target recognition result corresponding to the target barcode includes:
- processor 201 identifies the text data, and obtaining the target recognition result includes:
- the processor 201 identifies the target text data, and the acquisition target recognition result includes
- the processor 201 controlling the output device 203 to output the target recognition result includes: [0133] controlling the output device 203 to voice report the target recognition result; or
- the smart bracelet when the smart bracelet receives the operation instruction for starting the identification barcode, the smart bracelet enters the recognition barcode mode, and starts the camera to scan, when the camera scans the image ⁇ And the smart bracelet performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition, and when the smart bracelet determines that the image has a target barcode that meets a preset condition, The smart bracelet acquires the target barcode, the smart bracelet identifies the target barcode, acquires a target recognition result corresponding to the target barcode, and the smart bracelet outputs the target recognition result, so that the smart bracelet The barcode can be scanned by the camera and the barcode can be recognized, thereby improving the intelligence of the smart bracelet and the convenience of the user.
- the computer readable medium may include a random access memory (RAM).
- RAM Read-Only Memory
- ROM Read-Only Memory
- EEPROM Electrically Erasable Programmable (Electrically Erasable Programmable) Read-Only Memory
- CD-ROM Compact Disc Read-Only Memory
- Any one connectable may suitably be a computer readable medium.
- the software is using coaxial cable, fiber optic cable, twisted pair, digital subscriber line
- a disk and a disc include a compact disc (CD), a laser disc, a disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable medium.
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
Provided are a barcode recognition method and a smart wristband. The barcode recognition method comprises: when the smart wristband receives an operation command to activate barcode recognition, the smart wristband entering a barcode recognition mode and activating a camera to perform a scan; if the camera scans an image, then the smart wristband performing image recognition on the image and determining whether a target barcode satisfying preset conditions is present (S101); if the smart wristband determines that a target barcode satisfying preset conditions is present, then the smart wristband obtaining the target barcode (S102); the smart wristband recognizing the target barcode and obtaining a target recognition result corresponding to the target barcode (S103); the smart wristband outputting the target recognition result (S104). The smart wristband comprises an activation unit (100), an image recognition unit (200), an obtaining unit (300), a recognition unit (400), and an output unit (500). In the barcode recognition method and smart wristband, the barcode is scanned by means of the camera and the barcode is recognized, thus improving the intelligence of the smart wristband and the convenience for the user.
Description
一种识别条形码的方法及智能手环 Method for identifying barcode and smart bracelet
[0001] 技术领域 [0001] Technical Field
[0002] 本发明涉及电子技术领域, 尤其涉及一种识别条形码的方法及智能手环。 [0002] The present invention relates to the field of electronic technologies, and in particular, to a method for identifying a barcode and a smart bracelet.
[0003] 背景技术 BACKGROUND
[0004] 随着科学的发展, 各种方便携带的穿戴式设备也越来越流行, 如智能眼镜、 智 能手环等穿戴式设备已日渐流行。 这些穿戴设备可内置智能软件, 从而便捷用 户生活, 提高用户体验。 [0004] With the development of science, various portable devices that are convenient to carry are also becoming more and more popular, and wearable devices such as smart glasses and smart bracelets have become increasingly popular. These wearable devices can be built with intelligent software to make it easy for users to live and improve the user experience.
[0005] 伹是, 目前智能手环即使非常方便携带, 伹是其内置的功能扩展仍然非常少, 仅仅是用于记录用户日常生活中的锻炼、 睡眠等数据, 相对于其它智能设备来 说功能比较单一, 无法满足用户的个性化需求。 例如: 随着电子信息化的快速 发展, 目前许多物品都携带条形码, 方便用户通过扫描条形码获取物品的具体 信息, 伹由于智能手环无法提供该功能, 使得用户需通过平板电脑、 移动终端 等不方便携带使用的终端来进行扫描获取, 这给用户带来了不便。 [0005] Therefore, even if the smart bracelet is very convenient to carry, the built-in function expansion is still very small, and it is only used to record data such as exercise and sleep in the daily life of the user, and functions relative to other smart devices. It is relatively simple and cannot meet the individual needs of users. For example: With the rapid development of electronic information technology, many items currently carry barcodes, which is convenient for users to obtain specific information of items by scanning barcodes. 伹Because the smart bracelet cannot provide this function, users need to pass the tablet, mobile terminal, etc. It is convenient to carry the terminal for scanning acquisition, which brings inconvenience to the user.
[0006] 发明内容 SUMMARY OF THE INVENTION
[0007] 本发明实施例所要解决的技术问题在于, 提供一种识别条形码的方法及智能手 环。 可使得智能手环对条形码进行识别。 The technical problem to be solved by the embodiments of the present invention is to provide a method for identifying a barcode and a smart bracelet. The smart bracelet can be used to identify the barcode.
[0008] 为了解决上述技术问题, 本发明实施例提供了一种识别条形码的方法, 包括 [0008] In order to solve the above technical problem, an embodiment of the present invention provides a method for identifying a barcode, including
[0009] 当智能手环接收到启动识别条形码的操作指令吋, 所述智能手环进入识别条形 码模式, 并启动摄像头进行扫描; [0009] When the smart bracelet receives an operation command to start the identification barcode, the smart bracelet enters the identification barcode mode, and starts the camera to scan;
[0010] 当所述摄像头扫描到图像吋, 所述智能手环对所述的图像进行图像识别, 判断 所述图像是否有满足预设条件的目标条形码; [0010] when the camera scans to the image, the smart bracelet performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition;
[0011] 当所述智能手环判断所述图像有满足预设条件的目标条形码吋, 所述智能手环 获取所述目标条形码; [0011] when the smart bracelet determines that the image has a target barcode that meets a preset condition, the smart bracelet acquires the target barcode;
[0012] 所述智能手环对所述目标条形码进行识别, 获取所述目标条形码对应的目标识 别结果;
[0013] 所述智能手环输出所述目标识别结果。 [0012] the smart bracelet identifies the target barcode, and acquires a target recognition result corresponding to the target barcode; [0013] The smart bracelet outputs the target recognition result.
[0014] 其中, 所述智能手环对所述目标条形码进行识别, 获取所述目标条形码对应的 目标识别结果包括: [0014] wherein the smart bracelet identifies the target barcode, and the target recognition result corresponding to the target barcode includes:
[0015] 所述智能手环按预置的转换规则将所述目标条形码转换成相应的目标文本数据 [0015] the smart bracelet converts the target barcode into corresponding target text data according to a preset conversion rule
[0016] 所述智能手环对所述文本数据进行识别, 获取目标识别结果。 [0016] The smart bracelet identifies the text data to obtain a target recognition result.
[0017] 其中, 所述智能手环对所述文本数据进行识别, 获取目标识别结果包括: [0017] wherein the smart bracelet identifies the text data, and obtaining the target recognition result includes:
[0018] 所述智能手环根据预置的文本数据与识别结果的对应关系, 获取所述目标文本 数据所对应的目标识别结果。 [0018] The smart bracelet acquires a target recognition result corresponding to the target text data according to a correspondence between the preset text data and the recognition result.
[0019] 其中, 所述智能手环对所述目标文本数据进行识别, 获取目标识别结果包括: [0020] 所述智能手环将所述目标文本数据发送给与所述智能手环连接的条形码解释服 务器; [0019] wherein the smart bracelet identifies the target text data, and obtaining the target recognition result includes: [0020] the smart bracelet sends the target text data to a barcode connected to the smart bracelet Explain the server;
[0021] 所述智能手环接收所述条形码解释服务器根据所述目标条形码返回的目标识别 结果, 其中, 所述条形码解释服务器用于提供条形码的识别结果。 [0021] The smart bracelet receives a target recognition result returned by the barcode interpretation server according to the target barcode, wherein the barcode interpretation server is configured to provide a recognition result of the barcode.
[0022] 其中, 所述智能手环输出所述目标识别结果包括: [0022] wherein the output of the target recognition result by the smart bracelet includes:
[0023] 所述智能手环语音播报所述目标识别结果; 或者, [0023] the smart bracelet voice broadcasts the target recognition result; or
[0024] 所述智能手环显示所述目标识别结果; 或者, [0024] the smart bracelet displays the target recognition result; or
[0025] 所述智能手环将所述目标识别结果发送给与所述智能手环连接的终端, 以使所 述终端输出所述目标识别结果。 [0025] The smart bracelet transmits the target recognition result to a terminal connected to the smart bracelet, so that the terminal outputs the target recognition result.
[0026] 本发明实施例还提供了一种智能手环, 包括: An embodiment of the present invention further provides a smart bracelet, including:
[0027] 启动单元, 用于当接收到启动识别条形码的操作指令吋, 进入识别条形码模式 [0027] an activation unit, configured to enter an identification barcode mode when receiving an operation instruction for starting the identification barcode
, 并启动摄像头进行扫描; , and start the camera to scan;
[0028] 图像识别单元, 用于当所述摄像头扫描到图像吋, 所述智能手环对所述的图像 进行图像识别, 判断所述图像是否有满足预设条件的目标条形码; [0028] an image recognition unit, configured to: when the camera scans an image, the smart bracelet performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition;
[0029] 获取单元, 当所述图像识别单元判断所述图像有满足预设条件的目标条形码吋 [0029] an acquiring unit, when the image recognition unit determines that the image has a target barcode that satisfies a preset condition吋
, 获取所述目标条形码; Obtaining the target barcode;
[0030] 识别单元, 用于对所述目标条形码进行识别, 获取所述目标条形码对应的目标 识别结果;
[0031] 输出单元, 用于输出所述目标识别结果。 [0030] an identification unit, configured to identify the target barcode, and obtain a target recognition result corresponding to the target barcode; [0031] an output unit, configured to output the target recognition result.
[0032] 其中, 所述识别单元包括: [0032] wherein the identification unit comprises:
[0033] 转换子单元, 用于按预置的转换规则将所述目标条形码转换成相应的目标文本 数据; [0033] a conversion subunit, configured to convert the target barcode into a corresponding target text data according to a preset conversion rule;
[0034] 识别子单元, 用于对所述文本数据进行识别, 获取目标识别结果。 [0034] an identification subunit, configured to identify the text data, and obtain a target recognition result.
[0035] 其中, 所述识别子单元具体用于: [0035] wherein the identification subunit is specifically configured to:
[0036] 根据预置的文本数据与识别结果的对应关系, 获取所述目标文本数据所对应的 目标识别结果。 [0036] acquiring a target recognition result corresponding to the target text data according to a correspondence between the preset text data and the recognition result.
[0037] 其中, 所述识别子单元包括: [0037] wherein the identification subunit comprises:
[0038] 发送子单元, 用于将所述目标文本数据发送给与所述智能手环连接的条形码解 释服务器; [0038] a sending subunit, configured to send the target text data to a barcode interpretation server connected to the smart bracelet;
[0039] 接收子单元, 用于接收所述条形码解释服务器根据所述目标条形码返回的目标 识别结果, 其中, 所述条形码解释服务器用于提供条形码的识别结果。 [0039] a receiving subunit, configured to receive a target recognition result returned by the barcode interpretation server according to the target barcode, wherein the barcode interpretation server is configured to provide a recognition result of the barcode.
[0040] 其中, 所述输出单元包括: [0040] wherein the output unit comprises:
[0041] 播报单元, 用于语音播报所述目标识别结果; [0041] a broadcast unit, configured to voice broadcast the target recognition result;
[0042] 显示单元, 用于显示所述目标识别结果; [0042] a display unit, configured to display the target recognition result;
[0043] 发送单元, 用于将所述目标识别结果发送给与所述智能手环连接的终端, 以使 所述终端输出所述目标识别结果。 And a sending unit, configured to send the target recognition result to the terminal connected to the smart bracelet, so that the terminal outputs the target recognition result.
[0044] 本发明还提供一种计算机存储介质, [0044] The present invention also provides a computer storage medium,
[0045] 所述计算机存储介质存储有程序, 所述程序执行吋包括如上述一种识别条形码 的方法的部分或全部步骤。 [0045] The computer storage medium stores a program, and the program execution includes some or all of the steps of the method for identifying a barcode as described above.
[0046] 本发明还提供一种智能手环, , 包括: 输入装置、 存储器和处理器, 其中, 存 储器中存储一组程序代码, 且处理器用于调用存储器中存储的程序代码, 用于 执行以下操作: The present invention also provides a smart wristband, comprising: an input device, a memory and a processor, wherein the memory stores a set of program codes, and the processor is configured to call the program code stored in the memory, and is configured to execute the following Operation:
[0047] 当所述输入装置接收到启动识别条形码的操作指令吋, 进入识别条形码模式, 并启动摄像头进行扫描; [0047] when the input device receives an operation command to start the identification barcode, enters the recognition barcode mode, and starts the camera to scan;
[0048] 当所述摄像头扫描到图像吋, 对所述的图像进行图像识别, 判断所述图像是否 有满足预设条件的目标条形码;
[0049] 当判断所述图像有满足预设条件的目标条形码吋, 获取所述目标条形码; [0050] 对所述目标条形码进行识别, 获取所述目标条形码对应的目标识别结果; [0051] 控制所述输出装置输出所述目标识别结果。 [0048] when the camera scans to the image, performing image recognition on the image, and determining whether the image has a target barcode that meets a preset condition; [0049] determining that the image has a target barcode that meets a preset condition, and acquiring the target barcode; [0050] identifying the target barcode to obtain a target recognition result corresponding to the target barcode; [0051] The output device outputs the target recognition result.
[0052] 其中, 所述处理器对所述目标条形码进行识别, 获取所述目标条形码对应的目 标识别结果包括: [0052] wherein the processor identifies the target barcode, and the target recognition result corresponding to the target barcode includes:
[0053] 按预置的转换规则将所述目标条形码转换成相应的目标文本数据; [0053] converting the target barcode into corresponding target text data according to a preset conversion rule;
[0054] 对所述文本数据进行识别, 获取目标识别结果。 [0054] identifying the text data to obtain a target recognition result.
[0055] 其中, 所述处理器对所述文本数据进行识别, 获取目标识别结果包括: [0055] wherein the processor identifies the text data, and obtaining the target recognition result includes:
[0056] 根据预置的文本数据与识别结果的对应关系, 获取所述目标文本数据所对应的 目标识别结果。 [0056] acquiring a target recognition result corresponding to the target text data according to a correspondence between the preset text data and the recognition result.
[0057] 其中, 所述处理器对所述目标文本数据进行识别, 获取目标识别结果包括: [0058] 控制所述输出装置将所述目标文本数据发送给与所述智能手环连接的条形码解 释服务器; [0057] wherein the processor identifies the target text data, and obtaining the target recognition result includes: [0058] controlling the output device to send the target text data to a barcode interpretation connected to the smart bracelet Server
[0059] 控制所述输入装置接收所述条形码解释服务器根据所述目标条形码返回的目标 识别结果, 其中, 所述条形码解释服务器用于提供条形码的识别结果。 And [0059] controlling the input device to receive a target recognition result returned by the barcode interpretation server according to the target barcode, wherein the barcode interpretation server is configured to provide a recognition result of the barcode.
[0060] 其中, 所述处理器控制所述输出装置输出所述目标识别结果包括: [0060] wherein the processor controlling the output device to output the target recognition result comprises:
[0061] 控制所述输出装置语音播报所述目标识别结果; 或者, [0061] controlling the output device to voice report the target recognition result; or
[0062] 控制所述输出装置显示所述目标识别结果; 或者, Controlling the output device to display the target recognition result; or
[0063] 控制所述输出装置将所述目标识别结果发送给与所述智能手环连接的终端, 以 使所述终端输出所述目标识别结果。 And [0063] controlling the output device to transmit the target recognition result to the terminal connected to the smart bracelet, so that the terminal outputs the target recognition result.
[0064] 实施本发明实施例, 具有如下有益效果: [0064] Implementing the embodiments of the present invention has the following beneficial effects:
[0065] 本发明实施例当智能手环接收到启动识别条形码的操作指令吋, 所述智能手环 进入识别条形码模式, 并启动摄像头进行扫描, 当所述摄像头扫描到图像吋, 所述智能手环对所述的图像进行图像识别, 判断所述图像是否有满足预设条件 的目标条形码, 当所述智能手环判断所述图像有满足预设条件的目标条形码吋 , 所述智能手环获取所述目标条形码, 所述智能手环对所述目标条形码进行识 另 IJ , 获取所述目标条形码对应的目标识别结果, 所述智能手环输出所述目标识 别结果, 使得智能手环可通过摄像头扫描条形码, 并识别条形码, 从而提高智
能手环的智能性以及用户的便利性。 [0065] In the embodiment of the present invention, when the smart bracelet receives the operation instruction for starting the identification barcode, the smart bracelet enters the recognition barcode mode, and starts the camera to scan, when the camera scans to the image, the smart hand The ring performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition. When the smart bracelet determines that the image has a target barcode that meets a preset condition, the smart bracelet acquires The target barcode, the smart bracelet identifies the target barcode, obtains a target recognition result corresponding to the target barcode, and the smart bracelet outputs the target recognition result, so that the smart bracelet can pass the camera Scan the barcode and identify the barcode to improve your intelligence The intelligence of the bracelet and the convenience of the user.
[0066] 附图说明 BRIEF DESCRIPTION OF THE DRAWINGS
[0067] 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发 明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提 下, 还可以根据这些附图获得其他的附图。 [0067] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only the present drawings. Some embodiments of the invention may be obtained by those of ordinary skill in the art from the drawings without departing from the scope of the invention.
[0068] 图 1是本发明实施例提供的及一种识别条形码的方法的第一实施例流程示意图 1 is a schematic flow chart of a first embodiment of a method for identifying a barcode according to an embodiment of the present invention.
[0069] 图 2是本发明实施例提供的一种智能手环的第一实施例结构图; 2 is a structural diagram of a first embodiment of a smart wristband according to an embodiment of the present invention;
[0070] 图 3是本发明实施例提供的一种智能手环的第一实施例结构图。 3 is a structural diagram of a first embodiment of a smart wristband according to an embodiment of the present invention.
[0071] 具体实施方式 DETAILED DESCRIPTION
[0072] 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部 的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳 动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
[0073] 在本发明实施例中, 执行主体智能手环为环状件。 [0073] In the embodiment of the present invention, the main body smart bracelet is implemented as a ring.
[0074] 参见图 1 , 是本发明实施例提供的及一种识别条形码的方法第一实施例流程示 意图。 本发明实施例的及一种识别条形码的方法包括如下步骤: [0074] Referring to FIG. 1 , it is a schematic diagram of a first embodiment of a method for identifying a barcode provided by an embodiment of the present invention. A method for identifying a barcode according to an embodiment of the present invention includes the following steps:
[0075] 当智能手环接收到启动识别条形码的操作指令吋, 所述智能手环进入识别条形 码模式, 并启动摄像头进行扫描, 获取扫描图像。 [0075] When the smart bracelet receives an operation command to start the identification barcode, the smart bracelet enters the identification barcode mode, and starts the camera to scan to obtain the scanned image.
[0076] 在本发明实施例中, 条形码是由宽度不同、 反射率不同的黑条和白条, 按照一 定的编码规则编制成的, 用以表达一组数字或字母符号信息的图像标识符。 即 条形码是一组粗细不同, 按照一定的规则安排间距的平行线条图像。 常见的条 形码是由反射率相差很大的黑条和白条组成。 条形码可以标出物品的生产国、 制造厂家、 物品名称、 生产日期、 图书分类号、 邮件起止地点、 类别、 日期等 许多信息, 因而在物品流通、 图书管理、 邮政管理、 银行系统等许多领域都得 到广泛的应用。 In the embodiment of the present invention, the barcode is a black and white strip having different widths and different reflectances, and is formed according to a certain encoding rule to express an image identifier of a set of digital or alphabetic symbol information. That is, the barcode is a set of parallel line images with different thicknesses and arranged according to certain rules. A common bar code consists of black bars and white bars with widely varying reflectances. Barcodes can indicate the country of manufacture, manufacturer, item name, date of manufacture, book classification number, start and end of mail, category, date, etc., and thus in many areas such as item circulation, library management, postal management, banking system, etc. Get a wide range of applications.
[0077] 在本发明实施例中, 用户可以触发智能手环的预设按键、 屏幕或者手势等生成
启动识别条形码的操作指令。 当智能手环获取到启动识别条形码的操作指令吋 , 智能手环进入识别条形码模式。 [0077] In the embodiment of the present invention, the user may trigger a preset button, screen or gesture of the smart bracelet to generate Start an operation command to identify the barcode. When the smart bracelet acquires an operation command to start the identification barcode, the smart bracelet enters the recognition barcode mode.
[0078] 在本发明实施例中, 当智能手环进入识别条形码模式吋, 智能手环启动摄像头 进行扫描图像, 此吋, 用户可将附有条形码的物品放置于摄像头的扫描区域内 。 其中, 智能手环可设置扫描周期, 从而智能手环的摄像头根据扫描周期进行 扫描。 S101 , 当所述摄像头扫描到图像吋, 所述智能手环对所述的图像进行图 像识别, 判断所述图像是否有满足预设条件的目标条形码。 In the embodiment of the present invention, when the smart bracelet enters the recognition barcode mode, the smart bracelet activates the camera to scan the image, and then the user can place the barcode-attached article in the scanning area of the camera. The smart bracelet can set the scanning period, so that the camera of the smart bracelet scans according to the scanning period. S101. When the camera scans an image, the smart bracelet performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition.
[0079] 在本发明实施例中, 当摄像头扫描到图像吋, 智能手环可对扫描到的图像进行 图像识别。 其中, 由于条形码是由黑条和白条组合而成的, 智能手环可根据预 置的条形图像信息, 采用图像识别技术, 对扫描到的图像进行黑条和白条的识 另 |J。 其中, 条形图像信息可以由幵发人员进行预置, 或者用户在使用过程中可 以通过获取条形图像信息来添加新的条形图像信息。 进一步的, 智能手环也可 根据预置的条形特征信息, 采用图像识别技术, 对扫描到的图像进行黑条和白 条的识别。 其中, 条形特征信息可以包括黑条和白条的特征信息、 黑条和白条 的颜色特征信息和黑条和白条的纹理特征信息等。 可选的, 条形特征信息可以 由幵发人员进行预置, 或者用户在使用过程中可以通过对获取到的条形图像信 息进行处理, 获得条形特征信息, 从而添加新的条形特征信息。 [0079] In the embodiment of the present invention, when the camera scans to the image, the smart bracelet can perform image recognition on the scanned image. Among them, since the barcode is a combination of a black strip and a white strip, the smart bracelet can adopt the image recognition technology according to the preset strip image information, and the black and white strips of the scanned image are recognized. The bar image information may be preset by the sender, or the user may add new bar image information by acquiring the bar image information during use. Further, the smart bracelet can also use the image recognition technology to identify the black and white bars of the scanned image according to the preset strip feature information. The strip feature information may include feature information of black bars and white bars, color feature information of black bars and white bars, and texture feature information of black bars and white bars. Optionally, the strip feature information may be preset by the bursting personnel, or the user may process the acquired strip image information to obtain the strip feature information, thereby adding new strip feature information. .
[0080] 在本发明实施例中, 当智能手环在图像上识别出与预置的条形图像信息或与预 置的条形特征信息相匹配的黑条和白条组合而成的图像吋, 智能手环可判断黑 条和白条的条数是否大于预置阈值, 如大于数值 6等, 当智能手环判断黑条和白 条的条数大于预置阈值吋, 智能手环可判断图像有满足预设条件的目标条形码 。 S102, 当所述智能手环判断所述图像有满足预设条件的目标条形码吋, 所述 智能手环获取所述目标条形码。 S103, 所述智能手环对所述目标条形码进行识 另 IJ , 获取所述目标条形码对应的目标识别结果。 [0080] In the embodiment of the present invention, when the smart bracelet identifies an image formed by combining the preset strip image information or the black strip and the white strip matching the preset strip feature information on the image, The smart bracelet can determine whether the number of black bars and white bars is greater than a preset threshold, such as greater than the value of 6. If the smart bracelet determines that the number of black bars and white bars is greater than a preset threshold, the smart bracelet can determine that the image is satisfied. The target barcode for the preset condition. S102. When the smart bracelet determines that the image has a target barcode that meets a preset condition, the smart bracelet acquires the target barcode. S103. The smart bracelet identifies the target barcode, and obtains a target recognition result corresponding to the target barcode.
[0081] 在本发明实施例中, 智能手环可按预置的转换规则将目标条形码转换成相应的 目标文本数据, 其中, 目标文本数据可以是二进制的字符 [0081] In the embodiment of the present invention, the smart bracelet can convert the target barcode into corresponding target text data according to a preset conversion rule, wherein the target text data can be a binary character.
串 。 转换规则可以是黑条为 1 , 白条为 0。 String. The conversion rule can be 1 for black bars and 0 for white bars.
[0082] 在本发明实施例中, 当智能手环获取到目标文本数据吋, 智能手环可对目标文
本数据进行识别, 获取目标文本数据相对应的目标识别结果。 其中, 目标识别 结果包括伹不限于物品的生产国、 制造厂家、 物品名称、 生产日期等具体信息 [0082] In the embodiment of the present invention, when the smart bracelet acquires the target text data, the smart bracelet can target the text. The data is identified, and the target recognition result corresponding to the target text data is obtained. The target recognition result includes specific information such as the country of manufacture, the manufacturer, the name of the item, and the date of manufacture.
[0083] 可选的, 在本发明实施例中, 智能手环对目标文本数据进行识别, 获取目标文 本数据相对应的目标识别结果可以是: 智能手环可预置文本数据与识别结果的 对应关系, 从而智能手环根据预置的文本数据与识别结果的对应关系, 获取目 标文本文本所对应的目标识别结果。 [0083] Optionally, in the embodiment of the present invention, the smart bracelet identifies the target text data, and the target recognition result corresponding to the target text data may be: the correspondence between the smart bracelet and the preset text data and the recognition result The relationship, so that the smart bracelet obtains the target recognition result corresponding to the target text text according to the correspondence between the preset text data and the recognition result.
[0084] 可选的, 在本发明实施例中, 智能手环对目标文本数据进行识别, 获取目标文 本数据相对应的目标识别结果可以是: 智能手环将目标文本数据发送给与智能 手环连接的条形码解释服务器, 以使解释服务器根据所述目标条形码返回的目 标识别结果。 其中, 条形码解释服务器用于提供条形码的识别结果。 条形码解 释服务器接收到目标文本数据吋, 条形码解释服务器可获取目标文本数据对应 的目标识别结果, 并将目标识别结果发送给智能手环, 智能手环接收条形码解 释服务器发送的目标识别结果。 其中, 智能手环可与解释服务器建立通信连接 , 如建立 WIFI通信连接, GPRS通信连接等通信连接。 S104, 所述智能手环输 出所述目标识别结果。 [0084] Optionally, in the embodiment of the present invention, the smart bracelet identifies the target text data, and the target recognition result corresponding to the target text data may be: the smart bracelet sends the target text data to the smart bracelet. The connected barcode interprets the server such that the interpretation server identifies the result based on the target returned by the target barcode. Wherein, the barcode interpretation server is used to provide the recognition result of the barcode. After the barcode interpretation server receives the target text data, the barcode interpretation server can obtain the target recognition result corresponding to the target text data, and send the target recognition result to the smart bracelet, and the smart bracelet receives the target recognition result sent by the barcode interpretation server. The smart bracelet can establish a communication connection with the interpretation server, such as establishing a WIFI communication connection, a GPRS communication connection, and the like. S104. The smart bracelet outputs the target recognition result.
[0085] 在本发明实施例中, 当智能手环获取到目标识别结果后, 智能手环可语音播放 目标识别结果, 或者智能手环通过显示屏显示目标识别结果, 或者, 智能手环 将目标识别结果发送给与智能手环连接的终端, 以使终端输出目标识别结果。 [0085] In the embodiment of the present invention, after the smart bracelet acquires the target recognition result, the smart bracelet can play the target recognition result by voice, or the smart bracelet displays the target recognition result through the display screen, or the smart bracelet will target the target. The recognition result is sent to the terminal connected to the smart bracelet to cause the terminal to output the target recognition result.
[0086] 本发明实施例当智能手环接收到启动识别条形码的操作指令吋, 所述智能手环 进入识别条形码模式, 并启动摄像头进行扫描, 当所述摄像头扫描到图像吋, 所述智能手环对所述的图像进行图像识别, 判断所述图像是否有满足预设条件 的目标条形码, 当所述智能手环判断所述图像有满足预设条件的目标条形码吋 , 所述智能手环获取所述目标条形码, 所述智能手环对所述目标条形码进行识 另 IJ , 获取所述目标条形码对应的目标识别结果, 所述智能手环输出所述目标识 别结果, 使得智能手环可通过摄像头扫描条形码, 并识别条形码, 从而提高智 能手环的智能性以及用户的便利性。 [0086] In the embodiment of the present invention, when the smart bracelet receives an operation instruction for starting to recognize the barcode, the smart bracelet enters the recognition barcode mode, and starts the camera to scan, when the camera scans to the image, the smart hand The ring performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition. When the smart bracelet determines that the image has a target barcode that meets a preset condition, the smart bracelet acquires The target barcode, the smart bracelet identifies the target barcode, obtains a target recognition result corresponding to the target barcode, and the smart bracelet outputs the target recognition result, so that the smart bracelet can pass the camera Scan barcodes and identify barcodes to increase the intelligence of the smart bracelet and the convenience of the user.
[0087] 参见图 2, 是本发明实施例提供的一种智能手环的第一实施例结构图。 本发明
实施例中所描述的智能手环, 包括: FIG. 2 is a structural diagram of a first embodiment of a smart wristband according to an embodiment of the present invention. this invention The smart bracelet described in the embodiment includes:
[0088] 启动单元 100, 用于当接收到启动识别条形码的操作指令吋, 进入识别条形码 模式, 并启动摄像头进行扫描。 [0088] The starting unit 100 is configured to enter an identification barcode mode when an operation instruction for starting the identification barcode is received, and start the scanning of the camera.
[0089] 图像识别单元 200, 用于当所述摄像头扫描到图像吋, 所述智能手环对所述的 图像进行图像识别, 判断所述图像是否有满足预设条件的目标条形码。 [0089] The image recognition unit 200 is configured to perform image recognition on the image when the camera scans to the image, and determine whether the image has a target barcode that meets a preset condition.
[0090] 获取单元 300, 当所述图像识别单元判断所述图像有满足预设条件的目标条形 码吋, 获取所述目标条形码。 [0090] The acquiring unit 300 is configured to acquire the target barcode when the image recognition unit determines that the image has a target barcode that meets a preset condition.
[0091] 识别单元 400, 用于对所述目标条形码进行识别, 获取所述目标条形码对应的 目标识别结果。 [0091] The identifying unit 400 is configured to identify the target barcode, and obtain a target recognition result corresponding to the target barcode.
[0092] 输出单元 500, 用于输出所述目标识别结果。 [0092] The output unit 500 is configured to output the target recognition result.
[0093] 其中, 所述识别单元 400具体用于: [0093] wherein the identifying unit 400 is specifically configured to:
[0094] 按预置的转换规则将所述目标条形码转换成相应的目标文本数据; [0094] converting the target barcode into corresponding target text data according to a preset conversion rule;
[0095] 对所述文本数据进行识别, 获取目标识别结果。 [0095] identifying the text data to obtain a target recognition result.
[0096] 所述识别单元 400还具体用于: [0096] The identification unit 400 is further specifically configured to:
[0097] 根据预置的文本数据与识别结果的对应关系, 获取所述目标文本数据所对应的 目标识别结果。 [0097] acquiring a target recognition result corresponding to the target text data according to a correspondence between the preset text data and the recognition result.
[0098] 所述识别单元 400还具体用于: [0098] The identification unit 400 is further specifically configured to:
[0099] 将所述目标文本数据发送给与所述智能手环连接的条形码解释服务器; [0099] transmitting the target text data to a barcode interpretation server connected to the smart bracelet;
[0100] 接收所述条形码解释服务器根据所述目标条形码返回的目标识别结果, 其中, 所述条形码解释服务器用于提供条形码的识别结果。 [0100] receiving a target recognition result returned by the barcode interpretation server according to the target barcode, wherein the barcode interpretation server is configured to provide a recognition result of the barcode.
[0101] 所述输出单元具体用于: [0101] The output unit is specifically configured to:
[0102] 语音播报所述目标识别结果; [0102] voice broadcasting the target recognition result;
[0103] 显示所述目标识别结果; [0103] displaying the target recognition result;
[0104] 将所述目标识别结果发送给与所述智能手环连接的终端, 以使所述终端输出所 述目标识别结果。 And transmitting the target recognition result to the terminal connected to the smart bracelet, so that the terminal outputs the target recognition result.
[0105] 在本发明实施例中, 条形码是由宽度不同、 反射率不同的黑条和白条, 按照一 定的编码规则编制成的, 用以表达一组数字或字母符号信息的图像标识符。 即 条形码是一组粗细不同, 按照一定的规则安排间距的平行线条图像。 常见的条
形码是由反射率相差很大的黑条和白条组成。 条形码可以标出物品的生产国、 制造厂家、 物品名称、 生产日期、 图书分类号、 邮件起止地点、 类别、 日期等 许多信息, 因而在物品流通、 图书管理、 邮政管理、 银行系统等许多领域都得 到广泛的应用。 [0105] In the embodiment of the present invention, the barcode is a black and white strip with different widths and different reflectances, and is formed according to a certain encoding rule, and is used to express an image identifier of a set of digital or alphabetic symbol information. That is, the barcode is a set of parallel line images with different thicknesses and arranged according to certain rules. Common strip The shape code is composed of black bars and white bars with widely different reflectances. Barcodes can indicate the country of manufacture, manufacturer, item name, date of manufacture, book classification number, start and end of mail, category, date, etc., and thus in many areas such as item circulation, library management, postal management, banking system, etc. Get a wide range of applications.
[0106] 在本发明实施例中, 用户可以触发智能手环的预设按键、 屏幕或者手势等生成 启动识别条形码的操作指令。 当启动单元 100获取到启动识别条形码的操作指令 吋, 智能手环进入识别条形码模式。 In the embodiment of the present invention, the user may trigger a preset button, a screen or a gesture of the smart bracelet to generate an operation instruction for starting the identification barcode. When the activation unit 100 acquires an operation command to activate the identification barcode, the smart bracelet enters the recognition barcode mode.
[0107] 在本发明实施例中, 当智能手环进入识别条形码模式吋, 启动单元 100启动摄 像头进行扫描图像, 此吋, 用户可将附有条形码的物品放置于摄像头的扫描区 域内。 其中, 智能手环可设置扫描周期, 从而启动单元 100的摄像头根据扫描周 期进行扫描。 [0107] In the embodiment of the present invention, when the smart bracelet enters the recognition barcode mode, the activation unit 100 activates the camera to scan the image, and then the user can place the barcode-attached article in the scanning area of the camera. Wherein, the smart bracelet can set the scanning period, so that the camera of the starting unit 100 scans according to the scanning period.
[0108] 在本发明实施例中, 当摄像头扫描到图像吋, 图像识别单元 200可对扫描到的 图像进行图像识别。 其中, 由于条形码是由黑条和白条组合而成的, 图像识别 单元 200可根据预置的条形图像信息, 采用图像识别技术, 对扫描到的图像进行 黑条和白条的识别。 其中, 条形图像信息可以由幵发人员进行预置, 或者用户 在使用过程中可以通过获取条形图像信息来添加新的条形图像信息。 进一步的 , 图像识别单元 200也可根据预置的条形特征信息, 采用图像识别技术, 对扫描 到的图像进行黑条和白条的识别。 其中, 条形特征信息可以包括黑条和白条的 特征信息、 黑条和白条的颜色特征信息和黑条和白条的纹理特征信息等。 可选 的, 条形特征信息可以由幵发人员进行预置, 或者用户在使用过程中可以通过 对获取到的条形图像信息进行处理, 获得条形特征信息, 从而添加新的条形特 征信息 [0108] In the embodiment of the present invention, when the camera scans to the image, the image recognition unit 200 may perform image recognition on the scanned image. Wherein, since the barcode is a combination of a black strip and a white strip, the image recognizing unit 200 can perform black strip and white strip recognition on the scanned image according to the preset strip image information by using image recognition technology. The bar image information may be preset by the trigger, or the user may add new bar image information by acquiring the bar image information during use. Further, the image recognition unit 200 may also use the image recognition technology to identify the black and white stripes of the scanned image according to the preset strip feature information. The strip feature information may include feature information of black bars and white bars, color feature information of black bars and white bars, and texture feature information of black bars and white bars. Optionally, the strip feature information may be preset by the bursting personnel, or the user may process the acquired strip image information to obtain the strip feature information, thereby adding new strip feature information.
[0109] 在本发明实施例中, 当图像识别单元 200在图像上识别出与预置的条形图像信 息或与预置的条形特征信息相匹配的黑条和白条组合而成的图像吋, 图像识别 单元 200可判断黑条和白条的条数是否大于预置阈值, 如大于数值 6等, 当图像 识别单元 200判断黑条和白条的条数大于预置阈值吋, 智能手环可判断图像有满 足预设条件的目标条形码。 [0109] In the embodiment of the present invention, when the image recognition unit 200 recognizes an image formed by combining the preset strip image information or the black strip and the white strip matching the preset strip feature information on the image, The image recognition unit 200 can determine whether the number of black bars and white bars is greater than a preset threshold, such as greater than a value of 6, etc., when the image recognition unit 200 determines that the number of black bars and white bars is greater than a preset threshold, the smart bracelet can determine The image has a target barcode that meets the preset conditions.
[0110] 在本发明实施例中, 识别单元 400可按预置的转换规则将目标条形码转换成相
应的目标文本数据, 其中, 目标文本数据可以是二进制的字符 [0110] In the embodiment of the present invention, the identification unit 400 can convert the target barcode into phases according to a preset conversion rule. Target text data, where the target text data can be binary characters
串 。 转换规则可以是黑条为 1 , 白条为 0。 String. The conversion rule can be 1 for black bars and 0 for white bars.
[0111] 在本发明实施例中, 当识别单元 400获取到目标文本数据吋, 识别单元 400可对 目标文本数据进行识别, 获取目标文本数据相对应的目标识别结果。 其中, 目 标识别结果包括伹不限于物品的生产国、 制造厂家、 物品名称、 生产日期等具 体信息。 In the embodiment of the present invention, when the recognition unit 400 acquires the target text data, the recognition unit 400 may identify the target text data, and acquire a target recognition result corresponding to the target text data. Among them, the target recognition result includes specific information such as the country of manufacture of the article, the manufacturer, the name of the article, and the date of manufacture.
[0112] 可选的, 在本发明实施例中, 识别单元 400对目标文本数据进行识别, 获取目 标文本数据相对应的目标识别结果可以是: 识别单元 400可预置文本数据与识别 结果的对应关系, 从而识别单元 400根据预置的文本数据与识别结果的对应关系 , 获取目标文本文本所对应的目标识别结果。 [0112] Optionally, in the embodiment of the present invention, the identifying unit 400 identifies the target text data, and the target recognition result corresponding to the target text data may be: the identifying unit 400 may preset the correspondence between the text data and the recognition result. The relationship is such that the recognition unit 400 acquires the target recognition result corresponding to the target text text according to the correspondence between the preset text data and the recognition result.
[0113] 可选的, 在本发明实施例中, 识别单元 400对目标文本数据进行识别, 获取目 标文本数据相对应的目标识别结果可以是: 识别单元 400将目标文本数据发送给 与智能手环连接的条形码解释服务器, 以使解释服务器根据所述目标条形码返 回的目标识别结果。 其中, 条形码解释服务器用于提供条形码的识别结果。 条 形码解释服务器接收到目标文本数据吋, 条形码解释服务器可获取目标文本数 据对应的目标识别结果, 并将目标识别结果发送给识别单元 400, 识别单元 400 接收条形码解释服务器发送的目标识别结果。 其中, 智能手环可与解释服务器 建立通信连接, 如建立 WIFI通信连接, GPRS通信连接等通信连接。 [0113] Optionally, in the embodiment of the present invention, the identifying unit 400 identifies the target text data, and the target recognition result corresponding to the target text data may be: the identifying unit 400 sends the target text data to the smart bracelet. The connected barcode interprets the server such that the interpretation server identifies the result based on the target returned by the target barcode. Wherein, the barcode interpretation server is used to provide the recognition result of the barcode. After the barcode interpretation server receives the target text data, the barcode interpretation server can acquire the target recognition result corresponding to the target text data, and send the target recognition result to the identification unit 400, and the recognition unit 400 receives the target recognition result sent by the barcode interpretation server. The smart bracelet can establish a communication connection with the interpretation server, such as establishing a WIFI communication connection, a GPRS communication connection, and the like.
[0114] 在本发明实施例中, 当识别单元 400获取到目标识别结果后, 输出单元 500可语 音播放目标识别结果, 或者输出单元 500通过显示屏显示目标识别结果, 或者, 输出单元 500将目标识别结果发送给与智能手环连接的终端, 以使终端输出目标 识别结果。 [0114] In the embodiment of the present invention, after the recognition unit 400 acquires the target recognition result, the output unit 500 may play the target recognition result by voice, or the output unit 500 displays the target recognition result through the display screen, or the output unit 500 targets the target. The recognition result is sent to the terminal connected to the smart bracelet to cause the terminal to output the target recognition result.
[0115] 本发明实施例当智能手环接收到启动识别条形码的操作指令吋, 所述智能手环 进入识别条形码模式, 并启动摄像头进行扫描, 当所述摄像头扫描到图像吋, 所述智能手环对所述的图像进行图像识别, 判断所述图像是否有满足预设条件 的目标条形码, 当所述智能手环判断所述图像有满足预设条件的目标条形码吋 , 所述智能手环获取所述目标条形码, 所述智能手环对所述目标条形码进行识 另 |J , 获取所述目标条形码对应的目标识别结果, 所述智能手环输出所述目标识
别结果, 使得智能手环可通过摄像头扫描条形码, 并识别条形码, 从而提高智 能手环的智能性以及用户的便利性。 [0115] In the embodiment of the present invention, when the smart bracelet receives an operation instruction for starting to recognize the barcode, the smart bracelet enters the recognition barcode mode, and starts the camera to scan, when the camera scans the image, the smart hand The ring performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition. When the smart bracelet determines that the image has a target barcode that meets a preset condition, the smart bracelet acquires The target barcode, the smart bracelet makes an identification of the target barcode, and obtains a target recognition result corresponding to the target barcode, and the smart bracelet outputs the target identifier. In addition, the smart bracelet can scan the barcode and identify the barcode through the camera, thereby improving the intelligence of the smart bracelet and the convenience of the user.
[0116] 参见图 3, 是本发明实施例提供的一种智能手环的第一实施例结构图。 本发明 实施例中所描述的智能手环, 包括: [0116] FIG. 3 is a structural diagram of a first embodiment of a smart wristband according to an embodiment of the present invention. The smart bracelet described in the embodiment of the present invention includes:
[0117] 处理器 201 (终端中的处理器 201的数量可以一个或多个, 图 3以一个处理器为 例) 、 存储器 202、 输出装置 203和输入装置 204。 在本发明的实施例中, 处理器[0117] The processor 201 (the number of the processors 201 in the terminal may be one or more, FIG. 3 is exemplified by one processor), the memory 202, the output device 203, and the input device 204. In an embodiment of the invention, the processor
201、 存储器 202、 输出装置 203和输入装置 204可通过总线或其它方式连接, 其 中, 图 3中以通过总线连接为例。 201. The memory 202, the output device 203, and the input device 204 can be connected by a bus or other means, wherein the bus connection is taken as an example in FIG.
[0118] 其中, 处理器 201执行如下步骤: [0118] The processor 201 performs the following steps:
[0119] 当所述输入装置 203接收到启动识别条形码的操作指令吋, 进入识别条形码模 式, 并启动摄像头进行扫描; [0119] when the input device 203 receives an operation command to start the identification barcode, enters the identification barcode mode, and starts the camera to scan;
[0120] 当所述摄像头扫描到图像吋, 对所述的图像进行图像识别, 判断所述图像是否 有满足预设条件的目标条形码; [0120] when the camera scans to the image, performing image recognition on the image, and determining whether the image has a target barcode that meets a preset condition;
[0121] 当判断所述图像有满足预设条件的目标条形码吋, 获取所述目标条形码; [0122] 对所述目标条形码进行识别, 获取所述目标条形码对应的目标识别结果; [0123] 控制所述输出装置 203输出所述目标识别结果。 [0121] when it is determined that the image has a target barcode 满足 that meets a preset condition, acquiring the target barcode; [0122] identifying the target barcode, and acquiring a target recognition result corresponding to the target barcode; [0123] The output device 203 outputs the target recognition result.
[0124] 其中, 所述处理器 201对所述目标条形码进行识别, 获取所述目标条形码对应 的目标识别结果包括: [0124] The processor 201 identifies the target barcode, and the target recognition result corresponding to the target barcode includes:
[0125] 按预置的转换规则将所述目标条形码转换成相应的目标文本数据; [0125] converting the target barcode into corresponding target text data according to a preset conversion rule;
[0126] 对所述文本数据进行识别, 获取目标识别结果。 [0126] identifying the text data to obtain a target recognition result.
[0127] 其中, 所述处理器 201对所述文本数据进行识别, 获取目标识别结果包括: [0127] wherein the processor 201 identifies the text data, and obtaining the target recognition result includes:
[0128] 根据预置的文本数据与识别结果的对应关系, 获取所述目标文本数据所对应的 目标识别结果。 [0128] acquiring a target recognition result corresponding to the target text data according to a correspondence between the preset text data and the recognition result.
[0129] 其中, 所述处理器 201对所述目标文本数据进行识别, 获取目标识别结果包括 [0129] wherein the processor 201 identifies the target text data, and the acquisition target recognition result includes
[0130] 控制所述输出装置 203将所述目标文本数据发送给与所述智能手环连接的条形 码解释服务器; [0130] controlling the output device 203 to send the target text data to a barcode interpretation server connected to the smart bracelet;
[0131] 控制所述输入装置 204接收所述条形码解释服务器根据所述目标条形码返回的
目标识别结果, 其中, 所述条形码解释服务器用于提供条形码的识别结果。 [0131] controlling the input device 204 to receive the bar code interpretation server returning according to the target barcode a target recognition result, wherein the barcode interpretation server is configured to provide a recognition result of the barcode.
[0132] 其中, 所述处理器 201控制所述输出装置 203输出所述目标识别结果包括: [0133] 控制所述输出装置 203语音播报所述目标识别结果; 或者, [0132] The processor 201 controlling the output device 203 to output the target recognition result includes: [0133] controlling the output device 203 to voice report the target recognition result; or
[0134] 控制所述输出装置 203显示所述目标识别结果; 或者, [0134] controlling the output device 203 to display the target recognition result; or
[0135] 控制所述输出装置 203将所述目标识别结果发送给与所述智能手环连接的终端 [0135] controlling the output device 203 to transmit the target recognition result to the terminal connected to the smart bracelet
, 以使所述终端输出所述目标识别结果。 And causing the terminal to output the target recognition result.
[0136] 可以理解的是, 本实施例的智能手环的各功能模块的功能可根据上述方法实施 例中的方法具体实现, 其具体实现过程可以参照上述方法实施例的相关描述, 此处不再进行赘述。 [0136] It can be understood that the functions of the functional modules of the smart bracelet of the embodiment may be specifically implemented according to the method in the foregoing method embodiment. For the specific implementation process, reference may be made to the related description of the foregoing method embodiment, where Repeatedly.
[0137] 因此, 在本发明实施例中, 当智能手环接收到启动识别条形码的操作指令吋, 所述智能手环进入识别条形码模式, 并启动摄像头进行扫描, 当所述摄像头扫 描到图像吋, 所述智能手环对所述的图像进行图像识别, 判断所述图像是否有 满足预设条件的目标条形码, 当所述智能手环判断所述图像有满足预设条件的 目标条形码吋, 所述智能手环获取所述目标条形码, 所述智能手环对所述目标 条形码进行识别, 获取所述目标条形码对应的目标识别结果, 所述智能手环输 出所述目标识别结果, 使得智能手环可通过摄像头扫描条形码, 并识别条形码 , 从而提高智能手环的智能性以及用户的便利性。 [0137] Therefore, in the embodiment of the present invention, when the smart bracelet receives the operation instruction for starting the identification barcode, the smart bracelet enters the recognition barcode mode, and starts the camera to scan, when the camera scans the image吋And the smart bracelet performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition, and when the smart bracelet determines that the image has a target barcode that meets a preset condition, The smart bracelet acquires the target barcode, the smart bracelet identifies the target barcode, acquires a target recognition result corresponding to the target barcode, and the smart bracelet outputs the target recognition result, so that the smart bracelet The barcode can be scanned by the camera and the barcode can be recognized, thereby improving the intelligence of the smart bracelet and the convenience of the user.
[0138] 需要说明的是, 对于前述的各方法实施例, 为了简单描述, 故将其都表述为一 系列的动作组合, 伹是本领域技术人员应该知悉, 本发明并不受所描述的动作 顺序的限制, 因为根据本发明, 某些步骤可以采用其他顺序或者同吋进行。 其 次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属于优选实施例 , 所涉及的动作和模块并不一定是本发明所必须的。 [0138] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, and those skilled in the art should know that the present invention is not subject to the described actions. The order is limited because certain steps may be performed in other orders or in the same manner in accordance with the present invention. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0139] 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有详述 的部分, 可以参见其他实施例的相关描述。 [0139] In the foregoing embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed in an embodiment may refer to related descriptions of other embodiments.
[0140] 本发明实施例方法中的步骤可以根据实际需要进行顺序调整、 合并和刪减。 [0140] The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
[0141] 本发明实施例装置中的单元可以根据实际需要进行合并、 划分和刪减。 本领域 的技术人员可以将本说明书中描述的不同实施例以及不同实施例的特征进行结 合或组合。
[0142] 通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本发明可 以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件实现吋, 可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多 个指令或代码进行传输。 计算机可读介质包括计算机存储介质和通信介质, 其 中通信介质包括便于从一个地方向另一个地方传送计算机程序的任 1可介质。 存 储介质可以是计算机能够存取的任 1可可用介质。 以此为例伹不限于: 计算机可 读介质可以包括随机存取存储器 (Random Access Memory, RAM). 只读存储器 (Read-Only Memory, ROM). 电可擦可编程只读存储器 (Electrically Erasable Programmable Read-Only Memory, EEPROM)、 只读光盘 (Compact Disc Read-Only Memory, CD-ROM)或其他光盘存储、 磁盘存储介质或者其他磁存 储设备、 或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码 并能够由计算机存取的任 1可其他介质。 此外。 任 1可连接可以适当的成为计算机 可读介质。 例如, 如果软件是使用同轴电缆、 光纤光缆、 双绞线、 数字用户线[0141] The units in the apparatus of the embodiment of the present invention may be combined, divided, and deleted according to actual needs. Those skilled in the art can combine or combine the different embodiments described in the specification and the features of the different embodiments. [0142] Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented in hardware, firmware implementation, or a combination thereof. When implemented in software, the functions described above may be stored in or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media, including communication media including any medium that facilitates transfer of a computer program from one location to another. The storage medium can be any of the available media that the computer can access. For example, the computer readable medium may include a random access memory (RAM). Read-Only Memory (ROM). Electrically Erasable Programmable (Electrically Erasable Programmable) Read-Only Memory, EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, disk storage media or other magnetic storage devices, or capable of carrying or storing instructions or data structures The desired program code and any other medium that can be accessed by the computer. Also. Any one connectable may suitably be a computer readable medium. For example, if the software is using coaxial cable, fiber optic cable, twisted pair, digital subscriber line
(Digital Subscriber Line, DSL) 或者诸如红外线、 无线电和微波之类的无线技 术从网站、 服务器或者其他远程源传输的, 那么同轴电缆、 光纤光缆、 双绞线 、 DSL或者诸如红外线、 无线和微波之类的无线技术包括在所属介质的定影中 。 如本发明所使用的, 盘 (Disk) 和碟 (disc) 包括压缩光碟 (CD) 、 激光碟 、 光碟、 数字通用光碟 (DVD) 、 软盘和蓝光光碟, 其中盘通常磁性的复制数 据, 而碟则用激光来光学的复制数据。 上面的组合也应当包括在计算机可读介 质的保护范围之内。 (Digital Subscriber Line, DSL) or wireless technology such as infrared, radio and microwave transmission from a website, server or other remote source, then coaxial cable, fiber optic cable, twisted pair, DSL or such as infrared, wireless and microwave Wireless technologies such as those included in the fixing of the associated medium. As used in the present invention, a disk and a disc include a compact disc (CD), a laser disc, a disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable medium.
[0143] 总之, 以上所述仅为本发明技术方案的较佳实施例而已, 并非用于限定本发 明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 In summary, the above description is only a preferred embodiment of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
[0144] [0144]
技术问题 technical problem
问题的解决方案 Problem solution
发明的有益效果
Advantageous effects of the invention
Claims
[权利要求 1] 一种识别条形码的方法, 其特征在于, 所述方法包括 [Claim 1] A method of identifying a barcode, the method comprising
当智能手环接收到启动识别条形码的操作指令吋, 所述智能手环进入 识别条形码模式, 并启动摄像头进行扫描; When the smart bracelet receives an operation command to start the identification barcode, the smart bracelet enters the recognition barcode mode, and starts the camera to scan;
当所述摄像头扫描到图像吋, 所述智能手环对所述的图像进行图像识 另 |J, 判断所述图像是否有满足预设条件的目标条形码; When the camera scans to the image, the smart bracelet performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition;
当所述智能手环判断所述图像有满足预设条件的目标条形码吋, 所述 智能手环获取所述目标条形码; When the smart bracelet determines that the image has a target barcode that meets a preset condition, the smart bracelet acquires the target barcode;
所述智能手环对所述目标条形码进行识别, 获取所述目标条形码对应 的目标识别结果; The smart bracelet identifies the target barcode, and obtains a target recognition result corresponding to the target barcode;
所述智能手环输出所述目标识别结果。 The smart bracelet outputs the target recognition result.
[权利要求 2] 如权利要求 1所述的方法, 其特征在于, 所述智能手环对所述目标条 形码进行识别, 获取所述目标条形码对应的目标识别结果包括: 所述智能手环按预置的转换规则将所述目标条形码转换成相应的目标 文本数据; [Claim 2] The method according to claim 1, wherein the smart bracelet identifies the target barcode, and the target recognition result corresponding to the target barcode comprises: the smart bracelet pressing a conversion rule to convert the target barcode into corresponding target text data;
所述智能手环对所述文本数据进行识别, 获取目标识别结果。 The smart bracelet identifies the text data to obtain a target recognition result.
[权利要求 3] 如权利要求 2所述的方法, 其特征在于, 所述智能手环对所述文本数 据进行识别, 获取目标识别结果包括: [Claim 3] The method according to claim 2, wherein the smart bracelet identifies the text data, and obtaining the target recognition result includes:
所述智能手环根据预置的文本数据与识别结果的对应关系, 获取所述 目标文本数据所对应的目标识别结果。 The smart bracelet acquires a target recognition result corresponding to the target text data according to a correspondence between the preset text data and the recognition result.
[权利要求 4] 如权利要求 2所述的方法, 其特征在于, 所述智能手环对所述目标文 本数据进行识别, 获取目标识别结果包括: [Claim 4] The method according to claim 2, wherein the smart bracelet identifies the target text data, and obtaining the target recognition result includes:
所述智能手环将所述目标文本数据发送给与所述智能手环连接的条形 码解释服务器; The smart bracelet sends the target text data to a barcode interpretation server connected to the smart bracelet;
所述智能手环接收所述条形码解释服务器根据所述目标条形码返回的
目标识别结果, 其中, 所述条形码解释服务器用于提供条形码的识别 Receiving the smart bracelet by the barcode interpretation server according to the target barcode Target recognition result, wherein the barcode interpretation server is configured to provide identification of a barcode
[权利要求 5] 如权利要求 1所述的方法, 其特征在于, 所述智能手环输出所述目标 识别结果包括: [Claim 5] The method according to claim 1, wherein the output of the target recognition result by the smart bracelet comprises:
所述智能手环语音播报所述目标识别结果; 或者, 所述智能手环显示所述目标识别结果; 或者, The smart bracelet voices the target recognition result; or the smart bracelet displays the target recognition result; or
所述智能手环将所述目标识别结果发送给与所述智能手环连接的终端 , 以使所述终端输出所述目标识别结果。 The smart bracelet transmits the target recognition result to a terminal connected to the smart bracelet, so that the terminal outputs the target recognition result.
[权利要求 6] —种智能手环, 其特征在于, 所述智能手环包括 [Claim 6] A smart bracelet, wherein the smart bracelet includes
启动单元, 用于当接收到启动识别条形码的操作指令吋, 进入识别条 形码模式, 并启动摄像头进行扫描; The startup unit is configured to enter an identification barcode mode when an operation instruction for starting the identification barcode is received, and start the camera to scan;
图像识别单元, 用于当所述摄像头扫描到图像吋, 所述智能手环对所 述的图像进行图像识别, 判断所述图像是否有满足预设条件的目标条 形码; An image recognition unit, configured to: when the camera scans an image, the smart bracelet performs image recognition on the image, and determines whether the image has a target barcode that meets a preset condition;
获取单元, 当所述图像识别单元判断所述图像有满足预设条件的目标 条形码吋, 获取所述目标条形码; An acquiring unit, when the image recognition unit determines that the image has a target barcode that meets a preset condition, acquiring the target barcode;
识别单元, 用于对所述目标条形码进行识别, 获取所述目标条形码对 应的目标识别结果; An identification unit, configured to identify the target barcode, and obtain a target recognition result corresponding to the target barcode;
输出单元, 用于输出所述目标识别结果。 And an output unit, configured to output the target recognition result.
[权利要求 7] 如权利要求 6所述的智能手环, 其特征在于, 所述识别单元包括: 转换子单元, 用于按预置的转换规则将所述目标条形码转换成相应的 目标文本数据; [Claim 7] The smart bracelet according to claim 6, wherein the identification unit comprises: a conversion subunit, configured to convert the target barcode into a corresponding target text data according to a preset conversion rule ;
识别子单元, 用于对所述文本数据进行识别, 获取目标识别结果。 The identification subunit is configured to identify the text data to obtain a target recognition result.
[权利要求 8] 如权利要求 7所述的智能手环, 其特征在于, 所述识别子单元具体用
于: [Claim 8] The smart bracelet according to claim 7, wherein the identification subunit is specifically used In:
根据预置的文本数据与识别结果的对应关系, 获取所述目标文本数据 所对应的目标识别结果。 Obtaining a target recognition result corresponding to the target text data according to a correspondence between the preset text data and the recognition result.
[权利要求 9] 如权利要求 7所述的智能手环, 其特征在于, 所述识别子单元包括: 发送子单元, 用于将所述目标文本数据发送给与所述智能手环连接的 条形码解释服务器; [Claim 9] The smart bracelet according to claim 7, wherein the identification subunit comprises: a sending subunit, configured to send the target text data to a barcode connected to the smart bracelet Explain the server;
接收子单元, 用于接收所述条形码解释服务器根据所述目标条形码返 回的目标识别结果, 其中, 所述条形码解释服务器用于提供条形码的 识别结果。 And a receiving subunit, configured to receive a target recognition result returned by the barcode interpretation server according to the target barcode, wherein the barcode interpretation server is configured to provide a recognition result of the barcode.
[权利要求 10] 如权利要求 6所述的智能手环, 其特征在于, 所述输出单元包括: 播报单元, 用于语音播报所述目标识别结果; [Claim 10] The smart bracelet according to claim 6, wherein the output unit comprises: a broadcast unit, configured to voice broadcast the target recognition result;
显示单元, 用于显示所述目标识别结果; a display unit, configured to display the target recognition result;
发送单元, 用于将所述目标识别结果发送给与所述智能手环连接的终 端, 以使所述终端输出所述目标识别结果。 And a sending unit, configured to send the target recognition result to a terminal connected to the smart bracelet, so that the terminal outputs the target recognition result.
[权利要求 11] 一种计算机存储介质, 其特征在于, 所述计算机存储介质可存储有程 序, 该程序执行吋包括如权利要求 1至 5任一项所述的步骤。 [Claim 11] A computer storage medium, wherein the computer storage medium is storable with a program, the program execution comprising the steps of any one of claims 1 to 5.
[权利要求 12] —种智能手环, 其特征在于, 包括: 输入装置、 输出装置、 存储器和 处理器, 其中, 存储器中存储一组程序代码, 且处理器用于调用存储 器中存储的程序代码, 用于执行以下操作: [Claim 12] A smart wristband, comprising: an input device, an output device, a memory, and a processor, wherein the memory stores a set of program codes, and the processor is configured to call the program code stored in the memory, Used to do the following:
当所述输入装置接收到启动识别条形码的操作指令吋, 进入识别条形 码模式, 并启动摄像头进行扫描; When the input device receives the operation instruction to start the identification barcode, enters the identification bar code mode, and starts the camera to scan;
当所述摄像头扫描到图像吋, 对所述的图像进行图像识别, 判断所述 图像是否有满足预设条件的目标条形码; When the camera scans to the image, performing image recognition on the image, and determining whether the image has a target barcode that meets a preset condition;
当判断所述图像有满足预设条件的目标条形码吋, 获取所述目标条形
码; When it is determined that the image has a target barcode 满足 that satisfies a preset condition, acquiring the target strip code;
对所述目标条形码进行识别, 获取所述目标条形码对应的目标识别结 果; Identifying the target barcode to obtain a target recognition result corresponding to the target barcode;
控制所述输出装置输出所述目标识别结果。 The output device is controlled to output the target recognition result.
[权利要求 13] 如权利要求 12所述的智能手环, 其特征在于, 所述处理器对所述目标 条形码进行识别, 获取所述目标条形码对应的目标识别结果包括: 按预置的转换规则将所述目标条形码转换成相应的目标文本数据; 对所述文本数据进行识别, 获取目标识别结果。 [Claim 13] The smart bracelet according to claim 12, wherein the processor identifies the target barcode, and the target recognition result corresponding to the target barcode comprises: a preset conversion rule Converting the target barcode into corresponding target text data; identifying the text data to obtain a target recognition result.
[权利要求 14] 如权利要求 13所述的智能手环, 其特征在于, 所述处理器对所述文本 数据进行识别, 获取目标识别结果具体用于: [Claim 14] The smart bracelet according to claim 13, wherein the processor identifies the text data, and the target recognition result is specifically used for:
根据预置的文本数据与识别结果的对应关系, 获取所述目标文本数据 所对应的目标识别结果。 Obtaining a target recognition result corresponding to the target text data according to a correspondence between the preset text data and the recognition result.
[权利要求 15] 如权利要求 13所述的智能手环, 其特征在于, 所述处理器对所述目标 文本数据进行识别, 获取目标识别结果包括: [Claim 15] The smart bracelet according to claim 13, wherein the processor identifies the target text data, and obtaining the target recognition result includes:
控制所述输出装置将所述目标文本数据发送给与所述智能手环连接的 条形码解释服务器; Controlling the output device to send the target text data to a barcode interpretation server connected to the smart bracelet;
控制所述输入装置接收所述条形码解释服务器根据所述目标条形码返 回的目标识别结果, 其中, 所述条形码解释服务器用于提供条形码的 识别结果。 The input device is controlled to receive a target recognition result returned by the barcode interpretation server according to the target barcode, wherein the barcode interpretation server is configured to provide a recognition result of the barcode.
[权利要求 16] 如权利要求 12所述的方法, 其特征在于, 所述处理器控制所述输出装 置输出所述目标识别结果包括: [Claim 16] The method of claim 12, wherein the controlling the output device to output the target recognition result by the processor comprises:
控制所述输出装置语音播报所述目标识别结果; 或者, Controlling, by the output device, voice broadcast of the target recognition result; or
控制所述输出装置显示所述目标识别结果; 或者, 控制所述输出装置将所述目标识别结果发送给与所述智能手环连接的
终端, 以使所述终端输出所述目标识别结果。
Controlling the output device to display the target recognition result; or controlling the output device to send the target recognition result to the smart bracelet a terminal, so that the terminal outputs the target recognition result.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/090443 WO2017049507A1 (en) | 2015-09-23 | 2015-09-23 | Barcode recognition method and smart wristband |
CN201580002067.1A CN105765604A (en) | 2015-09-23 | 2015-09-23 | Method of recognizing bar code and intelligent wrist ring |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/090443 WO2017049507A1 (en) | 2015-09-23 | 2015-09-23 | Barcode recognition method and smart wristband |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017049507A1 true WO2017049507A1 (en) | 2017-03-30 |
Family
ID=56343044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/090443 WO2017049507A1 (en) | 2015-09-23 | 2015-09-23 | Barcode recognition method and smart wristband |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105765604A (en) |
WO (1) | WO2017049507A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11763126B2 (en) | 2021-09-08 | 2023-09-19 | Apple Inc. | Electronic devices with optical identification sensor |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106886736A (en) * | 2017-03-26 | 2017-06-23 | 王金锁 | Finger ring scanner |
CN109993152B (en) * | 2019-04-15 | 2021-03-09 | 武汉轻工大学 | Mode conversion method, device, storage medium and device for coordinate curve integral |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104143105A (en) * | 2013-09-22 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Graph recognition method, device and system and terminal device |
CN104200185A (en) * | 2014-08-04 | 2014-12-10 | 惠州Tcl移动通信有限公司 | Method for identifying two-dimensional code and terminal |
CN104508689A (en) * | 2014-04-29 | 2015-04-08 | 华为终端有限公司 | A two-dimension code processing method and a terminal |
US20150178540A1 (en) * | 2004-03-17 | 2015-06-25 | Socket Mobile, Inc. | Host feedback of scan status for scanners wielded by hand |
CN104881770A (en) * | 2015-06-03 | 2015-09-02 | 秦志勇 | Express bill information identification system and express bill information identification method |
CN204631885U (en) * | 2015-05-20 | 2015-09-09 | 深圳深若科技有限公司 | A kind of wearable radio scan device |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7128266B2 (en) * | 2003-11-13 | 2006-10-31 | Metrologic Instruments. Inc. | Hand-supportable digital imaging-based bar code symbol reader supporting narrow-area and wide-area modes of illumination and image capture |
WO2008070634A1 (en) * | 2006-12-03 | 2008-06-12 | Socket Mobile, Inc | Multi-mode ring scanner |
CN102236788B (en) * | 2010-04-20 | 2015-09-02 | 荣科科技股份有限公司 | Power meter automatic distinguishing method for image |
CN101964044B (en) * | 2010-09-10 | 2013-03-13 | 我查查信息技术(上海)有限公司 | Method and device for acquiring bar code from browser of mobile phone |
CN103020177B (en) * | 2012-11-28 | 2016-09-28 | 上海合合信息科技发展有限公司 | Automatically the method and device of the page in papery notebook is searched |
CN203520410U (en) * | 2013-08-27 | 2014-04-02 | 黎玉群 | Bracelet with two-dimensional code reader |
CN103714327B (en) * | 2013-12-30 | 2017-02-01 | 上海合合信息科技发展有限公司 | Method and system for correcting image direction |
CN104217189B (en) * | 2014-08-25 | 2017-05-03 | 苏州百慧华业精密仪器有限公司 | Self-learning identification method of barcode used for test strip |
-
2015
- 2015-09-23 CN CN201580002067.1A patent/CN105765604A/en active Pending
- 2015-09-23 WO PCT/CN2015/090443 patent/WO2017049507A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150178540A1 (en) * | 2004-03-17 | 2015-06-25 | Socket Mobile, Inc. | Host feedback of scan status for scanners wielded by hand |
CN104143105A (en) * | 2013-09-22 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Graph recognition method, device and system and terminal device |
CN104508689A (en) * | 2014-04-29 | 2015-04-08 | 华为终端有限公司 | A two-dimension code processing method and a terminal |
CN104200185A (en) * | 2014-08-04 | 2014-12-10 | 惠州Tcl移动通信有限公司 | Method for identifying two-dimensional code and terminal |
CN204631885U (en) * | 2015-05-20 | 2015-09-09 | 深圳深若科技有限公司 | A kind of wearable radio scan device |
CN104881770A (en) * | 2015-06-03 | 2015-09-02 | 秦志勇 | Express bill information identification system and express bill information identification method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11763126B2 (en) | 2021-09-08 | 2023-09-19 | Apple Inc. | Electronic devices with optical identification sensor |
US12033018B2 (en) | 2021-09-08 | 2024-07-09 | Apple Inc. | Electronic devices with optical identification sensor |
Also Published As
Publication number | Publication date |
---|---|
CN105765604A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101440766B1 (en) | Method for virtual image delivery service using printed matter | |
KR102275720B1 (en) | Bluetooth communication method and bluetooth communication device | |
CN110572305A (en) | Smart home equipment binding method and system, smart home equipment and mobile terminal | |
JP2020521218A (en) | Information scan identification system, method and scan terminal | |
CN108564359B (en) | Data processing method, terminal equipment and data processing system | |
CN111276123A (en) | Method and device for voice broadcasting message, computer equipment and storage medium | |
WO2014180433A1 (en) | Simple data processing method and device | |
CN111050307A (en) | Method, system and computer readable storage medium for realizing Bluetooth connection based on two-dimensional bar code | |
KR20190016671A (en) | Communication device, server and communication method thereof | |
WO2017049507A1 (en) | Barcode recognition method and smart wristband | |
CN104065742A (en) | Picking-up person information processing method and device for safe kindergarten picking up | |
CN202979200U (en) | Input apparatus and television system | |
US9396211B2 (en) | Method and device for providing information using barcode | |
CN110933772A (en) | Connection method of wireless device, mobile terminal and computer readable storage medium | |
US10268852B2 (en) | Electronic device and reading method | |
CN103220424A (en) | Method and device for information sending of mobile terminal | |
CN101119545B (en) | Information processing system and information processing method based on coding labels | |
KR101243991B1 (en) | Food information provision system and method thereof using QR code limked with broadcasting program | |
CN108537086A (en) | Method for information display, device, storage medium and mobile terminal | |
WO2017161806A1 (en) | Terminal and scanning method thereof | |
CN103995640A (en) | Information distribution device and information distribution method | |
CN107172718B (en) | Information processing method and electronic equipment | |
CN106843884B (en) | Query data processing method and device | |
KR102367653B1 (en) | Apparatus for providing contents and method thereof | |
CN105049611A (en) | Payment device searching method and payment device searching device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15904394 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15904394 Country of ref document: EP Kind code of ref document: A1 |