WO2023093721A1 - 资源召回方法、装置及网络侧设备 - Google Patents

资源召回方法、装置及网络侧设备 Download PDF

Info

Publication number
WO2023093721A1
WO2023093721A1 PCT/CN2022/133501 CN2022133501W WO2023093721A1 WO 2023093721 A1 WO2023093721 A1 WO 2023093721A1 CN 2022133501 W CN2022133501 W CN 2022133501W WO 2023093721 A1 WO2023093721 A1 WO 2023093721A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
model
value
color sub
target
Prior art date
Application number
PCT/CN2022/133501
Other languages
English (en)
French (fr)
Inventor
刘龙
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023093721A1 publication Critical patent/WO2023093721A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5838Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Definitions

  • the present application belongs to the technical field of communication, and specifically relates to a resource recall method, device and network side equipment.
  • the electronic device may display a search result interface with a pure white background, or the electronic device may display a search result interface with a picture as the background set by the user. In this way, the display flexibility of the electronic device is poor.
  • the purpose of the embodiments of the present application is to provide a resource recall method, device and network side equipment, which can solve the problem of poor display flexibility of electronic equipment.
  • the embodiment of the present application provides a resource recall method, the method is applied to a network side device, and the method includes: when the recall data requested by the user equipment UE (User Equipment, UE) includes picture data, Obtain at least part of the color values in the picture data; determine the target color value according to the distribution of at least part of the color values in the preset color model, and the target color value is the color value of the main color in the picture corresponding to the picture data; send to the UE Target information, so that the UE displays a target interface; wherein, the target information includes recall data and a target color value, the target color value is used to indicate the background color of the target interface, and the target interface is an interface for the UE to display recall data.
  • UE User Equipment
  • the embodiment of the present application provides a resource recall device, the device includes an acquisition module, a determination module, and a sending module; At least part of the color values in the picture data; a determination module, configured to determine the target color value according to the distribution of at least part of the color values in the preset color model, where the target color value is the color value of the main color in the picture corresponding to the picture data ;
  • the sending module is used to send the target information to the UE, so that the UE displays the target interface; wherein, the target information includes recall data and a target color value, the target color value is used to indicate the background color of the target interface, and the target interface is the recall data displayed by the UE interface.
  • the embodiment of the present application provides a network-side device, the network-side device includes a processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are executed by the The steps of the method described in the first aspect are implemented when the processor executes.
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect.
  • the recall data requested by the user equipment UE when the recall data requested by the user equipment UE includes picture data, at least part of the color values in the picture data may be acquired; and according to the distribution of at least part of the color values in the preset color model, Determine the target color value, the target color value is the color value of the main color in the picture corresponding to the picture data; and send the target information to the UE, so that the UE displays the target interface; wherein, the target information includes the recall data and the target color value, the target color The value is used to indicate the background color of the target interface, which is the interface for UE to display recall data.
  • the network side device can determine the corresponding the color value of the main color in the picture, and sending information including the color value and the recall data to the UE, so that the UE displays an interface of the recall data, and the background color of the interface is the color indicated by the target color value; That is, the network side device instructs the UE to display the color value of the background color of the recall data interface, which may be the color value of the main color in the picture corresponding to the picture data included in the recall data. Therefore, compared with the traditional technology, the UE displays For the solution of the background color of the interface corresponding to the recall data, the resource recall method provided in the embodiment of the present application can improve the flexibility of UE display.
  • FIG. 1 is a block diagram of a wireless communication system to which an embodiment of the present application is applicable;
  • FIG. 2 is a schematic flowchart of a resource recall method provided in an embodiment of the present application
  • Fig. 3 is a schematic diagram of a method for obtaining at least part of color values in the resource recall method provided by the embodiment of the present application;
  • FIG. 4 is a schematic diagram of the RGB model and the distribution of at least part of the color values in the RGB model in the resource recall method provided by the embodiment of the present application;
  • FIG. 5 is a schematic diagram of the distribution of at least part of the color values on the X-axis in the RGB model in the resource recall method provided by the embodiment of the present application;
  • FIG. 6 is a schematic diagram of a resource recall device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a network-side device provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of hardware of a network side device provided by an embodiment of the present application.
  • LTE Long Term Evolution
  • LTE-Advanced LTE-Advanced
  • LTE-A Long Term Evolution-Advanced
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • FDMA Frequency Division Multiple Access
  • OFDMA Orthogonal Frequency Division Multiple Access
  • SC-FDMA Single-carrier Frequency-Division Multiple Access
  • system and “network” in the embodiments of the present application are often used interchangeably, and the described technology can be used for the above-mentioned system and radio technology, and can also be used for other systems and radio technologies.
  • NR New Radio
  • the following description describes New Radio (NR) systems for example purposes, and uses NR terminology in most of the following descriptions, although these techniques can also be applied to applications other than NR system applications, such as Generation 6 ( 6th Generation, 6G) communication system.
  • NR New Radio
  • Fig. 1 shows a block diagram of a wireless communication system to which the embodiment of the present application is applicable.
  • the wireless communication system includes a UE11 and a network side device 12 .
  • the UE can also be referred to as an electronic device, and the UE can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer) or a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a palmtop computer , netbook, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), mobile Internet device (Mobile Internet Device, MID), wearable device (Wearable Device) or vehicle-mounted equipment (VUE), pedestrian terminal (PUE) and other terminals Side devices, wearable devices include: bracelets, earphones, glasses, etc.
  • the network side device 12 may be a base station or a core network, where a base station may be called a node B, an evolved node B, an access point, a base transceiver station (Base Transceiver Station, BTS), a radio base station, a radio transceiver, a basic service Basic Service Set (BSS), Extended Service Set (ESS), Node B, Evolved Node B (eNB), Home Node B, Home Evolved Node B, WLAN access point, WiFi node, transmission Receiving point (Transmitting Receiving Point, TRP) or some other suitable term in the field, as long as the same technical effect is achieved, the base station is not limited to specific technical terms. It should be noted that in the embodiment of this application, only The base station in the NR system is taken as an example, but the specific type of the base station is not limited.
  • the resource recall method provided in the embodiment of the present application may be applied to a scenario where a UE requests resources from a network side device.
  • the server corresponding to the UE can request the search result data (such as the recall data in the embodiment of the application) of the UE
  • the search result data such as the recall data in the embodiment of the application
  • the server corresponding to the UE can request the search result data (such as the recall data in the embodiment of the application) of the UE
  • determine the color value of the main color in the picture corresponding to the picture data for example, in the embodiment of the present application the target color value in
  • send information including the color value and the search result data to the UE such as the target information in this embodiment of the application
  • the UE displays the interface of the search result data (such as the implementation of this application The target interface in the example), so that after receiving the information, the UE can display the interface of the search result data with the background color indicated by the color value.
  • the network side device instructs the UE to display the color value of the background color of the recall data interface, it may be the color value of the main color in the picture corresponding to the picture data included in the recall data. Therefore, compared with the traditional technology, the UE For the solution of the background color of the interface corresponding to the displayed recall data, the resource recall method provided in the embodiment of the present application can improve the flexibility of UE display.
  • an embodiment of the present application provides a network switching method, and the method may include the following steps 101 to 103 .
  • Step 101 When the recall data requested by the UE includes picture data, the network side device acquires at least part of the color values in the picture data.
  • the recall data may be the corresponding result data returned by the network side device to any data recall request of the UE, for example, the recall data is the search result data returned by the network side device to the UE's image search request .
  • the network side device may determine the data corresponding to the data recall request, and use the address information of the obtained data or the obtained data as the recall data, and Send the recall data to the UE.
  • the network side device can read the image data into the computer programming language java image core class in the form of a data stream through the address information of the above image data, and pass the image core class Obtain at least part of the color values in the image data.
  • the network side device may convert the picture data corresponding to pictures in different formats into a conventional format (such as JPG) according to the picture format.
  • a conventional format such as JPG
  • JPG Joint Photographic Experts Group
  • jpg, bmp, BMP, gif, GIF, WBMP, png, PNG, JPEG, webp, WebP, wbmp, jpeg corresponding binary data to ensure that the above image data can be read into the computer programming language java image core in class.
  • the network side device may convert the data corresponding to the webp picture processed by Google (Google) picture compression technology into binary data corresponding to the jpg picture.
  • Google Google
  • At least part of the color values in the above picture data may be all color values in the picture data, or at least part of the color values in the above picture data may be part of the color values in the picture data.
  • the network side device when at least part of the color values in the above picture data can be part of the color values in the picture data, the network side device can use a sampling strategy to obtain the part of the color values, thereby reducing the cost of the network side device. Complexity and time-consuming for further processing.
  • the sampling ratio in the above sampling strategy may be the default of the system, or set by the user according to actual usage requirements (user-defined).
  • the network side device may appropriately increase the above sampling ratio.
  • the above-mentioned sampling ratio does not exceed 10% of the total number of color values, so that the complexity and time consumption of processing can be further reduced while ensuring the accuracy of subsequent processing by the network-side device.
  • the network side device may traverse each pixel in the picture corresponding to the above picture data through the above java picture core class, and obtain the color value of each pixel. If the color value includes the Alpha value, that is, the A value, as shown in (a) in Figure 3, the offset traversed by the network side device is 4 bytes (that is, A, blue B, green G, red R ), at this time a color value can be expressed as (A value, R value, G value, B value); if the color value does not include the A value, as shown in (b) in Figure 3, the network side device traverses The offset is 3 bytes (that is, B, G, R), and a color value can be expressed as (R value, G value, B value).
  • a value indicates the transparency of the picture
  • each color value corresponds to one pixel
  • the R value, G value, and B value in the color value can also be called the value of the R sub-pixel, the value of the G sub-pixel, and the value of the B sub-pixel, respectively. value.
  • step 101 may specifically be implemented through the following step 101a.
  • Step 101a when the recall data requested by the UE includes picture data, the network side device acquires at least part of the color values from the picture data according to preset filtering rules.
  • the above-mentioned preset filtering rules may be defaulted by the system, or the above-mentioned preset filtering rules may be set by the user according to actual usage requirements. It can be understood that when the preset filtering rules are set by the user according to actual usage requirements, the data recall request sent by the UE to the network side device may include the filtering rules, so that the network side device can obtain at least partial color value.
  • the network side device can delete the red color value from the obtained colors. 50 and the B value is less than 50, so that the color values in the red range can be filtered out.
  • step 101a For other descriptions in step 101a, specific reference may be made to the relevant descriptions in step 101 above, and in order to avoid repetition, details are not repeated here.
  • the network side device can obtain at least part of the color values from the picture data according to the preset filtering rules to meet different usage needs of users, the flexibility of the network side device to obtain color values can be improved.
  • Step 102 the network side device determines the target color value according to the distribution of at least part of the color values in the preset color model.
  • the target color value may be the color value of the main color in the picture corresponding to the above picture data.
  • the number of pictures corresponding to the above picture data may be one or multiple, which may be specifically determined according to a request of the UE.
  • the main color in the picture may be the color corresponding to a pixel value with the largest number in the picture.
  • the aforementioned preset color model can be an RGB model, a CMY model (a model established with cyan, magenta, and yellow as three primary colors) or an HSV model (a model established with hue, saturation, and lightness) model) and other arbitrary models.
  • the network-side device uses the RGB model to process the color value, and can use bit operations to achieve the best performance and complete the operation in the shortest time.
  • the above-mentioned preset color model is used as an example of the RGB model, and the type of the above-mentioned preset color model is not limited in actual use.
  • the network-side device can establish a mathematical three-dimensional Cartesian coordinate system (i.e., an RGB model) based on the R value, B value, and G value in the color values, such as Shown in (a) among Fig. 4, the X-axis of this three-dimensional space Cartesian coordinate system corresponds to the R value, the Y-axis of this three-dimensional space Cartesian coordinate system corresponds to the B value, and the Z-axis of this three-dimensional space Cartesian coordinate system corresponds to the G value.
  • a mathematical three-dimensional Cartesian coordinate system i.e., an RGB model
  • the network side device may determine the above target color value according to the distribution.
  • the network side device may create a mapping relationship between each coordinate interval and the number of color values distributed in the coordinate interval, so as to further determine the target color value.
  • step 102 may be specifically implemented through the following steps 102a, 102b, and 102c.
  • step 102a the network-side device divides the preset color model based on the R value, G value and B value in at least part of the color values to obtain multiple color sub-models.
  • the network side device may determine the coordinate axis with the largest difference between the maximum value and the minimum value distributed on each coordinate axis in the above preset color model as the first divided coordinate axis.
  • x2 is the coordinate interval (or coordinate value) corresponding to the maximum R value in at least some of the above color values on the X axis
  • x1 is the coordinate on the X axis corresponding to the minimum R value in at least some of the above color values Interval (or coordinate value)
  • y2 is the coordinate interval (or coordinate value) corresponding to the maximum G value in the above-mentioned at least part of the color values on the Y-axis
  • y1 is corresponding to the minimum G value in the above-mentioned at least part of the color values on the Y-axis coordinate interval (or coordinate value), and so on.
  • the network side device may divide the foregoing preset color model in the following manner 1 or 2.
  • the network side device may use a unilateral median segmentation method to divide the preset color model into at least one color sub-model, and the division granularity may be adjusted/determined according to the scene.
  • the network-side device can further assign all the R values distributed in the coordinate interval 14 to the coordinate interval 31 in order from large to small Sort in the order of , and calculate the median value again.
  • the network side device can place the spatial coordinate point (19 ⁇ 8,0,0) in The plane perpendicular to the X-axis is determined as the split plane, and the above-mentioned preset color model is divided into model V1 (that is, a model composed of all coordinates on the X-axis coordinates between 0 and 19) and model V (that is, all A model composed of coordinates whose X-axis coordinates are in the coordinate interval 20 to 31), and mark the spatial coordinate range of model V1 and model V.
  • the format of the spatial coordinate range is (x2, x1, y2, y1, z2, z1 ).
  • the network side device can continue to perform the above steps on the model V, divide the model V into model V2 and model V', and so on, until the network side device divides the above preset color model n-1 times to obtain V1,
  • V1 There are n models V2...Vn-1, V n, that is, n color sub-models corresponding to the R value are obtained, so that the division of the preset color model based on the R value in at least part of the color values can be completed.
  • n is between 1 and 256, and the larger the value of n, the finer the separation granularity and the higher the computational complexity.
  • the network side device can divide the preset color model based on the G value in at least part of the color values in the same manner to obtain g models; and based on the B value in at least part of the color values, divide the preset color model to obtain q models; g, q and n can be the same or different.
  • the above-mentioned multiple color sub-models include the above-mentioned n models, q models, and g models.
  • the network side device can first determine the space corresponding to each coordinate interval in the coordinate interval 0 to the coordinate interval 31 as a model; and determine the space corresponding to every at least two consecutive coordinate intervals in the coordinate interval 0 to the coordinate interval 31 for a model. In this way, the division of the preset color model based on the R value in at least part of the color values can be completed.
  • the network side device may divide the preset color model based on the G value in at least some of the color values in the same manner; and divide the preset color model based on the B value in at least some of the color values. After the network side divides the preset models based on the R value, G value and B value in at least part of the color values, the above-mentioned multiple color sub-models can be obtained.
  • step 102b the network side device determines a target color sub-model from a preset color model according to the quantity of color values distributed in the color sub-model.
  • step 102b may specifically be implemented through one of the following possible implementation manners or another possible implementation manner.
  • the above-mentioned multiple color sub-models may include: at least one first color sub-model corresponding to the above-mentioned R value, at least one second color sub-model corresponding to the above-mentioned G value, and the above-mentioned At least one third color sub-model corresponding to the B value, then the above step 102b can be specifically implemented through the following steps 102b1 to 102b4.
  • At least one first color sub-model corresponding to the R value is all the color sub-models obtained by dividing the preset color model by the network side device based on the R value in at least some of the color values;
  • the at least one first color sub-model corresponding to the value is all the color sub-models obtained by dividing the preset color model based on the G value in at least part of the color values of the network side device;
  • the at least one first color sub-model corresponding to the B value is The network side device divides all the color sub-models obtained from the preset color model based on the B value in at least some of the color values.
  • Step 102b1 the network side device determines a fourth color sub-model that satisfies the first condition and the second condition in at least one first color sub-model.
  • step 102b2 the network side device determines a fifth color sub-model satisfying the first condition and the third condition among at least one second color sub-model.
  • step 102b3 the network side device determines a sixth color sub-model satisfying the first condition and the fourth condition among at least one third color sub-model.
  • the first condition is that the number of color values distributed in the color sub-model reaches the preset threshold
  • the second condition is that the width of the color sub-model on the R-axis is the smallest
  • the third condition is that the width of the color sub-model on the G-axis is the smallest
  • the fourth condition is that the width of the color sub-model on the B-axis is the smallest.
  • the above-mentioned fourth color sub-model is at least one of the first color sub-models corresponding to the above-mentioned R value, the number of distributed color values reaches a preset threshold and the width on the R-axis is the smallest A color sub-model;
  • the fifth color sub-model is a color sub-model whose number of distributed color values reaches a preset threshold and whose width on the G axis is the smallest among at least one second color sub-model corresponding to the above-mentioned G value;
  • the above-mentioned The fifth color sub-model is a color sub-model whose number of distributed color values reaches a preset threshold and whose width on the B-axis is the smallest among at least one third color sub-model corresponding to the above-mentioned B value.
  • the R axis is the X axis
  • the G axis is the Z axis
  • the B axis is the Y axis.
  • the above-mentioned preset thresholds may be defaulted by the system, or the above-mentioned preset thresholds may be set by users according to actual usage requirements.
  • the smallest width may be the smallest difference between the maximum value and the minimum value distributed on one coordinate axis in the color sub-model.
  • the resource recall method provided by the embodiment of the present application is exemplarily described below.
  • the network-side device adopts the above-mentioned method 2 to divide the above-mentioned preset color model, and the above-mentioned multiple color sub-models include the color sub-model 1 corresponding to the R value , color sub-model 2 and color sub-model 3 (that is, at least one first color sub-model), the preset threshold is 0.7 ⁇ P, and P is the total number of at least some color values.
  • the network side device can determine that color sub-model 1 is the fourth color sub-model
  • the model that is, the color sub-model 1 is a color sub-model whose number of distributed color values reaches a preset threshold and whose width on the R-axis is the smallest.
  • Step 102b4 The network-side device selects from the preset color according to the coordinate information of the fourth color sub-model on the R axis, the coordinate information of the fifth color sub-model on the G axis, and the coordinate information of the sixth color sub-model on the B axis.
  • the target color submodel is determined in the model.
  • the network side device may determine that among the preset color models, a model where the fourth color sub-model, the fifth color sub-model, and the sixth color sub-model intersect is the target color sub-model.
  • the network side device can determine the model with the space coordinate range of (x4, x3, y4, y3, z4, z3) as the target color sub-model, that is, the above preset color model , the model where the fourth color submodel, the fifth color submodel and the sixth color submodel intersect.
  • the network side device can determine the color sub-model whose color value distribution on each coordinate axis reaches the preset threshold and has the smallest width, and can be based on each determined color sub-model on the corresponding coordinate axis
  • the coordinate information of the target color is determined to determine a target color sub-model, so it can be ensured that the target color value is distributed in the target color sub-model, so that the accuracy of determining the target color value by the network side device can be improved.
  • step 102b may specifically be implemented through the following steps 102b5 and 102b6.
  • each color sub-model in the foregoing multiple color sub-models corresponds to a product respectively.
  • step 102b6 the network side device determines the color sub-model with the largest product determined among the plurality of color sub-models as the target color sub-model.
  • the volume of a color sub-model may be determined by the network side device according to the spatial coordinate range of the color sub-model.
  • the network side device can determine the volume of the color sub-model as (
  • the network side device can further determine the number of color values distributed in each color sub-model and the color The volume of the sub-models is multiplied, and the color sub-model with the largest product is determined as the target color sub-model.
  • the electronic device can determine the product of the number of color values distributed in each color sub-model and the volume of the color sub-model, and determine the color sub-model with the largest product as the target sub-model, it can ensure that The above-mentioned target color values are distributed in the target color sub-model, so that the accuracy of determining the target color values by the network side device can be further improved.
  • step 102c the network side device determines the average value of the color values distributed in the target color sub-model as the target color value.
  • the network-side device may use the A value, R value, G value, and B value of all color values distributed in the target color sub-model Values are averaged, and the color value combined with the average value of A value, R value, G value and B value is determined as the target color value. If the alpha value is not included in the color value, the network side device can average the R value, G value and B value of all the color values distributed in the target color sub-model, and calculate the R value, G value and B value The color value obtained by combining the average values is determined as the target color value.
  • an Alpha value i.e., an A value
  • the network-side device may use the A value, R value, G value, and B value of all color values distributed in the target color sub-model Values are averaged, and the color value combined with the average value of A value, R value, G value and B value is determined as the target color value.
  • the network side device can calculate the average value of A1, A2 and A3 is a1, the average of R1, R2, and R3 is r1, the average of G1, G2, and G3 is g1, and the average of B1, B2, and B3 is b1, and the color value (a1, r1, g1, b1) is determined is the target color value.
  • the network side device can divide the preset color model into multiple color sub-models based on the R value, G value and B value in at least part of the color values obtained respectively, and according to each color sub-model The number of color values distributed in , determine a target color sub-model from the preset color model, and determine the average value of the color values distributed in the target color sub-model as the above-mentioned target color value, so the network side can be further improved The accuracy with which the device determines the target color value.
  • Step 103 the network side device sends the target information to the UE.
  • the network side device sends the target information to the UE, so that the UE displays the target interface.
  • the target information may include the aforementioned recall data and a target color value
  • the target color value may be used to indicate the background color of the target interface
  • the target interface may be an interface for the UE to display the recall data.
  • the network side device determines the target color value from the recall data, it returns the target information including the recall data and the target color value online to the UE.
  • the UE may display the recall data interface, and determine the target color value as the color value of the background color of the interface, that is, the color value of the background color of the recall data interface displayed by the UE is
  • the picture data included in the above recall data corresponds to the color value of the main color in the picture, so that the display flexibility can be improved.
  • the network side device may include picture data in the recall data requested by the UE, according to at least part of the color values in the acquired picture data in the preset color model distribution, determine the color value of the main color in the picture corresponding to the picture data, and send information including the color value and the recall data to the UE, so that the UE displays the interface of the recall data, and the background color of the interface is The color indicated by the target color value; that is, the color value of the background color of the recall data interface that the network side device instructs the UE to display, may be the color value of the main color in the picture corresponding to the picture data included in the recall data, so Compared with the solution of the background color of the interface corresponding to the recall data displayed by the UE in the conventional technology, the resource recall method provided in the embodiment of the present application can improve the flexibility of the UE display.
  • the resource recall method provided in the embodiment of the present application may be executed by a resource recall device.
  • the resource recalling device is used as an example to illustrate the resource recalling device provided in the embodiment of the present application.
  • the embodiment of the present application provides a resource recalling device 60 , which may include: an acquiring module 61 , a determining module 62 and a sending module 63 .
  • the obtaining module 61 may be configured to obtain at least part of the color values in the picture data when the recall data requested by the user equipment UE includes picture data.
  • the determination module 62 may be configured to determine a target color value according to the distribution of at least part of the color values in the preset color model, where the target color value is the color value of the main color in the picture corresponding to the picture data.
  • the sending module 63 may be configured to send target information to the UE, so that the UE displays a target interface; wherein, the target information includes recall data and a target color value, the target color value is used to indicate the background color of the target interface, and the target interface is the UE display recall data interface.
  • the resource recalling apparatus 60 may further include a division module.
  • the dividing module can be used to divide the preset color model based on the R value, G value and B value in at least part of the color values respectively to obtain multiple color sub-models.
  • the determining module 62 may specifically be configured to determine a target color sub-model from a preset color model according to the quantity of color values distributed in the color sub-model.
  • the determination module 62 may be specifically configured to determine the average value of the color values distributed in the target color sub-model as the target color value.
  • the multiple color sub-models may include: at least one first color sub-model corresponding to the R value, at least one second color sub-model corresponding to the G value, and at least one color sub-model corresponding to the B value Tertiary color submodel.
  • the determining module 62 may specifically be configured to determine a fourth color sub-model satisfying the first condition and the second condition among at least one first color sub-model.
  • the determining module 62 may specifically be configured to determine a fifth color sub-model satisfying the first condition and the third condition among the at least one second color sub-model.
  • the determining module 62 may specifically be configured to determine a sixth color sub-model satisfying the first condition and the fourth condition among at least one third color sub-model.
  • the determination module 62 can be specifically configured to, according to the coordinate information of the fourth color sub-model on the R axis, the coordinate information of the fifth color sub-model on the G axis, and the coordinate information of the sixth color sub-model on the B axis, from the preset Assume that the target color sub-model is determined in the color model; wherein, the first condition is that the number of color values distributed in the color sub-model reaches a preset threshold, the second condition is that the width of the color sub-model on the R axis is the smallest, and the third condition is The width of the color sub-model on the G-axis is the smallest, and the fourth condition is that the width of the color sub-model on the B-axis is the smallest.
  • the determination module 62 can be specifically configured to, for each color sub-model in the multiple color sub-models, determine the ratio between the number of color values distributed in a color sub-model and the volume of a color sub-model product.
  • the determining module 62 may specifically be configured to determine, among the multiple color sub-models, the color sub-model with the largest product determined as the target color sub-model.
  • the acquiring module 61 may specifically be configured to acquire at least part of the color values from the picture data according to preset filtering rules.
  • the data recall device since the data recall device can include picture data in the recall data requested by the UE, according to at least part of the color values in the acquired picture data in the preset color model distribution, determine the color value of the main color in the picture corresponding to the picture data, and send information including the color value and the recall data to the UE, so that the UE displays the interface of the recall data, and the background color of the interface It is the color indicated by the target color value; that is, the data recall device instructs the UE to display the color value of the background color of the recall data interface, which may be the color value of the main color in the picture corresponding to the picture data included in the recall data, Therefore, compared with the solution of the background color of the interface corresponding to the recall data displayed by the UE in the conventional technology, the resource recall method provided by the embodiment of the present application can improve the flexibility of the UE display.
  • the data recall device in the embodiment of the present application may be a server, a network attached storage (Network Attached Storage, NAS), a base station or a core network, which is not specifically limited in the embodiment of the present application.
  • the base station can be called Node B, evolved Node B, access point, base transceiver station (Base Transceiver Station, BTS), radio base station, radio transceiver, basic service set (Basic Service Set, BSS), extended service Extended Service Set (ESS), Node B, Evolved Node B (eNB), Home Node B, Home Evolved Node B, WLAN access point, WiFi node, Transmitting Receiving Point (TRP) or all
  • the base station is not limited to a specific technical vocabulary. It should be noted that in the embodiment of this application, only the base station in the NR system is used as an example, but it does not Specific types of base stations are defined.
  • the data recall device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the data recall device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 5 , and details are not repeated here to avoid repetition.
  • this embodiment of the present application also provides a network side device 700, including a processor 701 and a memory 702, and the memory 702 stores programs or instructions that can run on the processor 701, When the program or instruction is executed by the processor 701, the various steps of the resource recall method embodiment described above can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the network-side device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.
  • FIG. 8 is a schematic diagram of a hardware structure of a network side device implementing an embodiment of the present application.
  • the network side device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
  • the network side device 1000 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1010 through the power management system, so that the management of charging, discharging, and functions such as power management.
  • a power supply such as a battery
  • the network-side device structure shown in FIG. 8 does not constitute a limitation to the network-side device.
  • the network-side device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components. Herein No longer.
  • the processor 1010 may be configured to acquire at least part of the color values in the picture data when the picture data is included in the recall data requested by the user equipment UE.
  • the processor 1010 is further configured to determine the target color value according to the distribution of at least part of the color values in the preset color model, where the target color value is the color value of the main color in the picture corresponding to the picture data.
  • the radio frequency unit 1001 can be used to send target information to the UE, so that the UE displays a target interface; wherein, the target information includes recall data and a target color value, the target color value is used to indicate the background color of the target interface, and the target interface is the UE display recall data interface.
  • the processor 1010 is further configured to divide the preset color model based on the R value, the G value and the B value in at least part of the color values, respectively, to obtain multiple color sub-models.
  • the processor 1010 may specifically be configured to determine a target color sub-model from a preset color model according to the quantity of color values distributed in the color sub-model.
  • the processor 1010 may specifically be configured to determine an average value of color values distributed in the target color sub-model as the target color value.
  • the multiple color sub-models may include: at least one first color sub-model corresponding to the R value, at least one second color sub-model corresponding to the G value, and at least one color sub-model corresponding to the B value Tertiary color submodel.
  • the processor 1010 may specifically be configured to determine a fourth color sub-model satisfying the first condition and the second condition among the at least one first color sub-model.
  • the processor 1010 may specifically be configured to determine a fifth color sub-model satisfying the first condition and the third condition among the at least one second color sub-model.
  • the processor 1010 may specifically be configured to determine a sixth color sub-model satisfying the first condition and the fourth condition among at least one third color sub-model.
  • the processor 1010 may specifically be configured to, according to the coordinate information of the fourth color sub-model on the R axis, the coordinate information of the fifth color sub-model on the G axis, and the coordinate information of the sixth color sub-model on the B axis, from the preset Assume that the target color sub-model is determined in the color model; wherein, the first condition is that the number of color values distributed in the color sub-model reaches a preset threshold, the second condition is that the width of the color sub-model on the R axis is the smallest, and the third condition is The width of the color sub-model on the G-axis is the smallest, and the fourth condition is that the width of the color sub-model on the B-axis is the smallest.
  • the processor 1010 may specifically be configured to, for each color sub-model in the multiple color sub-models, determine the ratio between the number of color values distributed in a color sub-model and the volume of a color sub-model product.
  • the processor 1010 may specifically be configured to determine, among the plurality of color sub-models, the color sub-model with the largest product determined as the target color sub-model.
  • the processor 1010 may specifically be configured to acquire at least part of the color values from the picture data according to a preset filtering rule.
  • the network-side device may include picture data in the recall data requested by the UE, according to at least part of the color values in the acquired picture data in the preset color model distribution, determine the color value of the main color in the picture corresponding to the picture data, and send information including the color value and the recall data to the UE, so that the UE displays the interface of the recall data, and the background color of the interface is The color indicated by the target color value; that is, the color value of the background color of the recall data interface that the network side device instructs the UE to display, may be the color value of the main color in the picture corresponding to the picture data included in the recall data, so Compared with the solution of the background color of the interface corresponding to the recall data displayed by the UE in the conventional technology, the resource recall method provided in the embodiment of the present application can improve the flexibility of the UE display.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072 .
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1009 can be used to store software programs as well as various data.
  • the memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc.
  • memory 1009 may include volatile memory or nonvolatile memory, or, memory 1009 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM electrically programmable Erase Programmable Read-Only Memory
  • Flash Flash.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM , SLDRAM
  • Direct Memory Bus Random Access Memory Direct Rambus
  • the processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .
  • the embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, the various processes of the above resource recall method embodiment are realized, and the same To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above resource recall method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above resource recall method embodiment, and can achieve the same technical effect , to avoid repetition, it will not be repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Image Processing (AREA)

Abstract

公开了一种资源召回方法、装置及网络侧设备。应用于网络侧设备,包括:在用户设备UE请求的召回数据中包括图片数据的情况下,获取图片数据中的至少部分颜色值;根据至少部分颜色值在预设颜色模型中的分布情况,确定目标颜色值,目标颜色值为图片数据对应的图片中的主颜色的颜色值;向UE发送目标信息,以使UE显示目标界面;其中,目标信息包括召回数据和目标颜色值,目标颜色值用于指示目标界面的背景颜色,目标界面为UE显示召回数据的界面。

Description

资源召回方法、装置及网络侧设备
相关申请的交叉引用
本申请主张在2021年11月26日在中国提交的中国专利申请号202111421107.X的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种资源召回方法、装置及网络侧设备。
背景技术
随着通信技术的不断发展,电子设备的功能越来越丰富。例如,电子设备可以通过网络进行在线搜索。
目前,当用户触发电子设备进行在线搜索之后,电子设备可以显示一个纯白色背景的搜索结果界面,或者电子设备可以显示一个用户设置的一张图片为背景的搜索结果界面。如此,导致电子设备显示的灵活性较差。
发明内容
本申请实施例的目的是提供一种资源召回方法、装置及网络侧设备,能够解决电子设备显示的灵活性较差的问题。
第一方面,本申请实施例提供了一种资源召回方法,该方法应用于网络侧设备,该方法包括:在用户设备UE(User Equipment,UE)请求的召回数据中包括图片数据的情况下,获取图片数据中的至少部分颜色值;根据至少部分颜色值在预设颜色模型中的分布情况,确定目标颜色值,目标颜色值为图片数据对应的图片中的主颜色的颜色值;向UE发送目标信息,以使UE显示目标界面;其中,目标信息包括召回数据和目标颜色值,目标颜色值用于指示目标界面的背景颜色,目标界面为UE显示召回数据的界面。
第二方面,本申请实施例提供了一种资源召回装置,该装置包括获取模块、确定模块和发送模块;获取模块,用于在用户设备UE请求的召回数据中包括图片数据的情况下,获取图片数据中的至少部分颜色值;确定模块,用于根据至少部分颜色值在预设颜色模型中的分布情况,确定目标颜色值,目标颜色值为图片数据对应的图片中的主颜色的颜色值;发送模块,用于向UE发送目标信息,以使UE显示目标界面;其中,目标信息包括召回数据和目标颜色值,目标颜色值用于指示目标界面的背景颜色,目标界面为UE显示召回数据的界面。
第三方面,本申请实施例提供了一种网络侧设备,该网络侧设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
在本申请实施例中,可以在用户设备UE请求的召回数据中包括图片数据的情况下,获取图片数据中的至少部分颜色值;且根据至少部分颜色值在预设颜色模型中的分布情况,确定目标颜色值,目标颜色值为图片数据对应的图片中的主颜色的颜色值;并向UE发送目标信息,以使UE显示目标界面;其中,目标信息包括召回数据和目标颜色值,目标颜色值用于指示目标界面的背景颜色,目标界面为UE显示召回数据的界面。通过该方案,由于网络侧设备可以在UE请求的召回数据中包括图片数据的情况下,根据获取的该图片数据中的至少部分颜色值在预设颜色模型中的分布,确定该图片数据对应的图片中的主颜色的颜色值,并向该UE发送包括该颜色值和该召回数据的信息,以使UE显示该召回数据的界面,且该界面的背景颜色为该目标颜色值指示的颜色;即网络侧设备指示UE显示的召回数据的界面的背景颜色的颜色值,可以为该召回数据中包括的图片数据对应的图片中的主颜色的颜色值,因此相比于传统技术中UE显示的召回数据对应的界面的背景颜色的方案,本申请实施例提供的资源召回方法可以提高UE显示的灵活性。
附图说明
图1是本申请实施例可应用的一种无线通信***的框图;
图2是本申请实施例提供的资源召回方法的流程示意图;
图3是本申请实施例提供的资源召回方法中获取至少部分颜色值的方法的示意图;
图4是本申请实施例提供的资源召回方法中RGB模型及至少部分颜色值在RGB模型中的分布情况的示意图;
图5是本申请实施例提供的资源召回方法中至少部分颜色值在RGB模型中的X轴上的分布情况的示意图;
图6是本申请实施例提供的资源召回装置的示意图;
图7是本申请实施例提供的网络侧设备的示意图;
图8是本申请实施例提供的网络侧设备的硬件示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申 请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
值得指出的是,本申请实施例所描述的技术不限于长期演进型(Long Term Evolution,LTE)/LTE的演进(LTE-Advanced,LTE-A)***,还可用于其他无线通信***,诸如码分多址(Code Division Multiple Access,CDMA)、时分多址(Time Division Multiple Access,TDMA)、频分多址(Frequency Division Multiple Access,FDMA)、正交频分多址(Orthogonal Frequency Division Multiple Access,OFDMA)、单载波频分多址(Single-carrier Frequency-Division Multiple Access,SC-FDMA)和其他***。本申请实施例中的术语“***”和“网络”常被可互换地使用,所描述的技术既可用于以上提及的***和无线电技术,也可用于其他***和无线电技术。然而,以下描述出于示例目的描述了新空口(New Radio,NR)***,并且在以下大部分描述中使用NR术语,尽管这些技术也可应用于NR***应用以外的应用,如第6代(6th Generation,6G)通信***。
图1示出本申请实施例可应用的一种无线通信***的框图。无线通信***包括UE11和网络侧设备12。其中,UE也可以称作电子设备,UE可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)或称为笔记本电脑、个人数字助理(Personal Digital Assistant,PDA)、掌上电脑、上网本、超级移动个人计算机(ultra-mobile personal computer,UMPC)、移动上网装置(Mobile Internet Device,MID)、可穿戴式设备(Wearable Device)或车载设备(VUE)、行人终端(PUE)等终端侧设备,可穿戴式设备包括:手环、耳机、眼镜等。需要说明的是,在本申请实施例并不限定UE的具体类型。网络侧设备12可以是基站或核心网,其中,基站可被称为节点B、演进节点B、接入点、基收发机站(Base Transceiver Station,BTS)、无线电基站、无线电收发机、基本服务集(Basic Service Set,BSS)、扩展服务集(Extended Service Set,ESS)、B节点、演进型B节点(eNB)、家用B节点、家用演进型B节点、WLAN接入点、WiFi节点、发送接收点(Transmitting Receiving Point,TRP)或所述领域中其他某个合适的术语,只要达到相同的技术效果,所述基站不限于特定技术词汇,需要说明的是,在本申请实施例中仅以NR***中的基站为例,但是并不限定基站的具体类型。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的资源召回 方法、装置及网络侧设备进行详细地说明。
本申请实施例提供的资源召回方法可以应用于UE向网络侧设备请求资源的场景中。
示例性地,以UE通过网络进行搜索为例,该UE对应的服务器(例如本申请实施例中的网络侧设备)可以在该UE请求的搜索结果数据(例如本申请实施例中的召回数据)中包括图片数据的情况下,根据获取的该图片数据中的至少部分颜色值在预设颜色模型中的分布情况,确定该图片数据对应的图片中的主颜色的颜色值(例如本申请实施例中的目标颜色值),并向该UE发送包括该颜色值和该搜索结果数据的信息(例如本申请实施例中的目标信息),以使UE显示该搜索结果数据的界面(例如本申请实施例中的目标界面),从而UE可以在接收到该信息之后,以该颜色值指示的背景颜色显示该搜索结果数据的界面。如此,由于网络侧设备指示UE显示的召回数据的界面的背景颜色的颜色值,可以为该召回数据中包括的图片数据对应的图片中的主颜色的颜色值,因此相比于传统技术中UE显示的召回数据对应的界面的背景颜色的方案,本申请实施例提供的资源召回方法可以提高UE显示的灵活性。
结合图2,本申请实施例提供一种网络切换方法,该方法可以包括下述的步骤101至步骤103。
步骤101、网络侧设备在UE请求的召回数据中包括图片数据的情况下,获取该图片数据中的至少部分颜色值。
可选地,本申请实施例中,召回数据可以为网络侧设备对UE任意的数据召回请求返回的对应的结果数据,例如,召回数据为网络侧设备对UE的图像搜索请求返回的搜索结果数据。
可以理解,本申请实施例中,网络侧设备可以在接收到UE的数据召回请求后,确定与该数据召回请求对应的数据,且将获取的数据的地址信息或获取的数据作为召回数据,并向UE发送该召回数据。
可选地,本申请实施例中,网络侧设备可以通过上述图片数据的地址信息,将该图片数据以数据流的形式,读取到计算机编程语言java图片核心类中,并通过该图片核心类获取该图片数据中的至少部分颜色值。
可选地,本申请实施例中,当上述图片数据包括不同图片格式的图片的图片数据时,网络侧设备可以按照图片格式,将不同格式的图片对应的图片数据,转换为常规格式(例如JPG、jpg、bmp、BMP、gif、GIF、WBMP、png、PNG、JPEG、webp、WebP、wbmp、jpeg)的图片对应的二进制数据,以确保上述图片数据能够被读取到计算机编程语言java图片核心类中。
例如,网络侧设备可以将采用谷歌(Google)图片压缩技术处理后的webp的图片对应的数据,转换为jpg的图片对应的二进制数据。
可选地,本申请实施例中,上述图片数据中的至少部分颜色值可以为图片数据中 的全部颜色值,或者上述图片数据中的至少部分颜色值可以为图片数据中的部分颜色值。
可选地,本申请实施例中,当上述图片数据中的至少部分颜色值可以为图片数据中的部分颜色值时,网络侧设备可以采用抽样策略获取该部分颜色值,从而可以降低网络侧设备进一步处理的复杂度和耗时。
可选地,本申请实施例中,上述抽样策略中的抽样比例可以为***默认的,或为用户根据实际使用需求设置的(用户自定义的)。
可选地,本申请实施例中,若上述图片数据中的全部颜色值对应的颜色的种类较少且相同颜色的分布较集中,则网络侧设备可以适当增大上述抽样比例。但通常情况下,上述抽样比例不超过全部颜色值的数量的10%,从而可以在确保网络侧设备进行后续处理的准确性的同时,进一步降低处理的复杂度和耗时。
下面结合附图对本申请实施例提供的资源召回方法进行示例性地说明。
示例性地,网络侧设备可以通过上述java图片核心类,遍历上述图片数据对应的图片中的每个像素,并获取每个像素的颜色值。若颜色值中包括阿尔法值,即A值,则如图3中的(a)所示,网络侧设备遍历的偏移量为4个字节(即A、蓝色B、绿色G、红色R),此时一个颜色值可以表示为(A值,R值,G值,B值);若颜色值中不包括A值,则如图3中的(b)所示,网络侧设备遍历的偏移量为3个字节(即B、G、R),此时一个颜色值可以表示为(R值,G值,B值)。可以理解,由于一个字节为8bit,因此二进制中能表示的范围值为0至255共256个值,即A值、R值、G值和B值的取值范围均为0至255。
需要说明的是,上述A值指示图片的透明度,A值越小图片的透明度越高,上述R值、G值和B值越大图片的颜色越深。
可以理解,本申请实施例中,每个颜色值对应一个像素,颜色值中的R值、G值和B值也可以分别称为R子像素的值、G子像素的值和B子像素的值。
可选地,本申请实施例中,上述步骤101具体可以通过下述的步骤101a实现。
步骤101a、网络侧设备在UE请求的召回数据中包括图片数据的情况下,按照预设过滤规则,从图片数据中获取至少部分颜色值。
可选地,本申请实施例中,上述预设过滤规则可以为***默认的,或者上述预设过滤规则可以为用户根据实际使用需求设置的。可以理解,当预设过滤规则为用户根据实际使用需求设置的时,UE向网络侧设备发送的数据召回请求中可以包括过滤规则,以便于网络侧设备按照该过滤规则,从图片数据中获取至少部分颜色值。
例如,以预设过滤规则为用户根据实际使用需求设置的为例,若用户需求过滤颜色值中的红色颜色值,则网络侧设备可以从获取的颜色之中删除R值大于200、G值小于50且B值小于50的颜色值,从而可以过滤掉红色范围的颜色值。
对于步骤101a中的其它描述,具体可以参照上述步骤101中的相关描述,为了避 免重复,此处不再赘述。
本申请实施例中,由于网络侧设备可以按照预设的过滤规则,从图片数据中获取至少部分颜色值,以满足用户的不同使用需求,因此可以提高网络侧设备获取颜色值的灵活性。
步骤102、网络侧设备根据至少部分颜色值在预设颜色模型中的分布情况,确定目标颜色值。
本申请实施例中,目标颜色值可以为上述图片数据对应的图片中的主颜色的颜色值。
可选地,本申请实施例中,上述图片数据对应的图片的数量可以为一个也可以为多个,具体可以根据UE的请求确定。
可选地,本申请实施例中,图片中的主颜色可以为图片中数量最多的一个像素值对应的颜色。
可选地,本申请实施例中,上述预设颜色模型可以为RGB模型、CMY模型(以青色、品红和黄色作为三基色建立的模型)或HSV模型(以色调、饱和度和明度建立的模型)等任意的模型。
可选地,本申请实施例中,当上述预设颜色模型为RGB模型时,由于RGB模型中表示颜色的数值范围为0至255,该数值范围与上述java图片核心类处理的二进制数值完全契合,因此网络侧设备采用RGB模型对颜色值进行处理,可以采用位运算以达到最佳的性能,并在最短的耗时内完成运算。
需要说明的是,为了方便描述,本申请实施例中除特别说明外,均是以上述预设颜色模型为RGB模型进行示例的,实际使用中并不限定上述预设颜色模型的类型。
下面结合附图对本申请实施例提供的资源召回方法进行示例性地说明。
示例性地,网络侧设备在获取图片数据中的至少部分颜色值后,可以以基于的颜色值中的R值、B值和G值,建立数学三维空间直角坐标系(即RGB模型),如图4中的(a)所示,该三维空间直角坐标系的X轴对应R值,该三维空间直角坐标系的Y轴对应B值,该三维空间直角坐标系的Z轴对应G值。如图4中的(b)所示,为网络侧设备获取的颜色值在该RGB模型中的分布情况,网络侧设备可以根据该分布情况确定上述目标颜色值。
可选地,本申请实施例中,由于RGB模型中的每个坐标轴的范围均为0至255,因此网络侧设备可以量化出256×256×256=16777216个坐标点。而坐标点达到千万级运算量会过大,为了减少运算的耗时,网络侧设备可以将256×256×256简化为32×32×32=32768个坐标区间,每个新的坐标区间则包含了8×8×8=512个原始坐标点。
可选地,本申请实施例中,网络侧设备可以创建上述每个坐标区间与分布在该坐标区间内的颜色值的数量之间的映射关系,以方便进一步确定上述目标颜色值。
可选地,本申请实施例中,上述步骤102具体可以通过下述的步骤102a、102b和 102c实现。
步骤102a、网络侧设备分别基于至少部分颜色值中的R值、G值和B值,划分预设颜色模型,得到多个颜色子模型。
可选地,本申请实施例中,网络侧设备可以将在上述预设颜色模型中每个坐标轴上分布的最大值与最小值之间的差值最大的坐标轴,确定为首先分割的坐标轴。
例如,若X轴、Y轴和Z轴的最大值和最小值,分别为(x2、x1),(y2、y1),(z2、z1),则网络侧设备可以计算x2-x1=a、y2-y1=b、z2-z1=c的值,如果a>b>c,那么网络侧设备可以确定X轴为首先分割的坐标轴。
需要说明的是,x2为上述至少部分颜色值中的最大R值在X轴上对应的坐标区间(或坐标值),x1为上述至少部分颜色值中的最小R值在X轴上对应的坐标区间(或坐标值);y2为上述至少部分颜色值中的最大G值在Y轴上对应的坐标区间(或坐标值),y1为上述至少部分颜色值中的最小G值在Y轴上对应的坐标区间(或坐标值),以此类推。
可选地,本申请实施例中,网络侧设备可以通过下述的方式一或方式二划分上述预设颜色模型。
下面结合附图分别对方式一和方式二进行示例性地说明。
方式一
可选地,本申请实施例中,网络侧设备可以采用单边中值分割方法,将预设颜色模型划分成至少一个颜色子模型,划分粒度可以根据场景调整/确定。
示例性地,假设网络侧设备将上述预设颜色模型简化为32×32×32=32768个坐标区间,如果网络侧设备确定的划分顺序依次为:X轴(即R值)、Y轴(即G值)、Z轴(即B值),那么:如图5所示,为网络侧设备获取至少部分颜色值在上述预设颜色模型中的X轴上的分布示意图;网络侧设备可以将该至少部分颜色值中的全部颜色值的R值,按照由大到小的顺序进行排序,并计算一次中值(即该R值序列中处于中间位置的R值)。如图5所示,若网络侧设备计算的中值所属的坐标区间为坐标区间13,则网络侧设备可以再将分布在坐标区间14至坐标区间31中的全部R值,按照由大到小的顺序进行排序,并再计算一次中值,如果网络侧设备此次计算的中值所属的坐标区间为坐标区间19,那么网络侧设备可以将空间坐标点(19×8,0,0)所在的垂直于X轴的平面确定为分割面,并将上述预设颜色模型分割为模型V1(即所有X轴坐标在坐标区间0至19之间的坐标所组成的模型)和模型V(即所有X轴坐标在坐标区间20至31之间的坐标所组成的模型),并标记模型V1及模型V的空间坐标范围,空间坐标范围的表示格式为(x2、x1、y2、y1、z2、z1)。进一步地,网络侧设备可以继续对模型V执行上述步骤,将模型V分割为模型V2和模型V′,依次类推,直到网络侧设备将上述预设颜色模型分割n-1次后,得到V1、V2…Vn-1、V n共n个模型,即得到与R值对应的n个颜色子模型,如此可以完成基于至少部分颜色值中的 R值对预设颜色模型的划分。
需要说明的是,n的取值范围为1至256之间,n值越大则分隔的粒度越细,计算复杂度越高。
然后,网络侧设备可以按照相同的方式,基于至少部分颜色值中的G值,划分预设颜色模型,得到g个模型;并基于至少部分颜色值中的B值,划分预设颜色模型,得到q个模型;g、q与n可以相同,也可以不同。
可以理解,本申请实施例中,上述多个颜色子模型包括上述n个模型、q个模型和g个模型。
方式二
示例性地,假设网络侧设备将上述预设颜色模型简化为32×32×32=32768个坐标区间,如果网络侧设备确定的分隔顺序依次为:X轴(即R值)、Y轴(即G值)、Z轴(即B值),那么:如图5所示,为网络侧设备获取至少部分颜色值在上述预设颜色模型中的X轴上的分布示意图。网络侧设备可以先将坐标区间0至坐标区间31中的每个坐标区间对应的空间确定为一个模型;并将坐标区间0至坐标区间31中的每至少两个连续的坐标区间对应的空间确定为一个模型。如此可以完成基于至少部分颜色值中的R值对预设颜色模型的划分。
然后,网络侧设备可以按照相同的方式,基于至少部分颜色值中的G值,划分预设颜色模型;并基于至少部分颜色值中的B值,划分预设颜色模型。在网络侧分别基于至少部分颜色值中的R值、G值和B值划分预设模型后,可以得到上述多个颜色子模型。
步骤102b、网络侧设备根据颜色子模型中分布的颜色值的数量,从预设颜色模型中确定目标颜色子模型。
可选地,本申请实施例中,上述步骤102b具体可以通过下述的一种可能的实现方式或另一种可能的实现方式实现。
一种可能的实现方式
可选地,本申请实施例中,上述多个颜色子模型中可以包括:与上述R值对应的至少一个第一颜色子模型、与上述G值对应的至少一个第二颜色子模型以及与上述B值对应的至少一个第三颜色子模型,那么上述步骤102b具体可以通过下述的步骤102b1至步骤102b4实现。
可以理解,本申请实施例中,与R值对应的至少一个第一颜色子模型为网络侧设备基于至少部分颜色值中的R值,对预设颜色模型划分得到的全部颜色子模型;与G值对应的至少一个第一颜色子模型为网络侧设备基于至少部分颜色值中的G值,对预设颜色模型划分得到的全部颜色子模型;与B值对应的至少一个第一颜色子模型为网络侧设备基于至少部分颜色值中的B值,对预设颜色模型划分得到的全部颜色子模型。
步骤102b1、网络侧设备确定至少一个第一颜色子模型中满足第一条件和第二条 件的第四颜色子模型。
步骤102b2、网络侧设备确定至少一个第二颜色子模型中满足第一条件和第三条件的第五颜色子模型。
步骤102b3、网络侧设备确定至少一个第三颜色子模型中满足第一条件和第四条件的第六颜色子模型。
其中,第一条件为颜色子模型中分布的颜色值的数量达到预设阈值,第二条件为颜色子模型在R轴上的宽度最小,第三条件为颜色子模型在G轴上的宽度最小,第四条件为颜色子模型在B轴上的宽度最小。
可以理解,本申请实施例中,上述第四颜色子模型为与上述R值对应的至少一个第一颜色子模型中,分布的颜色值的数量达到预设阈值且在R轴上的宽度最小的颜色子模型;上述第五颜色子模型为与上述G值对应的至少一个第二颜色子模型中,分布的颜色值的数量达到预设阈值且在G轴上的宽度最小的颜色子模型;上述第五颜色子模型为与上述B值对应的至少一个第三颜色子模型中,分布的颜色值的数量达到预设阈值且在B轴上的宽度最小的颜色子模型。
本申请实施例中,上述R轴为上述X轴,上述G轴为上述Z轴,上述B轴为上述Y轴。
可选地,本申请实施例中,上述预设阈值可以为***默认的,或者上述预设阈值可以为用户根据实际使用需求设置的。
可以理解,本申请实施例中,宽度最小可以为颜色子模型中在一个坐标轴上分布的最大值和最小值的差值最小。
下面对本申请实施例提供的资源召回方法进行示例性地说明。
示例性地,以网络侧设备确定上述第四颜色子模型为例,假设网络侧设备采用上述方式二划分上述预设颜色模型,上述多个颜色子模型中包括与R值对应的颜色子模型1、颜色子模型2和颜色子模型3(即至少一个第一颜色子模型),上述预设阈值为0.7×P,P为上述至少部分颜色值的的总数量。若颜色子模型1中的颜色值的数量为a,颜色子模型2中的颜色值的数量为b,颜色子模型3中的颜色值的数量为c,且a>c>0.7×P>b;颜色子模型3在R轴上的宽度>颜色子模型1在R轴上的宽度>颜色子模型2在R轴上的宽度,则网络侧设备可以确定颜色子模型1为上述第四颜色子模型,即颜色子模型1为分布的颜色值的数量达到预设阈值且在R轴上的宽度最小的颜色子模型。
对于网络侧设备确定第五颜色子模型和第六颜色子模型的方法,具体可以参见上述示例中网络侧设备确定第四颜色子模型的方法,为了避免重复,此处不再赘述。
步骤102b4、网络侧设备根据第四颜色子模型在R轴上的坐标信息、第五颜色子模型在G轴上的坐标信息和第六颜色子模型在B轴上的坐标信息,从预设颜色模型中确定目标颜色子模型。
可选地,本申请实施例中,网络侧设备可以确定预设颜色模型中,第四颜色子模型、第五颜色子模型和第六颜色子模型相交的模型为目标颜色子模型。
例如,假设第四颜色子模型在R轴上的坐标范围为[x3,x4],第五颜色子模型在G轴上的坐标范围为[z3,z4],第六颜色子模型在B轴上的坐标范围为[y3,y4],那么,网络侧设备可以将空间坐标范围为(x4,x3,y4,y3,z4,z3)的模型确定为目标颜色子模型,即上述预设颜色模型中,第四颜色子模型、第五颜色子模型和第六颜色子模型相交的模型。
本申请实施例中,由于网络侧设备可以确定各坐标轴上分布的颜色值的数量达到预设阈值且宽度最小的颜色子模型,并可以根据确定的每个颜色子模型在对应的坐标轴上的坐标信息,确定一个目标颜色子模型,因此可以确保上述目标颜色值分布在该目标颜色子模型中,从而可以提高网络侧设备确定目标颜色值的准确性。
另一种可能的实现方式
可选地,本申请实施例中,上述步骤102b具体可以通过下述的步骤102b5和102b6实现。
步骤102b5、网络侧设备对于多个颜色子模型中的每个颜色子模型,确定一个颜色子模型中分布的颜色值的数量与一个颜色子模型的体积的乘积。
可以理解,本申请实施例中,上述多个颜色子模型中的每个颜色子模型分别对应一个乘积。
步骤102b6、网络侧设备将多个颜色子模型中,确定的乘积最大的颜色子模型,确定为目标颜色子模型。
可选地,本申请实施例中,一个颜色子模型的体积可以由网络侧设备根据该颜色子模型的空间坐标范围确定。
例如,假设一个颜色子模型的空间坐标范围为(x6,x5,y6,y5,z6,z5),那么网络侧设备可以确定该颜色子模型的体积为(|x6-x5|)×(|y6-y5|)×(|z6-z5|)。
对于网络侧设备确定一个颜色子模型中分布的颜色值的数量的具体描述,可以参照上述实施例中的相关描述,为了避免重复,此处不再赘述。
本申请实施例中,网络侧设备在确定每个颜色子模型中分布的颜色值的数量与该颜色子模型的体积之后,可以进一步确定每个颜色子模型中分布的颜色值的数量与该颜色子模型的体积的乘积,并将乘积最大的颜色子模型确定为目标颜色子模型。
本申请实施例中,由于电子设备可以确定每个颜色子模型中分布的颜色值的数量与该颜色子模型的体积的乘积,并将乘积最大的颜色子模型确定为目标子模型,因此可以确保上述目标颜色值分布在该目标颜色子模型中,从而可以进一步提高网络侧设备确定目标颜色值的准确性。
步骤102c、网络侧设备将目标颜色子模型中分布的颜色值的平均值确定为目标颜色值。
可选地,本申请实施例中,若颜色值中包括阿尔法值(即A值),则网络侧设备可以将目标颜色子模型中分布的全部颜色值的A值、R值、G值和B值分别取平均值,并将A值、R值、G值和B值的平均值组合成的颜色值确定为目标颜色值。若颜色值中不包括阿尔法值,则网络侧设备可以将目标颜色子模型中分布的全部颜色值的R值、G值和B值分别取平均值,并将R值、G值和B值的平均值组合成的颜色值确定为目标颜色值。
例如,若目标颜色子模型中分布的全部颜色值的A值为A1、A2和R3,目标颜色子模型中分布的全部颜色值的R值为R1、R2和R3,目标颜色子模型中分布的颜色值中的全部G值为G1、G2和G3,该目标颜色子模型中分布的颜色值中的全部B值为B1、B2和B3,则网络侧设备可以计算A1、A2和A3的平均值为a1,R1、R2和R3的平均值为r1,G1、G2和G3的平均值为g1,B1、B2和B3的平均值为b1,并将颜色值(a1,r1,g1,b1)确定为目标颜色值。
本申请实施例中,由于网络侧设备可以分别基于获取的至少部分颜色值中的R值、G值和B值,将预设颜色模型划分为多个颜色子模型,且根据每个颜色子模型中分布的颜色值的数量,从该预设颜色模型中确定一个目标颜色子模型,并将该目标颜色子模型中分布的颜色值的平均值确定为上述目标颜色值,因此可以进一步提高网络侧设备确定目标颜色值的准确性。
步骤103、网络侧设备向UE发送目标信息。
本申请实施例中,网络侧设备向UE发送目标信息,以使UE显示目标界面。
本申请实施例中,目标信息可以包括上述召回数据和目标颜色值,目标颜色值可以用于指示目标界面的背景颜色,目标界面可以为UE显示召回数据的界面。
可选地,本申请实施例中,网络侧设备可以从上述召回数据中确定出目标颜色值之后,将包括上述召回数据和目标颜色值的目标信息在线返回UE。UE在接收到上述目标信息之后,可以显示上述召回数据的界面,并将上述目标颜色值确定为该界面的背景颜色的颜色值,即UE显示的上述召回数据的界面的背景颜色的颜色值为上述召回数据中包括的图片数据对应的图片中的主颜色的颜色值,从而可以提高显示的灵活性。
在本申请实施例提供的资源召回方法中,由于网络侧设备可以在UE请求的召回数据中包括图片数据的情况下,根据获取的该图片数据中的至少部分颜色值在预设颜色模型中的分布,确定该图片数据对应的图片中的主颜色的颜色值,并向该UE发送包括该颜色值和该召回数据的信息,以使UE显示该召回数据的界面,且该界面的背景颜色为该目标颜色值指示的颜色;即网络侧设备指示UE显示的召回数据的界面的背景颜色的颜色值,可以为该召回数据中包括的图片数据对应的图片中的主颜色的颜色值,因此相比于传统技术中UE显示的召回数据对应的界面的背景颜色的方案,本申请实施例提供的资源召回方法可以提高UE显示的灵活性。
本申请实施例提供的资源召回方法,执行主体可以为资源召回装置。本申请实施例中以资源召回装置执行资源召回的方法为例,说明本申请实施例提供的资源召回的装置。
结合图6,本申请实施例提供一种资源召回装置60,该资源召回装置60可以包括:获取模块61、确定模块62和发送模块63。获取模块61,可以用于在用户设备UE请求的召回数据中包括图片数据的情况下,获取图片数据中的至少部分颜色值。确定模块62,可以用于根据至少部分颜色值在预设颜色模型中的分布情况,确定目标颜色值,目标颜色值为图片数据对应的图片中的主颜色的颜色值。发送模块63,可以用于向UE发送目标信息,以使UE显示目标界面;其中,目标信息包括召回数据和目标颜色值,目标颜色值用于指示目标界面的背景颜色,目标界面为UE显示召回数据的界面。
一种可能的实现方式中,上述资源召回装置60还可以包括划分模块。划分模块,可以用于分别基于至少部分颜色值中的R值、G值和B值,划分预设颜色模型,得到多个颜色子模型。确定模块62,具体可以用于根据颜色子模型中分布的颜色值的数量,从预设颜色模型中确定目标颜色子模型。确定模块62,具体可以用于将目标颜色子模型中分布的颜色值的平均值确定为目标颜色值。
一种可能的实现方式中,多个颜色子模型中可以包括:与R值对应的至少一个第一颜色子模型、与G值对应的至少一个第二颜色子模型以及与B值对应的至少一个第三颜色子模型。确定模块62,具体可以用于确定至少一个第一颜色子模型中满足第一条件和第二条件的第四颜色子模型。确定模块62,具体可以用于确定至少一个第二颜色子模型中满足第一条件和第三条件的第五颜色子模型。确定模块62,具体可以用于确定至少一个第三颜色子模型中满足第一条件和第四条件的第六颜色子模型。确定模块62,具体可以用于根据第四颜色子模型在R轴上的坐标信息、第五颜色子模型在G轴上的坐标信息和第六颜色子模型在B轴上的坐标信息,从预设颜色模型中确定目标颜色子模型;其中,第一条件为颜色子模型中分布的颜色值的数量达到预设阈值,第二条件为颜色子模型在R轴上的宽度最小,第三条件为颜色子模型在G轴上的宽度最小,第四条件为颜色子模型在B轴上的宽度最小。
一种可能的实现方式中,确定模块62,具体可以用于对于多个颜色子模型中的每个颜色子模型,确定一个颜色子模型中分布的颜色值的数量与一个颜色子模型的体积的乘积。确定模块62,具体可以用于将多个颜色子模型中,确定的乘积最大的颜色子模型,确定为目标颜色子模型。
一种可能的实现方式中,获取模块61,具体可以用于按照预设过滤规则,从图片数据中获取至少部分颜色值。
在本申请实施例提供的数据召回装置中,由于该数据召回装置可以在UE请求的召回数据中包括图片数据的情况下,根据获取的该图片数据中的至少部分颜色值在预设颜色模型中的分布,确定该图片数据对应的图片中的主颜色的颜色值,并向该UE 发送包括该颜色值和该召回数据的信息,以使UE显示该召回数据的界面,且该界面的背景颜色为该目标颜色值指示的颜色;即该数据召回装置指示UE显示的召回数据的界面的背景颜色的颜色值,可以为该召回数据中包括的图片数据对应的图片中的主颜色的颜色值,因此相比于传统技术中UE显示的召回数据对应的界面的背景颜色的方案,本申请实施例提供的资源召回方法可以提高UE显示的灵活性。
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。
本申请实施例中的数据召回装置可以是服务器、网络附属存储器(Network Attached Storage,NAS)、基站或核心网,本申请实施例不作具体限定。其中,基站可被称为节点B、演进节点B、接入点、基收发机站(Base Transceiver Station,BTS)、无线电基站、无线电收发机、基本服务集(Basic Service Set,BSS)、扩展服务集(Extended Service Set,ESS)、B节点、演进型B节点(eNB)、家用B节点、家用演进型B节点、WLAN接入点、WiFi节点、发送接收点(Transmitting Receiving Point,TRP)或所述领域中其他某个合适的术语,只要达到相同的技术效果,所述基站不限于特定技术词汇,需要说明的是,在本申请实施例中仅以NR***中的基站为例,但是并不限定基站的具体类型。
本申请实施例中的数据召回装置可以为具有操作***的装置。该操作***可以为安卓(Android)操作***,可以为ios操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。
本申请实施例提供的数据召回装置能够实现图1至图5的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图7所示,本申请实施例还提供一种网络侧设备700,包括处理器701和存储器702,存储器702上存储有可在所述处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述资源召回方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的网络侧设备包括上述所述的移动电子设备和非移动电子设备。
图8为实现本申请实施例的一种网络侧设备的硬件结构示意图。
该网络侧设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。
本领域技术人员可以理解,网络侧设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器1010逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图8中示出的网络侧设备结构并不构成对网络侧设备的限定,网络侧设备可以包括比图示更多或更少的部件,或者组 合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器1010,可以用于在用户设备UE请求的召回数据中包括图片数据的情况下,获取图片数据中的至少部分颜色值。处理器1010,还以用于根据至少部分颜色值在预设颜色模型中的分布情况,确定目标颜色值,目标颜色值为图片数据对应的图片中的主颜色的颜色值。射频单元1001,可以用于向UE发送目标信息,以使UE显示目标界面;其中,目标信息包括召回数据和目标颜色值,目标颜色值用于指示目标界面的背景颜色,目标界面为UE显示召回数据的界面。
一种可能的实现方式中,处理器1010,还以用于分别基于至少部分颜色值中的R值、G值和B值,划分预设颜色模型,得到多个颜色子模型。处理器1010,具体可以用于根据颜色子模型中分布的颜色值的数量,从预设颜色模型中确定目标颜色子模型。处理器1010,具体可以用于将目标颜色子模型中分布的颜色值的平均值确定为目标颜色值。
一种可能的实现方式中,多个颜色子模型中可以包括:与R值对应的至少一个第一颜色子模型、与G值对应的至少一个第二颜色子模型以及与B值对应的至少一个第三颜色子模型。处理器1010,具体可以用于确定至少一个第一颜色子模型中满足第一条件和第二条件的第四颜色子模型。处理器1010,具体可以用于确定至少一个第二颜色子模型中满足第一条件和第三条件的第五颜色子模型。处理器1010,具体可以用于确定至少一个第三颜色子模型中满足第一条件和第四条件的第六颜色子模型。处理器1010,具体可以用于根据第四颜色子模型在R轴上的坐标信息、第五颜色子模型在G轴上的坐标信息和第六颜色子模型在B轴上的坐标信息,从预设颜色模型中确定目标颜色子模型;其中,第一条件为颜色子模型中分布的颜色值的数量达到预设阈值,第二条件为颜色子模型在R轴上的宽度最小,第三条件为颜色子模型在G轴上的宽度最小,第四条件为颜色子模型在B轴上的宽度最小。
一种可能的实现方式中,处理器1010,具体可以用于对于多个颜色子模型中的每个颜色子模型,确定一个颜色子模型中分布的颜色值的数量与一个颜色子模型的体积的乘积。处理器1010,具体可以用于将多个颜色子模型中,确定的乘积最大的颜色子模型,确定为目标颜色子模型。
一种可能的实现方式中,处理器1010,具体可以用于按照预设过滤规则,从图片数据中获取至少部分颜色值。
在本申请实施例提供的网络侧设备中,由于网络侧设备可以在UE请求的召回数据中包括图片数据的情况下,根据获取的该图片数据中的至少部分颜色值在预设颜色模型中的分布,确定该图片数据对应的图片中的主颜色的颜色值,并向该UE发送包括该颜色值和该召回数据的信息,以使UE显示该召回数据的界面,且该界面的背景颜色为该目标颜色值指示的颜色;即网络侧设备指示UE显示的召回数据的界面的背景颜色的颜色值,可以为该召回数据中包括的图片数据对应的图片中的主颜色的颜色 值,因此相比于传统技术中UE显示的召回数据对应的界面的背景颜色的方案,本申请实施例提供的资源召回方法可以提高UE显示的灵活性。
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作***、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。
处理器1010可包括一个或多个处理单元;可选的,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作***、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述资源召回方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述资源召回方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述资源召回方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (15)

  1. 一种资源召回方法,所述方法包括:
    在用户设备UE请求的召回数据中包括图片数据的情况下,获取所述图片数据中的至少部分颜色值;
    根据所述至少部分颜色值在预设颜色模型中的分布情况,确定目标颜色值,所述目标颜色值为所述图片数据对应的图片中的主颜色的颜色值;
    向所述UE发送目标信息,以使所述UE显示目标界面;
    其中,所述目标信息包括所述召回数据和所述目标颜色值,所述目标颜色值用于指示所述目标界面的背景颜色,所述目标界面为所述UE显示所述召回数据的界面。
  2. 根据权利要求1所述的方法,其中,所述根据所述至少部分颜色值在预设颜色模型中的分布情况,确定目标颜色值,包括:
    分别基于所述至少部分颜色值中的R值、G值和B值,划分所述预设颜色模型,得到多个颜色子模型;
    根据颜色子模型中分布的颜色值的数量,从所述预设颜色模型中确定目标颜色子模型;
    将所述目标颜色子模型中分布的颜色值的平均值确定为所述目标颜色值。
  3. 根据权利要求2所述的方法,其中,所述多个颜色子模型中包括:与所述R值对应的至少一个第一颜色子模型、与所述G值对应的至少一个第二颜色子模型以及与所述B值对应的至少一个第三颜色子模型;
    所述根据颜色子模型中分布的颜色值的数量,从所述预设颜色模型中确定目标颜色子模型,包括:
    确定所述至少一个第一颜色子模型中满足第一条件和第二条件的第四颜色子模型;
    确定所述至少一个第二颜色子模型中满足所述第一条件和第三条件的第五颜色子模型;
    确定所述至少一个第三颜色子模型中满足所述第一条件和第四条件的第六颜色子模型;
    根据所述第四颜色子模型在R轴上的坐标信息、所述第五颜色子模型在G轴上的坐标信息和所述第六颜色子模型在B轴上的坐标信息,从所述预设颜色模型中确定所述目标颜色子模型;
    其中,所述第一条件为颜色子模型中分布的颜色值的数量达到预设阈值,所述第二条件为颜色子模型在所述R轴上的宽度最小,所述第三条件为颜色子模型在所述G轴上的宽度最小,所述第四条件为颜色子模型在所述B轴上的宽度最小。
  4. 根据权利要求2所述的方法,其中,所述根据颜色子模型中分布的颜色值的数量,从所述预设颜色模型中确定目标颜色子模型,包括:
    对于所述多个颜色子模型中的每个颜色子模型,确定一个颜色子模型中分布的颜色值的数量与所述一个颜色子模型的体积的乘积;
    将所述多个颜色子模型中,确定的所述乘积最大的颜色子模型,确定为所述目标颜色子模型。
  5. 根据权利要求1所述的方法,其中,所述获取所述图片数据中的至少部分颜色值,包括:
    按照预设过滤规则,从所述图片数据中获取所述至少部分颜色值。
  6. 一种资源召回装置,所述装置包括获取模块、确定模块和发送模块;
    所述获取模块,用于在用户设备UE请求的召回数据中包括图片数据的情况下,获取所述图片数据中的至少部分颜色值;
    所述确定模块,用于根据所述至少部分颜色值在预设颜色模型中的分布情况,确定目标颜色值,所述目标颜色值为所述图片数据对应的图片中的主颜色的颜色值;
    所述发送模块,用于向所述UE发送目标信息,以使所述UE显示目标界面;
    其中,所述目标信息包括所述召回数据和所述目标颜色值,所述目标颜色值用于指示所述目标界面的背景颜色,所述目标界面为所述UE显示所述召回数据的界面。
  7. 根据权利要求6所述的装置,其中,所述装置还包括划分模块;
    所述划分模块,用于分别基于所述至少部分颜色值中的R值、G值和B值,划分所述预设颜色模型,得到多个颜色子模型;
    所述确定模块,具体用于根据颜色子模型中分布的颜色值的数量,从所述预设颜色模型中确定目标颜色子模型;
    所述确定模块,具体用于将所述目标颜色子模型中分布的颜色值的平均值确定为所述目标颜色值。
  8. 根据权利要求7所述的装置,其中,所述多个颜色子模型中包括:与所述R值对应的至少一个第一颜色子模型、与所述G值对应的至少一个第二颜色子模型以及与所述B值对应的至少一个第三颜色子模型;
    所述确定模块,具体用于确定所述至少一个第一颜色子模型中满足第一条件和第二条件的第四颜色子模型;
    所述确定模块,具体用于确定所述至少一个第二颜色子模型中满足所述第一条件和第三条件的第五颜色子模型;
    所述确定模块,具体用于确定所述至少一个第三颜色子模型中满足所述第一条件和第四条件的第六颜色子模型;
    所述确定模块,具体用于根据所述第四颜色子模型在R轴上的坐标信息、所述第五颜色子模型在G轴上的坐标信息和所述第六颜色子模型在B轴上的坐标信息,从所述预设颜色模型中确定所述目标颜色子模型;
    其中,所述第一条件为颜色子模型中分布的颜色值的数量达到预设阈值,所述第 二条件为颜色子模型在所述R轴上的宽度最小,所述第三条件为颜色子模型在所述G轴上的宽度最小,所述第四条件为颜色子模型在所述B轴上的宽度最小。
  9. 根据权利要求7所述的装置,其中,所述确定模块,具体用于对于所述多个颜色子模型中的每个颜色子模型,确定一个颜色子模型中分布的颜色值的数量与所述一个颜色子模型的体积的乘积;
    所述确定模块,具体用于将所述多个颜色子模型中,确定的所述乘积最大的颜色子模型,确定为所述目标颜色子模型。
  10. 根据权利要求6所述的装置,其中,
    所述获取模块,具体用于按照预设过滤规则,从所述图片数据中获取所述至少部分颜色值。
  11. 一种网络侧设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5中任一项所述的资源召回方法的步骤。
  12. 一种可读存储介质,所述可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1-5中任一项所述的资源召回方法的步骤。
  13. 一种计算机软件产品,所述计算机软件产品被至少一个处理器执行以实现如权利要求1-5中任一项所述的资源召回方法。
  14. 一种网络侧设备,包括所述网络侧设备被配置成用于执行如权利要求1-5中任一项所述的资源召回方法。
  15. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-5中任一项所述的资源召回方法。
