Method, device and electronic device for recognizing voice command execution time
By obtaining and analyzing the display screen recording video of the target device, using character recognition technology to determine the first and last frame timestamps of the voice command, and calculating the voice command execution time, the problem of low recognition efficiency in the existing technology is solved and an efficient Voice command execution time recognition.
Patent Information
- Application Number
- CN202110523342.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-13
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-05-13
AI Technical Summary
In the existing technology, the recognition efficiency of the execution time of voice commands is low, and it is necessary to manually analyze the video frame by frame to record the last character of the voice command and the time point of the target page, resulting in low efficiency.
By obtaining the display screen recording video of the target device, character recognition technology is used to determine the timestamp of the first frame image and the last frame image of the voice command, and the voice command execution time is calculated to avoid manual participation.
It greatly improves the recognition efficiency of voice command execution time, saves recognition time, and solves the problem of low recognition efficiency of voice command execution time.
Smart Images

Figure CN115348476B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular, to a method, device and electronic device for identifying the execution time of a voice command. Background Art
[0002] In the related art, the voice command execution time is usually used as one of the key indicators to measure the quality of voice recognition. The voice command execution time can refer to the time interval from the voice command recognition to the display of the corresponding target page. The voice command execution time can be measured from the moment when the last character corresponding to the recognized voice command is displayed to the moment when the target page corresponding to the voice command is displayed on the screen of the electronic device. At present, when it is necessary to conduct a comparative analysis of the voice command execution time, it is usually necessary to record multiple videos, and then manually analyze the above videos frame by frame, and record the time points corresponding to the last character of the voice command and the target page to analyze the response speed. However, the above method will result in low recognition efficiency of the voice command execution time.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method, device and electronic device for identifying the execution time of a voice command, so as to at least solve the technical problem of low efficiency in identifying the execution time of a voice command in the related art.
[0005] According to one aspect of an embodiment of the present application, a method for identifying the execution time of a voice instruction is provided, comprising: obtaining a target video obtained by recording a display screen of a target device, wherein the target video includes a picture displayed on the display screen when a target voice instruction is input to the target device; performing character recognition on frame images in the target video to obtain a first frame image in which a tail character in first information appears, and determining a first timestamp corresponding to the first frame image, wherein the first information is part or all of the information obtained by the target device performing voice recognition on the target voice instruction and displayed on the display screen, the first information is the same as the second information, and the second information is the information represented by the target voice instruction; determining a second timestamp corresponding to a second frame image based on a frame image in the target video that is located after the first frame image, wherein the second timestamp represents the completion time of the target device loading a target page in response to the target voice instruction, and the second frame image is a frame image in the target video that displays the target page for the first time.
[0006] According to another aspect of an embodiment of the present application, a device for identifying the execution time of a voice instruction is also provided, comprising: an acquisition unit, for acquiring a target video obtained by recording a display screen of a target device, wherein the target video includes a picture displayed on the display screen when a target voice instruction is input to the target device; an identification unit, for performing character recognition on frame images in the target video, obtaining a first frame image in which a tail character in the first information appears, and determining a first timestamp corresponding to the first frame image, wherein the first information is part or all of the information obtained by the target device performing voice recognition on the target voice instruction and displayed on the display screen, the first information is the same as the second information, and the second information is the information represented by the target voice instruction; a determination unit, for determining a second timestamp corresponding to a second frame image based on a frame image in the target video that is located after the first frame image, wherein the second timestamp represents the completion time of the target device loading a target page in response to the target voice instruction, and the second frame image is a frame image in the target video that displays the target page for the first time.
[0007] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for identifying the execution time of a voice instruction when running.
[0008] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the method for recognizing the execution time of a voice instruction through the computer program.
[0009] In the embodiment of the present application, by performing character recognition on the frame images in the target video, the first frame image in which the tail character in the first information appears is obtained, and the frame image in which the target page is first displayed in the target video is used as the second frame image, and the voice command execution time of the target device is determined according to the timestamps corresponding to the first frame image and the second frame image. This avoids manual participation in the confirmation of the voice command execution time, greatly improves the recognition efficiency of the voice command execution time of the target device, saves recognition time, and solves the technical problem of low recognition efficiency of the voice command execution time in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0011] Figure 1is a schematic diagram of an application environment of an optional method for recognizing the execution time of a voice instruction according to an embodiment of the present application;
[0012] Figure 2 is a schematic diagram of an application environment of another optional method for recognizing the execution time of a voice instruction according to an embodiment of the present application;
[0013] Figure 3 is a flow chart of an optional method for identifying the execution time of a voice instruction according to an embodiment of the present application;
[0014] Figure 4A It is an image display schematic diagram of an optional method for recognizing the execution time of a voice instruction in the related art;
[0015] Figure 4B is an image display schematic diagram of another optional method for recognizing the execution time of a voice instruction in the related art;
[0016] Figure 5 It is a schematic diagram of an interface display of another optional method for recognizing the execution time of a voice instruction in the related art;
[0017] Figure 6 is a flow chart of an optional method for recognizing the execution time of a voice instruction according to an embodiment of the present application;
[0018] Figure 7 is a flowchart of another optional method for recognizing the execution time of a voice instruction according to an embodiment of the present application;
[0019] Figure 8 is a schematic diagram of an interface display of another optional method for recognizing the execution time of a voice command in the related art;
[0020] Fig. 9 is a schematic diagram of an interface display of another optional method for recognizing the execution time of a voice command in the related art;
[0021] Fig.10 is a schematic diagram of an interface display of another optional method for recognizing the execution time of a voice command in the related art;
[0022] Fig.11 is a schematic diagram of an interface display of another optional method for recognizing the execution time of a voice command in the related art;
[0023] Fig.12 is a schematic diagram of an interface display of another optional method for recognizing the execution time of a voice command in the related art;
[0024] Fig.13is a flowchart of another optional method for identifying the execution time of a voice instruction according to an embodiment of the present application;
[0025] Fig.14 is a flowchart of another optional method for identifying the execution time of a voice instruction according to an embodiment of the present application;
[0026] Fig.15 is a flowchart of another optional method for identifying the execution time of a voice instruction according to an embodiment of the present application;
[0027] Fig.16 is a flowchart of another optional method for identifying the execution time of a voice instruction according to an embodiment of the present application;
[0028] Fig.17 is a schematic structural diagram of an optional device for identifying sound response time according to an embodiment of the present application;
[0029] Fig.18 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] According to one aspect of the embodiments of the present application, a method for identifying the execution time of a voice instruction is provided. Optionally, as an optional implementation, the above-mentioned recognition of the execution time of a voice instruction can be but is not limited to being applied to the following: Figure 1In the environment shown. The application environment includes: a terminal device 102 for human-computer interaction with a user, a network 104, and a server 106. The terminal device 102 may include but is not limited to an in-vehicle electronic device, a handheld terminal, a wearable device, a portable device, etc. A user 108 can interact with the terminal device 102, and a recognition application client for the execution time of a voice command runs in the terminal device 102. The terminal device 102 includes a human-computer interaction screen 1022, a processor 1024, and a memory 1026. The human-computer interaction screen 1022 is used to display the screen obtained by recording the display screen of the target device. The processor 1024 is used to obtain a target video obtained by recording the display screen of the target device, wherein the target video includes the picture displayed on the display screen when the target voice command is input to the target device; perform character recognition on the frame images in the target video to obtain the first frame image in which the tail character in the first information appears, and determine a first timestamp corresponding to the first frame image, wherein the first information is part or all of the information obtained by the target device performing voice recognition on the target voice command and displayed on the display screen, the first information is the same as the second information, and the second information is the information represented by the target voice command; determine a second timestamp corresponding to the second frame image according to the frame image located after the first frame image in the target video, wherein the second timestamp represents the completion time of the target device loading the target page in response to the target voice command, and the second frame image is the frame image of the target video that displays the target page for the first time; the memory 1026 is used to store the target video, and store the picture displayed on the display screen when the target voice command is input to the target device.
[0033] The specific process is as follows: Assume that Figure 1The terminal device 102 shown in the figure runs a recognition application client of the voice command execution time, and the user 108 operates the human-computer interaction screen 1022 to manage and operate the virtual character, as shown in step S102, to obtain a target video obtained by recording the display screen of the target device, wherein the target video includes the picture displayed on the display screen when the target voice command is input to the target device. Then, step S104 is executed to send the target video to the server 106 through the network 104. After receiving the request, the server 106 executes steps S106 and S108, performs character recognition on the frame images in the target video, obtains the first frame image where the tail character in the first information appears, and determines the first timestamp corresponding to the first frame image, wherein the first information is part or all of the information obtained by the target device performing voice recognition on the target voice command and displayed on the display screen, the first information is the same as the second information, and the second information is the information represented by the target voice command; according to the frame image after the first frame image in the target video, determines the second timestamp corresponding to the second frame image, wherein the second timestamp represents the completion time of the target device loading the target page in response to the target voice command, and the second frame image is the frame image in which the target page is displayed for the first time in the target video. And as in step S110, the terminal device 102 is notified through the network 104, and the determined voice command execution time is returned.
[0034] As another optional implementation, the above-mentioned method for recognizing the execution time of the voice command in the present application can be applied to Figure 2 In the application environment shown. Figure 2 As shown, human-computer interaction can be performed between user 202 and user device 204. User device 204 includes memory 206 and processor 208. In this embodiment, user device 204 can refer to but not be limited to the operation performed by the terminal device 102 to obtain the voice command execution time of the target device.
[0035] Optionally, in this embodiment, the terminal device 102 and the user device 204 may include but are not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a video client, an instant messaging client, a browser client, an education client, etc. The network 104 may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that implement wireless communication. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and this embodiment does not impose any limitation on this.
[0036] Optionally, as an optional implementation, as Figure 3 As shown, the above-mentioned method for identifying the execution time of the voice command includes:
[0037] S302, obtaining a target video obtained by recording a display screen of a target device, wherein the target video includes a picture displayed on the display screen when a target voice command is input to the target device;
[0038] S304, performing character recognition on the frame images in the target video to obtain the first frame image in which the tail character in the first information appears, and determining a first timestamp corresponding to the first frame image, wherein the first information is part or all of the information obtained by the target device performing voice recognition on the target voice command and displayed on the display screen, the first information is the same as the second information, and the second information is the information represented by the target voice command;
[0039] It can be understood that in some examples, the start and end time points of the target device's recognition of the target voice command are accurate. When the target device recognizes the content of the target voice command accurately, the target information recognized by the target device is the second information. At this time, the first information can be all the information obtained by the target device through voice recognition of the target voice command and displayed on the display screen. Figure 4A As shown, the first information can be all text information obtained by the target device 400 performing voice recognition on the target voice command and displayed on the screen of the target device 400, such as the text information displayed in the voice command display box 402, that is, the second information ("I want to watch XXX's movie").
[0040] In other examples, the start and end time points of the target device's recognition of the target voice command may be inaccurate. The start time point of the recognition may be too early (in this case, the target device may have recognized other characters before recognizing the character that is the same as the first character of the second information), or the end time point of the recognition may be too late (in this case, after the recognized characters include the second information, the target device may have recognized other characters). Figure 4B As shown, when the target device 400 recognizes the target voice command, the entire information displayed on the display screen is "I want to watch XXX's movie at this time". Then, when the target device recognizes the content of the target voice command accurately, the target information recognized by the target device includes the second information and other information ("at this time"). At this time, the first information is only part of the information obtained by the target device 400 through voice recognition of the target voice command and displayed on the display screen. Figure 4B As shown, the first information may be partial text information obtained by the target device 400 performing voice recognition on the target voice command and displayed on the screen of the target device 400, such as the partial text information displayed in the voice command display box 402, that is, the second information ("I want to watch XXX's movie").
[0041] S306, determining a second timestamp corresponding to a second frame image based on a frame image located after the first frame image in the target video, wherein the second timestamp indicates the completion time of the target device loading the target page in response to the target voice command, and the second frame image is the frame image of the target page displayed for the first time in the target video.
[0042] In step S302, in actual application, the display screen of the target device may be recorded through a mobile phone, a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, etc. The target device may include a television, a mobile phone, a laptop computer, etc., which are not limited here. In this embodiment, for example, Figure 4A or Figure 4B As shown, the target video can be obtained by recording the display screen of the target device 400 through the mobile device 404. The above-mentioned target video includes the picture displayed on the display screen when the voice command (the text in the voice command display box 402 "I want to watch XXX's movie") is input to the target device 400.
[0043] Optionally, in one embodiment, the target device may be multiple electronic devices; for example, Figure 5As shown, a target video is obtained by recording the display screens of the first target device 502 and the second target device 504 through the mobile device 500. The target video includes the display screens of both the first target device 502 and the second target device 504.
[0044] In step S304, in practical applications, character recognition of the frame images in the target video may include, but is not limited to, recognizing the text characters in the frame images through optical character recognition (OCR). As Figure 4A shown, in this embodiment, the first information may be the text information obtained by voice recognition of the target voice command by the target device 400 and displayed on the screen of the target device 400, such as the text information displayed in the voice command display box 402 (such as "I want to watch a movie of XXX"). As Figure 6 shown, after performing OCR recognition on multiple frame images in the target video, the characters included in each frame image can be obtained, and the first character is recorded. The frame image where the last character appears is used as the first frame image. In Figure 6 this case, the first frame image is the frame image corresponding to the 6th second in the target video, and this image includes the last character "movie" of the first information. It can be obtained that the timestamp corresponding to the first frame image is 6s.
[0045] In step S306, in practical applications, the second timestamp represents the completion time when the above target device loads the target page in response to the above target voice command, and the second frame image is the frame image in the above target video that first displays the above target page. For example, as Figure 7 shown, on the screen of the target device 700, the voice command display box 702 displays the voice command information "I want to watch a movie of XXX". In response to the above voice command, the target page 704 is displayed on the screen of the target device 700, and a movie window of XXX is displayed in the target page 704. At this time, the second frame image can be the frame image in the target video where the target page first appears. As Figure 8 shown, on the screen of the target device 800, the voice command display box 802 displays the voice command information "How's the weather today". In response to the above voice command, the target page 804 displayed on the screen of the target device 800 is the interface of the weather application, and the current weather information is displayed. In one or more embodiments, the target page may be the display pages of multiple applications, which is not limited herein;
[0046] In one or more embodiments, as Figure 6As shown, the method for identifying the execution time of the above-mentioned voice command includes: after multiple frames of images in the target video are recognized by OCR, the text information display area in each frame of the image and the timestamp corresponding to each frame of the image are obtained, and the characters corresponding to the frame number, frame timestamp and the text information display area in each frame of the image are recorded in a preset table.
[0047] In the embodiment of the present application, by performing character recognition on the frame images in the target video, the first frame image in which the tail character in the first information appears is obtained, and the frame image in which the target page is first displayed in the target video is used as the second frame image, and the voice command execution time of the target device is determined according to the timestamps corresponding to the first frame image and the second frame image. This avoids manual participation in the confirmation of the voice command execution time, greatly improves the recognition efficiency of the voice command execution time of the target device, saves recognition time, and solves the technical problem of low recognition efficiency of the voice command execution time in the related art.
[0048] In one or more embodiments, step S306, based on the frame image located after the first frame image in the target video, determines the second timestamp corresponding to the second frame image, including: when the current frame image located after the first frame image is different from the previous frame image, and the current frame image is the same as the frame images within a preset time length after the current frame image, determines the current frame image as the second frame image, and determines the second timestamp corresponding to the second frame image.
[0049] like Fig. 9 As shown, when the current frame image (the picture displayed at 2.5 seconds in the target device 900) after the first frame image is different from the previous frame image (the picture displayed at 2 seconds), and the current frame image and the frame images within 5 seconds after the current frame image are the same, the frame image corresponding to the 2.5 seconds is determined as the second frame image, and the second timestamp corresponding to the second frame image is determined to be 2.5 seconds.
[0050] In one or more embodiments, the target page may be a response page to a voice command, that is, the target device analyzes and recognizes the voice command after receiving it, and displays a screen corresponding to the voice command. For example, a voice command message "I want to watch XXX's movie" is sent to the target device 700. In response to the voice command, the target page 704 is displayed on the screen of the target device 700, and a movie window of XXX is displayed on the target page 704. Figure 8 As shown, a voice command message "What's the weather like today" is sent to the target device 800. In response to the voice command, a target page 804 is displayed on the screen of the target device 800 as an interface of a weather application.
[0051] Through one or more embodiments provided by the present application, by determining the current frame image as the second frame image when the current frame image after the first frame image is different from the previous frame image and the current frame image and the frame images within a preset time length after the current frame image are the same, the frame image and time at which the loading of the response page of the voice command is completed can be accurately identified, thereby further improving the efficiency of recognizing the execution time of the voice command.
[0052] In one or more embodiments, step S306, determining a second timestamp corresponding to a second frame image according to a frame image after the first frame image in the target video, includes: starting from a frame image next to the first frame image, repeatedly performing the following identification steps, wherein the next frame image is the current frame image:
[0053] S1, save the timestamp corresponding to the current frame image;
[0054] S2, comparing the current frame image with the next frame image of the current frame image to see whether they are the same;
[0055] S3, when the current frame image is different from the next frame image of the current frame image, setting the next frame image of the current frame image as the current frame image;
[0056] S4, when the current frame image is identical to the next frame image of the current frame image, if the current frame image is identical to the frame images within a preset time length after the current frame image, the current frame image is determined as the second frame image, and the timestamp corresponding to the current frame image is determined as the second timestamp, and the identification step is terminated.
[0057] like Fig. 9 As shown, the timestamp corresponding to the current frame image is saved. For example, the timestamp corresponding to the first frame is 1s. When the current frame image (the first frame image) is different from the next frame image of the current frame image (the second frame image corresponding to the 2nd second), the second frame image corresponding to the 2nd second is set as the above-mentioned current frame image.
[0058] When the current frame image (the frame image corresponding to the 2.5th second) is the same as the next frame image (not shown in the figure) of the above-mentioned current frame image, determine whether the above-mentioned current frame image is the same as the frame images within a preset time length (here set to 5 seconds) after the above-mentioned current frame image; when the above-mentioned current frame image is the same as the frame images within the preset time length after the above-mentioned current frame image, determine the frame image corresponding to the 2.5th second as the above-mentioned second frame image, and determine 2.5 seconds as the above-mentioned second timestamp, and end the execution of the above-mentioned identification step.
[0059] Through one or more embodiments provided by the present application, the frame image and time when the response page of the voice command is loaded completely can be accurately identified, further improving the efficiency of identifying the response time of the voice command text information.
[0060] In one or more embodiments, starting from the next frame image of the above first frame image and repeating the above recognition step further includes: when the current frame image is different from the third frame image within a preset duration after the current frame image and the current frame image is the same as the frame images before the third frame image, setting the third frame image as the current frame image.
[0061] As Fig. 9 shown, when the current frame image (such as the frame image corresponding to 2.5 seconds) is different from the third frame image within a preset duration after it (the frame image corresponding to 5 seconds) and the current frame image is the same as the frame images before the third frame image (multiple frame images before 5 seconds and after 2.5 seconds), setting the frame image corresponding to 5 seconds as the current frame image.
[0062] In one or more embodiments, step S304, performing character recognition on the frame images in the above target video to obtain the first frame image in which the last character in the first information appears, includes: performing character recognition on a preset target display area in the frame images of the target video, recognizing the last character, and determining the first frame image in which the last character appears, where the target display area is the area for displaying the first information.
[0063] In this embodiment, as Figure 4A shown, the target display area may include, but is not limited to, the area corresponding to the voice command display box 402. The first information (I want to watch XXX movies) is displayed in the target display area. The last character "movie" is recognized, and the first frame image in which the last character "movie" appears is determined.
[0064] Through one or more embodiments provided by the present application, by performing character recognition on a preset target display area in the frame images of the above target video, respectively recognizing the above last characters, and determining the above first frame image in which the above last characters appear, there is no need to perform character recognition on the entire screen of the frame images of the target video, reducing the scope of character recognition and further improving the efficiency of identifying the voice command text information.
[0065] In one or more embodiments, before recognizing the tail character in the preset target display area of the frame image in the target video and determining the first frame image in which the tail character appears, the method further includes: determining a preset area in the target device, where the preset area is used to display information obtained by voice recognition of an input voice command by the target device; and determining the preset area as the target display area.
[0066] For example, obtain the image size of the frame image in the target video; determine a preset area in the frame image according to the image size, and mark the range of the preset area, such as adding a rectangular or oval border; and determine the preset area as the target display area.
[0067] By determining the preset area that displays the information obtained by voice recognition of the input voice command by the target device, the present application can accurately obtain the characters displayed by the voice command on the target device, improving the efficiency of recognizing the text information of the voice command.
[0068] In one or more embodiments, recognizing the tail character in the preset target display area of the frame image in the target video and determining the first frame image in which the tail character appears includes: when the characters recognized in the target display area of N consecutive frame images in the target video are the same and the characters included in the first information are the same as those in the second information, determining the last character recognized in one of the N consecutive frame images as the tail character, and determining the frame image in which the tail character first appears as the first frame image; where the second information is the information represented by the target voice command, and N is a natural number greater than or equal to 2.
[0069] In this embodiment, as Figure 6 shown, when the characters recognized in the target display area of the 17th to 20th frames in the target video are the same, such as "I want to watch a movie of XXX", the last character recognized in one of the 4 consecutive frame images can be determined as the tail character (such as the character "movie"), and the frame image in which the tail character first appears, that is, the image corresponding to the 20th frame, is determined as the first frame image.
[0070] Through one or more embodiments provided by the present application, by determining that the characters recognized in multiple consecutive frame images do not change, and using the frame image in which the tail character first appears as the first frame image, the tail character of the voice command in the target display area can be accurately obtained, and the frame image corresponding to the tail character can be obtained, without manual annotation, further improving the efficiency of recognizing the text information of the voice command.
[0071] In one or more embodiments, performing character recognition on the frame images in the target video to obtain the first frame image in which the trailing character in the first information appears, includes: when the recognized characters include the second information and the trailing character in the second information is not recognized in the frame images before the current frame image, determining the character in the recognized characters that is the same as the trailing character in the second information as the trailing character in the first information, and determining the current frame image as the first frame image.
[0072] In this embodiment, as Figure 6 shown, when the characters recognized in the current frame image (such as the 20th frame image) include the second information (I want to watch movies of XXX), and the trailing character (the character "movie") in the second information is not recognized in the frame image before the 20th frame image (the 29th frame image), determining the character in the recognized characters that is the same as the trailing character in the second information as the trailing character in the first information, that is, determining the character "movie" as the trailing character in the first information, and determining the 20th frame image as the first frame image.
[0073] Through one or more embodiments provided by the present application, when the recognized characters include the second information and the trailing character in the second information is not recognized in the frame images before the current frame image, obtaining the trailing character and the first frame image can accurately obtain the trailing character of the voice command in the target display area, and can obtain the frame image corresponding to the trailing character, without manual annotation, further improving the efficiency of recognizing the text information of the voice command.
[0074] In one or more embodiments, when the target video is a single video, determining the voice command execution time of the target device to include: the first timestamp and the second timestamp, or the time interval between the first timestamp and the second timestamp;
[0075] When the target video is multiple videos, determining the voice command execution time of the target device to include: the average value of multiple first timestamps determined based on the multiple videos and the average value of multiple second timestamps determined based on the multiple videos, or the average value of the time intervals between the first timestamp and the second timestamp determined based on the multiple videos.
[0076] Through one or more embodiments provided by the present application, by the above technical means, the time from when the voice command is issued to when the voice command is completed and responded on the target device can be obtained flexibly and conveniently, improving the recognition efficiency of the voice command execution time.
[0077] In one or more embodiments, the voice command execution time of the target device is determined based on the first timestamp corresponding to the first frame image and the second timestamp corresponding to the second frame image, including: when the target video includes multiple videos, the time interval between the first timestamp and the second timestamp obtained in each video is determined as the candidate voice command execution time corresponding to each video; and the average value of the candidate voice command execution time corresponding to each video is determined as the voice command execution time of the target device.
[0078] In this embodiment, if Figure 4A As shown, when the target video includes multiple videos, that is, the target device 400 is recorded multiple times, and the average value of the candidate voice command execution time corresponding to each video is determined as the voice command execution time of the above-mentioned target device, for example, the target video includes 5 videos, and the average value of the candidate voice command execution time for each video is 5s, then the average value can be used as the voice command execution time of the target device 400.
[0079] Through one or more embodiments provided by the present application, the average value of the candidate voice command execution time corresponding to each video is determined as the voice command execution time of the target device. This can avoid errors caused by single recognition, accurately obtain the time when the voice command is displayed on the target device, and improve the efficiency of voice command text information recognition.
[0080] In one or more embodiments, Fig.10 As shown, after OCR recognition, the text information display area 1002 in the 20th frame image is obtained, and after the displayed text information is empty, the frame number of the 20th frame image, the frame timestamp 6s, and the corresponding text information "I want to watch XXX's movie" are recorded. At this time, the first frame image is the 20th frame image, and the corresponding timestamp is 6s.
[0081] In one or more embodiments, Fig.11 As shown, it may include but is not limited to identifying the text information display area 1102 in the frame image of the target device through OCR to obtain the position of the displayed text information corresponding to the voice command.
[0082] In one or more embodiments, Fig.12As shown, the above-mentioned method for identifying the execution time of the voice command includes: simultaneously identifying the execution time of the voice command for different target devices, and the text information display area 1202a of the target device 1102, the text information display area 1402a of the target device 1104, and the text information display area 1402a of the target device 1402 all display the text information corresponding to the voice command "I want to watch XXX's movie". Among them, the display screen of the target application is displayed in the target device 1202, and the display screen of the TV interface is displayed in the target device 1204 and the target device 1206.
[0083] In one or more embodiments, the method for identifying the execution time of the voice command further includes: marking the acquired target video with a timestamp through a video processing tool, where the video processing tool includes but is not limited to video tools such as opencv or ffmpeg. By providing the above technical means in this application, the time stamp of the image corresponding to the voice command on the target device can be accurately obtained, thereby improving the efficiency of recognizing the text information of the voice command.
[0084] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0085] According to another aspect of the embodiment of the present application, the above-mentioned method for identifying the execution time of the voice instruction includes the following steps: Fig.13 The steps shown are: step S1302, recording batch videos through a mobile phone; step S1304, finding the text recognition display area of the target device through a video processing tool; step S1306, processing the acquired video, and adding a timestamp through a video processing tool; step S1308, inputting the text recognition display area of multiple videos in sequence, recording the time point of the end of the text recognition display area and the time point of the completion of the language instruction execution through the OCR algorithm, and then obtaining the voice instruction execution time.
[0086] In one or more embodiments, Fig.14As shown, the above-mentioned method for identifying the execution time of the voice command also includes the following steps: Step S1402, processing the target video to add a timestamp, that is, detecting the text area of each device, adding a timestamp to the recorded video through video tool processing; then determining the text display area in the target video. Step S1404, framing the video through software such as opencv or ffmpeg. Step S1406, performing text recognition processing on the screen area of the text in the framed picture; that is, recognizing the characters in the framed picture through the text recognition module. Step S1408, respectively recording the time point at which the tail character appears in the framed picture of each target device. Step S1410, starting image recognition from the time point at which the tail character recognition is completed, and recording the time point at which the language command execution is completed. In step S1410, the image after the frame image where the tail character appears is compared for image similarity. If it is detected that there is no change in the page after 5s, it means that the page corresponding to the voice command has been loaded, and the corresponding time point of the loaded page is recorded, and the time point is used as the end time point of the voice command response execution action.
[0087] Optionally, in one embodiment, multiple target devices may be detected through the above steps S1402 to S1410, and the recognition data of each device may be aggregated to calculate the average time point of the end character recognition and the end of execution of each device. The device execution time is compared based on the average value of the end character recognition and the end of execution time point.
[0088] In one or more embodiments, the above step S1404 specifically includes the following processes: step S1502, preprocessing the framed image, including methods such as image smoothing, layout analysis, and tilt correction; step S1504, detecting the text area in the processed image, that is, finding the text area containing characters; step S1506, performing image binarization processing on the above text area; step S1508, performing character segmentation on the binarized text area or text line to segment individual characters. Step S1510, converting the input character dot matrix image into text for text processing; during the text processing process, comparing whether the recognized text is consistent with the entire voice instruction, if they are consistent, recording the time point as the end character recognition time point.
[0089] In one or more embodiments, Fig.16 As shown, the above-mentioned method for identifying the execution time of the voice command also includes the following steps:
[0090] S1602, setting the video frame at the end time of text recognition as the current frame image, saving the current time point T of the current frame image; resetting the timer to empty;
[0091] S1604, comparing the next frame image of the current frame image with the current image to see if they are the same, if they are the same, executing step S1606; otherwise, proceeding to step S1608;
[0092] S1606, comparing the current frame image and the frame images within the next 5 seconds to see if they are the same, if they are the same, proceeding to step S1610, if they are different, proceeding to step S1612;
[0093] S1608, taking a frame image different from the current frame image as the current frame image, and then proceeding to step S1602;
[0094] S1610, recording the previously saved time point T as the execution end time point;
[0095] S1612, taking a frame image different from the current frame image as the current frame image, and then proceeding to step S1602.
[0096] In the embodiment of the present application, by performing character recognition on the frame images in the target video, the first frame image in which the tail character in the first information appears is obtained, and the frame image in which the target page is first displayed in the target video is used as the second frame image, and the voice command execution time of the target device is determined according to the timestamps corresponding to the first frame image and the second frame image. This avoids manual participation in the confirmation of the voice command execution time, greatly improves the recognition efficiency of the voice command execution time of the target device, saves recognition time, and solves the technical problem of low recognition efficiency of the voice command execution time in the related art.
[0097] According to another aspect of the embodiment of the present application, a voice command execution time recognition device 1700 for implementing the above-mentioned voice command execution time recognition method is also provided. Fig.17 As shown, the device comprises:
[0098] An acquisition unit 1702 is configured to acquire a target video obtained by recording a display screen of a target device, wherein the target video includes a picture displayed on the display screen when a target voice command is input to the target device;
[0099] The recognition unit 1704 is used to perform character recognition on the frame images in the target video, obtain the first frame image in which the tail character in the first information appears, and determine the first timestamp corresponding to the first frame image, wherein the first information is part or all of the information obtained by the target device performing voice recognition on the target voice command and displayed on the display screen, the first information is the same as the second information, and the second information is the information represented by the target voice command;
[0100] The determining unit 1706 is configured to determine the voice command execution time of the target device according to the first timestamp corresponding to the first frame image and the second timestamp corresponding to the second frame image.
[0101] It can be understood that in some examples, the start and end time points of the target device's recognition of the target voice command are accurate. When the target device recognizes the content of the target voice command accurately, the target information recognized by the target device is the second information. At this time, the first information can be all the information obtained by the target device through voice recognition of the target voice command and displayed on the display screen. Figure 4A As shown, the first information can be all text information obtained by the target device 400 performing voice recognition on the target voice command and displayed on the screen of the target device 400, such as the text information displayed in the voice command display box 402, that is, the second information ("I want to watch XXX's movie").
[0102] In other examples, the start and end time points of the target device's recognition of the target voice command may be inaccurate. The start time point of the recognition may be too early (in this case, the target device may have recognized other characters before recognizing the character that is the same as the first character of the second information), or the end time point of the recognition may be too late (in this case, after the recognized characters include the second information, the target device may have recognized other characters). Figure 4B As shown, when the target device 400 recognizes the target voice command, the entire information displayed on the display screen is "I want to watch XXX's movie at this time". Then, when the target device recognizes the content of the target voice command accurately, the target information recognized by the target device includes the second information and other information ("at this time"). At this time, the first information is only part of the information obtained by the target device 400 through voice recognition of the target voice command and displayed on the display screen. Figure 4B As shown, the first information may be partial text information obtained by the target device 400 performing voice recognition on the target voice command and displayed on the screen of the target device 400, such as the partial text information displayed in the voice command display box 402, that is, the second information ("I want to watch XXX's movie").
[0103] In one or more embodiments, the display screen of the target device may be recorded by, but is not limited to, a mobile phone, a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, and the like. The target device may include a television, a mobile phone, a laptop computer, and other electronic devices, which are not limited here. In this embodiment, for example, Figure 4A or Figure 4BAs shown, the target video can be obtained by recording the display screen of the target device 400 through the mobile device 404. The above-mentioned target video includes the picture displayed on the display screen when a voice command (the text "I want to watch a movie of XXX" in the voice command display box 402) is input to the target device 400.
[0104] Optionally, in one embodiment, the target device can be multiple electronic devices; for example, as Figure 5 shown, the target video is obtained by recording the display screens of the first target device 502 and the second target device 504 through the mobile device 500, and the target video includes the display screens of both the first target device 502 and the second target device 504.
[0105] In one or more embodiments, performing character recognition on the frame images in the target video may include, but is not limited to, recognizing the text characters in the frame images through optical character recognition (OCR). As Figure 4A shown, in this embodiment, the first information can be the text information obtained by performing voice recognition on the target voice command by the target device 400 and displayed on the screen of the target device 400, such as the text information (such as "I want to watch a movie of XXX") displayed in the voice command display box 402. As Figure 6 shown, after performing OCR recognition on multiple frame images in the target video, the characters included in each frame image can be obtained, and the first character can be recorded. The frame image where the last character appears is used as the first frame image. In Figure 6 the first frame image is the frame image corresponding to the 6th second in the target video, and this image includes the last character "movie" of the first information. It can be obtained that the timestamp corresponding to the first frame image is 6s.
[0106] In one or more embodiments, the second timestamp represents the completion time when the above-mentioned target device loads the target page in response to the above-mentioned target voice command, and the second frame image is the frame image in the above-mentioned target video that first displays the above-mentioned target page. For example, as Figure 7 shown, in the screen of the target device 700, the voice command display box 702 displays the voice command information "I want to watch a movie of XXX". In response to the above-mentioned voice command, the target page 704 is displayed on the screen of the target device 700, and a movie window of XXX is displayed in the target page 704. At this time, the second frame image can be the frame image in the target video that first appears the above-mentioned target page. As Figure 8As shown, in the screen of the target device 800, the voice command display box 802 displays the voice command information "How is the weather today?" In response to the above voice command, the target page 804 is displayed on the screen of the target device 800 as the interface of the weather application, which displays the weather information of the day. In one or more embodiments, the target page can be a display page of multiple applications, which is not limited here;
[0107] In one or more embodiments, Figure 6 As shown, the above-mentioned voice command execution time recognition device 1700 can obtain the text information display area in each frame image and the timestamp corresponding to each frame image after OCR recognition of multiple frames of images in the target video, and record the frame number, frame timestamp and the characters corresponding to the text information display area in each frame image into a preset table.
[0108] In the embodiment of the present application, by performing character recognition on the frame images in the target video, the first frame image in which the tail character in the first information appears is obtained, and the frame image in which the target page is first displayed in the target video is used as the second frame image, and the voice command execution time of the target device is determined according to the timestamps corresponding to the first frame image and the second frame image. This avoids manual participation in the confirmation of the voice command execution time, greatly improves the recognition efficiency of the voice command execution time of the target device, saves recognition time, and solves the technical problem of low recognition efficiency of the voice command execution time in the related art.
[0109] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned method for recognizing the execution time of a voice instruction is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a server as an example. Fig.18 As shown, the electronic device includes a memory 1802 and a processor 1804. The memory 1802 stores a computer program, and the processor 1804 is configured to execute the steps in any of the above method embodiments through the computer program.
[0110] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0111] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0112] S1, obtaining a target video obtained by recording a display screen of a target device, wherein the target video includes a picture displayed on the display screen when a target voice command is input to the target device;
[0113] S2, performing character recognition on the frame images in the target video to obtain the first frame image in which the tail character in the first information appears, and determining a first timestamp corresponding to the first frame image, wherein the first information is part or all of the information obtained by the target device performing voice recognition on the target voice command and displayed on the display screen, the first information is the same as the second information, and the second information is the information represented by the target voice command;
[0114] S3, determining a second timestamp corresponding to a second frame image based on a frame image located after the first frame image in the target video, wherein the second timestamp indicates the completion time of loading the target page by the target device in response to the target voice command, and the second frame image is a frame image that displays the target page for the first time in the target video.
[0115] Alternatively, a person skilled in the art may understand that: Fig.18 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, and other terminal devices. Fig.18 The electronic device and the electronic equipment described above are not limited in structure. Fig.18 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.18 Different configurations are shown.
[0116] Among them, the memory 1802 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for identifying the execution time of voice instructions in the embodiments of the present application. The processor 1804 executes various functional applications and data processing by running the software programs and modules stored in the memory 1802, that is, realizing the above-mentioned method for identifying the execution time of voice instructions. The memory 1802 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1802 may further include a memory remotely located relative to the processor 1804, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1802 can be specifically, but not limited to, used for target video and other information. As an example, such as Fig.18As shown, the memory 1802 may include, but is not limited to, the acquisition unit 1702, the recognition unit 1704, and the determination unit 1706 in the voice command execution time recognition device 1700. In addition, other module units in the voice command execution time recognition device may also be included but are not limited to, which will not be repeated in this example.
[0117] Optionally, the transmission device 1806 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1806 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1806 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0118] In addition, the electronic device further includes: a display 1808 for displaying the target video; and a connection bus 1810 for connecting various module components in the electronic device.
[0119] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.
[0120] In one or more embodiments, the present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned method for identifying the execution time of the voice instruction. Wherein, the computer program is configured to execute the steps of any of the above-mentioned method embodiments when running.
[0121] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0122] S1, obtaining a target video obtained by recording a display screen of a target device, wherein the target video includes a picture displayed on the display screen when a target voice command is input to the target device;
[0123] S2, performing character recognition on the frame images in the target video to obtain the first frame image in which the tail character in the first information appears, and determining a first timestamp corresponding to the first frame image, wherein the first information is part or all of the information obtained by the target device performing voice recognition on the target voice command and displayed on the display screen, the first information is the same as the second information, and the second information is the information represented by the target voice command;
[0124] S3, determining a second timestamp corresponding to a second frame image based on a frame image located after the first frame image in the target video, wherein the second timestamp indicates the completion time of loading the target page by the target device in response to the target voice command, and the second frame image is a frame image that displays the target page for the first time in the target video.
[0125] Optionally, in this embodiment, a person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc. The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0126] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0127] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0128] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0131] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for identifying the execution time of a voice command, characterized in that: include: Acquire a target video obtained by recording a display screen of a target device, wherein the target video includes a picture displayed on the display screen when a target voice command is input to the target device; Performing character recognition on the frame images in the target video to obtain the first frame image in which the tail character in the first information appears, and determining a first timestamp corresponding to the first frame image, wherein the first information is part or all of the information obtained by the target device performing voice recognition on the target voice command and displayed on the display screen, the first information is the same as the second information, and the second information is the information represented by the target voice command; A second timestamp corresponding to a second frame image is determined based on a frame image located after the first frame image in the target video, wherein the second timestamp indicates the completion time when the target device loads the target page in response to the target voice command, and the second frame image is a frame image in which the target page is displayed for the first time in the target video.
2. The method according to claim 1, characterized in that The determining, according to a frame image located after the first frame image in the target video, a second timestamp corresponding to a second frame image includes: When the current frame image after the first frame image is different from the previous frame image, and the current frame image and the frame images within a preset time length after the current frame image are the same, the current frame image is determined as the second frame image, and the second timestamp corresponding to the second frame image is determined.
3. The method according to claim 1, characterized in that The determining, according to a frame image located after the first frame image in the target video, a second timestamp corresponding to a second frame image includes: Starting from the next frame image of the first frame image, the following recognition steps are repeatedly performed, wherein the next frame image is the current frame image: Save the timestamp corresponding to the current frame image; Comparing whether the current frame image is the same as the next frame image of the current frame image; When the current frame image is different from the next frame image of the current frame image, setting the next frame image of the current frame image as the current frame image; When the current frame image is identical to the next frame image of the current frame image, if the current frame image is identical to frame images within a preset time length after the current frame image, the current frame image is determined to be the second frame image, and the timestamp corresponding to the current frame image is determined to be the second timestamp, and the identification step is terminated.
4. The method according to claim 3, characterized in that The step of repeatedly performing the recognition step starting from the next frame image of the first frame image also includes: When the current frame image is different from a third frame image within a preset time length after the current frame image, and the current frame image is the same as a frame image before the third frame image, the third frame image is set as the current frame image.
5. The method according to any one of claims 1 to 4, characterized in that The step of performing character recognition on the frame image in the target video to obtain the first frame image in which the tail character in the first information appears includes: Character recognition is performed on a preset target display area in a frame image in the target video, the tail character is recognized, and the first frame image in which the tail character appears is determined, wherein the target display area is an area for displaying the first information.
6. The method according to claim 5, characterized in that The method further comprises: performing character recognition on a preset target display area in a frame image in the target video, recognizing the tail character, and determining before the first frame image in which the tail character appears: Determining a preset area in the target device, wherein the preset area is used to display information obtained by the target device performing voice recognition on an input voice instruction; The preset area is determined as the target display area.
7. The method according to any one of claims 1 to 4, characterized in that The step of performing character recognition on the frame image in the target video to obtain the first frame image in which the tail character in the first information appears includes: When the recognized characters include the second information and the last character in the second information is not recognized in the frame image before the current frame image, the character in the recognized characters that is the same as the last character in the second information is determined as the last character in the first information, and the current frame image is determined as the first frame image.
8. The method according to any one of claims 1 to 4, characterized in that The method further comprises: When the target video is a single video, the voice command execution time of the target device is determined to include: the first timestamp and the second timestamp, or the time interval between the first timestamp and the second timestamp; When the target video is a plurality of videos, the voice command execution time of the target device is determined to include: an average value of a plurality of first timestamps determined based on the plurality of videos and an average value of a plurality of second timestamps determined based on the plurality of videos, or an average value of the time interval between the first timestamp and the second timestamp determined based on the plurality of videos.
9. A device for identifying the execution time of a voice command, characterized in that: include: an acquisition unit, configured to acquire a target video obtained by recording a display screen of a target device, wherein the target video includes a picture displayed on the display screen when a target voice command is input to the target device; a recognition unit, configured to perform character recognition on a frame image in the target video, obtain a first frame image in which a tail character in the first information appears, and determine a first timestamp corresponding to the first frame image, wherein the first information is part or all of the information obtained by the target device performing voice recognition on the target voice command and displayed on the display screen, the first information is the same as the second information, and the second information is the information represented by the target voice command; A determination unit is used to determine a second timestamp corresponding to a second frame image based on a frame image located after the first frame image in the target video, wherein the second timestamp indicates the completion time of the target device loading the target page in response to the target voice command, and the second frame image is the frame image of the target page displayed for the first time in the target video.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program.
Citation Information
Patent Citations
Text information extraction method and device, electronic equipment and storage medium
CN112101353A
Text detection method and device
CN112749696A
Information processing method and electronic device
US20140294367A1
Target character video clip playback method, system and apparatus, and storage medium
WO2020135643A1
