CN110659533A - Method for identifying two-dimensional code in video and computer readable storage medium - Google Patents

Method for identifying two-dimensional code in video and computer readable storage medium Download PDF

Info

Publication number
CN110659533A
CN110659533A CN201910790122.8A CN201910790122A CN110659533A CN 110659533 A CN110659533 A CN 110659533A CN 201910790122 A CN201910790122 A CN 201910790122A CN 110659533 A CN110659533 A CN 110659533A
Authority
CN
China
Prior art keywords
identification
video
dimensional code
sample
long
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910790122.8A
Other languages
Chinese (zh)
Inventor
刘德建
王跃杰
郭玉湖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian TQ Digital Co Ltd
Original Assignee
Fujian TQ Digital Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian TQ Digital Co Ltd filed Critical Fujian TQ Digital Co Ltd
Priority to CN201910790122.8A priority Critical patent/CN110659533A/en
Publication of CN110659533A publication Critical patent/CN110659533A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for identifying two-dimension codes in a video and a computer readable storage medium, wherein the method comprises the following steps: when long-press clicking operation is detected, capturing a picture in a video player area to obtain an identification sample; performing two-dimensional code identification on the identification sample; and if the identification is successful, displaying the identification result according to a preset feedback mode. The method and the device can optimize the interactive experience of the user for identifying the two-dimension code in the video.

Description

