WO2022022381A1 - 生成涂鸦图案的方法、装置、电子设备及存储介质 - Google Patents

生成涂鸦图案的方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2022022381A1
WO2022022381A1 PCT/CN2021/107892 CN2021107892W WO2022022381A1 WO 2022022381 A1 WO2022022381 A1 WO 2022022381A1 CN 2021107892 W CN2021107892 W CN 2021107892W WO 2022022381 A1 WO2022022381 A1 WO 2022022381A1
Authority
WO
WIPO (PCT)
Prior art keywords
graffiti
letter
image
electronic device
letter image
Prior art date
Application number
PCT/CN2021/107892
Other languages
English (en)
French (fr)
Inventor
张韵叠
刘安琪
刘爱兵
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US18/006,508 priority Critical patent/US20230298235A1/en
Priority to EP21849215.5A priority patent/EP4180949A4/en
Publication of WO2022022381A1 publication Critical patent/WO2022022381A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/24Indexing scheme for image data processing or generation, in general involving graphical user interfaces [GUIs]

Definitions

  • the present application belongs to the technical field of terminal software, and in particular, relates to a method, apparatus, electronic device and storage medium for generating graffiti patterns.
  • the application of the screen display function of the electronic device includes, but is not limited to, the scenario of displaying a pattern in a screen-off state or a screen-locking state.
  • electronic devices can display various types of patterns, including graffiti-like patterns, when the screen is off, locked, or when taking pictures; usually, electronic devices set fixed patterns stored locally or provided by market applications to corresponding applications. To display the selected pattern, if a large number of pictures are downloaded, it will take up a lot of memory, so that the types of patterns displayed are limited and cannot meet the personalized needs of users.
  • the present application discloses a method, device, electronic device and storage medium for generating graffiti patterns, which can generate various graffiti patterns according to letter images, save the storage space of electronic devices, and improve the performance of personalized applications of electronic devices.
  • an embodiment of the present application provides a method for generating a graffiti pattern, the method includes displaying a setting interface of a graffiti pattern of the electronic device; acquiring text information input by a user on the setting interface, and determining according to the text information Attribute information of the graffiti letter image associated with the text information; execute a combination command corresponding to the attribute information, and combine the graffiti letter images to obtain the graffiti pattern.
  • the electronic device can receive text information input by the user.
  • the electronic device performs combination processing on the graffiti letter images according to the attribute information of the graffiti letter images associated with the text information. Therefore, various graffiti patterns can be generated according to different graffiti letter images, without the need for electronic devices to download and store a large number of pictures in advance and occupy storage space; save the storage space of electronic devices, improve and enrich the performance of personalized applications of electronic devices; User's personalized needs for electronic equipment; it has strong ease of use and practicability.
  • the attribute information includes the ratio of the overlapping area between the first graffiti letter image and the second graffiti letter image; if the text information is associated with multiple graffiti letter images, the Execute a combination command corresponding to the attribute information, and perform combination processing on the graffiti letter images, including:
  • the first graffiti letter image and the second graffiti letter image are the non-transparent pixels of the first graffiti letter image and the second graffiti letter image at the same time;
  • the ratio of the second total number to the first total number is used as the proportion of the overlapping area, and if the proportion of the overlapping area satisfies a preset threshold, the first graffiti letter is divided according to the proportion of the overlapping area.
  • the image and the second graffiti letter image are combined and processed; wherein the first graffiti letter image and the second graffiti letter image are two adjacent images in the plurality of graffiti letter images.
  • the overlapping relationship of the overlapping regions is that the first layer is located on the left side of the second layer.
  • the upper layer wherein the first layer is the layer where the first graffiti letter image is located, and the second layer is the layer where the second graffiti letter image is located.
  • the electronic device can also read the non-uniformity of each graffiti letter image through the above method.
  • transparent pixel information in the process of combining graffiti letter images, the overlapping area and overlapping relationship of two adjacent graffiti letters can be determined, and graffiti patterns of various graffiti letter combinations can be generated to meet the individual needs of users.
  • the attribute information includes tilt angle information of each of the graffiti letter images
  • the combination command includes a combination angle command
  • the association relationship between the inclination angle information of the graffiti letter image and the position information of the graffiti letter image in the plurality of graffiti letter images execute the combined angle command corresponding to the association relationship.
  • the angle of the graffiti letter image is adjusted according to the inclination angle information corresponding to the position information.
  • the inclination angle of the graffiti letter images is adjusted according to the positions of the graffiti letter images, and the same letters are Different inclination angles are set at different positions, so as to ensure that the final generated graffiti pattern has a more cohesive sense.
  • the attribute information includes left edge information and right edge information of each of the graffiti letter images
  • the combination command includes a combination spacing command
  • the combined spacing command corresponding to the combined pair is executed, and the first graffiti The letter image and the second graffiti letter image are combined and processed at a preset interval; wherein, the first graffiti letter image and the second graffiti letter image are two adjacent images in the multiple graffiti letter images , and the first graffiti letter image is located on the left side of the second graffiti letter image, and the left edge information and the right edge information are respectively used to represent the left edge and right side of the graffiti letter image. Edge shape information.
  • the text information input by the user includes multiple letters or multiple text words or short sentences, there is a sequential arrangement between the multiple letters or multiple texts to form a word with a specific meaning or phrase, so that the electronic device can construct a graffiti pattern of a corresponding word or phrase according to a plurality of graffiti letter images associated with the text information.
  • the method further includes:
  • the left edge information and the right edge information of the graffiti letter image can be the edge shape information that has been set for each graffiti letter image in the font library of graffiti letters; it can also be obtained by the above method. Edge shape information determined by the pixel coordinates of the non-transparent pixels at the left and right edges of the graffiti letter image.
  • a background image of the graffiti letter image is also associated with the text information, the size of the background image is larger than the size of the graffiti letter image, and the background image is the same as that of the graffiti letter image.
  • the graffiti letter images are in one-to-one correspondence; the method further includes:
  • the position of the background image is calculated to obtain a plurality of overall background images corresponding to the graffiti letter images;
  • the layer of the graffiti letter image is arranged on the layer where the overall background image is located to obtain the graffiti pattern with edges.
  • the method further includes: displaying the graffiti pattern on a screen-off interface, a screen-locking interface, or a camera shooting interface of the electronic device.
  • an electronic device can generate a graffiti pattern applied to the lock screen interface through a system setting function or an application program that sets a graffiti pattern; it can also generate a graffiti pattern applied to the unlock interface; it can also be used through the system setting function or camera settings. function to generate graffiti patterns applied to the camera shooting interface, such as the watermark pattern of the camera shooting interface.
  • an embodiment of the present application provides a device for generating a graffiti pattern, the device comprising:
  • a display unit used to display the setting interface of the graffiti pattern of the electronic device
  • an acquisition unit configured to acquire the text information input by the user in the setting interface, and determine the attribute information of the graffiti letter image associated with the text information according to the text information;
  • the processing unit is configured to execute a combination command corresponding to the attribute information, and perform combination processing on the graffiti letter images to obtain the graffiti pattern.
  • embodiments of the present application provide an electronic device, including: one or more processors; one or more memories; multiple application programs; and one or more programs, wherein the one or more programs are Stored in the memory, when the one or more programs are executed by the processor, the electronic device causes the electronic device to execute the method provided by the first aspect and any possible implementation manner of the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program includes instructions, and when the instructions are run on an electronic device, the electronic The device performs the method provided by the first aspect and any possible implementation manner of the first aspect.
  • an embodiment of the present application provides a computer program product including instructions, and when the computer program product runs on an electronic device, the electronic device enables the electronic device to perform the first aspect and any possible implementation manner of the first aspect.
  • the device for generating graffiti patterns described in the second aspect, the electronic device described in the third aspect, the computer-readable storage medium described in the fourth aspect, or the computer containing instructions described in the fifth aspect can be understood.
  • the program product is used to execute the method provided by the first aspect and any possible implementation manner of the first aspect. Therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects in the corresponding method, which will not be repeated here.
  • FIG. 1 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • FIG. 2 is a software structural block diagram of the electronic device 100 according to an embodiment of the present application.
  • 3 and 3A are schematic diagrams of a user interface for generating a graffiti pattern provided by an embodiment of the present application
  • FIGS. 4 and 4A are schematic diagrams of another user interface for generating a graffiti pattern provided by an embodiment of the present application.
  • 5 and 5A are schematic diagrams of another user interface for generating a graffiti pattern provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another user interface for generating graffiti patterns provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another effect of processing graffiti letter images provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of the effect of a graffiti letter image in a font library provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another effect of processing graffiti letter images provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of the effect of a graffiti letter image provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of the effect of a graffiti letter image in a font library provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another effect of processing graffiti letter images provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of another effect of processing graffiti letter images provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of a graffiti pattern displayed on a display interface of an electronic device provided by an embodiment of the present application.
  • 15 is a schematic flowchart of a method for generating a graffiti pattern provided by an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of a device for generating a graffiti pattern provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect.
  • the first graffiti letter image and the second graffiti letter image are only for distinguishing images at different positions, and the first layer and the second layer are only for distinguishing different layers, and their order is not limited.
  • the words “first”, “second” and the like do not limit the quantity and execution order, and the words “first”, “second” and the like are not necessarily different.
  • At least one means one or more, and “plurality” means two or more.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
  • at least one item (a) of a, b, or c may represent: a, b, c, ab, ac, bc, or abc, where a, b, and c may be single or multiple .
  • the screen display functions of electronic devices are becoming more and more abundant.
  • you can set the personalized display of the screen such as setting the screen off pattern, lock screen pattern, unlock pattern or camera watermark pattern.
  • the electronic device is only limited to a few patterns that have been downloaded or matched by the system, and the application of some alphabet graffiti patterns has great limitations unless a large number of supporting patterns are downloaded. , which takes up more memory. Therefore, there is a need for a method for generating graffiti patterns, which can improve the personalized application and functional selection of the screen display of an electronic device, so as to meet more personalized needs of users without affecting the memory of the electronic device.
  • the embodiment of the present application provides a method for generating a graffiti pattern, which can be applied to an electronic device.
  • a user sets a corresponding screen display function through the system function of the electronic device, the text information of the desired pattern can be input, and the electronic device stores the text information
  • the associated graffiti letter images are combined and processed to generate a variety of graffiti patterns, so as to save the storage space of the electronic device and improve the performance of the personalized application of the electronic device.
  • the method for generating graffiti patterns can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computer devices, and netbooks , personal digital assistant (personal digital assistant, PDA) and other electronic devices, the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • AR augmented reality
  • VR virtual reality
  • PDA personal digital assistant
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate for according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.).
  • Raw input events are stored at the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Take the touch operation as a touch click operation, and the control corresponding to the click operation is the system settings icon or the camera application icon control as an example, the system settings or camera application calls the interface of the application framework layer to start the display setting function or the camera application , and then start the display driver or the camera driver by calling the kernel layer, and open the display interface for setting the graffiti pattern.
  • FIG. 1 and FIG. 2 will take the electronic device having the structure shown in FIG. 1 and FIG. 2 as an example, and combine the drawings and application scenarios to specifically describe the method for generating graffiti patterns provided by the embodiments of the present application.
  • the present application receives text information input by the user through the graffiti pattern setting interface of the electronic device.
  • the electronic device performs combination processing on the graffiti character images according to the attribute information of the graffiti letter images corresponding to the text information. Therefore, various graffiti patterns can be generated according to different graffiti letter images; the electronic device does not need to download and store a large number of pictures in advance to occupy storage space; save the storage space of the electronic device, and improve and enrich the performance of the personalized application of the electronic device.
  • a mobile phone is used as an electronic device, and the method for generating a graffiti pattern provided in this application is introduced in detail. This method is mainly used in the following scenarios.
  • FIG. 3 and FIG. 3A a schematic diagram of a user interface (graphical user interface, GUI) for generating a graffiti pattern provided by an embodiment of the present application.
  • GUI graphical user interface
  • the screen display system of the mobile phone displays the currently output interface content
  • the interface content 301 is the main interface of the mobile phone.
  • the interface content 301 displays various third-party applications (applications, APPs), such as file management, email, music, calculator, settings 311, camera, and the like. It should be understood that the interface content may also include other more application programs, which is not limited in this application.
  • the screen display system of the mobile phone also displays the interface of the pull-down menu 302 , and the interface of the pull-down menu 302 may also include icons corresponding to controls such as Bluetooth, mobile data, vibration, rotation, and settings 312 .
  • the mobile phone When the mobile phone detects that the user clicks the setting 311 on the main interface or the icon of setting 312 in the screen pull-down menu 302, the mobile phone can start the system setting application and display the interface as shown in (b) in FIG.
  • An interface can be set for the system, and the system setting interface includes controls such as wireless and network settings, desktop and wallpaper 321 , and camera settings 322 .
  • the mobile phone when the mobile phone detects that the user clicks the icon of the desktop and wallpaper 321 application in the system setting interface 303, it starts the setting application of the desktop and the wallpaper, and displays as shown in Figure 3 (( c)
  • the interface shown, this interface may be called the setting interface 304 of the graffiti pattern.
  • the setting interface 304 may include a screen-off display 331, a text input area, a keyboard area, and the like.
  • the screen-off display 331 corresponds to displaying the screen-off pattern or not displaying the pattern when the screen of the mobile phone is off; it is understandable that the switch control 332 corresponding to the screen-off display 331 is in the open state, and the mobile phone can display the corresponding off-screen display when the screen is off.
  • the mobile phone retrieves the graffiti letter images associated with the text information in the font library, and combines the graffiti letter images according to the sequence of the text information to generate and display the graffiti pattern 351 corresponding to the text information.
  • the mobile phone detects that the user clicks the application 341 icon in the setting interface 304, the generated graffiti pattern 351 is applied to the screen-off display interface.
  • FIG. 3A when the mobile phone is switched to a screen-off state, a graffiti pattern 351 is displayed.
  • the picture (d) in FIG. 3 and the graffiti pattern 351 shown in FIG. 3A are only illustrative, and the specific color of the graffiti pattern is not specifically limited.
  • the mobile phone transmits the pixel driving voltage information of the generated graffiti pattern 351 to the display driver whose screen is off-screen, and the display driver drives the display panel of the mobile phone screen to display the graffiti pattern according to the pixel driving voltage information.
  • graffiti patterns can also be dynamically displayed in different regions of the display panel.
  • the displayed area not only includes the text input area and the keyboard area, but also displays icons of setting controls for setting other screen-off patterns, such as screen-off Icons for controls such as signatures, screen-off time patterns, and more.
  • FIG. 4 and FIG. 4A another schematic diagram of a user interface (graphical user interface, GUI) for generating graffiti patterns provided by an embodiment of the present application.
  • GUI graphical user interface
  • Figure (a) in Figure 4 is the same as Figure (a) in Figure 3, showing that in the unlocking mode of the mobile phone, the screen display system of the mobile phone displays the current output interface content, and the interface content 301 is the main interface of the mobile phone .
  • the interface content 301 displays various third-party applications (applications, APPs), such as file management, email, music, calculator, settings 311, camera, and the like.
  • the screen display system of the mobile phone also displays the interface of the pull-down menu 302 , and the interface of the pull-down menu 302 may also include icons corresponding to controls such as Bluetooth, mobile data, vibration, rotation, and settings 312 .
  • the system setting application can be started, and the display is as shown in FIG. 4 .
  • the interface shown in the figure, the interface can be a system setting interface 303, the system setting interface 303 includes controls such as wireless and network settings, desktop and wallpaper 321, and camera settings 322.
  • the interface shown in the figure, this interface can be called the setting interface 305 of the graffiti pattern.
  • the setting interface 305 may include a lock screen display 333, a text input area, a keyboard area, and the like.
  • the lock screen display 333 is used to display the lock screen pattern in the lock screen state of the mobile phone.
  • the switch control 334 displays the open state
  • the setting interface 305 displays the input text area and keyboard area.
  • the mobile phone receives the text information entered by the user in the input text area, as shown in (d) in Figure 4, after the mobile phone receives the text information "HIGH GREAT MI" input by the user, it detects that the user clicks the button of the completion control in the keyboard area.
  • the mobile phone retrieves the graffiti letter images associated with the text information in the font library, and combines the graffiti letter images according to the sequence of the text information to generate and display the graffiti pattern 352 corresponding to the text information.
  • the mobile phone detects that the user clicks the application 342 icon in the setting interface 305, the generated graffiti pattern 352 is applied to the lock screen display interface.
  • a graffiti pattern 352 is displayed.
  • the picture (d) in FIG. 4 and the graffiti pattern 352 shown in FIG. 4A are only illustrative, and the specific color of the graffiti pattern is not specifically limited.
  • the mobile phone transmits the pixel driving voltage information of the generated graffiti pattern 352 to the display driver displayed on the screen lock screen, and the display driver drives the display panel of the mobile phone screen to display the graffiti pattern according to the pixel driving voltage information.
  • the switch control 334 of the lock screen display 333 application is in an open state, the display not only includes the text input area and the keyboard area, but also displays icons of setting controls for setting other lock screen patterns, such as lock screen signatures, magazine locks screen and other application controls.
  • FIG. 5 and FIG. 5A another schematic diagram of a user interface (graphical user interface, GUI) for generating graffiti patterns provided by an embodiment of the present application.
  • GUI graphical user interface
  • Figure (a) in Figure 5 is the same as Figure (a) in Figure 3 and Figure (a) in Figure 4, showing that under the unlocking mode of the mobile phone, the screen display system of the mobile phone displays the current output interface content
  • the interface content 301 is the main interface of the mobile phone.
  • the interface content 301 displays various third-party applications (applications, APPs), such as file management, email, music, calculator, settings 311, camera, and the like.
  • the screen display system of the mobile phone also displays the interface of the pull-down menu 302 , and the interface of the pull-down menu 302 may also include icons corresponding to controls such as Bluetooth, mobile data, vibration, rotation, and settings 312 .
  • the setting application displays the interface shown in (b) in FIG. 5 , which can be a system setting interface 303 , which includes controls such as wireless and network settings, desktop and wallpaper 321 , and camera settings 322 .
  • the interface can be referred to as the setting interface 306 of the graffiti pattern.
  • the setting interface 306 may include a camera watermark 335, a text input area, a keyboard area, and the like.
  • the camera watermark 333 is used to display the corresponding watermark pattern on the shooting interface when the mobile phone starts the camera to shoot.
  • the switch control 336 displays an open state, and the setting interface 306 displays the input text area and keyboard area.
  • the mobile phone receives the text information entered by the user in the input text area.
  • the mobile phone receives the text information "STARS" input by the user, it detects that the user clicks the icon of the completion control in the keyboard area.
  • the mobile phone retrieves the graffiti letter images associated with the text information in the font library, and combines the graffiti letter images according to the sequence of the text information to generate and display the graffiti pattern 353 corresponding to the text information. After the mobile phone detects that the user clicks the application 343 icon in the setting interface 306, the generated graffiti pattern 353 is applied to the application scene captured by the camera.
  • the graffiti pattern 353 may be displayed on the shooting interface.
  • the picture (d) in FIG. 5 and the graffiti pattern 353 shown in FIG. 5A are only illustrative, and the specific color of the graffiti pattern is not specifically limited.
  • the displayed position of the camera watermark can also be set as required, for example, drag the camera watermark 353 directly on the camera shooting interface to any position on the shooting interface.
  • the mobile phone transmits the pixel driving voltage information of the generated graffiti pattern 353 to the display driver of the camera shooting interface, and the display driver drives the display panel of the mobile phone screen to display the graffiti pattern 353 according to the pixel driving voltage information.
  • the switch control 336 of the camera watermark 335 application is in an open state, not only an area for inputting text and a keyboard area, but also icons of setting controls for setting other watermark patterns can be displayed.
  • FIG. 6 another schematic diagram of a user interface (graphical user interface, GUI) for generating graffiti patterns provided by an embodiment of the present application.
  • GUI graphical user interface
  • the method for generating a graffiti pattern provided by the embodiment of the present application may also be applied to an application (application, APP) for setting a graffiti pattern type.
  • the app is downloaded from the mobile terminal, and the generated graffiti patterns are applied to different system application scenarios, such as screen-off display application scenarios, lock-screen display application scenarios, or camera watermark display application scenarios.
  • FIG. 6 shows that in the unlocking mode of the mobile phone, the screen display system of the mobile phone displays the currently output interface content, and the interface content 601 is the main interface of the mobile phone.
  • the interface content 601 displays various third-party applications (applications, APPs), such as clock, calendar, gallery, memo, file management, email, music, calculator, settings, camera, and application icons such as graffiti patterns 611 .
  • APPs third-party applications
  • the interface content may also include other more application programs, which is not limited in this application.
  • the mobile phone When the mobile phone detects that the user clicks the icon of the graffiti pattern 611 on the main interface, it can start the graffiti pattern application and display the interface as shown in (b) in FIG. 6 , which can be called a graffiti pattern setting interface 602.
  • the setting interface 602 may include function items 621 .
  • icons of controls such as text 631, importing pictures, and making animations are displayed on the setting interface.
  • it can display more icons of other controls. Specifically, it can be set according to the function of the application, which is not limited in this application. .
  • a text input area and a keyboard area are displayed.
  • the mobile phone receives the text information entered by the user in the input text area.
  • the mobile phone detects that the user clicks the icon of the completion control in the keyboard area.
  • the mobile phone retrieves the graffiti letter images associated with the text information in the font library, and combines the graffiti letter images according to the sequence of the text information to generate and display the graffiti pattern 353 corresponding to the text information.
  • the control icon for selecting the application scenario is displayed, as shown in (d) in FIG. Display 651, lock screen display 652, camera watermark 653, and icons of application scenarios such as background desktop.
  • the mobile phone detects that the user clicks the icons of the screen-off display 651 , the lock-screen display 652 , and the camera watermark 653 on the interface 604 , the icons of the screen-off display 651 , the lock screen display 652 , and the camera watermark 653 are displayed as being selected. .
  • the generated graffiti pattern 655 is applied to the application scenarios of screen-off display, screen-lock display and camera shooting.
  • the graffiti pattern 655 when the mobile phone is switched to the screen-off state, the graffiti pattern 655 can also be displayed; when the mobile phone is switched to the screen-locked state, the graffiti pattern 655 can also be displayed. ; When the mobile phone starts the camera to shoot, the watermark of the graffiti pattern 655 can also be displayed on the shooting interface.
  • the graffiti patterns 655 shown in (c) and (d) in FIG. 6 are only illustrative, and the specific colors of the graffiti patterns are not specifically limited.
  • the graffiti patterns can also be dynamically displayed in different areas of the display panel.
  • the displayed position of the camera watermark can also be set as required, for example, directly drag the camera watermark 655 on the camera shooting interface to any position on the shooting interface.
  • the following specifically describes the process of obtaining a graffiti pattern by combining the graffiti letter images corresponding to the text information input by the user.
  • the mobile phone After receiving the text information, acquires the graffiti letter images associated with the text information. According to the attribute characteristics of the graffiti letter images, the mobile phone combines the graffiti letter images to obtain a graffiti pattern.
  • FIG. 15 it is a schematic flowchart of a method for generating a graffiti pattern provided by an embodiment of the present application.
  • the method can be implemented in electronic devices (eg, mobile phones, smart watches) as shown in FIG. 1 and FIG. 2 .
  • the method includes the following steps:
  • Step S1501 displaying the setting interface of the graffiti pattern of the electronic device.
  • the electronic device may be a mobile phone, a smart watch, or other devices.
  • the setting interface includes a text input area and a keyboard area; wherein the text input area is used to receive text information input by the user.
  • the mobile phone responds to the user's click operation by detecting the user's click operation on the icon, and jumps to the corresponding interface or performs the corresponding image processing operation.
  • Step S1502 Acquire the text information input by the user in the setting interface, and determine the attribute information of the graffiti letter image associated with the text information according to the text information.
  • the text information includes letter or text information.
  • the text information contains multiple letters, the upper and lower case of the multiple letters may not be restricted.
  • Each letter in the text information is associated with the corresponding graffiti letter image in the font library or gallery, and the corresponding required graffiti letter image can be determined according to the content of the text information.
  • the attribute information of the graffiti letter image includes the proportion of the overlapping area.
  • FIG. 7 a schematic diagram of the effect of the graffiti letter image provided by the embodiment of the present application.
  • the number of non-transparent pixels in overlapping area 1 and overlapping area 2 as shown in (a) in FIG. 7 or the number of non-transparent pixels in overlapping area 3 as shown in (b) in FIG. 7 , The ratio of the total number of all non-transparent pixels in the adjacent two graffiti letter images respectively.
  • the attribute information includes the inclination angle information of each graffiti letter image.
  • FIG. 8 a schematic diagram of the effect of the graffiti letter image provided by the embodiment of the present application.
  • the graffiti letter images in the font library correspond to different inclination angles respectively.
  • each letter in the font library may or may not have an inclination angle.
  • the corresponding letter marked “1” is inclined to the left, and the corresponding letter marked “2” has no inclination angle.
  • Slanted, corresponding to the letter marked "3" slanted to the right.
  • the attribute information of the graffiti letter image further includes left edge information and right edge information.
  • FIG. 10 a schematic diagram of the effect of the graffiti letter image provided by the embodiment of the present application.
  • the graffiti letter image can be an image corresponding to the letters in the font library, and the required version of the font library or gallery can be downloaded from the mobile phone according to the application scenario.
  • the right edge information of the graffiti letter image in the font library may include six forms of edge information: R1, R2, R3, R4, R5, and R6, and the left edge information may include L1, L2, L3, The edge information of the six forms of L4, L5, and L6, as shown in Figure 10.
  • the left edge information is classified as shape L1
  • the right edge information is classified as shape R5
  • the shape of the letter "E” in the font library the left edge The information is classified in form L2
  • the right edge information is classified in form R2.
  • the form of the left and right edge information of the graffiti letter image is not limited to the above forms, and can be determined according to the characteristics of the graffiti letter image in the font library.
  • the schematic diagram of the effect of graffiti letter images in the font library provided by the embodiment of the present application; the graffiti form of 26 English letters can be included in the font library, as shown in (a) in Figure 11.
  • the left edge information and right edge information of the shape of each letter correspond to different shapes, as shown in (b) in Figure 11 .
  • L represents the left edge information
  • R represents the right edge information.
  • the left and right shapes corresponding to the graffiti letter image "A” are L1 and R5, respectively
  • the left and right shapes corresponding to the graffiti letter image "B” are L1 and R2, respectively.
  • the left and right morphologies corresponding to the image "C" are L5, R2, respectively, and so on.
  • a font library or a library can be designed as required, and for a preset library or font library, the left edge information and the right edge information of the graffiti letter image can be preset and associated with the graffiti letter image.
  • Information the electronic device can directly call according to the graffiti letter image; in addition, for the preset gallery or font library, the electronic device can also identify the coordinates of the non-transparent pixels on the left edge of the graffiti letter image and the non-transparent pixels on the right edge of the image. The coordinates of the point determine the left edge information and right edge information of the graffiti letter image. That is, the left edge information and the right edge information of the graffiti letter image may be a preset association relationship with the graffiti letter image, or may be information determined in real time according to the graffiti letter image.
  • Step S1503 Execute a combination command corresponding to the attribute information, and perform combination processing on the graffiti letter images to obtain a graffiti pattern.
  • the attribute information includes the ratio of the overlapping area between the first graffiti letter image and the second graffiti letter image; if the text information is associated with multiple graffiti letter images, execute a combination command corresponding to the attribute information to convert the graffiti Alphabet images are combined, including:
  • the first graffiti letter image and the second graffiti letter image are combined according to the overlapping area proportion; wherein the first graffiti letter image and the second graffiti letter image are more two images adjacent to one of the graffiti alphabet images.
  • FIG. 7 in order to ensure the balance of overlapping regions of two adjacent graffiti letter images, a schematic diagram of the effect of processing graffiti letter images is provided in an embodiment of the present application.
  • a) of Fig. 7 when the graffiti letter images "T” and “J” are combined, or as shown in (b) of Fig. 7, when the graffiti letter images "A” and “C” are combined.
  • the overlapping area ratio rate is a fixed value, which can be expressed by the following formula 1:
  • the overlapping area ratio rate is a fixed value (for example, it is set to 10%); overlapOpaqueNum is the number of non-transparent pixels in the overlapping area of any two adjacent graffiti letter images, that is, the second total number, as shown in Figure 7 (a ) the total number of non-transparent pixels in overlapping area one and overlapping area two in the figure, or the total number of non-transparent pixels in overlapping area three in (b) in Figure 7; leftOpaqueNum is the graffiti letter on the left The number of all opaque pixels of the image; rightOpaqueNum is the number of all opaque pixels of the right graffiti letter image; the number of all opaque pixels of the left graffiti letter image is compared with all the opaque pixels of the right graffiti letter image The sum of the number of pixels, that is, leftOpaqueNum+rightOpaqueNum, is taken as the first total number.
  • a step size step can be set as a certain number of pixels, which can be specifically set according to the number of pixels in the image, for example, 100 pixels correspond to a step size. It can also be set to a specific length, for example, a step length of 1 mm, which is not specifically limited here.
  • the proportion of the overlapping area may be a preset fixed value, for example, set to 10%, and may also be set according to the number of non-transparent pixels of two adjacent graffiti letter images, which is not specifically limited here.
  • the overlapping relationship of the overlapping areas is that the first layer is located on the upper layer of the second layer, wherein the first layer is the layer where the first graffiti letter image is located, and the second layer is the layer where the second graffiti letter image is located.
  • the embodiments provided in this application mainly focus on how to combine the graffiti letter images, and the triggering method for retrieving graffiti letter images in a font library or a gallery, not limited to adjusting according to the relationship between the input text information and the graffiti letters. It can also directly display each graffiti letter image on the setting interface. After the mobile phone detects that the user clicks the icon of the corresponding graffiti letter image, the mobile phone directly retrieves the graffiti letter image, and according to the attribute characteristics of the graffiti letter image. Alphabet images are combined.
  • the attribute information may include left edge information and right edge information of the graffiti letter image corresponding to the text information, and may also include inclination angle information of the graffiti letter image.
  • the combined command includes a combined distance command and a combined angle command; wherein, the combined distance command is used to determine the distance between adjacent graffiti letter images, and the combined angle command determines the distance between each graffiti letter image forming the graffiti pattern in the graffiti pattern. The angle of inclination at the location.
  • the attribute information is the inclination angle information of each graffiti letter image
  • the combination command is a combined angle command; if the text information is associated with multiple graffiti letter images, the combination command corresponding to the attribute information is executed, and the combination command is executed.
  • Graffiti alphabet images are combined, including:
  • the graffiti letter images in the font library correspond to different inclination angles respectively.
  • the position of the image adjusts the angle of the graffiti letter image. As shown in Table 1, the correspondence between the position information and the angle information.
  • the angles in Table 1 are the existing angles of the graffiti letter images in the font library or gallery, including left inclination, no inclination and right inclination, that is, the angle information of the graffiti letter images themselves.
  • the positions in Table 1 are the positions in the text information of the characters corresponding to a certain graffiti letter image, including the first left (“S” in FIG. 9 ), the second left (“T” in FIG. 9 ), the second right ( “R” in Figure 9) and the right one ("S” in Figure 9).
  • the angle is not adjusted.
  • the leftmost "S” in Figure 9 is inclined to the left and is in the first left position, and the angle is not adjusted.
  • the attribute information is the left edge information and the right edge information of the graffiti letter image corresponding to the text information
  • the combined command is a combined spacing command
  • the combined spacing command corresponding to the combined pair is executed, and the first graffiti letter image and the second graffiti letter image are pre- Set the spacing for combined processing.
  • the first graffiti letter image and the second graffiti letter image are two adjacent images in the multiple graffiti letter images, and the first graffiti letter image is located on the left side of the second graffiti letter image, the left edge information and the right side
  • the edge information is used to represent the shape information of the left edge and the right edge of the graffiti letter image, respectively.
  • the left edge information or the right edge information of each pair of graffiti letter images can be combined, that is, two adjacent graffiti letter images.
  • the right edge information of the left graffiti letter image is combined with the left edge information of the right graffiti letter image to form a combined pair; according to the edge morphological characteristics of the combined pair, a combined spacing command corresponding to the combined pair is set.
  • the mobile phone detects that the combined pair of any two adjacent graffiti letter images satisfies the shape combination in the combined pair, the mobile phone executes the combined spacing command corresponding to the combined pair, and moves the two adjacent graffiti letter images according to the corresponding preset spacing. combination.
  • Table 2 The corresponding relationship between the combination and the combination spacing is shown in Table 2.
  • the combination corresponds to the combination of the right edge information of the left graffiti letter image and the left edge information of the right graffiti letter image.
  • Table 2 merely exemplifies the combination spacing corresponding to the combination pair of the font library shown in (a) of FIG. 10 , and is not intended to limit the present application.
  • other combination pairs and combination spacings associated with the graffiti letter images in the font library or the library can also be preset.
  • the electronic device can call the corresponding combination spacing command according to the combination pair of graffiti letter images and the combination pair, execute the combination spacing command, and perform combination processing on the graffiti letters.
  • FIG. 12 a schematic diagram of the effect of processing graffiti letter images provided by an embodiment of the present application.
  • the mobile phone recognizes the edge information of the graffiti letter image corresponding to "AC” respectively, namely the right edge information of "A” and the left edge information of "C”, and can determine the edge information of "A”.
  • the right shape is R5, and the left shape of "C” is L5, then according to Table 2, the combination pair is R5L5, and the combination distance corresponding to R5L5 is 16, then execute the combination command, and "A” and "C” correspond respectively
  • the graffiti letter images that is, the font images in the font library
  • the combined effect shown in Figure 12 is obtained.
  • the spacing value can be a quantized value, and a certain number of pixel values are used as the quantized value of a unit.
  • the unit of the spacing value in Table 2 corresponds to the quantized value. For example, the distance of 50 pixels is used as a unit. Quantization value, then when the spacing value is 16, it corresponds to the distance of 16 ⁇ 50 pixels.
  • the unit of the spacing value in Table 2 may also be a unit of length, such as millimeters.
  • the method for generating a graffiti pattern further includes:
  • the coordinates of the non-transparent pixel points on the left edge and the right edge in the graffiti letter image may also be used. , determine the left edge information and right edge information of the graffiti letter image.
  • the electronic device can traverse the coordinates of the non-transparent pixel points on the left or right edge of the graffiti letter image, and by traversing the non-transparent pixels on the left or right edge of the graffiti letter image, For transparent pixels, obtain the coordinate value of the pixel at the key point position in the non-transparent pixel point, or obtain the coordinate value of all pixels on the left or right edge, according to the coordinate value of the pixel at the key point position or the left edge. Or the coordinate values of all the pixels on the right edge to determine the shape information of the left edge or the shape information of the right edge of the graffiti letter image.
  • Graffiti patterns can be patterns composed of multiple graffiti alphabet images, or other characters.
  • attribute information of the graffiti letter images and the combination commands corresponding to the attribute information provided in the embodiments of the present application are only examples, and not all combination processing steps are steps that must be executed, or not the combination commands corresponding to each attribute information. Both are required.
  • one combination command or at least two combination commands can be used according to the needs of the graffiti letter images of the font library or gallery; the combination of multiple combination commands is not used here. specific restrictions.
  • the overlapping combination command is executed according to the proportion of the overlapping area; or after obtaining the left edge information and right edge information of the graffiti letter image, the combination spacing associated with the combination pair is not called. command, and also can execute overlapping combination commands according to the overlapping area ratio attribute.
  • associated with the text information also includes a background image of the graffiti letter image, the size of the background image is larger than the size of the graffiti letter image, and the background image corresponds to the graffiti letter image one-to-one; the method for generating a graffiti pattern further includes: :
  • the center position of the graffiti letter image the size of the graffiti letter image and the size of the background image, the position of the background image is calculated, and the overall background image corresponding to the multiple graffiti letter images is obtained; the layers of the multiple graffiti letter images are set on the overall background. On top of the layer the image is on, you get a graffiti pattern with edges.
  • the background image may be a set image stored together with the font library and corresponding to the graffiti letter images in the font library one-to-one, such as the background image of a single graffiti letter image shown in FIG. 13 .
  • the center of the background image is coincident with the center of the corresponding graffiti letter image, and the position of the background image is determined according to the size of the graffiti letter image and the size of the background image.
  • x is the horizontal axis and y is the vertical axis, and the unit can be pixels or millimeters respectively.
  • the position coordinates of the graffiti letter image "H" are (x1, y1), which are determined according to the position of the graffiti letter image in the display area.
  • the center position of the graffiti letter image is O1(x0,y0)
  • the center O2 of the background image is coincident with the center of the graffiti letter image, according to the size of the graffiti letter image (including height h1, width w1), the size of the background image (including height h2, width w2), calculate the position coordinates (x2, y2) of the background image.
  • the coordinates of O1 are (x1+w1/2, y1+h1/2), then the position coordinates (x2, y2) of the background image are (x1+(w1-w2)/2, y1+(h1-h2)/2 ).
  • the position of the background image of each graffiti letter image can be determined.
  • the graffiti pattern is displayed on the screen-off interface, the lock-screen interface or the camera shooting interface of the electronic device.
  • Displaying the graffiti pattern on the electronic device also includes displaying the graffiti pattern in the lock screen state or unlock state of the smart watch, that is, the graffiti pattern is used as the lock screen pattern or unlock pattern of the smart watch.
  • FIG. 14 a schematic diagram of displaying graffiti patterns on a display interface of an electronic device provided by an embodiment of the present application, through the above-mentioned embodiment, an unlocking graffiti pattern on the dial of a smart watch is generated.
  • the electronic device can receive text information input by the user.
  • the electronic device performs combination processing on the graffiti letter images according to the attribute information of the graffiti letter images associated with the text information. Therefore, various graffiti patterns can be generated according to different graffiti letter images, without the need for electronic devices to download and store a large number of pictures in advance and occupy storage space; save the storage space of electronic devices, improve and enrich the performance of personalized applications of electronic devices; Users' personalized needs for electronic devices.
  • the above steps performed by the electronic device may also be performed by a device (eg, a chip) applied in the electronic device.
  • the steps performed by the above electronic device may be performed by the processor shown in FIG. 2 .
  • the electronic device includes corresponding hardware and/or software modules for executing each function.
  • the present application can be implemented in hardware or in the form of a combination of hardware and computer software in conjunction with the algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functionality for each particular application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
  • the electronic device may be divided into functional modules according to the above method examples, for example, each functional module may be divided into each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that, the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • FIG. 16 shows a structural block diagram of an apparatus for generating a graffiti pattern provided by another embodiment of the present application. For the convenience of description, only shows Parts related to the embodiments of the present application are described.
  • the apparatus includes a display unit 1601 , an acquisition unit 1602 and a processing unit 1603 .
  • the functions of each unit are as follows:
  • a display unit 1601 which can be used to support the electronic device 100 to perform the above step S1501, etc., and/or other processes used in the techniques described herein;
  • an obtaining unit 1602 which can be used to support the electronic device 100 to perform the above step S1502, etc., and/or other processes used in the technology described herein;
  • the processing unit 1603 may be used to support the electronic device 100 to perform the above-mentioned step S1503, etc., and/or other processes used in the technology described herein.
  • the device provided by the embodiments of the present application may specifically be a chip, a component or a module, and the device includes a connected processor and a memory; wherein the memory is used to store computer execution instructions; when the device is running, the processor may execute the memory stored in the memory. Computer instructions, so that the chip executes the method for generating a graffiti pattern in each of the above method embodiments.
  • the electronic device can receive text information input by the user.
  • the electronic device performs combination processing on the graffiti letter images according to the attribute information of the graffiti letter images associated with the text information. Therefore, various graffiti patterns can be generated according to different graffiti letter images, without the need for electronic devices to download and store a large number of pictures in advance and occupy storage space; save the storage space of electronic devices, improve and enrich the performance of personalized applications of electronic devices; User's personalized needs for electronic equipment; it has strong ease of use and practicability.
  • the above-mentioned apparatus may be included in an electronic device, and the apparatus has the function of going online with the above-mentioned aspect and the behavior of the electronic apparatus in the possible implementation manner of the above-mentioned aspect.
  • the functions can be implemented by hardware, or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above functions. For example, a display module or unit, an acquisition module or unit, a processing module or unit, and the like.
  • the electronic device provided in this embodiment is used to execute the above method for generating a graffiti pattern, so the same effect as the above implementation method can be achieved.
  • the electronic device may include a processing module, a memory module and a communication module.
  • the processing module may be used to control and manage the actions of the electronic device, for example, may be used to support the electronic device to perform the steps performed by the above-mentioned display unit 1601 , acquisition unit 1602 , and processing unit 1603 .
  • the storage module may be used to support the electronic device to execute stored program codes and data, and the like.
  • the communication module can be used to support the communication between the electronic device and other devices.
  • the processing module may be a processor or a controller. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure.
  • the processor may be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and the like.
  • the storage module may be a memory.
  • the communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
  • the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1 .
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by an electronic device, the electronic device enables the electronic device to implement the method of generating graffiti patterns in the foregoing embodiments. method.
  • Embodiments of the present application also provide a computer program product including instructions.
  • the computer program product when executed on an electronic device or on a processor, causes the computer or processor to perform one or more steps of any of the above methods.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions can be sent from one website site, computer, server or data center to another website site, computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.
  • the aforementioned storage medium includes: ROM or random storage memory RAM, magnetic disk or optical disk and other mediums that can store program codes.
  • the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can be implemented by a computer program to instruct the relevant hardware.
  • the computer program can be stored in a computer-readable storage medium, and the computer program When executed by a processor, the steps of each of the above method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, etc.
  • the computer-readable storage medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (Read-Only Memory, ROM), random access Memory (Random Access Memory, RAM), electrical carrier signal, telecommunication signal and software distribution medium.
  • computer readable media may not be electrical carrier signals and telecommunications signals.
  • the processor can be a central processing unit (CPU), other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), application specific integrated circuits (ASICs), field programmable processors Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • CPU central processing unit
  • DSP digital signal processors
  • ASIC application specific integrated circuits
  • FPGA Field-Programmable Gate Array
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • the disclosed apparatus/device and method may be implemented in other manners.
  • the apparatus/equipment embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the term “if” may be contextually interpreted as “when” or “once” or “in response to determining” or “in response to detecting “.
  • the phrases “if it is determined” or “if the [described condition or event] is detected” may be interpreted, depending on the context, to mean “once it is determined” or “in response to the determination” or “once the [described condition or event] is detected. ]” or “in response to detection of the [described condition or event]”.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种生成涂鸦图案的方法、装置、电子设备及存储介质,该方法包括:显示所述电子设备的涂鸦图案的设置界面(S1501);获取用户在所述设置界面输入的文本信息,根据所述文本信息确定与所述文本信息关联的涂鸦字母图像的属性信息(S1502);执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,得到所述涂鸦图案(S1503)。该方法可以根据字母图像生成多种涂鸦图案,节省电子设备的存储空间,提高了电子设备的个性化应用的性能。

