Nothing Special   »   [go: up one dir, main page]

CN114003136A - Intelligent antithetical couplet and display method - Google Patents

Intelligent antithetical couplet and display method Download PDF

Info

Publication number
CN114003136A
CN114003136A CN202111300767.2A CN202111300767A CN114003136A CN 114003136 A CN114003136 A CN 114003136A CN 202111300767 A CN202111300767 A CN 202111300767A CN 114003136 A CN114003136 A CN 114003136A
Authority
CN
China
Prior art keywords
couplet
information
matching result
matching
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111300767.2A
Other languages
Chinese (zh)
Inventor
蒋妍
唐佐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202111300767.2A priority Critical patent/CN114003136A/en
Publication of CN114003136A publication Critical patent/CN114003136A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an intelligent couplet and a display method, and relates to the technical field of electronic couplets. The intelligent couplet obtains current date information through a date obtaining module; the matching module matches in a preset important festival library according to the current date information, and the couplet content model module inputs a matching result into a preset couplet content model to obtain a plurality of couplet content information; the couplet background screening module screens in a preset couplet background library according to the matching result, and the couplet generation module randomly combines a plurality of couplet content information and a plurality of background information to be selected; the display module randomly extracts and displays one couplet in the couplet set, so that the corresponding couplet can be automatically displayed according to the current date without manually inputting the couplet content, the intellectualization of the couplet is improved, and the use is more convenient. Meanwhile, background information is added, so that the antithetical couplet is more diversified, various requirements of users are met, and the attractiveness of the antithetical couplet is improved.

Description