Method for identifying two-dimensional code in video and computer readable storage medium
Technical Field
The invention relates to the technical field of two-dimension code identification, in particular to a method for identifying two-dimension codes in a video and a computer readable storage medium.
Background
Two-dimensional codes are an extremely popular coding mode on mobile equipment in recent years, and data symbol information display is usually recorded by black and white graphs distributed on a plane (in a two-dimensional direction) according to a certain rule by using a certain specific geometric figure. It is often used to store web addresses, business cards, text messages, specific codes, etc.
At present, two-dimensional code identification is usually based on static pictures, and common identification methods include:
1. scanning and identifying the two-dimensional code through a camera of the mobile equipment (at present, the camera of the mobile equipment usually has a two-dimensional code identification function);
2. a two-dimensional code picture exists in a screen of the mobile device, the two-dimensional code picture is stored in an album through manual screen capture, and then the two-dimensional code in the screen capture is identified through software (identification software is not limited, such as application software for scanning the two-dimensional code, searching and the like);
3. the screen of the mobile device is provided with a two-dimension code picture, and the user can select an 'identification two-dimension code' (supported in some application software, such as WeChat, QQ and the like) in a menu by pressing the two-dimension code picture with a finger for a long time.
At present, carriers of two-dimensional codes are all static pictures and are inserted into article contents. The limitation of the carrier enables the use scene to be limited, and the two-dimension code in the video is more complicated to identify if the two-dimension code needs to be played in the video. Another mobile device camera must be used for scanning or another identification software is turned on for identification after screen capture. The disadvantages are that: the process that the user watches the video is interrupted, and the user experience is influenced, so that the user does not want to identify the two-dimension code in the video, and the marketing effect is reduced through the two-dimension code.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: provided are a method for recognizing a two-dimension code in a video and a computer-readable storage medium, which can optimize the interactive experience of a user in recognizing the two-dimension code in the video.
In order to solve the technical problems, the invention adopts the technical scheme that: a method for identifying two-dimension codes in a video comprises the following steps:
when long-press clicking operation is detected, capturing a picture in a video player area to obtain an identification sample;
performing two-dimensional code identification on the identification sample;
and if the identification is successful, displaying the identification result according to a preset feedback mode.
The invention also relates to a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of:
when long-press clicking operation is detected, capturing a picture in a video player area to obtain an identification sample;
performing two-dimensional code identification on the identification sample;
and if the identification is successful, displaying the identification result according to a preset feedback mode.
The invention has the beneficial effects that: the identification of the two-dimensional code is triggered by long-time pressing and clicking, a series of operations such as screen capture, code scanning and the like are not required to be carried out by a user, the operation steps are simplified, only the player is required to be pressed for a long time, and the interaction experience of the user for identifying the two-dimensional code in the video is optimized; meanwhile, the flow of the two-dimension codes in the video is optimized, so that the user is more happy and accustomed to further checking the content of the two-dimension codes in the video, and the popularization and marketing effect is improved.
Drawings
Fig. 1 is a flowchart of a method for recognizing two-dimensional codes in a video according to the present invention;
fig. 2 is a flowchart of a method according to a first embodiment of the invention.
Detailed Description
In order to explain technical contents, objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
The most key concept of the invention is as follows: and when detecting that the user presses the screen for a long time, acquiring a current video playing picture and identifying the two-dimensional code.
Referring to fig. 1, a method for recognizing a two-dimensional code in a video includes:
when long-press clicking operation is detected, capturing a picture in a video player area to obtain an identification sample;
performing two-dimensional code identification on the identification sample;
and if the identification is successful, displaying the identification result according to a preset feedback mode.
From the above description, the beneficial effects of the present invention are: the interactive experience of the user in identifying the two-dimension codes in the video can be optimized.
Further, if the duration of the clicking operation is detected to exceed a preset first time, the long-press clicking operation is determined.
Further, after the two-dimensional code recognition is performed on the recognition sample, the method further includes:
and if the identification fails, waiting for a preset second time, and then executing the step of capturing the picture in the video player area again to obtain an identification sample.
According to the description, the success rate of two-dimensional code identification is improved.
Further, after the two-dimensional code recognition is performed on the recognition sample, the method further includes:
and if the long-press clicking operation is detected to stop, stopping performing two-dimensional code identification on the identification sample.
As can be seen from the above description, the flexibility of two-dimensional code recognition is improved.
The invention also proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps as described above.
Example one
Referring to fig. 2, a first embodiment of the present invention is: a method for identifying two-dimension codes in a video can conveniently identify the two-dimension codes in the video when a mobile device plays the video, and comprises the following steps:
s1: when the video player detects long-press clicking operation, intercepting a picture in the video player area to obtain an identification sample; that is, when the user is detected to press the screen for a long time, the content in the video playing is sampled.
The video player is used as a View (View) in screen display of the mobile device and has the user touch detection capability commonly used for the View. In the SDK (software development tool) of the program, event notifications such as finger-down and finger-up are provided, and when the user presses the screen hold event for more than 1 second, long-press click operation is represented (different operating systems may be slightly different). Therefore, if it is detected that the duration of the click operation exceeds a preset first time (e.g., 1s), it is determined that the click operation is pressed for a long time, and then a picture in the current video player region, that is, the current video frame, is captured as an identification sample. The step is realized by the inside of the video player, so that the user has no perception and the user experience is not influenced.
S2: performing two-dimensional code identification on the identification sample; further, the video player calls a two-dimensional code identification module to perform two-dimensional code identification on the identification sample. The two-dimensional code recognition module is already used as a mature tool and can be directly used in software development.
S3: and judging whether the identification is successful, if so, executing the step S4, and if not, executing the step S5. The reason for the failure in identification may be that there is no two-dimensional code in the picture, the two-dimensional code is unclear, and the two-dimensional code is incorrect.
S4: displaying the recognition result according to a preset feedback mode, namely giving feedback to a user according to needs, for example, if the recognition result is a webpage link, popping a window to prompt whether to open a webpage or directly jumping to a corresponding webpage; and if the identification result is the telephone number, prompting whether to dial the telephone or not and the like.
S5: and after waiting for the preset second time, intercepting the picture in the video player area again to obtain a new identification sample, and performing two-dimensional code identification on the new identification sample, namely returning to execute the step S1. Preferably, the preset second time is 500 milliseconds.
That is, when the user presses the screen for a long time, the video player collects one frame of video picture as an identification sample every 500 milliseconds, and performs two-dimensional code identification. If the identification is successful, feedback is given to the user, and if the identification is unsuccessful, the sampling identification is continued after the next sampling time point is reached.
Further, in the above steps, after detecting that the user performs the long-press click operation, a process of identifying the two-dimensional code is started, in which the user needs to keep the long-press click operation, and if the long-press click operation is detected to stop in the process, the process of identifying the two-dimensional code is stopped. When the identification is successful, the user can release the finger, and the long-press clicking operation is not required to be maintained. And if the two-dimensional code is not recognized all the time, finishing the long-press clicking operation by releasing the finger of the user as an instruction for finishing recognition.
The operation of identifying the two-dimensional code by long pressing the two-dimensional code picture is quite common in picture browsing scenes, and a user can completely master and learn the two-dimensional code, so that the two-dimensional code in the video can be easily adapted and mastered by long pressing and identification, and the method becomes a new interaction habit.
In addition, the player itself already has the function of clicking operation, for example, as follows:
a) the single-click operation is used for displaying and hiding the operation bars at the top and the bottom;
b) double-click operation is used for playing or pausing video;
c) the hold-and-drag is used to adjust brightness, volume or video progress.
According to the above list, long press clicks this interaction has not been used in video players and is also mentioned in the above point as suitable for two-dimensional code recognition.
In summary, in the embodiment, the two-dimension code recognition is triggered by long-time clicking in the video, so that the applicability is strong, the operability is strong, and the recognition can be performed only when the user needs the two-dimension code recognition, so that the flexibility of the two-dimension code recognition is improved.
A specific application scenario of the embodiment is as follows:
1. a video producer of an advertising company places a two-dimensional code picture containing a webpage link at the lower right corner of video content for further popularizing commodities;
2. a user plays an advertisement video by using a player on mobile equipment;
3. when watching a video, a user is interested in advertisement content and wants to know advertisement commodities in detail through the two-dimensional code at the lower right side, and then clicks the long-press video (or player interface) by using fingers to identify the two-dimensional code in the video in the playing process;
4. if the two-dimension code is successfully identified, popping up a dialog box to prompt a user whether the user needs to jump to a specified webpage or not;
5. and clicking the determined button by the user, and jumping to the browser to open the webpage link.
The player is additionally provided with the function of identifying the two-dimension code in the video, a series of operations such as screen capture, code scanning and the like are not required to be performed by a user, the operation steps are simplified, the player only needs to be pressed for a long time, and the interaction experience of the user for identifying the two-dimension code in the video is optimized; meanwhile, the flow of the two-dimension codes in the video is optimized, so that the user is more happy and accustomed to further checking the content of the two-dimension codes in the video, and the popularization and marketing effect is improved.
Example two
This embodiment is a computer-readable storage medium corresponding to the above embodiment, on which a computer program is stored, the program, when executed by a processor, implementing the steps of:
when long-press clicking operation is detected, capturing a picture in a video player area to obtain an identification sample;
performing two-dimensional code identification on the identification sample;
and if the identification is successful, displaying the identification result according to a preset feedback mode.
Further, if the duration of the clicking operation is detected to exceed a preset first time, the long-press clicking operation is determined.
Further, after the two-dimensional code recognition is performed on the recognition sample, the method further includes:
and if the identification fails, waiting for a preset second time, and then executing the step of capturing the picture in the video player area again to obtain an identification sample.
Further, after the two-dimensional code recognition is performed on the recognition sample, the method further includes:
and if the long-press clicking operation is detected to stop, stopping performing two-dimensional code identification on the identification sample.
In summary, according to the identification method of the two-dimension code in the video and the computer-readable storage medium provided by the invention, a user does not need to perform a series of operations such as screen capture and code scanning, so that the operation steps are simplified, the user only needs to press a player for a long time, and the interaction experience of the user for identifying the two-dimension code in the video is optimized; meanwhile, the flow of the two-dimension codes in the video is optimized, so that the user is more happy and accustomed to further checking the content of the two-dimension codes in the video, and the popularization and marketing effect is improved.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for identifying two-dimension codes in a video is characterized by comprising the following steps:
when long-press clicking operation is detected, capturing a picture in a video player area to obtain an identification sample;
performing two-dimensional code identification on the identification sample;
and if the identification is successful, displaying the identification result according to a preset feedback mode.
2. The method for recognizing the two-dimensional code in the video according to claim 1, wherein if it is detected that the duration of the click operation exceeds a preset first time, the long-click operation is determined.
3. The method for recognizing two-dimension codes in video according to claim 1, wherein after the two-dimension code recognition is performed on the recognition samples, the method further comprises:
and if the identification fails, waiting for a preset second time, and then executing the step of capturing the picture in the video player area again to obtain an identification sample.
4. The method for recognizing two-dimension codes in video according to claim 1, wherein after the two-dimension code recognition is performed on the recognition samples, the method further comprises:
and if the long-press clicking operation is detected to stop, stopping performing two-dimensional code identification on the identification sample.
5. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, performs the steps of:
when long-press clicking operation is detected, capturing a picture in a video player area to obtain an identification sample;
performing two-dimensional code identification on the identification sample;
and if the identification is successful, displaying the identification result according to a preset feedback mode.
6. The computer-readable storage medium according to claim 5, wherein the long-press click operation is determined if the duration of the click operation is detected to exceed a preset first time.
7. The computer-readable storage medium of claim 5, wherein after the two-dimensional code recognition of the recognition sample, further comprising:
and if the identification fails, waiting for a preset second time, and then executing the step of capturing the picture in the video player area again to obtain an identification sample.
8. The computer-readable storage medium of claim 5, wherein after the two-dimensional code recognition of the recognition sample, further comprising:
and if the long-press clicking operation is detected to stop, stopping performing two-dimensional code identification on the identification sample.
CN201910790122.8A 2019-08-26 2019-08-26 Method for identifying two-dimensional code in video and computer readable storage medium Pending CN110659533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910790122.8A CN110659533A (en) 2019-08-26 2019-08-26 Method for identifying two-dimensional code in video and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910790122.8A CN110659533A (en) 2019-08-26 2019-08-26 Method for identifying two-dimensional code in video and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110659533A true CN110659533A (en) 2020-01-07