PCT/CN2022/133501 2021-11-26 2022-11-22 资源召回方法、装置及网络侧设备 WO2023093721A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111421107.X 2021-11-26
CN202111421107.XA CN114218421A (zh) 2021-11-26 2021-11-26 资源召回方法、装置及网络侧设备

Publications (1)

Publication Number Publication Date
WO2023093721A1 true WO2023093721A1 (zh) 2023-06-01

Family

ID=80698438

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/133501 WO2023093721A1 (zh) 2021-11-26 2022-11-22 资源召回方法、装置及网络侧设备

Country Status (2)

Country Link
CN (1) CN114218421A (zh)
WO (1) WO2023093721A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116795939A (zh) * 2023-06-19 2023-09-22 重庆市规划和自然资源信息中心 一种基于geotools工具实现地理数据修复的方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114218421A (zh) * 2021-11-26 2022-03-22 维沃移动通信有限公司 资源召回方法、装置及网络侧设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6320592B1 (en) * 1997-06-30 2001-11-20 Sun Microsystems, Inc. Method and apparatus for separating image data from a color system in image processing
CN107168968A (zh) * 2016-03-07 2017-09-15 中国艺术科技研究所 面向情感的图像色彩提取方法及***
CN112069339A (zh) * 2020-09-04 2020-12-11 北京字节跳动网络技术有限公司 背景图片处理及搜索结果展示方法、装置、设备和介质
CN112069341A (zh) * 2020-09-04 2020-12-11 北京字节跳动网络技术有限公司 背景图片生成及搜索结果展示方法、装置、设备和介质
CN114218421A (zh) * 2021-11-26 2022-03-22 维沃移动通信有限公司 资源召回方法、装置及网络侧设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6320592B1 (en) * 1997-06-30 2001-11-20 Sun Microsystems, Inc. Method and apparatus for separating image data from a color system in image processing
CN107168968A (zh) * 2016-03-07 2017-09-15 中国艺术科技研究所 面向情感的图像色彩提取方法及***
CN112069339A (zh) * 2020-09-04 2020-12-11 北京字节跳动网络技术有限公司 背景图片处理及搜索结果展示方法、装置、设备和介质
CN112069341A (zh) * 2020-09-04 2020-12-11 北京字节跳动网络技术有限公司 背景图片生成及搜索结果展示方法、装置、设备和介质
CN114218421A (zh) * 2021-11-26 2022-03-22 维沃移动通信有限公司 资源召回方法、装置及网络侧设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116795939A (zh) * 2023-06-19 2023-09-22 重庆市规划和自然资源信息中心 一种基于geotools工具实现地理数据修复的方法
CN116795939B (zh) * 2023-06-19 2024-04-05 重庆市规划和自然资源信息中心 一种基于geotools工具实现地理数据修复的方法