Intelligent antithetical couplet and display method
Technical Field
The invention relates to the technical field of electronic couplets, in particular to an intelligent couplet and a display method.
Background
Couplets, also known as couplets, door pairs, spring stickers, spring couplets, pairs, couplets, etc., are dual sentences written on paper, cloth or engraved on bamboo, wood, pillars. The couplets are neat and harmonious in tone, and are unique artistic forms of Chinese with one character and one pronunciation. However, the traditional couplet adopts a paper form, so that the use is inconvenient, the couplet cannot be reused, the material waste is caused, the environment is not protected, the water resistance of the paper couplet is poor, and the attractiveness is affected by moisture.
Many electronic couplets have appeared at present, show the content of couplet through the electronic screen, but, current electronic couplet all is the content that people input the couplet, then shows through the display screen, and this kind of mode is not convenient enough, also not intelligent enough.
Disclosure of Invention
The invention aims to provide an intelligent couplet and a display method, which are used for solving the problems of insufficient intelligence and inconvenient use of electronic couplets in the prior art.
In a first aspect, an embodiment of the present application provides an intelligent couplet, including:
the date acquisition module is used for acquiring current date information;
the matching module is used for matching in a preset important festival library according to the current date information to obtain a matching result;
the antithetical couplet content model module is used for inputting the matching result into a preset antithetical couplet content model to obtain a plurality of antithetical couplet content information;
the antithetical couplet background screening module is used for screening in a preset antithetical couplet background library according to the matching result to obtain a plurality of pieces of background information to be selected;
the couplet set generation module is used for randomly combining the plurality of couplet content information and the plurality of background information to be selected to generate a couplet set;
and the display module is used for randomly extracting and displaying a pair of couplets in the couplet set.
In the implementation process, the current date information is acquired through a date acquisition module; the matching module matches in a preset important festival library according to the current date information to obtain a matching result, and whether the current date is an important festival or not can be known through the matching result; the antithetical couplet content model module inputs the matching result into a preset antithetical couplet content model to obtain a plurality of antithetical couplet content information, so that an antithetical couplet set conforming to the current date is obtained; the couplet background screening module screens in a preset couplet background library according to the matching result to obtain a plurality of pieces of background information to be selected, so that couplet backgrounds which accord with the matching result can be screened; the couplet set generation module randomly combines the plurality of couplet content information and the plurality of background information to be selected to generate a couplet set; the display module randomly extracts and displays one couplet in the couplet set, so that the corresponding couplet can be automatically displayed according to the current date without manually inputting the couplet content, the intellectualization of the couplet is improved, and the use is more convenient. Meanwhile, background information is added, so that the antithetical couplet is more diversified, various requirements of users are met, and the attractiveness of the antithetical couplet is improved.
Based on the first aspect, in some embodiments of the present invention, the matching module includes:
the first matching unit is used for matching the current date information with a preset festival library to obtain a first matching result;
the second matching unit is used for matching the current date information with a preset solar term database according to the first matching result to obtain a second matching result;
the comparison unit is used for comparing the current date information with the set date information according to the second matching result to obtain a comparison result;
and the matching result generating unit is used for generating a matching result according to the comparison result.
Based on the first aspect, in some embodiments of the invention, the second matching unit includes:
the first judging subunit is used for judging whether the first matching result is empty, and if so, the gas-saving matching subunit is called; if not, taking the first matching result as a matching result;
and the solar term matching subunit is used for matching the current date information with a preset solar term library to obtain a second matching result.
Based on the first aspect, in some embodiments of the invention, the comparison unit includes:
the second judging subunit is used for judging whether the second matching result is empty, and if so, the set date comparison subunit is called; if not, taking the second matching result as a matching result;
and the set date comparison subunit is used for comparing the current date information with the set date information to obtain a comparison result.
Based on the first aspect, in some embodiments of the present invention, the matching result generating unit includes:
the third judging subunit is used for judging whether the comparison results are the same or not, and if so, taking the attribute information in the set date information as a matching result; if not, the process is ended.
Based on the first aspect, in some embodiments of the present invention, the method further includes:
the light sensor module is used for acquiring current light information;
and the light control module is used for generating a control command according to the light information and sending the control command to the display module.
Based on the first aspect, in some embodiments of the present invention, the method further includes:
the switching command module is used for acquiring an antithetical couplet switching command;
and the new couplet extraction module is used for extracting a new pair of couplets in the couplet set according to the couplet switching command and sending the new pair of couplets to the display module.
Based on the first aspect, in some embodiments of the present invention, the method further includes:
the antithetical couplet set sending module is used for sending the antithetical couplet set to the client;
and the antithetical couplet information acquisition module is used for acquiring the antithetical couplet information selected by the user and sending the antithetical couplet information to the display module.
Based on the first aspect, in some embodiments of the present invention, the method further includes:
the antithetical couplet music screening module is used for screening in a preset music library according to the matching result to obtain a plurality of pieces of audio information to be selected;
and the music playing module is used for playing a plurality of pieces of audio information to be selected.
In a second aspect, an embodiment of the present application provides an intelligent couplet display method, including the following steps:
acquiring current date information;
matching in a preset important festival library according to the current date information to obtain a matching result;
inputting the matching result into a preset couplet content model to obtain a plurality of couplet content information;
screening in a preset couplet background library according to the matching result to obtain a plurality of background information to be selected;
randomly combining a plurality of couplet content information and a plurality of background information to be selected to generate a couplet set;
and randomly extracting and displaying a pair of couplets in the couplet set.
In the implementation process, the current date information is acquired; then, matching is carried out in a preset important festival library according to the current date information to obtain a matching result, and whether the current date is an important festival or not can be known through the matching result; then inputting the matching result into a preset couplet content model to obtain a plurality of couplet content information, thereby obtaining a couplet set according with the current date; then, screening in a preset couplet background library according to the matching result to obtain a plurality of pieces of background information to be selected, so that couplet backgrounds which accord with the matching result can be screened; then randomly combining the plurality of couplet content information and the plurality of background information to be selected to generate a couplet set; finally, one couplet is randomly extracted and displayed in the couplet set, so that the corresponding couplet can be automatically displayed according to the current date without manually inputting the couplet content, the intellectualization of the couplet is improved, and the use is more convenient. Meanwhile, background information is added, so that the antithetical couplet is more diversified, various requirements of users are met, and the attractiveness of the antithetical couplet is improved.
The embodiment of the invention at least has the following advantages or beneficial effects:
the embodiment of the invention provides an intelligent antithetical couplet and display method, wherein current date information is acquired through a date acquisition module; the matching module matches in a preset important festival library according to the current date information, and the couplet content model module inputs a matching result into a preset couplet content model to obtain a plurality of couplet content information; the couplet background screening module screens in a preset couplet background library according to the matching result, and the couplet generation module randomly combines a plurality of couplet content information and a plurality of background information to be selected; the display module randomly extracts and displays one couplet in the couplet set, so that the corresponding couplet can be automatically displayed according to the current date without manually inputting the couplet content, the intellectualization of the couplet is improved, and the use is more convenient. Meanwhile, background information is added, so that the antithetical couplet is more diversified, various requirements of users are met, and the attractiveness of the antithetical couplet is improved. The display module adjusts the brightness of the display screen according to the received control command, so that the function of automatically controlling the brightness of the display screen according to the light is realized, and the intelligent effect is further improved. The antithetical couplet switching can be realized through the antithetical couplet switching command, and the user can switch according to own preference so as to meet the requirements of the user. When the antithetical couplet switching command is internally set and sent at intervals, the function of automatically switching the antithetical couplets at intervals can be realized, the intellectualization of the antithetical couplets is further improved, and the use is convenient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of an intelligent antithetical couplet according to an embodiment of the present invention;
fig. 2 is a flowchart of an intelligent antithetical couplet display method according to an embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention.
Icon: 1100-date acquisition module; 1200-a matching module; 1210-a first matching unit; 1220-a second matching unit; 1221-a first judging subunit; 1222-a throttle matching subunit; 1230-comparison unit; 1231-a second judgment subunit; 1232 — set date compare subunit; 1240-a matching result generating unit; 1241-third judging subunit; 1300-couplet content model module; 1400-antithetical couplet background screening module; 1500-generating module of antithetical couplet; 1600-a display module; 1700-pair union sending module; 1800-antithetical couplet information acquisition module; 1900-light sensor module; 2000-light control module; 2100-a handover command module; 2200-a new couplet extraction module; 2300-antithetical couplet music screening module; 2400-a music playing module; 101-a memory; 102-a processor; 103-communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Examples
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the individual features of the embodiments can be combined with one another without conflict.
Referring to fig. 1, fig. 1 is a block diagram of an intelligent antithetical couplet according to an embodiment of the present invention. The intelligent antithetical couplet hardware comprises a control host and a display screen, wherein the control host is used for controlling selection of antithetical couplets and can be a computer host and the like, and the control host can be networked; the display screen is electrically connected with the control host and used for displaying antithetical couplets, the display screen is installed on the door frame, and the display screen can be a liquid crystal display screen or a display screen with a touch screen function. The above-mentioned intelligence antithetical couplet includes:
a date acquisition module 1100, configured to acquire current date information; the current date information may include a year, a month, and the acquiring may be acquiring a time in the control host.
The matching module 1200 is configured to perform matching in a preset important holiday library according to the current date information to obtain a matching result; the preset important festival library can be preset important festivals, and comprises festival names and corresponding dates. The important holidays comprise legal holidays, solar terms and set dates such as wedding dates and birthdays. The matching result comprises a festival name; the matching refers to screening the current date in a preset important festival library to obtain a corresponding festival name as a matching result. For example: the current date is 10 months and 1 day 2020, and the matching result obtained through matching is national celebration festival. The important festival library can be modified, and a user can operate the control host or operate the important festival library through an App. The matching process may be sequentially matching holidays, solar terms and set dates, and the sequentially matching process may be completed by:
a first matching unit 1210, configured to match current date information with a preset holiday library to obtain a first matching result; the preset festival library comprises a plurality of festival names and corresponding dates, the festival names comprise international or national statutory or traditional festivals, such as national celebration festival, afternoon festival, teacher festival and the like, and the matching means that the current date information is matched with the dates of the preset festival library so as to obtain the matched dates and the corresponding festival names.
The second matching unit 1220 is configured to match the current date information with a preset solar term library according to the first matching result to obtain a second matching result; there may be various cases of the first matching result obtained above, wherein if the first matching result is null, it indicates that the corresponding holiday is not matched. The preset solar terms library comprises twenty-four solar terms per year and corresponding dates, and the matching process can be completed through the following subunits:
a first determining subunit 1221, configured to determine whether the first matching result is empty, and if so, invoke the throttle matching subunit 1222; if not, taking the first matching result as a matching result; the above-mentioned determination of whether the first matching result is empty is to determine whether the current date is a holiday date, and if the first matching result includes a matched date, it indicates that the current date is a holiday date, and if there is no matched date, it indicates that the current date is not a holiday date. If the date is not the festival date, matching of the solar terms can be performed, and the solar term matching subunit 1222 can be called to work; if the festival date is the festival date, the matched festival can be directly extracted as a matching result.
And the throttle matching subunit 1222 is configured to match the current date information with a preset throttle library to obtain a second matching result. And if the current date is not the festival date, matching the solar terms, wherein the matching process is to match the current date information with the date in a preset solar term library so as to obtain the corresponding solar terms.
The comparing unit 1230 is configured to compare the current date information with the set date information according to the second matching result to obtain a comparison result; the second matching result obtained above may have various situations, wherein if the second matching result is empty, it indicates that the corresponding solar terms are not matched. The set date information may be a date preset by the user, such as a birthday, a wedding date, etc., and the comparing may be performed by the following sub-units:
a second judging subunit 1231, configured to judge whether the second matching result is empty, and if yes, invoke the set date comparing subunit 1232; if not, taking the second matching result as a matching result; the above-mentioned determination of whether the second matching result is empty is to determine whether the current date is the solar term, if the second matching result includes the matched date, it indicates that the current date is the solar term, and if there is no matched date, it indicates that the current date is not the solar term. If the solar terms are not the solar terms, the set date comparison can be carried out, and the set date comparison subunit 1232 can be called to work; if the solar term is the solar term, the matched solar term can be directly extracted as a matching result.
A date setting comparison subunit 1232, configured to compare the current date information with the set date information, so as to obtain a comparison result. If the current date is not the solar term, the set date can be compared, and the comparison process is to compare the current date information with the set date so as to obtain the corresponding solar term. The set date information includes a set date and corresponding attribute information, such as: 11/month 2/2021, birthday.
And a matching result generating unit 1240 for generating a matching result according to the comparison result. The generation of the matching result may be completed by a third determining subunit 1241, where the third determining subunit 1241 is configured to determine whether the comparison results are the same, and if so, take the attribute information in the set date information as the matching result; if not, the current date is not a festival date, is not a solar term and is not a set date, the original couplet is reserved and is not replaced, and the couplet matching process is ended.
The antithetical couplet content model module 1300 is used for inputting the matching result into a preset antithetical couplet content model to obtain a plurality of antithetical couplet content information; the preset couplet content model can be a couplet content model established based on a neural network model, and the preset couplet content model can be obtained by obtaining a plurality of couplet contents and corresponding use festivals and then training by adopting the neural network model. And inputting the matching result into a preset couplet content model to obtain couplet content information corresponding to the festival. For example, if the matching result is spring festival, the matching result is input into a preset couplet content model, and the obtained couplet content information is as follows: couplet 1: spring rain, silk and everything, red plum, point embroidery and thousand mountains, transverse batch, national Tai Min' an; and (3) antithetical couplet 2: the method has the advantages that the method is sailing, luck and luck, and the method is suitable for the people in the transverse batch: and (5) updating every phenomenon.
The antithetical couplet background screening module 1400 is used for screening in a preset antithetical couplet background library according to the matching result to obtain a plurality of pieces of background information to be selected; the preset couplet background library comprises a plurality of couplet backgrounds, wherein the couplet backgrounds can be various pictures or various moving pictures, and the moving pictures can improve the aesthetic feeling and attract the eyes. Each couplet background in the preset couplet background library is provided with a festival label to represent the festival for which the background can be used, and the screening process is to screen the background with the festival label being the same as the matching result. The plurality of candidate background information may be a plurality of pictures, a plurality of moving pictures, or a combination of a plurality of pictures and a plurality of moving pictures. Through the screening to the background, can make the antithetical couplet more diversified, satisfy user's demand.
A couplet generation module 1500, configured to randomly combine the multiple couplet content information and the multiple background information to be selected, so as to generate a couplet set; the random combination is to randomly select a pair of couplets from the multiple couplet content information, then randomly select a background from the multiple background information to be selected, and then combine the selected couplets and the background to obtain the couplets, so that multiple circulations can be carried out to obtain multiple couplets, thereby forming a couplet set.
And the display module 1600 is used for randomly extracting and displaying a pair of couplets in the couplet set. The above display is to send the random extracted antithetical couplet information to the display screen for display, and the user can see the antithetical couplet through the display screen. The extracted couplets can be ensured not to be repeated through random extraction, so that the diversity of the couplets is ensured.
In the implementation process, the current date information is acquired through the date acquisition module 1100; the matching module 1200 matches in a preset important festival library according to the current date information to obtain a matching result, and can know whether the current date is an important festival or not according to the matching result; the couplet content model module 1300 inputs the matching result into a preset couplet content model to obtain a plurality of couplet content information, so as to obtain a couplet set conforming to the current date; the couplet background screening module 1400 screens in a preset couplet background library according to the matching result to obtain a plurality of pieces of background information to be selected, so that couplet backgrounds meeting the matching result can be screened; the couplet set generation module 1500 randomly combines the plurality of couplet content information and the plurality of background information to be selected to generate a couplet set; the display module 1600 randomly extracts and displays a pair of couplets in the couplet set, so that the corresponding couplets can be automatically displayed according to the current date without manually inputting the couplet content, thereby improving the intellectualization of the couplets and being more convenient to use. Meanwhile, background information is added, so that the antithetical couplet is more diversified, various requirements of users are met, and the attractiveness of the antithetical couplet is improved.
Wherein, still include:
a light sensor module 1900 for acquiring current light information; the light sensor module 1900 includes a light sensor connected to the light control module 2000, and the pipeline sensor can sense a current light signal at any time and send the current light signal to the light control module 2000. The current light information refers to the light of the current environment.
The light ray control module 2000 is configured to generate a control command according to the light ray information and send the control command to the display module 1600. If the light becomes dark, a control command for adjusting the brightness to be high is generated, and if the light becomes bright, a control command for adjusting the brightness to be low is generated. The display module 1600 adjusts the brightness of the display screen according to the received control command, so that the function of automatically controlling the brightness of the display screen according to the light is realized, and the intelligent effect is further improved.
Wherein, still include:
a handover command module 2100, configured to obtain an association handover command; the above obtaining mode may be that the user sends a request to the control host through the APP, or that the user obtains the request through operating in the touch display screen. The above-mentioned antithetical couplet switching command can also be set internally, send at certain time interval.
And a new couplet extraction module 2200, configured to extract a new pair of couplets in the couplet set according to the couplet switching command, and send the extracted pair of couplets to the display module 1600. The antithetical couplet switching can be realized through the antithetical couplet switching command, and the user can switch according to own preference so as to meet the requirements of the user. When the antithetical couplet switching command is internally set and sent at intervals, the function of automatically switching the antithetical couplets at intervals can be realized, the intellectualization of the antithetical couplets is further improved, and the use is convenient.
Wherein, still include:
a couplet set sending module 1700, configured to send the couplet set to the client; the client can be a mobile terminal, and the client sends the couplet set to the client according to the corresponding APP, so that the user can know which optional couplets exist, and the user can check and select conveniently.
And an association information obtaining module 1800, configured to obtain the association information selected by the user and send the association information to the display module 1600. The user selects one pair of couplets in the received couplet set and sends the selected pair of couplets to the control host, and then the control host controls the display module 1600 to display, so that the couplets selected by the user are displayed. The association information acquiring module 1800 may also be configured to acquire the association information directly input by the user and send the association information to the display module 1600, so as to implement the function of directly inputting the association by the user.
Wherein, still include:
the antithetical couplet music screening module 2300 is used for screening in a preset music library according to the matching result to obtain a plurality of pieces of audio information to be selected; the preset music library comprises a plurality of music files, each music file is provided with a corresponding attribute label, and the attribute labels refer to festivals to which the music is suitable, so that the music with corresponding attributes can be screened out from the music library according to matching results.
The music playing module 2400 is configured to play multiple pieces of audio information to be selected. The music playing module 2400 includes a music player, and is configured to play audio to be selected. Therefore, the function that the couplet has music is realized, and the intellectualization of the couplet is improved.
The control host can also be connected with devices such as a microphone and the like, so that a user can sing songs and the like.
Based on the same inventive concept, the invention further provides an intelligent couplet display method, please refer to fig. 2, and fig. 2 is a flowchart of the intelligent couplet display method provided by the embodiment of the invention. The intelligent couplet display method comprises the following steps:
step S110: acquiring current date information;
step S120: matching in a preset important festival library according to the current date information to obtain a matching result; wherein, the step of matching comprises:
firstly, matching current date information with a preset festival library to obtain a first matching result;
then, matching the current date information with a preset solar term database according to the first matching result to obtain a second matching result; the above matching process comprises the following steps:
the first step, judge whether the first matching result is empty, if yes, carry out the second step; if not, taking the first matching result as a matching result;
and secondly, matching the current date information with a preset solar term library to obtain a second matching result.
Then, comparing the current date information with the set date information according to a second matching result to obtain a comparison result; the above-mentioned process of comparison comprises the following steps:
the first step, judge whether the second matches the result for empty, if, carry out the second step; if not, taking the second matching result as a matching result;
and secondly, comparing the current date information with the set date information to obtain a comparison result.
And finally, generating a matching result according to the comparison result. The generated matching result is judged whether the comparison results are the same or not, if yes, attribute information in the set date information is used as the matching result; if not, the process is ended.
Step S130: and inputting the matching result into a preset couplet content model to obtain a plurality of couplet content information.
Step S140: and screening in a preset couplet background library according to the matching result to obtain a plurality of background information to be selected.
Step S150: and randomly combining the plurality of couplet content information and the plurality of background information to be selected to generate a couplet set.
Step S160: and randomly extracting and displaying a pair of couplets in the couplet set.
In the implementation process, the current date information is acquired; then, matching is carried out in a preset important festival library according to the current date information to obtain a matching result, and whether the current date is an important festival or not can be known through the matching result; then inputting the matching result into a preset couplet content model to obtain a plurality of couplet content information, thereby obtaining a couplet set according with the current date; then, screening in a preset couplet background library according to the matching result to obtain a plurality of pieces of background information to be selected, so that couplet backgrounds which accord with the matching result can be screened; then randomly combining the plurality of couplet content information and the plurality of background information to be selected to generate a couplet set; finally, one couplet is randomly extracted and displayed in the couplet set, so that the corresponding couplet can be automatically displayed according to the current date without manually inputting the couplet content, the intellectualization of the couplet is improved, and the use is more convenient. Meanwhile, background information is added, so that the antithetical couplet is more diversified, various requirements of users are met, and the attractiveness of the antithetical couplet is improved.
Wherein, still include the following step:
firstly, current light ray information is obtained;
and then generating a control command according to the light information and sending the control command to the display module. Therefore, the function of automatically controlling the brightness of the display screen according to the light is realized, and the intelligent effect is further improved.
Wherein, still include the following step:
firstly, acquiring a couplet switching command;
and then extracting a new pair of couplets in the couplet set according to the couplet switching command and sending the new pair of couplets to the display module. The antithetical couplet switching can be realized through the antithetical couplet switching command, and the user can switch according to own preference so as to meet the requirements of the user. When the antithetical couplet switching command is internally set and sent at intervals, the function of automatically switching the antithetical couplets at intervals can be realized, the intellectualization of the antithetical couplets is further improved, and the use is convenient.
Wherein, still include the following step:
firstly, sending a pair union set to a client;
and then acquiring the couplet information selected by the user and sending the information to the display module.
Wherein, still include the following step:
firstly, screening in a preset music library according to a matching result to obtain a plurality of audio information to be selected;
and then playing a plurality of audio information to be selected. Therefore, the function that the couplet has music is realized, and the intellectualization of the couplet is improved.
It should be noted that the intelligent couplet and couplet method is also applicable to electronic window decorations, door gods and the like.
Referring to fig. 3, fig. 3 is a schematic structural block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device comprises a memory 101, a processor 102 and a communication interface 103, wherein the memory 101, the processor 102 and the communication interface 103 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used for storing software programs and modules, such as program instructions/modules corresponding to the intelligent association provided in the embodiments of the present application, and the processor 102 executes the software programs and modules stored in the memory 101, so as to execute various functional applications and data processing. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It will be appreciated that the configuration shown in fig. 3 is merely illustrative and that the electronic device may include more or fewer components than shown in fig. 3 or have a different configuration than shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The above-described functions, if implemented in the form of software functional modules and sold or used as a separate product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-described method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. An intelligent couplet, comprising:
the date acquisition module is used for acquiring current date information;
the matching module is used for matching in a preset important festival library according to the current date information to obtain a matching result;
the antithetical couplet content model module is used for inputting the matching result into a preset antithetical couplet content model to obtain a plurality of antithetical couplet content information;
the antithetical couplet background screening module is used for screening in a preset antithetical couplet background library according to the matching result to obtain a plurality of pieces of background information to be selected;
the couplet set generation module is used for randomly combining the plurality of couplet content information and the plurality of background information to be selected to generate a couplet set;
and the display module is used for randomly extracting and displaying a pair of couplets in the couplet set.
2. The intelligent couplet of claim 1, wherein the matching module comprises:
the first matching unit is used for matching the current date information with a preset festival library to obtain a first matching result;
the second matching unit is used for matching the current date information with a preset solar term database according to the first matching result to obtain a second matching result;
the comparison unit is used for comparing the current date information with the set date information according to the second matching result to obtain a comparison result;
and the matching result generating unit is used for generating a matching result according to the comparison result.
3. The intelligent couplet of claim 2, wherein the second matching unit comprises:
the first judging subunit is used for judging whether the first matching result is empty, and if so, the gas-saving matching subunit is called; if not, taking the first matching result as a matching result;
and the solar term matching subunit is used for matching the current date information with a preset solar term library to obtain a second matching result.
4. The intelligent couplet of claim 2, wherein the comparison unit comprises:
the second judging subunit is used for judging whether the second matching result is empty, and if so, the set date comparison subunit is called; if not, taking the second matching result as a matching result;
and the set date comparison subunit is used for comparing the current date information with the set date information to obtain a comparison result.
5. The intelligent couplet of claim 2, wherein the matching result generation unit comprises:
the third judging subunit is used for judging whether the comparison results are the same or not, and if so, taking the attribute information in the set date information as a matching result; if not, the process is ended.
6. The intelligent couplet of claim 1, further comprising:
the light sensor module is used for acquiring current light information;
and the light control module is used for generating a control command according to the light information and sending the control command to the display module.
7. The intelligent couplet of claim 1, further comprising:
the switching command module is used for acquiring an antithetical couplet switching command;
and the new couplet extraction module is used for extracting a new pair of couplets in the couplet set according to the couplet switching command and sending the new pair of couplets to the display module.
8. The intelligent couplet of claim 1, further comprising:
the antithetical couplet set sending module is used for sending the antithetical couplet set to the client;
and the antithetical couplet information acquisition module is used for acquiring the antithetical couplet information selected by the user and sending the antithetical couplet information to the display module.
9. The intelligent couplet of claim 1, further comprising:
the antithetical couplet music screening module is used for screening in a preset music library according to the matching result to obtain a plurality of pieces of audio information to be selected;
and the music playing module is used for playing a plurality of pieces of audio information to be selected.
10. An intelligent couplet display method is characterized by comprising the following steps:
acquiring current date information;
matching in a preset important festival library according to the current date information to obtain a matching result;
inputting the matching result into a preset couplet content model to obtain a plurality of couplet content information;
screening in a preset couplet background library according to the matching result to obtain a plurality of background information to be selected;
randomly combining a plurality of couplet content information and a plurality of background information to be selected to generate a couplet set;
and randomly extracting and displaying a pair of couplets in the couplet set.
CN202111300767.2A 2021-11-04 2021-11-04 Intelligent antithetical couplet and display method Pending CN114003136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111300767.2A CN114003136A (en) 2021-11-04 2021-11-04 Intelligent antithetical couplet and display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111300767.2A CN114003136A (en) 2021-11-04 2021-11-04 Intelligent antithetical couplet and display method