Family

ID=69036403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910790122.8A Pending CN110659533A (en) 2019-08-26 2019-08-26 Method for identifying two-dimensional code in video and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110659533A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818719A (en) * 2020-12-30 2021-05-18 上海掌门科技有限公司 Method and device for identifying two-dimensional code

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170127151A1 (en) * 2015-10-29 2017-05-04 Le Holdings (Beijing) Co., Ltd. Method and Device for Protecting Video Digital Copyrights
CN107872730A (en) * 2016-09-28 2018-04-03 法乐第(北京)网络科技有限公司 The acquisition methods and device of a kind of insertion content in video
CN109511010A (en) * 2017-09-15 2019-03-22 广州市动景计算机科技有限公司 Method for processing video frequency, video process apparatus, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170127151A1 (en) * 2015-10-29 2017-05-04 Le Holdings (Beijing) Co., Ltd. Method and Device for Protecting Video Digital Copyrights
CN107872730A (en) * 2016-09-28 2018-04-03 法乐第(北京)网络科技有限公司 The acquisition methods and device of a kind of insertion content in video
CN109511010A (en) * 2017-09-15 2019-03-22 广州市动景计算机科技有限公司 Method for processing video frequency, video process apparatus, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818719A (en) * 2020-12-30 2021-05-18 上海掌门科技有限公司 Method and device for identifying two-dimensional code
CN112818719B (en) * 2020-12-30 2023-06-23 上海掌门科技有限公司 Method and equipment for identifying two-dimensional code