Also Published As

Publication number Publication date
CN114218421A (zh) 2022-03-22

Similar Documents

Publication Publication Date Title
WO2023093721A1 (zh) 资源召回方法、装置及网络侧设备
US20230232213A1 (en) Information transmission methods and apparatuses, and communication devices and storage medium
CN109191410B (zh) 一种人脸图像融合方法、装置及存储介质
CN107729540B (zh) 照片分类的方法、设备及计算机可存储介质
CN111222647A (zh) 联邦学习***优化方法、装置、设备及存储介质
EP4072131A1 (en) Image processing method and apparatus, terminal and storage medium
US11347792B2 (en) Video abstract generating method, apparatus, and storage medium
WO2022042754A1 (zh) 图像处理方法、装置及设备
WO2015096588A1 (zh) 一种显示页面的切换方法及装置
CN106940880A (zh) 一种美颜处理方法、装置和终端设备
WO2024098873A1 (zh) 处理方法、处理设备及存储介质
WO2024022391A1 (zh) 多媒体数据传输方法、装置、电子设备及存储介质
CN114025215A (zh) 文件处理方法、移动终端及存储介质
CN113590069A (zh) 切换方法、移动终端及存储介质
US20150128148A1 (en) Control device, processing device, and information processing method
CN117112090A (zh) 业务页面主题生成方法、装置、计算机设备、介质和产品
CN109685802A (zh) 一种低延迟的视频分割实时预览方法
WO2023108444A1 (zh) 图像处理方法、智能终端及存储介质
CN111132233B (zh) 一种分离承载的控制方法及相关设备
CN114333001A (zh) 图像处理方法、智能终端及存储介质
WO2021109141A1 (zh) 通信连接配置方法、装置、通信设备及存储介质
CN107193552B (zh) 一种主题颜色设置方法、设备和计算机可读存储介质
WO2023051443A1 (zh) 组合数处理方法、序列确定方法、装置、设备和存储介质
WO2023151585A1 (zh) 终端目标面能力上报、获取方法、终端及网络设备
CN114125151B (zh) 图像处理方法、移动终端及存储介质

Legal Events

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

Ref document number: 22897804

Country of ref document: EP

Kind code of ref document: A1