CN113542833A - Video playing method, device and equipment based on face recognition and storage medium - Google Patents

Video playing method, device and equipment based on face recognition and storage medium Download PDF

Info

Publication number
CN113542833A
CN113542833A CN202110755211.6A CN202110755211A CN113542833A CN 113542833 A CN113542833 A CN 113542833A CN 202110755211 A CN202110755211 A CN 202110755211A CN 113542833 A CN113542833 A CN 113542833A
Authority
CN
China
Prior art keywords
video
target
frame
playing
face recognition
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.)
Withdrawn
Application number
CN202110755211.6A
Other languages
Chinese (zh)
Inventor
杨倩文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202110755211.6A priority Critical patent/CN113542833A/en
Publication of CN113542833A publication Critical patent/CN113542833A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42201Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS] biosensors, e.g. heat sensor for presence detection, EEG sensors or any limb activity sensors worn by the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Chemical & Material Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • General Health & Medical Sciences (AREA)
  • Neurosurgery (AREA)
  • Health & Medical Sciences (AREA)
  • Image Analysis (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention belongs to the field of video playing, and discloses a video playing method, a video playing device, video playing equipment and a storage medium based on face recognition. The method comprises the following steps: displaying a preset information import prompt when a picture screening instruction triggered by a user based on a client interface is received; acquiring a reference image file input by a user based on the preset information import prompt; carrying out face recognition on the reference image file to obtain face characteristic information; and selecting a target image frame from a video to be played according to the face feature information, and playing the target image frame. According to the invention, the target image frame is selected from the video to be played according to the face feature information, and the target image frame is played, so that the current video only plays the video clip related to the reference image file imported by the user, and the video clip not concerned by the user is automatically skipped, thereby improving the film watching experience of the user with related requirements.

Description

Video playing method, device and equipment based on face recognition and storage medium
Technical Field
The present invention relates to the field of video playing technologies, and in particular, to a video playing method, apparatus, device, and storage medium based on face recognition.
Background
At present, various types of videos such as movies, television shows, fantasy, reality shows and the like are produced, and viewing preferences of users are various, wherein a common situation is that a user prefers a certain actor or a star at a certain stage and tends to actively search related videos of the actor or the star, and the user may want to skip other branch plots in a currently played video program and concentrate time and energy only to pay attention to a time period in which the favorite actor or star appears due to different personal experience requirements; or manually intercepting the relative lens of the actor or the star from a complete video in order to collect the propaganda materials for the favorite actor or star, and the like.
In order to meet the above requirements, there are two methods supported by the current mainstream video client: firstly, by operating a video progress bar, an unimportant video segment is manually skipped; and secondly, video speed-doubling playing is set, so that the time wasted on unimportant video clips is reduced. The obvious disadvantages of the above methods are: the user operation is frequent, the video clips actually required by the user can be skipped accidentally, and the sound effect experience is influenced by the double-speed playing.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a video playing method, a video playing device, video playing equipment and a video playing storage medium based on face recognition, and aims to solve the technical problems of complex operation and poor experience when a user selects a video clip which the user wants to watch in the prior art.
In order to achieve the above object, the present invention provides a video playing method based on face recognition, which comprises the following steps:
displaying a preset information import prompt when a picture screening instruction triggered by a user based on a client interface is received;
acquiring a reference image file input by a user based on the preset information import prompt;
carrying out face recognition on the reference image file to obtain face characteristic information;
and selecting a target image frame from a video to be played according to the face feature information, and playing the target image frame.
Optionally, the step of selecting a target image frame from a video to be played according to the facial feature information and playing the target image frame includes:
acquiring an image frame corresponding to a video to be played;
selecting a target image frame from the image frames according to the face feature information;
and generating a target video clip according to the target image frame, and playing the target video clip.
Optionally, the step of generating a target video segment according to the target image frame and playing the target video segment includes:
determining a target frame sequence number corresponding to the target image frame;
selecting a frame to be played from the image frames according to a preset selection strategy and the target frame sequence number;
generating a target video clip according to the frame to be played;
and generating a target playing video according to the target frame sequence number and the target video clip, and playing the target playing video.
Optionally, the step of acquiring the reference image file input by the user based on the preset information import prompt includes:
acquiring a search instruction input by a user based on the preset information import prompt, and determining a search keyword according to the search instruction;
searching a corresponding image file to be selected according to the search keyword, and displaying the image file to be selected;
and acquiring a target image file selected by the user based on the displayed image file to be selected, and taking the target image file as the reference image file.
Optionally, before the step of performing face recognition on the reference image file to obtain face feature information, the method further includes:
acquiring an image file format of the reference image file;
judging whether the image file format is a preset format or not;
when the image file format is a preset format, acquiring the definition of an image in the reference image file;
and when the definition is greater than a preset definition threshold value, executing the step of carrying out face recognition on the reference image file to obtain face characteristic information.
Optionally, the step of generating a target video segment according to the target image frame and playing the target video segment includes:
determining an image frame sequence number corresponding to the target image frame according to the video playing sequence of the video to be played;
determining interval frame information of two adjacent frames in the target image frame according to the image frame sequence number;
determining a target video clip frame according to the interval frame information;
and generating a target video clip according to the target video clip frame, and playing the target video clip.
Optionally, the step of determining a target video segment frame according to the interval frame information includes:
judging whether the number of interval frames in the interval frame information is less than a preset frame number threshold value or not;
when the number of the interval frames is smaller than the preset frame number threshold, determining target interval frames according to the interval frame information;
and determining a target video segment frame according to the target interval frame and the target image frame.
In addition, in order to achieve the above object, the present invention further provides a video playing device based on face recognition, the device comprising:
the display module is used for displaying a preset information import prompt when receiving a picture screening instruction triggered by a user based on a client interface;
the acquisition module is used for acquiring a reference image file input by a user based on the preset information import prompt;
the identification module is used for carrying out face identification on the reference image file to obtain face characteristic information;
and the playing module is used for selecting a target image frame from a video to be played according to the face feature information and playing the target image frame.
In addition, in order to achieve the above object, the present invention further provides a video playing device based on face recognition, where the video playing device includes: the system comprises a memory, a processor and a video playing program based on face recognition, wherein the video playing program based on face recognition is stored in the memory and can run on the processor, and is configured to realize the steps of the video playing method based on face recognition.
In addition, in order to achieve the above object, the present invention further provides a storage medium, where a video playing program based on face recognition is stored, and when the video playing program based on face recognition is executed by a processor, the steps of the video playing method based on face recognition as described above are implemented.
When a picture screening instruction triggered by a user based on a client interface is received, displaying a preset information import prompt; acquiring a reference image file input by a user based on the preset information import prompt; carrying out face recognition on the reference image file to obtain face characteristic information; and selecting a target image frame from a video to be played according to the face feature information, and playing the target image frame. According to the invention, the target image frame is selected from the video to be played according to the face feature information, and the target image frame is played, so that the current video only plays the video clip related to the reference image file imported by the user, and the video clip not concerned by the user is automatically skipped, thereby improving the film watching experience of the user with related requirements.
Drawings
Fig. 1 is a schematic structural diagram of a video playing device based on face recognition in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flowchart of a video playing method based on face recognition according to a first embodiment of the present invention;
FIG. 3 is a schematic view of a playing setting interface in a first embodiment of a video playing method based on face recognition according to the present invention;
FIG. 4 is a schematic flowchart of a video playing method based on face recognition according to a second embodiment of the present invention;
fig. 5 is a block diagram of a video playing apparatus based on face recognition according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a video playing device based on face recognition in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the video playing device based on face recognition may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of a video playback device based on face recognition, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a video playback program based on face recognition.
In the video playback device based on face recognition shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the video playing device based on face recognition of the present invention may be disposed in the video playing device based on face recognition, and the video playing device based on face recognition calls the video playing program based on face recognition stored in the memory 1005 through the processor 1001, and executes the video playing method based on face recognition provided by the embodiment of the present invention.
Based on the video playing device based on face recognition, an embodiment of the present invention provides a video playing method based on face recognition, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the video playing method based on face recognition according to the present invention.
In this embodiment, the video playing method based on face recognition includes the following steps:
step S10: and displaying a preset information import prompt when receiving a picture screening instruction triggered by a user based on a client interface.
It should be noted that the execution main body of the embodiment may be a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, an upper computer, or an electronic device or a video playing device capable of implementing the above functions. The present embodiment and the following embodiments will be described below by taking the video playback apparatus as an example.
It should be noted that the picture screening instruction may be an instruction triggered by the user and required to intelligently select a currently played video according to information or pictures specified by the user. The preset information import prompt may be a preset prompt message or a preset picture for prompting a user to import information.
In specific implementation, referring to fig. 3, fig. 3 is a schematic view of a playing setting interface in a first embodiment of a video playing method based on face recognition according to the present invention. When a user plays a video, the user can trigger the setting parameters for screening according to the target task, and when the user starts the screening according to the target task, the user can display an inlet for importing an image and prompt information, for example, importing a face image to be identified from the local.
Step S20: and acquiring a reference image file input by a user based on the preset information import prompt.
The reference image file may be an image file imported by a user.
Further, in order to improve the experience of the user and the agility when the smart video is played, the step of obtaining the reference image file input by the user based on the preset information import prompt includes: acquiring a search instruction input by a user based on the preset information import prompt, and determining a search keyword according to the search instruction; searching a corresponding image file to be selected according to the search keyword, and displaying the image file to be selected; and acquiring a target image file selected by the user based on the displayed image file to be selected, and taking the target image file as the reference image file.
It should be noted that the search instruction may be search information of a user, and may be acquired by means of voice recognition or text input, which is not limited herein. The search keyword may be a search keyword extracted according to the search instruction, for example, when the user inputs search information in a voice manner, the user needs to perform processing such as noise reduction and redundant information removal on the voice of the user to extract the search keyword. The image files to be selected may be some images to be selected related to the search keyword, which are searched on the network according to the search keyword. And the target image file is an image file selected by the user based on the displayed image file to be selected. Wherein, the target image file can be one or more. The embodiment is not limited herein.
Step S30: and carrying out face recognition on the reference image file to obtain face characteristic information.
It should be understood that the face recognition of the reference image file may be to extract face features from an image in the reference image file by using an existing face recognition technology, so as to obtain face feature information.
Further, in order to make the extracted face feature information more accurate, before the step of performing face recognition on the reference image file to obtain the face feature information, the method further includes: acquiring an image file format of the reference image file; judging whether the image file format is a preset format or not; when the image file format is a preset format, acquiring the definition of an image in the reference image file; and when the definition is greater than a preset definition threshold value, executing the step of carrying out face recognition on the reference image file to obtain face characteristic information.
It should be noted that the preset format may be a file format currently recognizable by the video playback device, such as jpg, png, and the like, and the image file format may be a format of an image in the reference image file. The preset definition threshold may be a definition which is tested in advance and can accurately extract the face feature information. When the definition is greater than a preset definition threshold value, the face feature information can be generally and accurately extracted. When the face feature information is not accurately extracted due to the definition being less than or equal to the preset definition threshold, the user can be reminded to search, select or upload the reference image file again. When the format of the image file is not the preset format, the user can be directly prompted whether format conversion needs to be carried out on the image in the reference image file, and when an instruction for confirming the format conversion by the user is received, the format of the image in the reference image file is converted into the preset format.
Step S40: and selecting a target image frame from a video to be played according to the face feature information, and playing the target image frame.
It should be noted that the video to be played may be a video currently being played or another video file designated by the user, and when the number of the reference image files uploaded by the user is more than one, the user may be prompted to set the playing parameters, for example, the target image frame may be directly played according to the image frame number of the target image frame in the video to be played, or the target image frame corresponding to one of the face feature information may be played first by designating the playing sequence. And playing the target image frame corresponding to the next human face feature information after playing.
In specific implementation, selecting a target image frame from a video to be played according to the face feature information requires extracting face recognition features of each image frame constituting the video to be played, matching the face feature information with the face recognition features corresponding to each image frame of the video to be played, and the image frame in the video to be played which is successfully matched is the target image frame. And sequentially playing the target image frames according to the sequence numbers corresponding to the target image frames. For example, 100 image frames corresponding to a video to be played are sorted according to a playing sequence, the number corresponding to the image frame played at the beginning is 1, the number corresponding to the last image frame in the video is 100, each image frame corresponds to a number, if there are 6 target image frames successfully matched, the numbers corresponding to the image frames are 1, 6, 9, 30, 50, and 55, and playing the target image frames may be sequentially played according to the numbers, that is, the target image frame with the number of 1 is at the head of the slice, and the target image frame with the number of 55 is at the tail of the slice. During playing, playing can also be performed according to the playing parameters set by the user, for example, when the user sets reverse playing, that is, the target image frame with the sequence number of 55 is at the head of the movie, and the target image frame with the sequence number of 1 is at the tail of the movie. When the user has an instruction to view the target image frame, the target image frame can be displayed.
The method comprises the steps that when a picture screening instruction triggered by a user based on a client interface is received, a preset information import prompt is displayed; acquiring a reference image file input by a user based on the preset information import prompt; carrying out face recognition on the reference image file to obtain face characteristic information; and selecting a target image frame from a video to be played according to the face feature information, and playing the target image frame. In the embodiment, the target image frame is selected from the video to be played according to the face feature information, and the target image frame is played, so that the current video only plays the video clip related to the reference image file imported by the user, and the video clip not concerned by the user is automatically skipped, thereby improving the viewing experience of the user with the related requirements.
Referring to fig. 4, fig. 4 is a schematic flowchart of a video playing method based on face recognition according to a second embodiment of the present invention.
Based on the first embodiment described above, in the present embodiment, the step S40 includes:
step S401: and acquiring an image frame corresponding to the video to be played.
It should be understood that a video is composed of a plurality of image frames, and thus, the image frames may be all the image frames constituting the video to be played.
Step S402: and selecting a target image frame from the image frames according to the face feature information.
It should be understood that, selecting a target image frame from the image frames according to the face feature information requires face recognition feature extraction on the image frames to obtain the face features of each image frame. And matching the face feature information with the face features of the image frames, wherein the image frames successfully matched are the target image frames.
Step S403: and generating a target video clip according to the target image frame, and playing the target video clip.
Further, in order to make the generated target video segment more desirable to the user, the step of generating the target video segment according to the target image frame and playing the target video segment includes: determining a target frame sequence number corresponding to the target image frame; selecting a frame to be played from the image frames according to a preset selection strategy and the target frame sequence number; generating a target video clip according to the frame to be played; and generating a target playing video according to the target frame sequence number and the target video clip, and playing the target playing video.
It should be noted that the preset selection policy may be to select a preset number of frames before and after the target frame sequence number as the frames to be played, for example, if the target frame sequence number is 10 and the preset number is defined as 5, select frames with sequence numbers of 5 to 15 as the frames to be played. The generation of the target video segment according to the frame to be played may be a generation of a target video segment according to a frame to be played corresponding to a target image frame, generally, the number of the target image frames is equal to the number of the generated target video segments, but in a special case, for example, if the sequence number of the frame to be played corresponding to the first target image frame is 5-15, and the sequence number of the frame to be played corresponding to the second target image frame is 10-20, the two frames to be played have a superposed portion, and in order not to affect the viewing experience of a user, the superposed portion is automatically removed, that is, a target video segment is directly generated according to the 5 th-20 th frames. At this time, the number of target image frames is greater than the number of generated target video segments. The generating of the target playing video according to the target frame number and the target video clip may be sequentially connecting the target video clips from small to large according to the target frame number to generate the target playing video.
Further, in order to make the generated target video segment more smooth, the step of generating the target video segment according to the target image frame and playing the target video segment includes: determining an image frame sequence number corresponding to the target image frame according to the video playing sequence of the video to be played; determining interval frame information of two adjacent frames in the target image frame according to the image frame sequence number; determining a target video clip frame according to the interval frame information; and generating a target video clip according to the target video clip frame, and playing the target video clip.
It should be noted that, determining the image frame sequence number corresponding to the target image frame according to the video playing sequence of the video to be played may be sorting the image frames constituting the video to be played according to the sequence of the image frames in the video to be played, so that each frame corresponds to one sequence number, and obtaining the image frame sequence number corresponding to the target image frame. The interval frame information is information such as the number of interval frames spaced between every two adjacent target image frames. Determining whether the number of interval frames in the interval frame information is smaller than a preset frame number threshold value or not according to the interval frame information; when the number of the interval frames is smaller than the preset frame number threshold, determining target interval frames according to the interval frame information; and determining a target video segment frame according to the target interval frame and the target image frame.
It should be noted that the preset frame number threshold may be a predefined number, so that when the number of the interval frames is small, the video segment does not need to be divided, for example, when a certain video is played, the middle two frames of shots may be turned to other places, and the face image specified by the user does not appear, but the number of the interval frames is small, and in order to make the video look smoother, when the target video segment frame is generated, several of the interval frames are not removed.
In a specific implementation, for example, the image frame numbers corresponding to the target image frames are 2,6,10, and 30, the preset frame number threshold is 5 frames, and the number of the interval frames is 4,4, and 20, respectively, then the target interval frames are 3-5 and 7-9, and the target video segment frames determined according to the target interval frames and the target image frames are 2-10 and 30. A target video clip is generated from the target video clip frames 2-10 and 30 and played. When the target video clip frame is a single frame, in order to make the video more smooth and meaningful, the first frames or the last frames in the target video clip frame can be selected to jointly generate the target video clip.
The embodiment acquires an image frame corresponding to a video to be played; selecting a target image frame from the image frames according to the face feature information; and generating a target video clip according to the target image frame, and playing the target video clip. In addition, in the embodiment, two implementation modes are provided for generating the target video clip according to the target image frame and playing the target video clip, so that the generated target video clip is smoother, and the phenomenon that a single frame of picture cannot well improve the viewing experience is avoided.
Referring to fig. 5, fig. 5 is a block diagram of a video playing apparatus based on face recognition according to a first embodiment of the present invention.
As shown in fig. 5, a video playing apparatus based on face recognition according to an embodiment of the present invention includes:
the display module 10 is configured to display a preset information import prompt when a picture screening instruction triggered by a user based on a client interface is received;
an obtaining module 20, configured to obtain a reference image file input by a user based on the preset information import prompt;
the recognition module 30 is configured to perform face recognition on the reference image file to obtain face feature information;
and the playing module 40 is configured to select a target image frame from a video to be played according to the face feature information, and play the target image frame.
The method comprises the steps that when a picture screening instruction triggered by a user based on a client interface is received, a preset information import prompt is displayed; acquiring a reference image file input by a user based on the preset information import prompt; carrying out face recognition on the reference image file to obtain face characteristic information; and selecting a target image frame from a video to be played according to the face feature information, and playing the target image frame. In the embodiment, the target image frame is selected from the video to be played according to the face feature information, and the target image frame is played, so that the current video only plays the video clip related to the reference image file imported by the user, and the video clip not concerned by the user is automatically skipped, thereby improving the viewing experience of the user with the related requirements.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the parameter operation method provided in any embodiment of the present invention, and are not described herein again.
Based on the first embodiment of the video playing device based on face recognition, the present invention provides a second embodiment of the video playing device based on face recognition.
In this embodiment, the playing module 40 is further configured to obtain an image frame corresponding to a video to be played; selecting a target image frame from the image frames according to the face feature information; and generating a target video clip according to the target image frame, and playing the target video clip.
Further, the playing module 40 is further configured to determine a target frame sequence number corresponding to the target image frame; selecting a frame to be played from the image frames according to a preset selection strategy and the target frame sequence number; generating a target video clip according to the frame to be played; and generating a target playing video according to the target frame sequence number and the target video clip, and playing the target playing video.
Further, the obtaining module 20 is further configured to obtain a search instruction input by a user based on the preset information import prompt, and determine a search keyword according to the search instruction; searching a corresponding image file to be selected according to the search keyword, and displaying the image file to be selected; and acquiring a target image file selected by the user based on the displayed image file to be selected, and taking the target image file as the reference image file.
Further, the identification module 30 is further configured to obtain an image file format of the reference image file; judging whether the image file format is a preset format or not; when the image file format is a preset format, acquiring the definition of an image in the reference image file; and when the definition is greater than a preset definition threshold value, carrying out face recognition on the reference image file to obtain face characteristic information.
Further, the playing module 40 is further configured to determine an image frame sequence number corresponding to the target image frame according to the video playing sequence of the video to be played; determining interval frame information of two adjacent frames in the target image frame according to the image frame sequence number; determining a target video clip frame according to the interval frame information; and generating a target video clip according to the target video clip frame, and playing the target video clip.
Further, the playing module 40 is further configured to determine whether the number of interval frames in the interval frame information is smaller than a preset frame number threshold; when the number of the interval frames is smaller than the preset frame number threshold, determining target interval frames according to the interval frame information; and determining a target video segment frame according to the target interval frame and the target image frame.
Other embodiments or specific implementation manners of the video playing device based on face recognition may refer to the above method embodiments, and are not described herein again.
In addition, an embodiment of the present invention further provides a storage medium, where a video playing program based on face recognition is stored on the storage medium, and when being executed by a processor, the video playing program based on face recognition implements the steps of the video playing method based on face recognition.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A video playing method based on face recognition is characterized by comprising the following steps:
displaying a preset information import prompt when a picture screening instruction triggered by a user based on a client interface is received;
acquiring a reference image file input by a user based on the preset information import prompt;
carrying out face recognition on the reference image file to obtain face characteristic information;
and selecting a target image frame from a video to be played according to the face feature information, and playing the target image frame.
2. The video playing method based on face recognition as claimed in claim 1, wherein the step of selecting a target image frame from the video to be played according to the face feature information and playing the target image frame comprises:
acquiring an image frame corresponding to a video to be played;
selecting a target image frame from the image frames according to the face feature information;
and generating a target video clip according to the target image frame, and playing the target video clip.
3. The video playing method based on face recognition as claimed in claim 2, wherein the step of generating a target video segment according to the target image frame and playing the target video segment comprises:
determining a target frame sequence number corresponding to the target image frame;
selecting a frame to be played from the image frames according to a preset selection strategy and the target frame sequence number;
generating a target video clip according to the frame to be played;
and generating a target playing video according to the target frame sequence number and the target video clip, and playing the target playing video.
4. The video playing method based on face recognition as claimed in claim 1, wherein the step of obtaining the reference image file input by the user based on the preset information import prompt comprises:
acquiring a search instruction input by a user based on the preset information import prompt, and determining a search keyword according to the search instruction;
searching a corresponding image file to be selected according to the search keyword, and displaying the image file to be selected;
and acquiring a target image file selected by the user based on the displayed image file to be selected, and taking the target image file as the reference image file.
5. The video playing method based on face recognition as claimed in claim 1, wherein before the step of performing face recognition on the reference image file to obtain the face feature information, the method further comprises:
acquiring an image file format of the reference image file;
judging whether the image file format is a preset format or not;
when the image file format is a preset format, acquiring the definition of an image in the reference image file;
and when the definition is greater than a preset definition threshold value, executing the step of carrying out face recognition on the reference image file to obtain face characteristic information.
6. The video playing method based on face recognition as claimed in claim 2, wherein the step of generating a target video segment according to the target image frame and playing the target video segment comprises:
determining an image frame sequence number corresponding to the target image frame according to the video playing sequence of the video to be played;
determining interval frame information of two adjacent frames in the target image frame according to the image frame sequence number;
determining a target video clip frame according to the interval frame information;
and generating a target video clip according to the target video clip frame, and playing the target video clip.
7. The video playing method based on face recognition as claimed in claim 6, wherein the step of determining the target video segment frame according to the interval frame information comprises:
judging whether the number of interval frames in the interval frame information is less than a preset frame number threshold value or not;
when the number of the interval frames is smaller than the preset frame number threshold, determining target interval frames according to the interval frame information;
and determining a target video segment frame according to the target interval frame and the target image frame.
8. A video playing device based on face recognition is characterized in that the video playing device based on face recognition comprises:
the display module is used for displaying a preset information import prompt when receiving a picture screening instruction triggered by a user based on a client interface;
the acquisition module is used for acquiring a reference image file input by a user based on the preset information import prompt;
the identification module is used for carrying out face identification on the reference image file to obtain face characteristic information;
and the playing module is used for selecting a target image frame from a video to be played according to the face feature information and playing the target image frame.
9. A video playback device based on face recognition, the device comprising: a memory, a processor and a video playing program based on face recognition stored on the memory and operable on the processor, the video playing program based on face recognition being configured to implement the steps of the video playing method based on face recognition according to any one of claims 1 to 7.
10. A storage medium, wherein the storage medium stores thereon a video playing program based on face recognition, and the video playing program based on face recognition realizes the steps of the video playing method based on face recognition according to any one of claims 1 to 7 when being executed by a processor.
CN202110755211.6A 2021-07-01 2021-07-01 Video playing method, device and equipment based on face recognition and storage medium Withdrawn CN113542833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110755211.6A CN113542833A (en) 2021-07-01 2021-07-01 Video playing method, device and equipment based on face recognition and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110755211.6A CN113542833A (en) 2021-07-01 2021-07-01 Video playing method, device and equipment based on face recognition and storage medium

Publications (1)

Publication Number Publication Date
CN113542833A true CN113542833A (en) 2021-10-22

Family

ID=78126651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110755211.6A Withdrawn CN113542833A (en) 2021-07-01 2021-07-01 Video playing method, device and equipment based on face recognition and storage medium

Country Status (1)

Country Link
CN (1) CN113542833A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113825023A (en) * 2021-11-02 2021-12-21 户龙辉 Video file processing method, device, equipment and storage medium
CN114866693A (en) * 2022-04-15 2022-08-05 苏州清睿智能科技股份有限公司 Information interaction method and device based on intelligent terminal
CN114866800A (en) * 2022-03-28 2022-08-05 广州博冠信息科技有限公司 Video playing control method and device and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224925A (en) * 2015-09-30 2016-01-06 努比亚技术有限公司 Video process apparatus, method and mobile terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224925A (en) * 2015-09-30 2016-01-06 努比亚技术有限公司 Video process apparatus, method and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113825023A (en) * 2021-11-02 2021-12-21 户龙辉 Video file processing method, device, equipment and storage medium
CN113825023B (en) * 2021-11-02 2023-12-05 户龙辉 Video file processing method, device, equipment and storage medium
CN114866800A (en) * 2022-03-28 2022-08-05 广州博冠信息科技有限公司 Video playing control method and device and electronic equipment
CN114866693A (en) * 2022-04-15 2022-08-05 苏州清睿智能科技股份有限公司 Information interaction method and device based on intelligent terminal
CN114866693B (en) * 2022-04-15 2024-01-05 苏州清睿智能科技股份有限公司 Information interaction method and device based on intelligent terminal

Similar Documents

Publication Publication Date Title
US11317139B2 (en) Control method and apparatus
CN113542833A (en) Video playing method, device and equipment based on face recognition and storage medium
CN103686344B (en) Strengthen video system and method
US20180213289A1 (en) Method of authorizing video scene and metadata
CN110557678B (en) Video processing method, device and equipment
CN109688475B (en) Video playing skipping method and system and computer readable storage medium
EP2728859B1 (en) Method of providing information-of-users' interest when video call is made, and electronic apparatus thereof
CN108536414A (en) Method of speech processing, device and system, mobile terminal
CN109274999A (en) A kind of video playing control method, device, equipment and medium
CN108197336B (en) Video searching method and device
US9549162B2 (en) Image processing apparatus, image processing method, and program
CN111182359A (en) Video preview method, video frame extraction method, video processing device and storage medium
US20220415360A1 (en) Method and apparatus for generating synopsis video and server
CN113778285A (en) Prop processing method, device, equipment and medium
CN113038185A (en) Bullet screen processing method and device
CN110418148B (en) Video generation method, video generation device and readable storage medium
CN114051160B (en) Video display method and device
CN113886610A (en) Information display method, information processing method and device
CN113596574A (en) Video processing method, video processing apparatus, electronic device, and readable storage medium
KR102534270B1 (en) Apparatus and method for providing meta-data
CN111954076A (en) Resource display method and device and electronic equipment
CN113537127A (en) Film matching method, device, equipment and storage medium
CN112235516B (en) Video generation method, device, server and storage medium
CN108966007B (en) Method and device for distinguishing video scenes under HDMI
CN112785381A (en) Information display method, device and equipment

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

Application publication date: 20211022

WW01 Invention patent application withdrawn after publication