CN112565863A - Video playing method and device, terminal equipment and computer readable storage medium - Google Patents

Video playing method and device, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN112565863A
CN112565863A CN202011354470.XA CN202011354470A CN112565863A CN 112565863 A CN112565863 A CN 112565863A CN 202011354470 A CN202011354470 A CN 202011354470A CN 112565863 A CN112565863 A CN 112565863A
Authority
CN
China
Prior art keywords
picture
target
video
pictures
target object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011354470.XA
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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011354470.XA priority Critical patent/CN112565863A/en
Publication of CN112565863A publication Critical patent/CN112565863A/en
Pending 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/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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Abstract

The invention discloses a video playing method, which comprises the following steps: acquiring a plurality of pictures to be identified collected in a preset time period, and judging whether a service object is a target object or not according to the pictures to be identified; if the target video is played for the target object to watch, namely, in the invention, the target video can be played for the target object to watch when the service object of the video playing device is identified as the target object according to the collected picture, so that the target object can watch the video without operation, and the user experience is improved. The invention also discloses a video playing device, terminal equipment and a computer readable storage medium, which improve the user experience.

Description

Video playing method and device, terminal equipment and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a video playing method and apparatus, a terminal device, and a computer-readable storage medium.
Background
Video is an important transmission medium for learning, work, entertainment, and the like.
In the conventional video playing device, a video is usually played after receiving an instruction issued by a user, for example, after the user clicks a certain video, the video is played. The control mode is single, and the user requirements of more and more diversifications cannot be met, so that the user experience is reduced.
Disclosure of Invention
The invention mainly aims to provide a video playing method, a video playing device, terminal equipment and a computer readable storage medium, and aims to solve the technical problems that the existing video playing control mode is single, the more and more diversified user requirements cannot be met, and the user experience is reduced.
In order to achieve the above object, the present invention provides a video playing method, which includes the following steps:
acquiring a plurality of pictures to be identified collected within a preset time period;
judging whether the service object is a target object or not according to the picture to be identified;
and if so, playing the target video for the target object to watch.
Optionally, the target object is an animal, and the step of determining whether the service object is an animal according to the picture to be recognized includes:
and judging whether animals exist in the picture to be identified and no people exist in the picture to be identified.
Optionally, the step of determining whether the service object is the target object according to the picture to be identified includes:
determining a motion area of each picture to be identified;
determining the number of target pictures in the pictures to be recognized according to the motion region, wherein the target pictures are pictures meeting preset conditions, and the target pictures are the ratio of the area of the motion region to the area of the pictures;
and judging whether the ratio of the number of the target pictures to the number of the pictures to be recognized is larger than a preset first ratio or not.
Optionally, the step of determining a motion region of each of the pictures to be recognized includes:
and comparing each picture to be identified with a preset reference picture to determine the motion area of each picture to be identified.
Optionally, if so, the step of playing the target video includes:
if yes, determining the type of a target object according to the picture to be recognized;
acquiring a target video according to the type of the target object;
and playing the target video.
Optionally, the step of determining the type of the target object according to the picture to be recognized includes:
and determining the type of the target object according to the target picture.
Optionally, the step of determining the type of the target object according to the target picture includes:
extracting a motion region part from each target picture as a target sub-picture;
carrying out graying processing on the target sub-picture;
and determining the type of a target object according to the target sub-picture after the graying processing.
In addition, to achieve the above object, the present invention further provides a video playing device, including:
the acquisition module is used for acquiring a plurality of pictures to be identified, which are acquired within a preset time period;
the judging module is used for judging whether the service object is a target object or not according to the picture to be identified;
and the playing module is used for playing the target video if the target video is the video, so that the target object can watch the target video.
In addition, to achieve the above object, the present invention further provides a terminal device, including: the video playing method comprises a memory, a processor and a video playing program which is stored on the memory and runs on the processor, wherein the video playing program realizes the steps of any one of the video playing methods when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, which stores a video playing program, and when the video playing program is executed by a processor, the video playing program implements the steps of the video playing method according to any one of the above items.
The technical scheme of the invention adopts a video playing method, and the video playing method comprises the following steps: acquiring a plurality of pictures to be identified collected in a preset time period, and judging whether a service object is a target object or not according to the pictures to be identified; if the target video is played for the target object to watch, namely, the invention provides a new video playing method, the video can be played for the target object to watch without the target object operation, thereby providing convenience for the target object which is inconvenient to operate or the target object which does not know how to operate the video playing device, and improving the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a video playing method according to a first embodiment of the invention;
fig. 3 is a flowchart illustrating a video playing method according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a video playing method according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a video playback device according to 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 terminal device in a hardware operating environment according to an embodiment of the present invention.
The terminal device may be a User Equipment (UE) such as a Mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle-mounted device, a wearable device, a computing device, a smart home device (e.g., a smart television, a refrigerator, a washing machine, an air conditioner, a range hood, etc.), a monitoring device or other processing device connected to a wireless modem, a Mobile Station (MS), etc., and the terminal device station may be a control panel light smart home device. The device may be referred to as a user terminal, portable terminal, desktop terminal, etc.
In general, a terminal device includes: at least one processor 301, a memory 302, and a video playback program stored on the memory and executable on the processor, the video playback program being configured to implement the steps of the video playback method as described in any of the following embodiments.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. The processor 301 may further include an AI (Artificial Intelligence) processor for processing operations related to the video playback method, so that the video playback method model can be trained and learned autonomously, thereby improving efficiency and accuracy.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement a video playback method provided by method embodiments herein.
In some embodiments, the terminal may further include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power source 306.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WIFI (Wireless Fidelity) networks. In some embodiments, the rf circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to capture touch signals on or over the surface of the display screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 305 may be one, the front panel of the electronic device; in other embodiments, the display screens 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display screen 305 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device. Even further, the display screen 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 305 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 306 is used to power various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology. Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a video playing program is stored on the computer-readable storage medium, and when the video playing program is executed by a processor, the steps of the video playing method as described in any of the following embodiments are implemented. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. It is determined that, by way of example, the program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
It will be understood by those skilled in the art that all or part of the processes in the method according to any of the following embodiments may be implemented by a computer program to instruct associated hardware, where the first video playing program or the second video playing program may be stored in a computer readable storage medium, and when executed, the processes may include the processes according to the following embodiments of the methods. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Based on the foregoing hardware structure, an embodiment of the video playing method of the present invention is provided.
Referring to fig. 2, fig. 2 is a schematic flowchart of a video playing method according to a first embodiment of the present invention, where the video playing method includes the following steps:
step S11: and acquiring a plurality of pictures to be identified collected in a preset time period.
It should be noted that the preset time period is a preset time period, and the specific time period of the preset time period may be flexibly set according to actual needs, for example, may be set to 10 minutes, 20 minutes, 30 minutes, and the like.
The picture to be identified is a picture of the environment where the video playing device is currently located, which is acquired through the camera within a preset time period. For example, when the video playing device is a television placed in a living room, the picture to be identified is a collected picture of the living room; when the video playing device is a television arranged in a bedroom, the picture to be identified is the collected picture of the bedroom. In an example, the video playing apparatus may be a mobile phone, an intelligent home device, and the like, and for example, the video playing apparatus may be a smart television, a smart refrigerator, a range hood including a display screen, and the like.
In this embodiment, when a plurality of pictures to be identified are collected, the plurality of pictures to be identified may be collected within a preset time period based on a preset collection frequency, where the preset collection frequency may be flexibly set according to actual needs, for example, 10 seconds per picture (i.e., collecting one picture every 10 seconds), 20 seconds per picture (i.e., collecting one picture every 10 seconds), and in an example, if the preset time period is 30 minutes and the preset collection frequency is 15 seconds per picture, one picture to be identified is collected every 15 seconds within 30 minutes. Or when a plurality of pictures to be recognized are collected, the pictures to be recognized may also be collected within a preset time period based on a preset number, where the preset number may be flexibly set according to actual needs, for example, 20 or 40 pictures may be collected, and in one example, if the preset time period is 60 minutes and the preset number is 100, 100 pictures to be recognized are collected within 60 minutes.
In some embodiments, step S11 includes: the video playing device collects a plurality of pictures to be identified through the camera in a preset time period. That is to say, video playback device includes the camera, in the time quantum that predetermines, gathers a plurality of pictures of waiting to discern through the camera.
In some embodiments, step S11 includes: and receiving a plurality of pictures to be identified, which are sent by a target terminal and collected within a preset time period. That is to say, the picture to be recognized is collected by the target terminal, and for the target terminal, the picture to be recognized may be flexibly set according to actual needs, and in one example, the picture to be recognized may be set as a terminal that is placed in the same environment as the video playing device and carries a camera, so that the target terminal may collect the picture of the environment where the video playing device is located, and use the picture as the picture to be recognized.
In this embodiment, the video playing device may obtain a plurality of pictures to be identified collected within a preset time period during the startup process; or in the operation process after the start-up, a plurality of pictures to be identified collected in the preset time period may be obtained according to the preset rule, for example, a plurality of pictures to be identified collected in the preset time period may be obtained in real time.
Step S12: and judging whether the service object is a target object or not according to the picture to be identified.
In this embodiment, the target object may be flexibly set according to actual needs.
In some embodiments, the target object may be a person, so that a video can be played for a person to watch without human operation, and convenience is provided to the person in the case where the person is inconvenient to operate the video playing device (for example, when there is something on the hand).
With the aging of the population and the increase of the number of the single population, the pet becomes one of the most important companions of the modern population, and in some cases, the user can play videos for the pet to watch so as to attract the attention of the pet, avoid uneasiness, family dismantling and the like of the pet and enable the animal to be more classified. Considering the problem that the user is worried about because the pet cannot watch the video when the user is not near the pet due to work or the like, the target object may be an animal in some embodiments.
In this embodiment, after the picture to be recognized is obtained, whether a service object of the video playing device is a target object is determined according to the picture to be recognized. The picture to be identified can be identified based on an image identification technology so as to judge whether the service object is a target object.
Step S13: if so, playing the target video for the target object to watch.
In this embodiment, after the service object is determined to be the target object, the target video is played for the target object to watch.
The embodiment provides a video playing method, which comprises the following steps: acquiring a plurality of pictures to be identified collected in a preset time period, and judging whether a service object is a target object or not according to the pictures to be identified; if so, the target video is played for the target object to watch, that is, in this embodiment, a new video playing method is provided, and the video can be played for the target object to watch without the target object operation, so that convenience is provided for the target object which is inconvenient to operate or the target object which does not know how to operate the video playing device, and user experience is improved.
Based on the first embodiment, a second embodiment of the video playing method of the present invention is provided. In this embodiment, the target object is an animal, and step S12 includes: and judging whether animals exist in the picture to be identified and people do not exist in the picture to be identified.
That is to say, in this embodiment, it is determined whether the service object of the video playback device is an animal by determining whether an animal exists in the picture to be recognized and no person exists in the picture to be recognized. If the animal exists in the picture to be recognized and the person does not exist (namely, the person does not exist in all the pictures to be recognized and the animal exists in at least one picture to be recognized), the situation that the animal exists in the environment where the video playing device is located is indicated, the owner of the animal is not beside the animal, and the service object of the video playing device is the animal; if at least one picture has a character in the pictures to be identified, the service object of the video playing device is the character, and the service object of the video playing device is not an animal; and if all the pictures to be identified do not have animals or human beings, the video playing device does not have a service object.
In this embodiment, whether a person exists in the picture to be recognized may be determined by a face recognition method or the like. And judging whether the animal exists in the picture to be identified by an animal identification method. Of course, the presence or absence of an animal or human being in the picture to be recognized can also be determined in other ways.
The embodiment provides a video playing method, which improves the accuracy of judgment by using the method when a target object is an animal. Acquiring a plurality of pictures to be identified collected within a preset time period, and judging whether animals exist in the pictures to be identified and people do not exist in the pictures to be identified so as to determine whether a service object of the video playing device is an animal or not; if so, the target video is played for the animal to watch, that is, in this embodiment, a new video playing method is provided, and the video can be played for the animal to watch under the condition that the animal owner is identified not to be around the animal any longer, so that even if the animal owner is not around the animal, the video playing device can play the video to attract the attention of the animal, so that the animal is safer, the worry of the user is reduced, and the user experience is improved.
Based on the first embodiment, a third embodiment of the video playing method of the present invention is provided. In this embodiment, referring to fig. 3, step S12 includes:
step S121: and determining the motion area of each picture to be identified.
In this embodiment, if there is a person or an animal in the current environment where the video playing device is located, because the person or the animal may move, a part of the collected multiple pictures to be identified is different, so that the motion region of each picture to be identified is determined, and then, the video playing device may identify according to the part of the motion region to determine whether the service object is an animal.
In some embodiments, step S121 comprises: and comparing the pictures to be identified to determine the motion area of each picture to be identified. That is to say, the pictures to be recognized are compared, so that different parts of the two pictures to be recognized are analyzed and used as the motion areas of the pictures to be recognized. In an example, two adjacent pictures to be recognized may be compared according to the acquisition time of each picture to be recognized to determine the motion region of each picture to be recognized, for example, assuming that 4 pictures to be recognized are acquired in total, a first picture to be recognized is compared with a second picture to be recognized to determine different portions of the first picture to be recognized and the second picture to be recognized, a portion of the first picture to be recognized, which is different from the second picture to be recognized, is taken as the motion region of the first picture, and a portion of the second picture to be recognized, which is different from the first picture to be recognized, is taken as the motion region of the second picture; comparing the second to-be-identified picture with the third to-be-identified picture, and determining a part, which is different from the second to-be-identified picture, in the third to-be-identified picture to be used as a motion area of the third to-be-identified picture; and comparing the fourth to-be-identified picture with the third to-be-identified picture, and determining a part, which is different from the third to-be-identified picture, in the fourth to-be-identified picture to be used as a motion area of the fourth to-be-identified picture.
In some embodiments, step S121 comprises: and comparing each picture to be identified with a preset reference picture to determine the motion area of each picture to be identified. That is, in this manner, the picture to be recognized is compared with the preset reference picture, so that a portion of the picture to be recognized, which is different from the preset reference picture, is determined as the motion region of the picture to be recognized. The preset reference picture may be preset, and in the environment where the video playing device is located, there is no picture of a person or an animal, and considering that the environment where the video playing device is located may be changed, the preset reference picture may be updated according to an actual situation.
Step S122: and determining the number of the target pictures in the pictures to be recognized according to the motion area.
In this embodiment, the target picture is a picture satisfying a preset condition, where a ratio of a motion region area to a picture area is set.
The preset conditions can be flexibly set according to actual needs and are used for judging whether the target object exists in the picture.
In one example, when the target object is an animal, the preset condition may be set to be smaller than the preset second ratio. The second ratio is a reasonable ratio that is preset to determine whether the motion region in the picture to be recognized is a human or an animal, and may be set to 1/3, 1/2, or the like, for example. It should be understood that the motion area is an area occupied by an animal or a human being, and the size of the human being is different from that of the animal, so that the proportion of the motion area in the picture to be recognized is different, and in order to further judge whether the animal or the human being exists in the picture to be recognized, a preset second proportion is set, when the proportion of the area occupied by the motion area in the picture to be recognized to the area of the picture is smaller than the preset second proportion, the animal exists in the picture to the greatest extent, and the picture is taken as a target picture. For example, assuming that the predetermined second ratio is 1/3, the area of a certain to-be-recognized picture is 1000 pixels, and the area occupied by the motion region is 200 pixels, since the ratio of the area of the motion region to the picture area is 1/5, which is smaller than the predetermined second ratio, the to-be-recognized picture is the target picture.
In one example, when the target object is a person, the preset condition may be set to be greater than a preset second ratio. When the ratio of the area occupied by the motion area to the area of the picture in the picture to be identified is greater than or equal to the preset second ratio, people exist in the picture to the greatest extent, and the picture is a target picture. For example, assuming that the predetermined second ratio is 1/3, if the area of a certain to-be-recognized picture is 1000 pixels and the area occupied by the motion region is 500 pixels, since the ratio of the area of the motion region to the picture area is 1/2, which is greater than the predetermined second ratio, the to-be-recognized picture is the target picture.
In this embodiment, after the motion region of each to-be-recognized picture is determined, whether each to-be-recognized picture is a target picture is determined according to the motion region and a preset condition, and then, the number of the target pictures is counted.
Step S123: and judging whether the ratio of the number of the target pictures to the number of the pictures to be recognized is larger than a preset first ratio.
The preset first ratio can be flexibly set according to actual needs, for example, set to 50%, 60%, and the like.
In this embodiment, a preset first ratio is set in consideration of the situation that power consumption is wasted when a video is played if a target object passes through an environment where a video playing device is located, and only when the ratio of the number of target pictures to the number of pictures to be recognized is greater than the preset first ratio, a service object of the video playing device is determined to be the target object. For example, assuming that the preset first ratio is 50%, the number of the pictures to be recognized is 100, and the number of the target pictures is 60, since the ratio of the number of the target pictures to the number of the pictures to be recognized is greater than the preset first ratio, it indicates that the target object often leaves the environment where the video playing device is located, and therefore, it is determined that the service object of the video playing device is the target object.
The embodiment provides a video playing method, which determines a motion region of each picture to be recognized, determines the number of target pictures in the picture to be recognized according to the motion region, and determines whether a ratio of the number of the target pictures to the number of the pictures to be recognized is greater than a preset first ratio to determine whether a service object is a target object, so that accuracy of determination is improved.
Based on the foregoing embodiments, a third embodiment of the video playing method of the present invention is provided. In this embodiment, referring to fig. 4, step S13 includes:
step S131: if yes, determining the type of the target object according to the picture to be identified.
It should be noted that after the target object is determined, the type of the target object may be further determined according to the picture to be recognized, where the dividing manner of the type of the target object may be flexibly set according to actual needs.
For example, in one example, assuming that the target object is a person, the types of target objects may include boys and girls, considering that videos of interest are different for boys and girls. Then after determining that the service object is a person, it is further determined whether the type of the target object is boy or girl based on the picture to be recognized.
In another example, assuming that the target object is a person, the type of the target object may be classified according to age considering that videos in which people in different age groups are interested are different, for example, the type of the target object may include children, middle-aged people, and elderly people. After the service object is determined to be a person, it is further determined which of a child, a middle-aged person and an elderly person the type of the target object is, based on the picture to be recognized.
In yet another example, assuming that the target object is an animal, the type of target object includes an animal breed (e.g., cat, dog, etc.) in view of the fact that different animals perceive different videos. After the service object is determined to be an animal, which breed of animal is further determined according to the picture to be identified when the target object is.
The mode for determining the type of the target object can be flexibly set according to actual needs.
In some embodiments, step S131 includes: and if so, determining the type of the target object included in the target picture based on an animal recognition technology or a face recognition technology.
In some embodiments, step S131 includes:
step S1311: if yes, extracting a motion area part from each target picture as a target sub-picture.
In this embodiment, since the motion region is a region where the target object is located, a portion corresponding to the motion region is extracted from the target picture as a target sub-picture, and it should be noted that one target picture corresponds to one target sub-picture.
Step S1312: and carrying out graying processing on the target sub-picture.
And in the process of acquiring the target sub-picture, carrying out gray processing on the target sub-picture, namely processing the target sub-picture into a gray picture. The method for carrying out graying processing on the target sub-picture can be flexibly set according to actual needs.
In some embodiments, graying the target sub-picture comprises: for each pixel of the target sub-picture, firstly summing the R (red color component), G (green color component) and B (blue color component) of the pixel according to a preset weight value, and then dividing the sum by a preset value to obtain the gray value of the pixel. That is to say, for a certain pixel point on the target sub-picture, it is assumed that the corresponding pixel value is (R, G, B), and the processed gray value is f ═ (f1 × R + f2 × G + f3 × B)/x, where the weight values f1, f2, and f3 can be flexibly set according to actual needs, and the preset value x can be flexibly set according to actual needs, in an example, the size of x is positively correlated with the area of the target sub-picture (i.e., the area of the motion region in the target picture), that is, the larger the target sub-picture is, the larger x is.
Step S1313: and determining the type of the target object according to the target sub-picture after the graying processing.
And after the target sub-picture is subjected to graying processing, determining the animal type according to the grayed target sub-picture.
In some embodiments, if the target object is an animal, determining the type of the target object according to the grayed target sub-picture includes: scanning pixels of bright and dark crossed parts in the target sub-picture after the graying processing so as to determine the positions of the eyes of the animal; determining gray scale types of the positions of the eyes of the animal, wherein the gray scale types comprise three types: uniform gray, non-uniform gray, jump gray (i.e., gray value jumps from 0 to 255, or jumps from 255 to 0); when the gray type of the animal eye position part is jump gray, the identification is failed; when the gray type of the eye position part of the animal is uniform in gray or non-uniform in gray, acquiring the gray gain color purity of the target sub-picture subjected to gray processing in the horizontal and vertical directions, and if the gray gain color purity is higher than a preset first purity value, judging that the animal type is a dog; and if the gray gain color purity is lower than the preset second purity value and higher than the preset second purity value, judging that the animal type is the cat. The preset first purity value is larger than the preset second purity value, and specific values of the preset first purity value and the preset second purity value can be flexibly set according to actual needs.
Step S132: and acquiring the target video according to the type of the target object.
And the target video is a video corresponding to the type of the target object.
It should be understood that the different types of videos are of different interest, and therefore, the target video is acquired according to the type of the target object.
In one example, assuming that the target object is a character and the types of the target object include a boy and a girl, the target video corresponding to the boy may be a sports video (e.g., a soccer game, a basketball game, etc.), and the video corresponding to the girl may be a variety, a tv show, etc.
In another example, it is assumed that the target object is a person, the types of the target object include children, middle-aged people, and old people, the video corresponding to the children is an animation, the video corresponding to the middle-aged people is a variety, a movie, and the like, and the video corresponding to the old people is a health preserving video, and the like.
In yet another example, assuming that the target object is an animal and the type of the target object includes an animal breed, a video including an animal of the same breed may be acquired as the video, for example, assuming that the animal is a cat, the target video may be a video including a cat; assuming that the animal is a dog, the target video may be a video including a dog.
Step S133: and playing the target video.
After the target video is acquired, the target video is played to attract the attention of the target object.
The embodiment provides a video playing method, after a service object is determined to be a target object, a type of the target object is obtained according to a picture to be identified, a target video is obtained according to the type of the target object, and the target video is played.
In this embodiment, on the basis of the foregoing video playing method embodiment, a video playing apparatus is provided, which is applied to a terminal device, and referring to fig. 5, fig. 5 is a schematic block diagram of the video playing apparatus according to the present invention, where the video playing apparatus includes:
the acquiring module 50 is configured to acquire a plurality of pictures to be identified collected within a preset time period.
And the judging module 51 is configured to judge whether the service object is a target object according to the picture to be identified.
And the playing module 52 is configured to play the target video for the target object to watch if the target video is the video.
It should be noted that the video playing apparatus may further optionally include a corresponding module to implement other steps of the video playing method.
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 solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above 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 an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A video playing method is characterized in that the video playing method comprises the following steps:
acquiring a plurality of pictures to be identified collected within a preset time period;
judging whether the service object is a target object or not according to the picture to be identified;
and if so, playing the target video for the target object to watch.
2. The video playing method according to claim 1, wherein the target object is an animal, and the step of determining whether the service object is the target object according to the picture to be recognized includes:
and judging whether animals exist in the picture to be identified and no people exist in the picture to be identified.
3. The video playing method according to claim 1, wherein the step of determining whether the service object is the target object according to the picture to be recognized comprises:
determining a motion area of each picture to be identified;
determining the number of target pictures in the pictures to be recognized according to the motion region, wherein the target pictures are pictures meeting preset conditions, and the target pictures are the ratio of the area of the motion region to the area of the pictures;
and judging whether the ratio of the number of the target pictures to the number of the pictures to be recognized is larger than a preset first ratio or not.
4. The video playing method according to claim 3, wherein the step of determining the motion region of each of the pictures to be recognized comprises:
and comparing each picture to be identified with a preset reference picture to determine the motion area of each picture to be identified.
5. The video playing method of claim 4, wherein if yes, the step of playing the target video comprises:
if yes, determining the type of a target object according to the picture to be recognized;
acquiring a target video according to the type of the target object;
and playing the target video.
6. The video playing method according to claim 5, wherein the step of determining the type of the target object according to the picture to be recognized comprises:
and determining the type of the target object according to the target picture.
7. The video playback method of claim 6, wherein the step of determining the type of the target object according to the target picture comprises:
extracting a motion region part from each target picture as a target sub-picture;
carrying out graying processing on the target sub-picture;
and determining the type of a target object according to the target sub-picture after the graying processing.
8. A video playback apparatus, comprising:
the acquisition module is used for acquiring a plurality of pictures to be identified, which are acquired within a preset time period;
the judging module is used for judging whether the service object is a target object or not according to the picture to be identified;
and the playing module is used for playing the target video if the target video is the video, so that the target object can watch the target video.
9. A terminal device, characterized in that the terminal device comprises: memory, processor and a video playback program stored on the memory and running on the processor, the video playback program when executed by the processor implementing the steps of the video playback method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, having a video playback program stored thereon, which when executed by a processor implements the steps of the video playback method according to any one of claims 1 to 7.
CN202011354470.XA 2020-11-26 2020-11-26 Video playing method and device, terminal equipment and computer readable storage medium Pending CN112565863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011354470.XA CN112565863A (en) 2020-11-26 2020-11-26 Video playing method and device, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011354470.XA CN112565863A (en) 2020-11-26 2020-11-26 Video playing method and device, terminal equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112565863A true CN112565863A (en) 2021-03-26

