CN114816619A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN114816619A
CN114816619A CN202210326045.2A CN202210326045A CN114816619A CN 114816619 A CN114816619 A CN 114816619A CN 202210326045 A CN202210326045 A CN 202210326045A CN 114816619 A CN114816619 A CN 114816619A
Authority
CN
China
Prior art keywords
target
information
color information
color
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210326045.2A
Other languages
Chinese (zh)
Inventor
林眉子
谭成艳
罗颖灵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210326045.2A priority Critical patent/CN114816619A/en
Publication of CN114816619A publication Critical patent/CN114816619A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the application discloses an information processing method, which comprises the following steps: acquiring a target image of an environment where electronic equipment is located; determining target color information based on pixel information of pixel points of a target image; the target color information represents the tendency color of the environment where the electronic equipment is located; determining target adjustment color information based on the target color information and the color adjustment relationship; wherein, the color adjustment relationship is a corresponding relationship between the color information and the adjustment color information; based on the target adjustment color information, a target user interface is determined. The embodiment of the application also discloses the electronic equipment.

Description

Information processing method and electronic equipment
Technical Field
The present application relates to information processing technologies in the field of information processing, and in particular, to an information processing method and an electronic device.
Background
With the continuous development of computer technology, the use of Augmented Reality (AR) glasses is becoming more and more common. However, in an outdoor environment, the User Interface (UI) inside the AR glasses is rendered poorly due to the influence of light in the environment.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present application are expected to provide an information processing method and an electronic device, which solve the problem of poor presentation effect of a user interface in AR glasses.
The technical scheme of the application is realized as follows:
an information processing method, the method comprising:
acquiring a target image of an environment where the electronic equipment is located;
determining target color information based on pixel information of pixel points of the target image; wherein the target color information represents a tendency color of an environment in which the electronic device is located;
determining target adjustment color information based on the target color information and the color adjustment relationship; wherein, the color adjustment relationship is a corresponding relationship between the color information and the adjustment color information;
determining a target user interface based on the target adjustment color information.
In the foregoing solution, the determining target color information based on pixel information of a pixel point of the target image includes:
obtaining hue information and saturation information corresponding to the pixel points based on the pixel information of the pixel points of the target image;
determining the target color information based on the hue information and the saturation information.
In the foregoing solution, the determining the target color information based on the hue information and the saturation information includes:
determining first target saturation information satisfying a saturation condition from the saturation information;
and determining the target color information based on the target hue information corresponding to the first target saturation information.
In the foregoing solution, the determining the target color information based on the hue information and the saturation information includes:
determining color information corresponding to the pixel points based on the hue information, and determining reference color information from the color information;
determining a first set of pixel points from the pixel points based on the reference color information;
and determining the target color information based on the first pixel point set and second target saturation information corresponding to the first pixel point set.
In the foregoing solution, the determining the target color information based on the first pixel point set and the second target saturation information corresponding to the first pixel point set includes:
determining a second pixel point set corresponding to each piece of reference color information from the first pixel point set;
determining third target saturation information corresponding to each second pixel point set from the second target saturation information;
determining the target color information from reference color information based on a plurality of the third target saturation information.
In the foregoing solution, the determining a target user interface based on the target adjustment color information includes:
determining complementary color information of the target color information from the target adjustment color information;
determining the target user interface based on the complementary color information.
In the foregoing solution, the determining the target user interface based on the complementary color information includes:
based on the complementary color information, adjusting the color of the user interface of the electronic equipment to obtain the target user interface; or the like, or, alternatively,
and determining the target user interface from the user interfaces to be selected based on the complementary color information.
In the above scheme, the user interface of the electronic device is switched to the target user interface;
determining the target light intensity of the environment where the electronic equipment is located based on the pixel information of the pixel points of the target image;
based on the target light intensity, adjusting a light transmittance of a substrate layer in the target user interface.
In the foregoing solution, the adjusting the light transmittance of the substrate layer in the target user interface based on the target light intensity includes:
determining a target light transmittance based on the corresponding relation between the target light intensity and the light intensity; wherein, the light intensity corresponding relation is the corresponding relation between the light intensity and the light transmittance;
and adjusting the light transmittance to be the target light transmittance.
An electronic device, the electronic device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the information processing program in the memory to realize the following steps:
acquiring a target image of an environment where the electronic equipment is located;
determining target color information based on pixel information of pixel points of the target image; wherein the target color information represents a tendency color of an environment in which the electronic device is located;
determining target adjustment color information based on the target color information and the color adjustment relationship; wherein, the color adjustment relationship is a corresponding relationship between the color information and the adjustment color information;
determining a target user interface based on the target adjustment color information.
According to the information processing method and the electronic device, the target image of the environment where the electronic device is located is obtained; determining target color information based on pixel information of pixel points of a target image; the target color information represents the tendency color of the environment where the electronic equipment is located; determining target adjustment color information based on the target color information and the color adjustment relationship; wherein, the color adjustment relationship is the corresponding relationship between the color information and the adjustment color information; determining a target user interface based on the target adjustment color information; therefore, the target color information of the environment where the electronic equipment is located is considered, and the target user interface is determined based on the target color information and the target adjustment color information determined according to the color adjustment relationship, so that the target user interface can be suitable for the environment where the current electronic equipment is located, and the problem that the presentation effect of the user interface in the AR glasses is poor is solved.
Drawings
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another information processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another information processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a color correspondence relationship in an information processing method according to an embodiment of the present application;
fig. 5a is a schematic diagram of hue division of a hue diagram in an information processing method according to an embodiment of the present application;
fig. 5b is a schematic structural diagram of saturation in an information processing method according to an embodiment of the present application;
fig. 5c is a schematic diagram of hue division and a schematic diagram of superposition of saturation of a hue diagram in an information processing method according to an embodiment of the present application;
fig. 5d is a radar chart of color distribution of pixel points in an information processing method according to an embodiment of the present application;
fig. 6 is a schematic diagram of a complementary region in an information processing method according to an embodiment of the present disclosure;
fig. 7 is a schematic view illustrating a scene of adjusting light transmittance of a substrate layer in an information processing method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
An embodiment of the present application provides an information processing method, which may be applied to an electronic device, and as shown in fig. 1, the method includes the following steps:
step 101, obtaining a target image of an environment where the electronic equipment is located.
In the embodiment of the application, the target image can be acquired by an image acquisition component of the electronic equipment; the target image can be acquired by other equipment with image acquisition capability and sent to the electronic equipment. In one possible implementation, the electronic device may be AR glasses with certain data processing capabilities and image capture capabilities.
The target image may be obtained by taking a picture of an environment where the AR glasses are located by using a camera on the AR glasses; the target image can be an RGB color space image and can also be an HSV color space image; wherein the number of target images may be at least one.
Step 102, determining target color information based on pixel information of pixel points of the target image.
The target color information represents the tendency color of the environment where the electronic equipment is located.
In the embodiment of the application, the pixel information of the pixel points of the target image can be analyzed, the target color attribute information corresponding to each pixel point is determined, the color information to be selected of the environment where the electronic equipment is located is determined according to the target color attribute information, and the target color information is determined according to the color information to be selected. The target color attribute information includes hue information and saturation information, and the color information to be selected of the environment where the electronic device is located is determined according to the target color attribute information, which may further be determined according to a statistical result of the target color attribute information of all pixels in the target image.
It should be noted that the trend color does not refer to the color that appears most in the environment of the electronic device, but refers to the most striking color in the environment of the electronic device. The tendency color is not a single color but a plurality of colors.
And 103, determining target adjustment color information based on the target color information and the color adjustment relation.
Wherein, the color adjustment relationship is the corresponding relationship between the color information and the adjustment color information.
In the embodiment of the present application, target adjustment color information corresponding to the target color information may be determined according to the color adjustment relationship. Wherein the target color information and the target adjustment color information each represent a plurality of colors.
In one possible implementation, the color adjustment relationship may be presented in the form of a graph.
Step 104, based on the target adjustment color information, determining a target user interface.
The target user interface may be generated in advance, or may be generated in real time according to the determined target adjustment color information.
In the embodiment of the application, a plurality of user interfaces corresponding to different pieces of adjustment color information can be generated in advance and stored, and after the target adjustment color information is determined, the target user interface can be determined from the stored user interfaces based on the target adjustment color information; the current user interface of the electronic device can be processed based on the target adjustment color information to generate the target user interface.
The information processing method provided by the embodiment of the application acquires a target image of an environment where the electronic equipment is located; determining target color information based on pixel information of pixel points of a target image; the target color information represents the tendency color of the environment where the electronic equipment is located; determining target adjustment color information based on the target color information and the color adjustment relationship; wherein, the color adjustment relationship is the corresponding relationship between the color information and the adjustment color information; determining a target user interface based on the target adjustment color information; therefore, the target color information of the environment where the electronic equipment is located is considered, and the target user interface is determined based on the target color information and the target adjustment color information determined according to the color adjustment relationship, so that the target user interface can be suitable for the environment where the current electronic equipment is located, and the problem that the presentation effect of the user interface in the AR glasses is poor is solved.
Based on the foregoing embodiments, an embodiment of the present application provides an information processing method, which is shown in fig. 2 and includes the following steps:
step 201, the electronic device acquires a target image of an environment where the electronic device is located.
Step 202, the electronic device obtains hue information and saturation information corresponding to the pixel point based on the pixel information of the pixel point of the target image.
In the embodiment of the application, the electronic device can determine the type of the target image, and determine hue information and saturation information corresponding to the pixel point based on the type of the target image and the pixel information of the target image; when the type of the target image is a first type, color conversion can be carried out on pixel information of pixel points of the target image to obtain hue information and saturation information corresponding to the pixel points; when the type of the target image is the second type, the hue information and the saturation information corresponding to the pixel point can be directly obtained from the pixel information corresponding to the pixel point.
Optionally, the target image is an RGB color space image, and obtaining the target color attribute further includes: and converting the target image into an HSV color space image to acquire hue information and saturation information of the target image.
In a feasible implementation manner, the first type is RGB, that is, the target image is an RGB color space image, color conversion may be performed on RGB values corresponding to pixel points in the RGB color space image to obtain HSV values, and hue information and saturation information are obtained from the HSV values; among the HSV values, the H value represents hue information, the S value represents saturation information, and the V value represents brightness information.
In another possible implementation manner, if the second type is HSV, that is, the target image is an HSV color space image, the hue information and the saturation information may be directly obtained from an HSV value corresponding to a pixel point of the HSV color space image.
Step 203, the electronic device determines target color information based on the hue information and the saturation information.
In the embodiment of the application, the color information to be selected of the environment where the electronic device is located can be determined based on the hue information and the saturation information corresponding to each pixel point, and the color information to be selected is screened to obtain the target color information.
It should be noted that step 203 can be realized through steps a1-a2 or steps a3-a 5:
step a1, the electronic device determines first target saturation information satisfying the saturation condition from the saturation information.
The saturation information refers to the saturation value of each pixel point in all or part of the pixel points in the target image, and in the embodiment of the application, the saturation information can be screened according to the saturation condition to obtain the first target saturation information.
Specifically, the saturation values of all or some of the pixels in the target image may be counted, the counted saturation values are sorted according to a descending order, and the saturation values of the number of targets sorted in the front are determined from the sorted saturation values, so as to obtain the first target saturation information. Wherein the target number may be 3. Namely, the saturation condition is that after the statistical ranking of the saturation values is carried out on the pixel points of the target image, the saturation value N before the number ranking is used as the first target saturation information. N is an integer greater than zero.
Step a2, the electronic device determines target color information based on the target hue information corresponding to the first target saturation information.
The target hue information refers to a hue value of a pixel point corresponding to the first target saturation information in the target image.
In the embodiment of the application, according to the determined first target saturation information, a target pixel point corresponding to the first target saturation information is determined, hue information corresponding to the target pixel point is obtained as target hue information, a color correspondence relationship is obtained, color information to be selected is determined from the color correspondence relationship based on the color correspondence relationship and the target hue information, and the color information to be selected is screened to obtain the target color information. Wherein the color correspondence represents a correspondence between the hue information and the color information.
In a feasible implementation manner, the determined target hue information is represented by m1, m2 and m3 respectively, the candidate color information n1 corresponding to m1 can be determined according to m1 and the color correspondence, the candidate color information n2 corresponding to m2 can be determined according to m2 and the color correspondence, the candidate color information n3 corresponding to m3 can be determined according to m3 and the color correspondence, the number of pixel points corresponding to n1, n2 and n3 can be determined respectively, and the candidate color information with the largest number of pixel points can be determined from n1, n2 and n3 as the target color information.
Step a3, the electronic device determines color information corresponding to the pixel point based on the hue information, and determines reference color information from the color information.
In the embodiment of the application, color information corresponding to the pixel points can be determined according to the tone information and color corresponding relation of the pixel points, color distribution information corresponding to a plurality of pixel points is determined according to the color information corresponding to each pixel point, and reference color information is determined according to the color distribution information. Wherein the color correspondence represents a correspondence between the hue information and the color information.
In a feasible implementation manner, the number of the pixels corresponding to each color information may be determined according to the color distribution information corresponding to all the pixels or a part of the pixels in the target image, and the corresponding color information is used as the reference color information when the number of the pixels is greater than the target number.
Step a4, the electronic device determines a first set of pixel points from the pixel points based on the reference color information.
In this embodiment of the application, a first pixel point set composed of a plurality of pixel points corresponding to the reference color information may be determined from a plurality of pixel points of the target image.
Step a5, the electronic device determines target color information based on the first pixel point set and second target saturation information corresponding to the first pixel point set.
In this embodiment of the application, the pixels in the first pixel set may be screened based on the second target saturation information, and the target color information may be determined from the reference color information according to the pixels obtained by screening. The second target saturation information may refer to a saturation average of all the pixels in the first pixel set, or determine the saturation value with the largest proportion as the second saturation value by counting the saturation value distribution in the first pixel set.
In step 204, the electronic device determines complementary color information of the target color information from the target adjustment color information.
Wherein the number of the target adjustment color information may be plural.
In the embodiment of the present application, complementary color information corresponding to the target color information may be determined from the plurality of target adjustment color information based on the target color information and the color complementary relationship. Wherein the complementary color information refers to color information that is 180 degrees apart from the target color information on the color wheel.
Step 205, the electronic device determines a target user interface based on the complementary color information.
In an embodiment of the application, a target user interface may be generated based on the complementary color information and a current user interface of the electronic device; of course, it is also possible to determine, as the target user interface, a user interface corresponding to the complementary color information from among the plurality of user interfaces based on the complementary color information.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
According to the information processing method provided by the embodiment of the application, the target color information of the environment where the electronic equipment is located is considered, and the target user interface is determined based on the target color information and the target adjustment color information determined by the color adjustment relation, so that the target user interface can be suitable for the environment where the current electronic equipment is located, and the problem that the presentation effect of the user interface in the AR glasses is poor is solved.
Based on the foregoing embodiments, an embodiment of the present application provides an information processing method, which is shown in fig. 3 and includes the following steps:
step 301, the electronic device acquires a target image of an environment where the electronic device is located.
Step 302, the electronic device obtains hue information and saturation information corresponding to the pixel point based on the pixel information of the pixel point of the target image.
It should be noted that, after the step 302, the step 303 and the step 304 or the step 305 and the step 309 can be executed.
Step 303, the electronic device determines first target saturation information satisfying the saturation condition from the saturation information.
And step 304, the electronic device determines target color information based on the target hue information corresponding to the first target saturation information.
Step 305, the electronic device determines color information corresponding to the pixel point based on the hue information, and determines reference color information from the color information.
Step 306, the electronic device determines a first pixel point set from the pixel points based on the reference color information.
And 307, the electronic equipment determines a second pixel point set corresponding to each piece of reference color information from the first pixel point set.
In the embodiment of the present application, the first pixel point set is a set formed by pixel points corresponding to a plurality of reference color information; a second pixel point set formed by pixel points corresponding to each reference color information can be determined according to the color information corresponding to each pixel point in the first pixel point set; wherein the number of the second set of pixel points may be plural.
Step 308, the electronic device determines third target saturation information corresponding to each second pixel point set from the second target saturation information.
In the embodiment of the present application, for each second pixel point set, saturation information corresponding to each pixel point in the second pixel point set is obtained from the second target saturation, so as to obtain third target saturation information corresponding to the second pixel point set.
Step 309, the electronic device determines target color information from the reference color information based on the plurality of third target saturation information.
In the embodiment of the application, for each second pixel point set, third target saturation information in each second pixel point set is calculated to obtain a target value, and target color information is determined from the reference color according to the target value.
Specifically, for each second pixel point set, the third saturation information of the pixel points in each second pixel point set may be averaged to obtain a target value, and according to the target value corresponding to each second pixel point set, the second pixel point set corresponding to the maximum target value is determined from the multiple target values as a target pixel point set, and reference color information corresponding to the target pixel point set is used as target color information.
In a possible implementation manner, the plurality of second pixel point sets are L1, L2, and L3, respectively, the third target saturation information corresponding to the plurality of pixel points in L1 may be averaged to obtain a target value corresponding to L1, the third target saturation information corresponding to the plurality of pixel points in L2 may be averaged to obtain a target value corresponding to L2, the third target saturation information corresponding to the plurality of pixel points in L3 may be averaged to obtain a target value corresponding to L3, a maximum target value is determined from the target value corresponding to L1, the target value corresponding to L2, and the target value corresponding to L3, and reference color information corresponding to the maximum target value may be used as the target color information.
In step 310, the electronic device determines complementary color information of the target color information from the target adjustment color information.
It should be noted that each of the target adjusted color information represents a color set having a plurality of colors, that is, the color represented by the finally determined complementary color information is also a color set having a plurality of colors.
It should be noted that step 311 or step 312 may be executed after step 310.
And 311, the electronic device adjusts the color of the user interface of the electronic device to obtain the target user interface based on the complementary color information.
In this embodiment, according to the complementary color information, the color of the current user interface of the electronic device may be adjusted to any color indicated in the complementary color information, so as to obtain the target user interface.
In step 312, the electronic device determines a target user interface from the user interfaces to be selected based on the complementary color information.
In the embodiment of the application, the electronic device may determine the user interface to be selected corresponding to the complementary color information from the user interfaces to be selected corresponding to the plurality of color information, so as to obtain the target user interface.
Based on the foregoing embodiment, in other embodiments of the present application, the information processing method further includes the following steps:
step 313, the electronic device switches the user interface of the electronic device to the target user interface.
In the embodiment of the application, the electronic equipment can automatically switch the user interface of the electronic equipment into the target user interface; the electronic equipment can also send a confirmation instruction for determining whether to switch the user interface to the target user interface or not to the user, and when the electronic equipment does not receive a rejection instruction which is sent by the user and used for rejecting the user interface to be switched to the target user interface within the target time period, the user interface of the electronic equipment is switched to the target user interface; certainly, when the electronic device receives a rejection instruction sent by the user in the target time period, the switching operation is not performed, and the current user interface of the electronic device is continuously maintained. And the target time period is the effective duration of the sent switching instruction.
It should be noted that, according to the target color information of the environment where the electronic device is located, the user interface of the electronic device can be dynamically switched to be suitable for the current environment where the electronic device is located, and only one electronic device needs to be used instead of developing the corresponding electronic device for a specific scene, so that the electronic device can be suitable for multiple application scenes, and the intelligence and convenience of the electronic device are improved. By the information processing method, scene limitation is reduced, electronic equipment always keeps clear visual transmission when indoor and outdoor environments are switched or light sources are changed, visual identification is improved, and visual experience of users is improved.
Step 314, the electronic device determines the target light intensity of the environment where the electronic device is located based on the pixel information of the pixel points of the target image.
In the embodiment of the application, brightness information corresponding to the pixel point can be determined based on the pixel information of the pixel point of the target image, and a target reference value is determined based on the brightness information, so that the target light intensity corresponding to the target reference value is determined according to the corresponding relation between the target reference value and the light intensity; the light intensity corresponding relation represents the corresponding relation between the reference value and the light intensity.
It should be noted that, when the type of the target image is the first type, color conversion may be performed on pixel information of a pixel point of the target image to obtain brightness information of the pixel point; when the type of the target image is the second type, the brightness information corresponding to the pixel point can be directly obtained from the pixel information corresponding to the pixel point. The brightness information of the pixel points in the target image is greatly influenced by the light intensity in the environment where the electronic equipment is located, so that the accuracy of the target light intensity of the environment where the electronic equipment is located, which is determined by the brightness information of the pixel points, can be ensured, and the accuracy of the light transmittance of the substrate layer in the target user interface, which is subsequently adjusted by the target light intensity, is improved. Wherein the first type is RGB and the second type is HSV.
In a feasible implementation manner, the brightness information corresponding to the pixel points in the target image may be averaged to obtain the target reference value.
Step 315, the electronic device adjusts the transmittance of the substrate layer in the target user interface based on the target light intensity.
It should be noted that the substrate layer may be understood as a mask superimposed on the target user interface; the target light transmittance can be determined based on the target light intensity, and the light transmittance of the substrate layer is adjusted to be the target light transmittance, so that the light transmittance of the substrate layer is dynamically adjusted according to the environment where the electronic equipment is located, the influence of light on the vision of a user in the environment where the electronic equipment is located is reduced, and the presenting effect of a target user interface is improved.
It should be noted that step 315 can be implemented by steps b1-b 2:
and b1, the electronic equipment determines the target light transmittance based on the target light intensity and the corresponding relation of the light intensity.
Wherein, the light intensity corresponding relationship is the corresponding relationship between the light intensity and the light transmittance.
In the embodiment of the present application, the target light transmittance corresponding to the target light intensity may be determined based on the light intensity correspondence.
In one possible implementation, when the target light intensity is less than the first light intensity threshold, then the target transmittance may range from 0 to 30%; when the target light intensity is greater than the first light intensity threshold and less than the second light intensity threshold, the target transmittance may be 30% to 50%. Wherein the second light intensity threshold is greater than the first light intensity threshold.
And b2, adjusting the light transmittance to be the target light transmittance by the electronic equipment.
In the embodiment of the application, the electronic device can set the light transmittance as a target light transmittance to realize dynamic adjustment of the visual light transmittance. Wherein the higher the target light intensity, that is, the stronger the light, the lower the adjusted transmittance.
The following explains the information processing method provided in the embodiments of the present application in detail with reference to application scenarios.
In the embodiment of the application, the electronic device can be AR glasses, an RGB color space image of the current environment of the electronic device can be collected through a camera on the AR glasses, and RGB values of pixel points in the RGB color space image are subjected to color conversion to obtain HSV values of each pixel point in HSV color space; and acquiring the H value and the S value corresponding to each pixel point from the HSV value of the pixel point, and determining target color information according to the corresponding relation of the H value, the S value and the color. Wherein the H value represents hue information and the S value represents saturation information; the HSV color space can independently sense the change of each color component, and better reflects the perception of human color.
It should be noted that the color correspondence may be represented by a color correspondence diagram; specifically, the color correspondence may be obtained by dividing a color map according to the characteristics of the cool and warm tones. In a feasible implementation manner, the hue information represented in the color phase diagram can be divided into 12 equal parts according to the characteristics of the cold and warm hues, and then the divided color phase diagram is subjected to color region division to obtain a schematic diagram of the color correspondence relationship shown in fig. 4; wherein each color region corresponds to one color information, and each color information may represent a plurality of colors. The color adjustment relationship can be established based on the color corresponding relationship diagram; as shown in fig. 4, the target adjustment color information of the color information corresponding to the area 5 may be the color information corresponding to the area 2 and the color information corresponding to the area 4; that is, the target adjustment color information may be color information corresponding to a diagonal region of the region where the target color information is located, or may be color information corresponding to an adjacent region of the region where the target color information is located. The color information corresponding to the area 6 is not used as the target adjustment color information.
In a possible implementation manner, the hue information represented in the color phase diagram can be divided into 12 equal parts according to the cold and warm hue characteristics, so as to obtain the hue division schematic diagram shown in fig. 5 a; and obtaining a structural schematic diagram showing saturation as shown in fig. 5b, wherein the outermost ring in fig. 5b shows that the S value is 255, the center of the circle shows that the S value is 0, the S values on the same ring are the same, and the S values increase from the center of the circle to the outermost ring; fig. 5a and fig. 5b may be superimposed to obtain fig. 5c, and the distribution condition of the pixel points in the target image in fig. 5c is determined according to the saturation information and the hue information corresponding to the pixel points, so as to obtain the color distribution radar chart of the pixel points shown in fig. 5 d; the first 3 target pixel points with the saturation information sorted from large to small can be determined from the color distribution radar chart, the positions of the target hue information corresponding to the first 3 target pixel points in the color corresponding relation chart are determined, and it can be seen that the first 3 target pixel points are all distributed in the area 5 in the color corresponding relation chart, so that the color information corresponding to the area 5 can be used as the target color information; and determining that the target adjustment color information is the color information corresponding to the area 4 and the color information corresponding to the area 2 according to the target color information and the color adjustment relation. In determining the target user interface, it may be preferable to determine by the complementary color information (i.e., the color information corresponding to the region 2) determined from the target adjustment color information.
Since color information corresponding to the area 6 belongs to the red color group, and the red color group has a warning property and is likely to cause anxiety, the color information corresponding to the area 6 is not generally set as target adjustment color information, and therefore, when the specified target color information is color information corresponding to the area 5, the color information corresponding to the area 6 is not set as target adjustment color information of the color information corresponding to the area 5.
As shown in fig. 6, the area 2 and the area 5 are diagonal areas, and the color information corresponding to the area 2 and the color information corresponding to the area 5 are complementary color information; the region 1 and the region 4 are diagonal regions, and the color information corresponding to the region 1 and the color information corresponding to the region 4 are complementary color information; the color information corresponding to the region 3 does not have corresponding complementary color information, and the color information corresponding to the region 6 may be complementary color information of the color information corresponding to the region 3. Diagonal regions are also understood to be complementary regions.
In one possible implementation, the color information corresponding to each of the 5 regions 1-5 shown in fig. 4 may be provided with a set of corresponding user interfaces, and the region 6 is not provided with a user interface.
After the target user interface is determined, as shown in fig. 7, the light transmittance of the substrate layer in the target user interface may also be dynamically adjusted according to the target light intensity information of the environment where the electronic device is located, so as to reduce the influence of light on vision.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
According to the information processing method provided by the embodiment of the application, the target color information of the environment where the electronic equipment is located is considered, and the target user interface is determined based on the target color information and the target adjustment color information determined by the color adjustment relation, so that the target user interface can be suitable for the environment where the current electronic equipment is located, and the problem that the presentation effect of the user interface in the AR glasses is poor is solved.
Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, where the electronic device is applied to the information processing method provided in the embodiment corresponding to fig. 1 to 3, and as shown in fig. 8, the electronic device 4 may include: a processor 41, a memory 42 and a communication bus 43;
the communication bus 43 is used for realizing communication connection between the processor 41 and the memory 42;
the processor 41 is configured to execute the information processing program in the memory 42 to implement the following steps:
acquiring a target image of an environment where electronic equipment is located;
determining target color information based on pixel information of pixel points of a target image; the target color information represents the tendency color of the environment where the electronic equipment is located;
determining target adjustment color information based on the target color information and the color adjustment relationship; wherein, the color adjustment relationship is the corresponding relationship between the color information and the adjustment color information;
based on the target adjustment color information, a target user interface is determined.
In other embodiments of the present application, the processor 41 is configured to execute the information processing program in the memory 42 to determine the target color information based on the pixel information of the pixel points of the target image, so as to implement the following steps:
obtaining hue information and saturation information corresponding to pixel points based on pixel information of the pixel points of the target image;
target color information is determined based on the hue information and the saturation information.
In other embodiments of the present application, the processor 41 is configured to execute the information processing program in the memory 42 to determine the target color information based on the hue information and the saturation information, so as to implement the following steps:
determining first target saturation information satisfying a saturation condition from the saturation information;
and determining target color information based on the target hue information corresponding to the first target saturation information.
In other embodiments of the present application, the processor 41 is configured to execute the information processing program in the memory 42 to determine the target color information based on the hue information and the saturation information, so as to implement the following steps:
determining color information corresponding to the pixel point based on the hue information, and determining reference color information from the color information;
determining a first set of pixel points from the pixel points based on the reference color information;
and determining target color information based on the first pixel point set and second target saturation information corresponding to the first pixel point set.
In other embodiments of the present application, the processor 41 is configured to execute the information processing program in the memory 42 to determine the target color information based on the first pixel point set and the second target saturation information corresponding to the first pixel point set, so as to implement the following steps:
determining a second pixel point set corresponding to each piece of reference color information from the first pixel point set;
determining third target saturation information corresponding to each second pixel point set from the second target saturation information;
target color information is determined from the reference color information based on the plurality of third target saturation information.
In other embodiments of the present application, the processor 41 is configured to execute the target-based adjustment color information of the information processing program in the memory 42 to determine the target user interface to implement the following steps:
determining complementary color information of the target color information from the target adjustment color information;
based on the complementary color information, a target user interface is determined.
In other embodiments of the present application, processor 41 is configured to execute complementary color information based information processing program in memory 42 to determine a target user interface to implement the following steps:
based on the complementary color information, adjusting the color of the user interface of the electronic equipment to obtain a target user interface; or the like, or, alternatively,
and determining a target user interface from the user interfaces to be selected based on the complementary color information.
In other embodiments of the present application, processor 41 is configured to execute an information processing program in memory 42 to implement the following steps:
switching a user interface of the electronic equipment to be a target user interface;
determining the target light intensity of the environment where the electronic equipment is located based on the pixel information of the pixel points of the target image;
based on the target light intensity, a light transmittance of a substrate layer in the target user interface is adjusted.
In other embodiments of the present application, the processor 41 is configured to execute the information processing program in the memory 42 to adjust the transmittance of the substrate layer in the target user interface based on the target light intensity, so as to implement the following steps:
determining a target light transmittance based on the corresponding relation between the target light intensity and the light intensity; wherein, the light intensity corresponding relation is the corresponding relation between the light intensity and the light transmittance;
the light transmittance was adjusted to the target light transmittance.
It should be noted that, a specific implementation process of the steps executed by the processor in this embodiment may refer to an implementation process in the information processing method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here.
The electronic device provided by the embodiment of the application considers the target color information of the environment where the electronic device is located, and determines the target user interface based on the target color information and the target adjustment color information determined by the color adjustment relationship, so that the target user interface can be suitable for the environment where the current electronic device is located, and the problem of poor presentation effect of the user interface in the AR glasses is solved.
Based on the foregoing embodiments, the present application provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the information processing method provided by the embodiments corresponding to fig. 1 to 3.
The computer-readable storage medium may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); and may be various electronic devices such as mobile phones, computers, tablet devices, personal digital assistants, etc., including one or any combination of the above-mentioned memories.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. An information processing method applied to an electronic device, the method comprising:
acquiring a target image of an environment where the electronic equipment is located;
determining target color information based on pixel information of pixel points of the target image; wherein the target color information represents a tendency color of an environment in which the electronic device is located;
determining target adjustment color information based on the target color information and the color adjustment relationship; wherein, the color adjustment relationship is a corresponding relationship between the color information and the adjustment color information;
determining a target user interface based on the target adjustment color information.
2. The method of claim 1, the determining target color information based on pixel information of pixel points of the target image, comprising:
obtaining hue information and saturation information corresponding to the pixel points based on the pixel information of the pixel points of the target image;
determining the target color information based on the hue information and the saturation information.
3. The method of claim 2, the determining the target color information based on the hue information and the saturation information, comprising:
determining first target saturation information satisfying a saturation condition from the saturation information;
and determining the target color information based on the target hue information corresponding to the first target saturation information.
4. The method of claim 2, the determining the target color information based on the hue information and the saturation information, comprising:
determining color information corresponding to the pixel points based on the hue information, and determining reference color information from the color information;
determining a first set of pixel points from the pixel points based on the reference color information;
and determining the target color information based on the first pixel point set and second target saturation information corresponding to the first pixel point set.
5. The method of claim 4, wherein determining the target color information based on second target saturation information corresponding to the first set of pixel points and the first set of pixel points comprises:
determining a second pixel point set corresponding to each piece of reference color information from the first pixel point set;
determining third target saturation information corresponding to each second pixel point set from the second target saturation information;
determining the target color information from reference color information based on a plurality of the third target saturation information.
6. The method of claim 1, the determining a target user interface based on the target adjustment color information, comprising:
determining complementary color information of the target color information from the target adjustment color information;
determining the target user interface based on the complementary color information.
7. The method of claim 6, the determining the target user interface based on the complementary color information, comprising:
based on the complementary color information, adjusting the color of the user interface of the electronic equipment to obtain the target user interface; or the like, or, alternatively,
and determining the target user interface from the user interfaces to be selected based on the complementary color information.
8. The method of claim 1, further comprising:
switching a user interface of the electronic equipment to be the target user interface;
determining the target light intensity of the environment where the electronic equipment is located based on the pixel information of the pixel points of the target image;
based on the target light intensity, adjusting a light transmittance of a substrate layer in the target user interface.
9. The method of claim 8, the adjusting light transmittance of a substrate layer in the target user interface based on the target light intensity, comprising:
determining a target light transmittance based on the corresponding relation between the target light intensity and the light intensity; wherein, the light intensity corresponding relation is the corresponding relation between the light intensity and the light transmittance;
and adjusting the light transmittance to be the target light transmittance.
10. An electronic device, the electronic device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the information processing program in the memory to realize the following steps:
acquiring a target image of an environment where the electronic equipment is located;
determining target color information based on pixel information of pixel points of the target image; wherein the target color information represents a tendency color of an environment in which the electronic device is located;
determining target adjustment color information based on the target color information and the color adjustment relationship; wherein, the color adjustment relationship is a corresponding relationship between the color information and the adjustment color information;
determining a target user interface based on the target adjustment color information.
CN202210326045.2A 2022-03-29 2022-03-29 Information processing method and electronic equipment Pending CN114816619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210326045.2A CN114816619A (en) 2022-03-29 2022-03-29 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210326045.2A CN114816619A (en) 2022-03-29 2022-03-29 Information processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN114816619A true CN114816619A (en) 2022-07-29