Description

生成涂鸦图案的方法、装置、电子设备及存储介质
本申请要求于2020年07月27日提交国家知识产权局、申请号为202010730341.X、申请名称为“生成涂鸦图案的方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于终端软件技术领域,尤其涉及生成涂鸦图案的方法、装置、电子设备及存储介质。
背景技术
随着电子设备的发展与普及,电子设备的屏显功能也越来越丰富,以满足用户在各种应用场景下对屏幕显示的个性化要求。电子设备的屏显功能的应用包括但不限于熄屏状态或锁屏状态显示图案的场景。
目前,电子设备在熄屏状态、锁屏状态或拍照时可以支持显示各种类型的图案,包括涂鸦文字类的图案;通常电子设备将本地存储的或者市场应用提供的固定图案设置到相应的应用场景,以显示所选择的图案,若下载大量的图片则非常占用内存,使得所显示的图案类型有限,无法满足用户的个性化需求。
发明内容
本申请公开了一种生成涂鸦图案的方法、装置、电子设备及存储介质,可以根据字母图像生成多种涂鸦图案,节省电子设备的存储空间,提高了电子设备的个性化应用的性能。
第一方面,本申请实施例提供一种生成涂鸦图案的方法,该方法包括显示所述电子设备的涂鸦图案的设置界面;获取用户在所述设置界面输入的文本信息,根据所述文本信息确定与所述文本信息关联的涂鸦字母图像的属性信息;执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,得到所述涂鸦图案。
通过本申请实施例,在电子设备的涂鸦图案设置界面,电子设备可以接收用户输入的文本信息。电子设备根据文本信息对应关联的涂鸦字母图像的属性信息,对涂鸦字母图像进行组合处理。从而可以根据不同的涂鸦字母图像生成多种涂鸦图案,无需电子设备预先下载并存储大量图片而占用存储空间;节省电子设备的存储空间,提高并丰富了电子设备的个性化应用的性能;满足了用户对电子设备的个性化需求;具有较强的易用性与实用性。
结合第一方面,在一些实施例中,所述属性信息包括第一涂鸦字母图像与第二涂鸦字母图像的重叠区域占比;若所述文本信息关联多个所述涂鸦字母图像,则所述执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,包括:
获取所述第一涂鸦字母图像中的非透明像素点与所述第二涂鸦字母图像中的非透明像素点的第一总数量;获取所述第一涂鸦字母图像与所述第二涂鸦字母图像的重叠区域中的非透明像素点的第二总数量;所述重叠区域中的非透明像素点同时为所述第一涂鸦字母图像和所述第二涂鸦字母图像的非透明像素点;将所述第二总数量与所述第一总数量的比值作为所述重叠区域占比,若所述重叠区域占比满足预设阈值,则按所述重叠区域占比,将所述第一涂鸦字母图像和所述第二涂鸦字母图像进行组合处理;其中,所述第一涂鸦字母图像和所述第二涂鸦字母图像为多个所述涂鸦字母图像中相邻的两个图像。
结合第一方面,在一些实施例中,若所述第一涂鸦字母图像位于所述第二涂鸦字母图像的左侧,则所述重叠区域的重叠关系为第一图层位于第二图层的上一层,其中所述第一图层为所述第一涂鸦字母图像所在的图层,第二图层为所述第二涂鸦字母图像所在的图层。
可理解的,若相邻两涂鸦字母图像的右侧边缘信息和左侧边缘信息的组合对未匹配到相应的组合间距命令,电子设备还可以通过上述方式,读取每个涂鸦字母图像的非透明像素信息,在对涂鸦字母图像进行组合的过程中,确定两相邻涂鸦字母的重叠区域及重叠关系,可以生成各种涂鸦字母组合的涂鸦图案,从而满足用户的个性化需求。
结合第一方面,在一些实施例中,所述属性信息包括每个所述涂鸦字母图像的倾斜角度信息,所述组合命令包括组合角度命令;若所述文本信息关联多个所述涂鸦字母图像,则执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,包括:
根据所述涂鸦字母图像的所述倾斜角度信息和所述涂鸦字母图像在多个所述涂鸦字母图像中的位置信息的关联关系,执行与所述关联关系对应的所述组合角度命令,按所述位置信息对应的所述倾斜角度信息调整所述涂鸦字母图像的角度。
示例性的,电子设备按照用户输入文本信息中字母或文字的顺序,排列所关联的多个涂鸦字母图像时,会根据涂鸦字母图像所在的位置调整涂鸦字母图像的倾斜角度,且相同的字母在不同的位置上,设置不同的倾斜角度,从而可以保证最后生成的涂鸦图案更具有聚合感。
结合第一方面,在一些实施例中,所述属性信息括每个所述涂鸦字母图像的左侧边缘信息和右侧边缘信息,所述组合命令包括组合间距命令;若所述文本信息关联多个所述涂鸦字母图像,则执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,包括:
根据第一涂鸦字母图像的所述右侧边缘信息和第二涂鸦字母图像的所述左侧边缘信息的组合对,执行与所述组合对对应的所述组合间距命令,将所述第一涂鸦字母图像与所述第二涂鸦字母图像按预设间距进行组合处理;其中,所述第一涂鸦字母图像和所述第二涂鸦字母图像为多个所述涂鸦字母图像中相邻的两个图像,且所述第一涂鸦字母图像位于所述第二涂鸦字母图像的左侧,所述左侧边缘信息和所述右侧边缘信息分别用于表示所述涂鸦字母图像的左侧边缘和右侧边缘的形状信息。
可理解的,若用户输入的文本信息为包括多个字母或多个文字词语或短句时,多个所述字母或多个文字之间存在先后的排列顺序,组成一个具有特定含义的词语或短语,从而电子设备可以根据文本信息关联的多个涂鸦字母图像构造出相应词语或短语的涂鸦图案。
结合第一方面,在一些实施例中,所述方法还包括:
获取所述涂鸦字母图像的左侧边缘和右侧边缘的非透明像素点的像素坐标;根据所述像素坐标,确定每个所述涂鸦字母图像的所述左侧边缘信息和所述右侧边缘信息。
可理解的,所述涂鸦字母图像的左侧边缘信息和右侧边缘信息可以为,涂鸦字母的字体库中针对每个涂鸦字母图像已设定好的边缘形状信息;还可以是通过上述方式获取涂鸦字母图像中左侧和右侧边缘的非透明像素的像素坐标确定的边缘形状信息。
结合第一方面,在一些实施例中,与所述文本信息关联的还包括所述涂鸦字母图像的背景图像,所述背景图像的大小大于所述涂鸦字母图像的大小,所述背景图像与所述涂鸦字母图像一一对应;所述方法还包括:
根据所述涂鸦字母图像的中心位置、所述涂鸦字母图像的大小以及所述背景图像的大小,计算所述背景图像的位置,得到多个所述涂鸦字母图像对应的整体背景图像;将多个所述涂鸦字母图像的图层设置于所述整体背景图像所在的图层之上,得到带边缘的所述涂鸦图案。
结合第一方面,在一些实施例中,所述方法还包括:在所述电子设备的熄屏界面、锁屏界面或相机拍摄界面显示所述涂鸦图案。
可理解的,电子设备可以通过系统设置功能或设置涂鸦图案的应用程序,生成应用于锁屏界面的涂鸦图案;也可以生成应用于解锁界面的涂鸦图案;还可以通过系统设置功能或相机的设置功能,生成应用于相机拍摄界面的涂鸦图案,例如相机拍摄界面的水印图案。
第二方面,本申请实施例提供一种生成涂鸦图案的装置,该装置包括:
显示单元,用于显示电子设备的涂鸦图案的设置界面;
获取单元,用于获取用户在所述设置界面输入的文本信息,根据所述文本信息确定与所述文本信息关联的涂鸦字母图像的属性信息;
处理单元,用于执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,得到所述涂鸦图案。
第三方面,本申请实施例提供一种电子设备,包括:一个或多个处理器;一个或多个存储器;多个应用程序;以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行如第一方面及第一方面任一种可能的实施方式提供的方法。
第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括指令,所述指令在电子设备上运行时,使得所述电子设备执行如第一方面及第一方面任一种可能的实施方式提供的方法。
第五方面,本申请实施例提供一种包含指令的计算机程序产品,所述计算机程序产品在电子设备上运行时,使得电子设备执行如第一方面及第一方面任一种可能的实施方式提供的方法。
可以理解地,上述提供的第二方面所述的生成涂鸦图案的装置、第三方面所述的电子设备、第四方面所述的计算机可读存储介质或者第五方面所述的包含指令的计算机程序产品均用于执行第一方面及第一方面任一种可能的实施方式提供的方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。
附图说明
下面对本申请实施例用到的附图进行介绍。
图1是本申请实施例提供的电子设备100的结构示意图;
图2是本申请实施例的电子设备100的软件结构框图;
图3和图3A是本申请实施例提供的一种生成涂鸦图案的用户界面示意图;
图4和图4A是本申请实施例提供的另一种生成涂鸦图案的用户界面示意图;
图5和图5A是本申请实施例提供的另一种生成涂鸦图案的用户界面示意图;
图6是本申请实施例提供的另一种生成涂鸦图案的用户界面示意图;
图7是本申请实施例提供的另一种处理涂鸦字母图像的效果示意图;
图8是本申请实施例提供的字体库中涂鸦字母图像的效果示意图;
图9是本申请实施例提供的另一种处理涂鸦字母图像的效果示意图;
图10是本申请实施例提供的涂鸦字母图像的效果示意图;
图11是本申请实施例提供的字体库中涂鸦字母图像的效果示意图;
图12是本申请实施例提供的另一种处理涂鸦字母图像的效果示意图;
图13是本申请实施例提供的另一种处理涂鸦字母图像的效果示意图;
图14是本申请实施例提供的电子设备显示界面显示涂鸦图案的示意图;
图15是本申请实施例提供的生成涂鸦图案的方法的流程示意图;
图16是本申请实施例提供的生成涂鸦图案的装置的组成结构示意图。
具体实施方式
下面结合本申请实施例中的附图对本申请实施例进行描述。本申请实施例的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一涂鸦字母图像和第二涂鸦字母图像仅仅是为了区分不同位置处的图像,以及第一图层和第二图层仅仅是为了区分不同的图层,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请实施例描述生成涂鸦图案的电子设备以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着电子设备的智能化发展和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
本申请实施例中提供的生成涂鸦图案的方法中所涉及到的步骤仅仅作为示例,并非所有的步骤均是必须执行的步骤,或者并非各个信息或消息中的内容均是必选的,在使用过程中可以根据需要酌情增加或减少。
本申请实施例中同一个步骤或者具有相同功能的步骤或者消息在不同实施例之间可以互相参考借鉴。
本申请实施例描述的业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着电子设备的智能化发展和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
目前电子设备的屏显功能越来越丰富,通过系统设置功能可以设置屏幕的个性化显示,例如设置熄屏图案、锁屏图案、解锁图案或相机的水印图案等。在进行屏显或水印图案设置时,电子设备仅限于已下载或系统配套的几张图案进行设定,对于一些字母类的涂鸦图案的应用则存在很大的局限性,除非下载大量的配套图案,从而占用更多的内存。因此,需要一种生成涂鸦图案的方法,可以完善电子设备屏显的个性化应用及功能性选择,从而在不影响电子设备内存的情况下满足用户更多的个性化需求。
本申请实施例提供了一种生成涂鸦图案的方法,可以应用于电子设备,当用户通过电子设备的 系统功能设置相应的屏显功能时,可以输入所需图案的文本信息,电子设备将文本信息对应关联的涂鸦字母图像进行组合处理,生成多种涂鸦图案,以节省电子设备的存储空间,提高电子设备的个性化应用的性能。
本申请实施例提供的生成涂鸦图案的方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑设备、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图1示出了本申请实施例提供的电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如: 处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于 处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110 可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接 口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合设置涂鸦图案的应用场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为系统设置图标或相机应用图标的控件为例,系统设置或相机应用调用应用框架层的接口,启动显示设置功能或相机应用,进而通过调用内核层启动显示驱动或摄像头驱动,打开设置涂鸦图案的显示界面。
为便于理解,本申请一下实施例将以具有图1和图2所示结构的电子设备为例,结合附图和应用场景,对本申请实施例提供的生成涂鸦图案的方法进行具体阐述。
要实现生成各种不同的涂鸦图案,本申请通过在电子设备的涂鸦图案设置界面接收用户输入的文本信息。电子设备根据文本信息对应的涂鸦字母图像的属性信息,对涂鸦字图像进行组合处理。从而可以根据不同的涂鸦字母图像生成多种涂鸦图案;无需电子设备预先下载并存储大量图片而占用存储空间;节省电子设备的存储空间,提高并丰富了电子设备的个性化应用的性能。
本申请将以手机作为电子设备,详细介绍本申请提供的生成涂鸦图案的方法。该方法主要应用于以下场景。
场景一
如图3和图3A所示,本申请实施例提供的一种生成涂鸦图案的用户界面(graphical user interface,GUI)示意图。
其中,图3中的(a)图示出了手机的解锁模式下,手机的屏幕显示系统显示了当前输出的界面内容,该界面内容301为手机的主界面。该界面内容301显示了多款第三方应用程序(application,APP),例如文件管理、电子邮件、音乐、计算器、设置311、相机等。应理解,界面内容还可以包括其他更多的应用程序,本申请对此不作限定。其中,手机的屏幕显示系统还显示了下拉菜单302的界面,下拉菜单302的界面也可以包括蓝牙、移动数据、振动、旋转以及设置312等控件对应的图标。
当手机检测到用户点击主界面上的设置311或者屏幕下拉菜单302中的设置312的图标的操作后,可以启动系统设置应用,显示如图3中的(b)图所示的界面,该界面可以为系统设置界面,该系统设置界面包括无线和网络设置、桌面和壁纸321以及相机设置322等控件。
如图3中的(b)图所示,当手机检测到用户点击系统设置界面303中的桌面和壁纸321应用的图标的操作后,启动桌面和壁纸的设置应用,显示如图3中的(c)所示的界面,该界面可以称为涂鸦图案的设置界面304。该设置界面304上可以包括熄屏显示331、文本输入区域以及键盘区域等。
其中,熄屏显示331对应在手机熄屏状态下显示熄屏图案或不显示图案;可理解的,在熄屏显示331对应的开关控件332处于打开状态,手机在熄屏状态可以显示相应的熄屏图案,在开关控件 332处于关闭状态,手机在熄屏状态不显示图案。
如图3中的(c)图所示,当手机检测到用户点击设置界面304上熄屏显示331图标对应的开关控件332的操作后,开关控件332显示打开状态,设置界面304上显示输入文本的区域以及键盘区域。手机接收用户在输入文本区域输入的文本信息,如图3中的(d)图所示,手机接收到用户输入的文本信息“HIGH GREAT MI”后,在检测到用户点击键盘区域的完成控件的图标后,手机调取字体库中与文本信息关联的涂鸦字母图像,并根据文本信息的序列将涂鸦字母图像进行组合处理,生成并显示对应文本信息的涂鸦图案351。手机检测到用户点击设置界面304中的应用341图标的操作后,将生成的涂鸦图案351应用于熄屏显示界面。
示例性的,如图3A图所示,在手机切换至熄屏状态时,显示涂鸦图案351。其中,图3中的(d)图以及图3A所显示的涂鸦图案351仅做示例性说明,涂鸦图案的具体颜色不做具体限定。
可理解的,手机将生成的涂鸦图案351的像素驱动电压信息传输至屏幕熄屏显示的显示驱动,显示驱动根据像素驱动电压信息驱动手机屏幕的显示面板显示涂鸦图案。其中,通过设置驱动电压的驱动方式,还可以在显示面板的不同区域动态显示涂鸦图案。
还应理解,在熄屏显示332应用的开关控件332处于打开状态时,所显示的不仅仅包括输入文本的区域以及键盘区域,还可以显示设置其他熄屏图案的设置控件的图标,例如熄屏签名、熄屏时间图案等控件的图标。
场景二
如图4和图4A所示,本申请实施例提供的另一种生成涂鸦图案的用户界面(graphical user interface,GUI)示意图。
其中,图4中的(a)图同图3中(a)图,示出了手机的解锁模式下,手机的屏幕显示系统显示了当前输出的界面内容,该界面内容301为手机的主界面。该界面内容301显示了多款第三方应用程序(application,APP),例如文件管理、电子邮件、音乐、计算器、设置311、相机等。另外,手机的屏幕显示系统还显示了下拉菜单302的界面,下拉菜单302的界面也可以包括蓝牙、移动数据、振动、旋转以及设置312等控件对应的图标。
与图3中的(b)图相同,当手机检测到用户点击主界面上的设置311或者屏幕下拉菜单302中的设置312的图标的操作后,可以启动系统设置应用,显示如图4中的(b)图所示的界面,该界面可以为系统设置界面303,该系统设置界面303包括无线和网络设置、桌面和壁纸321以及相机设置322等控件。
如图4中的(b)图所示,当手机检测到用户点击系统设置界面303中的桌面和壁纸321应用的图标的操作后,启动桌面和壁纸的设置应用,显示如图4中的(c)图所示的界面,该界面可以称为涂鸦图案的设置界面305。该设置界面305上可以包括锁屏显示333、文本输入区域以及键盘区域等。
其中,锁屏显示333用于在手机锁屏状态下,显示锁屏图案。如图4中的(c)图所示,当手机检测到用户点击设置界面305上锁屏显示333图标对应的开关控件334的操作后,开关控件334显示打开状态,设置界面305上显示输入文本的区域以及键盘区域。手机接收用户在输入文本区域输入的文本信息,如图4中的(d)图所示,手机接收到用户输入的文本信息“HIGH GREAT MI”后,在检测到用户点击键盘区域的完成控件的图标后,手机调取字体库中与文本信息关联的涂鸦字母图像,并根据文本信息的序列将涂鸦字母图像进行组合处理,生成并显示对应文本信息的涂鸦图案352。手机检测到用户点击设置界面305中的应用342图标的操作后,将生成的涂鸦图案352应用于锁屏显示界面。
示例性的,如图4A图所示,在手机切换至锁屏状态时,显示涂鸦图案352。其中,图4中的(d)图以及图4A所显示的涂鸦图案352仅做示例性说明,涂鸦图案的具体颜色不做具体限定。
可理解的,手机将生成的涂鸦图案352的像素驱动电压信息传输至屏幕锁屏显示的显示驱动,显示驱动根据像素驱动电压信息驱动手机屏幕的显示面板显示涂鸦图案。在锁屏显示333应用的开关控件334处于打开状态时,所显示的不仅仅包括输入文本的区域以及键盘区域,还可以显示设置其他锁屏图案的设置控件的图标,例如锁屏签名、杂志锁屏等应用控件的图标。
场景三
如图5和图5A所示,本申请实施例提供的另一种生成涂鸦图案的用户界面(graphical user interface,GUI)示意图。
其中,图5中的(a)图同图3中(a)图、图4中的(a)图,示出了手机的解锁模式下,手机的屏幕显示系统显示了当前输出的界面内容,该界面内容301为手机的主界面。该界面内容301显示了多款第三方应用程序(application,APP),例如文件管理、电子邮件、音乐、计算器、设置311、相机等。另外,手机的屏幕显示系统还显示了下拉菜单302的界面,下拉菜单302的界面也可以包括蓝牙、移动数据、振动、旋转以及设置312等控件对应的图标。
与图3中的(b)图、图4中的(b)图相同,当手机检测到用户点击主界面上的设置311或者屏幕下拉菜单302中的设置312的图标的操作后,可以启动系统设置应用,显示如图5中的(b)图所示的界面,该界面可以为系统设置界面303,该系统设置界面303包括无线和网络设置、桌面和壁纸321以及相机设置322等控件。
如图5中的(b)图所示,当手机检测到用户点击系统设置界面303中的相机设置322应用的图标的操作后,启动相机设置应用,显示如图5中的(c)所示的界面,该界面可以称为涂鸦图案的设置界面306。该设置界面306上可以包括相机水印335、文本输入区域以及键盘区域等。
其中,相机水印333用于在手机启动相机进行拍摄时,在拍摄界面显示相应的水印图案。如图5中的(c)图所示,当手机检测到用户点击设置界面306上相机水印335图标对应的开关控件336的操作后,开关控件336显示打开状态,设置界面306上显示输入文本的区域以及键盘区域。手机接收用户在输入文本区域输入的文本信息,如图5中的(d)图所示,手机接收到用户输入的文本信息“STARS”后,在检测到用户点击键盘区域的完成控件的图标后,手机调取字体库中与文本信息关联的涂鸦字母图像,并根据文本信息的序列将涂鸦字母图像进行组合处理,生成并显示对应文本信息的涂鸦图案353。手机检测到用户点击设置界面306中的应用343图标的操作后,将生成的涂鸦图案353应用于相机拍摄的应用场景中。
示例性的,如图5A所示,在手机启动相机进行拍摄时,在拍摄界面可以显示涂鸦图案353。其中,图5中的(d)图以及图5A所显示的涂鸦图案353仅做示例性说明,涂鸦图案的具体颜色不做具体限定。相机水印显示的位置也可以根据需要进行设置,例如直接在相机拍摄界面拖动相机水印353至拍摄界面的任意位置。
可理解的,手机将生成的涂鸦图案353的像素驱动电压信息传输至相机拍摄界面的显示驱动,显示驱动根据像素驱动电压信息驱动手机屏幕的显示面板显示涂鸦图案353。在相机水印335应用的开关控件336处于打开状态时,所显示的不仅仅包括输入文本的区域以及键盘区域,还可以显示设置其他水印图案的设置控件的图标。
场景四
如图6所示,本申请实施例提供的另一种生成涂鸦图案的用户界面(graphical user interface,GUI) 示意图。
本申请实施例提供的生成涂鸦图案的方法还可以应用于设置涂鸦图案类的应用程序(application,APP)。由手机端下载该应用程序,并将所生成的涂鸦图案应用于不同系统应用场景,例如熄屏显示应用场景、锁屏显示应用场景或相机水印显示的应用场景等。
如图6中的(a)图示出了手机的解锁模式下,手机的屏幕显示系统显示了当前输出的界面内容,该界面内容601为手机的主界面。该界面内容601显示了多款第三方应用程序(application,APP),例如时钟、日历、图库、备忘录、文件管理、电子邮件、音乐、计算器、设置、相机以及涂鸦图案611等应用图标。应理解,界面内容还可以包括其他更多的应用程序,本申请对此不作限定。
当手机检测到用户点击主界面上的涂鸦图案611的图标的操作后,可以启动涂鸦图案应用,显示如图6中的(b)图所示的界面,该界面可以称为涂鸦图案的设置界面602。该设置界面602上可以包括功能项621。当手机检测到用户点击设置界面602上的功能项621的图标的操作后,在设置界面显示文字631、导入图片及制作动画等控件的图标。应理解,当手机检测到用户点击设置界面602上的功能项621的图标的操作后,还能显示更多其他控件的图标,具体可以根据应用程序的功能进行设定,本申请对此不作限定。
当手机检测到用户点击设置界面602上的文字的图标的操作后,响应于用户的点击操作,显示输入文本的区域以及键盘区域。手机接收用户在输入文本区域输入的文本信息,如图6中的(c)图所示,手机接收到用户输入的文本信息“STARS”后,在检测到用户点击键盘区域的完成控件的图标后,手机调取字体库中与文本信息关联的涂鸦字母图像,并根据文本信息的序列将涂鸦字母图像进行组合处理,生成并显示对应文本信息的涂鸦图案353。手机检测到用户点击界面603中的确认641图标的操作后,显示选择应用场景的控件图标,如图6中的(d)图所示,在界面604显示各应用场景的控件图标,如熄屏显示651、锁屏显示652、相机水印653以及背景桌面等应用场景的图标。
当手机检测到用户点击界面604上的熄屏显示651、锁屏显示652、相机水印653的图标的操作后,熄屏显示651、锁屏显示652、相机水印653的图标显示为被选中的状态。当手机检测到用户点击界面604上的应用645的图标的操作后,将生成的涂鸦图案655应用于熄屏显示、锁屏显示及相机拍摄的应用场景中。
示例性的,与图3A、图4A及图5A图所示的相同,在手机切换至熄屏状态时,还可以显示涂鸦图案655;在手机切换至锁屏状态时,还可以显示涂鸦图案655;在手机启动相机进行拍摄时,在拍摄界面还可以显示涂鸦图案655的水印。
其中,图6中的(c)图和(d)图所显示的涂鸦图案655仅做示例性说明,涂鸦图案的具体颜色不做具体限定。在熄屏应用场景,通过设置驱动电压的驱动方式,还可以在显示面板的不同区域动态显示涂鸦图案。在相机拍摄应用场景中,相机水印显示的位置也可以根据需要进行设置,例如直接在相机拍摄界面拖动相机水印655至拍摄界面的任意位置。
可理解的,无论是作为手机的一款应用程序的功能,还是一款应用程序中某一项功能插件,还是嵌入到手机系统内的系统应用,本申请实施例提供的生成涂鸦图案的方法,可以根据市场的需求,开发不同的涂鸦字体或涂鸦图像,基于类似的设计原理,实现电子设备中相应的应用场景设置或显示的功能。
还应理解,上述应用场景的实施例中所采用的字母文本信息以及涂鸦字母图像,不对本申请起到限制的作用,基于相似的设计理念,文本信息以及与文本信息相关联的涂鸦图像还可以是其他形式或形态的内容,例如提供相应的字体库或图库,则可以根据输入的文本信息的内容,对应生成所 需的涂鸦图案。
下面具体介绍在对用户输入的文本信息对应的涂鸦字母图像进行组合处理得到涂鸦图案的过程。手机在接收到文本信息后,获取与文本信息相关联的涂鸦字母图像。根据涂鸦字母图像的属性特征,手机将涂鸦字母图像进行组合处理,得到涂鸦图案。
参见图15,是本申请实施例提供的一种生成涂鸦图案的方法的流程示意图。该方法可以在如图1和图2所示的电子设备(如手机、智能手表)中实现。如图15所示,该方法包括以下步骤:
步骤S1501,显示电子设备的涂鸦图案的设置界面。
示例性的,电子设备可以是手机、智能手表等设备。
示例性的,对应不同的应用场景,涂鸦图案的设置界面存在一定的不同,例如图3中的(c)图所示的设置界面304、图4中的(c)图所示的设置界面305、图5中的(c)图所示的设置界面306以及图6中的(b)图所示的设置界面602。
示例性的,设置界面包括输入文本的区域和键盘区域;其中,输入文本的区域用于接收用户输入的文本信息。
可理解的,在不同的设置界面,包括不同的应用控件图标,手机通过检测用户点击图标的操作,响应用户的点击操作,跳转至相应的界面或执行相应的图像处理操作。
步骤S1502,获取用户在设置界面输入的文本信息,根据文本信息确定与文本信息关联的涂鸦字母图像的属性信息。
示例性的,文本信息包括字母或文字信息。当文本信息为多个字母时,可以不限制输入多个字母的大小写。文本信息中的每个字母与字体库或图库中对应的涂鸦字母图像相关联,根据文本信息的内容可以确定对应所需的涂鸦字母图像。
其中,涂鸦字母图像的属性信息包括重叠区域占比。如图7所示的,本申请实施例提供的涂鸦字母图像的效果示意图。如图7中的(a)图所示的重叠区域一和重叠区域二的非透明像素点的数量,或者图7中的(b)图所示的重叠区域三的非透明像素点的数量,分别所占相邻两涂鸦字母图像所有非透明像素点总数量的比值。
其中,属性信息包括每个涂鸦字母图像的倾斜角度信息。如图8所示的,本申请实施例提供的涂鸦字母图像的效果示意图。字体库中的涂鸦字母图像分别对应不同的倾斜角度。
示例性的,字体库中的每个字母可能存在倾斜角度,也可能不存在倾斜角度,如图8所示,对应标记为“1”的字母向左边倾斜,对应标记为“2”的字母无倾斜,对应标记为“3”的字母向右倾斜。
其中,涂鸦字母图像的属性信息还包括左侧边缘信息和右侧边缘信息。如图10所示的,本申请实施例提供的涂鸦字母图像的效果示意图。涂鸦字母图像可以是字体库中的字母对应显示的图像,可以根据应用场景需要手机端下载所需版本的字体库或图库。
如图10所示,字体库中的涂鸦字母图像的右侧边缘信息可以包括R1、R2、R3、R4、R5、R6六种形态的边缘信息,左侧边缘信息可以包括L1、L2、L3、L4、L5、L6六种形态的边缘信息,如图10所示的具体形状。
示例性的,如字母“A”在字体库中的形态,左侧边缘信息归类为形态L1,右侧边缘信息归类于形态R5,字母“E”在字体库中的形态,左侧边缘信息归类于形态L2,右侧边缘信息归类于形态R2。
可理解的,涂鸦字母图像左侧和右侧边缘信息的形态并不仅限于以上形态,可以根据字体库中的涂鸦字母图像的特征进行确定。
如图11所示的,本申请实施例提供的字体库中涂鸦字母图像的效果示意图;字体库中可以包括 英文26个字母的涂鸦形态,如图11中的(a)图所示。每个字母的形态左侧边缘信息和右侧边缘信息对应不同的形态,如图11中的(b)图所示。其中L代表左侧边缘信息,R代表右侧边缘信息。如图10所示,涂鸦字母图像“A”对应的左侧形态和右侧形态分别为L1、R5,涂鸦字母图像“B”对应的左侧形态和右侧形态分别为L1、R2,涂鸦字母图像“C”对应的左侧形态和右侧形态分别为L5、R2,依此类推如图11中的(b)所示的其他涂鸦字母图像的左侧和右侧的形态类型。
应理解,字体库或图库可以根据需要进行设计,针对预设的图库或字体库,其中的涂鸦字母图像的左侧边缘信息和右侧边缘信息可以为预设的、与涂鸦字母图像相关联的信息,电子设备根据涂鸦字母图像可以直接调用;另外,针对预设的图库或字体库,电子设备还可以通过识别涂鸦字母图像左侧边缘的非透明像素点的坐标和右侧边缘的非透明像素点的坐标,确定涂鸦字母图像的左侧边缘信息和右侧边缘信息。即涂鸦字母图像的左侧边缘信息和右侧边缘信息可以为与涂鸦字母图像预设的关联关系,也可以为根据涂鸦字母图像实时确定的信息。
步骤S1503,执行与属性信息对应的组合命令,将涂鸦字母图像进行组合处理,得到涂鸦图案。
作为一种可能的实现方式,属性信息包括第一涂鸦字母图像与第二涂鸦字母图像的重叠区域占比;若文本信息关联多个涂鸦字母图像,则执行与属性信息对应的组合命令,将涂鸦字母图像进行组合处理,包括:
获取第一涂鸦字母图像中的非透明像素点与第二涂鸦字母图像中的非透明像素点的第一总数量;获取第一涂鸦字母图像与第二涂鸦字母图像的重叠区域中的非透明像素点的第二总数量;重叠区域中的非透明像素点同时为第一涂鸦字母图像和第二涂鸦字母图像的非透明像素点;将第二总数量与第一总数量的比值作为重叠区域占比,若重叠区域占比满足预设阈值,则按重叠区域占比,将第一涂鸦字母图像和第二涂鸦字母图像进行组合处理;其中,第一涂鸦字母图像和第二涂鸦字母图像为多个涂鸦字母图像中相邻的两个图像。
示例性的,如图7所示的,为了保证相邻两个涂鸦字母图像重叠区域的平衡性,本申请实施例提供的一种处理涂鸦字母图像的效果示意图。如图7中的(a)图所示,在涂鸦字母图像“T”和“J”进行组合时,或者如图7中的(b)图所示,在涂鸦字母图像“A”和“C”进行组合时,定义任意左右两个字母重叠区域的非透明像素数量与左右两个字母所有非透明像素数量之比为重叠区域占比rate。其中,重叠区域占比rate为一个定值,可以通过如下公式一表示:
Figure PCTCN2021107892-appb-000001
其中,重叠区域占比rate为定值(例如设置为10%);overlapOpaqueNum为任意左右相邻两个涂鸦字母图像重叠区域的非透明像素数量,即第二总数量,如图7中的(a)图中重叠区域一和重叠区域二中的非透明像素点的总数量,或者如图7中的(b)图中重叠区域三中的非透明像素点的总数量;leftOpaqueNum为左侧涂鸦字母图像的所有非透明像素点的数量;rightOpaqueNum为右侧涂鸦字母图像的所有非透明像素点的数量;将左侧涂鸦字母图像的所有非透明像素点的数量与右侧涂鸦字母图像的所有非透明像素点的数量的和,即leftOpaqueNum+rightOpaqueNum作为第一总数量。
示例性的,可以通过遍历涂鸦字母图像的非透明像素点,确定相邻的两涂鸦字母图像中分别包含的非透明像素点的数量。例如,leftOpaqueNum初始值为0,遍历左边涂鸦字母图像的所有像素点,若其像素点透明度大于0,则leftOpaqueNum=leftOpaqueNum+1;同理,rightOpaqueNum初始值为0,遍历右边涂鸦字母图像的所有像素点,若其透明度大于0,则rightOpaqueNum=rightOpaqueNum+1。
设定步长step(个数count=0),每次将重叠区域增加一个步长step(count=count+1),计算重 叠区域内,左侧涂鸦字母图像和右侧涂鸦字母图像中均为非透明像素点的数量(即左右两涂鸦字母图像在该位置均为非透明像素的像素点位置)。
若overlapOpaqueNum/rate<leftOpaqueNum+rightOpaqueNum,则将重叠区域继续增加一个步长step(count=count+1),继续统计重叠区域非透明像素点的数量。若overlapOpaqueNum/rate≥leftOpaqueNum+rightOpaqueNum,则结束增加步长。进一步根据step*count的结果得出重叠区域对应的步进总长度。
其中,一个步长step可以设定为一定数量的像素点,具体可以根据图像的像素多少进行设定,例如将100个像素点对应一个步长。还可以设定为具体的长度,例如一个步长为1毫米,此处不做具体限定。重叠区域占比可以是一个预设的定值,例如设置为10%,还可以根据相邻两涂鸦字母图像的非透明像素点的数量进行设定,此处不做具体限定。
如图7中的(a)图所示的,在“T”和“J”的组合过程中,最终根据重叠区域一和重叠区域二中的非透明像素点对应的重叠区域占比(即根据step*count的结果得出的重叠区域对应的步进总长度)确定涂鸦字母图像的组合方式,如图7中的(b)所示,在“A”和“C”的组合过程中,最终根据重叠区域三中的非透明像素点的重叠区域占比确定组合方式。
可理解的,上述组合处理的方式只是作为示例性说明,并不限定本申请的范围,基于相同的构思的其他组合方式同样适用。
作为一种可能的实现方式,若第一涂鸦字母图像位于第二涂鸦字母图像的左侧,则重叠区域的重叠关系为第一图层位于第二图层的上一层,其中第一图层为第一涂鸦字母图像所在的图层,第二图层为第二涂鸦字母图像所在的图层。
应理解,本申请提供的实施例主要在于如何对涂鸦字母图像进行组合处理,调取字体库或图库中的涂鸦字母图像的触发方式,不限于根据输入的文本信息与涂鸦字母的关联关系进行调取,还可以是在设置界面直接显示各个涂鸦字母图像,手机在检测到用户点击相应的涂鸦字母图像的图标的操作后,直接调取涂鸦字母图像,并根据涂鸦字母图像的属性特征,对涂鸦字母图像进行组合处理。
示例性的,属性信息可以包括文本信息对应的涂鸦字母图像的左侧边缘信息和右侧边缘信息,还可以包括涂鸦字母图像的倾斜角度信息。组合命令包括组合间距命令和组合角度命令;其中,组合间距命令用于确定两两相邻的涂鸦字母图像之间的间距,组合角度命令确定组成涂鸦图案的每个涂鸦字母图像在涂鸦图案中的所在位置处的倾斜角度。
作为一种可能的实现方式,属性信息为每个涂鸦字母图像的倾斜角度信息,组合命令为组合角度命令时;若文本信息关联多个涂鸦字母图像,则执行与属性信息对应的组合命令,将涂鸦字母图像进行组合处理,包括:
根据涂鸦字母图像的倾斜角度信息和涂鸦字母图像在多个涂鸦字母图像中的位置信息的关联关系,执行与关联关系对应的所述组合角度命令,按位置信息对应的倾斜角度信息调整涂鸦字母图像的角度。
示例性的,如图8所示,字体库中的涂鸦字母图像分别对应不同的倾斜角度,为保证最后生成的涂鸦图案的聚合度,当文本信息关联多个涂鸦字幕图像时,需要按照涂鸦字母图像所在的位置调整涂鸦字母图像的角度。如表1所示的,位置信息与角度信息的对应关系。
Figure PCTCN2021107892-appb-000002
表1
可理解的,表1中的角度为涂鸦字母图像在字体库或图库中已存在的角度,包括的左倾斜、无倾斜及右倾斜,即涂鸦字母图像本身的角度信息。表1中的位置为某一涂鸦字母图像对应的字符所在文本信息中的位置,包括左一(如图9中“S”)、左二(如图9中的“T”)、右二(如图9中的“R”)及右一(如图9中的“S”)。当涂鸦字母图像本身为左倾斜,且处于左一的位置,则不调整角度,例如图9中的最左边的“S”,本身为左倾斜且处于左一的位置,则不调整角度。当涂鸦字母图像本身为无倾斜,且处于左二的位置,则向左调整5度,例如图9中的“T”,本身无倾斜且处于左二的位置,根据表1所示,向左调整5度。当涂鸦字母图像本身为左倾斜,且处于右一的位置,则向左调整20度,例如图9中的最右边的“S”,本身为左倾斜且处于右一的位置,根据表1所示,向左调整20度。当涂鸦字母图像本身为无倾斜,且处于右二的位置,则向右调整5度,例如图9中的“R”,本身无倾斜且处于右二的位置,根据表1所示,向右调整5度。
其中,相同的字母处于不同的位置时,对应不同的倾斜角度,如图9所示的最左边的“S”和最右边的“S”。
作为一种可能的实现方式,属性信息为文本信息对应的涂鸦字母图像的左侧边缘信息和右侧边缘信息,组合命令为组合间距命令时;若文本信息关联多个涂鸦字母图像,则执行与属性信息对应的组合命令,将涂鸦字母图像进行组合处理,包括:
根据第一涂鸦字母图像的右侧边缘信息和第二涂鸦字母图像的左侧边缘信息的组合对,执行与组合对对应的组合间距命令,将第一涂鸦字母图像与第二涂鸦字母图像按预设间距进行组合处理。
其中,第一涂鸦字母图像和第二涂鸦字母图像为多个涂鸦字母图像中相邻的两个图像,且第一涂鸦字母图像位于第二涂鸦字母图像的左侧,左侧边缘信息和右侧边缘信息分别用于表示涂鸦字母图像的左侧边缘和右侧边缘的形状信息。
示例性的,参照上述字体库中所有字母的左侧边缘和右侧边缘的形态,可将两两涂鸦字母图像的左侧边缘信息或右侧边缘信息组合,即将相邻两涂鸦字母图像中的左边涂鸦字母图像的右侧边缘信息与右边涂鸦字母图像的左侧边缘信息进行组合,形成组合对;根据组合对的边缘形态特征,设定与组合对对应的组合间距命令。当手机检测到任两个相邻的涂鸦字母图像的组合对满足组合对中的形状组合,则执行与组合对对应的组合间距命令,将两相邻的涂鸦字母图像按对应预设的间距进行组合。如表2所示的组合对于组合间距的对应关系。
Figure PCTCN2021107892-appb-000003
表2
应理解,在相邻两涂鸦字母图像中,组合对应为左边涂鸦字母图像的右侧边缘信息与右边涂鸦字母图像的左侧边缘信息组合成的。上述表2仅示例性说明图10中的(a)图所示的字体库的组合对所对应的组合间距,并不用于限制本申请。针对其他形态的字体库或图库,还可以预设与字体库或图库中涂鸦字母图像所关联的其他组合对及组合间距。电子设备可以根据涂鸦字母图像的组合对调用与组合对所对应组合间距命令,执行组合间距命令,将涂鸦字母进行组合处理。
示例性的,如图12所示的,本申请实施例提供的一种处理涂鸦字母图像的效果示意图。当文本信息为“AC”时,手机识别出“AC”分别对应的涂鸦字母图像的边缘信息,即“A”的右侧边缘信息和“C”的左侧边缘信息,可以确定“A”的右侧形态为R5,“C”的左侧形态为L5,则根据表2中,组合对为R5L5,R5L5对应的组合间距为16,则执行组合命令,将“A”和“C”分别对应的涂鸦字母图像(即字体库中的字体图像)按间距为16进行组合,得到如图12所示的组合效果。
可理解的,间距值可以是一个量化值,将一定数量的像素值作为一个单位的量化值,表2中的间距值的单位则对应量化值,例如将50个像素点的距离作为一个单位的量化值,那么间距值为16时,则对应16×50个像素点的距离。表2中的间距值的单位也可以是长度单位,例如毫米mm等。
作为一种可能的实现方式,生成涂鸦图案的方法还包括:
获取涂鸦字母图像的左侧边缘和右侧边缘的非透明像素点的像素坐标;根据像素坐标,确定每个涂鸦字母图像的所述左侧边缘信息和所述右侧边缘信息。
示例性的,针对未预设与涂鸦字母图像关联的左侧边缘信息和右侧边缘信息的字体库或图库,还可以根据涂鸦字母图像中左侧边缘与右侧边缘的非透明像素点的坐标,确定涂鸦字母图像的左侧边缘信息和右侧边缘信息。其中,电子设备在根据文本信息确定关联的涂鸦字母图像后,可以遍历涂鸦字母图像的左侧或右侧边缘的非透明像素点的坐标,通过遍历涂鸦字母图像左侧边缘或右侧边缘的非透明像素点,获取非透明像素点中的关键点位置处像素的坐标值,也可以获取左侧边缘或右侧边缘所有像素点的坐标值,根据关键点位置处像素的坐标值或左侧边缘或右侧边缘所有像素点的坐标值,确定涂鸦字母图像的左侧边缘的形状信息或右侧边缘的形状信息。
可理解的,针对字体库中涂鸦字母图像的形态,执行相应的组合命令,包括但不限于以上实施例提出的各种形态,还可以包括其他形态。涂鸦图案可以是由多个涂鸦字母图像组成的图案,还可 以是其他字符组成的图案。
还应理解,本申请实施例中提供的涂鸦字母图像的属性信息以及属性信息对应的组合命令仅仅作为示例,并非所有的组合处理步骤均是必须执行的步骤,或者并非各个属性信息对应的组合命令均是必选的,在使用过程中可以根据字体库或图库的涂鸦字母图像的需要使用一种组合命令或至少两种组合命令的结合使用;对于多种组合命令的结合使用方式此处不做具体限制。
例如,在执行组合角度命令后,根据重叠区域占比属性执行重叠组合的命令;或者在获取涂鸦字母图像的左侧边缘信息和右侧边缘信息后,未调用到与组合对相关联的组合间距命令,也可以根据重叠区域占比属性执行重叠组合的命令。
作为一种可能的实现方式,与文本信息关联的还包括涂鸦字母图像的背景图像,背景图像的大小大于涂鸦字母图像的大小,背景图像与涂鸦字母图像一一对应;生成涂鸦图案的方法还包括:
根据涂鸦字母图像的中心位置、涂鸦字母图像的大小以及背景图像的大小,计算背景图像的位置,得到多个涂鸦字母图像对应的整体背景图像;将多个涂鸦字母图像的图层设置于整体背景图像所在的图层之上,得到带边缘的涂鸦图案。
示例性的,如图13所示的,本申请实施例提供的,另一种处理涂鸦字母图像的效果示意图。背景图像可以为设置好的与字体库一同存储的,并与字体库中的涂鸦字母图像一一对应的图像,如图13中所示的单个涂鸦字母图像的背景图像。
在确定涂鸦字母图像的位置后,将背景图像的中心与对应的涂鸦字母图像的中心重合,并根据涂鸦字母图像的大小及背景图像的大小确定背景图像的位置。
如图13所示,在直角坐标系xoy中,以x为横轴,以y为纵轴,单位分别可以为像素或毫米mm。其中,涂鸦字母图像“H”的位置坐标为(x1,y1),为根据涂鸦字母图像在显示区域的位置已确定的。涂鸦字母图像的中心位置为O1(x0,y0),将背景图像的中心O2与涂鸦字母图像的中心重合,根据涂鸦字母图像的大小(包括高h1、宽w1)、背景图像的大小(包括高h2、宽w2),计算背景图像的位置坐标(x2,y2)。
其中,O1的坐标为(x1+w1/2,y1+h1/2),则背景图像的位置坐标(x2,y2)为(x1+(w1-w2)/2,y1+(h1-h2)/2)。从而可以确定每个涂鸦字母图像的背景图像的位置。将多个涂鸦字母图像的图层设置于整体背景图像所在的图层之上,得到带边缘的涂鸦图案。
作为一种可能的实现方式,在电子设备的熄屏界面、锁屏界面或相机拍摄界面显示涂鸦图案。在电子设备显示涂鸦图案还包括在智能手表的锁屏状态或解锁状态显示涂鸦图案,即涂鸦图案作为智能手表的锁屏图案或解锁图案。如图14所示的,本申请实施例提供的电子设备显示界面显示涂鸦图案的示意图,通过上述实施例,生成智能手表表盘的解锁涂鸦图案。
通过本申请实施例,在电子设备的涂鸦图案设置界面,电子设备可以接收用户输入的文本信息。电子设备根据文本信息对应关联的涂鸦字母图像的属性信息,对涂鸦字母图像进行组合处理。从而可以根据不同的涂鸦字母图像生成多种涂鸦图案,无需电子设备预先下载并存储大量图片而占用存储空间;节省电子设备的存储空间,提高并丰富了电子设备的个性化应用的性能;满足了用户对电子设备的个性化需求。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
应理解,上述由电子设备执行的步骤也可以由应用于可电子设备中的装置(例如,芯片)执行。或者,上述电子设备执行的步骤可以由图2所示的处理器执行。
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如可以对应各功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
对应于上文实施例所述的生成涂鸦图案的方法以及应用场景的实施例,图16示出了本申请另一实施例提供的生成涂鸦图案的装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。
参照图16,该装置包括显示单元1601,获取单元1602以及处理单元1603。其中,各单元功能如下:
显示单元1601,可以用于支持电子设备100执行上述步骤S1501等,和/或用于本文所描述的技术的其他过程;
获取单元1602,可以用于支持电子设备100执行上述步骤S1502等,和/或用于本文所描述的技术的其他过程;
处理单元1603,可以用于支持电子设备100执行上述步骤S1503等,和/或用于本文所描述的技术的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容可以援引到对应的功能模块的功能描述,在此不再赘述。
本申请的实施例提供的装置,具体可以是芯片、组件或模块,该装置包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令;当装置运行时,处理器可以执行存储器存储的计算机指令,以使芯片执行上述各个方法实施例中的生成涂鸦图案的方法。
通过本申请实施例,在电子设备的涂鸦图案设置界面,电子设备可以接收用户输入的文本信息。电子设备根据文本信息对应关联的涂鸦字母图像的属性信息,对涂鸦字母图像进行组合处理。从而可以根据不同的涂鸦字母图像生成多种涂鸦图案,无需电子设备预先下载并存储大量图片而占用存储空间;节省电子设备的存储空间,提高并丰富了电子设备的个性化应用的性能;满足了用户对电子设备的个性化需求;具有较强的易用性与实用性。
示例性的,上述装置可以包含在电子设备中,该装置具有上线上述方面及上述方面可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,显示模块或单元、获取模块或单元、处理模块或单元等。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用 软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
本实施例提供的电子设备,用于执行上述生成涂鸦图案的方法,因此可以达到与上述实现方法相同的效果。
在采用集成的单元的情况下,电子设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备的动作进行控制管理,例如,可以用于支持电子设备执行上述显示单元1601,获取单元1602,处理单元1603执行的步骤。存储模块可以用于支持电子设备执行存储程序代码和数据等。通信模块,可以用于支持电子设备与其他设备的通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图1所示结构的设备。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被电子设备执行时,使得电子设备实现上述各个实施例的生成涂鸦图案的方法。
本申请实施例还提供了一种包含指令的计算机程序产品。当所述计算机程序产品在电子设备上或处理器上运行时,使得计算机或处理器执行上述任一个方法中的一个或多个步骤。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些 中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。
处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置/设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别 强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (12)

  1. 一种生成涂鸦图案的方法,应用于电子设备,其特征在于,包括:
    显示所述电子设备的涂鸦图案的设置界面;
    获取用户在所述设置界面输入的文本信息,根据所述文本信息确定与所述文本信息关联的涂鸦字母图像的属性信息;
    执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,得到所述涂鸦图案。
  2. 根据权利要求1所述的方法,其特征在于,所述属性信息包括第一涂鸦字母图像与第二涂鸦字母图像的重叠区域占比;若所述文本信息关联多个所述涂鸦字母图像,则所述执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,包括:
    获取所述第一涂鸦字母图像中的非透明像素点与所述第二涂鸦字母图像中的非透明像素点的第一总数量;
    获取所述第一涂鸦字母图像与所述第二涂鸦字母图像的重叠区域中的非透明像素点的第二总数量;所述重叠区域中的非透明像素点同时为所述第一涂鸦字母图像和所述第二涂鸦字母图像的非透明像素点;
    将所述第二总数量与所述第一总数量的比值作为所述重叠区域占比,若所述重叠区域占比满足预设阈值,则按所述重叠区域占比,将所述第一涂鸦字母图像和所述第二涂鸦字母图像进行组合处理;
    其中,所述第一涂鸦字母图像和所述第二涂鸦字母图像为多个所述涂鸦字母图像中相邻的两个图像。
  3. 根据权利要求2所述的方法,其特征在于,若所述第一涂鸦字母图像位于所述第二涂鸦字母图像的左侧,则所述重叠区域的重叠关系为第一图层位于第二图层的上一层,其中所述第一图层为所述第一涂鸦字母图像所在的图层,所述第二图层为所述第二涂鸦字母图像所在的图层。
  4. 根据权利要求1所述的方法,其特征在于,所述属性信息包括每个所述涂鸦字母图像的倾斜角度信息,所述组合命令包括组合角度命令;若所述文本信息关联多个所述涂鸦字母图像,则执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,包括:
    根据所述涂鸦字母图像的所述倾斜角度信息和所述涂鸦字母图像在多个所述涂鸦字母图像中的位置信息的关联关系,执行与所述关联关系对应的所述组合角度命令,按所述位置信息对应的所述倾斜角度信息调整所述涂鸦字母图像的角度。
  5. 根据权利要求1所述的方法,其特征在于,所述属性信息括每个所述涂鸦字母图像的左侧边缘信息和右侧边缘信息,所述组合命令包括组合间距命令;若所述文本信息关联多个所述涂鸦字母图像,则执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,包括:
    根据第一涂鸦字母图像的所述右侧边缘信息和第二涂鸦字母图像的所述左侧边缘信息的组合对,执行与所述组合对对应的所述组合间距命令,将所述第一涂鸦字母图像与所述第二涂鸦字母图像按预设间距进行组合处理;
    其中,所述第一涂鸦字母图像和所述第二涂鸦字母图像为多个所述涂鸦字母图像中相邻的两个图像,且所述第一涂鸦字母图像位于所述第二涂鸦字母图像的左侧,所述左侧边缘信息和所述右侧边缘信息分别用于表示所述涂鸦字母图像的左侧边缘和右侧边缘的形状信息。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    获取所述涂鸦字母图像的左侧边缘和右侧边缘的非透明像素点的像素坐标;
    根据所述像素坐标,确定每个所述涂鸦字母图像的所述左侧边缘信息和所述右侧边缘信息。
  7. 根据权利要求1所述的方法,其特征在于,与所述文本信息关联的还包括所述涂鸦字母图像的背景图像,所述背景图像的大小大于所述涂鸦字母图像的大小,所述背景图像与所述涂鸦字母图像一一对应;所述方法还包括:
    根据所述涂鸦字母图像的中心位置、所述涂鸦字母图像的大小以及所述背景图像的大小,计算 所述背景图像的位置,得到多个所述涂鸦字母图像对应的整体背景图像;
    将多个所述涂鸦字母图像的图层设置于所述整体背景图像所在的图层之上,得到带边缘的所述涂鸦图案。
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述方法还包括:
    在所述电子设备的熄屏界面、锁屏界面或相机拍摄界面显示所述涂鸦图案。
  9. 一种生成涂鸦图案的装置,其特征在于,包括:
    显示单元,用于显示电子设备的涂鸦图案的设置界面;
    获取单元,用于获取用户在所述设置界面输入的文本信息,根据所述文本信息确定与所述文本信息关联的涂鸦字母图像的属性信息;
    处理单元,用于执行与所述属性信息对应的组合命令,将所述涂鸦字母图像进行组合处理,得到所述涂鸦图案。
  10. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    一个或多个存储器;
    多个应用程序;
    以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行如权利要求1至8任一项所述的生成涂鸦图案的方法。
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被电子设备执行时,使得所述电子设备实现如权利要求1至8任一项所述的生成涂鸦图案的方法。
  12. 一种包含指令的计算机程序产品,其特征在于,所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1至8任一项所述的生成涂鸦图案的方法。
PCT/CN2021/107892 2020-07-27 2021-07-22 生成涂鸦图案的方法、装置、电子设备及存储介质 WO2022022381A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/006,508 US20230298235A1 (en) 2020-07-27 2021-07-22 Graffiti pattern generation method and apparatus, electronic device, and storage medium
EP21849215.5A EP4180949A4 (en) 2020-07-27 2021-07-22 METHOD AND APPARATUS FOR GENERATING GRAFFITI PATTERNS, ELECTRONIC DEVICE AND STORAGE MEDIUM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010730341.XA CN113986406B (zh) 2020-07-27 2020-07-27 生成涂鸦图案的方法、装置、电子设备及存储介质
CN202010730341.X 2020-07-27

Publications (1)

Publication Number Publication Date
WO2022022381A1 true WO2022022381A1 (zh) 2022-02-03

Family

ID=79731421

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/107892 WO2022022381A1 (zh) 2020-07-27 2021-07-22 生成涂鸦图案的方法、装置、电子设备及存储介质

Country Status (4)

Country Link
US (1) US20230298235A1 (zh)
EP (1) EP4180949A4 (zh)
CN (2) CN113986406B (zh)
WO (1) WO2022022381A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812409A (zh) * 2014-12-30 2016-07-27 北京奇虎科技有限公司 在锁屏界面上呈现信息的方法及系统
CN107092415A (zh) * 2017-03-29 2017-08-25 深圳天珑无线科技有限公司 屏幕保护与应用交互方法与装置
CN107341006A (zh) * 2017-06-21 2017-11-10 广东欧珀移动通信有限公司 锁屏壁纸推荐方法及相关产品
US9886182B1 (en) * 2014-04-28 2018-02-06 Sprint Spectrum L.P. Integration of image-sifting with lock-screen interface
CN109032740A (zh) * 2018-07-23 2018-12-18 维沃移动通信有限公司 一种锁屏壁纸的处理方法和电子设备
CN111240774A (zh) * 2019-12-31 2020-06-05 Oppo广东移动通信有限公司 动态壁纸生成方法、装置、存储介质及电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4866013B2 (ja) * 2005-03-31 2012-02-01 富士通株式会社 文字画像生成プログラム、そのシステム、及びその方法
CN102207826B (zh) * 2011-05-30 2016-05-11 中兴通讯股份有限公司 一种涂鸦的方法及系统
CN102332171A (zh) * 2011-07-26 2012-01-25 深圳市万兴软件有限公司 一种艺术字的生成方法与系统
KR102099313B1 (ko) * 2015-05-12 2020-05-15 주식회사 윤디자인그룹 아트 폰트를 생성하기 위한 방법, 장치 및 이를 수행하는 프로그램
CN109905775A (zh) * 2019-01-16 2019-06-18 北京奇艺世纪科技有限公司 一种涂鸦弹幕生成及显示方法、装置、终端设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9886182B1 (en) * 2014-04-28 2018-02-06 Sprint Spectrum L.P. Integration of image-sifting with lock-screen interface
CN105812409A (zh) * 2014-12-30 2016-07-27 北京奇虎科技有限公司 在锁屏界面上呈现信息的方法及系统
CN107092415A (zh) * 2017-03-29 2017-08-25 深圳天珑无线科技有限公司 屏幕保护与应用交互方法与装置
CN107341006A (zh) * 2017-06-21 2017-11-10 广东欧珀移动通信有限公司 锁屏壁纸推荐方法及相关产品
CN109032740A (zh) * 2018-07-23 2018-12-18 维沃移动通信有限公司 一种锁屏壁纸的处理方法和电子设备
CN111240774A (zh) * 2019-12-31 2020-06-05 Oppo广东移动通信有限公司 动态壁纸生成方法、装置、存储介质及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4180949A4