Family

ID=75046178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011354470.XA Pending CN112565863A (en) 2020-11-26 2020-11-26 Video playing method and device, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112565863A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395568A (en) * 2021-06-15 2021-09-14 北京字跳网络技术有限公司 Video interaction method and device, electronic equipment and storage medium
CN113891121A (en) * 2021-09-29 2022-01-04 北京百度网讯科技有限公司 Video subtitle processing method, video subtitle display method and device
CN115580754A (en) * 2022-12-06 2023-01-06 成都智元汇信息技术股份有限公司 Subway public space content on-demand method and system
CN113395568B (en) * 2021-06-15 2024-04-12 北京字跳网络技术有限公司 Video interaction method, device, electronic equipment and storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722715A (en) * 2012-05-21 2012-10-10 华南理工大学 Tumble detection method based on human body posture state judgment
CN104598869A (en) * 2014-07-25 2015-05-06 北京智膜科技有限公司 Intelligent advertisement pushing method based on human face recognition device
CN104794459A (en) * 2015-05-07 2015-07-22 北京丰华联合科技有限公司 Video personnel identification method
CN104821056A (en) * 2015-04-30 2015-08-05 湖南华诺星空电子技术有限公司 Intelligent guarding method based on radar and video integration
CN106897713A (en) * 2017-03-13 2017-06-27 宇龙计算机通信科技(深圳)有限公司 A kind of method and mobile terminal for waking up mobile terminal screen
CN107102540A (en) * 2016-02-23 2017-08-29 芋头科技(杭州)有限公司 A kind of method and intelligent robot for waking up intelligent robot
US20170264973A1 (en) * 2016-03-14 2017-09-14 Le Holdings (Beijing) Co., Ltd. Video playing method and electronic device
CN107493319A (en) * 2017-07-18 2017-12-19 上海千帆科技股份有限公司 A kind of intelligent interaction Multimedia System and its implementation
CN108022274A (en) * 2017-11-29 2018-05-11 广东欧珀移动通信有限公司 Image processing method, device, computer equipment and computer-readable recording medium
CN108459512A (en) * 2018-03-12 2018-08-28 京东方科技集团股份有限公司 Intelligent terminal and the exchange method based on it, interactive system, processor
CN108495180A (en) * 2018-04-16 2018-09-04 深圳市零度智控科技有限公司 Television program playing method, smart television and readable storage medium storing program for executing
CN109275047A (en) * 2018-09-13 2019-01-25 周昕 Video information processing method and device, electronic equipment, storage medium
CN109409243A (en) * 2018-09-29 2019-03-01 江南大学 Human visual detection method in a kind of mobile target
CN109976506A (en) * 2017-12-28 2019-07-05 深圳市优必选科技有限公司 Awakening method, storage medium and the robot of a kind of electronic equipment
WO2020038167A1 (en) * 2018-08-22 2020-02-27 Oppo广东移动通信有限公司 Video image recognition method and apparatus, terminal and storage medium
WO2020151084A1 (en) * 2019-01-24 2020-07-30 北京明略软件系统有限公司 Target object monitoring method, apparatus, and system
WO2020192400A1 (en) * 2019-03-27 2020-10-01 深圳创维-Rgb电子有限公司 Playback terminal playback control method, apparatus, and device, and computer readable storage medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722715A (en) * 2012-05-21 2012-10-10 华南理工大学 Tumble detection method based on human body posture state judgment
CN104598869A (en) * 2014-07-25 2015-05-06 北京智膜科技有限公司 Intelligent advertisement pushing method based on human face recognition device
CN104821056A (en) * 2015-04-30 2015-08-05 湖南华诺星空电子技术有限公司 Intelligent guarding method based on radar and video integration
CN104794459A (en) * 2015-05-07 2015-07-22 北京丰华联合科技有限公司 Video personnel identification method
CN107102540A (en) * 2016-02-23 2017-08-29 芋头科技(杭州)有限公司 A kind of method and intelligent robot for waking up intelligent robot
US20170264973A1 (en) * 2016-03-14 2017-09-14 Le Holdings (Beijing) Co., Ltd. Video playing method and electronic device
CN106897713A (en) * 2017-03-13 2017-06-27 宇龙计算机通信科技(深圳)有限公司 A kind of method and mobile terminal for waking up mobile terminal screen
CN107493319A (en) * 2017-07-18 2017-12-19 上海千帆科技股份有限公司 A kind of intelligent interaction Multimedia System and its implementation
CN108022274A (en) * 2017-11-29 2018-05-11 广东欧珀移动通信有限公司 Image processing method, device, computer equipment and computer-readable recording medium
CN109976506A (en) * 2017-12-28 2019-07-05 深圳市优必选科技有限公司 Awakening method, storage medium and the robot of a kind of electronic equipment
CN108459512A (en) * 2018-03-12 2018-08-28 京东方科技集团股份有限公司 Intelligent terminal and the exchange method based on it, interactive system, processor
CN108495180A (en) * 2018-04-16 2018-09-04 深圳市零度智控科技有限公司 Television program playing method, smart television and readable storage medium storing program for executing
WO2020038167A1 (en) * 2018-08-22 2020-02-27 Oppo广东移动通信有限公司 Video image recognition method and apparatus, terminal and storage medium
CN109275047A (en) * 2018-09-13 2019-01-25 周昕 Video information processing method and device, electronic equipment, storage medium
CN109409243A (en) * 2018-09-29 2019-03-01 江南大学 Human visual detection method in a kind of mobile target
WO2020151084A1 (en) * 2019-01-24 2020-07-30 北京明略软件系统有限公司 Target object monitoring method, apparatus, and system
WO2020192400A1 (en) * 2019-03-27 2020-10-01 深圳创维-Rgb电子有限公司 Playback terminal playback control method, apparatus, and device, and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李占利等: "智能视频分析与步态识别", 西安电子科技大学出版社, pages: 61 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395568A (en) * 2021-06-15 2021-09-14 北京字跳网络技术有限公司 Video interaction method and device, electronic equipment and storage medium
CN113395568B (en) * 2021-06-15 2024-04-12 北京字跳网络技术有限公司 Video interaction method, device, electronic equipment and storage medium
CN113891121A (en) * 2021-09-29 2022-01-04 北京百度网讯科技有限公司 Video subtitle processing method, video subtitle display method and device
CN115580754A (en) * 2022-12-06 2023-01-06 成都智元汇信息技术股份有限公司 Subway public space content on-demand method and system

