AI-driven painting tree painting emotion and psychological state analysis and recognition method and system

Through the AI-driven tree painting emotional and mental state analysis and recognition method, the animation demonstration and interactive analysis of psychological test images are realized, which solves the problem of lack of interest and interactivity in the analysis process in the existing technology and improves the efficiency of psychological treatment. .

CN119338933AInactive Publication Date: 2025-01-21SHENZHEN BEE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411229627.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2025-01-21
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the current clinical diagnosis and treatment practice, the image analysis of psychological tests lacks interest and interactivity, which affects the information reception of diagnostic analysis results, thereby reducing the efficiency of psychological treatment.

Method used

The AI-driven tree painting emotional and psychological state analysis and recognition method is adopted. By receiving and analyzing the painting elements in the psychological painting, the element explanation sequence is determined, and video processing is performed to achieve animated demonstration, which facilitates clear observation and improves interactivity.

Benefits of technology

It improves personnel's acceptance and experience of psychological analysis results, enhances the interactivity and appreciation of the analysis process, and thereby improves the efficiency of psychotherapy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119338933A_ABST
    Figure CN119338933A_ABST
Patent Text Reader

Abstract

The invention provides an AI-driven painting tree painting emotion psychological state analysis and recognition method and system, and the method comprises the steps: obtaining a painting element set corresponding to a psychological painting through receiving the psychological painting of a target analysis person sent by a painting end, and obtaining a mapping tree element in the painting element set; according to the progressive display strategy and the mapping tree elements, determining an element explanation sequence corresponding to the psychological drawing; calling corresponding psychological analysis sentences in sequence based on the element explanation sequence to obtain an analysis sentence sequence corresponding to the psychological drawing; and performing video processing on elements in the psychological painting according to the explicit-implicit alternation strategy and the analysis statement sequence to obtain analysis display data, and sending the analysis display data to a painting end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to data processing technology, and in particular to an AI-driven tree painting emotional psychological state analysis and recognition method and system. Background Art

[0002] Due to important factors such as congenital physiological development problems, pressure from study, work and life, major accidental physical / psychological trauma, and poor social and family interpersonal relationships, the incidence of mental and psychological diseases such as autism, nightmare disorders, anxiety disorders, depression, and persistent mood disorders is increasing among children, adolescents, and adults. The scale of the sick population is huge, which has brought serious impacts and restrictions on personal physical and mental health, family life quality, and social and economic development.

[0003] In existing clinical diagnosis and treatment practices, diagnosis is mainly based on psychological tests and doctor experience inquiries. During psychological diagnosis, treatment and rehabilitation, psychological test images are usually received for analysis, and the analysis results are usually sent to corresponding personnel for review. The analysis process lacks interest and interactivity, which affects personnel's acceptance of information about the diagnostic analysis results.

[0004] Therefore, how to draw trees based on psychological tests and perform animation demonstrations to facilitate personnel's clear observation, increase interactivity, and improve personnel's acceptance and experience of the analysis results, thereby improving the efficiency of psychotherapy, has become an urgent problem to be solved. Summary of the invention

[0005] The present invention provides an AI-driven tree drawing emotional psychological state analysis and recognition method and system, which can perform animation demonstration based on the tree drawing of the psychological test, facilitate personnel's clear observation, increase interactivity, and improve personnel's acceptance of the analysis results, thereby improving the efficiency of psychological treatment.

[0006] A first aspect of the present invention provides an AI-driven tree painting emotional psychological state analysis and recognition method, comprising: Receiving a psychological drawing of a target analyst sent by a drawing terminal, obtaining a drawing element set corresponding to the psychological drawing, and obtaining a mapping tree element in the drawing element set; Determine the element explanation sequence corresponding to the psychological painting according to the progressive display strategy and the mapping tree elements; Based on the element explanation sequence, corresponding psychological analysis sentences are retrieved in sequence to obtain an analysis sentence sequence corresponding to the psychological painting; The elements in the psychological painting are processed into a video format according to the strategy of alternating between revealing and concealing and the analytical sentence sequence, and the obtained analysis and display data are sent to the painting end.

[0007] Optionally, in a possible implementation manner of the first aspect, the receiving the psychological drawing of the target analyst sent by the drawing end, acquiring a drawing element set corresponding to the psychological drawing, and acquiring a mapping tree element in the drawing element set include: Receiving the psychological painting of the target analyst sent by the painting end, and obtaining the painting elements in the psychological painting based on OpenCV; The painting elements are counted to obtain a painting element set corresponding to the psychological painting, and mapping tree elements in the painting element set are extracted, and the remaining painting elements are used as related elements.

[0008] Optionally, in a possible implementation manner of the first aspect, determining the element explanation sequence corresponding to the psychological painting according to the progressive display strategy and the mapping tree elements includes: Acquire the center point of the mental painting as a coordinate origin, construct a coordinate system based on the coordinate origin, and perform coordinate processing on the mental painting; Based on OpenCV, a mapping tree outline corresponding to the mapping tree element in the mental painting is obtained, and the outline coordinates on the mapping tree outline are counted to obtain a tree outline coordinate set corresponding to the mapping tree element; Determining an independent display sequence corresponding to the mental painting according to an independent element display strategy and the tree outline coordinate set; Determining a linkage display sequence corresponding to the psychological painting based on a linkage element display strategy and the tree outline coordinate set; Determining an additional display sequence corresponding to the mental painting according to an additional display strategy and the tree outline coordinate set; The independent display sequence, the linkage display sequence and the additional display sequence are sequentially connected to obtain an element explanation sequence corresponding to the psychological painting.

[0009] Optionally, in a possible implementation of the first aspect, determining the independent display sequence corresponding to the psychological painting according to the independent element display strategy and the tree outline coordinate set includes: Obtaining a central horizontal coordinate corresponding to the mapped tree element according to the average of the minimum horizontal coordinate and the maximum horizontal coordinate in the tree outline coordinate set; Obtaining a central ordinate corresponding to the mapped tree element based on the average of the minimum ordinate and the maximum ordinate in the tree outline coordinate set; According to the central abscissa and the central ordinate, a central point corresponding to the mapping tree element is obtained as a core midpoint; Based on OpenCV, the contours corresponding to the related elements are obtained as related contours, and the related midpoints corresponding to the related elements are determined according to the contour coordinates of the related contours; Calculating according to the core midpoint and the related midpoint to obtain the correlation distance corresponding to each of the related elements; The related elements are sorted in ascending order based on the association distance to obtain a sequence of related elements, and the mapping tree element is added to the front of the first related element in the sequence of related elements to obtain an independent display sequence corresponding to the psychological painting.

[0010] Optionally, in a possible implementation manner of the first aspect, determining the linkage display sequence corresponding to the psychological painting based on the linkage element display strategy and the tree outline coordinate set includes: Determine, according to the contour coordinates in the tree contour coordinate set, the center point corresponding to the mapped tree element as the core midpoint; Based on OpenCV, the contours corresponding to the related elements are obtained as related contours, and the related midpoints corresponding to the related elements are determined according to the contour coordinates of the related contours; Calculating according to the core midpoint and the related midpoint to obtain the correlation distance corresponding to each of the related elements; Sort the related elements in ascending order based on the association distance to obtain a sequence of related elements, and sequentially combine the mapping tree elements with the related elements in the sequence of related elements to obtain a core combination sequence; Select any two of the related elements to combine to obtain a related combination element, and count the related combination elements in sequence to obtain a related combination sequence; The core combination sequence and the related combination sequence are sequentially spliced ​​to obtain a linkage display sequence corresponding to the psychological painting.

[0011] Optionally, in a possible implementation manner of the first aspect, determining the additional display sequence corresponding to the mental painting according to the additional display strategy and the tree outline coordinate set includes: Determine the preset elements missing from the mapping tree elements as contact additional elements, and sort the contact additional elements based on a preset additional order to obtain a strong binding sequence; Determine the missing preset elements in the related elements as non-contact additional elements, count the non-contact additional elements, and obtain a weak binding sequence; The strong binding sequence and the weak binding sequence are sequentially spliced ​​to obtain an additional display sequence corresponding to the psychological painting.

[0012] Optionally, in a possible implementation of the first aspect, the video processing of the elements in the psychological painting according to the alternating strategy of revealing and concealing and the parsing sentence sequence to obtain analysis and display data and send it to the painting end includes: Sequentially obtaining preset elements or preset combination elements corresponding to the psychological analysis sentences in the analysis sentence sequence as analysis elements; When it is determined that the psychological painting has the analytical element and the analytical element is a preset element, the corresponding analytical element is used as an independent display element, and the independent display element is processed into a video according to the display-hiding alternation strategy to obtain independent display data; When it is determined that the psychological painting has the analytical element and the analytical element is a preset combination element, the corresponding analytical element is used as a linkage display element, and the linkage display element is processed into a video according to a display-and-hide alternation strategy to obtain linkage display data; When it is determined that the psychological painting does not have the analytical element and the analytical element is a contact additional element, the contact additional element is processed into a video according to an alternating strategy of showing and hiding to obtain strong combination display data; When it is determined that the psychological painting does not have the analytical element and the analytical element is a non-contact additional element, the non-contact additional element is processed into a video according to an alternating strategy of showing and hiding to obtain weakly combined display data; According to the independent display data, the linkage display data, the strong combination display data and the weak combination display data, the analysis display data is obtained and sent to the painting end.

[0013] Optionally, in a possible implementation manner of the first aspect, when determining that the psychological painting has the parsed element and the parsed element is a preset element, taking the corresponding parsed element as an independent display element, and performing video processing on the independent display element according to a display-hiding alternation strategy to obtain independent display data, includes: When it is determined that the psychological painting has the analytical element and the analytical element is a preset element, the corresponding analytical element is used as an independent display element, and the psychological painting is used as a first independent display image; Based on OpenCV, an outline of an independent display element in the psychological painting is obtained as an independent display outline, and pixel values ​​of all pixels in the independent display outline are adjusted to background pixel values ​​to obtain a second independent display image; Acquire a preset playback time of the psychological analysis sentence corresponding to the independent display element, and alternately display the first independent display image and the second independent display image based on the preset playback time to obtain independent display data; When it is determined that the psychological painting has the analytical element and the analytical element is a preset combination element, the corresponding analytical element is used as a linkage display element, and the linkage display element is processed into a video according to the display and hide alternation strategy to obtain linkage display data, including: When it is determined that the psychological painting has the analytical element and the analytical element is a preset combination element, the corresponding analytical element is used as a linkage display element, and the psychological painting is used as a first linkage display image; Based on OpenCV, an outline of the linkage display element in the psychological painting is obtained as a linkage display outline, and pixel values ​​of all pixels in the linkage display outline are adjusted to background pixel values ​​to obtain a second linkage display image; The preset playing time of the psychological analysis sentence corresponding to the linkage display element is obtained, and the first linkage display diagram and the second linkage display diagram are alternately displayed based on the preset playing time to obtain linkage display data.

[0014] Optionally, in a possible implementation manner of the first aspect, when determining that the psychological painting does not have the analytical element and the analytical element is a contact additional element, performing video processing on the contact additional element according to a display-and-hide alternating strategy to obtain strong combination display data includes: When it is determined that the mental painting does not have the parsed element and the parsed element is a contact additional element, extracting a carrier contour line in the mapping tree element based on OpenCV, and using the mental painting as a first additional display image; Counting the number of pixels in the mapping tree outline to obtain the number of strong carrier pixels, and determining the mapping area of ​​the mapping tree element based on the number of strong carrier pixels; Obtaining a scaling factor according to a ratio of the mapping area to a preset area, and performing scaling processing on the contact additional element according to the scaling factor to obtain an actual additional element of the mapping tree element; Setting a plurality of adding points on the carrier contour line according to a preset interval, and vertically setting the actual additional element on the carrier contour line based on the adding points; When it is determined that the actual additional element overlaps with the mapping tree element, the corresponding actual additional element is used as a deleted additional element, and the deleted additional element is deleted and updated to obtain a second additional display diagram; Acquire a preset playback time of the psychological analysis sentence corresponding to the contact additional element, and alternately display the first additional display image and the second additional display image based on the preset playback time to obtain strong combination display data; When it is determined that the psychological painting does not have the analytical element and the analytical element is a non-contact additional element, the non-contact additional element is processed into a video according to an alternating strategy of display and concealment to obtain weakly combined display data, including: When it is determined that the mental painting does not have the analytical element and the analytical element is a non-contact additional element, the corresponding related element is used as a carrier element, the outline of the carrier element is extracted as a carrier outline according to OpenCV, and a combination slot is constructed in a blank area on one side of the carrier outline; Counting the number of pixels within the carrier outline to obtain the number of weak carrier pixels, and determining the carrier area of ​​the carrier element based on the number of weak carrier pixels; Based on the ratio of the carrier area to the preset area, a scaling factor is obtained, and the non-contact additional element is scaled according to the scaling factor to obtain a carrier additional element of the carrier element; Updating the carrier additional element to the binding slot, and constructing an associated display line between the binding slot and the carrier outline to obtain a first carrier display diagram; Based on OpenCV, the outline of the carrier additional element in the first carrier display image is obtained as the additional display outline, and the pixel values ​​of all pixels in the additional display outline are adjusted to the background pixel values ​​to obtain the second carrier display image; The preset playing time of the psychological analysis sentence corresponding to the non-contact additional element is obtained, and the first carrier display image and the second carrier display image are alternately displayed based on the preset playing time to obtain weak combination display data.

[0015] A second aspect of the present invention provides an AI-driven tree painting emotional psychological state analysis and recognition system, comprising: An acquisition module, used for receiving a psychological drawing of a target analyst sent by a drawing terminal, acquiring a drawing element set corresponding to the psychological drawing, and acquiring a mapping tree element in the drawing element set; A determination module, used for determining the element explanation sequence corresponding to the psychological painting according to the progressive display strategy and the mapping tree elements; A calling module, used for calling corresponding psychological analysis sentences in sequence based on the element explanation sequence, and obtaining an analysis sentence sequence corresponding to the psychological painting; The processing module is used to process the elements in the psychological painting into a video format according to the alternating strategy of revealing and concealing and the analytical sentence sequence, and obtain the analysis and display data and send it to the painting end.

[0016] According to a third aspect of the present invention, there is provided an electronic device, comprising: a memory, a processor and a computer program, wherein the computer program is stored in the memory, and the processor runs the computer program to execute the first aspect of the present invention and various methods that may be involved in the first aspect.

[0017] According to a fourth aspect of an embodiment of the present invention, a storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the first aspect of the present invention and various methods that may be involved in the first aspect.

[0018] The beneficial effects of the present invention are as follows: 1. The present invention can perform animation demonstrations based on the painting images of the psychological test, which is convenient for personnel to observe clearly, increases interactivity, and improves personnel's acceptance of the analysis results, thereby improving the efficiency of psychological treatment. First, the present invention can obtain the painting elements in the psychological painting, and then determine the corresponding element explanation sequence in the psychological painting according to the progressive display strategy, so as to retrieve the psychological analysis sentences in sequence according to the element explanation sequence, so as to perform automatic explanation, and the present invention can also process the elements in the psychological painting into a video, so that the elements in the psychological painting are automatically displayed dynamically with the explanation of the psychological analysis sentence, so that when personnel watch the explanation video, they can quickly locate the current explanation element, enhance the viewing experience, and thus improve the personnel's understanding of the analysis results.

[0019] 2. The present invention can obtain the explanation order of the corresponding psychological painting with the mapping tree element as the core, so that the psychological analysis logic is clear, convenient for personnel to understand, and avoid information omission. Among them, the present invention can determine the corresponding independent display sequence according to the association distance between the relevant elements and the mapping tree elements, and combine the elements to obtain the linkage display sequence. At the same time, the present invention can also automatically match the information for the elements in the psychological painting and automatically add additional display elements, so that when the personnel watch the analysis video, they can clearly view the corresponding analysis elements, and at the same time improve the personnel's understanding of the psychological analysis results. Finally, the present invention can obtain the additional display sequence, thereby connecting the independent display sequence, the linkage display sequence and the additional display sequence, and then obtain the element explanation sequence corresponding to the psychological painting, and realize the explanation order determined with the tree as the core, which can ensure that the entire explanation process revolves around the core element of the tree, and the association and logical order between the elements are clear, which helps personnel better understand and grasp the entire analysis process and avoid information confusion or omission.

[0020] 3. The present invention can process the psychological painting into a video, and display the corresponding elements alternately, so that when people watch, they can quickly locate the corresponding explanation elements through the prominent display of the change of display and hide. Among them, the present invention can adjust the pixel value of the pixel point corresponding to the analysis element corresponding to the psychological analysis sentence to the background pixel value, so that the analysis element is integrated with the background of the psychological painting, and the image hiding effect is achieved, so that the corresponding image with display elements and the image without display elements are alternately displayed to achieve the display and hide transformation, so that when people watch the psychological analysis video, they can quickly locate the position of the element currently analyzed, so as to facilitate the intuitive viewing and understanding of the psychological analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A flowchart of an AI-driven tree painting emotional psychological state analysis and recognition method provided by the present invention; Figure 2 A schematic diagram of a first independent display diagram provided by the present invention; Figure 3 A schematic diagram of a second independent display diagram provided by the present invention; Figure 4 A schematic diagram of the structure of an AI-driven tree painting emotional psychological state analysis and recognition system provided by the present invention; Figure 5 A schematic diagram of the hardware structure of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0022] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0023] like Figure 1 As shown, the present invention provides a schematic diagram of an AI-driven tree painting emotional psychological state analysis and recognition method, the AI-driven tree painting emotional psychological state analysis and recognition method comprising: S1, receiving a psychological drawing of a target analyst sent by a drawing terminal, obtaining a drawing element set corresponding to the psychological drawing, and obtaining a mapping tree element in the drawing element set.

[0024] It should be noted that in order to analyze the psychological state of the painter, the server can receive the uploaded psychological painting to extract the element information of the psychological painting, so that the analysis results can be customized and displayed according to the extracted elements and the painting feature recognition model that has been trained and verified with a large amount of data, so that personnel can clearly view the painting elements corresponding to the analysis results.

[0025] It can be understood that the painting end is the information terminal of the person who uploads the painting, which can be a mobile phone, computer, etc. that uploads the painting; the target analyst is the target person who analyzes the psychological painting, that is, the painter; the psychological painting is the painting for psychological analysis; the painting element set is the set of elements in the psychological painting, for example, it can be a set of multiple elements (trees, people, houses, grass), and the mapped tree elements are the tree elements in the psychological painting.

[0026] It is not difficult to understand that tree painting refers to the painter freely painting images on white paper without restrictions or guidance. Tree painting analysis is based on the house-tree-person psychological analysis theory. By identifying the images in the paintings and analyzing the projected emotions and psychological states of the subjects, it serves for psychological diagnosis and treatment. By analyzing the trees in the paintings, the psychological state and personality analysis of the corresponding characters can be obtained. At the same time, when the analysis is centered on trees, the clarity and completeness of the analysis logic can be ensured.

[0027] Through the above implementation, the present invention can obtain a set of painting elements and mapping tree elements of psychological painting, so as to display corresponding analysis results in sequence later, which is convenient for personnel to view.

[0028] In some embodiments, the specific implementation of step S1 (receiving the psychological drawing of the target analyst sent by the drawing end, obtaining a drawing element set corresponding to the psychological drawing, and obtaining a mapping tree element in the drawing element set) includes: S11, receiving the psychological painting of the target analyst sent by the painting end, and obtaining the painting elements in the psychological painting based on OpenCV.

[0029] It is understandable that when the server receives the mental drawing sent by the target analyst, it can perform contour recognition on the elements in the mental drawing through the OpenCV image recognition technology, thereby extracting each drawing element.

[0030] Among them, OpenCV is an existing image processing technology that can automatically recognize painting images. The painting elements are image elements in psychological paintings, such as trees, houses, etc.

[0031] S12, counting the painting elements to obtain a painting element set corresponding to the psychological painting, extracting mapping tree elements from the painting element set, and taking the remaining painting elements as related elements.

[0032] It can be understood that all painting elements are counted to obtain a painting element set, so that the analysis information corresponding to the painting elements in the painting element set can be displayed later, and the mapping tree elements can be extracted, and other painting elements in the painting element set can be used as related elements to facilitate the subsequent display of analysis results.

[0033] For example, when the painting element set contains trees, houses, and people, the corresponding trees are mapped tree elements, and the remaining houses and people are related elements.

[0034] S2, determining the element explanation sequence corresponding to the psychological painting according to the progressive display strategy and the mapping tree elements.

[0035] It can be understood that the element explanation sequence is the explanation sequence of the element analysis of the psychological painting. For example, the tree element can be explained first, followed by the analysis and explanation of the house, and finally the analysis and explanation of the person, then the element explanation sequence can be obtained as (tree, house, person).

[0036] It is not difficult to understand that, by determining the element explanation sequence, the present invention can subsequently dynamically display the psychological painting image according to the element explanation sequence to enhance the interactivity of the analysis process.

[0037] In some embodiments, the specific implementation of step S2 (determining the element explanation sequence corresponding to the psychological painting according to the progressive display strategy and the mapping tree elements) includes: S21, obtaining the center point of the mental drawing as a coordinate origin, constructing a coordinate system based on the coordinate origin, and performing coordinate processing on the mental drawing.

[0038] It can be understood that the coordinate origin is the origin of the coordinate system. The center point of the psychological painting can be obtained through OpenCV, so that the center point of the painting is used as the coordinate origin to establish a coordinate system, so as to subsequently determine the coordinates of each painting element, thereby obtaining the corresponding element explanation sequence.

[0039] S22, based on OpenCV, obtaining a mapping tree outline corresponding to the mapping tree element in the mental painting, counting outline coordinates on the mapping tree outline, and obtaining a tree outline coordinate set corresponding to the mapping tree element.

[0040] It should be noted that in order to determine the distance between each related element and the mapping tree element, so as to obtain the corresponding element explanation sequence later, OpenCV image processing technology can be used to obtain the mapping tree outline and obtain the corresponding tree outline coordinate set, so as to facilitate the subsequent determination of the center point of the mapping tree element and obtain the center point of the related elements, and then the corresponding element explanation sequence can be determined according to the distance between the elements.

[0041] It can be understood that the mapping tree contour is the image contour of the mapping tree element, the contour coordinates are the coordinates of the contour points of the image contour, and the tree contour coordinate set is the set of contour coordinates on the mapping tree contour of the mapping tree element.

[0042] It is not difficult to understand that OpenCV can identify image pixels to obtain the corresponding element contours, and then the coordinates of the corresponding pixels can be obtained according to the mapped tree contours, that is, the contour coordinates, so that the tree contour coordinate set can be statistically obtained.

[0043] Through the above implementation, the present invention can obtain a tree outline coordinate set, so as to subsequently obtain the distance between the mapping tree element and the related elements, thereby obtaining the element explanation sequence.

[0044] S23, determining an independent display sequence corresponding to the mental painting according to the independent element display strategy and the tree outline coordinate set.

[0045] It should be noted that when conducting psychological analysis on psychological paintings, individual painting elements can be explained, and then multiple elements can be combined for explanation. Therefore, an independent display sequence for explaining the painting elements in psychological paintings separately can be determined in priority.

[0046] It can be understood that the independent display sequence is a sequence in which the painting elements are displayed independently.

[0047] In some embodiments, the specific implementation of step S23 (determining the independent display sequence corresponding to the psychological painting according to the independent element display strategy and the tree outline coordinate set) includes: S231, obtaining a central horizontal coordinate corresponding to the mapping tree element according to the average of the minimum horizontal coordinate and the maximum horizontal coordinate in the tree outline coordinate set.

[0048] It can be understood that, according to the contour coordinates in the tree contour coordinate set, the minimum horizontal coordinate and the maximum horizontal coordinate are selected for mean calculation, so as to obtain the central horizontal coordinate corresponding to the mapping tree element, so as to facilitate the subsequent determination of the center point of the corresponding mapping tree element with the central vertical coordinate, thereby facilitating the corresponding independent display sequence.

[0049] Among them, the minimum horizontal coordinate is the minimum horizontal coordinate value in the tree outline coordinate set, the maximum horizontal coordinate is the maximum horizontal coordinate value in the tree outline coordinate set, and the center horizontal coordinate is the horizontal coordinate of the center point corresponding to the mapped tree element.

[0050] For example, when the maximum horizontal coordinate is 20 and the minimum horizontal coordinate is 4, the mean calculation results in the central horizontal coordinate being (20+4) / 2=12.

[0051] S232: Obtain a central ordinate corresponding to the mapping tree element based on the average of the minimum ordinate and the maximum ordinate in the tree outline coordinate set.

[0052] It can be understood that the minimum ordinate is the minimum ordinate value in the tree outline coordinate set, the maximum ordinate is the maximum ordinate value in the tree outline coordinate set, and the center ordinate is the ordinate of the center point corresponding to the mapped tree element.

[0053] For example, when the maximum vertical coordinate is 16 and the minimum vertical coordinate is 2, the mean calculation results in the central vertical coordinate being (16+2) / 2=9.

[0054] S233: Obtain a center point corresponding to the mapping tree element as a core midpoint according to the center horizontal coordinate and the center vertical coordinate.

[0055] It can be understood that the coordinates of the corresponding center point position can be determined based on the center horizontal coordinate and the center vertical coordinate, so that the center point of the mapping tree element can be obtained. For example, when the center horizontal coordinate is 12 and the center vertical coordinate is 9, the corresponding coordinate point (12,9) is the center point corresponding to the mapping tree element.

[0056] Among them, the core midpoint is the center point corresponding to the mapping tree element.

[0057] Through the above implementation, the present invention can obtain the core midpoint corresponding to the mapping tree element, so as to determine the corresponding distance with the relevant midpoint of each related element in the subsequent step, thereby obtaining an independent display sequence.

[0058] S234, acquiring contours corresponding to the related elements as related contours based on OpenCV, and determining related midpoints corresponding to the related elements according to contour coordinates of the related contours.

[0059] It can be understood that the relevant contour is the contour corresponding to the relevant element, and the relevant midpoint is the image center point corresponding to the relevant element.

[0060] It is not difficult to understand that the implementation method for obtaining the relevant midpoints is consistent with the implementation method for obtaining the core midpoints described above, and will not be elaborated here.

[0061] S235, performing calculation according to the core midpoint and the related midpoint to obtain the correlation distance corresponding to each of the related elements.

[0062] It is understandable that the distance calculation can be performed through the coordinates of the core midpoint and the coordinates of each related midpoint to obtain the associated distance between the related elements and the mapping tree elements, so as to determine the display order of each related element through the associated distance.

[0063] Among them, the correlation distance is the distance between the core midpoint and the correlation midpoint.

[0064] S236, sorting the related elements in ascending order based on the association distance to obtain a sequence of related elements, and adding the mapping tree element to the front of the first related element in the sequence of related elements to obtain an independent display sequence corresponding to the psychological painting.

[0065] It is understandable that in order to display gradually around the mapping tree element, the associated distances are sorted in ascending order, so that related elements that are close to the mapping tree element can be displayed first, avoiding disordered display and missing elements.

[0066] The associated element sequence is an element sequence in which the associated elements are arranged in ascending order according to the associated distance, and the independent display sequence is a sequence in which the mapping tree element is added to the front of the first associated element in the associated element sequence.

[0067] Through the above implementation, the present invention can obtain an independent display sequence, so that the corresponding element explanation sequence can be determined later, thereby performing analysis and explanation of the elements.

[0068] S24, determining a linkage display sequence corresponding to the psychological painting based on the linkage element display strategy and the tree outline coordinate set.

[0069] It is understandable that combinations of different elements may also have corresponding analysis results. Therefore, a display sequence of corresponding linkage elements can be obtained by combining and sorting a variety of painting elements.

[0070] The linkage element is a combined element obtained by associating and combining multiple painting elements. For example, a tree and a house are combined to obtain a linkage element tree-house. The linkage display sequence is a display sequence of analysis results corresponding to the linkage element.

[0071] Through the above implementation, the present invention can obtain a linkage display sequence, so as to facilitate the subsequent sorting of multiple sequences to obtain an element explanation sequence, so as to facilitate the display of analysis results.

[0072] In some embodiments, the specific implementation of step S24 (determining the linkage display sequence corresponding to the psychological painting based on the linkage element display strategy and the tree outline coordinate set) includes: S241, determining the center point corresponding to the mapped tree element as the core midpoint according to the contour coordinates in the tree contour coordinate set.

[0073] It can be understood that the corresponding center horizontal coordinate and center vertical coordinate are obtained according to the contour coordinates in the tree contour coordinate set, so that the coordinates of the corresponding center point position can be determined, and the center point of the mapped tree element can be obtained. For example, when the center horizontal coordinate is 12 and the center vertical coordinate is 9, the corresponding coordinate point (12,9) is the center point corresponding to the mapped tree element.

[0074] Among them, the core midpoint is the center point corresponding to the mapping tree element.

[0075] Through the above implementation, the present invention can obtain the core midpoint corresponding to the mapping tree element, so as to determine the corresponding distance with the relevant midpoint of each related element in the subsequent step, thereby obtaining a linkage display sequence.

[0076] S242, based on OpenCV, obtaining contours corresponding to the related elements as related contours, and determining related midpoints corresponding to the related elements according to contour coordinates of the related contours.

[0077] It can be understood that the relevant contour is the contour corresponding to the relevant element, and the relevant midpoint is the image center point corresponding to the relevant element.

[0078] It is not difficult to understand that the implementation method for obtaining the relevant midpoints is consistent with the implementation method for obtaining the core midpoints described above, and will not be elaborated here.

[0079] S243, performing calculation according to the core midpoint and the related midpoint to obtain the correlation distance corresponding to each of the related elements.

[0080] It is understandable that the distance calculation can be performed through the coordinates of the core midpoint and the coordinates of each related midpoint to obtain the associated distance between the related elements and the mapping tree elements, so as to determine the display order of each related element through the associated distance.

[0081] Among them, the correlation distance is the distance between the core midpoint and the correlation midpoint.

[0082] S244, sorting the related elements in ascending order based on the association distance to obtain an association element sequence, and combining the mapping tree elements with the related elements in the association element sequence in sequence to obtain a core combination sequence.

[0083] It can be understood that after the related elements are sorted, the corresponding related elements can be combined with the mapping tree elements in sequence according to the associated element sequence. Since the elements are combined in sequence according to the arrangement order of the related elements in the associated element sequence, the order of the associated elements in the core combination sequence obtained after the combination is consistent with the arrangement order of the related elements in the associated element sequence.

[0084] For example, when the sequence of associated elements is (house, bird, person), the core combination sequence can be obtained as (tree-house, tree-bird, tree-person).

[0085] The associated element sequence is an element sequence obtained by arranging the related elements in ascending order according to the associated distance, and the core combination sequence is an element sequence obtained by arranging the combined associated elements.

[0086] Through the above implementation, the present invention can obtain a core combination sequence, so as to obtain a corresponding linkage display sequence later.

[0087] S245, selecting any two of the related elements to combine to obtain a related combination element, and sequentially counting the related combination elements to obtain a related combination sequence.

[0088] It can be understood that after combining the relevant elements with the mapping tree elements, different relevant elements can also be combined to obtain corresponding psychological analysis information. In order to ensure the completeness and accuracy of the analysis results, any two relevant elements can be combined, and the relevant combination elements can be counted in turn to obtain a relevant combination sequence, so as to facilitate the subsequent determination of the corresponding linkage display sequence.

[0089] The related combination element is a combination element obtained by combining different related elements, and the related combination sequence is an element sequence obtained by sorting the related combination elements.

[0090] For example, when the related elements are house, bird, and person, the related combination elements are house-bird, house-person, bird-person, and the corresponding related combination sequence is (house-bird, house-person, bird-person).

[0091] S246, sequentially splicing the core combination sequence and the related combination sequence to obtain a linkage display sequence corresponding to the psychological painting.

[0092] It can be understood that by splicing the core combination sequence and the related combination sequence, the display sequence for the subsequent explanation and analysis of the elements in the psychological painting can be determined, so that the subsequent automatic display can be carried out according to the sequence, which is convenient for personnel to view, thereby avoiding the omission of analysis information.

[0093] For example, when the core combination sequence is (tree-house, tree-bird, tree-person) and the related combination sequence is (house-bird, house-person, bird-person), after splicing, the linkage display sequence obtained is (tree-house, tree-bird, tree-person, house-bird, house-person, bird-person).

[0094] S25, determining an additional display sequence corresponding to the mental painting according to the additional display strategy and the tree outline coordinate set.

[0095] It should be noted that the painting forms of the mapping tree elements in the psychological painting received by the server can be diverse. For example, the corresponding mapping tree elements may have leaves or fruits, and some mapping tree elements may only have trunks and branches. The psychological analysis results corresponding to different forms of mapping tree elements are inconsistent. Therefore, when the psychological painting is subsequently explained and analyzed, in order to display the corresponding element image, the corresponding display elements that need to be added and the additional display sequence can be determined, so that the corresponding additional elements can be added to the psychological painting and explained and displayed according to the additional display sequence.

[0096] It can be understood that the additional display sequence is an element sequence with additional elements for display, for example, it may be (leaves, fruits).

[0097] Through the above implementation, the present invention can obtain an additional display sequence, so as to obtain a corresponding element explanation sequence later, and then display it for people to view.

[0098] In some embodiments, the specific implementation of step S25 (determining the additional display sequence corresponding to the psychological painting according to the additional display strategy and the tree outline coordinate set) includes: S251, determining the preset elements missing from the mapping tree elements as contact additional elements, and sorting the contact additional elements based on a preset additional order to obtain a strong binding sequence.

[0099] It should be noted that OpenCV can be used to determine the image corresponding to the mapped tree element. Usually, tree-related elements can be distinguished by leaves, flowers, fruits, etc. Therefore, when it is determined that the mapped tree elements in the psychological painting do not have corresponding leaves and fruits, the missing preset elements can be sorted so that they can be demonstrated during subsequent analysis and explanation, so that the personnel can more clearly determine the psychological state of the corresponding target analyst.

[0100] It can be understood that the preset elements are pre-set elements, such as leaves, fruits, etc., the contact additional elements are preset elements missing in the mapping tree elements, the preset additional order is the display order set in advance for the preset elements, and the strong binding sequence is the sequence obtained by sorting the contact additional elements according to the preset additional order.

[0101] S252, determining the missing preset elements in the related elements as non-contact additional elements, counting the non-contact additional elements, and obtaining a weak binding sequence.

[0102] It should be noted that some basic elements may be missing in the corresponding related elements. For example, when the related element is a person, if there are no shoes painted on the feet of the person in the corresponding psychological painting, the psychological state of not having shoes painted is different from that of having shoes painted. Therefore, the missing non-contact additional elements corresponding to the related elements can be counted to obtain the corresponding weak binding sequence, so as to facilitate the subsequent sequential display of the additional elements.

[0103] The non-contact additional elements are preset elements missing from the related elements, and the weak binding sequence is an element sequence after sorting the non-contact additional elements.

[0104] It is not difficult to understand that since the number of non-contact additional elements corresponding to the relevant elements is large and the degree of influence on the results of analytical psychology is low, when sorting the non-contact additional elements, they can be arranged randomly without strict order requirements.

[0105] S253, sequentially concatenating the strong binding sequence and the weak binding sequence to obtain an additional display sequence corresponding to the psychological painting.

[0106] It can be understood that by splicing the strong binding sequence and the weak binding sequence in sequence, the additional display sequence corresponding to the psychological painting can be obtained, so as to facilitate the subsequent determination of the corresponding element explanation sequence, and then facilitate the explanation and display, which will help personnel better understand and grasp the entire analysis process and avoid information confusion or omissions.

[0107] S26, sequentially connecting the independent display sequence, the linkage display sequence and the additional display sequence to obtain an element explanation sequence corresponding to the psychological painting.

[0108] It can be understood that by connecting the independent display sequence, the linked display sequence and the additional display sequence, we can get the element explanation sequence corresponding to the psychological painting, and determine the explanation order with the tree as the core. This can ensure that the entire explanation process revolves around the core element of the tree, and the relationship and logical order between the elements are clear, which helps people better understand and grasp the entire analysis process and avoid information confusion or omissions.

[0109] S3, based on the element explanation sequence, corresponding psychological analysis sentences are retrieved in sequence to obtain an analysis sentence sequence corresponding to the psychological painting.

[0110] It should be noted that the painting tree painting feature recognition model, which has been trained with a large amount of data, can already recognize and analyze the received psychological paintings. The model stores a large number of analytical statements corresponding to the painting elements obtained after training. Therefore, when the corresponding psychological painting is uploaded, it can be automatically recognized, and the analytical statements corresponding to the elements can be sorted, so as to facilitate the subsequent display according to the analytical statement sequence, so that the relationship and logical order between the elements are clear and understandable, avoiding information confusion or omissions.

[0111] The psychological analysis sentence is a descriptive sentence that performs psychological analysis on an element, and the analysis sentence sequence is a sentence arrangement sequence in which multiple psychological analysis sentences are displayed in sequence.

[0112] It is not difficult to understand that each painting element has a corresponding psychological analysis sentence, so the corresponding psychological analysis sentences can be arranged in sequence according to the element explanation sequence to obtain an analysis sentence sequence. Among them, when there is an element in the element explanation sequence that does not have a corresponding psychological analysis sentence in the training model, the element does not need to be analyzed, and the corresponding psychological analysis sentences only need to be arranged in sequence to obtain the final analysis sentence sequence used for explanation and display.

[0113] Through the above implementation, the present invention can obtain a parsing statement sequence, so as to explain and display the corresponding elements according to the parsing statement sequence later.

[0114] S4, performing video processing on the elements in the psychological painting according to the strategy of alternating between explicit and implicit and the analytical sentence sequence, and obtaining analysis and display data and sending it to the painting end.

[0115] It is understandable that in order to facilitate personnel's intuitive viewing, when receiving the results of psychological analysis, the elements of the current analysis can be quickly located, thereby improving the interactivity of the psychological analysis process, so that the psychological painting can be processed into video form, and the corresponding elements can be displayed alternately so that when personnel watch, they can highlight the changes in visibility and hiding, so that they can quickly locate the corresponding explanation elements.

[0116] The analysis and display data is video data for analyzing and displaying psychological paintings.

[0117] Through the above implementation, the present invention can obtain analysis and display data so as to send it to the drawing end, thereby intuitively viewing the corresponding psychological analysis results.

[0118] In some embodiments, the specific implementation of step S4 (the video processing of the elements in the psychological painting according to the alternating strategy of revealing and concealing and the analytical statement sequence, and the obtained analysis and display data sent to the painting end) includes: S41, sequentially obtaining preset elements or preset combination elements corresponding to the psychological analysis sentences in the analysis sentence sequence as analysis elements.

[0119] It is understandable that since there may be uncorresponding psychological analysis sentences in the element explanation sequence, in order to ensure that the psychological analysis sentences during the explanation accurately correspond to the elements, and also to determine the display order of the elements during the psychological analysis explanation, the corresponding analysis elements can be determined based on the psychological analysis sentences in the analysis sentence sequence.

[0120] The parsing element is a preset element or a preset combination element corresponding to the psychological parsing sentence in the parsing sentence sequence.

[0121] S42, when it is determined that the psychological painting has the analytical element and the analytical element is a preset element, the corresponding analytical element is used as an independent display element, and the independent display element is processed into a video according to the display-hiding alternation strategy to obtain independent display data.

[0122] It can be understood that when it is determined that there is a corresponding analytical element in the psychological painting and it is a preset element, the corresponding analytical element can be used as an independent display element so as to perform video-based display and hiding processing on the independent display element to obtain independent display data, so as to facilitate the subsequent generation of analysis and display data and facilitate personnel to quickly locate and view it.

[0123] Among them, the independent display element is the corresponding analysis element when the psychological painting has the analysis element and the analysis element is a preset element. For example, when there is a analysis element (tree) corresponding to the psychological analysis sentence in the psychological painting, and the analysis element is a preset element, that is, an independent single element, so the analysis element (tree) can be used as an independent display element.

[0124] Furthermore, the independent display data is a display video obtained by converting the independent display elements into video data. For example, when the independent display element is a tree, the tree is converted into a painting into a video so that the corresponding elements can appear alternately visible and invisible, so that subsequent personnel can quickly locate the parsed elements through the video data for intuitive viewing.

[0125] In some embodiments, the specific implementation of step S42 (determining that the psychological painting has the analytical element, and when the analytical element is a preset element, taking the corresponding analytical element as an independent display element, and performing video processing on the independent display element according to the display and hide alternation strategy to obtain independent display data) includes: S421: When it is determined that the psychological painting has the analytical element and the analytical element is a preset element, the corresponding analytical element is used as an independent display element, and the psychological painting is used as a first independent display image.

[0126] It is understandable that when the psychological painting has analytical elements and the corresponding analytical elements are preset elements, the psychological painting can be used as the first independent display image, for example, Figure 2 As shown, when a psychological analysis is performed on a character in a psychological painting, the corresponding character can be used as an independent display element, thereby using the psychological painting as the first independent display image.

[0127] Through the above implementation, the present invention can obtain a first independent display image to facilitate subsequent alternating display of visibility and concealment, thereby realizing video processing for quick viewing by personnel.

[0128] S422, based on OpenCV, obtaining the outline of the independent display element in the psychological painting as an independent display outline, adjusting the pixel values ​​of all pixels in the independent display outline to background pixel values, and obtaining a second independent display image.

[0129] It is understandable that after extracting the independent display outline of the independent display element, the pixel values ​​of all pixels within the independent outline can be adjusted to background pixel values, such as white, so that the independent display element is integrated with the background, the visual image disappears, and it is used as a second independent display image.

[0130] Among them, the independent display outline is the outline of the independent display element in the psychological painting, the background pixel value is the pixel value corresponding to the painting background, for example, it can be white, and the second independent display image is an image after the pixel values ​​of all pixels in the independent display outline are adjusted to the background pixel value.

[0131] For example: Figure 3 As shown, when Figure 2 When the comparatively independent display element is a person, the pixel value of the corresponding person element can be adjusted so that the person blends into the background to achieve a visual disappearance effect, thereby obtaining a second independent display image so that when it alternates with the first independent display image, people can clearly see the current parsed element.

[0132] Through the above implementation, the present invention can obtain a second independent display image, so as to be alternately displayed with the first independent display image later, thereby realizing the display and hiding transformation of elements in the video data.

[0133] S423, obtaining a preset playback time of the psychological analysis sentence corresponding to the independent display element, and alternately displaying the first independent display image and the second independent display image based on the preset playback time to obtain independent display data.

[0134] It is understandable that since it takes a certain amount of time to explain the psychological analysis sentence for psychological analysis of the independent display element, in order to make the psychological analysis sentence explained at the current moment correspond to the displayed independent display element, the first independent display image and the second independent display image can be displayed alternately according to the preset playback time of the psychological analysis sentence, so as to achieve the effect of showing and hiding the independent display element, so that people can quickly locate the current analysis element when viewing the video.

[0135] The preset playback duration is a preset display duration, such as 4 seconds.

[0136] It is not difficult to understand that when the preset playback time is 4 seconds, when the first independent display image and the second independent display image are alternately displayed, each image can be displayed for 1 second, that is, after the first independent display image is displayed for 1 second, the second independent display image is displayed for 1 second, and then the first independent display image is displayed. Figure 1 s, finally display the second independent display Figure 1 s, so that within the playback time of the current psychological analysis sentence, the first independent display image and the second independent display image are alternately displayed to obtain independent display data corresponding to each independent display element.

[0137] S43, when it is determined that the psychological painting has the analytical element and the analytical element is a preset combination element, the corresponding analytical element is used as a linkage display element, and the linkage display element is processed into a video according to a display-and-hide alternating strategy to obtain linkage display data.

[0138] It can be understood that when it is determined that there is a corresponding analytical element in the psychological painting and it is a preset combination element, the corresponding analytical element can be used as a linkage display element to perform video-based display and hidden processing on the linkage display element to obtain linkage display data, so as to facilitate the subsequent generation of analysis and display data and facilitate personnel to quickly locate and view.

[0139] Among them, the linkage display element is the corresponding analysis element when the psychological painting has the analysis element, and the analysis element is a preset combination element. For example, when there is a analysis element (tree-person) corresponding to the psychological analysis sentence in the psychological painting, and the analysis element is a preset combination element, that is, a linkage element after multiple elements are combined, the analysis element (tree-person) can be used as a linkage display element.

[0140] In addition, the linkage display data is a display video after the linkage display elements are processed into video form. For example, when the linkage display element is a tree-person, the tree and person in the painting are processed into a video form so that the corresponding elements can appear alternately, so that subsequent personnel can quickly locate the parsed elements through the video data for intuitive viewing.

[0141] In some embodiments, the specific implementation of step S43 (when it is determined that the psychological painting has the analytical element and the analytical element is a preset combination element, the corresponding analytical element is used as a linkage display element, and the linkage display element is processed into a video according to the display and hide alternation strategy to obtain linkage display data) includes: S431, when it is determined that the psychological painting has the analytical element and the analytical element is a preset combination element, the corresponding analytical element is used as a linkage display element, and the psychological painting is used as a first linkage display diagram.

[0142] It is understandable that when the psychological painting has analytical elements and the corresponding analytical elements are preset combination elements, the psychological painting can be used as the first linkage display diagram.

[0143] Through the above implementation, the present invention can obtain a first linkage display diagram to facilitate subsequent alternating display of visibility and concealment, thereby realizing video processing for quick viewing by personnel.

[0144] S432, based on OpenCV, obtaining the outline of the linkage display element in the psychological painting as a linkage display outline, adjusting the pixel values ​​of all pixels in the linkage display outline to background pixel values, and obtaining a second linkage display image.