Family

ID=82532127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210326045.2A Pending CN114816619A (en) 2022-03-29 2022-03-29 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114816619A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115272498A (en) * 2022-08-02 2022-11-01 新源劲吾(北京)科技有限公司 Color photovoltaic panel surface texturing method and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111856752A (en) * 2020-06-23 2020-10-30 深圳奇迹智慧网络有限公司 Augmented reality display equipment adjusting method and device and computer equipment
US20210004996A1 (en) * 2019-07-01 2021-01-07 Microsoft Technology Licensing, Llc Adaptive user interface palette for augmented reality
CN113178018A (en) * 2021-05-28 2021-07-27 歌尔股份有限公司 Information display method and device, AR equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210004996A1 (en) * 2019-07-01 2021-01-07 Microsoft Technology Licensing, Llc Adaptive user interface palette for augmented reality
CN111856752A (en) * 2020-06-23 2020-10-30 深圳奇迹智慧网络有限公司 Augmented reality display equipment adjusting method and device and computer equipment
CN113178018A (en) * 2021-05-28 2021-07-27 歌尔股份有限公司 Information display method and device, AR equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115272498A (en) * 2022-08-02 2022-11-01 新源劲吾(北京)科技有限公司 Color photovoltaic panel surface texturing method and related equipment

