WO2022062641A1 - Calling interface display method and apparatus, electronic device, and storage medium - Google Patents
Calling interface display method and apparatus, electronic device, and storage medium Download PDFInfo
- Publication number
- WO2022062641A1 WO2022062641A1 PCT/CN2021/109019 CN2021109019W WO2022062641A1 WO 2022062641 A1 WO2022062641 A1 WO 2022062641A1 CN 2021109019 W CN2021109019 W CN 2021109019W WO 2022062641 A1 WO2022062641 A1 WO 2022062641A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- avatar
- contact
- type
- layout
- call interface
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000000007 visual effect Effects 0.000 claims abstract description 21
- 238000012544 monitoring process Methods 0.000 claims abstract description 6
- 238000012545 processing Methods 0.000 claims description 12
- 238000013507 mapping Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 4
- 238000013441 quality evaluation Methods 0.000 description 4
- 230000001413 cellular effect Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000001303 quality assessment method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000007430 reference method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/26—Visual data mining; Browsing structured data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/57—Arrangements for indicating or recording the number of the calling subscriber at the called subscriber's set
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
Definitions
- the present invention relates to the technical field of computer applications, and in particular, to a method for displaying a call interface, an electronic device and a storage medium.
- the contact address book software supports adding avatars or photos to contacts, and displays the avatars or photos in the call interface. Add, create, add, synchronize, etc. through third-party software. After a user has set an avatar for a contact, the contact's avatar can be displayed on the call interface during a call.
- the call interface in the prior art is only differentiated for the case where the contact has an avatar and a contact without an avatar, and the display effect cannot be guaranteed by using the same display mode.
- the present invention provides a method for displaying a call interface, an electronic device and a storage medium, which can effectively improve the visual effect and improve the recognition degree of the call object.
- a method for displaying a call interface including:
- the working state is the call state
- obtain the avatar type of the current call contact wherein the avatar type is the classification mark of the avatar data of the current contact
- the call interface of the corresponding layout type is acquired and displayed according to the avatar type.
- the obtaining the avatar type of the current call contact includes:
- the acquiring and displaying the call interface of the corresponding layout type according to the avatar type includes:
- obtaining and displaying the call interface of the corresponding layout type according to the avatar type includes:
- a default layout is used for display, wherein the default layout is a layout type that does not display contact avatars in the call interface.
- the call interface corresponding to the layout type includes a contact information display area
- the contact information display area includes an avatar display area for displaying a contact avatar
- the visual effect of the contact avatar in the avatar display area is greater than or It is equal to the original visual effect of the obtained contact avatar.
- the layout types include immersive layouts, thumbnail layouts, and abstract layouts
- the image data includes image size and image quality
- the acquiring and displaying the call interface of the corresponding layout types according to the avatar type includes:
- an immersive layout is used to display the contact avatar, wherein the immersive layout is a layout in which the area of the avatar display area is equal to the area of the contact information display area Types of;
- thumbnail layout is used to display the contact avatar, wherein the thumbnail layout is such that the avatar display area is smaller than the contact information display area
- an abstract layout is adopted, wherein the abstract layout is a layout type displayed after the contact avatar is blurred and/or color extracted.
- the method before marking the avatar type of the contact according to the image size and image quality of the contact avatar, the method includes:
- the preset size is determined according to the screen size information.
- a display device for a call interface including:
- a processing module configured to obtain the avatar type of the target current call contact when the working state is the call state, wherein the avatar type is a classification mark of the avatar data of the current contact;
- the execution module is configured to acquire and display the call interface of the corresponding layout type according to the avatar type.
- the display device for the call interface further includes:
- the first obtaining submodule is used for obtaining contact information and detecting whether the contact has an avatar. If yes, mark the contact's avatar type according to the image data of the contact's avatar, if not, mark it as no avatar type.
- the display device for the call interface further includes:
- the first search submodule is used to search for a layout type that has a mapping relationship with the avatar type in a preset database
- the first display sub-module is used to display the call interface according to the layout type obtained by searching.
- the execution module is further configured to use a default layout for display when the avatar type is no avatar type, wherein the default layout is a layout type that does not display contact avatars in the call interface.
- the call interface corresponding to the layout type includes a contact information display area
- the contact information display area includes an avatar display area for displaying a contact avatar
- the visual effect of the contact avatar in the avatar display area is greater than or It is equal to the original visual effect of the obtained contact avatar.
- the layout types include immersive layouts, thumbnail layouts, and abstract layouts
- the image data includes image size and image quality
- the acquiring and displaying the call interface of the corresponding layout types according to the avatar type includes:
- an immersive layout is used to display the contact avatar, wherein the immersive layout is a layout in which the area of the avatar display area is equal to the area of the contact information display area Types of;
- thumbnail layout is used to display the contact avatar, wherein the thumbnail layout is such that the avatar display area is smaller than the contact information display area
- an abstract layout is adopted, wherein the abstract layout is a layout type displayed after the contact avatar is blurred and/or color extracted.
- the display device for the call interface further includes:
- the second acquisition submodule is used to acquire the screen size information of the target terminal
- the first processing submodule is configured to determine the preset size according to the screen size information.
- an electronic device a processor, and a memory for storing processor-executable instructions are provided; wherein, a computer program is stored in the memory, and when the computer program is executed by the processor, the The processor executes the steps of any one of the above-mentioned methods for displaying a call interface.
- a non-volatile computer-readable storage medium wherein computer-readable instructions are stored in the storage medium, and when the instructions in the storage medium are executed by one or more processors, the one or multiple processors execute the steps of the method for displaying a call interface described in any one of the above.
- the display method, electronic device and storage medium of the above-mentioned call interface by monitoring the working state of the target terminal, when the target terminal enters the call state, the layout type displayed by the target terminal is determined according to the avatar type of the current call contact, and then according to different The call interface of the layout type is displayed. Due to the wide range of sources of avatar photos, selecting the corresponding layout type for different contacts based on the avatar type can effectively improve the visual effect of the call interface and improve the recognition of the call object.
- FIG. 1 is a schematic flowchart of a basic flow of a method for displaying a call interface according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of a call interface according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart of an avatar type marking process according to an embodiment of the present invention.
- FIG. 4 is a basic structural block diagram of an apparatus for displaying a call interface according to an embodiment of the present invention.
- FIG. 5 is a schematic diagram of hardware of an electronic device according to an embodiment of the present invention.
- terminal and terminal device used here include both a wireless signal receiver device that only has a wireless signal receiver without transmission capability, and a device that includes receiving and transmitting hardware.
- Such equipment may include: cellular or other communication equipment, which has a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service, personal communication system), which can combine voice, data Processing, fax and/or data communication capabilities; PDA (Personal Digital Assistant), which may include a radio frequency receiver, pager, Internet/Intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System (Global Positioning System) receiver; conventional laptop and/or palmtop computer or other device having and/or including a conventional laptop and/or palmtop computer or other device with a radio frequency receiver.
- PCS Personal Communications Service, personal communication system
- PDA Personal Digital Assistant
- GPS Global Positioning System (Global Positioning System) receiver
- conventional laptop and/or palmtop computer or other device having and/or including a conventional laptop and/or palmtop computer or other device with a radio frequency receiver.
- terminal may be portable, transportable, mounted in a vehicle (air, marine and/or land), or adapted and/or configured to operate locally, and/or In distributed form, run at any other location on Earth and/or in space.
- the "terminal” and “terminal device” used here can also be a communication terminal, an Internet terminal, and a music/video playback terminal, such as a PDA, a MID (Mobile Internet Device) and/or a music/video playback terminal. It can also be a smart TV, a set-top box and other devices.
- FIG. 1 is a schematic flowchart of a basic flowchart of a method for displaying a call interface according to this embodiment. It can be applied to applications such as phone calls and WeChat calls.
- a method for displaying a call interface includes:
- the working state of the target terminal includes but is not limited to the calling state and the non-calling state.
- the classification of the working state can be adjusted according to the actual situation, for example, the working state is divided into a calling state, a use state, a standby state, and the like.
- the working state of the terminal is monitored in the background.
- the call status includes but is not limited to incoming calls, outgoing calls, ongoing calls, hanging up, hanging up, etc.
- the contact information of the current call contact is obtained, and the current call contact is the object of the call state , for example, when using the target terminal to make a call with A, A is the current call contact.
- the contact information of the current call contact can be obtained through the local storage of the target terminal, or obtained from the server through the network, or imported from other applications.
- the contact information includes but is not limited to avatar type, avatar image data, Contact notes and numbers, etc. After the contact information is obtained, the avatar type of the current call contact is determined according to the content recorded in the contact information.
- the avatar image data of the current call contact is obtained, and the avatar type of the current call contact is determined according to the avatar image data, and the avatar type is the avatar type of the current contact's avatar data.
- Category markers may include performing according to the size and image quality of the avatar image data, for example, classifying the avatar image into large size and small size according to the size, classifying the image quality into high quality and low quality, etc., combining multiple classifications Dimension, marking avatars as large size high quality, small size high quality, etc.
- the number of categories can be adjusted according to the actual application scenario, for example, avatars can be divided into large, medium, small three or more according to size type.
- the image quality determination method can be calculated according to the IQA (Image Quality Assessment, image quality assessment) calculation method.
- the image classification method can be combined with size and image quality, for example, images can be classified into large-size low-quality, large-size high-quality, small-size low-quality, and small-size high-quality, etc., or according to actual application scenarios Adjust the parameters on which image classification is based, such as adding color tone, contrast, light and shade, portrait recognition, cropping method, etc. as the basis for marking.
- the marking of the contact avatar type can occur when adding an avatar, modifying an avatar, retrieving a stored avatar, or traversing the stored avatar. After classifying the avatar, the corresponding contact is marked. avatar type, which is obtained directly when the terminal enters the call state.
- the layout type of the content displayed by the target terminal is determined according to the avatar type.
- the layout type can be set according to the actual application scenario.
- the layout type includes immersive layout, thumbnail layout, abstract layout, default layout, etc.
- immersive layout small layout Schematic diagram of the call interface corresponding to the graph layout, abstract layout, and default layout.
- the call interface corresponding to the layout type includes a display area for displaying contact information
- the contact information display area includes an avatar display area for displaying contact avatars
- the contact avatars are displayed in the avatar display area. The visual effect is greater than or equal to the original visual effect of the obtained contact avatar.
- the visual effect is the intuitive visual experience brought by the avatar display.
- the image can be tiled and displayed in most areas of the interface, and when the avatar is small and high-quality, the image can be displayed. In the center of the interface or in the designated area, avoid the poor display effect of small-sized images after tiling to ensure the visual effect of the display area.
- the avatar size is low-quality, blur the avatar to avoid the original image The pixel roughness and other factors cause poor visual effect.
- the immersive layout is a layout type in which the area of the avatar display area is equal to the area of the contact information display area, that is, the avatar display area of the immersive layout covers the entire contact.
- the contact avatar is displayed; if the contact avatar is not larger than the preset size and higher than the preset image quality, a small image layout is adopted, and the small image layout is such that the area of the avatar display area is smaller than the contact information display area.
- the layout type of the area, the contact avatar is displayed; if the contact avatar is lower than the preset image quality, the abstract layout is adopted, and the abstract layout is performed after blurring and/or color extraction processing on the contact avatar.
- the displayed layout type which is displayed after image processing of the contact avatar;
- the default layout is used for display, and the default layout is a layout type that does not display the contact avatar in the call interface, that is, there is no avatar display area in the call interface.
- a database is preset in the system to store the mapping relationship between each avatar type and layout type.
- the avatar type is large size and high quality, which corresponds to the immersive layout; the avatar type is small size and high quality, which corresponds to the small image layout.
- the layout type displayed by the target terminal is determined according to the avatar type of the current call contact, and then the call interface is displayed according to different layout types. Due to the wide range of sources of avatar photos, selecting the corresponding layout type for different contacts based on the avatar type can effectively improve the visual effect of the call interface and improve the recognition of the call object.
- acquiring the avatar type of the current call contact includes: acquiring contact information, detecting whether the contact has an avatar, and if so, marking the avatar type of the contact according to the image data of the contact avatar, If no, mark it as no avatar type.
- the step of marking the avatar type of the contact may also be performed when acquiring an avatar of an added contact, modifying an avatar of a contact, retrieving a avatar stored, traversing the avatar stored, or detecting Executed when the working state of the target terminal is the target call state.
- marking the avatar type when traversing the stored avatars is taken as an example, the target terminal extracts the contact information in the address book according to the preset rules to determine the avatar type of each contact, which is the type of the avatar during the call.
- the layout type selection provides the basis.
- the preset rules can be every certain time interval, every set time point, when a new contact is added, or when the number of contacts reaches a certain number, etc., but not limited to this, such as setting Every other week, every first of the month, every time a new contact is added, or every five contacts, etc.
- the address book information is obtained, including the contact information of all contacts stored in the target terminal, and the contact information includes but is not limited to the avatar type, avatar image data, contact notes and numbers, etc.
- the contact information of the first contact is obtained first, and the corresponding avatar image data is obtained therefrom. If the contact information does not contain an avatar, it is marked as no avatar type. With avatars, the avatar image data is classified according to the preset classification rules and then the avatar type is marked.
- the image data used by the classification rules include but are not limited to image size, image quality, image tone, contrast, brightness, and portrait recognition content. , cutting method.
- images larger than the preset size are defined as large-sized avatars, and the rest are small-sized avatars, and images with an IQA evaluation of greater than the preset quality are used as High-quality images, and the rest as low-quality avatars.
- images are divided into large-size low-quality, large-size high-quality, small-size low-quality, small-size high-quality, and those without avatar data are defined as no avatar etc., store the classified avatar types.
- the storage method can be directly written into the contact information, or stored separately. For example, the storage area specified in the terminal or server is used to store the avatar types of all contacts. data.
- the preset size in this embodiment may refer to the length, width or resolution of the image.
- the preset size is a resolution of 300 ⁇ 300, or the length and width are 8 inches and 6 inches, and 72PPI (pixels per inch, pixels per inch) etc., but not limited to this.
- the avatar image of the current call contact is obtained, and then the image is processed.
- the processing method includes blurring or extracting colors, abstracting the avatar image, and reducing the amount of noise or mosaic effects to improve the display of low-quality avatars.
- the image processing method can be adjusted according to actual application scenarios, such as adjusting color difference, adjusting brightness, adjusting grayscale, sharpening, decolorizing, clipping, scaling, etc., but not limited thereto.
- a preset size is set in the system.
- the avatar is determined to be a large-sized avatar, and when the size of the avatar is not larger than the preset size, the avatar is determined to be a small-sized avatar.
- the size in this embodiment may refer to the length, width or resolution of the image.
- the preset size threshold is a resolution of 300 ⁇ 300, or a length and width of 8 inches and 6 inches, and 72PPI (pixels per inch, pixels per inch), etc. , but not limited to this.
- the resolution is used as an example for determining the size.
- the size threshold is 300x300, when the resolution of the avatar size is greater than 300x300, it is determined that the avatar information meets the size condition, otherwise it does not.
- the size threshold can be adjusted according to actual application requirements. For example, when the effect of avatar display needs to be improved, the size threshold can be increased, for example, the size threshold is determined as a resolution of 500x500.
- a preset image quality is set in the system, and IQA calculation is performed on the avatar image data to obtain the corresponding image quality parameters.
- the image quality parameter is greater than the preset image quality, the avatar is determined to be a high-quality avatar.
- the image quality parameter is not greater than the preset image quality
- the avatar is determined to be a low-quality avatar.
- the full reference image quality evaluation refers to comparing the image to be evaluated with the reference image when an ideal image is selected as the reference image. The difference between the images is analyzed, the distortion degree of the image to be evaluated is analyzed, and the quality evaluation of the image to be evaluated is obtained. For example, based on the statistical basis of image pixels, the global size of the pixel error between the avatar image and the reference image is calculated to measure the quality of the image. Peak-Signal to Noise Ratio (PSNR) or mean square error (Mean Square) Error, MSE) as the parameter value.
- PSNR Peak-Signal to Noise Ratio
- MSE mean square error
- the method without reference is a method for calculating image quality based on the statistical characteristics of the image, which can use the average value of image pixels, the degree of dispersion or average gradient of the gray value of image pixels relative to the average value, etc., or other IQA calculation methods in the prior art can be used. , as long as the quantitative expression of image quality is realized, and details are not repeated here.
- the preset size can be adjusted according to the size of the screen to ensure a better display effect under different screen sizes. Specifically, before judging whether the avatar information meets the preset size condition, the :
- the screen size information of the target terminal can be recorded in the terminal or in the corresponding server. Before classifying the avatar type, obtain the screen size information of the target terminal.
- the screen size information includes the length, width, resolution, etc. of the screen. data, but not limited to.
- the avatar size threshold that has a mapping relationship with the screen size information according to the screen size information, and use it as the preset size.
- different avatar size thresholds are preset for each screen size.
- the avatar size thresholds are divided into multiple gradients to correspond to different screen sizes.
- the screen size can be screen size, length, width, resolution, etc.
- This implementation For example, take the screen size as the size of the screen as an example, set different avatar size thresholds according to different screen sizes. For example, when the screen is smaller than 5 inches, the avatar size threshold is 300*300 resolution; when the screen is larger than 5 inches and less than 6 inches, the avatar size threshold is The size threshold is 400*400 resolution; when the screen is larger than 6 inches, the avatar size threshold is 500*500 resolution.
- the corresponding gradient between the screen size and the size threshold can be adjusted according to the actual application scenario. For example, when the display effect needs to be more finely ensured, the number of gradients can be larger.
- Embodiments of the invention also provide a display device for a call interface. Please refer to FIG. 4 for details.
- FIG. 4 is a basic structural block diagram of a display device implementing a call interface.
- the display device of the call interface includes: an acquisition module 2100 , a processing module 2200 and an execution module 2300 .
- the obtaining module is used to monitor the working state of the target terminal;
- the processing module is used to obtain the avatar type of the target current call contact when the working state is the calling state, wherein the avatar type is the avatar type of the current contact.
- the execution module is used to obtain and display the call interface of the corresponding layout type according to the avatar type.
- the layout type displayed by the target terminal is determined according to the avatar type of the current call contact, and then the call interface is displayed according to different layout types. Due to the wide range of sources of avatar photos, selecting the corresponding layout type for different contacts based on the avatar type can effectively improve the visual effect of the call interface and improve the recognition of the call object.
- the display device for the call interface further includes: a first acquisition sub-module for acquiring contact information, detecting whether the contact has an avatar, if so, marking the avatar type of the contact according to the image data of the contact avatar, If no, mark it as no avatar type.
- the apparatus for displaying the call interface further includes: a first searching sub-module and a first displaying sub-module.
- the first search sub-module is used to search for a layout type that has a mapping relationship with the avatar type in a preset database; the first display sub-module is used to display the call interface according to the searched layout type.
- the execution module is further configured to use a default layout for display when the avatar type is no avatar type, wherein the default layout is a layout type that does not display contact avatars in the call interface.
- the call interface corresponding to the layout type includes a contact information display area
- the contact information display area includes an avatar display area for displaying contact avatars
- the visual effects of the contact avatars in the avatar display area Greater than or equal to the original visual effect of the obtained contact avatar.
- the layout types include immersive layouts, thumbnail layouts and abstract layouts
- the image data includes image size and image quality
- the acquiring and displaying the call interface of the corresponding layout types according to the avatar type includes :
- an immersive layout is used to display the contact avatar, wherein the immersive layout is a layout in which the area of the avatar display area is equal to the area of the contact information display area Types of;
- thumbnail layout is used to display the contact avatar, wherein the thumbnail layout is such that the avatar display area is smaller than the contact information display area
- an abstract layout is adopted, wherein the abstract layout is a layout type displayed after the contact avatar is blurred and/or color extracted.
- the apparatus for presenting the call interface further includes: a second acquiring sub-module and a first processing sub-module.
- the second acquisition sub-module is used for acquiring the screen size information of the target terminal;
- the first processing sub-module is used for determining the preset size according to the screen size information.
- Embodiments of the present invention also provide an electronic device. Please refer to FIG. 5 for details.
- FIG. 5 is a schematic diagram of the hardware of the electronic device according to the embodiment.
- the electronic device includes a processor, a non-volatile storage medium, a memory and a network interface connected through a system bus.
- the non-volatile storage medium of the electronic device stores an operating system, a database and computer-readable instructions, and the database can store a control information sequence.
- the processor can realize a A display method of a call interface.
- the processor of the electronic device is used to provide computing and control capabilities to support the operation of the entire electronic device.
- Computer-readable instructions may be stored in the memory of the electronic device, and when the computer-readable instructions are executed by the processor, the processor may execute the method for displaying a call interface in the embodiments of the present application.
- the network interface of the electronic device is used to connect and communicate with the terminal.
- the present invention also provides a storage medium storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors, cause the one or more processors to execute the calling interface described in any of the foregoing embodiments. Show the steps of the method.
- the realization of all or part of the processes in the methods of the above embodiments can be accomplished by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the program is During execution, it may include the processes of the embodiments of the above-mentioned methods.
- the aforementioned storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only storage memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Computer Networks & Wireless Communication (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A calling interface display method and apparatus, an electronic device, and a storage medium, comprising: monitoring a working state of a target terminal (S1100); obtaining an avatar type of a current calling contact when the working state is a calling state, wherein the avatar type is a classification label of avatar data of the current calling contact (S1200); and obtaining a calling interface of a corresponding layout type according to the avatar type and displaying same (S1300). The working state of the target terminal is monitored, the layout type displayed on the target terminal is determined according to the avatar type of the current calling contact when the target terminal is in the calling state, and then display is performed according to calling interfaces of different layout types. Avatar pictures are widely available, and therefore, a visual effect of the calling interface can be effectively improved by selecting corresponding layout types for different contacts on the basis of the avatar types, thereby improving the recognition of a calling object.
Description
本发明涉及计算机应用技术领域,特别是涉及一种通话界面的展示方法、电子设备及存储介质。The present invention relates to the technical field of computer applications, and in particular, to a method for displaying a call interface, an electronic device and a storage medium.
目前联系人通讯录类软件支持为联系人添加头像或照片,并在通话界面中显示头像或照片,联系人头像的来源有多种情况,如通过通讯录应用直接拍照添加,从相册中选择和添加,通过第三方软件制作、添加、同步等。当用户为联系人设置了头像后,在通话时可在通话界面中显示联系人的头像。At present, the contact address book software supports adding avatars or photos to contacts, and displays the avatars or photos in the call interface. Add, create, add, synchronize, etc. through third-party software. After a user has set an avatar for a contact, the contact's avatar can be displayed on the call interface during a call.
现有技术中的通话界面,只针对联系人有头像和无头像的情况区分处理,采用同样的显示方式无法保证显示效果。The call interface in the prior art is only differentiated for the case where the contact has an avatar and a contact without an avatar, and the display effect cannot be guaranteed by using the same display mode.
【发明内容】[Content of the invention]
基于此,本发明提供一种通话界面的展示方法、电子设备及存储介质,可以有效以提升视觉效果以及提高通话对象识别度。Based on this, the present invention provides a method for displaying a call interface, an electronic device and a storage medium, which can effectively improve the visual effect and improve the recognition degree of the call object.
第一方面,提供一种通话界面的展示方法,包括:In a first aspect, a method for displaying a call interface is provided, including:
监控目标终端的工作状态;Monitor the working status of the target terminal;
当所述工作状态为通话状态时,获取当前通话联系人的头像类型,其中,所述头像类型为所述当前联系人的头像数据的分类标记;When the working state is the call state, obtain the avatar type of the current call contact, wherein the avatar type is the classification mark of the avatar data of the current contact;
根据所述头像类型获取对应的布局类型的通话界面并展示。The call interface of the corresponding layout type is acquired and displayed according to the avatar type.
可选的,所述获取当前通话联系人的头像类型包括:Optionally, the obtaining the avatar type of the current call contact includes:
获取联系人信息,检测联系人是否具备头像,如是,根据联系人头像的图像数据标记联系人的头像类型,如否,标记为无头像类型。Obtain contact information, and detect whether the contact has an avatar. If so, mark the contact's avatar type according to the image data of the contact's avatar. If no, mark it as no avatar type.
可选的,所述根据所述头像类型获取对应的布局类型的通话界面并展示包括:Optionally, the acquiring and displaying the call interface of the corresponding layout type according to the avatar type includes:
在预设的数据库中查找与所述头像类型具有映射关系的布局类型;Searching for a layout type that has a mapping relationship with the avatar type in a preset database;
根据查找得到的布局类型的通话界面进行展示。Display the call interface according to the layout type obtained by the search.
可选的,所述根据所述头像类型获取对应的布局类型的通话界面并展示包 括:Optionally, obtaining and displaying the call interface of the corresponding layout type according to the avatar type includes:
当所述头像类型为无头像类型时,采用默认布局进行展示,其中,所述默认布局为通话界面中不显示联系人头像的布局类型。When the avatar type is no avatar type, a default layout is used for display, wherein the default layout is a layout type that does not display contact avatars in the call interface.
可选的,对应布局类型的通话界面中包括联系人信息展示区域,所述联系人信息展示区域包括用于展示联系人头像的头像展示区域,联系人头像在该头像展示区域的视觉效果大于或等于获取到的联系人头像的原始视觉效果。Optionally, the call interface corresponding to the layout type includes a contact information display area, and the contact information display area includes an avatar display area for displaying a contact avatar, and the visual effect of the contact avatar in the avatar display area is greater than or It is equal to the original visual effect of the obtained contact avatar.
可选的,所述布局类型包括沉浸布局、小图布局和抽象布局,所述图像数据包括图像尺寸和图像质量,所述根据所述头像类型获取对应的布局类型的通话界面并展示包括:Optionally, the layout types include immersive layouts, thumbnail layouts, and abstract layouts, the image data includes image size and image quality, and the acquiring and displaying the call interface of the corresponding layout types according to the avatar type includes:
若联系人头像大于预设尺寸,且高于预设图像质量,采用沉浸布局,将所述联系人头像进行展示,其中,所述沉浸布局为头像展示区域面积等于联系人信息展示区域面积的布局类型;If the contact avatar is larger than the preset size and higher than the preset image quality, an immersive layout is used to display the contact avatar, wherein the immersive layout is a layout in which the area of the avatar display area is equal to the area of the contact information display area Types of;
若联系人头像不大于预设尺寸,且高于预设图像质量,采用小图布局,将所述联系人头像进行展示,其中,所述小图布局为头像展示区域面积小于联系人信息展示区域面积的布局类型;If the contact avatar is not larger than the preset size and higher than the preset image quality, a thumbnail layout is used to display the contact avatar, wherein the thumbnail layout is such that the avatar display area is smaller than the contact information display area The layout type of the area;
若联系人头像低于预设的图像质量,采用抽象布局,其中,所述抽象布局为对所述联系人头像进行模糊处理和/或颜色提取处理后进行展示的布局类型。If the image quality of the contact avatar is lower than the preset image quality, an abstract layout is adopted, wherein the abstract layout is a layout type displayed after the contact avatar is blurred and/or color extracted.
可选的,所述根据联系人头像的图像尺寸和图像质量标记联系人的头像类型之前,包括:Optionally, before marking the avatar type of the contact according to the image size and image quality of the contact avatar, the method includes:
获取目标终端的屏幕尺寸信息;Get the screen size information of the target terminal;
根据所述屏幕尺寸信息确定所述预设尺寸。The preset size is determined according to the screen size information.
第二方面,提供一种通话界面的展示装置,包括:In a second aspect, a display device for a call interface is provided, including:
获取模块,用于监控目标终端的工作状态;Obtaining a module for monitoring the working status of the target terminal;
处理模块,用于当所述工作状态为通话状态时,获取目标当前通话联系人的头像类型,其中,所述头像类型为所述当前联系人的头像数据的分类标记;a processing module, configured to obtain the avatar type of the target current call contact when the working state is the call state, wherein the avatar type is a classification mark of the avatar data of the current contact;
执行模块,用于根据所述头像类型获取对应的布局类型的通话界面并展示。The execution module is configured to acquire and display the call interface of the corresponding layout type according to the avatar type.
可选的,所述通话界面的展示装置,还包括:Optionally, the display device for the call interface further includes:
第一获取子模块,用于获取联系人信息,检测联系人是否具备头像,如是,根据联系人头像的图像数据标记联系人的头像类型,如否,标记为无头像类型。The first obtaining submodule is used for obtaining contact information and detecting whether the contact has an avatar. If yes, mark the contact's avatar type according to the image data of the contact's avatar, if not, mark it as no avatar type.
可选的,所述通话界面的展示装置,还包括:Optionally, the display device for the call interface further includes:
第一查找子模块,用于在预设的数据库中查找与所述头像类型具有映射关系的布局类型;The first search submodule is used to search for a layout type that has a mapping relationship with the avatar type in a preset database;
第一展示子模块,用于根据查找得到的布局类型的通话界面进行展示。The first display sub-module is used to display the call interface according to the layout type obtained by searching.
可选的,所述执行模块还用于当所述头像类型为无头像类型时,采用默认布局进行展示,其中,所述默认布局为通话界面中不显示联系人头像的布局类型。Optionally, the execution module is further configured to use a default layout for display when the avatar type is no avatar type, wherein the default layout is a layout type that does not display contact avatars in the call interface.
可选的,对应布局类型的通话界面中包括联系人信息展示区域,所述联系人信息展示区域包括用于展示联系人头像的头像展示区域,联系人头像在该头像展示区域的视觉效果大于或等于获取到的联系人头像的原始视觉效果。Optionally, the call interface corresponding to the layout type includes a contact information display area, and the contact information display area includes an avatar display area for displaying a contact avatar, and the visual effect of the contact avatar in the avatar display area is greater than or It is equal to the original visual effect of the obtained contact avatar.
可选的,所述布局类型包括沉浸布局、小图布局和抽象布局,所述图像数据包括图像尺寸和图像质量,所述根据所述头像类型获取对应的布局类型的通话界面并展示包括:Optionally, the layout types include immersive layouts, thumbnail layouts, and abstract layouts, the image data includes image size and image quality, and the acquiring and displaying the call interface of the corresponding layout types according to the avatar type includes:
若联系人头像大于预设尺寸,且高于预设图像质量,采用沉浸布局,将所述联系人头像进行展示,其中,所述沉浸布局为头像展示区域面积等于联系人信息展示区域面积的布局类型;If the contact avatar is larger than the preset size and higher than the preset image quality, an immersive layout is used to display the contact avatar, wherein the immersive layout is a layout in which the area of the avatar display area is equal to the area of the contact information display area Types of;
若联系人头像不大于预设尺寸,且高于预设图像质量,采用小图布局,将所述联系人头像进行展示,其中,所述小图布局为头像展示区域面积小于联系人信息展示区域面积的布局类型;If the contact avatar is not larger than the preset size and higher than the preset image quality, a thumbnail layout is used to display the contact avatar, wherein the thumbnail layout is such that the avatar display area is smaller than the contact information display area The layout type of the area;
若联系人头像低于预设的图像质量,采用抽象布局,其中,所述抽象布局为对所述联系人头像进行模糊处理和/或颜色提取处理后进行展示的布局类型。If the image quality of the contact avatar is lower than the preset image quality, an abstract layout is adopted, wherein the abstract layout is a layout type displayed after the contact avatar is blurred and/or color extracted.
可选的,所述通话界面的展示装置,还包括:Optionally, the display device for the call interface further includes:
第二获取子模块,用于获取目标终端的屏幕尺寸信息;The second acquisition submodule is used to acquire the screen size information of the target terminal;
第一处理子模块,用于根据所述屏幕尺寸信息确定所述预设尺寸。The first processing submodule is configured to determine the preset size according to the screen size information.
第三方面,提供一种电子设备,处理器及用于存储处理器可执行指令的存储器;其中,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行上述任一项所述的通话界面的展示方法的步骤。In a third aspect, an electronic device, a processor, and a memory for storing processor-executable instructions are provided; wherein, a computer program is stored in the memory, and when the computer program is executed by the processor, the The processor executes the steps of any one of the above-mentioned methods for displaying a call interface.
第四方面,提供一种非易失性计算机可读存储介质,所述存储介质中存储有计算机可读指令,当所述存储介质中的指令被一个或多个处理器执行时,所述一个或多个处理器执行上述任一项所述的通话界面的展示方法的步骤。In a fourth aspect, a non-volatile computer-readable storage medium is provided, wherein computer-readable instructions are stored in the storage medium, and when the instructions in the storage medium are executed by one or more processors, the one or multiple processors execute the steps of the method for displaying a call interface described in any one of the above.
上述通话界面的展示方法、电子设备及存储介质,通过监控目标终端的工 作状态,当目标终端进入通话状态时,根据当前通话联系人的头像类型确定目标终端所显示的布局类型,然后根据不同的布局类型的通话界面进行展示。由于头像照片的来源广泛,以头像类型为依据为不同的联系人选择对应的布局类型,可以有效提升通话界面的视觉效果,提高通话对象识别度。The display method, electronic device and storage medium of the above-mentioned call interface, by monitoring the working state of the target terminal, when the target terminal enters the call state, the layout type displayed by the target terminal is determined according to the avatar type of the current call contact, and then according to different The call interface of the layout type is displayed. Due to the wide range of sources of avatar photos, selecting the corresponding layout type for different contacts based on the avatar type can effectively improve the visual effect of the call interface and improve the recognition of the call object.
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1为本发明实施例通话界面的展示方法的基本流程示意图;FIG. 1 is a schematic flowchart of a basic flow of a method for displaying a call interface according to an embodiment of the present invention;
图2为本发明实施例的通话界面示意图;2 is a schematic diagram of a call interface according to an embodiment of the present invention;
图3为本发明实施例的头像类型标记流程示意图;FIG. 3 is a schematic flowchart of an avatar type marking process according to an embodiment of the present invention;
图4为本发明实施例通话界面的展示装置的基本结构框图;4 is a basic structural block diagram of an apparatus for displaying a call interface according to an embodiment of the present invention;
图5为本发明实施例电子设备硬件示意图。FIG. 5 is a schematic diagram of hardware of an electronic device according to an embodiment of the present invention.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order for those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
在本发明的说明书和权利要求书及上述附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些操作可以不按照其在本文中出现的顺序来执行或并行执行,操作的序号如101、102等,仅仅是用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。In some of the processes described in the description and claims of the present invention and the above-mentioned drawings, various operations are included in a specific order, but it should be clearly understood that these operations may not be in accordance with the order in which they appear herein. For execution or parallel execution, the sequence numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. Additionally, these flows may include more or fewer operations, and these operations may be performed sequentially or in parallel. It should be noted that the descriptions such as "first" and "second" in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit "first" and "second" are different types.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.
本技术领域技术人员可以理解,这里所使用的“终端”、“终端设备”既包括无线信号接收器的设备,其仅具备无发射能力的无线信号接收器的设备,又包括接收和发射硬件的设备,其具有能够在双向通信链路上,执行双向通信的接收和发射硬件的设备。这种设备可以包括:蜂窝或其他通信设备,其具有单线路显示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备;PCS(Personal Communications Service,个人通信系统),其可以组合语音、数据处理、传真和/或数据通信能力;PDA(Personal Digital Assistant,个人数字助理),其可以包括射频接收器、寻呼机、互联网/内联网访问、网络浏览器、记事本、日历和/或GPS(Global Positioning System,全球定位系统)接收器;常规膝上型和/或掌上型计算机或其他设备,其具有和/或包括射频接收器的常规膝上型和/或掌上型计算机或其他设备。这里所使用的“终端”、“终端设备”可以是便携式、可运输、安装在交通工具(航空、海运和/或陆地)中的,或者适合于和/或配置为在本地运行,和/或以分布形式,运行在地球和/或空间的任何其他位置运行。这里所使用的“终端”、“终端设备”还可以是通信终端、上网终端、音乐/视频播放终端,例如可以是PDA、MID(Mobile Internet Device,移动互联网设备)和/或具有音乐/视频播放功能的移动电话,也可以是智能电视、机顶盒等设备。Those skilled in the art can understand that the "terminal" and "terminal device" used here include both a wireless signal receiver device that only has a wireless signal receiver without transmission capability, and a device that includes receiving and transmitting hardware. A device having receive and transmit hardware capable of performing two-way communications over a two-way communication link. Such equipment may include: cellular or other communication equipment, which has a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service, personal communication system), which can combine voice, data Processing, fax and/or data communication capabilities; PDA (Personal Digital Assistant), which may include a radio frequency receiver, pager, Internet/Intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System (Global Positioning System) receiver; conventional laptop and/or palmtop computer or other device having and/or including a conventional laptop and/or palmtop computer or other device with a radio frequency receiver. As used herein, "terminal", "terminal equipment" may be portable, transportable, mounted in a vehicle (air, marine and/or land), or adapted and/or configured to operate locally, and/or In distributed form, run at any other location on Earth and/or in space. The "terminal" and "terminal device" used here can also be a communication terminal, an Internet terminal, and a music/video playback terminal, such as a PDA, a MID (Mobile Internet Device) and/or a music/video playback terminal. It can also be a smart TV, a set-top box and other devices.
具体地请参阅图1,图1为本实施例通话界面的展示方法的基本流程示意图。可应用至电话、微信通话等应用。Specifically, please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a basic flowchart of a method for displaying a call interface according to this embodiment. It can be applied to applications such as phone calls and WeChat calls.
如图1所示,一种通话界面的展示方法,包括:As shown in Figure 1, a method for displaying a call interface includes:
S1100、监控目标终端的工作状态;S1100. Monitor the working state of the target terminal;
目标终端的工作状态包括但不限于通话状态及非通话状态,工作状态的分类可以根据实际情况进行调整,例如将工作状态分为通话状态、使用状态、待机状态等。目标终端在正常工作或待机状态时,后台监控该终端的工作状态。The working state of the target terminal includes but is not limited to the calling state and the non-calling state. The classification of the working state can be adjusted according to the actual situation, for example, the working state is divided into a calling state, a use state, a standby state, and the like. When the target terminal is in normal working or standby state, the working state of the terminal is monitored in the background.
S1200、当所述工作状态为通话状态时,获取当前通话联系人的头像类型,其中,所述头像类型为所述当前联系人的头像数据的分类标记;S1200. When the working state is the call state, obtain the avatar type of the current call contact, wherein the avatar type is the classification mark of the avatar data of the current contact;
通话状态包括但不限于来电、去电、通话中、挂起、挂断等,当监控到目标终端进入通话状态时,获取到当前通话联系人的联系人信息,当前通话联系人为通话状态的对象,例如利用目标终端与A进行通话时,A即为当前通话联系人。当前通话联系人的联系人信息的获取可以通过目标终端的本地存储,也可以通过网络在服务器进行获取,或者从其他的应用程序中导入,联系人信息 包括但不限于头像类型、头像图像数据、联系人备注和号码等。在获取得到联系人信息后,根据联系人信息中记载的内容确定当前通话联系人的头像类型。The call status includes but is not limited to incoming calls, outgoing calls, ongoing calls, hanging up, hanging up, etc. When it is monitored that the target terminal enters the call state, the contact information of the current call contact is obtained, and the current call contact is the object of the call state , for example, when using the target terminal to make a call with A, A is the current call contact. The contact information of the current call contact can be obtained through the local storage of the target terminal, or obtained from the server through the network, or imported from other applications. The contact information includes but is not limited to avatar type, avatar image data, Contact notes and numbers, etc. After the contact information is obtained, the avatar type of the current call contact is determined according to the content recorded in the contact information.
在一些实施方式中,在确定目标终端进入通话状态后,获取当前通话联系人的头像图像数据,根据头像图像数据确定当前通话联系人的头像类型,头像类型为所述当前联系人的头像数据的分类标记。具体的,分类标记的方法可以包括根据头像图像数据的尺寸和图像质量进行,例如根据尺寸将头像图像分为大尺寸和小尺寸、将图像质量分为高质量和低质量等,结合多个分类维度,将头像标记为大尺寸高质量、小尺寸高质量等等,作为头像类型,分类的数量可以根据实际应用场景进行调整,例如可以根据尺寸将头像分为大、中、小三种或更多的类型。图像质量的确定方法可以根据IQA(Image Quality Assessment,图像质量评价)计算方式进行计算。In some embodiments, after it is determined that the target terminal is in a call state, the avatar image data of the current call contact is obtained, and the avatar type of the current call contact is determined according to the avatar image data, and the avatar type is the avatar type of the current contact's avatar data. Category markers. Specifically, the method of classifying and marking may include performing according to the size and image quality of the avatar image data, for example, classifying the avatar image into large size and small size according to the size, classifying the image quality into high quality and low quality, etc., combining multiple classifications Dimension, marking avatars as large size high quality, small size high quality, etc. As avatar types, the number of categories can be adjusted according to the actual application scenario, for example, avatars can be divided into large, medium, small three or more according to size type. The image quality determination method can be calculated according to the IQA (Image Quality Assessment, image quality assessment) calculation method.
在一些实施方式中,图像的分类方法可以结合尺寸及图像质量,例如将图像分为大尺寸低质量、大尺寸高质量、小尺寸低质量及小尺寸高质量等,也可以根据实际的应用场景调整图像分类所依据的参数,例如增加色调、对比度、明暗、人像识别、裁剪方式等内容作为标记依据。In some embodiments, the image classification method can be combined with size and image quality, for example, images can be classified into large-size low-quality, large-size high-quality, small-size low-quality, and small-size high-quality, etc., or according to actual application scenarios Adjust the parameters on which image classification is based, such as adding color tone, contrast, light and shade, portrait recognition, cropping method, etc. as the basis for marking.
在一些实施方式中,对联系人头像类型的标记,可发生在添加头像时、修改头像时、对已储存的头像检索时或遍历已储存的头像进行,将头像进行分类后,标记对应联系人的头像类型,终端进入通话状态时直接获取。In some embodiments, the marking of the contact avatar type can occur when adding an avatar, modifying an avatar, retrieving a stored avatar, or traversing the stored avatar. After classifying the avatar, the corresponding contact is marked. avatar type, which is obtained directly when the terminal enters the call state.
S1300、根据所述头像类型获取对应的布局类型的通话界面并展示;S1300, acquiring and displaying a call interface of a corresponding layout type according to the avatar type;
在获取到当前通话联系人的头像类型之后,根据头像类型确定目标终端显示内容的布局类型。具体的,布局类型可以根据实际应用场景进行设置,例如布局类型包括沉浸布局、小图布局、抽象布局、默认布局等,如图2所示,图2中从左至右依次为沉浸布局、小图布局、抽象布局和默认布局对应的通话界面示意图。在一些实施方式中,对应布局类型的通话界面中包括用于展示联系人信息展示区域,联系人信息展示区域中包含有用于展示联系人头像的头像展示区域,联系人头像在该头像展示区域的视觉效果大于或等于获取到的联系人头像的原始视觉效果,展示区域的面积至少有两种,对应的头像尺寸类型也至少有两种。视觉效果为头像展示时带来的直观视觉感受,例如当头像为大尺寸高质量时,可以将图像平铺展示在界面的大部分区域,而当头像为小尺寸高质量时,可以将图像展示在界面的中心或指定的区域内,避免小尺寸图像平铺后显 示效果不佳,以确保展示区域的视觉效果,当头像尺寸为低质量时,将头像进行模糊化处理,以避免头像中原本的像素点粗糙等因素造成视觉效果较差。After the avatar type of the current call contact is acquired, the layout type of the content displayed by the target terminal is determined according to the avatar type. Specifically, the layout type can be set according to the actual application scenario. For example, the layout type includes immersive layout, thumbnail layout, abstract layout, default layout, etc. As shown in Figure 2, from left to right in Figure 2, immersive layout, small layout Schematic diagram of the call interface corresponding to the graph layout, abstract layout, and default layout. In some embodiments, the call interface corresponding to the layout type includes a display area for displaying contact information, the contact information display area includes an avatar display area for displaying contact avatars, and the contact avatars are displayed in the avatar display area. The visual effect is greater than or equal to the original visual effect of the obtained contact avatar. There are at least two types of display areas and at least two types of avatar sizes. The visual effect is the intuitive visual experience brought by the avatar display. For example, when the avatar is large and high-quality, the image can be tiled and displayed in most areas of the interface, and when the avatar is small and high-quality, the image can be displayed. In the center of the interface or in the designated area, avoid the poor display effect of small-sized images after tiling to ensure the visual effect of the display area. When the avatar size is low-quality, blur the avatar to avoid the original image The pixel roughness and other factors cause poor visual effect.
若联系人头像大于预设尺寸,且高于预设图像质量,采用沉浸布局,沉浸布局为头像展示区域面积等于联系人信息展示区域面积的布局类型,即沉浸布局的头像展示区域覆盖整个联系人信息展示区域,将所述联系人头像进行展示;若联系人头像不大于预设尺寸,且高于预设图像质量,采用小图布局,小图布局为头像展示区域面积小于联系人信息展示区域面积的布局类型,将所述联系人头像进行展示;若联系人头像低于预设的图像质量,采用抽象布局,抽象布局为对所述联系人头像进行模糊处理和/或颜色提取处理后进行展示的布局类型,对所述联系人头像进行图像处理后进行展示;If the contact avatar is larger than the preset size and higher than the preset image quality, the immersive layout is adopted. The immersive layout is a layout type in which the area of the avatar display area is equal to the area of the contact information display area, that is, the avatar display area of the immersive layout covers the entire contact. In the information display area, the contact avatar is displayed; if the contact avatar is not larger than the preset size and higher than the preset image quality, a small image layout is adopted, and the small image layout is such that the area of the avatar display area is smaller than the contact information display area The layout type of the area, the contact avatar is displayed; if the contact avatar is lower than the preset image quality, the abstract layout is adopted, and the abstract layout is performed after blurring and/or color extraction processing on the contact avatar. The displayed layout type, which is displayed after image processing of the contact avatar;
在一些实施方式中,若联系人为无头像类型,采用默认布局进行展示,默认布局为通话界面中不显示联系人头像的布局类型,即通话界面中不存在头像展示区域。In some embodiments, if the contact has no avatar type, the default layout is used for display, and the default layout is a layout type that does not display the contact avatar in the call interface, that is, there is no avatar display area in the call interface.
系统中预设有数据库用于存储每一个头像类型与布局类型的映射关系,例如头像类型为大尺寸高质量,对应沉浸布局;头像类型为小尺寸高质量,对应小图布局等,在确定当前通话联系人的头像类型之后,查找与头像类型具有映射关系的布局类型,将联系人头像设置在头像展示区域,以对应布局类型的通话界面进行展示。A database is preset in the system to store the mapping relationship between each avatar type and layout type. For example, the avatar type is large size and high quality, which corresponds to the immersive layout; the avatar type is small size and high quality, which corresponds to the small image layout. After the avatar type of the call contact, find the layout type that has a mapping relationship with the avatar type, set the contact avatar in the avatar display area, and display the call interface corresponding to the layout type.
通过监控目标终端的工作状态,当目标终端进入通话状态时,根据当前通话联系人的头像类型确定目标终端所显示的布局类型,然后根据不同的布局类型的通话界面进行展示。由于头像照片的来源广泛,以头像类型为依据为不同的联系人选择对应的布局类型,可以有效提升通话界面的视觉效果,提高通话对象识别度。By monitoring the working state of the target terminal, when the target terminal enters the call state, the layout type displayed by the target terminal is determined according to the avatar type of the current call contact, and then the call interface is displayed according to different layout types. Due to the wide range of sources of avatar photos, selecting the corresponding layout type for different contacts based on the avatar type can effectively improve the visual effect of the call interface and improve the recognition of the call object.
在一些实施方式中,如图3所示,获取当前通话联系人的头像类型包括:获取联系人信息,检测联系人是否具备头像,如是,根据联系人头像的图像数据标记联系人的头像类型,如否,标记为无头像类型。In some embodiments, as shown in FIG. 3 , acquiring the avatar type of the current call contact includes: acquiring contact information, detecting whether the contact has an avatar, and if so, marking the avatar type of the contact according to the image data of the contact avatar, If no, mark it as no avatar type.
在一些实施方式中,对联系人的头像类型进行标记的步骤还可以在获取添加的联系人头像时、修改联系人头像时、对已储存的头像进行检索时、遍历已储存的头像时或检测到目标终端的工作状态为目标通话状态时执行。In some embodiments, the step of marking the avatar type of the contact may also be performed when acquiring an avatar of an added contact, modifying an avatar of a contact, retrieving a avatar stored, traversing the avatar stored, or detecting Executed when the working state of the target terminal is the target call state.
本实施例以遍历已储存的头像时进行头像类型的标记为例,目标终端按照 预设的规则对通讯录中的联系人信息进行抽取,以确定每个联系人的头像类型从而为通话时的布局类型选择提供依据,预设的规则可以为每间隔一定的时间、每个设定的时间点、添加新的联系人时或者联系人数量到达一定量时等等,但不限于此,例如设置为每隔一星期进行、每个月的一号进行、每次添加新联系人或者每添加五个联系人时,等等。在需要进行头像类型的确定时,获取到通讯录信息,包括目标终端存储的所有联系人的联系人信息,联系人信息包括但不限于头像类型、头像图像数据、联系人备注和号码等。In this embodiment, marking the avatar type when traversing the stored avatars is taken as an example, the target terminal extracts the contact information in the address book according to the preset rules to determine the avatar type of each contact, which is the type of the avatar during the call. The layout type selection provides the basis. The preset rules can be every certain time interval, every set time point, when a new contact is added, or when the number of contacts reaches a certain number, etc., but not limited to this, such as setting Every other week, every first of the month, every time a new contact is added, or every five contacts, etc. When the avatar type needs to be determined, the address book information is obtained, including the contact information of all contacts stored in the target terminal, and the contact information includes but is not limited to the avatar type, avatar image data, contact notes and numbers, etc.
在获取到通讯录信息后,按顺序对通讯录信息中的所有联系人进行头像类型的标记,排序的方式可以根据实际情况进行调整,例如按名字、按号码、按添加的时间、按联系频率等等,但不限于此。After obtaining the address book information, mark all contacts in the address book information with their avatar types in sequence, and the sorting method can be adjusted according to the actual situation, such as by name, by number, by time added, by contact frequency etc., but not limited to this.
具体的,如图3所示,首先获取第一个联系人的联系人信息,从中获取对应的头像图像数据,若联系人信息中不包含头像,则标记为无头像类型,若联系人信息中具备头像,根据预设的分类规则对头像图像数据进行分类然后进行头像类型的标记,分类规则所利用的图像数据包括但不限于图像尺寸、图像质量、图像色调、对比度、明暗度、人像识别内容、裁剪方式。本实施方式中以根据头像图像的尺寸和图像质量进行分类为例,将大于预设尺寸的图像定义为大尺寸头像,其余则为小尺寸头像,以及将IQA评价为大于预设质量的图像作为高质量图像,其余作为低质量头像,综合两个维度的分类,将图像分为大尺寸低质量、大尺寸高质量、小尺寸低质量、小尺寸高质量以及将没有头像数据的定义为无头像等,将分类得到的头像类型进行存储,存储的方式可以直接写入到联系人信息中,或者进行单独的存储,例如在终端或服务器中指定的存储区域用于存储所有联系人的头像类型的数据。本实施方式中的预设尺寸可以指图像的长宽或者分辨率等,例如预设的尺寸为分辨率300x300,或者长宽为8英寸和6英寸,和72PPI(pixels per inch,像素每英寸)等,但不限于此。Specifically, as shown in FIG. 3 , the contact information of the first contact is obtained first, and the corresponding avatar image data is obtained therefrom. If the contact information does not contain an avatar, it is marked as no avatar type. With avatars, the avatar image data is classified according to the preset classification rules and then the avatar type is marked. The image data used by the classification rules include but are not limited to image size, image quality, image tone, contrast, brightness, and portrait recognition content. , cutting method. In this implementation manner, taking the classification according to the size and image quality of avatar images as an example, images larger than the preset size are defined as large-sized avatars, and the rest are small-sized avatars, and images with an IQA evaluation of greater than the preset quality are used as High-quality images, and the rest as low-quality avatars. Based on the classification of two dimensions, images are divided into large-size low-quality, large-size high-quality, small-size low-quality, small-size high-quality, and those without avatar data are defined as no avatar etc., store the classified avatar types. The storage method can be directly written into the contact information, or stored separately. For example, the storage area specified in the terminal or server is used to store the avatar types of all contacts. data. The preset size in this embodiment may refer to the length, width or resolution of the image. For example, the preset size is a resolution of 300×300, or the length and width are 8 inches and 6 inches, and 72PPI (pixels per inch, pixels per inch) etc., but not limited to this.
通过对联系人的头像类型进行标记,为通话时的布局类型选择提供依据,可以有效提高布局类型选择的有效性,提高通话界面的显示效果。By marking the avatar type of the contact, a basis is provided for the selection of the layout type during the call, the effectiveness of the layout type selection can be effectively improved, and the display effect of the call interface can be improved.
在一些实施方式中,当所述布局类型为抽象布局时,获取到当前通话联系人的头像图像,然后对图像进行处理,处理的方法包括模糊或提取颜色,将头像图像抽象化,减少图像中的噪点或马赛克效应,以提高低质量头像的显示效果。在另一些实施方式中,图像处理的方法可以根据实际应用场景进行调整, 例如调整色差、调整明亮度、调整灰度、锐化、去色、截取、缩放等等,但不限于此。In some embodiments, when the layout type is an abstract layout, the avatar image of the current call contact is obtained, and then the image is processed. The processing method includes blurring or extracting colors, abstracting the avatar image, and reducing the amount of noise or mosaic effects to improve the display of low-quality avatars. In other embodiments, the image processing method can be adjusted according to actual application scenarios, such as adjusting color difference, adjusting brightness, adjusting grayscale, sharpening, decolorizing, clipping, scaling, etc., but not limited thereto.
系统中设置有预设尺寸,当头像信息中记录的头像尺寸大于预设尺寸时,确定头像为大尺寸头像,当头像尺寸不大于预设尺寸时,确定头像为小尺寸头像。本实施例中的尺寸可以指图像的长宽或者分辨率等,例如预设的尺寸阈值为分辨率300x300,或者长宽为8英寸和6英寸,和72PPI(pixels per inch,像素每英寸)等,但不限于此。本实施例以分辨率作为尺寸的判断依据为例,尺寸阈值为300x300时,当头像尺寸的分辨率大于300x300,即确定头像信息符合尺寸条件,否则则不符合。尺寸阈值可以根据实际应用需求进行调整,例如需要提高头像显示的效果时,可以提高尺寸阈值,例如将尺寸阈值确定为分辨率500x500。A preset size is set in the system. When the size of the avatar recorded in the avatar information is larger than the preset size, the avatar is determined to be a large-sized avatar, and when the size of the avatar is not larger than the preset size, the avatar is determined to be a small-sized avatar. The size in this embodiment may refer to the length, width or resolution of the image. For example, the preset size threshold is a resolution of 300×300, or a length and width of 8 inches and 6 inches, and 72PPI (pixels per inch, pixels per inch), etc. , but not limited to this. In this embodiment, the resolution is used as an example for determining the size. When the size threshold is 300x300, when the resolution of the avatar size is greater than 300x300, it is determined that the avatar information meets the size condition, otherwise it does not. The size threshold can be adjusted according to actual application requirements. For example, when the effect of avatar display needs to be improved, the size threshold can be increased, for example, the size threshold is determined as a resolution of 500x500.
系统中设置有预设图像质量,对头像图像数据进行IQA计算,得到对应的图像质量参数,当图像质量参数大于预设图像质量时,确定头像为高质量头像,当图像质量参数不大于预设图像质量时,确定头像为低质量头像。A preset image quality is set in the system, and IQA calculation is performed on the avatar image data to obtain the corresponding image quality parameters. When the image quality parameter is greater than the preset image quality, the avatar is determined to be a high-quality avatar. When the image quality parameter is not greater than the preset image quality When the image quality is low, the avatar is determined to be a low-quality avatar.
IQA计算可以选用相关技术中的全参考图像质量评价、部分参考图像质量评价或无参考方法,其中,全参考图像质量评价是指在选择理想图像作为参考图像的情况下,比较待评图像与参考图像之间的差异,分析待评图像的失真程度,从而得到待评图像的质量评估。例如基于图像像素统计基础,计算头像图像与参考图像之间像素误差的全局大小来衡量图像质量好坏的,以峰值信噪比(Peak-Signal to Noise Ratio,PSNR)或均方误差(Mean Square Error,MSE)作为参数值。无参考的方法为基于图像统计特性计算图像质量的方法,可以采用图像像素的平均值、图像像素灰度值相对于均值的离散程度或平均梯度等,也可以采用现有技术中其他IQA计算方法,只要实现图像质量的量化表达即可,在此不再赘述。For the IQA calculation, the full reference image quality evaluation, partial reference image quality evaluation or no reference method in the related art can be selected. The full reference image quality evaluation refers to comparing the image to be evaluated with the reference image when an ideal image is selected as the reference image. The difference between the images is analyzed, the distortion degree of the image to be evaluated is analyzed, and the quality evaluation of the image to be evaluated is obtained. For example, based on the statistical basis of image pixels, the global size of the pixel error between the avatar image and the reference image is calculated to measure the quality of the image. Peak-Signal to Noise Ratio (PSNR) or mean square error (Mean Square) Error, MSE) as the parameter value. The method without reference is a method for calculating image quality based on the statistical characteristics of the image, which can use the average value of image pixels, the degree of dispersion or average gradient of the gray value of image pixels relative to the average value, etc., or other IQA calculation methods in the prior art can be used. , as long as the quantitative expression of image quality is realized, and details are not repeated here.
在一些实施方式中,预设尺寸可以随屏幕的尺寸进行调整,以确保不同屏幕尺寸下都可以具备较好的显示效果,具体的,判断所述头像信息是否符合预设的尺寸条件之前还包括:In some embodiments, the preset size can be adjusted according to the size of the screen to ensure a better display effect under different screen sizes. Specifically, before judging whether the avatar information meets the preset size condition, the :
获取目标终端的屏幕尺寸信息;Get the screen size information of the target terminal;
目标终端的屏幕尺寸信息可以记录在终端之中,也可以记录在对应的服务器中,在进行头像类型的分类之前,获取目标终端的屏幕尺寸信息,屏幕尺寸 信息包括屏幕的长宽、分辨率等数据,但不限于此。The screen size information of the target terminal can be recorded in the terminal or in the corresponding server. Before classifying the avatar type, obtain the screen size information of the target terminal. The screen size information includes the length, width, resolution, etc. of the screen. data, but not limited to.
根据所述屏幕尺寸信息确定所述预设尺寸;determining the preset size according to the screen size information;
根据屏幕尺寸信息查找与屏幕尺寸信息具有映射关系的头像尺寸阈值,作为预设尺寸。具体的,预设有各屏幕尺寸对应不同的头像尺寸阈值,例如将头像尺寸阈值分为多个梯度,以对应不同的屏幕尺寸,屏幕尺寸可以是屏幕大小、长宽、分辨率等,本实施例以屏幕尺寸为屏幕的大小为例,根据不同的屏幕大小设置不同的头像尺寸阈值,例如屏幕小于5寸时,头像尺寸阈值为分辨率300*300;屏幕大于5寸小于6寸时,头像尺寸阈值为分辨率400*400;屏幕大于6寸时,头像尺寸阈值为分辨率500*500。屏幕尺寸与尺寸阈值的对应梯度可以根据实际应用场景进行调整,例如需要更精细地确保显示效果时,梯度的数量可以更多。Find the avatar size threshold that has a mapping relationship with the screen size information according to the screen size information, and use it as the preset size. Specifically, different avatar size thresholds are preset for each screen size. For example, the avatar size thresholds are divided into multiple gradients to correspond to different screen sizes. The screen size can be screen size, length, width, resolution, etc. This implementation For example, take the screen size as the size of the screen as an example, set different avatar size thresholds according to different screen sizes. For example, when the screen is smaller than 5 inches, the avatar size threshold is 300*300 resolution; when the screen is larger than 5 inches and less than 6 inches, the avatar size threshold is The size threshold is 400*400 resolution; when the screen is larger than 6 inches, the avatar size threshold is 500*500 resolution. The corresponding gradient between the screen size and the size threshold can be adjusted according to the actual application scenario. For example, when the display effect needs to be more finely ensured, the number of gradients can be larger.
发明实施例还提供一种通话界面的展示装置。具体请参阅图4,图4为本实施通话界面的展示装置的基本结构框图。Embodiments of the invention also provide a display device for a call interface. Please refer to FIG. 4 for details. FIG. 4 is a basic structural block diagram of a display device implementing a call interface.
如图4所示,通话界面的展示装置,包括:获取模块2100、处理模块2200和执行模块2300。其中,获取模块用于监控目标终端的工作状态;处理模块用于当所述工作状态为通话状态时,获取目标当前通话联系人的头像类型,其中,所述头像类型为所述当前联系人的头像数据的分类标记;执行模块用于根据所述头像类型获取对应的布局类型的通话界面并展示。As shown in FIG. 4 , the display device of the call interface includes: an acquisition module 2100 , a processing module 2200 and an execution module 2300 . Wherein, the obtaining module is used to monitor the working state of the target terminal; the processing module is used to obtain the avatar type of the target current call contact when the working state is the calling state, wherein the avatar type is the avatar type of the current contact. The classification mark of the avatar data; the execution module is used to obtain and display the call interface of the corresponding layout type according to the avatar type.
通过监控目标终端的工作状态,当目标终端进入通话状态时,根据当前通话联系人的头像类型确定目标终端所显示的布局类型,然后根据不同的布局类型的通话界面进行展示。由于头像照片的来源广泛,以头像类型为依据为不同的联系人选择对应的布局类型,可以有效提升通话界面的视觉效果,提高通话对象识别度。By monitoring the working state of the target terminal, when the target terminal enters the call state, the layout type displayed by the target terminal is determined according to the avatar type of the current call contact, and then the call interface is displayed according to different layout types. Due to the wide range of sources of avatar photos, selecting the corresponding layout type for different contacts based on the avatar type can effectively improve the visual effect of the call interface and improve the recognition of the call object.
在一些实施方式中,通话界面的展示装置还包括:第一获取子模块,用于获取联系人信息,检测联系人是否具备头像,如是,根据联系人头像的图像数据标记联系人的头像类型,如否,标记为无头像类型。In some embodiments, the display device for the call interface further includes: a first acquisition sub-module for acquiring contact information, detecting whether the contact has an avatar, if so, marking the avatar type of the contact according to the image data of the contact avatar, If no, mark it as no avatar type.
在一些实施方式中,通话界面的展示装置还包括:第一查找子模块、第一展示子模块。其中,第一查找子模块用于在预设的数据库中查找与所述头像类型具有映射关系的布局类型;第一展示子模块用于根据查找得到的布局类型的通话界面进行展示。In some embodiments, the apparatus for displaying the call interface further includes: a first searching sub-module and a first displaying sub-module. Wherein, the first search sub-module is used to search for a layout type that has a mapping relationship with the avatar type in a preset database; the first display sub-module is used to display the call interface according to the searched layout type.
在一些实施方式中,所述执行模块还用于当所述头像类型为无头像类型时,采用默认布局进行展示,其中,所述默认布局为通话界面中不显示联系人头像的布局类型。In some embodiments, the execution module is further configured to use a default layout for display when the avatar type is no avatar type, wherein the default layout is a layout type that does not display contact avatars in the call interface.
在一些实施方式中,对应布局类型的通话界面中包括联系人信息展示区域,所述联系人信息展示区域包括用于展示联系人头像的头像展示区域,联系人头像在该头像展示区域的视觉效果大于或等于获取到的联系人头像的原始视觉效果。In some embodiments, the call interface corresponding to the layout type includes a contact information display area, the contact information display area includes an avatar display area for displaying contact avatars, and the visual effects of the contact avatars in the avatar display area Greater than or equal to the original visual effect of the obtained contact avatar.
在一些实施方式中,所述布局类型包括沉浸布局、小图布局和抽象布局,所述图像数据包括图像尺寸和图像质量,所述根据所述头像类型获取对应的布局类型的通话界面并展示包括:In some embodiments, the layout types include immersive layouts, thumbnail layouts and abstract layouts, the image data includes image size and image quality, and the acquiring and displaying the call interface of the corresponding layout types according to the avatar type includes :
若联系人头像大于预设尺寸,且高于预设图像质量,采用沉浸布局,将所述联系人头像进行展示,其中,所述沉浸布局为头像展示区域面积等于联系人信息展示区域面积的布局类型;If the contact avatar is larger than the preset size and higher than the preset image quality, an immersive layout is used to display the contact avatar, wherein the immersive layout is a layout in which the area of the avatar display area is equal to the area of the contact information display area Types of;
若联系人头像不大于预设尺寸,且高于预设图像质量,采用小图布局,将所述联系人头像进行展示,其中,所述小图布局为头像展示区域面积小于联系人信息展示区域面积的布局类型;If the contact avatar is not larger than the preset size and higher than the preset image quality, a thumbnail layout is used to display the contact avatar, wherein the thumbnail layout is such that the avatar display area is smaller than the contact information display area The layout type of the area;
若联系人头像低于预设的图像质量,采用抽象布局,其中,所述抽象布局为对所述联系人头像进行模糊处理和/或颜色提取处理后进行展示的布局类型。If the image quality of the contact avatar is lower than the preset image quality, an abstract layout is adopted, wherein the abstract layout is a layout type displayed after the contact avatar is blurred and/or color extracted.
在一些实施方式中,通话界面的展示装置还包括:第二获取子模块、第一处理子模块。其中,第二获取子模块用于获取目标终端的屏幕尺寸信息;第一处理子模块用于根据所述屏幕尺寸信息确定所述预设尺寸。In some embodiments, the apparatus for presenting the call interface further includes: a second acquiring sub-module and a first processing sub-module. Wherein, the second acquisition sub-module is used for acquiring the screen size information of the target terminal; the first processing sub-module is used for determining the preset size according to the screen size information.
本发明实施例还提供一种电子设备。具体请参阅图5,图5为本实施例电子设备硬件示意图。Embodiments of the present invention also provide an electronic device. Please refer to FIG. 5 for details. FIG. 5 is a schematic diagram of the hardware of the electronic device according to the embodiment.
如图5所示,电子设备的硬件示意图。如图5所示,该电子设备包括通过系统总线连接的处理器、非易失性存储介质、存储器和网络接口。其中,该电子设备的非易失性存储介质存储有操作系统、数据库和计算机可读指令,数据库中可存储有控件信息序列,该计算机可读指令被处理器执行时,可使得处理器实现一种通话界面的展示方法。该电子设备的处理器用于提供计算和控制能力,支撑整个电子设备的运行。该电子设备的存储器中可存储有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器执行本申请实施例中的 通话界面的展示方法。该电子设备的网络接口用于与终端连接通信。本领域技术人员可以理解,图中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。As shown in FIG. 5 , a schematic diagram of the hardware of the electronic device. As shown in FIG. 5, the electronic device includes a processor, a non-volatile storage medium, a memory and a network interface connected through a system bus. Wherein, the non-volatile storage medium of the electronic device stores an operating system, a database and computer-readable instructions, and the database can store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can realize a A display method of a call interface. The processor of the electronic device is used to provide computing and control capabilities to support the operation of the entire electronic device. Computer-readable instructions may be stored in the memory of the electronic device, and when the computer-readable instructions are executed by the processor, the processor may execute the method for displaying a call interface in the embodiments of the present application. The network interface of the electronic device is used to connect and communicate with the terminal. Those skilled in the art can understand that the structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include There are more or fewer components than shown in the figures, or some components are combined, or have a different arrangement of components.
本发明还提供一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述任一实施例所述通话界面的展示方法的步骤。The present invention also provides a storage medium storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors, cause the one or more processors to execute the calling interface described in any of the foregoing embodiments. Show the steps of the method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that the realization of all or part of the processes in the methods of the above embodiments can be accomplished by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the program is During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the aforementioned storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only storage memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the accompanying drawings are sequentially shown in the order indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order and may be performed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution sequence is also It does not have to be performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of sub-steps or stages of other steps.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above-described embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be regarded as the scope described in this specification.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present invention, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the patent of the present invention. It should be pointed out that for those skilled in the art, without departing from the concept of the present invention, several modifications and improvements can be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the appended claims.
Claims (20)
- 一种通话界面的展示方法,其特征在于,包括:A method for displaying a call interface, comprising:监控目标终端的工作状态;Monitor the working status of the target terminal;当所述工作状态为通话状态时,获取当前通话联系人的头像类型,其中,所述头像类型为所述当前联系人的头像数据的分类标记;When the working state is the call state, obtain the avatar type of the current call contact, wherein the avatar type is the classification mark of the avatar data of the current contact;根据所述头像类型获取对应的布局类型的通话界面并展示。The call interface of the corresponding layout type is acquired and displayed according to the avatar type.
- 如权利要求1所述的通话界面的展示方法,其特征在于,所述获取当前通话联系人的头像类型包括:The method for displaying a call interface according to claim 1, wherein the obtaining the avatar type of the current call contact comprises:获取联系人信息,检测联系人是否具备头像,如是,根据联系人头像的图像数据标记联系人的头像类型,如否,标记为无头像类型。Obtain contact information, and detect whether the contact has an avatar. If so, mark the contact's avatar type according to the image data of the contact's avatar. If no, mark it as no avatar type.
- 如权利要求1所述的通话界面的展示方法,其特征在于,所述根据所述头像类型获取对应的布局类型的通话界面并展示包括:The method for displaying a call interface according to claim 1, wherein the acquiring and displaying the call interface of the corresponding layout type according to the avatar type comprises:在预设的数据库中查找与所述头像类型具有映射关系的布局类型;Searching for a layout type that has a mapping relationship with the avatar type in a preset database;根据查找得到的布局类型的通话界面进行展示。Display the call interface according to the layout type obtained by the search.
- 如权利要求2所述的通话界面的展示方法,其特征在于,所述根据所述头像类型获取对应的布局类型的通话界面并展示包括:The method for displaying a call interface according to claim 2, wherein the acquiring and displaying the call interface of the corresponding layout type according to the avatar type comprises:当所述头像类型为无头像类型时,采用默认布局进行展示,其中,所述默认布局为通话界面中不显示联系人头像的布局类型。When the avatar type is no avatar type, a default layout is used for display, wherein the default layout is a layout type that does not display contact avatars in the call interface.
- 如权利要求3所述的通话界面的展示方法,其特征在于,对应布局类型的通话界面中包括联系人信息展示区域,所述联系人信息展示区域包括用于展示联系人头像的头像展示区域,联系人头像在该头像展示区域的视觉效果大于或等于获取到的联系人头像的原始视觉效果。The method for displaying a call interface according to claim 3, wherein the call interface corresponding to the layout type includes a contact information display area, and the contact information display area includes an avatar display area for displaying contact avatars, The visual effect of the contact avatar in the avatar display area is greater than or equal to the original visual effect of the obtained contact avatar.
- 如权利要求5所述的通话界面的展示方法,其特征在于,所述布局类型包括沉浸布局,所述图像数据包括图像尺寸和图像质量,所述根据所述头像类型获取对应的布局类型的通话界面并展示包括:The method for displaying a call interface according to claim 5, wherein the layout type includes an immersive layout, the image data includes image size and image quality, and the call of the corresponding layout type is obtained according to the avatar type The interface and display include:若联系人头像大于预设尺寸,且高于预设图像质量,采用沉浸布局,将所述联系人头像进行展示,其中,所述沉浸布局为头像展示区域面积等于联系人信息展示区域面积的布局类型。If the contact avatar is larger than the preset size and higher than the preset image quality, an immersive layout is used to display the contact avatar, wherein the immersive layout is a layout in which the area of the avatar display area is equal to the area of the contact information display area Types of.
- 如权利要求5所述的通话界面的展示方法,其特征在于,所述布局类型 包括小图布局,所述图像数据包括图像尺寸和图像质量,所述根据所述头像类型获取对应的布局类型的通话界面并展示包括:The method for displaying a call interface according to claim 5, wherein the layout type includes a thumbnail layout, the image data includes image size and image quality, and the acquisition of the corresponding layout type according to the avatar type The call interface and display include:若联系人头像不大于预设尺寸,且高于预设图像质量,采用小图布局,将所述联系人头像进行展示,其中,所述小图布局为头像展示区域面积小于联系人信息展示区域面积的布局类型。If the contact avatar is not larger than the preset size and higher than the preset image quality, a thumbnail layout is used to display the contact avatar, wherein the thumbnail layout is such that the avatar display area is smaller than the contact information display area The layout type of the area.
- 如权利要求5所述的通话界面的展示方法,其特征在于,所述布局类型包括抽象布局,所述图像数据包括图像尺寸和图像质量,所述根据所述头像类型获取对应的布局类型的通话界面并展示包括:The method for displaying a call interface according to claim 5, wherein the layout type includes an abstract layout, the image data includes image size and image quality, and the call of the corresponding layout type is obtained according to the avatar type The interface and display include:若联系人头像低于预设的图像质量,采用抽象布局,其中,所述抽象布局为对所述联系人头像进行模糊处理和/或颜色提取处理后进行展示的布局类型。If the image quality of the contact avatar is lower than the preset image quality, an abstract layout is adopted, wherein the abstract layout is a layout type displayed after the contact avatar is blurred and/or color extracted.
- 如权利要求6所述的通话界面的展示方法,其特征在于,所述根据联系人头像的图像尺寸和图像质量标记联系人的头像类型之前,包括:The method for displaying a call interface according to claim 6, wherein before marking the avatar type of the contact according to the image size and image quality of the avatar of the contact, the method comprises:获取目标终端的屏幕尺寸信息;Get the screen size information of the target terminal;根据所述屏幕尺寸信息确定所述预设尺寸。The preset size is determined according to the screen size information.
- 一种通话界面的展示装置,其特征在于,包括:A display device for a call interface, characterized in that it includes:获取模块,用于监控目标终端的工作状态;Obtaining a module for monitoring the working status of the target terminal;处理模块,用于当所述工作状态为通话状态时,获取目标当前通话联系人的头像类型,其中,所述头像类型为所述当前联系人的头像数据的分类标记;a processing module, configured to obtain the avatar type of the target current call contact when the working state is the call state, wherein the avatar type is a classification mark of the avatar data of the current contact;执行模块,用于根据所述头像类型获取对应的布局类型的通话界面并展示。The execution module is configured to acquire and display the call interface of the corresponding layout type according to the avatar type.
- 如权利要求10所述的通话界面的展示装置,其特征在于,所述处理模块用于:The display device of the call interface according to claim 10, wherein the processing module is used for:获取联系人信息,检测联系人是否具备头像,如是,根据联系人头像的图像数据标记联系人的头像类型,如否,标记为无头像类型。Obtain contact information, and detect whether the contact has an avatar. If so, mark the contact's avatar type according to the image data of the contact's avatar. If not, mark it as no avatar type.
- 如权利要求10所述的通话界面的展示装置,其特征在于,所述执行模块用于:The display device of the call interface according to claim 10, wherein the execution module is used for:在预设的数据库中查找与所述头像类型具有映射关系的布局类型;Searching for a layout type that has a mapping relationship with the avatar type in a preset database;根据查找得到的布局类型的通话界面进行展示。Display the call interface according to the layout type obtained by the search.
- 如权利要求11所述的通话界面的展示装置,其特征在于,所述处理模块用于:The display device of the call interface according to claim 11, wherein the processing module is used for:当所述头像类型为无头像类型时,采用默认布局进行展示,其中,所述默 认布局为通话界面中不显示联系人头像的布局类型。When the avatar type is no avatar type, a default layout is used for display, wherein the default layout is a layout type that does not display contact avatars in the call interface.
- 如权利要求12所述的通话界面的展示装置,其特征在于,所述执行模块用于:The display device of the call interface according to claim 12, wherein the execution module is used for:对应布局类型的通话界面,其中,包括联系人信息展示区域,所述联系人信息展示区域包括用于展示联系人头像的头像展示区域,联系人头像在该头像展示区域的视觉效果大于或等于获取到的联系人头像的原始视觉效果。A call interface corresponding to a layout type, including a contact information display area, where the contact information display area includes an avatar display area for displaying a contact avatar, and the visual effect of the contact avatar in the avatar display area is greater than or equal to the acquisition to the original visual of the contact avatar.
- 如权利要求14所述的通话界面的展示装置,其特征在于,所述执行模块用于:The display device of the call interface according to claim 14, wherein the execution module is used for:若联系人头像大于预设尺寸,且高于预设图像质量,采用沉浸布局,将所述联系人头像进行展示,其中,所述沉浸布局为头像展示区域面积等于联系人信息展示区域面积的布局类型;If the contact avatar is larger than the preset size and higher than the preset image quality, an immersive layout is used to display the contact avatar, wherein the immersive layout is a layout in which the area of the avatar display area is equal to the area of the contact information display area Types of;
- 如权利要求14所述的通话界面的展示装置,其特征在于,所述执行模块用于:The display device of the call interface according to claim 14, wherein the execution module is used for:若联系人头像不大于预设尺寸,且高于预设图像质量,采用小图布局,将所述联系人头像进行展示,其中,所述小图布局为头像展示区域面积小于联系人信息展示区域面积的布局类型。If the contact avatar is not larger than the preset size and higher than the preset image quality, a thumbnail layout is used to display the contact avatar, wherein the thumbnail layout is such that the avatar display area is smaller than the contact information display area The layout type of the area.
- 如权利要求14所述的通话界面的展示装置,其特征在于,所述执行模块用于:The display device of the call interface according to claim 14, wherein the execution module is used for:若联系人头像低于预设的图像质量,采用抽象布局,其中,所述抽象布局为对所述联系人头像进行模糊处理和/或颜色提取处理后进行展示的布局类型。If the image quality of the contact avatar is lower than the preset image quality, an abstract layout is adopted, wherein the abstract layout is a layout type displayed after the contact avatar is blurred and/or color extracted.
- 如权利要求15所述的通话界面的展示装置,其特征在于,所述执行模块用于:The display device of the call interface according to claim 15, wherein the execution module is used for:获取目标终端的屏幕尺寸信息;Get the screen size information of the target terminal;根据所述屏幕尺寸信息确定所述预设尺寸。The preset size is determined according to the screen size information.
- 一种电子设备,其特征在于,包括:An electronic device, comprising:处理器;processor;用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;其中,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至9中任一项所述的通话界面的展示方法的步骤。Wherein, a computer program is stored in the memory, and when the computer program is executed by the processor, the processor causes the processor to execute the steps of the method for displaying a call interface according to any one of claims 1 to 9.
- 一种非易失性计算机可读存储介质,所述存储介质中存储有计算机可读指令,当所述存储介质中的指令被一个或多个处理器执行时,所述一个或多个处理器执行如权利要求1至9中任一项所述的通话界面的展示方法的步骤。A non-volatile computer-readable storage medium having computer-readable instructions stored in the storage medium, when the instructions in the storage medium are executed by one or more processors, the one or more processors Steps of executing the method for displaying a call interface according to any one of claims 1 to 9.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011045952.7A CN114357055A (en) | 2020-09-28 | 2020-09-28 | Display method of call interface, electronic equipment and storage medium |
CN202011045952.7 | 2020-09-28 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022062641A1 true WO2022062641A1 (en) | 2022-03-31 |
Family
ID=80844820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/109019 WO2022062641A1 (en) | 2020-09-28 | 2021-07-28 | Calling interface display method and apparatus, electronic device, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114357055A (en) |
WO (1) | WO2022062641A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024183812A1 (en) * | 2023-03-09 | 2024-09-12 | 北京有竹居网络技术有限公司 | Information presentation method and apparatus, and device and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116486759B (en) * | 2023-04-11 | 2024-01-30 | 艺壹佳文化科技(广东)有限公司 | Intelligent adjustment method, device, equipment and storage medium for identification display |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404435A (en) * | 2011-11-15 | 2012-04-04 | 宇龙计算机通信科技(深圳)有限公司 | Communication terminal and display method of communication interface of communication terminal |
CN103914280A (en) * | 2013-01-07 | 2014-07-09 | 三星电子株式会社 | Method and apparatus for laying out image using image recognition |
CN105847588A (en) * | 2016-05-18 | 2016-08-10 | 广州市久邦数码科技有限公司 | Incoming call display system with theme and display method thereof |
CN106170031A (en) * | 2016-09-06 | 2016-11-30 | 北京奇虎科技有限公司 | A kind of next/de-electrifying interface display method based on mobile terminal and device |
WO2019047130A1 (en) * | 2017-09-07 | 2019-03-14 | 华为技术有限公司 | Display picture display method and terminal |
CN111078918A (en) * | 2019-12-04 | 2020-04-28 | 视联动力信息技术股份有限公司 | Image processing method and device, electronic equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107015998A (en) * | 2016-01-28 | 2017-08-04 | 阿里巴巴集团控股有限公司 | A kind of image processing method, device and intelligent terminal |
-
2020
- 2020-09-28 CN CN202011045952.7A patent/CN114357055A/en active Pending
-
2021
- 2021-07-28 WO PCT/CN2021/109019 patent/WO2022062641A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404435A (en) * | 2011-11-15 | 2012-04-04 | 宇龙计算机通信科技(深圳)有限公司 | Communication terminal and display method of communication interface of communication terminal |
CN103914280A (en) * | 2013-01-07 | 2014-07-09 | 三星电子株式会社 | Method and apparatus for laying out image using image recognition |
CN105847588A (en) * | 2016-05-18 | 2016-08-10 | 广州市久邦数码科技有限公司 | Incoming call display system with theme and display method thereof |
CN106170031A (en) * | 2016-09-06 | 2016-11-30 | 北京奇虎科技有限公司 | A kind of next/de-electrifying interface display method based on mobile terminal and device |
WO2019047130A1 (en) * | 2017-09-07 | 2019-03-14 | 华为技术有限公司 | Display picture display method and terminal |
CN111078918A (en) * | 2019-12-04 | 2020-04-28 | 视联动力信息技术股份有限公司 | Image processing method and device, electronic equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024183812A1 (en) * | 2023-03-09 | 2024-09-12 | 北京有竹居网络技术有限公司 | Information presentation method and apparatus, and device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114357055A (en) | 2022-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11470383B2 (en) | Dynamic video overlays | |
CN114584849B (en) | Video quality evaluation method, device, electronic equipment and computer storage medium | |
WO2022062641A1 (en) | Calling interface display method and apparatus, electronic device, and storage medium | |
US11194536B2 (en) | Image processing method and apparatus for displaying an image between two display screens | |
WO2020107988A1 (en) | Video processing method and apparatus, and electronic device and storage medium | |
JP2003241738A (en) | Method and system for optimizing display of subject of interest in digital image | |
EP1322104A1 (en) | Method for selecting and recording a subject of interest in a still digital image | |
US12125458B2 (en) | Display terminal adjustment method and display terminal | |
CN111259968A (en) | Illegal image recognition method, device, equipment and computer readable storage medium | |
CN112069977A (en) | Image processing method, image processing device, electronic equipment and computer readable medium | |
WO2023065604A1 (en) | Image processing method and apparatus | |
CN110377773B (en) | Picture processing method and device, mobile terminal and storage medium | |
US20110058057A1 (en) | Image capture device and method, image processing device and method, and program | |
Nuutinen et al. | A framework for measuring sharpness in natural images captured by digital cameras based on reference image and local areas | |
US9076207B1 (en) | Image processing method, system and electronic device | |
CN110825993B (en) | Picture display method and device and electronic equipment | |
CN113409199A (en) | Image processing method, image processing device, electronic equipment and computer readable medium | |
JP2012049850A (en) | Image display unit, image data conversion method, image distribution system, and program | |
CN115439660A (en) | Detection method, detection device, electronic equipment and medium | |
CN113393391B (en) | Image enhancement method, image enhancement device, electronic apparatus, and storage medium | |
WO2019205400A1 (en) | Image rotation method and device, computer apparatus, and storage medium | |
CN110362188B (en) | Picture processing method and device, mobile terminal and storage medium | |
CN114629996A (en) | Video color ring back tone pushing method, equipment, storage medium and device | |
CN110418195B (en) | Real-time video abbreviating method based on optimal cutting | |
CN113988649B (en) | Display function testing method of display screen and related device |
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: 21871019 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 29/06/2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21871019 Country of ref document: EP Kind code of ref document: A1 |