[0145] It can be understood that the linkage display outline is the outline of the linkage display element in the psychological painting. For example, when the linkage display element is a tree-person, the corresponding tree and person image outlines can be obtained, so that the pixel values ​​of the pixels in the corresponding outline can be adjusted to the background pixel values, for example, white, so that the linkage display element is integrated with the background, the visual image disappears, and the second linkage display picture is obtained.

[0146] Among them, the background pixel value is the pixel value corresponding to the painting background, for example, it can be white, and the second linkage display image is an image after the pixel values ​​of all pixels in the independent display outline are adjusted to the background pixel value.

[0147] Through the above implementation, the present invention can obtain the second linkage display diagram, so as to be alternately displayed with the first linkage display diagram in the subsequent process, thereby realizing the display and hiding transformation of elements in the video data.

[0148] S433, obtaining a preset playback time of the psychological analysis sentence corresponding to the linkage display element, and alternately displaying the first linkage display diagram and the second linkage display diagram based on the preset playback time to obtain linkage display data.

[0149] It is understandable that since it takes a certain amount of time to explain the psychological analysis sentences for psychological analysis of the linkage display elements, in order to make the psychological analysis sentences explained at the current moment correspond to the displayed linkage display elements, the first linkage display picture and the second linkage display picture can be displayed alternately according to the preset playback time of the psychological analysis sentences, thereby achieving the effect of showing and hiding the linkage display elements, so that people can quickly locate the current linkage display elements when viewing the video.

[0150] The preset playback duration is a preset display duration, such as 4 seconds.

[0151] It is not difficult to understand that when the preset playback time is 4 seconds, when the first linkage display image and the second linkage display image are alternately displayed, each image can be displayed for 1 second, that is, after the first linkage display image is displayed for 1 second, the second linkage display image is displayed for 1 second, and then the first linkage display image is displayed. Figure 1 s, finally display the second linkage display Figure 1 s, so that within the playback time of the current psychological analysis sentence, the first linkage display diagram and the second linkage display diagram are alternately displayed, and the linkage display data corresponding to each linkage display element is obtained.

[0152] S44, when it is determined that the psychological painting does not have the analytical element, and the analytical element is a contact additional element, the contact additional element is processed into a video according to an alternating display and hiding strategy to obtain strong combination display data.

[0153] It can be understood that when it is determined that the analysis element corresponding to the psychological analysis sentence does not appear in the psychological painting, and the analysis element is a contact additional element, for example, when no leaves are drawn in the psychological painting, the analysis element is a contact additional element, and the determined contact additional element can be processed by alternating video display and hiding, so that strongly combined display data can be obtained, so as to facilitate the subsequent generation of analysis and display data, so that personnel can quickly determine the corresponding analysis elements in the video during the corresponding explanation and analysis.

[0154] Among them, the strong combination display data is the psychological analysis display video data that explains the contact additional elements.

[0155] In some embodiments, the specific implementation of step S44 (determining that the psychological painting does not have the analytical element, and when the analytical element is a contact additional element, performing video processing on the contact additional element according to the display and hide alternation strategy to obtain strong combination display data) includes: S441, when it is determined that the psychological painting does not have the parsed element and the parsed element is a contact additional element, extract the carrier contour line in the mapping tree element based on OpenCV, and use the psychological painting as the first additional display image.

[0156] It can be understood that when it is determined that there is no parsed element in the mental painting and the parsed element is a contact additional element, OpenCV can be used to extract the carrier contour line carrying the contact additional element in the mapping tree element, so as to facilitate the subsequent setting of the corresponding contact additional element at the corresponding position for display.

[0157] Among them, the carrier contour line is the element contour line that carries the contact additional element for display. For example, when the contact additional element is a leaf, the leaf needs to be set on the branch corresponding to the mapping tree element, so that OpenCV can be used to extract the contour line of the branch corresponding to the mapping tree element.

[0158] Furthermore, the first additional display diagram is a psychological painting without analytical elements, and the analytical elements are the psychological painting when contacting the additional elements.

[0159] Through the above implementation, the present invention can obtain the first additional display diagram, so as to facilitate subsequent alternating display with the second additional display diagram, thereby obtaining strongly combined display data for intuitive viewing by personnel.

[0160] S442, counting the number of pixels in the mapping tree outline to obtain the number of strong carrier pixels, and determining the mapping area of ​​the mapping tree element based on the number of strong carrier pixels.

[0161] It can be understood that the number of strong carrier pixels is the number of pixels within the mapping tree outline, and the mapping area is the display area corresponding to the mapping tree element.

[0162] It is not difficult to understand that the number of pixel points in the mapping contour can be statistically summed up through the existing OpenCV image processing technology to determine the mapping area, so as to facilitate the subsequent update of the corresponding contact additional elements.

[0163] S443, obtaining a scaling factor according to a ratio of the mapping area to a preset area, scaling the contact additional element according to the scaling factor to obtain an actual additional element of the mapping tree element.

[0164] It should be noted that the contact additional element has a corresponding preset area in the preset database, but the image sizes of the mapped tree elements drawn by different people are different. For example, the area of ​​the trees in some psychological drawings is 12 , some psychological drawings have trees with an area of ​​2 In order to accurately display the corresponding contact additional element in the image, it is necessary to scale the preset area of ​​the contact additional element according to the actual image area.

[0165] It can be understood that the preset area is the area of ​​the preset contact additional element, which can be preset manually, and the scaling factor is the proportional value for scaling the contact additional element, that is, the ratio of the mapping area to the preset area. The actual additional element is the additional element actually added to the mapping tree element, for example, it can be a scaled leaf.

[0166] Through the above implementation, the present invention can obtain actual additional elements to facilitate subsequent addition and update of mapping tree elements.

[0167] S444, setting a plurality of adding points on the carrier contour line according to a preset spacing distance, and vertically setting the actual additional element on the carrier contour line based on the adding points.

[0168] It should be noted that the number of actual additional elements added to the mapped tree element may be multiple. For example, when the actual additional element is a leaf, multiple leaf elements need to be added to the branch. Therefore, multiple adding points can be set on the carrier contour line according to the preset interval distance to facilitate the addition of the actual additional elements to the carrier contour line.

[0169] It can be understood that the preset interval distance is an interval preset manually, and the added point is a location point where the actual additional element is added.

[0170] It is not difficult to understand that, after determining the adding point, the actual additional element can be set vertically at the carrier contour line. For example, when the actual additional element is a leaf, the leaf can be set vertically on the contour line corresponding to the branch, which conforms to the actual display situation.

[0171] S445, when it is determined that the actual additional element overlaps with the mapping tree element, the corresponding actual additional element is used as a deleted additional element, and the deleted additional element is deleted and updated to obtain a second additional display diagram.

[0172] It is understandable that when it is determined that the actual additional element overlaps with the mapping tree element, that is, when the actual additional element (leaves) overlaps with the mapping tree element, it may have a certain impact on the viewing of the mental painting. The overlapping actual additional element can be used as a deleted additional element for deletion, thereby obtaining a second additional display diagram, which is convenient for subsequent display.

[0173] The deleted additional element is the actual additional element corresponding to the overlap between the actual additional element and the mapping tree element, and the second additional display image is the image after the actual additional element is added and updated.

[0174] Through the above implementation, the present invention can obtain a second additional display diagram, so as to facilitate the subsequent alternating display of the corresponding second additional display diagram and the first additional display diagram, thereby obtaining strongly combined display data for personnel to view.

[0175] S446, obtaining a preset playback time of the psychological analysis sentence corresponding to the contact additional element, and alternately displaying the first additional display image and the second additional display image based on the preset playback time to obtain strong combination display data.

[0176] It is understandable that since it takes a certain amount of time to explain the psychological analysis sentence for psychological analysis of the contact additional elements, in order to make the psychological analysis sentence explained at the current moment correspond to the displayed contact additional elements, the first additional display image and the second additional display image can be displayed alternately according to the preset playback time of the psychological analysis sentence, thereby achieving the effect of showing and hiding the contact additional elements, so that people can quickly locate the current contact additional elements when viewing the video.

[0177] The preset playback duration is a preset display duration, such as 4 seconds.

[0178] It is not difficult to understand that when the preset playback time is 4 seconds, when the first additional display image and the second additional display image are alternately displayed, each image can be displayed for 1 second, that is, after the first additional display image is displayed for 1 second, the second additional display image is displayed for 1 second, and then the first additional display image is displayed. Figure 1 s, last display second additional display Figure 1 s, thereby realizing the alternating display of the first additional display image and the second additional display image within the playback duration of the current psychological analysis sentence, and obtaining the strong combination display data corresponding to each contact additional element.

[0179] S45, when it is determined that the psychological painting does not have the analytical element and the analytical element is a non-contact additional element, the non-contact additional element is processed into a video according to an alternating display and hiding strategy to obtain weakly combined display data.

[0180] It can be understood that when it is determined that the analysis element corresponding to the psychological analysis sentence does not appear in the psychological painting, and the analysis element is a non-contact additional element, for example, when the character in the psychological painting does not have glasses drawn, the analysis element is a non-contact additional element, and the determined non-contact additional element can be processed by alternating video display and hiding, so that weak combination display data can be obtained, so as to facilitate the subsequent generation of analysis and display data, so that personnel can quickly determine the corresponding analysis elements in the video during the corresponding explanation and analysis.

[0181] Among them, the weak combination display data is the psychological analysis display video data that explains the non-contact additional elements.