Similar Documents

Publication Publication Date Title
CN108304888B (en) Live broadcast platform user classification method, computer storage medium and terminal
CN112565863A (en) Video playing method and device, terminal equipment and computer readable storage medium
CN101620715A (en) Method and system for publishing intelligent advertisement
CN105518579A (en) Information processing device and information processing method
CN108366287A (en) Direct broadcasting room action message methods of exhibiting and computer storage media, terminal
CN112044068A (en) Man-machine interaction method and device, storage medium and computer equipment
CN106027857A (en) Low power smart image capture
CN112215227B (en) Image target detection model attack method and device, terminal equipment and storage medium
CN106558088B (en) Method and device for generating GIF file
CN113485617A (en) Animation display method and device, electronic equipment and storage medium
CN109639981B (en) Image shooting method and mobile terminal
CN108966005B (en) Video resolution adjusting method and device, storage medium and terminal
CN113038232A (en) Video playing method, device, equipment, server and storage medium
CN106815028A (en) A kind of construction method of display interface, device and operating method and device
CN111930287B (en) Interaction method and device based on virtual object, electronic equipment and storage medium
CN113014830A (en) Video blurring method, device, equipment and storage medium
CN112347918A (en) Screen control method, system, terminal device and computer readable storage medium
CN113538304A (en) Training method and device of image enhancement model, and image enhancement method and device
CN112423060B (en) Video image interception method, system, device, terminal equipment and storage medium
CN112333537A (en) Video integration method and device and computer readable storage medium
US20180310119A1 (en) Communication system, server, wearable device, user terminal, and control method thereof
CN113099300B (en) Program playing method, device, display terminal and storage medium
CN113645743A (en) Intelligent lighting method, device and equipment based on television and storage medium
CN112788425A (en) Dynamic area display method, device, equipment and computer readable storage medium
CN113225615B (en) Television program playing method, terminal equipment, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination