WO2017088416A1 - Data synchronization and sharing method and apparatus - Google Patents

Data synchronization and sharing method and apparatus Download PDF

Info

Publication number
WO2017088416A1
WO2017088416A1 PCT/CN2016/083829 CN2016083829W WO2017088416A1 WO 2017088416 A1 WO2017088416 A1 WO 2017088416A1 CN 2016083829 W CN2016083829 W CN 2016083829W WO 2017088416 A1 WO2017088416 A1 WO 2017088416A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
identifier
terminal
custom character
received
Prior art date
Application number
PCT/CN2016/083829
Other languages
French (fr)
Chinese (zh)
Inventor
郑泽龙
王云华
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017088416A1 publication Critical patent/WO2017088416A1/en

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • 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
    • 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
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42208Display device provided on the remote control

Definitions

  • the present invention relates to the field of data sharing technologies, and in particular, to a data synchronization sharing method and apparatus.
  • the functions of the intelligent input method are more and more abundant, and users can input various characters through the smart input method.
  • the user can only select various characters that are input by the smart input method, and the input of the custom character cannot be realized. For example, when you see a favorite picture or a custom character, the user wants to use the picture or a custom character as an input method character by input method, but since the smart input method cannot realize the customization of the input method character, the user cannot satisfy the user. demand.
  • the invention provides a data synchronization sharing method and device system, which aims to solve the technical problem that the existing smart TV input method cannot input a custom character.
  • the present invention provides a data synchronization sharing method, and the data synchronization sharing method includes the following steps:
  • the second terminal When receiving the picture or the custom character sent by the first terminal, the second terminal acquires the gain of the pixel of the received picture or the custom character;
  • the current input method interface After receiving the identifier sent by the first terminal, and the current input method interface is activated, determining whether the identifier stored by the second terminal matches the received identifier;
  • the currently displayed input method interface is hidden, and the obtained target image is displayed after being successfully hidden.
  • the step of performing compression processing on the acquired pixel points and generating a target picture based on the compressed processed pixel points comprises:
  • the image containing the pixel points acquired after being deleted according to the preset ratio is reduced to generate a target image.
  • the step of displaying the acquired target picture comprises: displaying the acquired target picture in a display interface corresponding to the input box in an activated state.
  • the present invention further provides a data synchronization sharing method, where the data synchronization sharing method includes the following steps:
  • the second terminal Upon receiving the picture or the custom character sent by the first terminal, the second terminal generates an identifier corresponding to the received picture or the custom character;
  • the step of acquiring a picture or a custom character corresponding to the identifier includes:
  • the step of generating the identifier corresponding to the received picture or the custom character includes:
  • the storing the received picture and the corresponding identifier comprises: storing the target picture and a corresponding identifier.
  • the step of performing compression processing on the acquired pixel points and generating a target picture based on the compressed processed pixel points comprises:
  • the image containing the pixel points acquired after being deleted according to the preset ratio is reduced to generate a target image.
  • the step of displaying the acquired picture or custom character comprises: displaying the acquired picture or a custom character in a display interface corresponding to the input box in an activated state.
  • the present invention further provides a data synchronization sharing device, where the data synchronization sharing device includes:
  • a generating module configured to generate an identifier corresponding to the received picture or the custom character when receiving the picture or the custom character sent by the first terminal
  • a storage module configured to associate the stored picture or a custom character and a corresponding identifier, and send the identifier to the first terminal;
  • An acquiring module configured to: when receiving the identifier sent by the first terminal, and acquiring the current input method interface, acquiring a picture or a custom character corresponding to the identifier;
  • a hidden module that hides the currently displayed input method interface and displays the acquired image or custom character after successful hiding.
  • the obtaining module comprises:
  • a determining unit configured to determine whether an identifier stored by the second terminal matches the received identifier
  • an obtaining unit configured to acquire a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
  • the generating module comprises:
  • a first acquiring unit configured to acquire a gain of a pixel of the received picture or the customized character when receiving the picture or the custom character sent by the first terminal;
  • a second acquiring unit configured to acquire, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold
  • a processing unit configured to perform compression processing on the acquired pixel points, and generate a target image based on the compressed pixel points
  • a generating unit configured to generate an identifier corresponding to the target image
  • the storage module is further configured to store the target image and a corresponding identifier.
  • the processing unit comprises:
  • Deleting a sub-unit configured to delete the acquired pixel point according to a preset ratio according to a gain of the acquired pixel point
  • the sub-unit is reduced to reduce the image containing the pixel obtained after being deleted according to the preset ratio to generate the target image.
  • the hidden module is further configured to display the acquired picture or a custom character in a display interface corresponding to the input box in an activated state.
  • the second terminal When receiving the picture or the custom character sent by the first terminal, the second terminal generates an identifier corresponding to the received picture or the custom character, and then associates and stores the received picture or the customized character and the corresponding And sending the identifier to the first terminal, implementing an identifier generated according to the received picture, and then receiving the identifier sent by the first terminal, and the current input method interface is activated Obtain the image or custom character corresponding to the received identifier, and finally hide the currently displayed input method interface, and display the acquired image or custom character after successful hiding, thereby implementing displaying the image according to the received identifier.
  • FIG. 1 is a schematic flowchart of a first embodiment of a data synchronization sharing method according to the present invention
  • FIG. 2 is a schematic flowchart of a step of acquiring a picture or a custom character corresponding to an identifier in a second embodiment of the data synchronization sharing method of the present invention
  • FIG. 3 is a schematic flowchart of a step of generating an identifier corresponding to a picture or a custom character in a third embodiment of the data synchronization sharing method according to the present invention
  • FIG. 4 is a schematic flowchart of a process of compressing a pixel point in a fourth embodiment of the data synchronization sharing method according to the present invention.
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a data synchronization sharing apparatus according to the present invention.
  • FIG. 6 is a schematic diagram of a refinement function module of an acquisition module in a second embodiment of a data synchronization sharing device according to the present invention.
  • FIG. 7 is a schematic diagram of a refinement function module of a generation module in a third embodiment of the data synchronization sharing device of the present invention.
  • FIG. 8 is a schematic diagram of a refinement function module of a processing unit in a fourth embodiment of the data synchronization sharing apparatus according to the present invention.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a data synchronization sharing method according to the present invention.
  • the data synchronization sharing method includes:
  • Step S10 When receiving the picture or the custom character sent by the first terminal, the second terminal generates an identifier corresponding to the received picture or the custom character;
  • the first terminal and the second terminal may each include a mobile phone, an IPAD, a PC, a television, and the like.
  • the second terminal is a smart TV
  • the first terminal is a convenient terminal for inputting a mobile phone or an IPAD.
  • the picture or the custom character can be input through the first terminal.
  • the second terminal sends, by the first terminal, the picture or the custom character to the second terminal, when the second terminal receives the picture or the custom character sent by the first terminal, generating the identifier corresponding to the received picture or the customized character piece, where
  • the identifier may be a number of a picture or a custom character, etc., and the second terminal can find a corresponding unique picture or a custom character by using the identifier, that is, the identifier and the picture or the custom character stored by the second terminal.
  • Step S20 storing the received picture or custom character and corresponding identifier, and transmitting the identifier to the first terminal;
  • the second terminal stores the generated identifier and the association corresponding to the received picture or the custom character, so as to subsequently search the picture or the custom character by using the identifier, and the second terminal sends the identifier to the first terminal.
  • the first terminal For the first terminal to store the identifier corresponding to the picture or the custom character, and then input the picture or the custom character in the first terminal when the user wants to display the picture or the custom character corresponding to the identifier in the second terminal.
  • the first terminal directly sends the identifier to the second terminal, and does not need to directly send the picture or the custom character input by the user again, thereby reducing the data size transmitted between the first terminal and the second terminal, and improving data synchronization.
  • the efficiency of course, the user can also enter the identifier directly in the first terminal.
  • the first terminal may also record a picture or a custom character input by the user, that is, store a picture or a custom character input by the user, so that the picture or the custom character can be directly invoked subsequently.
  • Step S30 after receiving the identifier sent by the first terminal, and the current input method interface is activated, acquiring a picture or a custom character corresponding to the received identifier;
  • the identifier corresponding to the picture or the custom character is sent to the second terminal by the first terminal, and the second terminal receives the sending by the first terminal.
  • the identifier if the current input method interface of the second terminal is activated, that is, the user has activated the input method interface of the second terminal to input information, the picture or the custom character corresponding to the received identifier is obtained, in this embodiment.
  • the second terminal searches for a picture or a custom character corresponding to the received identifier in its storage space.
  • step S40 the currently displayed input method interface is hidden, and the acquired picture or custom character is displayed after being successfully hidden.
  • the second terminal first hides the currently displayed input method interface, so as to avoid confusion with the input data of the current input method interface when displaying pictures or custom characters, thereby causing problems such as incorrect display of the picture or custom characters, or The currently displayed input method interface is hidden. Therefore, the second terminal displays the acquired picture or custom character.
  • step S40 further includes: displaying the acquired image on a display interface corresponding to the input box in an activated state, wherein the input box is an input box corresponding to the input method interface.
  • the input box is an input box corresponding to the input method interface, and specifically refers to a display area corresponding to the data input through the input method interface, for example, when inputting data in a text file of the second terminal, the input box corresponds to the text.
  • the captured image or the custom character may be displayed on the display interface corresponding to the input box, that is, the image or the custom character is displayed on the display interface corresponding to the input box in the active state. Avoid problems such as unsatisfactory display of images or custom characters.
  • the second terminal when receiving the picture or the custom character sent by the first terminal, the second terminal generates an identifier corresponding to the received picture or the custom character, and then associates and stores the received picture and the corresponding identifier. And sending the identifier to the first terminal, implementing generating an identifier according to the received picture or a custom character, and then receiving the identifier sent by the first terminal, and the current input method interface is activated
  • the image or the custom character corresponding to the received identifier is obtained, the currently displayed input method interface is hidden, and the acquired image or the custom character is displayed after the successful hiding, thereby implementing the display according to the received identifier.
  • a picture or a custom character such that the picture or the custom character of the first terminal is displayed on the second terminal, and when the second terminal is a smart TV, the picture or the custom character can be quickly shared by the first terminal and in the smart TV. Display, avoiding the problem that the cursor is shaken or the input character is inaccurate due to the smart TV input method, and the user is improved. Experience.
  • step S30 includes:
  • Step S31 determining whether there is an identifier stored by the second terminal that matches the received identifier
  • the second terminal determines whether the storage space has an identifier matching the received identifier. In this embodiment, specifically, whether the storage space of the second terminal has an identifier that matches the received identifier.
  • Step S32 Acquire a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
  • the second terminal may send the received identifier error message to the A terminal, when receiving the prompt information, the first terminal displays the prompt information to remind the user of an input error, and for the user to select whether to re-enter.
  • the embodiment determines whether the identifier stored by the second terminal matches the received identifier, and then acquires the received identifier when the identifier stored by the second terminal matches the received identifier.
  • the corresponding picture or custom character enables the second terminal to accurately obtain the picture or the custom character corresponding to the identifier, thereby improving the efficiency of acquiring the picture or the custom character.
  • step S10 includes:
  • Step S11 Acquire a gain of a pixel of the received picture or the custom character when receiving the picture or the custom character sent by the first terminal;
  • the gain of the picture or the custom character pixel includes the R gain, the G gain, and the B gain of the pixel.
  • the second terminal acquires the received picture or the custom character.
  • the R gain, G gain, and B gain of the pixel are the same.
  • Step S12 acquiring, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
  • the second terminal acquires a pixel in the picture or the custom character whose gain is greater than a preset threshold according to the acquired gain of the pixel, wherein the gain of the acquired pixel includes the R gain, the G gain, and the B gain of the pixel
  • the preset threshold includes a preset R gain, a preset G gain, a preset B gain, and a pixel in the picture or the custom character whose gain is greater than a preset threshold means that the R gain, the G gain, and the B gain of the pixel are respectively greater than Preset R gain, preset G gain, preset B gain.
  • the preset R gain, preset G gain, and preset B gain can all be set to 0.
  • Step S13 performing compression processing on the acquired pixel points, and generating a target picture based on the compressed pixel points;
  • the second terminal establishes a plane rectangular coordinate system with the center of the first picture formed by the pixel with the gain greater than the preset threshold as the coordinate origin, and then acquires the coordinates of all the pixels in the received picture or the custom character whose gain is greater than the preset threshold.
  • the pixel of the preset threshold is used as a boundary to generate a first picture, so that all pixels in the received picture or the custom character whose gain is greater than a preset threshold are in the first picture; then the gain of the first picture is greater than a preset threshold.
  • the coordinates of the pixel points are reduced according to a preset ratio to generate a second picture, for example, the coordinates of the pixel point whose gain of the first picture is greater than the preset threshold is reduced to half of the original, that is, the preset ratio is 50%, and then the second picture is taken.
  • the pixel whose gain is greater than the preset threshold is cut to generate a target picture.
  • the gain according to the second picture is large.
  • the pixel of the preset threshold is balanced in the distribution of the plane rectangular coordinate system. For example, the number of pixels in the target image whose gain is greater than the preset threshold is the number of pixels in the second image whose gain is greater than a preset threshold.
  • the resulting target image has less data size and less storage space than the input image or custom character.
  • Step S14 generating an identifier corresponding to the target picture
  • Step S20 further includes: storing the target picture and a corresponding identifier.
  • the step of the image processing may be performed by the first terminal.
  • the specific process is as follows: when the first terminal receives a picture or a custom character input based on the preset display interface, acquiring the received picture or customizing a gain of a pixel of the character, and then acquiring, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold, and then performing compression processing on the acquired pixel point, and based on the compressed process The pixel generates a target picture, and finally sends the generated target picture to the second terminal.
  • the processing of pictures or custom characters by the first terminal can reduce the amount of data transmitted when transmitting pictures or custom characters to the second terminal, thereby improving transmission efficiency.
  • step S13 includes:
  • Step S131 deleting the acquired pixel points according to a preset ratio according to the obtained gain of the pixel points;
  • a plane rectangular coordinate system is established by taking the center of the first picture formed by the pixel point with the gain greater than the preset threshold as the coordinate origin, and the coordinates of the pixel point of the first picture whose gain is greater than the preset threshold are acquired (X coordinate). , Y coordinate), according to the coordinates of the pixel points of all the gains of the first picture that are greater than the preset threshold, calculate the distance from each pixel point to the coordinate origin, and the boundary with the maximum distance of the coordinate origin is greater than the preset threshold. Generate a second picture. The pixel points whose gain is greater than the preset threshold in the second picture are deleted according to a preset ratio.
  • the pixels in the second picture whose picture is greater than the preset threshold are balanced and deleted in the plane rectangular coordinate system, for example,
  • the number of pixels in the second picture in which the gain is greater than the preset threshold is half of the number of pixels in the second picture before the deletion is greater than the preset threshold, and the pixel distribution of the deleted picture is Evenly.
  • Step S132 reducing a picture including the pixel points acquired after being deleted according to a preset ratio to generate a target picture.
  • the coordinates of the pixel points whose gain is greater than the preset threshold in the second picture deleted according to the preset ratio are reduced according to a preset ratio to generate a target picture, for example, the coordinates of the pixel point whose gain of the second picture is greater than a preset threshold.
  • the preset ratio is 50%.
  • the preset ratio can be set according to the user's needs and the input image. After the above processing, the final generated target image is compared with the input image. Less storage space.
  • the acquired pixel point is deleted according to the gain of the acquired pixel point according to a preset ratio, and then the image including the pixel point acquired according to the preset ratio deletion is reduced to generate a target image, and the image pixel is implemented according to the image pixel.
  • the gain of the point generates a target image.
  • the target image occupies less storage space, that is, the target image is consistent with the image input by the user, and the storage space occupied by the target image is reduced, thereby reducing the input.
  • the storage space occupied by the characters of the law is
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a data synchronization sharing apparatus according to the present invention.
  • the data synchronization sharing device includes:
  • the generating module 10 is configured to generate an identifier corresponding to the received picture or the custom character when receiving the picture or the custom character sent by the first terminal;
  • the first terminal and the data synchronization sharing device may each include a mobile phone, an IPAD, a PC, a television, and the like.
  • the data synchronization sharing device is a smart TV.
  • the data synchronization sharing device is applied to the first Two terminals.
  • the user may input the picture or a custom character through the first terminal when the user wants to use the picture or the custom character as the input method character by the input method, and the first terminal inputs the picture or the custom character.
  • the custom character is sent to the data synchronization sharing device, and when the data synchronization sharing device receives the picture or the custom character sent by the first terminal, the generating module 10 generates an identifier corresponding to the received picture or the custom character, where the identifier
  • the character can be a number for a picture or a custom character, etc., and the data synchronization sharing device can find its corresponding unique picture or custom character by using the identifier, that is, the identifier and the picture or custom character stored by the second terminal. correspond.
  • the storage module 20 is configured to associate the stored picture and the corresponding identifier, and send the identifier to the first terminal;
  • the storage module 20 stores the generated identifier and the received picture correspondingly, so as to subsequently search for the picture by using the identifier, and at the same time, the storage module 20 sends the identifier to the first terminal, so that the first terminal stores the picture or The identifier corresponding to the custom character, and when the user wants to display the picture or the custom character corresponding to the identifier in the second terminal and input the picture or the custom character in the first terminal, the first terminal directly sends the identifier To the second terminal, without directly transmitting the picture or custom character input by the user again, the data size transmitted between the first terminal and the second terminal is reduced, and the efficiency of data synchronization is improved, and the user can also directly A terminal inputs the identifier.
  • the obtaining module 30 is configured to: when receiving the identifier sent by the first terminal, and when the current input method interface is activated, acquiring a picture or a custom character corresponding to the identifier;
  • the first terminal sends an identifier corresponding to the picture to the second terminal, and when the second terminal receives the identifier sent by the first terminal, If the current terminal of the second terminal has an input method interface, that is, the user has activated the input method interface of the second terminal to input information, the obtaining module 30 acquires a picture or a custom character corresponding to the received identifier, in this embodiment, The second terminal searches for a picture or a custom character corresponding to the received identifier in its storage space.
  • the hidden module 40 is configured to hide the currently displayed input method interface, and display the acquired image or custom character after successful hiding.
  • the hiding module 40 first hides the currently displayed input method interface, so as to avoid confusion with the input data of the current input method interface when displaying pictures or custom characters, thereby causing problems such as display errors or inability to display pictures or custom characters.
  • the currently displayed input method interface is hidden. Therefore, the hidden module 40 displays the acquired picture or custom character.
  • the hidden module 40 is further configured to display the acquired picture or a custom character in a display interface corresponding to the input box, where the input box is an input box corresponding to the input method interface.
  • the input box is an input box corresponding to the input method interface, and specifically refers to a display area corresponding to the data input through the input method interface, for example, when inputting data in a text file of the second terminal, the input box corresponds to the text.
  • the captured image or the custom character may be displayed on the display interface corresponding to the input box, that is, the image or the custom character is displayed on the display interface corresponding to the input box to avoid the image or the self. Defining the problem that the character display position is unclear and the display is unsuccessful.
  • the generating module 10 when the picture or the custom character sent by the first terminal is received, the generating module 10 generates an identifier corresponding to the received picture, and then the associated storage module 20 stores the received picture or the customized character and corresponding And sending the identifier to the first terminal, implementing an identifier generated according to the received picture or a custom character, and then receiving the identifier sent by the first terminal, and the current input method
  • the obtaining module 30 acquires a picture or a custom character corresponding to the received identifier
  • the hiding module 40 hides the currently displayed input method interface, and displays the acquired picture or custom character after successfully hiding, and further
  • the picture or the custom character is displayed according to the received identifier, so that the picture of the first terminal is displayed on the second terminal, and when the second terminal is a smart TV, the picture or the custom character can be quickly implemented by the first terminal. Sharing and displaying on smart TV, avoiding the cursor shaking or positioning input characters due to smart TV input method is not accurate Problems, improve the user experience.
  • the obtaining module 30 includes:
  • a determining unit 31 configured to determine whether an identifier stored by the second terminal matches the received identifier
  • the determining unit 31 determines whether the storage space of the second terminal has an identifier matching the received identifier. In this embodiment, specifically, the determining unit 31 determines whether the storage space of the second terminal exists and received. An identifier with a consistent identifier.
  • the obtaining unit 32 is configured to acquire a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
  • the second terminal may send the received identifier error message to the A terminal, when receiving the prompt information, the first terminal displays the prompt information to remind the user that the identifier entered by the user is incorrect, and for the user to select whether to re-enter.
  • the determining unit 31 determines whether the identifier stored by the second terminal matches the received identifier, and then acquires the unit when the identifier stored by the second terminal matches the received identifier.
  • the generating module 10 includes:
  • the first obtaining unit 11 is configured to acquire a gain of a pixel of the received picture or the custom character when receiving the picture or the custom character sent by the first terminal;
  • the gain of the picture or the custom character pixel includes the R gain, the G gain, and the B gain of the pixel.
  • the second terminal acquires the received picture or the custom character.
  • the R gain, G gain, and B gain of the pixel are the same.
  • the second obtaining unit 12 is configured to acquire, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
  • the second obtaining unit 12 acquires a pixel in the picture or the custom character whose gain is greater than a preset threshold according to the obtained gain of the pixel point, wherein the gain of the acquired pixel point includes the R gain, the G gain, and the B of the pixel point.
  • the preset threshold includes a preset R gain, a preset G gain, a preset B gain, and a pixel in the picture or a custom character whose gain is greater than a preset threshold refers to an R gain, a G gain, and a B gain of the pixel. They are greater than the preset R gain, preset G gain, and preset B gain.
  • the preset R gain, preset G gain, and preset B gain can all be set to 0.
  • the processing unit 13 is configured to perform compression processing on the acquired pixel points, and generate a target image based on the compressed pixel points;
  • the processing unit 13 establishes a plane rectangular coordinate system with the center of the first picture formed by the pixel with the gain greater than the preset threshold as the coordinate origin, and then acquires the coordinates of all the pixels in the received picture or the custom character whose gain is greater than the preset threshold.
  • the pixel of the preset threshold is used as a boundary to generate a first picture, so that all pixels in the received picture or the custom character whose gain is greater than a preset threshold are in the first picture; then the gain of the first picture is greater than a preset threshold.
  • the coordinates of the pixel points are reduced according to a preset ratio to generate a second picture, for example, the coordinates of the pixel point whose gain of the first picture is greater than the preset threshold is reduced to half of the original, that is, the preset ratio is 50%, and then the second picture is taken.
  • the pixel whose gain is greater than the preset threshold is cut to generate a target picture.
  • the gain according to the second picture is large.
  • the number of pixels in the target picture whose gain is greater than the preset threshold is the number of pixels in the second picture whose gain is greater than the preset threshold.
  • Half of the number after the above processing, the resulting target image has less data size and less storage space than the input image or custom character.
  • a generating unit 14 configured to generate an identifier corresponding to the target picture
  • the storage module 20 is further configured to store the target picture and a corresponding identifier.
  • the first acquiring unit 11 acquires the gain of the pixel of the received picture or the custom character, and then the second acquiring unit 12 is based on the acquired pixel point.
  • the storage module 20 stores the target picture and the corresponding identifier
  • the target image is generated according to the gain of the picture or the custom character pixel point
  • the picture or customization stored by the second terminal is reduced.
  • the storage space occupied by characters further improves the user experience.
  • the processing unit 13 includes:
  • the deleting sub-unit 131 is configured to delete the acquired pixel point according to a preset ratio according to the gain of the acquired pixel point;
  • the clipping sub-unit 131 establishes a plane rectangular coordinate system by using the center of the first picture formed by the pixel point whose gain is greater than the preset threshold as a coordinate origin, and acquires all the pixels of the first picture whose gain is greater than a preset threshold.
  • the coordinate (X coordinate, Y coordinate) calculates the distance from each pixel point to the coordinate origin according to the coordinates of the pixel points of all the gains of the first picture that are greater than the preset threshold, and the maximum distance of the coordinate origin is greater than the preset threshold.
  • the pixel creates a second picture for the boundary. The pixel points whose gains are greater than the preset threshold in the second picture are deleted according to a preset ratio.
  • the pixels in the second picture have a gain greater than the preset threshold in the plane rectangular coordinate system, and the balance is reduced.
  • the number of pixels in the second picture in which the gain is greater than the preset threshold is half of the number of pixels in the second picture before the deletion is greater than the preset threshold, and the pixel distribution of the deleted picture is Evenly.
  • the reduction sub-unit 132 is configured to reduce a picture that includes the pixel points acquired after being deleted according to a preset ratio to generate a target picture.
  • the reduction sub-unit 132 reduces the coordinates of the pixel points whose gain is greater than the preset threshold in the second picture after the preset ratio is reduced according to a preset ratio to generate a target picture, for example, the gain of the second picture is greater than a preset threshold.
  • the coordinates of the pixel are reduced to half of the original, that is, the preset ratio is 50%.
  • the preset ratio can be set according to the user's needs and the input image.
  • the final generated target image is compared with the input image. The data size and occupied storage space are small.
  • the acquired pixel point is deleted according to a preset ratio by the gain of the pixel point acquired by the deletion sub-unit 131, and then the reduction sub-unit 132 reduces the image including the pixel point acquired after being deleted according to the preset ratio to generate a target.
  • the image is generated according to the gain of the pixel of the image, and the storage space occupied by the target image is smaller than that of the image input by the user, that is, the target image is consistent with the image input by the user, and the target image is occupied.
  • the storage space which in turn reduces the storage space occupied by the characters of the input method.

Abstract

Disclosed in the present invention is a data synchronization and sharing method. The method comprises: when a picture or a self-defined character sent by a first terminal is received, a second terminal generates an identifier corresponding to the received picture or the received self-defined character; associatively storing the received picture or the received self-defined character and the corresponding identifier, and sending the identifier to the first terminal; when the identifier sent by the first terminal is received and a current input method interface is activated, acquiring the picture or the self-defined character corresponding to the received identifier; and hiding the currently-displayed input method interface, and after the currently-displayed input method interface is successfully hidden, displaying the acquired picture or the acquired self-defined character. Also disclosed in the present invention is a data synchronization and sharing apparatus. In the present invention, a picture or a self-defined character is displayed according to a received identifier, so that a picture or a self-defined character of a first terminal is displayed in a second terminal.

Description

数据同步共享方法及装置  Data synchronization sharing method and device
技术领域Technical field
本发明涉及数据共享技术领域,尤其涉及一种数据同步共享方法及装置。The present invention relates to the field of data sharing technologies, and in particular, to a data synchronization sharing method and apparatus.
背景技术Background technique
目前,随着智能电视技术的发展,智能输入法的功能越来越丰富,用户可以通过智能输入法输入各种字符。At present, with the development of smart TV technology, the functions of the intelligent input method are more and more abundant, and users can input various characters through the smart input method.
但是,在采用现有智能电视的输入法输入信息时,用户只能选择输入智能输入法所带有的各种字符,无法实现自定义字符的输入。例如,在看到喜欢的图片或自定义字符时,用户想通过输入法将该图片或自定义字符作为输入法字符,但是由于智能输入法无法实现输入法字符的自定义,进而无法满足用户的需求。 However, when inputting information using the input method of the existing smart TV, the user can only select various characters that are input by the smart input method, and the input of the custom character cannot be realized. For example, when you see a favorite picture or a custom character, the user wants to use the picture or a custom character as an input method character by input method, but since the smart input method cannot realize the customization of the input method character, the user cannot satisfy the user. demand.
发明内容Summary of the invention
本发明提供一种数据同步共享方法及装置系统,旨在解决现有的智能电视输入法无法输入自定义字符的技术问题。The invention provides a data synchronization sharing method and device system, which aims to solve the technical problem that the existing smart TV input method cannot input a custom character.
为实现上述目的,本发明提供的一种数据同步共享方法,所述数据同步共享方法包括以下步骤:To achieve the above objective, the present invention provides a data synchronization sharing method, and the data synchronization sharing method includes the following steps:
在接收到第一终端发送的图片或自定义字符时,第二终端获取接收的图片或自定义字符的像素点的增益;When receiving the picture or the custom character sent by the first terminal, the second terminal acquires the gain of the pixel of the received picture or the custom character;
基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点;Obtaining, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片;Performing compression processing on the acquired pixel points, and generating a target image based on the compressed pixel points;
生成所述目标图片对应的标识符;Generating an identifier corresponding to the target picture;
关联存储所述目标图片及对应的标识符,并发送所述标识符至所述第一终端;Associating and storing the target picture and the corresponding identifier, and sending the identifier to the first terminal;
在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,确定是否有所述第二终端存储的标识符与接收到的标识符匹配; After receiving the identifier sent by the first terminal, and the current input method interface is activated, determining whether the identifier stored by the second terminal matches the received identifier;
在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的所述目标图片;Acquiring the target picture corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier;
隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的所述目标图片。The currently displayed input method interface is hidden, and the obtained target image is displayed after being successfully hidden.
优选地,对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片的步骤包括:Preferably, the step of performing compression processing on the acquired pixel points and generating a target picture based on the compressed processed pixel points comprises:
基于获取的像素点的增益按照预设比例删除获取到的像素点;Deleting the acquired pixel points according to a preset ratio based on the gain of the acquired pixel points;
缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。The image containing the pixel points acquired after being deleted according to the preset ratio is reduced to generate a target image.
优选地,所述显示获取到的所述目标图片的步骤包括:在处于激活状态的输入框对应的显示界面显示获取到的所述目标图片。Preferably, the step of displaying the acquired target picture comprises: displaying the acquired target picture in a display interface corresponding to the input box in an activated state.
.
此外,为实现上述目的,本发明还提供一种数据同步共享方法,所述数据同步共享方法包括以下步骤:In addition, to achieve the above object, the present invention further provides a data synchronization sharing method, where the data synchronization sharing method includes the following steps:
在接收到第一终端发送的图片或自定义字符时,第二终端生成接收到的图片或自定义字符对应的标识符;Upon receiving the picture or the custom character sent by the first terminal, the second terminal generates an identifier corresponding to the received picture or the custom character;
关联存储所述接收到的图片或自定义字符及对应的标识符,并发送所述标识符至所述第一终端;Correlatingly storing the received picture or custom character and a corresponding identifier, and transmitting the identifier to the first terminal;
在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,获取接收到的标识符对应的图片或自定义字符;After receiving the identifier sent by the first terminal, and the current input method interface is activated, acquiring a picture or a custom character corresponding to the received identifier;
隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的图片或自定义字符。Hides the currently displayed input method interface and displays the captured image or custom characters after successful hiding.
优选地,所述获取所述标识符对应的图片或自定义字符的步骤包括:Preferably, the step of acquiring a picture or a custom character corresponding to the identifier includes:
确定是否有所述第二终端存储的标识符与接收到的标识符匹配; Determining whether there is an identifier stored by the second terminal that matches the received identifier;
在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的图片或自定义字符。And obtaining a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
优选地,在接收到第一终端发送的图片或自定义字符时,生成接收到的图片或自定义字符对应的标识符的步骤包括:Preferably, when receiving the picture or the custom character sent by the first terminal, the step of generating the identifier corresponding to the received picture or the custom character includes:
在接收到第一终端发送的图片或自定义字符时,获取接收的图片或自定义字符的像素点的增益;Obtaining a gain of a pixel of a received picture or a custom character when receiving a picture or a custom character sent by the first terminal;
基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点;Obtaining, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片;Performing compression processing on the acquired pixel points, and generating a target image based on the compressed pixel points;
生成所述目标图片对应的标识符;Generating an identifier corresponding to the target picture;
所述存储所述接收到的图片及对应的标识符的步骤包括:存储所述目标图片及对应的标识符。The storing the received picture and the corresponding identifier comprises: storing the target picture and a corresponding identifier.
优选地,对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片的步骤包括:Preferably, the step of performing compression processing on the acquired pixel points and generating a target picture based on the compressed processed pixel points comprises:
基于获取的像素点的增益按照预设比例删除获取到的像素点;Deleting the acquired pixel points according to a preset ratio based on the gain of the acquired pixel points;
缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。The image containing the pixel points acquired after being deleted according to the preset ratio is reduced to generate a target image.
优选地,所述显示获取到的图片或自定义字符的步骤包括:在处于激活状态的输入框对应的显示界面显示获取到的图片或自定义字符。Preferably, the step of displaying the acquired picture or custom character comprises: displaying the acquired picture or a custom character in a display interface corresponding to the input box in an activated state.
此外,为实现上述目的,本发明还提供一种数据同步共享装置,所述数据同步共享装置包括:In addition, in order to achieve the above object, the present invention further provides a data synchronization sharing device, where the data synchronization sharing device includes:
生成模块,用于在接收到第一终端发送的图片或自定义字符时,生成接收到的图片或自定义字符对应的标识符;a generating module, configured to generate an identifier corresponding to the received picture or the custom character when receiving the picture or the custom character sent by the first terminal;
存储模块,用于关联存储所述接收到的图片或自定义字符及对应的标识符,并发送所述标识符至所述第一终端;a storage module, configured to associate the stored picture or a custom character and a corresponding identifier, and send the identifier to the first terminal;
获取模块,用于在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,获取所述标识符对应的图片或自定义字符;An acquiring module, configured to: when receiving the identifier sent by the first terminal, and acquiring the current input method interface, acquiring a picture or a custom character corresponding to the identifier;
隐藏模块,用于隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的图片或自定义字符。A hidden module that hides the currently displayed input method interface and displays the acquired image or custom character after successful hiding.
优选地,所述获取模块包括:Preferably, the obtaining module comprises:
确定单元,用于确定是否有所述第二终端存储的标识符与接收到的标识符匹配; a determining unit, configured to determine whether an identifier stored by the second terminal matches the received identifier;
获取单元,用于在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的图片或自定义字符。And an obtaining unit, configured to acquire a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
优选地,所述生成模块包括:Preferably, the generating module comprises:
第一获取单元,用于在接收到第一终端发送的图片或自定义字符时,获取接收的图片或自定义字符的像素点的增益;a first acquiring unit, configured to acquire a gain of a pixel of the received picture or the customized character when receiving the picture or the custom character sent by the first terminal;
第二获取单元,用于基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点;a second acquiring unit, configured to acquire, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
处理单元,用于对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片;a processing unit, configured to perform compression processing on the acquired pixel points, and generate a target image based on the compressed pixel points;
生成单元,用于生成所述目标图片对应的标识符;a generating unit, configured to generate an identifier corresponding to the target image;
所述存储模块还用于存储所述目标图片及对应的标识符。The storage module is further configured to store the target image and a corresponding identifier.
优选地,所述处理单元包括:Preferably, the processing unit comprises:
删除子单元,用于基于获取的像素点的增益按照预设比例删除获取到的像素点;Deleting a sub-unit, configured to delete the acquired pixel point according to a preset ratio according to a gain of the acquired pixel point;
缩小子单元,用于缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。The sub-unit is reduced to reduce the image containing the pixel obtained after being deleted according to the preset ratio to generate the target image.
优选地,所述隐藏模块还用于在处于激活状态的输入框对应的显示界面显示获取到的图片或自定义字符。Preferably, the hidden module is further configured to display the acquired picture or a custom character in a display interface corresponding to the input box in an activated state.
本发明通过在接收到第一终端发送的图片或自定义字符时,第二终端生成接收到的图片或自定义字符对应的标识符,接着关联存储所述接收到的图片或自定义字符及对应的标识符,并发送所述标识符至所述第一终端,实现了根据接收到的图片生成标识符,然后在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,获取接收到的标识符对应的图片或自定义字符,最后隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的图片或自定义字符,进而实现了根据接收到的标识符显示图片或自定义字符,使得第一终端的图片或自定义字符在第二终端进行显示,在第二终端为智能电视时,能够通过第一终端实现图片或自定义字符的快捷共享并在智能电视显示,避免了由于智能电视输入法的光标晃动或定位输入字符不准确的问题。When receiving the picture or the custom character sent by the first terminal, the second terminal generates an identifier corresponding to the received picture or the custom character, and then associates and stores the received picture or the customized character and the corresponding And sending the identifier to the first terminal, implementing an identifier generated according to the received picture, and then receiving the identifier sent by the first terminal, and the current input method interface is activated Obtain the image or custom character corresponding to the received identifier, and finally hide the currently displayed input method interface, and display the acquired image or custom character after successful hiding, thereby implementing displaying the image according to the received identifier. Or a custom character, so that the picture or the custom character of the first terminal is displayed on the second terminal, and when the second terminal is a smart TV, the shortcut sharing of the picture or the custom character can be realized by the first terminal and displayed on the smart TV. This avoids the problem of cursor sway or positioning input characters being inaccurate due to the smart TV input method.
附图说明DRAWINGS
图1为本发明数据同步共享方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a data synchronization sharing method according to the present invention;
图2为本发明数据同步共享方法第二实施例中获取标识符对应的图片或自定义字符步骤的细化流程示意图;2 is a schematic flowchart of a step of acquiring a picture or a custom character corresponding to an identifier in a second embodiment of the data synchronization sharing method of the present invention;
图3为本发明数据同步共享方法第三实施例中生成图片或自定义字符对应的标识符步骤的细化流程示意图;3 is a schematic flowchart of a step of generating an identifier corresponding to a picture or a custom character in a third embodiment of the data synchronization sharing method according to the present invention;
图4为本发明数据同步共享方法第四实施例中对像素点进行压缩处理步骤的细化流程示意图;4 is a schematic flowchart of a process of compressing a pixel point in a fourth embodiment of the data synchronization sharing method according to the present invention;
图5为本发明数据同步共享装置第一实施例的功能模块示意图;FIG. 5 is a schematic diagram of functional modules of a first embodiment of a data synchronization sharing apparatus according to the present invention; FIG.
图6为本发明数据同步共享装置第二实施例中获取模块的细化功能模块示意图;6 is a schematic diagram of a refinement function module of an acquisition module in a second embodiment of a data synchronization sharing device according to the present invention;
图7为本发明数据同步共享装置第三实施例中生成模块的细化功能模块示意图;7 is a schematic diagram of a refinement function module of a generation module in a third embodiment of the data synchronization sharing device of the present invention;
图8为本发明数据同步共享装置第四实施例中处理单元的细化功能模块示意图。FIG. 8 is a schematic diagram of a refinement function module of a processing unit in a fourth embodiment of the data synchronization sharing apparatus according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种数据同步共享方法。参照图1,图1为本发明数据同步共享方法第一实施例的流程示意图。The invention provides a data synchronization sharing method. Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a first embodiment of a data synchronization sharing method according to the present invention.
在本实施例中,该数据同步共享方法包括:In this embodiment, the data synchronization sharing method includes:
步骤S10,在接收到第一终端发送的图片或自定义字符时,第二终端生成接收到的图片或自定义字符对应的标识符;Step S10: When receiving the picture or the custom character sent by the first terminal, the second terminal generates an identifier corresponding to the received picture or the custom character;
其中,第一终端以及第二终端均可包括手机、IPAD、PC、电视等终端,优选地,本实施例中,第二终端为智能电视,第一终端为手机或IPAD等输入较为方便的终端。在用户看到喜欢的图片或自定义字符(全部自行对应修改)时,用户想通过输入法将该图片或自定义字符作为输入法字符时,可以通过第一终端输入该图片或自定义字符,第一终端将该图片或自定义字符发送至第二终端,第二终端在接收到第一终端发送的图片或自定义字符时,生成接收到的图或自定义字符片对应的标识符,其中,标识符可以为对图片或自定义字符的编号等,第二终端能够通过该标识符找到其对应的唯一的图片或自定义字符,即标识符与第二终端存储的图片或自定义字符一一对应。The first terminal and the second terminal may each include a mobile phone, an IPAD, a PC, a television, and the like. Preferably, in this embodiment, the second terminal is a smart TV, and the first terminal is a convenient terminal for inputting a mobile phone or an IPAD. . When the user sees a favorite picture or a custom character (all of which are modified by themselves), when the user wants to use the picture or the custom character as the input method character by the input method, the picture or the custom character can be input through the first terminal. Sending, by the first terminal, the picture or the custom character to the second terminal, when the second terminal receives the picture or the custom character sent by the first terminal, generating the identifier corresponding to the received picture or the customized character piece, where The identifier may be a number of a picture or a custom character, etc., and the second terminal can find a corresponding unique picture or a custom character by using the identifier, that is, the identifier and the picture or the custom character stored by the second terminal. A correspondence.
步骤S20,关联存储所述接收到的图片或自定义字符及对应的标识符,并发送所述标识符至所述第一终端;Step S20, storing the received picture or custom character and corresponding identifier, and transmitting the identifier to the first terminal;
第二终端将生成的标识符以及接收到的图片或自定义字符对应的关联存储,以便于后续通过标识符查找该图片或自定义字符,同时,第二终端将该标识符发送至第一终端,以供第一终端存储该图片或自定义字符对应的标识符,后续当用户想要在第二终端显示该标识符对应的图片或自定义字符而在第一终端输入该图片或自定义字符时,第一终端直接发送该标识符至第二终端,而不需要再次直接发送用户输入的图片或自定义字符,减少了第一终端与第二终端之间传输的数据大小,提高了数据同步的效率,当然用户也可以直接在第一终端输入该标识符。The second terminal stores the generated identifier and the association corresponding to the received picture or the custom character, so as to subsequently search the picture or the custom character by using the identifier, and the second terminal sends the identifier to the first terminal. For the first terminal to store the identifier corresponding to the picture or the custom character, and then input the picture or the custom character in the first terminal when the user wants to display the picture or the custom character corresponding to the identifier in the second terminal. The first terminal directly sends the identifier to the second terminal, and does not need to directly send the picture or the custom character input by the user again, thereby reducing the data size transmitted between the first terminal and the second terminal, and improving data synchronization. The efficiency, of course, the user can also enter the identifier directly in the first terminal.
可以理解的是,第一终端还可以将记录用户输入过的图片或自定义字符,即存储用户输入的图片或自定义字符,以便后续可以直接调用该图片或自定义字符。It can be understood that the first terminal may also record a picture or a custom character input by the user, that is, store a picture or a custom character input by the user, so that the picture or the custom character can be directly invoked subsequently.
步骤S30,在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,获取接收到的标识符对应的图片或自定义字符;Step S30, after receiving the identifier sent by the first terminal, and the current input method interface is activated, acquiring a picture or a custom character corresponding to the received identifier;
在用户需要在第二终端显示某些图片或自定义字符时,通过第一终端发送该图片或自定义字符对应的标识符至第二终端,第二终端在接收到所述第一终端发送的标识符时,若第二终端当前输入法界面被激活,即用户已激活第二终端的输入法界面以输入信息,则获取接收到的标识符对应的图片或自定义字符,在本实施例中,第二终端在其存储空间查找接收到的标识符对应的图片或自定义字符。When the user needs to display certain pictures or custom characters in the second terminal, the identifier corresponding to the picture or the custom character is sent to the second terminal by the first terminal, and the second terminal receives the sending by the first terminal. In the case of the identifier, if the current input method interface of the second terminal is activated, that is, the user has activated the input method interface of the second terminal to input information, the picture or the custom character corresponding to the received identifier is obtained, in this embodiment. The second terminal searches for a picture or a custom character corresponding to the received identifier in its storage space.
步骤S40,隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的图片或自定义字符。In step S40, the currently displayed input method interface is hidden, and the acquired picture or custom character is displayed after being successfully hidden.
第二终端首先隐藏当前显示的输入法界面,以避免在进行图片或自定义字符显示时与当前的输入法界面的输入数据混淆,进而造成图片或自定义字符显示错误或者无法显示等问题,在隐藏当前显示的输入法界面因此之后,第二终端显示获取到的图片或自定义字符。The second terminal first hides the currently displayed input method interface, so as to avoid confusion with the input data of the current input method interface when displaying pictures or custom characters, thereby causing problems such as incorrect display of the picture or custom characters, or The currently displayed input method interface is hidden. Therefore, the second terminal displays the acquired picture or custom character.
进一步地,在其他实施例中,步骤S40还包括:在处于激活状态的输入框对应的显示界面显示获取到的图片,其中,所述输入框为所述输入法界面对应的输入框。Further, in other embodiments, step S40 further includes: displaying the acquired image on a display interface corresponding to the input box in an activated state, wherein the input box is an input box corresponding to the input method interface.
容易理解,该输入框为输入法界面对应的输入框,具体是指通过输入法界面输入的数据对应的显示区域,例如在第二终端的某一文本文件输入数据时,该输入框对应该文本文件中的光标所在的区域,本实施例中可以在输入框对应的显示界面显示获取到的图片或自定义字符,即将该图片或自定义字符显示在处于激活状态的输入框对应的显示界面,避免图片或自定义字符显示位置不清而造成显示不成功等问题。It is easy to understand that the input box is an input box corresponding to the input method interface, and specifically refers to a display area corresponding to the data input through the input method interface, for example, when inputting data in a text file of the second terminal, the input box corresponds to the text. In the embodiment, the captured image or the custom character may be displayed on the display interface corresponding to the input box, that is, the image or the custom character is displayed on the display interface corresponding to the input box in the active state. Avoid problems such as unsatisfactory display of images or custom characters.
本实施例通过在接收到第一终端发送的图片或自定义字符时,第二终端生成接收到的图片或自定义字符对应的标识符,接着关联存储所述接收到的图片及对应的标识符,并发送所述标识符至所述第一终端,实现了根据接收到的图片或自定义字符生成标识符,然后在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,获取接收到的标识符对应的图片或自定义字符,最后隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的图片或自定义字符,进而实现了根据接收到的标识符显示图片或自定义字符,使得第一终端的图片或自定义字符在第二终端进行显示,在第二终端为智能电视时,能够通过第一终端实现图片或自定义字符的快捷共享并在智能电视显示,避免了由于智能电视输入法的光标晃动或定位输入字符不准确的问题,提高了用户体验。In this embodiment, when receiving the picture or the custom character sent by the first terminal, the second terminal generates an identifier corresponding to the received picture or the custom character, and then associates and stores the received picture and the corresponding identifier. And sending the identifier to the first terminal, implementing generating an identifier according to the received picture or a custom character, and then receiving the identifier sent by the first terminal, and the current input method interface is activated When the image or the custom character corresponding to the received identifier is obtained, the currently displayed input method interface is hidden, and the acquired image or the custom character is displayed after the successful hiding, thereby implementing the display according to the received identifier. A picture or a custom character, such that the picture or the custom character of the first terminal is displayed on the second terminal, and when the second terminal is a smart TV, the picture or the custom character can be quickly shared by the first terminal and in the smart TV. Display, avoiding the problem that the cursor is shaken or the input character is inaccurate due to the smart TV input method, and the user is improved. Experience.
基于第一实施例提出本发明数据同步共享方法的第二实施例,参照图2,在本实施例中,步骤S30包括:A second embodiment of the data synchronization sharing method of the present invention is proposed based on the first embodiment. Referring to FIG. 2, in the embodiment, step S30 includes:
步骤S31,确定是否有所述第二终端存储的标识符与接收到的标识符匹配;Step S31, determining whether there is an identifier stored by the second terminal that matches the received identifier;
第二终端判断其存储空间是否存有与接收到的标识符匹配的标识符,本实施例中,具体是指,第二终端的存储空间是否存有与接收到的标识符一致的标识符。The second terminal determines whether the storage space has an identifier matching the received identifier. In this embodiment, specifically, whether the storage space of the second terminal has an identifier that matches the received identifier.
步骤S32,在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的图片或自定义字符。Step S32: Acquire a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
进一步地,在其他实施例中,在第二终端存储的标识符中不存在与接收到的标识符匹配的标识符时,第二终端可以发送接收到的标识符错误的提示信息至所述第一终端,第一终端在接收到该提示信息时,显示该提示信息以提醒用户其输入错误,以及供用户选择是否需要重新输入。Further, in other embodiments, when there is no identifier matching the received identifier in the identifier stored by the second terminal, the second terminal may send the received identifier error message to the A terminal, when receiving the prompt information, the first terminal displays the prompt information to remind the user of an input error, and for the user to select whether to re-enter.
本实施例通过确定是否有所述第二终端存储的标识符与接收到的标识符匹配,然后在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的图片或自定义字符,使得第二终端能够准确的获得标识符对应的图片或自定义字符,提高了获取图片或自定义字符的效率。The embodiment determines whether the identifier stored by the second terminal matches the received identifier, and then acquires the received identifier when the identifier stored by the second terminal matches the received identifier. The corresponding picture or custom character enables the second terminal to accurately obtain the picture or the custom character corresponding to the identifier, thereby improving the efficiency of acquiring the picture or the custom character.
基于第一实施例提出本发明数据同步共享方法的第三实施例,参照图3,在本实施例中,步骤S10包括:A third embodiment of the data synchronization sharing method of the present invention is proposed based on the first embodiment. Referring to FIG. 3, in the embodiment, step S10 includes:
步骤S11,在接收到第一终端发送的图片或自定义字符时,获取接收的图片或自定义字符的像素点的增益;Step S11: Acquire a gain of a pixel of the received picture or the custom character when receiving the picture or the custom character sent by the first terminal;
其中,图片或自定义字符像素点的增益包括像素点的R增益、G增益、B增益,在接收到第一终端发送的图片或自定义字符时,第二终端获取接收的图片或自定义字符的像素点的R增益、G增益、B增益。The gain of the picture or the custom character pixel includes the R gain, the G gain, and the B gain of the pixel. When receiving the picture or the custom character sent by the first terminal, the second terminal acquires the received picture or the custom character. The R gain, G gain, and B gain of the pixel.
步骤S12,基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点;Step S12, acquiring, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
第二终端根据获取到的像素点的增益获取图片或自定义字符中增益大于预设阈值的像素点,其中,在获取到的像素点的增益包括像素点的R增益、G增益、B增益时,预设阈值包括预设R增益、预设G增益、预设B增益,图片或自定义字符中增益大于预设阈值的像素点是指该像素点的R增益、G增益、B增益分别大于预设R增益、预设G增益、预设B增益,一般情况下,预设R增益、预设G增益、预设B增益均可以设置为0。The second terminal acquires a pixel in the picture or the custom character whose gain is greater than a preset threshold according to the acquired gain of the pixel, wherein the gain of the acquired pixel includes the R gain, the G gain, and the B gain of the pixel The preset threshold includes a preset R gain, a preset G gain, a preset B gain, and a pixel in the picture or the custom character whose gain is greater than a preset threshold means that the R gain, the G gain, and the B gain of the pixel are respectively greater than Preset R gain, preset G gain, preset B gain. In general, the preset R gain, preset G gain, and preset B gain can all be set to 0.
步骤S13,对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片;Step S13, performing compression processing on the acquired pixel points, and generating a target picture based on the compressed pixel points;
第二终端以增益大于预设阈值的像素点形成的第一图片的中心为坐标原点建立平面直角坐标系,然后获取接收到的图片或自定义字符中所有增益大于预设阈值的像素点的坐标(X坐标,Y坐标),根据获取到的接收到的图片或自定义字符中所有增益大于预设阈值的像素点的坐标计算各个像素点到坐标原点的距离,以坐标原点距离最大的增益大于预设阈值的像素点为边界生成第一图片,使得接收到的图片或自定义字符中所有增益大于预设阈值的像素点均在第一图片内;接着将第一图片的增益大于预设阈值的像素点的坐标按照预设比例进行缩小生成第二图片,例如将第一图片的增益大于预设阈值的像素点的坐标缩小至原来的一半即预设比例为50%,然后将第二图片的增益大于预设阈值的像素点进行裁减以生成目标图片,一般情况下,按照第二图片的增益大于预设阈值的像素点在平面直角坐标系的分布情况进行均衡裁减,譬如,目标图片中增益大于预设阈值的像素点的个数为第二图片中增益大于预设阈值的像素点的个数的一半,经过上述的处理,最后生成的目标图片与输入的图片或自定义字符相比其数据大小及占用的存储空间较少。The second terminal establishes a plane rectangular coordinate system with the center of the first picture formed by the pixel with the gain greater than the preset threshold as the coordinate origin, and then acquires the coordinates of all the pixels in the received picture or the custom character whose gain is greater than the preset threshold. (X coordinate, Y coordinate), according to the obtained received image or the coordinates of all the pixels in the custom character whose gain is greater than the preset threshold, the distance from each pixel point to the coordinate origin is calculated, and the maximum distance from the coordinate origin distance is greater than The pixel of the preset threshold is used as a boundary to generate a first picture, so that all pixels in the received picture or the custom character whose gain is greater than a preset threshold are in the first picture; then the gain of the first picture is greater than a preset threshold. The coordinates of the pixel points are reduced according to a preset ratio to generate a second picture, for example, the coordinates of the pixel point whose gain of the first picture is greater than the preset threshold is reduced to half of the original, that is, the preset ratio is 50%, and then the second picture is taken. The pixel whose gain is greater than the preset threshold is cut to generate a target picture. In general, the gain according to the second picture is large. The pixel of the preset threshold is balanced in the distribution of the plane rectangular coordinate system. For example, the number of pixels in the target image whose gain is greater than the preset threshold is the number of pixels in the second image whose gain is greater than a preset threshold. Half of the above, after the above processing, the resulting target image has less data size and less storage space than the input image or custom character.
步骤S14,生成所述目标图片对应的标识符;Step S14, generating an identifier corresponding to the target picture;
步骤S20还包括:存储所述目标图片及对应的标识符。Step S20 further includes: storing the target picture and a corresponding identifier.
在其他实施例中,上述图片处理的步骤也可以由第一终端执行,具体流程如下:在第一终端接收到基于预设显示界面输入的图片或自定义字符时,获取接收的图片或自定义字符的像素点的增益,接着基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点,然后对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片,最后将生成的目标图片发送至第二终端。In other embodiments, the step of the image processing may be performed by the first terminal. The specific process is as follows: when the first terminal receives a picture or a custom character input based on the preset display interface, acquiring the received picture or customizing a gain of a pixel of the character, and then acquiring, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold, and then performing compression processing on the acquired pixel point, and based on the compressed process The pixel generates a target picture, and finally sends the generated target picture to the second terminal.
通过第一终端进行图片或自定义字符的处理,能够在发送图片或自定义字符至第二终端时减少传输的数据量,提高传输效率。The processing of pictures or custom characters by the first terminal can reduce the amount of data transmitted when transmitting pictures or custom characters to the second terminal, thereby improving transmission efficiency.
本实施例通过在接收到第一终端发送的图片或自定义字符时,获取接收的图片或自定义字符的像素点的增益,接着基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点,然后对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片,最后生成所述目标图片对应的标识符,并存储所述目标图片及对应的标识符,实现了根据图片或自定义字符像素点的增益生成目标图片,减少了第二终端存储的图片或自定义字符占用的存储空,进一步提高了用户体验。In this embodiment, when receiving the picture or the custom character sent by the first terminal, acquiring the gain of the pixel of the received picture or the custom character, and then acquiring the picture or the custom character based on the obtained gain of the pixel point. a pixel having a gain greater than a preset threshold, and then performing compression processing on the acquired pixel, generating a target image based on the compressed pixel, finally generating an identifier corresponding to the target image, and storing the target image and The corresponding identifier realizes generating a target picture according to the gain of the picture or the pixel of the custom character, and reduces the storage space occupied by the picture or the custom character stored by the second terminal, thereby further improving the user experience.
基于第三实施例提出本发明数据同步共享方法的第四实施例,参照图4,在本实施例中,步骤S13包括:A fourth embodiment of the data synchronization sharing method of the present invention is proposed based on the third embodiment. Referring to FIG. 4, in the embodiment, step S13 includes:
步骤S131,基于获取的像素点的增益按照预设比例删除获取到的像素点;Step S131, deleting the acquired pixel points according to a preset ratio according to the obtained gain of the pixel points;
本实施例中,通过以增益大于预设阈值的像素点形成的第一图片的中心为坐标原点建立平面直角坐标系,获取第一图片的所有增益大于预设阈值的像素点的坐标(X坐标,Y坐标),根据获取到的第一图片的所有增益大于预设阈值的像素点的坐标计算各个像素点到坐标原点的距离,以坐标原点距离最大的增益大于预设阈值的像素点为边界生成第二图片。将第二图片中增益大于预设阈值的像素点按照预设比例进行删除,一般情况下,按照第二图片的增益大于预设阈值的像素点在平面直角坐标系的分布情况进行均衡删除,譬如,删除后第二图片中片中增益大于预设阈值的像素点的个数为删除前第二图片中增益大于预设阈值的像素点的个数的一半,且删除后的图片的像素点分布均匀。In this embodiment, a plane rectangular coordinate system is established by taking the center of the first picture formed by the pixel point with the gain greater than the preset threshold as the coordinate origin, and the coordinates of the pixel point of the first picture whose gain is greater than the preset threshold are acquired (X coordinate). , Y coordinate), according to the coordinates of the pixel points of all the gains of the first picture that are greater than the preset threshold, calculate the distance from each pixel point to the coordinate origin, and the boundary with the maximum distance of the coordinate origin is greater than the preset threshold. Generate a second picture. The pixel points whose gain is greater than the preset threshold in the second picture are deleted according to a preset ratio. Generally, the pixels in the second picture whose picture is greater than the preset threshold are balanced and deleted in the plane rectangular coordinate system, for example, The number of pixels in the second picture in which the gain is greater than the preset threshold is half of the number of pixels in the second picture before the deletion is greater than the preset threshold, and the pixel distribution of the deleted picture is Evenly.
步骤S132,缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。Step S132, reducing a picture including the pixel points acquired after being deleted according to a preset ratio to generate a target picture.
将按照预设比例删除后的第二图片中增益大于预设阈值的像素点的坐标按照预设比例进行缩小以生成目标图片,例如,将第二图片的增益大于预设阈值的像素点的坐标缩小至原来的一半即预设比例为50%,当然预设比例可以根据用户需求以及输入的图片进行设定,经过上述的处理,最后生成的目标图片与输入的图片相比其数据大小及占用的存储空间较少。The coordinates of the pixel points whose gain is greater than the preset threshold in the second picture deleted according to the preset ratio are reduced according to a preset ratio to generate a target picture, for example, the coordinates of the pixel point whose gain of the second picture is greater than a preset threshold. Down to the original half, the preset ratio is 50%. Of course, the preset ratio can be set according to the user's needs and the input image. After the above processing, the final generated target image is compared with the input image. Less storage space.
本实施例中,通过基于获取的像素点的增益按照预设比例删除获取到的像素点,接着缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片,实现了根据图片像素点的增益生成目标图片,与用户输入的图片相比,目标图片占用的存储空间更小,即保证了目标图片与用户输入的图片的一致同时降低了目标图片占用的存储空间,进而降低了输入法的字符占用的存储空间。In this embodiment, the acquired pixel point is deleted according to the gain of the acquired pixel point according to a preset ratio, and then the image including the pixel point acquired according to the preset ratio deletion is reduced to generate a target image, and the image pixel is implemented according to the image pixel. The gain of the point generates a target image. Compared with the image input by the user, the target image occupies less storage space, that is, the target image is consistent with the image input by the user, and the storage space occupied by the target image is reduced, thereby reducing the input. The storage space occupied by the characters of the law.
本发明进一步提供一种数据同步共享装置。参照图5,图5为本发明数据同步共享装置第一实施例的功能模块示意图。The invention further provides a data synchronization sharing device. Referring to FIG. 5, FIG. 5 is a schematic diagram of functional modules of a first embodiment of a data synchronization sharing apparatus according to the present invention.
在本实施例中,该数据同步共享装置包括:In this embodiment, the data synchronization sharing device includes:
生成模块10,用于在接收到第一终端发送的图片或自定义字符时,生成接收到的图片或自定义字符对应的标识符;The generating module 10 is configured to generate an identifier corresponding to the received picture or the custom character when receiving the picture or the custom character sent by the first terminal;
其中,第一终端以及数据同步共享装置均可包括手机、IPAD、PC、电视等终端,优选地,本实施例中,数据同步共享装置为智能电视,本实施例中数据同步共享装置应用于第二终端。在用户看到喜欢的图片或自定义字符时,用户想通过输入法将该图片或自定义字符作为输入法字符时,可以通过第一终端输入该图片或自定义字符,第一终端将该图片或自定义字符发送至数据同步共享装置,数据同步共享装置在接收到第一终端发送的图片或自定义字符时,生成模块10生成接收到的图片或自定义字符对应的标识符,其中,标识符可以为对图片或自定义字符的编号等,数据同步共享装置能够通过该标识符找到其对应的唯一的图片或自定义字符,即标识符与第二终端存储的图片或自定义字符一一对应。The first terminal and the data synchronization sharing device may each include a mobile phone, an IPAD, a PC, a television, and the like. Preferably, in this embodiment, the data synchronization sharing device is a smart TV. In this embodiment, the data synchronization sharing device is applied to the first Two terminals. When the user sees a favorite picture or a custom character, the user may input the picture or a custom character through the first terminal when the user wants to use the picture or the custom character as the input method character by the input method, and the first terminal inputs the picture or the custom character. Or the custom character is sent to the data synchronization sharing device, and when the data synchronization sharing device receives the picture or the custom character sent by the first terminal, the generating module 10 generates an identifier corresponding to the received picture or the custom character, where the identifier The character can be a number for a picture or a custom character, etc., and the data synchronization sharing device can find its corresponding unique picture or custom character by using the identifier, that is, the identifier and the picture or custom character stored by the second terminal. correspond.
存储模块20,用于关联存储所述接收到的图片及对应的标识符,并发送所述标识符至所述第一终端;The storage module 20 is configured to associate the stored picture and the corresponding identifier, and send the identifier to the first terminal;
存储模块20将生成的标识符以及接收到的图片对应存储,以便于后续通过标识符查找该图片,同时,存储模块20将该标识符发送至第一终端,以供第一终端存储该图片或自定义字符对应的标识符,后续当用户想要在第二终端显示该标识符对应的图片或自定义字符而在第一终端输入该图片或自定义字符时,第一终端直接发送该标识符至第二终端,而不需要再次直接发送用户输入的图片或自定义字符,减少了第一终端与第二终端之间传输的数据大小,提高了数据同步的效率,当然用户也可以直接在第一终端输入该标识符。The storage module 20 stores the generated identifier and the received picture correspondingly, so as to subsequently search for the picture by using the identifier, and at the same time, the storage module 20 sends the identifier to the first terminal, so that the first terminal stores the picture or The identifier corresponding to the custom character, and when the user wants to display the picture or the custom character corresponding to the identifier in the second terminal and input the picture or the custom character in the first terminal, the first terminal directly sends the identifier To the second terminal, without directly transmitting the picture or custom character input by the user again, the data size transmitted between the first terminal and the second terminal is reduced, and the efficiency of data synchronization is improved, and the user can also directly A terminal inputs the identifier.
获取模块30,用于在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,获取所述标识符对应的图片或自定义字符;The obtaining module 30 is configured to: when receiving the identifier sent by the first terminal, and when the current input method interface is activated, acquiring a picture or a custom character corresponding to the identifier;
在用户需要在第二终端显示某些图片或自定义字符时,通过第一终端发送该图片对应的标识符至第二终端,第二终端在接收到所述第一终端发送的标识符时,若第二终端当前电视有输入法界面,即用户已激活第二终端的输入法界面以输入信息,则获取模块30获取接收到的标识符对应的图片或自定义字符,在本实施例中,第二终端在其存储空间查找接收到的标识符对应的图片或自定义字符。When the user needs to display certain pictures or custom characters in the second terminal, the first terminal sends an identifier corresponding to the picture to the second terminal, and when the second terminal receives the identifier sent by the first terminal, If the current terminal of the second terminal has an input method interface, that is, the user has activated the input method interface of the second terminal to input information, the obtaining module 30 acquires a picture or a custom character corresponding to the received identifier, in this embodiment, The second terminal searches for a picture or a custom character corresponding to the received identifier in its storage space.
隐藏模块40,用于隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的图片或自定义字符。The hidden module 40 is configured to hide the currently displayed input method interface, and display the acquired image or custom character after successful hiding.
隐藏模块40首先隐藏当前显示的输入法界面,以避免在进行图片或自定义字符显示时与当前的输入法界面的输入数据混淆,进而造成图片或自定义字符显示错误或者无法显示等问题,在隐藏当前显示的输入法界面因此之后,隐藏模块40显示获取到的图片或自定义字符。The hiding module 40 first hides the currently displayed input method interface, so as to avoid confusion with the input data of the current input method interface when displaying pictures or custom characters, thereby causing problems such as display errors or inability to display pictures or custom characters. The currently displayed input method interface is hidden. Therefore, the hidden module 40 displays the acquired picture or custom character.
所述隐藏模块40还用于在输入框对应的显示界面显示获取到的图片或自定义字符,其中,所述输入框为所述输入法界面对应的输入框。The hidden module 40 is further configured to display the acquired picture or a custom character in a display interface corresponding to the input box, where the input box is an input box corresponding to the input method interface.
容易理解,该输入框为输入法界面对应的输入框,具体是指通过输入法界面输入的数据对应的显示区域,例如在第二终端的某一文本文件输入数据时,该输入框对应该文本文件中的光标所在的区域,本实施例中可以在输入框对应的显示界面显示获取到的图片或自定义字符,即将该图片或自定义字符显示在输入框对应的显示界面,避免图片或自定义字符显示位置不清而造成显示不成功等问题。It is easy to understand that the input box is an input box corresponding to the input method interface, and specifically refers to a display area corresponding to the data input through the input method interface, for example, when inputting data in a text file of the second terminal, the input box corresponds to the text. In the embodiment, the captured image or the custom character may be displayed on the display interface corresponding to the input box, that is, the image or the custom character is displayed on the display interface corresponding to the input box to avoid the image or the self. Defining the problem that the character display position is unclear and the display is unsuccessful.
本实施例通过在接收到第一终端发送的图片或自定义字符时,生成模块10生成接收到的图片对应的标识符,接着关联存储模块20存储所述接收到的图片或自定义字符及对应的标识符,并发送所述标识符至所述第一终端,实现了根据接收到的图片或自定义字符生成标识符,然后在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,获取模块30获取接收到的标识符对应的图片或自定义字符,最后隐藏模块40隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的图片或自定义字符,进而实现了根据接收到的标识符显示图片或自定义字符,使得第一终端的图片在第二终端进行显示,在第二终端为智能电视时,能够通过第一终端实现图片或自定义字符的快捷共享并在智能电视显示,避免了由于智能电视输入法的光标晃动或定位输入字符不准确的问题,提高了用户体验。In this embodiment, when the picture or the custom character sent by the first terminal is received, the generating module 10 generates an identifier corresponding to the received picture, and then the associated storage module 20 stores the received picture or the customized character and corresponding And sending the identifier to the first terminal, implementing an identifier generated according to the received picture or a custom character, and then receiving the identifier sent by the first terminal, and the current input method When the interface is activated, the obtaining module 30 acquires a picture or a custom character corresponding to the received identifier, and finally the hiding module 40 hides the currently displayed input method interface, and displays the acquired picture or custom character after successfully hiding, and further The picture or the custom character is displayed according to the received identifier, so that the picture of the first terminal is displayed on the second terminal, and when the second terminal is a smart TV, the picture or the custom character can be quickly implemented by the first terminal. Sharing and displaying on smart TV, avoiding the cursor shaking or positioning input characters due to smart TV input method is not accurate Problems, improve the user experience.
基于第一实施例提出本发明数据同步共享装置的第二实施例,参照图6,在本实施例中,获取模块30包括:A second embodiment of the data synchronization sharing device of the present invention is proposed based on the first embodiment. Referring to FIG. 6, in this embodiment, the obtaining module 30 includes:
确定单元31,用于确定是否有所述第二终端存储的标识符与接收到的标识符匹配; a determining unit 31, configured to determine whether an identifier stored by the second terminal matches the received identifier;
确定单元31判断第二终端的存储空间是否存有与接收到的标识符匹配的标识符,本实施例中,具体是指,确定单元31判断第二终端的存储空间是否存有与接收到的标识符一致的标识符。The determining unit 31 determines whether the storage space of the second terminal has an identifier matching the received identifier. In this embodiment, specifically, the determining unit 31 determines whether the storage space of the second terminal exists and received. An identifier with a consistent identifier.
获取单元32,用于在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的图片或自定义字符。The obtaining unit 32 is configured to acquire a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
进一步地,在其他实施例中,在第二终端存储的标识符中不存在与接收到的标识符匹配的标识符时,第二终端可以发送接收到的标识符错误的提示信息至所述第一终端,第一终端在接收到该提示信息时,显示该提示信息以提醒用户其输入的标识符错误,以及供用户选择是否需要重新输入。Further, in other embodiments, when there is no identifier matching the received identifier in the identifier stored by the second terminal, the second terminal may send the received identifier error message to the A terminal, when receiving the prompt information, the first terminal displays the prompt information to remind the user that the identifier entered by the user is incorrect, and for the user to select whether to re-enter.
本实施例通过确定单元31确定是否有所述第二终端存储的标识符与接收到的标识符匹配,然后在有所述第二终端存储的标识符与接收到的标识符匹配时,获取单元32获取接收到的标识符对应的图片或自定义字符,使得第二终端能够准确的获得标识符对应的图片或自定义字符,提高了获取图片或自定义字符的效率。In this embodiment, the determining unit 31 determines whether the identifier stored by the second terminal matches the received identifier, and then acquires the unit when the identifier stored by the second terminal matches the received identifier. 32: Obtain a picture or a custom character corresponding to the received identifier, so that the second terminal can accurately obtain the picture or the custom character corresponding to the identifier, thereby improving the efficiency of acquiring the picture or the customized character.
基于第一实施例提出本发明数据同步共享装置的第三实施例,参照图7,在本实施例中,生成模块10包括:A third embodiment of the data synchronization sharing device of the present invention is proposed based on the first embodiment. Referring to FIG. 7, in this embodiment, the generating module 10 includes:
第一获取单元11,用于在接收到第一终端发送的图片或自定义字符时,获取接收的图片或自定义字符的像素点的增益;The first obtaining unit 11 is configured to acquire a gain of a pixel of the received picture or the custom character when receiving the picture or the custom character sent by the first terminal;
其中,图片或自定义字符像素点的增益包括像素点的R增益、G增益、B增益,在接收到第一终端发送的图片或自定义字符时,第二终端获取接收的图片或自定义字符的像素点的R增益、G增益、B增益。The gain of the picture or the custom character pixel includes the R gain, the G gain, and the B gain of the pixel. When receiving the picture or the custom character sent by the first terminal, the second terminal acquires the received picture or the custom character. The R gain, G gain, and B gain of the pixel.
第二获取单元12,用于基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点;The second obtaining unit 12 is configured to acquire, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
第二获取单元12根据获取到的像素点的增益获取图片或自定义字符中增益大于预设阈值的像素点,其中,在获取到的像素点的增益包括像素点的R增益、G增益、B增益时,预设阈值包括预设R增益、预设G增益、预设B增益,图片或自定义字符中增益大于预设阈值的像素点是指该像素点的R增益、G增益、B增益分别大于预设R增益、预设G增益、预设B增益,一般情况下,预设R增益、预设G增益、预设B增益均可以设置为0。The second obtaining unit 12 acquires a pixel in the picture or the custom character whose gain is greater than a preset threshold according to the obtained gain of the pixel point, wherein the gain of the acquired pixel point includes the R gain, the G gain, and the B of the pixel point. In the gain state, the preset threshold includes a preset R gain, a preset G gain, a preset B gain, and a pixel in the picture or a custom character whose gain is greater than a preset threshold refers to an R gain, a G gain, and a B gain of the pixel. They are greater than the preset R gain, preset G gain, and preset B gain. In general, the preset R gain, preset G gain, and preset B gain can all be set to 0.
处理单元13,用于对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片;The processing unit 13 is configured to perform compression processing on the acquired pixel points, and generate a target image based on the compressed pixel points;
处理单元13以增益大于预设阈值的像素点形成的第一图片的中心为坐标原点建立平面直角坐标系,然后获取接收到的图片或自定义字符中所有增益大于预设阈值的像素点的坐标(X坐标,Y坐标),根据获取到的接收到的图片或自定义字符中所有增益大于预设阈值的像素点的坐标计算各个像素点到坐标原点的距离,以坐标原点距离最大的增益大于预设阈值的像素点为边界生成第一图片,使得接收到的图片或自定义字符中所有增益大于预设阈值的像素点均在第一图片内;接着将第一图片的增益大于预设阈值的像素点的坐标按照预设比例进行缩小生成第二图片,例如将第一图片的增益大于预设阈值的像素点的坐标缩小至原来的一半即预设比例为50%,然后将第二图片的增益大于预设阈值的像素点进行裁减以生成目标图片,一般情况下,按照第二图片的增益大于预设阈值的像素点在平面直角坐标系的分布情况进行均衡裁减,譬如,目标图片中增益大于预设阈值的像素点的个数为第二图片中增益大于预设阈值的像素点的个数的一半,经过上述的处理,最后生成的目标图片与输入的图片或自定义字符相比其数据大小及占用的存储空间较少。The processing unit 13 establishes a plane rectangular coordinate system with the center of the first picture formed by the pixel with the gain greater than the preset threshold as the coordinate origin, and then acquires the coordinates of all the pixels in the received picture or the custom character whose gain is greater than the preset threshold. (X coordinate, Y coordinate), according to the obtained received image or the coordinates of all the pixels in the custom character whose gain is greater than the preset threshold, the distance from each pixel point to the coordinate origin is calculated, and the maximum distance from the coordinate origin distance is greater than The pixel of the preset threshold is used as a boundary to generate a first picture, so that all pixels in the received picture or the custom character whose gain is greater than a preset threshold are in the first picture; then the gain of the first picture is greater than a preset threshold. The coordinates of the pixel points are reduced according to a preset ratio to generate a second picture, for example, the coordinates of the pixel point whose gain of the first picture is greater than the preset threshold is reduced to half of the original, that is, the preset ratio is 50%, and then the second picture is taken. The pixel whose gain is greater than the preset threshold is cut to generate a target picture. In general, the gain according to the second picture is large. Performing equalization on the distribution of the pixels of the preset threshold in the plane rectangular coordinate system, for example, the number of pixels in the target picture whose gain is greater than the preset threshold is the number of pixels in the second picture whose gain is greater than the preset threshold. Half of the number, after the above processing, the resulting target image has less data size and less storage space than the input image or custom character.
生成单元14,用于生成所述目标图片对应的标识符;a generating unit 14 configured to generate an identifier corresponding to the target picture;
所述存储模块20还用于存储所述目标图片及对应的标识符。The storage module 20 is further configured to store the target picture and a corresponding identifier.
本实施例通过在接收到第一终端发送的图片或自定义字符时,第一获取单元11获取接收的图片或自定义字符的像素点的增益,接着第二获取单元12基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点,然后处理单元13对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片,最后生成单元14生成所述目标图片对应的标识符,存储模块20存储所述目标图片及对应的标识符,实现了根据图片或自定义字符像素点的增益生成目标图片,减少了第二终端存储的图片或自定义字符占用的存储空,进一步提高了用户体验。In this embodiment, when receiving the picture or the custom character sent by the first terminal, the first acquiring unit 11 acquires the gain of the pixel of the received picture or the custom character, and then the second acquiring unit 12 is based on the acquired pixel point. Gaining a pixel in the picture or the custom character whose gain is greater than a preset threshold, and then processing unit 13 performs compression processing on the acquired pixel point, and generates a target picture based on the compressed pixel point, and finally generates unit 14 generates The identifier corresponding to the target picture, the storage module 20 stores the target picture and the corresponding identifier, and the target image is generated according to the gain of the picture or the custom character pixel point, and the picture or customization stored by the second terminal is reduced. The storage space occupied by characters further improves the user experience.
基于第三实施例提出本发明数据同步共享装置的第四实施例,参照图8,在本实施例中,处理单元13包括:A fourth embodiment of the data synchronization sharing device of the present invention is proposed based on the third embodiment. Referring to FIG. 8, in the embodiment, the processing unit 13 includes:
删除子单元131,用于基于获取的像素点的增益按照预设比例删除获取到的像素点;The deleting sub-unit 131 is configured to delete the acquired pixel point according to a preset ratio according to the gain of the acquired pixel point;
本实施例中,裁减子单元131通过以增益大于预设阈值的像素点形成的第一图片的中心为坐标原点建立平面直角坐标系,获取第一图片的所有增益大于预设阈值的像素点的坐标(X坐标,Y坐标),根据获取到的第一图片的所有增益大于预设阈值的像素点的坐标计算各个像素点到坐标原点的距离,以坐标原点距离最大的增益大于预设阈值的像素点为边界生成第二图片。将第二图片中增益大于预设阈值的像素点按照预设比例进行删除,一般情况下,按照第二图片的增益大于预设阈值的像素点在平面直角坐标系的分布情况进行均衡裁减,譬如,删除后第二图片中片中增益大于预设阈值的像素点的个数为删除前第二图片中增益大于预设阈值的像素点的个数的一半,且删除后的图片的像素点分布均匀。In this embodiment, the clipping sub-unit 131 establishes a plane rectangular coordinate system by using the center of the first picture formed by the pixel point whose gain is greater than the preset threshold as a coordinate origin, and acquires all the pixels of the first picture whose gain is greater than a preset threshold. The coordinate (X coordinate, Y coordinate) calculates the distance from each pixel point to the coordinate origin according to the coordinates of the pixel points of all the gains of the first picture that are greater than the preset threshold, and the maximum distance of the coordinate origin is greater than the preset threshold. The pixel creates a second picture for the boundary. The pixel points whose gains are greater than the preset threshold in the second picture are deleted according to a preset ratio. Generally, the pixels in the second picture have a gain greater than the preset threshold in the plane rectangular coordinate system, and the balance is reduced. The number of pixels in the second picture in which the gain is greater than the preset threshold is half of the number of pixels in the second picture before the deletion is greater than the preset threshold, and the pixel distribution of the deleted picture is Evenly.
缩小子单元132,用于缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。The reduction sub-unit 132 is configured to reduce a picture that includes the pixel points acquired after being deleted according to a preset ratio to generate a target picture.
缩小子单元132将按照预设比例删除后的第二图片中增益大于预设阈值的像素点的坐标按照预设比例进行缩小以生成目标图片,例如,将第二图片的增益大于预设阈值的像素点的坐标缩小至原来的一半即预设比例为50%,当然预设比例可以根据用户需求以及输入的图片进行设定,经过上述的处理,最后生成的目标图片与输入的图片相比其数据大小及占用的存储空间较少。The reduction sub-unit 132 reduces the coordinates of the pixel points whose gain is greater than the preset threshold in the second picture after the preset ratio is reduced according to a preset ratio to generate a target picture, for example, the gain of the second picture is greater than a preset threshold. The coordinates of the pixel are reduced to half of the original, that is, the preset ratio is 50%. Of course, the preset ratio can be set according to the user's needs and the input image. After the above processing, the final generated target image is compared with the input image. The data size and occupied storage space are small.
本实施例中,通过删除子单元131获取的像素点的增益按照预设比例删除获取到的像素点,接着缩小子单元132缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片,实现了根据图片像素点的增益生成目标图片,与用户输入的图片相比,目标图片占用的存储空间更小,即保证了目标图片与用户输入的图片的一致同时降低了目标图片占用的存储空间,进而降低了输入法的字符占用的存储空间。In this embodiment, the acquired pixel point is deleted according to a preset ratio by the gain of the pixel point acquired by the deletion sub-unit 131, and then the reduction sub-unit 132 reduces the image including the pixel point acquired after being deleted according to the preset ratio to generate a target. The image is generated according to the gain of the pixel of the image, and the storage space occupied by the target image is smaller than that of the image input by the user, that is, the target image is consistent with the image input by the user, and the target image is occupied. The storage space, which in turn reduces the storage space occupied by the characters of the input method.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (20)

  1. 一种数据同步共享方法,其特征在于,所述数据同步共享方法包括以下步骤: A data synchronization sharing method, characterized in that the data synchronization sharing method comprises the following steps:
    在接收到第一终端发送的图片或自定义字符时,第二终端获取接收的图片或自定义字符的像素点的增益;When receiving the picture or the custom character sent by the first terminal, the second terminal acquires the gain of the pixel of the received picture or the custom character;
    基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点;Obtaining, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
    对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片;Performing compression processing on the acquired pixel points, and generating a target image based on the compressed pixel points;
    生成所述目标图片对应的标识符;Generating an identifier corresponding to the target picture;
    关联存储所述目标图片及对应的标识符,并发送所述标识符至所述第一终端;Associating and storing the target picture and the corresponding identifier, and sending the identifier to the first terminal;
    在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,确定是否有所述第二终端存储的标识符与接收到的标识符匹配; After receiving the identifier sent by the first terminal, and the current input method interface is activated, determining whether the identifier stored by the second terminal matches the received identifier;
    在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的所述目标图片;Acquiring the target picture corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier;
    隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的所述目标图片。The currently displayed input method interface is hidden, and the obtained target image is displayed after being successfully hidden.
  2. 如权利要求1所述的数据同步共享方法,其特征在于,对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片的步骤包括:The data synchronization sharing method according to claim 1, wherein the step of performing compression processing on the acquired pixel points and generating a target image based on the compressed pixel points comprises:
    基于获取的像素点的增益按照预设比例删除获取到的像素点;Deleting the acquired pixel points according to a preset ratio based on the gain of the acquired pixel points;
    缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。The image containing the pixel points acquired after being deleted according to the preset ratio is reduced to generate a target image.
  3. 如权利要求1所述的数据同步共享方法,其特征在于,所述显示获取到的所述目标图片的步骤包括:在处于激活状态的输入框对应的显示界面显示获取到的所述目标图片。 The data synchronization sharing method according to claim 1, wherein the displaying the acquired target image comprises displaying the acquired target image on a display interface corresponding to the input box in an activated state.
  4. 如权利要求3所述的数据同步共享方法,其特征在于,对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片的步骤包括:The data synchronization sharing method according to claim 3, wherein the step of performing compression processing on the acquired pixel points and generating a target image based on the compressed pixel points comprises:
    基于获取的像素点的增益按照预设比例删除获取到的像素点;Deleting the acquired pixel points according to a preset ratio based on the gain of the acquired pixel points;
    缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。The image containing the pixel points acquired after being deleted according to the preset ratio is reduced to generate a target image.
  5. 一种数据同步共享方法,其特征在于,所述数据同步共享方法包括以下步骤:A data synchronization sharing method, characterized in that the data synchronization sharing method comprises the following steps:
    在接收到第一终端发送的图片或自定义字符时,第二终端生成接收到的图片或自定义字符对应的标识符;Upon receiving the picture or the custom character sent by the first terminal, the second terminal generates an identifier corresponding to the received picture or the custom character;
    关联存储所述接收到的图片或自定义字符及对应的标识符,并发送所述标识符至所述第一终端;Correlatingly storing the received picture or custom character and a corresponding identifier, and transmitting the identifier to the first terminal;
    在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,获取接收到的标识符对应的图片或自定义字符;After receiving the identifier sent by the first terminal, and the current input method interface is activated, acquiring a picture or a custom character corresponding to the received identifier;
    隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的图片或自定义字符。Hides the currently displayed input method interface and displays the captured image or custom characters after successful hiding.
  6. 如权利要求5所述的数据同步共享方法,其特征在于,所述获取所述标识符对应的图片或自定义字符的步骤包括:The data synchronization sharing method according to claim 5, wherein the step of acquiring a picture or a custom character corresponding to the identifier comprises:
    确定是否有所述第二终端存储的标识符与接收到的标识符匹配; Determining whether there is an identifier stored by the second terminal that matches the received identifier;
    在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的图片或自定义字符。And obtaining a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
  7. 如权利要求5所述的数据同步共享方法,其特征在于,在接收到第一终端发送的图片或自定义字符时,生成接收到的图片或自定义字符对应的标识符的步骤包括:The data synchronization sharing method according to claim 5, wherein the step of generating an identifier corresponding to the received picture or the custom character when receiving the picture or the custom character sent by the first terminal comprises:
    在接收到第一终端发送的图片或自定义字符时,获取接收的图片或自定义字符的像素点的增益;Obtaining a gain of a pixel of a received picture or a custom character when receiving a picture or a custom character sent by the first terminal;
    基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点;Obtaining, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
    对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片;Performing compression processing on the acquired pixel points, and generating a target image based on the compressed pixel points;
    生成所述目标图片对应的标识符;Generating an identifier corresponding to the target picture;
    所述存储所述接收到的图片及对应的标识符的步骤包括:存储所述目标图片及对应的标识符。The storing the received picture and the corresponding identifier comprises: storing the target picture and a corresponding identifier.
  8. 如权利要求7所述的数据同步共享方法,其特征在于,对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片的步骤包括:The data synchronization sharing method according to claim 7, wherein the step of performing compression processing on the acquired pixel points and generating a target image based on the compressed pixel points comprises:
    基于获取的像素点的增益按照预设比例删除获取到的像素点;Deleting the acquired pixel points according to a preset ratio based on the gain of the acquired pixel points;
    缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。The image containing the pixel points acquired after being deleted according to the preset ratio is reduced to generate a target image.
  9. 如权利要求5所述的数据同步共享方法,其特征在于,所述显示获取到的图片或自定义字符的步骤包括:在处于激活状态的输入框对应的显示界面显示获取到的图片或自定义字符。The data synchronization sharing method according to claim 5, wherein the step of displaying the acquired picture or the custom character comprises: displaying the acquired picture or customizing on the display interface corresponding to the input box in the activated state; character.
  10. 如权利要求9所述的数据同步共享方法,其特征在于,所述获取所述标识符对应的图片或自定义字符的步骤包括:The data synchronization sharing method according to claim 9, wherein the step of acquiring a picture or a custom character corresponding to the identifier comprises:
    确定是否有所述第二终端存储的标识符与接收到的标识符匹配; Determining whether there is an identifier stored by the second terminal that matches the received identifier;
    在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的图片或自定义字符。And obtaining a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
  11. 如权利要求9所述的数据同步共享方法,其特征在于,在接收到第一终端发送的图片或自定义字符时,生成接收到的图片或自定义字符对应的标识符的步骤包括:The data synchronization sharing method according to claim 9, wherein the step of generating an identifier corresponding to the received picture or the custom character when receiving the picture or the custom character sent by the first terminal comprises:
    在接收到第一终端发送的图片或自定义字符时,获取接收的图片或自定义字符的像素点的增益;Obtaining a gain of a pixel of a received picture or a custom character when receiving a picture or a custom character sent by the first terminal;
    基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点;Obtaining, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
    对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片;Performing compression processing on the acquired pixel points, and generating a target image based on the compressed pixel points;
    生成所述目标图片对应的标识符;Generating an identifier corresponding to the target picture;
    所述存储所述接收到的图片及对应的标识符的步骤包括:存储所述目标图片及对应的标识符。The storing the received picture and the corresponding identifier comprises: storing the target picture and a corresponding identifier.
  12. 如权利要求11所述的数据同步共享方法,其特征在于,对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片的步骤包括:The data synchronization sharing method according to claim 11, wherein the step of performing compression processing on the acquired pixel points and generating a target image based on the compressed pixel points comprises:
    基于获取的像素点的增益按照预设比例删除获取到的像素点;Deleting the acquired pixel points according to a preset ratio based on the gain of the acquired pixel points;
    缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。The image containing the pixel points acquired after being deleted according to the preset ratio is reduced to generate a target image.
  13. 一种数据同步共享装置,其特征在于,所述数据同步共享装置包括:A data synchronization sharing device, wherein the data synchronization sharing device comprises:
    生成模块,用于在接收到第一终端发送的图片或自定义字符时,生成接收到的图片或自定义字符对应的标识符;a generating module, configured to generate an identifier corresponding to the received picture or the custom character when receiving the picture or the custom character sent by the first terminal;
    存储模块,用于关联存储所述接收到的图片或自定义字符及对应的标识符,并发送所述标识符至所述第一终端;a storage module, configured to associate the stored picture or a custom character and a corresponding identifier, and send the identifier to the first terminal;
    获取模块,用于在接收到所述第一终端发送的标识符,且当前输入法界面被激活时,获取所述标识符对应的图片或自定义字符;An acquiring module, configured to: when receiving the identifier sent by the first terminal, and acquiring the current input method interface, acquiring a picture or a custom character corresponding to the identifier;
    隐藏模块,用于隐藏当前显示的输入法界面,并在成功隐藏后显示获取到的图片或自定义字符。A hidden module that hides the currently displayed input method interface and displays the acquired image or custom character after successful hiding.
  14. 如权利要求13所述的数据同步共享装置,其特征在于,所述获取模块包括:The data synchronization sharing device of claim 13, wherein the obtaining module comprises:
    确定单元,用于确定是否有第二终端存储的标识符与接收到的标识符匹配; a determining unit, configured to determine whether an identifier stored by the second terminal matches the received identifier;
    获取单元,用于在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的图片或自定义字符。And an obtaining unit, configured to acquire a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
  15. 如权利要求13所述的数据同步共享装置,其特征在于,所述生成模块包括:The data synchronization sharing device of claim 13, wherein the generating module comprises:
    第一获取单元,用于在接收到第一终端发送的图片或自定义字符时,获取接收的图片或自定义字符的像素点的增益;a first acquiring unit, configured to acquire a gain of a pixel of the received picture or the customized character when receiving the picture or the custom character sent by the first terminal;
    第二获取单元,用于基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点;a second acquiring unit, configured to acquire, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
    处理单元,用于对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片;a processing unit, configured to perform compression processing on the acquired pixel points, and generate a target image based on the compressed pixel points;
    生成单元,用于生成所述目标图片对应的标识符;a generating unit, configured to generate an identifier corresponding to the target image;
    所述存储模块还用于存储所述目标图片及对应的标识符。The storage module is further configured to store the target image and a corresponding identifier.
  16. 如权利要求15所述的数据同步共享装置,其特征在于,所述处理单元包括:The data synchronization sharing device according to claim 15, wherein the processing unit comprises:
    删除子单元,用于基于获取的像素点的增益按照预设比例删除获取到的像素点;Deleting a sub-unit, configured to delete the acquired pixel point according to a preset ratio according to a gain of the acquired pixel point;
    缩小子单元,用于缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。The sub-unit is reduced to reduce the image containing the pixel obtained after being deleted according to the preset ratio to generate the target image.
  17. 如权利要求13所述的数据同步共享装置,其特征在于,所述隐藏模块还用于在处于激活状态的输入框对应的显示界面显示获取到的图片或自定义字符。The data synchronization sharing device according to claim 13, wherein the hidden module is further configured to display the acquired picture or a custom character in a display interface corresponding to the input box in an activated state.
  18. 如权利要求17所述的数据同步共享装置,其特征在于,所述获取模块包括:The data synchronization sharing device of claim 17, wherein the obtaining module comprises:
    确定单元,用于确定是否有第二终端存储的标识符与接收到的标识符匹配; a determining unit, configured to determine whether an identifier stored by the second terminal matches the received identifier;
    获取单元,用于在有所述第二终端存储的标识符与接收到的标识符匹配时,获取接收到的标识符对应的图片或自定义字符。And an obtaining unit, configured to acquire a picture or a custom character corresponding to the received identifier when the identifier stored by the second terminal matches the received identifier.
  19. 如权利要求17所述的数据同步共享装置,其特征在于,所述生成模块包括:The data synchronization sharing device of claim 17, wherein the generating module comprises:
    第一获取单元,用于在接收到第一终端发送的图片或自定义字符时,获取接收的图片或自定义字符的像素点的增益;a first acquiring unit, configured to acquire a gain of a pixel of the received picture or the customized character when receiving the picture or the custom character sent by the first terminal;
    第二获取单元,用于基于获取的像素点的增益获取所述图片或自定义字符中增益大于预设阈值的像素点;a second acquiring unit, configured to acquire, according to the obtained gain of the pixel point, a pixel point in the picture or the custom character whose gain is greater than a preset threshold;
    处理单元,用于对获取到的像素点进行压缩处理,并基于压缩处理后的像素点生成目标图片;a processing unit, configured to perform compression processing on the acquired pixel points, and generate a target image based on the compressed pixel points;
    生成单元,用于生成所述目标图片对应的标识符;a generating unit, configured to generate an identifier corresponding to the target image;
    所述存储模块还用于存储所述目标图片及对应的标识符。The storage module is further configured to store the target image and a corresponding identifier.
  20. 如权利要求19所述的数据同步共享装置,其特征在于,所述处理单元包括:The data synchronization sharing device of claim 19, wherein the processing unit comprises:
    删除子单元,用于基于获取的像素点的增益按照预设比例删除获取到的像素点;Deleting a sub-unit, configured to delete the acquired pixel point according to a preset ratio according to a gain of the acquired pixel point;
    缩小子单元,用于缩小包含按照预设比例删除后获取到的像素点的图片以生成目标图片。The sub-unit is reduced to reduce the image containing the pixel obtained after being deleted according to the preset ratio to generate the target image.
PCT/CN2016/083829 2015-11-27 2016-05-29 Data synchronization and sharing method and apparatus WO2017088416A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510893777.XA CN105530528B (en) 2015-11-27 2015-11-27 Data synchronize sharing method and device
CN201510893777.X 2015-11-27

Publications (1)

Publication Number Publication Date
WO2017088416A1 true WO2017088416A1 (en) 2017-06-01

Family

ID=55772465

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083829 WO2017088416A1 (en) 2015-11-27 2016-05-29 Data synchronization and sharing method and apparatus

Country Status (2)

Country Link
CN (1) CN105530528B (en)
WO (1) WO2017088416A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530528B (en) * 2015-11-27 2018-10-02 深圳Tcl数字技术有限公司 Data synchronize sharing method and device
CN111158503A (en) * 2019-12-31 2020-05-15 深圳Tcl新技术有限公司 Method, device, equipment and storage medium compatible with multi-equipment character input

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727196A (en) * 2008-10-20 2010-06-09 普天信息技术研究院有限公司 Character input method with self-learning function
US20120127081A1 (en) * 2010-11-24 2012-05-24 Guoxiang Lin Methods of remote text input and editing on TV screen using locally-text-editable remote control
CN102760351A (en) * 2012-06-20 2012-10-31 上海琥智数码科技有限公司 Method for implementing remote letter symbol input between intelligent terminals through wireless network
CN102937880A (en) * 2012-10-22 2013-02-20 广东欧珀移动通信有限公司 Input method and input method system using custom phrases as well as mobile terminal
CN105530528A (en) * 2015-11-27 2016-04-27 深圳Tcl数字技术有限公司 Data synchronizing and sharing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833936A (en) * 2009-12-22 2010-09-15 康佳集团股份有限公司 Mobile terminal and method and device for displaying interfaces thereof
CN102314441A (en) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 Method for user to input individualized primitive data and equipment and system
CN103517130A (en) * 2012-07-18 2014-01-15 Tcl集团股份有限公司 Method and system for obtaining television program expanded information of smart television

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727196A (en) * 2008-10-20 2010-06-09 普天信息技术研究院有限公司 Character input method with self-learning function
US20120127081A1 (en) * 2010-11-24 2012-05-24 Guoxiang Lin Methods of remote text input and editing on TV screen using locally-text-editable remote control
CN102760351A (en) * 2012-06-20 2012-10-31 上海琥智数码科技有限公司 Method for implementing remote letter symbol input between intelligent terminals through wireless network
CN102937880A (en) * 2012-10-22 2013-02-20 广东欧珀移动通信有限公司 Input method and input method system using custom phrases as well as mobile terminal
CN105530528A (en) * 2015-11-27 2016-04-27 深圳Tcl数字技术有限公司 Data synchronizing and sharing method and device

Also Published As

Publication number Publication date
CN105530528B (en) 2018-10-02
CN105530528A (en) 2016-04-27

Similar Documents

Publication Publication Date Title
WO2018034462A1 (en) Image display apparatus and method of operating the same
WO2018223607A1 (en) Television terminal, method for converting hdr image into sdr image, and computer readable storage medium
WO2017143692A1 (en) Smart television and voice control method therefor
WO2018166224A1 (en) Target tracking display method and apparatus for panoramic video, and storage medium
WO2016029594A1 (en) Method and system for terminal to connect with display device
WO2019051902A1 (en) Terminal control method, air conditioner and computer-readable storage medium
WO2019041851A1 (en) Home appliance after-sales consulting method, electronic device and computer-readable storage medium
WO2018223602A1 (en) Display terminal, frame contrast enhancement method, and computer readable storage medium
WO2017121066A1 (en) Application program display method and system
WO2018023926A1 (en) Interaction method and system for television and mobile terminal
WO2015139594A1 (en) Security verification method, apparatus, and system
WO2017088427A1 (en) Audio output control method and device
WO2018233221A1 (en) Multi-window sound output method, television, and computer-readable storage medium
WO2017005062A1 (en) Image frame playing method and device
WO2018023925A1 (en) Photography method and system
WO2019125036A1 (en) Image processing method and display apparatus therefor
WO2019091128A1 (en) Signal preview method for new access source and television set
WO2017080195A1 (en) Audio recognition method and device
WO2018018680A1 (en) Display method and apparatus for application prompt information
WO2019148818A1 (en) Image processing method, device and system, and computer readable storage medium
WO2017088416A1 (en) Data synchronization and sharing method and apparatus
WO2017084297A1 (en) Method and system for playing back multimedia files
WO2019210574A1 (en) Message processing method, apparatus, device, and readable storage medium
WO2015135497A1 (en) User classification method, apparatus, and server
WO2018090505A1 (en) Unmanned aerial vehicle and method for controlling same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16867644

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11.09.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16867644

Country of ref document: EP

Kind code of ref document: A1