[0182] In some embodiments, the specific implementation of step S45 (when it is determined that the psychological painting does not have the analytical element and the analytical element is a non-contact additional element, the non-contact additional element is processed into a video according to the alternating display and hiding strategy to obtain weakly combined display data) includes: S451, when it is determined that the mental painting does not have the analytical element and the analytical element is a non-contact additional element, the corresponding related element is used as a carrier element, the outline of the carrier element is extracted as a carrier outline according to OpenCV, and a combination slot is constructed in a blank area on one side of the carrier outline.

[0183] It can be understood that when it is determined that there are no resolved elements in the mental painting and the resolved elements are non-contact additional elements, the relevant elements can be used as carrier elements, so that the contour of the carrier element can be extracted using OpenCV, and a binding slot can be constructed in the blank area on one side of the carrier contour, so that the corresponding non-contact additional element can be subsequently set in the corresponding binding slot for display.

[0184] Among them, the carrier element is the relevant element corresponding to the psychological painting when the psychological painting does not have the analytical element and the analytical element is a non-contact additional element, and the carrier contour is the contour of the carrier element. For example, when the non-contact additional element is glasses, the glasses need to be set on the glasses corresponding to the relevant element (person), so that OpenCV can be used to extract the contour of the glasses corresponding to the relevant element (person).

[0185] And, the combination slot is a slot frame for users to store non-contact additional elements.

[0186] Through the above implementation, the present invention can construct a combination slot in the blank area on one side of the carrier contour, so as to fill the corresponding non-contact additional element in the corresponding combination slot later, so as to facilitate intuitive viewing by personnel.

[0187] S452, counting the number of pixels within the carrier outline to obtain the number of weak carrier pixels, and determining the carrier area of ​​the carrier element based on the number of weak carrier pixels.

[0188] It can be understood that the number of weak carrier pixels is the number of pixels within the carrier outline, and the carrier area is the area of ​​the carrier element corresponding to the number of weak carrier pixels.

[0189] It is not difficult to understand that the number of pixels within the carrier outline can be statistically summed up through the existing OpenCV image processing technology to determine the carrier area, so as to facilitate subsequent updating of the corresponding non-contact additional elements.

[0190] S453, obtaining a scaling factor based on a ratio of the carrier area to a preset area, and performing scaling processing on the non-contact additional element according to the scaling factor to obtain a carrier additional element of the carrier element.

[0191] It should be noted that the non-contact additional elements have corresponding preset areas in the preset database, but the image sizes of the carrier elements drawn by different people are different. For example, the area of ​​the characters in some psychological drawings is 10 , some psychological paintings have figures with an area of ​​2 In order to accurately display the corresponding non-contact additional element in the combination slot, it is necessary to scale the preset area of ​​the contact additional element according to the actual image area.

[0192] It can be understood that the preset area is the area of ​​the preset non-contact additional element, which can be preset manually, and the scaling factor is the proportional value for scaling the non-contact additional element, that is, the ratio of the carrier area to the preset area. The carrier additional element is an additional element added to the carrier element, for example, it can be a scaled pair of glasses.

[0193] Through the above implementation, the present invention can obtain a carrier additional element, so as to facilitate the subsequent updating of the carrier additional element in the corresponding binding slot.

[0194] S454, updating the carrier additional element to the binding slot, and constructing an associated display line between the binding slot and the carrier outline to obtain a first carrier display diagram.

[0195] It is understandable that the carrier additional elements are filled in the corresponding binding slots, thereby constructing an associated display line between the binding slots and the carrier outline to provide guidance and prompts to personnel, thereby obtaining a first carrier display diagram.

[0196] Among them, the associated display line is a connection line connecting the combination slot and the carrier outline, and the first carrier display image is a display image in which the carrier additional elements are updated in the combination slot.

[0197] S455, based on OpenCV, obtain the outline of the carrier additional element in the first carrier display image as the additional display outline, adjust the pixel values ​​of all pixel points in the additional display outline to the background pixel value, and obtain the second carrier display image.

[0198] It can be understood that the additional display outline is the outline of the carrier additional element in the first carrier display image, and the second carrier display image is the display image after the pixel values ​​of all pixels in the additional display outline are adjusted to the background pixel values.

[0199] It is not difficult to understand that when the background pixel value is white, the pixel value of all pixels within the additional display outline can be adjusted to the background pixel value, so that the carrier additional elements are consistent with the background, achieving the image hiding effect, and obtaining the second carrier display image, so as to facilitate the subsequent alternating display with the first carrier display image, and then weakly combining the display data.

[0200] S456, obtaining a preset playback time of the psychological analysis sentence corresponding to the non-contact additional element, and alternately displaying the first carrier display image and the second carrier display image based on the preset playback time to obtain weak combination display data.

[0201] It is understandable that since it takes a certain amount of time to explain the psychological analysis sentences for psychological analysis of the non-touch additional elements, in order to make the psychological analysis sentences explained at the current moment correspond to the displayed non-touch additional elements, the first carrier display image and the second carrier display image can be displayed alternately according to the preset playback time of the psychological analysis sentences, thereby achieving the effect of showing and hiding the non-touch additional elements, so that people can quickly locate the current non-touch additional elements when viewing the video.

[0202] The preset playback duration is a preset display duration, such as 4 seconds.

[0203] It is not difficult to understand that when the preset playback time is 4 seconds, when the first carrier display image and the second carrier display image are alternately displayed, each image can be displayed for 1 second, that is, after the first carrier display image is displayed for 1 second, the second carrier display image is displayed for 1 second, and then the first carrier display image is displayed. Figure 1 s, finally display the second carrier display Figure 1 s, thereby realizing the alternating display of the first carrier display image and the second carrier display image within the playback duration of the current psychological analysis sentence, and obtaining the weak combination display data corresponding to the non-touch additional elements.

[0204] S46, obtaining analysis display data according to the independent display data, the linkage display data, the strong combination display data and the weak combination display data, and sending the analysis display data to the drawing end.

[0205] It can be understood that the obtained independent display data, linkage display data, strong combination display data and weak combination display data are sequentially spliced ​​according to the analysis sentence sequence to obtain analysis display data, which is then sent to the painting end, so that personnel can view the analysis results corresponding to the psychological painting through the video, and according to the way the elements in the video appear and disappear, they can quickly view the corresponding analyzed painting, which is convenient for personnel to understand.

[0206] See also Figure 4 , is a schematic diagram of the structure of an AI-driven tree painting emotional psychological state analysis and recognition system provided by an embodiment of the present invention, the AI-driven tree painting emotional psychological state analysis and recognition system comprising: The acquisition module is used to receive the psychological drawing of the target analyst sent by the drawing end, obtain the drawing element set corresponding to the psychological drawing, and obtain the mapping tree element in the drawing element set.

[0207] A determination module is used to determine the element explanation sequence corresponding to the psychological painting according to the progressive display strategy and the mapping tree elements.

[0208] The calling module is used to call corresponding psychological analysis sentences in sequence based on the element explanation sequence to obtain a sequence of analysis sentences corresponding to the psychological painting.

[0209] The processing module is used to process the elements in the psychological painting into a video format according to the alternating strategy of revealing and concealing and the analytical sentence sequence, and obtain the analysis and display data and send it to the painting end.

[0210] See also Figure 5 , is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention, the electronic device 50 includes: a processor 51, a memory 52 and a computer program; wherein The memory 52 is used to store the computer program, which may also be a flash memory. The computer program is, for example, an application program, a functional module, etc. for implementing the above method.

[0211] The processor 51 is used to execute the computer program stored in the memory to implement each step performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.

[0212] Optionally, the memory 52 may be independent or integrated with the processor 51 .

[0213] When the memory 52 is a device independent of the processor 51, the device may further include: The bus 53 is used to connect the memory 52 and the processor 51 .

[0214] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various embodiments described above.

[0215] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0216] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.

[0217] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0218] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An AI-driven tree painting emotional psychological state analysis and recognition method, characterized in that: include: Receiving a psychological drawing of a target analyst sent by a drawing terminal, obtaining a drawing element set corresponding to the psychological drawing, and obtaining a mapping tree element in the drawing element set; Determine the element explanation sequence corresponding to the psychological painting according to the progressive display strategy and the mapping tree elements; Based on the element explanation sequence, corresponding psychological analysis sentences are retrieved in sequence to obtain an analysis sentence sequence corresponding to the psychological painting; The elements in the psychological painting are processed into a video format according to the strategy of alternating between revealing and concealing and the analytical sentence sequence, and the obtained analysis and display data are sent to the painting end.

2. The method according to claim 1, characterized in that The receiving the psychological drawing of the target analyst sent by the drawing end, obtaining a drawing element set corresponding to the psychological drawing, and obtaining a mapping tree element in the drawing element set include: Receiving the psychological painting of the target analyst sent by the painting end, and obtaining the painting elements in the psychological painting based on OpenCV; The painting elements are counted to obtain a painting element set corresponding to the psychological painting, and mapping tree elements in the painting element set are extracted, and the remaining painting elements are used as related elements.