Also Published As

Publication number Publication date
CN113986406B (zh) 2024-01-30
CN113986406A (zh) 2022-01-28
US20230298235A1 (en) 2023-09-21
CN118193095A (zh) 2024-06-14
EP4180949A1 (en) 2023-05-17
EP4180949A4 (en) 2024-01-03

Similar Documents

Publication Publication Date Title
ES2964533T3 (es) Método de control de voz y dispositivo electrónico
CN110114747B (zh) 一种通知处理方法及电子设备
US11930130B2 (en) Screenshot generating method, control method, and electronic device
US20210263564A1 (en) Display Method for Flexible Display, and Terminal
CN111543042B (zh) 通知消息的处理方法及电子设备
CN111176506A (zh) 一种屏幕显示方法及电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2022042285A1 (zh) 一种应用程序界面显示的方法及电子设备
WO2022068483A1 (zh) 应用启动方法、装置和电子设备
WO2022037726A1 (zh) 分屏显示方法和电子设备
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
WO2022001258A1 (zh) 多屏显示方法、装置、终端设备及存储介质
WO2020107463A1 (zh) 一种电子设备的控制方法及电子设备
WO2022143180A1 (zh) 协同显示方法、终端设备及计算机可读存储介质
WO2022042766A1 (zh) 信息显示方法、终端设备及计算机可读存储介质
WO2022095744A1 (zh) Vr显示控制方法、电子设备及计算机可读存储介质
WO2022052740A1 (zh) 一种折叠设备及其开合控制方法
US20220291832A1 (en) Screen Display Method and Electronic Device
CN115016697A (zh) 投屏方法、计算机设备、可读存储介质和程序产品
CN113438366A (zh) 信息通知的交互方法、电子设备和存储介质
WO2022022406A1 (zh) 一种灭屏显示的方法和电子设备
US20240045557A1 (en) Method for Sharing Input Device, Electronic Device, and System
WO2022037408A1 (zh) 一种显示方法及电子设备
WO2022022381A1 (zh) 生成涂鸦图案的方法、装置、电子设备及存储介质
WO2022042774A1 (zh) 头像显示方法及电子设备

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: 21849215

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021849215

Country of ref document: EP

Effective date: 20230209