Similar Documents

Publication Publication Date Title
CN107341018B (en) Method and device for continuously displaying view after page switching
US10140014B2 (en) Method and terminal for activating application based on handwriting input
US9703462B2 (en) Display-independent recognition of graphical user interface control
CN106547417B (en) Method and device for displaying background task message
CN108664303B (en) Webpage content display method and device
US20110047514A1 (en) Recording display-independent computerized guidance
US9817484B2 (en) Method for capturing screen content of mobile terminal and device thereof
CN104090761A (en) Screenshot application device and method
US9405558B2 (en) Display-independent computerized guidance
US20160345049A1 (en) Method and device for switching channel
CN111698565B (en) Video playing method and device and electronic equipment
US20230229286A1 (en) Interface display method and apparatus, and electronic device
CN105824499A (en) Window control method and mobile terminal
CN112214271A (en) Page guiding method and device and electronic equipment
US20160345059A1 (en) Method and device for switching channel
CN111966273A (en) Information display processing method and device
CN110740373A (en) audio/video file buffering method and related device
CN110659533A (en) Method for identifying two-dimensional code in video and computer readable storage medium
CN109558203B (en) Recent content display method, device, terminal and storage medium
CN113709565B (en) Method and device for recording facial expression of watching video
CN111901659B (en) Information acquisition method and electronic equipment
CN113741769A (en) Control method and system based on image recognition, vehicle and storage medium
CN111966253A (en) Page focus processing method and device, electronic equipment and computer storage medium
CN114745587B (en) Multimedia resource playing method and device, electronic equipment and medium
CN115883759A (en) Important information display method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200107

WD01 Invention patent application deemed withdrawn after publication