Similar Documents

Publication Publication Date Title
JP7226851B2 (en) Image processing method, apparatus and device
CN110163810B (en) Image processing method, device and terminal
CN107204034B (en) A kind of image processing method and terminal
CN104883504B (en) Open the method and device of high dynamic range HDR functions on intelligent terminal
CN108932696B (en) Signal lamp halo suppression method and device
CN106651797B (en) Method and device for determining effective area of signal lamp
CN108205671A (en) Image processing method and device
CN113808120B (en) Image processing method, device, electronic equipment and storage medium
CN112037160A (en) Image processing method, device and equipment
CN114816619A (en) Information processing method and electronic equipment
CN112419218B (en) Image processing method and device and electronic equipment
CN113194256B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112351197B (en) Shooting parameter adjusting method and device, storage medium and electronic equipment
CN113284063A (en) Image processing method, image processing apparatus, electronic device, and readable storage medium
CN114792283A (en) Image processing method, device and equipment and computer readable storage medium
KR20000059451A (en) Method of raw color adjustment and atmosphere color auto extract in a image reference system
CN112435173A (en) Image processing and live broadcasting method, device, equipment and storage medium
CN116309224A (en) Image fusion method, device, terminal and computer readable storage medium
CN115474316A (en) Method and device for controlling atmosphere lamp, electronic equipment and storage medium
CN112509068B (en) Image dominant color recognition method and device, electronic equipment and storage medium
CN112714299B (en) Image display method and device
CN113487497A (en) Image processing method and device and electronic equipment
US20220343529A1 (en) Image signal processing based on virtual superimposition
CN109345602A (en) Image processing method and device, storage medium, electronic equipment
CN114979487A (en) Image processing method, image processing device, electronic equipment and storage medium

Legal Events

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