Publications (1)

Publication Number Publication Date
CN114003136A true CN114003136A (en) 2022-02-01

Family

ID=79927637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111300767.2A Pending CN114003136A (en) 2021-11-04 2021-11-04 Intelligent antithetical couplet and display method

Country Status (1)

Country Link
CN (1) CN114003136A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905644A (en) * 2006-08-02 2007-01-31 康佳集团股份有限公司 Method for displaying television congratulatory card
US20130080194A1 (en) * 2011-09-27 2013-03-28 Hyeongjin IM Display device and method for controlling the same
CN105744336A (en) * 2014-12-11 2016-07-06 Tcl光电科技(惠州)有限公司 Method and system for automatically replacing display styles of intelligent television
CN106201161A (en) * 2014-09-23 2016-12-07 北京三星通信技术研究有限公司 The display packing of electronic equipment and system
CN210606394U (en) * 2019-12-13 2020-05-22 吉林师范大学 OLED electronic couplet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905644A (en) * 2006-08-02 2007-01-31 康佳集团股份有限公司 Method for displaying television congratulatory card
US20130080194A1 (en) * 2011-09-27 2013-03-28 Hyeongjin IM Display device and method for controlling the same
CN106201161A (en) * 2014-09-23 2016-12-07 北京三星通信技术研究有限公司 The display packing of electronic equipment and system
CN105744336A (en) * 2014-12-11 2016-07-06 Tcl光电科技(惠州)有限公司 Method and system for automatically replacing display styles of intelligent television
CN210606394U (en) * 2019-12-13 2020-05-22 吉林师范大学 OLED electronic couplet