3. The method according to claim 2, characterized in that The step of determining the element explanation sequence corresponding to the psychological painting according to the progressive display strategy and the mapping tree elements includes: Acquire the center point of the mental painting as a coordinate origin, construct a coordinate system based on the coordinate origin to coordinate the mental painting; Based on OpenCV, a mapping tree outline corresponding to the mapping tree element in the mental painting is obtained, and the outline coordinates on the mapping tree outline are counted to obtain a tree outline coordinate set corresponding to the mapping tree element; Determining an independent display sequence corresponding to the mental painting according to an independent element display strategy and the tree outline coordinate set; Determining a linkage display sequence corresponding to the psychological painting based on a linkage element display strategy and the tree outline coordinate set; Determining an additional display sequence corresponding to the mental painting according to an additional display strategy and the tree outline coordinate set; The independent display sequence, the linkage display sequence and the additional display sequence are sequentially connected to obtain an element explanation sequence corresponding to the psychological painting.

4. The method according to claim 3, characterized in that The step of determining the independent display sequence corresponding to the mental painting according to the independent element display strategy and the tree outline coordinate set includes: Obtaining a central horizontal coordinate corresponding to the mapped tree element according to the average of the minimum horizontal coordinate and the maximum horizontal coordinate in the tree outline coordinate set; Obtaining a central ordinate corresponding to the mapped tree element based on the average of the minimum ordinate and the maximum ordinate in the tree outline coordinate set; According to the central abscissa and the central ordinate, a central point corresponding to the mapping tree element is obtained as a core midpoint; Based on OpenCV, the contours corresponding to the related elements are obtained as related contours, and the related midpoints corresponding to the related elements are determined according to the contour coordinates of the related contours; Calculating according to the core midpoint and the related midpoint to obtain the correlation distance corresponding to each of the related elements; The related elements are sorted in ascending order based on the association distance to obtain a sequence of related elements, and the mapping tree element is added to the front of the first related element in the sequence of related elements to obtain an independent display sequence corresponding to the psychological painting.

5. The method according to claim 3, characterized in that: The step of determining the linkage display sequence corresponding to the psychological painting based on the linkage element display strategy and the tree outline coordinate set includes: Determine, according to the contour coordinates in the tree contour coordinate set, a center point corresponding to the mapped tree element as a core midpoint; Based on OpenCV, the contours corresponding to the related elements are obtained as related contours, and the related midpoints corresponding to the related elements are determined according to the contour coordinates of the related contours; Calculating according to the core midpoint and the related midpoint to obtain the correlation distance corresponding to each of the related elements; Sort the related elements in ascending order based on the association distance to obtain a sequence of related elements, and sequentially combine the mapping tree elements with the related elements in the sequence of related elements to obtain a core combination sequence; Select any two of the related elements to combine to obtain a related combination element, and count the related combination elements in sequence to obtain a related combination sequence; The core combination sequence and the related combination sequence are sequentially spliced ​​to obtain a linkage display sequence corresponding to the psychological painting.

6. The method according to claim 3, characterized in that The step of determining the additional display sequence corresponding to the mental painting according to the additional display strategy and the tree outline coordinate set includes: Determine the preset elements missing from the mapping tree elements as contact additional elements, and sort the contact additional elements based on a preset additional order to obtain a strong binding sequence; Determine the missing preset elements in the related elements as non-contact additional elements, count the non-contact additional elements, and obtain a weak binding sequence; The strong binding sequence and the weak binding sequence are sequentially spliced ​​to obtain an additional display sequence corresponding to the psychological painting.

7. The method according to claim 6, characterized in that The video processing of the elements in the psychological painting according to the alternating strategy of revealing and concealing and the analytical sentence sequence to obtain analysis and display data is sent to the painting end, including: Sequentially obtaining preset elements or preset combination elements corresponding to the psychological analysis sentences in the analysis sentence sequence as analysis elements; When it is determined that the psychological painting has the analytical element and the analytical element is a preset element, the corresponding analytical element is used as an independent display element, and the independent display element is processed into a video according to the display-hiding alternation strategy to obtain independent display data; When it is determined that the psychological painting has the analytical element and the analytical element is a preset combination element, the corresponding analytical element is used as a linkage display element, and the linkage display element is processed into a video according to a display-and-hide alternation strategy to obtain linkage display data; When it is determined that the psychological painting does not have the analytical element and the analytical element is a contact additional element, the contact additional element is processed into a video according to an alternating strategy of showing and hiding to obtain strong combination display data; When it is determined that the psychological painting does not have the analytical element and the analytical element is a non-contact additional element, the non-contact additional element is processed into a video according to an alternating strategy of showing and hiding to obtain weakly combined display data; According to the independent display data, the linkage display data, the strong combination display data and the weak combination display data, the analysis display data is obtained and sent to the painting end.

8. The method according to claim 7, characterized in that When it is determined that the psychological painting has the analytical element and the analytical element is a preset element, the corresponding analytical element is used as an independent display element, and the independent display element is processed into a video according to the display-hiding alternation strategy to obtain independent display data, including: When it is determined that the psychological painting has the analytical element and the analytical element is a preset element, the corresponding analytical element is used as an independent display element, and the psychological painting is used as a first independent display image; Based on OpenCV, an outline of an independent display element in the psychological painting is obtained as an independent display outline, and pixel values ​​of all pixels in the independent display outline are adjusted to background pixel values ​​to obtain a second independent display image; Acquire a preset playback time of the psychological analysis sentence corresponding to the independent display element, and alternately display the first independent display image and the second independent display image based on the preset playback time to obtain independent display data; When it is determined that the psychological painting has the analytical element and the analytical element is a preset combination element, the corresponding analytical element is used as a linkage display element, and the linkage display element is processed into a video according to the display and hide alternation strategy to obtain linkage display data, including: When it is determined that the psychological painting has the analytical element and the analytical element is a preset combination element, the corresponding analytical element is used as a linkage display element, and the psychological painting is used as a first linkage display image; Based on OpenCV, an outline of the linkage display element in the psychological painting is obtained as a linkage display outline, and pixel values ​​of all pixels in the linkage display outline are adjusted to background pixel values ​​to obtain a second linkage display image; The preset playing time of the psychological analysis sentence corresponding to the linkage display element is obtained, and the first linkage display diagram and the second linkage display diagram are alternately displayed based on the preset playing time to obtain linkage display data.

9. The method according to claim 7, characterized in that: When it is determined that the psychological painting does not have the analytical element and the analytical element is a contact additional element, the contact additional element is processed into a video according to an alternating strategy of showing and hiding to obtain strong combination display data, including: When it is determined that the mental painting does not have the parsed element and the parsed element is a contact additional element, extracting a carrier contour line in the mapping tree element based on OpenCV, and using the mental painting as a first additional display image; Counting the number of pixels in the mapping tree outline to obtain the number of strong carrier pixels, and determining the mapping area of ​​the mapping tree element based on the number of strong carrier pixels; Obtaining a scaling factor according to a ratio of the mapping area to a preset area, and performing scaling processing on the contact additional element according to the scaling factor to obtain an actual additional element of the mapping tree element; Arrange a plurality of adding points on the carrier contour line according to a preset interval, and vertically arrange the actual additional element on the carrier contour line based on the adding points; When it is determined that the actual additional element overlaps with the mapping tree element, the corresponding actual additional element is used as a deleted additional element, and the deleted additional element is deleted and updated to obtain a second additional display diagram; Acquire a preset playback time of the psychological analysis sentence corresponding to the contact additional element, and alternately display the first additional display image and the second additional display image based on the preset playback time to obtain strong combination display data; When it is determined that the psychological painting does not have the analytical element and the analytical element is a non-contact additional element, the non-contact additional element is processed into a video according to an alternating strategy of display and concealment to obtain weakly combined display data, including: When it is determined that the mental painting does not have the analytical element and the analytical element is a non-contact additional element, the corresponding related element is used as a carrier element, the outline of the carrier element is extracted as a carrier outline according to OpenCV, and a combination slot is constructed in a blank area on one side of the carrier outline; Counting the number of pixels within the carrier outline to obtain the number of weak carrier pixels, and determining the carrier area of ​​the carrier element based on the number of weak carrier pixels; Based on the ratio of the carrier area to the preset area, a scaling factor is obtained, and the non-contact additional element is scaled according to the scaling factor to obtain a carrier additional element of the carrier element; Updating the carrier additional element to the binding slot, and constructing an associated display line between the binding slot and the carrier outline to obtain a first carrier display diagram; Based on OpenCV, the outline of the carrier additional element in the first carrier display image is obtained as the additional display outline, and the pixel values ​​of all pixels in the additional display outline are adjusted to the background pixel values ​​to obtain the second carrier display image; The preset playing time of the psychological analysis sentence corresponding to the non-contact additional element is obtained, and the first carrier display image and the second carrier display image are alternately displayed based on the preset playing time to obtain weak combination display data.

10. An AI-driven tree painting emotional psychological state analysis and recognition system, characterized in that: include: An acquisition module, used for receiving a psychological drawing of a target analyst sent by a drawing terminal, acquiring a drawing element set corresponding to the psychological drawing, and acquiring a mapping tree element in the drawing element set; A determination module, used for determining the element explanation sequence corresponding to the psychological painting according to the progressive display strategy and the mapping tree elements; A calling module, used for calling corresponding psychological analysis sentences in sequence based on the element explanation sequence, to obtain an analysis sentence sequence corresponding to the psychological painting; The processing module is used to process the elements in the psychological painting into a video format according to the alternating strategy of revealing and concealing and the analytical sentence sequence, and obtain the analysis and display data and send it to the painting end.