A method, device, electronic device and readable storage medium for determining attribute information
By calculating the matching degree of media content between film and television works and scripts or plot introductions, automatic scoring solves the problems of low efficiency and subjectivity in the existing technology, and achieves more efficient and accurate scoring results.
Patent Information
- Application Number
- CN202110565744.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-05-24
AI Technical Summary
In the existing technology, judging whether a film and television work is consistent with the script or whether the plot introduction is consistent with the film and television work requires a lot of manpower and time, which is inefficient and easily affected by human subjectivity, resulting in inaccurate scoring results.
By obtaining the media content between the film and television works and the script or plot introduction, extract the video clips and text clips, calculate the matching degree between the video clips and the text clips, and determine the attribute information of the film and television works based on the matching degree, such as the degree of plot restoration or actors Deductive rationality, automating the scoring process using preset databases and algorithms.
It improves scoring efficiency, reduces the need for manual scoring, avoids scoring inaccuracies due to subjectivity, and achieves more accurate scoring results.
Smart Images

Figure CN113392274B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a method, device, electronic device and readable storage medium for determining attribute information. Background Art
[0002] Media refers to the medium for disseminating information, which refers to the tools, channels, carriers, intermediaries or technical means used by people to transmit and obtain information. Traditional media include newspapers, radio and television. Different media display media content in different forms, such as text, audio and video.
[0003] In real life, the same content is often presented in different forms, such as shooting a video based on a text script or writing a text plot introduction based on a video. In order to determine whether the film or TV work is consistent with the script or whether the plot introduction is consistent with the film or TV work, it is often necessary to conduct subjective ratings by professionals or users who watch the work to obtain the final rating results.
[0004] However, using the above method for scoring requires a lot of manpower and time, and is inefficient. Summary of the invention
[0005] In order to solve the above-mentioned technical problem of low efficiency in manually scoring whether a film or television work is consistent with the script or whether the plot introduction is consistent with the film or television work, the scoring process requires a lot of manpower and time, and the application provides a method, device, electronic device and readable storage medium for determining attribute information.
[0006] In a first aspect, a method for determining attribute information is provided, the method comprising:
[0007] Acquire first media content corresponding to a first object of the to-be-determined attribute information and second media content corresponding to the first media content;
[0008] determining a target matching degree between the first media content and the second media content;
[0009] Attribute information corresponding to the first object is determined based on the target matching degree.
[0010] Optionally, the first media content includes: video content, and the second media content includes: text content;
[0011] The determining a target matching degree between the first media content and the second media content includes:
[0012] Extracting at least one video segment and a first vector corresponding to the video segment from the video content;
[0013] For any of the video segments, determining a text segment corresponding to the video segment in the text content, and extracting a second vector corresponding to the text segment based on the text segment;
[0014] For any group of corresponding video segments and text segments, determining the matching degree between the video segment and the text segment based on the first vector corresponding to the video segment and the second vector corresponding to the text segment, and obtaining at least one matching degree;
[0015] Based on at least one of the matching degrees, a target matching degree between the video content and the text content is determined.
[0016] Optionally, the method further comprises:
[0017] Acquire the number of object types and the number of second objects corresponding to the first object in the video content, where the first object and the second object are characters in the video content, and the second object is different from the first object;
[0018] determining the number of categories of the first vector;
[0019] Based on the number of object types corresponding to the first object, the number of the second objects, and the number of categories of the first vector, attribute information corresponding to the first object is determined.
[0020] Optionally, the determining the attribute information corresponding to the first object based on the number of object types corresponding to the first object, the number of the second objects, and the number of categories of the first vector includes:
[0021] determining a first ratio of the number of categories of the first vector to the number of the second objects, and determining a second ratio of the number of categories of the first vector to the number of object types corresponding to the first objects;
[0022] Based on the first ratio and the second ratio, attribute information corresponding to the first object is determined.
[0023] Optionally, extracting a second vector corresponding to the text segment based on the text segment includes:
[0024] Using a preset first database, extracting at least one text sub-vector corresponding to the text segment from the text segment;
[0025] A second vector corresponding to the text segment is determined by using a preset second database and at least one of the text sub-vectors.
[0026] Optionally, determining a target matching degree between the video content and the text content based on at least one matching degree includes:
[0027] For any of the video clips, obtaining the duration and priority corresponding to the video clip;
[0028] For any of the video segments, determining a first weight corresponding to the video segment based on the duration corresponding to the video segment, and determining a second weight corresponding to the video segment based on the priority corresponding to the video segment;
[0029] A target matching degree between the video content and the text content is determined based on a matching degree corresponding to at least one of the video segments, a first weight, and a second weight.
[0030] Optionally, the method further comprises:
[0031] For any video in the video set, a preset algorithm is used to obtain a target video, and the target video is used as the video content corresponding to the first object of the attribute information to be determined.
[0032] In a second aspect, a device for determining attribute information is provided, the device comprising:
[0033] An acquisition module, configured to acquire first media content corresponding to a first object whose attribute information is to be determined and second media content corresponding to the first media content;
[0034] A first determination module, configured to determine a target matching degree between the first media content and the second media content;
[0035] The second determination module is used to determine the attribute information corresponding to the first object based on the target matching degree.
[0036] Optionally, the first media content includes video content, and the second media content includes text content; the first determining module is specifically configured to:
[0037] Extracting at least one video segment and a first vector corresponding to the video segment from the video content;
[0038] For any of the video segments, determining a text segment corresponding to the video segment in the text content, and extracting a second vector corresponding to the text segment based on the text segment;
[0039] For any group of corresponding video segments and text segments, determining the matching degree between the video segment and the text segment based on the first vector corresponding to the video segment and the second vector corresponding to the text segment, and obtaining at least one matching degree;
[0040] Based on at least one of the matching degrees, a target matching degree between the video content and the text content is determined.
[0041] Optionally, the device further comprises:
[0042] a video content acquisition module, configured to acquire the number of object types and the number of second objects corresponding to the first object in the video content, wherein the first object and the second object are characters in the video content, and the second object is different from the first object;
[0043] A category determination module, used to determine the number of categories of the first vector;
[0044] The attribute information determination module is used to determine the attribute information corresponding to the first object based on the number of object types corresponding to the first object, the number of the second objects and the number of categories of the first vector.
[0045] Optionally, the attribute information determination module is further used to:
[0046] determining a first ratio of the number of categories of the first vector to the number of the second objects, and determining a second ratio of the number of categories of the first vector to the number of object types corresponding to the first objects;
[0047] Based on the first ratio and the second ratio, attribute information corresponding to the first object is determined.
[0048] Optionally, the first determining module is further configured to:
[0049] Using a preset first database, extracting at least one text sub-vector corresponding to the text segment from the text segment;
[0050] A second vector corresponding to the text segment is determined by using a preset second database and at least one of the text sub-vectors.
[0051] Optionally, the first determining module is further configured to:
[0052] For any of the video clips, obtaining the duration and priority corresponding to the video clip;
[0053] For any of the video segments, determining a first weight corresponding to the video segment based on the duration corresponding to the video segment, and determining a second weight corresponding to the video segment based on the priority corresponding to the video segment;
[0054] A target matching degree between the video content and the text content is determined based on a matching degree corresponding to at least one of the video segments, a first weight, and a second weight.
[0055] Optionally, the device further comprises:
[0056] The target video determination module is used to obtain the target video by using a preset algorithm for any video in the video set, and use the target video as the video content corresponding to the first object of the attribute information to be determined.
[0057] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0058] Memory, used to store computer programs;
[0059] The processor is used to implement any method step described in the first aspect when executing a program stored in the memory.
[0060] In a fourth aspect, a computer-readable storage medium is provided, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.
[0061] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the above-mentioned attribute information determination methods.
[0062] Beneficial effects of the embodiments of the present application:
[0063] The embodiments of the present application provide a method, device, electronic device and readable storage medium for determining attribute information. The present application first obtains first media content corresponding to a first object whose attribute information is to be determined and second media content corresponding to the first media content; then, determines the attribute information of the first object by determining the target matching degree between the first media content and the second media content. Compared with the current method of manually watching the work to determine whether the film or television work is consistent with the script or whether the plot introduction is consistent with the film or television work, finally obtaining a scoring result improves the scoring efficiency. Moreover, since no manual scoring is required, the inaccurate scoring result caused by human subjectivity is avoided, thereby improving the accuracy of the scoring.
[0064] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0066] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0067] Figure 1 A flowchart of a method for determining attribute information provided in an embodiment of the present application;
[0068] Figure 2 A flowchart of a method for determining attribute information provided by another embodiment of the present application;
[0069] Figure 3 A flowchart of a method for determining attribute information provided by another embodiment of the present application;
[0070] Figure 4 A flowchart of a method for determining attribute information provided by another embodiment of the present application;
[0071] Figure 5 A schematic diagram of the structure of an attribute information determination device provided in an embodiment of the present application;
[0072] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0074] At present, in order to judge whether a film or TV work is consistent with the script or whether the plot introduction is consistent with the film or TV work, it is often necessary to conduct subjective scoring by professionals or users who watch the work, and finally obtain the scoring result. The scoring process requires a lot of manpower and time, and is inefficient. To this end, the embodiment of the present application provides a method for determining attribute information, which can be applied to a server.
[0075] The following will describe in detail a method for determining attribute information provided by an embodiment of the present application in conjunction with a specific implementation manner. Figure 1 As shown, the specific steps are as follows:
[0076] S101: Acquire first media content corresponding to a first object whose attribute information is to be determined and second media content corresponding to the first media content.
[0077] In the embodiment of the present application, the first media content may be text content, video content, or audio content, etc., and the second media content may be text content, video content, or audio content, etc. The first media content and the second media content are generally two forms of content. For example, the first media content is a script, and the second media content is a film and television work shot according to the script, or the first media content is a film and television work, and the second media content is a plot introduction written according to the film and television work. The first object may be a plot, a line, or a character, etc. The attribute information may be the restoration degree of the plot, the restoration degree of the line, or the interpretation of the character, etc.
[0078] The attribute information of the first object can be determined through the first media content corresponding to the first object and the second media content corresponding to the first media content. For example, the degree to which a film or television work based on a novel restores its plot to the novel can be evaluated; or the degree to which the actors in the film or television work restore the characters described in the script can be evaluated; or the degree to which the plot introduction written for the film or television work restores the plot of the film or television work can be evaluated, etc. Therefore, it is necessary to obtain the first media content corresponding to the first object whose attribute information is to be determined and the second media content corresponding to the first media content.
[0079] S102: Determine a target matching degree between the first media content and the second media content.
[0080] In the embodiment of the present application, the target matching degree between the first media content and the second media content can be determined according to the attribute information to be scored. For example, for a film or TV work based on a novel, to evaluate the degree to which the plot is restored to the novel, it is necessary to determine the matching degree between the plot of the film or TV work and the text content describing the plot in the novel, and this matching degree is the target matching degree.
[0081] S103: Determine attribute information corresponding to the first object based on the target matching degree.
[0082] In the embodiment of the present application, the attribute information corresponding to the first object can be determined based on the target matching degree. For example, for a film or TV work based on a novel, the degree of restoration of the plot to the novel is evaluated. The first object is the plot, and the attribute information is the degree of restoration of the plot. The higher the target matching degree, the higher the degree of restoration of the plot.
[0083] In an embodiment of the present application, first, the first media content corresponding to the first object whose attribute information is to be determined and the second media content corresponding to the first media content are obtained; then, the attribute information of the first object is determined by determining the target matching degree between the first media content and the second media content. Compared with the current method of manually watching the work to determine whether the film and television work is consistent with the script or whether the plot introduction is consistent with the film and television work, a scoring result is finally obtained, which improves the scoring efficiency. Moreover, since no manual scoring is required, the inaccurate scoring results caused by human subjectivity are avoided, thereby improving the accuracy of the scoring.
[0084] In another embodiment of the present application, the first media content includes: video content, and the second media content includes: text content; Figure 2 As shown, the S102 may include the following steps:
[0085] S201: Extract at least one video segment and a first vector corresponding to the video segment from the video content.
[0086] In the embodiment of the present application, the first object may be an actor, the attribute information may be the rationality of the actor's interpretation of a certain video, and the text content may be the text content recorded in the script corresponding to the video content. When it is necessary to score the rationality of an actor's interpretation in a certain film or television work, it is first necessary to obtain the video content containing the actor in the film or television work, and the text content corresponding to the video content.
[0087] In one implementation of the embodiment of the present application, the video content corresponding to the first object may be obtained in the following manner:
[0088] For any video in the video set, a preset algorithm is used to obtain a target video, and the target video is used as the video content corresponding to the first object of the attribute information to be determined.
[0089] In this implementation, any video in the video set is a film or TV work, and the preset algorithm may be a face recognition algorithm. For any film or TV work, the face recognition algorithm may be used to identify a target video containing the first object, and the target video is used as the video corresponding to the first object whose attribute information is to be determined. This solution can automatically identify the video containing the first object, thereby improving the efficiency of extracting the target video.
[0090] In an embodiment of the present application, after obtaining video content containing a first object, at least one video segment is extracted from the video content. Preferably, the video segment is a segment in which the first object has relatively large emotional fluctuations, and for each video segment, a first vector corresponding to the video segment is extracted, wherein the first vector is an emotional interpretation of the video segment.
[0091] S202: for any of the video segments, determine a text segment corresponding to the video segment in the text content, and extract a second vector corresponding to the text segment based on the text segment.
[0092] In an embodiment of the present application, for any video clip, a text clip corresponding to the video clip can be determined in the text content according to the lines in the video clip, and a second vector corresponding to the text clip can be extracted based on the text clip, wherein the second vector is an emotional interpretation of the text clip corresponding to the video clip.
[0093] S203: For any group of corresponding video segments and text segments, determine the matching degree between the video segment and the text segment based on the first vector corresponding to the video segment and the second vector corresponding to the text segment to obtain at least one matching degree.
[0094] In the embodiment of the present application, the matching degree between the video clip and the text clip can be used as the scoring result of the rationality of the actor's interpretation in the video clip. The first vector is obtained based on the video clip corresponding to the first object, and the second vector is obtained based on the analysis of the text clip. Therefore, the second vector can be used as a standard for evaluating the first vector. For any group of corresponding video clips and text clips, the matching degree between the video clip and the text clip can be determined according to the distance between the first vector corresponding to the video clip and the second vector corresponding to the text clip, thereby determining the scoring result of the rationality of the interpretation of the first object corresponding to the video clip, and obtaining the scoring result of the rationality of the interpretation of the first object corresponding to each video clip. The closer the distance, the higher the rationality of the actor's interpretation of the part, and the higher the scoring result.
[0095] S204: Determine a target matching degree between the video content and the text content based on at least one of the matching degrees.
[0096] In an embodiment of the present application, after obtaining the matching degree between each group of corresponding video clips and text clips, the target matching degree between the video content and the text content can be determined based on the matching degree between each group of corresponding video clips and text clips, thereby determining the scoring result of the deductive rationality of the first object corresponding to the video content.
[0097] In an embodiment of the present application, a first vector can be extracted based on a video clip performed by an actor, and then a second vector can be extracted based on text content corresponding to the video clip performed by the actor. Finally, a score result for the actor is determined based on the first vector and the second vector. Compared with the current method of manually scoring the actor's acting skills by watching videos, the scoring efficiency is improved.
[0098] In another embodiment of the present application, the S201 may include the following steps:
[0099] Step 1: Acquire multiple video frames in the video.
[0100] In an embodiment of the present application, each video is composed of multiple video frames. All video frames in the video can be extracted, or multiple video frames of the video can be sampled according to certain sampling rules. For example, there are 25 video frames in the video per second, and the video frames can be sampled according to the rule of sampling 8 frames per second.
[0101] Step 2: extracting at least one video segment and a first vector corresponding to the video segment from the video based on the multiple video frames, wherein the video segment includes multiple video frames.
[0102] In the embodiment of the present application, the emotion displayed by the first subject in each video frame is annotated using an emotional image algorithm to obtain multiple video frames in which the first subject has significant emotions. Then, all video frames are processed using a sequence density algorithm to obtain at least one video frame sequence in which the first subject has significant emotions, i.e., a video clip, and finally, the first vector of the video clip is extracted.
[0103] In an embodiment of the present application, a video segment in which the first object has significant emotions and a first vector corresponding to the video segment can be extracted based on multiple video frames in the video, thereby improving the extraction efficiency compared to manually extracting video segments in which the actor has significant emotions.
[0104] In another embodiment of the present application, the S202 may include the following steps:
[0105] Step 1: using a preset first database, extracting at least one text sub-vector corresponding to the text segment from the text segment.
[0106] In an embodiment of the present application, the text sub-vector may include one or more of a self-awareness vector, a desire vector, a self-ability vector, and an external reality vector. The first database is established in advance based on the correspondence between the text content and the text sub-vector. The first database includes a character personality and temperament knowledge base and a character situation and experience knowledge base. The character personality and temperament knowledge base establishes the relationship between the character's setting text (biography, etc.) in the script and the character's self-awareness and desire; the character situation and experience knowledge base establishes the relationship between the character's environment, the events experienced, and the character's ability and external reality. The first database can be used to extract the self-awareness vector, desire vector, self-ability vector, and external reality vector corresponding to the video clip from the text clip corresponding to the video clip.
[0107] Step 2: Determine a second vector corresponding to the text segment by using a preset second database and at least one of the text sub-vectors.
[0108] In the embodiment of the present application, the second vector may include four dimensions, namely: joy-sadness dimension: indicating joy or sadness; anticipation-surprise dimension: indicating whether one is mentally prepared or unprepared for the current event; anger-fear dimension: indicating whether the character believes that he or she has the ability to influence the development of events or is unable to influence the development of events; and event acceptance (disgust-trust) dimension: indicating whether the character accepts the result of the current event or does not accept the result of the current event.
[0109] The second database can be a pre-established emotional closed-loop knowledge base, which establishes a mapping relationship between the character's own ability vector and self-awareness vector to the anger-fear dimension, a mapping relationship between the ability vector and the desire vector to the joy-sadness dimension, a mapping relationship between the self-awareness vector and the external reality vector to the anticipation-surprise dimension, and a mapping relationship between the desire vector and the external reality vector to the disgust-trust dimension. Therefore, the second database can be used to determine the second vector corresponding to the text segment based on the self-awareness vector, desire vector, own ability vector, and external reality vector corresponding to the text segment.
[0110] Specifically, joy-sadness: when the vectors of ability and desire are mapped to a "matching" relationship, they tend to be 1 (joy, satisfaction), and when they are mapped to a "mismatching" relationship, they tend to be -1 (sadness, loss); anger-fear: when the vectors of ability and self-perception are mapped to a "positive" relationship, they tend to be 1 (anger, believing that one has the ability to influence), and when they are mapped to a "negative" relationship, they tend to be -1 (fear, believing that one has no ability to influence); Anticipation-surprise: when self-perception and external reality are mapped to a "matching" relationship, they tend to be 1 (anticipation, psychological preparation), and when they are mapped to a "mismatching" relationship, they tend to be -1 (surprise, no psychological preparation). Disgust-trust: when desire and external reality are mapped to a "mismatching" relationship, they tend to be 1 (disgust, rejection); when they are mapped to a "matching" relationship, they tend to be -1 (trust, acceptance).
[0111] In the embodiment of the present application, the preset first database and the preset second database can be used to determine the second vector corresponding to the text segment. The determination process is simple and efficient, and the determined second vector includes four dimensions, which makes the interpretation of emotions more accurate.
[0112] In another embodiment of the present application, Figure 3As shown, the method may further include the following steps:
[0113] S301, obtaining the number of object types and the number of second objects corresponding to the first object in the video content, wherein the first object and the second object are characters in the video content, and the second object is different from the first object.
[0114] In the embodiment of the present application, the object type corresponding to the first object may include, but is not limited to, the situation faced by the first object, where the situation refers to: the event encountered by the first object in the film and television work corresponding to the video, such as: successful interview, reunion with friends, and marriage with the person you love, etc. The number of object types corresponding to the first object can be determined based on the script content or video content. The second object is the opponent actor who plays opposite the first object in the video. The face recognition algorithm can be used to identify the opponent actor in the video, and then the number of the opponent actor can be counted.
[0115] S302: Determine the number of categories of the first vector.
[0116] In an embodiment of the present application, the number of categories of the first vector corresponding to the video content can be determined based on the first vectors corresponding to all video clips. The category of the first vector can be determined based on the dimensions it contains and the polarity of the dimensions, and vectors with the same dimensions are counted as the same category. For example, the first vector includes 4 dimensions, each dimension has three polarities of -1, 1, and 0, and the first vectors shown by the actor in two different scenes are (0, 1, -1, 0), then the category of the emotion vector shown by the actor in these two scenes belongs to the same category.
[0117] In one implementation of the embodiment of the present application, the acting skills of the first object may be scored according to the number of categories of the first vector corresponding to the video content, and the number is proportional to the score.
[0118] S303: Determine attribute information corresponding to the first object based on the number of object types corresponding to the first object, the number of the second objects, and the number of categories of the first vector.
[0119] In the embodiment of the present application, the attribute information may also be a scoring result of the richness of the actor's interpretation. The more emotions an actor can show when facing different object types and different opponent actors, the higher the richness of the actor's interpretation. Therefore, the richness of the interpretation of the first object can be determined based on the number of object types corresponding to the first object, the number of second objects, and the number of categories of the first vector.
[0120] In another implementation of the embodiment of the present application, the actor's interpretive richness can be directly determined by the number of categories of the first vector, and the interpretive richness of the first object can be determined based on the correspondence between the number of categories of the first vector and the interpretive richness set in advance, and the number of categories of the first vector is positively correlated with the score of the interpretive richness.
[0121] In an embodiment of the present application, the interpretive richness of the first object can be determined based on the number of object types corresponding to the first object, the number of second objects, and the number of categories of the first vector. Compared with the current manual analysis of the interpretive richness of actors, this saves manpower and improves analysis efficiency.
[0122] In another embodiment of the present application, the S303 may include the following steps:
[0123] Step 1: determine a first ratio of the number of categories of the first vector to the number of the second objects, and determine a second ratio of the number of categories of the first vector to the number of object types corresponding to the first objects.
[0124] In the embodiment of the present application, the richness of the actor's performance can be evaluated by the relative number of emotion categories displayed by the actor when facing different opponent actors, and the relative number of emotion categories displayed by the actor in different object types. Therefore, it is necessary to determine a first ratio of the number of categories of the first vector to the number of objects, and to determine a second ratio of the number of categories of the first vector to the number of object types corresponding to the first object.
[0125] Step 2: Determine attribute information corresponding to the first object based on the first ratio and the second ratio.
[0126] In an embodiment of the present application, the attribute information is a scoring result of deductive richness. After obtaining the first ratio and the second ratio, the scoring result of the deductive richness of the first object can be determined based on the first ratio and the second ratio.
[0127] In one implementation of the embodiment of the present application, the mean of the first ratio and the second ratio can be calculated, and the scoring result of the deductive richness of the first object can be determined based on the correspondence between the pre-set mean and the scoring result, and the mean is positively correlated with the scoring result.
[0128] In another implementation of the embodiment of the present application, the product of the first ratio and the second ratio can be calculated, and the scoring result of the deductive richness of the first object can be determined based on the correspondence between the product result and the scoring result set in advance, and the product result is positively correlated with the scoring result.
[0129] In the embodiment of the present application, the scoring result of the deductive richness of the first object can be determined by determining a first ratio of the number of categories of the first vector to the number of second objects, and determining a second ratio of the number of categories of the first vector to the number of object types corresponding to the first object. The calculation process is simple and efficient, which improves the analysis efficiency.
[0130] In another embodiment of the present application, Figure 4 As shown, the S204 may include the following steps:
[0131] S401: For any of the video segments, obtain the duration and priority of the video segment.
[0132] In an embodiment of the present application, the duration corresponding to a video clip can be obtained based on the timestamp information of the starting video frame and the ending video frame in the video clip. The priority corresponding to the video clip indicates the importance of the video clip in the video in which it is located. The importance can be marked according to a script understanding algorithm or manually marked, and the priority corresponding to each video clip can be obtained through the pre-marked importance.
[0133] S402: For any of the video segments, determine a first weight corresponding to the video segment based on the duration corresponding to the video segment, and determine a second weight corresponding to the video segment based on the priority corresponding to the video segment.
[0134] In an embodiment of the present application, for any video clip, a first weight corresponding to the video clip can be determined based on the corresponding duration of the video clip, and a second weight corresponding to the video clip can be determined based on the corresponding priority of the video clip, thereby obtaining a first weight and a second weight corresponding to each video clip.
[0135] S403: Determine a target matching degree between the video content and the text content based on a matching degree corresponding to at least one of the video clips, a first weight, and a second weight.
[0136] In an embodiment of the present application, after obtaining the first weight and the second weight corresponding to each video clip, for any video clip, the matching degree, the first weight and the second weight corresponding to the video clip can be multiplied together to obtain the weighted matching degree corresponding to the video clip, and then the scoring result of the rationality of the actor's performance corresponding to the video content is determined based on the weighted matching degrees of all video clips.
[0137] In one implementation of the embodiment of the present application, the sum of the weighted matching degrees of all video clips may be used as a scoring result of the rationality of the actor's interpretation.
[0138] In one implementation of the embodiment of the present application, the average of the weighted matching degrees of all video clips may be used as a scoring result of the rationality of the actor's interpretation.
[0139] In the embodiment of the present application, the first weight corresponding to the video clip can be determined based on the duration of the video clip, and the second weight corresponding to the video clip can be determined based on the priority of the video clip, so as to obtain the first weight and the second weight corresponding to each video clip, and then the scoring result of the rationality of the actor's interpretation corresponding to the video content is determined based on the matching degree, the first weight and the second weight corresponding to each video clip. Through this scheme, when determining the scoring result of the rationality of the interpretation of the first object corresponding to the video content, not only the matching degree of each video clip and the text clip is considered, but also the duration and priority of each video clip are considered, so that the final scoring result of the rationality of the actor's interpretation can be made more accurate.
[0140] In an embodiment of the present application, first, the first media content corresponding to the first object whose attribute information is to be determined and the second media content corresponding to the first media content are obtained; then, the attribute information of the first object is determined by determining the target matching degree between the first media content and the second media content. Compared with the current method of manually watching the work to determine whether the film and television work is consistent with the script or whether the plot introduction is consistent with the film and television work, a scoring result is finally obtained, which improves the scoring efficiency. Moreover, since no manual scoring is required, the inaccurate scoring results caused by human subjectivity are avoided, thereby improving the accuracy of the scoring.
[0141] Based on the same technical concept, the embodiment of the present application also provides a device for determining attribute information, such as Figure 5 As shown, the device comprises:
[0142] An acquisition module 501 is used to acquire a first media content corresponding to a first object whose attribute information is to be determined and a second media content corresponding to the first media content;
[0143] A first determination module 502, configured to determine a target matching degree between the first media content and the second media content;
[0144] The second determination module 503 is configured to determine attribute information corresponding to the first object based on the target matching degree.
[0145] Optionally, the first media content includes video content, and the second media content includes text content; the first determining module is specifically configured to:
[0146] Extracting at least one video segment and a first vector corresponding to the video segment from the video content;
[0147] For any of the video segments, determining a text segment corresponding to the video segment in the text content, and extracting a second vector corresponding to the text segment based on the text segment;
[0148] For any group of corresponding video segments and text segments, determining the matching degree between the video segment and the text segment based on the first vector corresponding to the video segment and the second vector corresponding to the text segment, and obtaining at least one matching degree;
[0149] Based on at least one of the matching degrees, a target matching degree between the video content and the text content is determined.
[0150] Optionally, the device further comprises:
[0151] a video content acquisition module, configured to acquire the number of object types and the number of second objects corresponding to the first object in the video content, wherein the first object and the second object are characters in the video content, and the second object is different from the first object;
[0152] A category determination module, used to determine the number of categories of the first vector;
[0153] The attribute information determination module is used to determine the attribute information corresponding to the first object based on the number of object types corresponding to the first object, the number of the second objects and the number of categories of the first vector.
[0154] Optionally, the attribute information determination module is further used to:
[0155] determining a first ratio of the number of categories of the first vector to the number of the second objects, and determining a second ratio of the number of categories of the first vector to the number of object types corresponding to the first objects;
[0156] Based on the first ratio and the second ratio, attribute information corresponding to the first object is determined.
[0157] Optionally, the first determining module is further configured to:
[0158] Using a preset first database, extracting at least one text sub-vector corresponding to the text segment from the text segment;
[0159] A second vector corresponding to the text segment is determined by using a preset second database and at least one of the text sub-vectors.
[0160] Optionally, the first determining module is further configured to:
[0161] For any of the video clips, obtaining the duration and priority corresponding to the video clip;
[0162] For any of the video segments, determining a first weight corresponding to the video segment based on the duration corresponding to the video segment, and determining a second weight corresponding to the video segment based on the priority corresponding to the video segment;
[0163] A target matching degree between the video content and the text content is determined based on a matching degree corresponding to at least one of the video segments, a first weight, and a second weight.
[0164] Optionally, the device further comprises:
[0165] The target video determination module is used to obtain the target video by using a preset algorithm for any video in the video set, and use the target video as the video content corresponding to the first object of the attribute information to be determined.
[0166] In an embodiment of the present application, first, the first media content corresponding to the first object whose attribute information is to be determined and the second media content corresponding to the first media content are obtained; then, the attribute information of the first object is determined by determining the target matching degree between the first media content and the second media content. Compared with the current method of manually watching the work to determine whether the film and television work is consistent with the script or whether the plot introduction is consistent with the film and television work, a scoring result is finally obtained, which improves the scoring efficiency. Moreover, since no manual scoring is required, the inaccurate scoring results caused by human subjectivity are avoided, thereby improving the accuracy of the scoring.
[0167] Based on the same technical concept, the embodiment of the present application also provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.
[0168] Memory 603, used for storing computer programs;
[0169] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps:
[0170] Acquire first media content corresponding to a first object of the to-be-determined attribute information and second media content corresponding to the first media content;
[0171] determining a target matching degree between the first media content and the second media content;
[0172] Attribute information corresponding to the first object is determined based on the target matching degree.
[0173] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0174] The communication interface is used for communication between the above electronic device and other devices.
[0175] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0176] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0177] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned attribute information determination methods are implemented.
[0178] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the attribute information determination methods in the above embodiments.
[0179] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0180] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0181] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for determining attribute information, characterized in that: The method comprises: Acquire first media content corresponding to a first object whose attribute information is to be determined and second media content corresponding to the first media content, wherein the first object includes a plot, lines, and characters; determining a target matching degree between the first media content and the second media content; Determining attribute information corresponding to the first object based on the target matching degree, wherein the attribute information is a restoration degree of the first object, and the higher the target matching degree is, the higher the corresponding restoration degree is; Wherein, the first media content includes: video content, and the second media content includes: text content; The determining a target matching degree between the first media content and the second media content includes: Extracting at least one video segment and a first vector corresponding to the video segment from the video content; For any of the video segments, determining a text segment corresponding to the video segment in the text content, and extracting a second vector corresponding to the text segment based on the text segment; For any group of corresponding video segments and text segments, determining the matching degree between the video segment and the text segment based on the first vector corresponding to the video segment and the second vector corresponding to the text segment, and obtaining at least one matching degree; Based on at least one of the matching degrees, a target matching degree between the video content and the text content is determined.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining the number of object types and the number of second objects corresponding to the first object in the video content, wherein the first object and the second object are characters in the video content, and the second object is different from the first object, wherein the object type is used to characterize the situation faced by the first object; determining the number of categories of the first vector; Determining attribute information corresponding to the first object based on the number of object types corresponding to the first object, the number of the second objects, and the number of categories of the first vector, wherein the attribute information is a scoring result of deductive richness; The determining of the attribute information corresponding to the first object based on the number of object types corresponding to the first object, the number of the second objects, and the number of categories of the first vector includes: determining a first ratio of the number of categories of the first vector to the number of the second objects, and determining a second ratio of the number of categories of the first vector to the number of object types corresponding to the first objects; Based on the first ratio and the second ratio, attribute information corresponding to the first object is determined.
3. The method according to claim 1, characterized in that The extracting a second vector corresponding to the text segment based on the text segment includes: Using a preset first database, extracting at least one text sub-vector corresponding to the text segment from the text segment; A second vector corresponding to the text segment is determined by using a preset second database and at least one of the text sub-vectors.
4. The method according to claim 1, characterized in that: The determining, based on at least one of the matching degrees, a target matching degree between the video content and the text content comprises: For any of the video clips, obtaining the duration and priority corresponding to the video clip; For any of the video segments, determining a first weight corresponding to the video segment based on the duration corresponding to the video segment, and determining a second weight corresponding to the video segment based on the priority corresponding to the video segment; A target matching degree between the video content and the text content is determined based on a matching degree corresponding to at least one of the video segments, a first weight, and a second weight.
5. The method according to claim 1, characterized in that The method further comprises: For any video in the video set, a preset algorithm is used to obtain a target video, and the target video is used as the video content corresponding to the first object of the attribute information to be determined.
6. An attribute information determination device, characterized in that: The device comprises: An acquisition module, configured to acquire first media content corresponding to a first object of attribute information to be determined and second media content corresponding to the first media content, wherein the first object includes a plot, lines, and characters; A first determination module, configured to determine a target matching degree between the first media content and the second media content; A second determination module is used to determine the attribute information corresponding to the first object based on the target matching degree, wherein the attribute information is the restoration degree of the first object, and the higher the target matching degree is, the higher the corresponding restoration degree is; Wherein, the first media content includes: video content, and the second media content includes: text content; The first determining module is specifically configured to: Extracting at least one video segment and a first vector corresponding to the video segment from the video content; For any of the video segments, determining a text segment corresponding to the video segment in the text content, and extracting a second vector corresponding to the text segment based on the text segment; For any group of corresponding video segments and text segments, determining the matching degree between the video segment and the text segment based on the first vector corresponding to the video segment and the second vector corresponding to the text segment, and obtaining at least one matching degree; Based on at least one of the matching degrees, a target matching degree between the video content and the text content is determined.
7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 5 when executing a program stored in a memory.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Novel recommendation method and device
CN109977266A
Label adding method and device, electronic equipment and storage medium
CN110297943A
Video generation method and device
CN111711855A