Similar Documents

Publication Publication Date Title
JP7065740B2 (en) Application function information display method, device, and terminal device
EP4336355A1 (en) Interaction method and apparatus, medium, and electronic device
CN112087669B (en) Method and device for presenting virtual gift and electronic equipment
CN107203569B (en) Intelligent reading subject setting method and device for immersive reading
CN111914523A (en) Multimedia processing method and device based on artificial intelligence and electronic equipment
CN110377220B (en) Instruction response method and device, storage medium and electronic equipment
WO2018068447A1 (en) Information display method, terminal, and storage medium
CN103020082A (en) Reading processing system and method, server and terminal equipment
CN110708423A (en) Message content display method and device and storage medium
CN107295164B (en) Method for generating alarm clock ring, mobile terminal and storage medium
WO2017020593A1 (en) Input method and apparatus
CN108961361B (en) Method and system for generating special effect text image and computer equipment
US9872093B2 (en) Audio output apparatus and control method thereof
Moghaddam et al. People's evaluation towards media façade as new urban landmarks at night
WO2024067329A1 (en) Display method and apparatus, electronic device and storage medium
CN114003136A (en) Intelligent antithetical couplet and display method
CN113596529A (en) Terminal control method and device, computer equipment and storage medium
CN106446280B (en) Song data processing method and device
CN111934985A (en) Media content sharing method, device and equipment and computer readable storage medium
WO2024027134A1 (en) Virtual keyboard presentation method and apparatus, and electronic device, storage medium and product
CN107704153A (en) A kind of methods of exhibiting, device and computer-readable recording medium for reading special efficacy
CN106909547B (en) Picture loading method and device based on browser
JP4226563B2 (en) Lyric display method, lyrics display program, mobile information terminal that displays the lyrics and changes color in sync with the performance of the song
CN110008400A (en) Red-letter day notification method, system, device and storage medium based on calendar
CN115963963A (en) Interactive novel generation method, presentation method, device, equipment and medium

Legal Events

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