Intelligent agent iris and pupil effect processing method and device, equipment and storage medium
By performing dynamic change processing on the iris and pupil of the agent's eyes driven by environmental information, the problem of the pupil in the robot agent being unable to adapt to environmental changes is solved and the vividness of the agent is improved.
Patent Information
- Application Number
- CN202410604690.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-09-06
AI Technical Summary
In current robot agents, pupils are only displayed as a fixed pattern and are unable to make adaptive changes according to the environmental space, resulting in poor vividness of the agent.
By obtaining the environmental information of the current environment picture, including color information and brightness information, and based on the changes in environmental information at preset time intervals, the agent's eye iris layer, eye white layer and pupil layer are subjected to color change processing and brightness change. Processing and deformation processing to achieve dynamic display of iris and pupils.
The iris and pupil of the agent change with the changes in the environment, which enhances the vividness of the agent and solves the problem of poor vividness.
Smart Images

Figure CN118608735A
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent body technology, and in particular to an intelligent body iris and pupil effect processing method, device, equipment and storage medium. Background Art
[0002] For robots that are intelligent interactive entities, the eye screen is an important expression of emotion during the interaction process and an important manifestation of biomimicry.
[0003] Currently, most robot eyes on the market achieve eye effects by playing screen animations. When users interact with the robots, they appear to be programmed and mechanical, lacking biological variety and agility.
[0004] In the expression of the eyes of organisms, the iris and pupil are the most striking structures, and their changes will significantly improve the vividness. In the current intelligent bodies represented by robots, the iris and pupil are only displayed as a fixed pattern and cannot be adaptively changed according to the environment and space, resulting in the technical problem of poor vividness of the intelligent body. Summary of the invention
[0005] The present application provides a method, device, equipment and storage medium for processing iris and pupil effects of an intelligent body, which solves the technical problem that in current intelligent bodies represented by robots, the pupil is only displayed as a fixed pattern and is unchanging, and cannot make adaptive changes according to the environmental space, resulting in poor liveliness of the intelligent body.
[0006] In view of this, the first aspect of the present application provides an intelligent agent iris and pupil effect processing method, the method comprising:
[0007] S1, obtaining the current environment image according to a preset time interval;
[0008] S2, extracting environmental information of the current environmental picture, wherein the environmental information includes environmental color information and environmental brightness information;
[0009] S3. Compare the environmental information of the current environmental picture with the environmental information of the previous preset time interval, and according to the comparison result, perform color change processing, brightness change processing and / or deformation change processing on the iris layer, the white of the eye layer and the pupil layer of the intelligent entity to achieve the display effect of the change of the iris and pupil of the intelligent entity.
[0010] Optionally, the step S2 specifically includes:
[0011] The RGB color hue average and brightness average of each pixel point in the current environment picture are calculated to obtain the environment color information and environment brightness information of the current environment picture.
[0012] Optionally, the step S3 specifically includes:
[0013] Compare the ambient color information of the current ambient picture with the ambient color information of the last preset time interval, and determine the cast color and the non-cast color according to the ambient RGB color hue shift result;
[0014] Perform preset hue adjustment on the corresponding cast colors and non-cast colors in the current eye iris layer and eye white layer.
[0015] Optionally, the step S3 specifically includes:
[0016] Compare the ambient brightness information of the current ambient image with the ambient brightness information of the last preset time interval to determine the change result of the ambient average brightness value;
[0017] According to the change of the average brightness value of the environment, the brightness and darkness contrast of the current eye iris layer is adjusted, and the ambient RGB color of the current eye iris layer is adjusted accordingly.
[0018] Optionally, after comparing the ambient brightness information of the current ambient picture with the ambient brightness information of the last preset time interval to determine the change result of the ambient average brightness value, the method further includes:
[0019] According to the change result of the average brightness value of the environment, the pattern shapes corresponding to the current eye iris layer and the eye pupil layer are subjected to spherical deformation and scaling processing.
[0020] A second aspect of the present application provides an intelligent iris and pupil effect processing device, the device comprising:
[0021] An acquisition unit, used to acquire the current environment image at a preset time interval;
[0022] An extraction unit, used to extract environmental information of the current environmental picture, wherein the environmental information includes environmental color information and environmental brightness information;
[0023] The processing unit is used to compare the environmental information of the current environmental picture with the environmental information of the previous preset time interval, and according to the comparison result, perform color change processing, brightness change processing and / or deformation change processing on the iris layer, the white of the eye layer and the pupil layer of the intelligent entity to achieve the change display effect of the iris and pupil of the intelligent entity.
[0024] Optionally, the extraction unit is specifically used for:
[0025] The RGB color hue average and brightness average of each pixel point in the current environment picture are calculated to obtain the environment color information and environment brightness information of the current environment picture.
[0026] Optionally, the processing unit is specifically configured to:
[0027] Compare the ambient color information of the current ambient picture with the ambient color information of the last preset time interval, and determine the cast color and the non-cast color according to the ambient RGB color hue shift result;
[0028] Perform preset hue adjustment on the corresponding cast colors and non-cast colors in the current eye iris layer and eye white layer.
[0029] A third aspect of the present application provides an intelligent iris and pupil effect processing device, the device comprising a processor and a memory:
[0030] The memory is used to store program code and transmit the program code to the processor;
[0031] The processor is used to execute the steps of the intelligent agent iris and pupil effect processing method as described in the first aspect according to the instructions in the program code.
[0032] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the intelligent agent iris and pupil effect processing method described in the first aspect above.
[0033] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0034] In the present application, a method, device, equipment and storage medium for processing the iris and pupil effects of an intelligent agent are provided. Based on the environmental color information and environmental brightness information contained in the current environmental picture of the intelligent agent, and according to the changes in the environmental information at preset time intervals, the iris layer, the white of the eye layer and the pupil layer of the intelligent agent are subjected to color change processing, brightness change processing and / or deformation change processing, so that the iris and pupil of the intelligent agent will change accordingly with the changes in the environment, making them more vivid, and solving the technical problem that in the current intelligent agents represented by robots, the pupil is only displayed as a fixed pattern and cannot make adaptive changes according to the environmental space, resulting in poor vividness of the intelligent agent. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a method flow chart of the method for processing the iris and pupil effects of an intelligent agent in an embodiment of the present application;
[0036] Figure 2 This is a schematic diagram of the structure of the intelligent body iris and pupil effect processing device in the embodiment of the present application;
[0037] Figure 3 It is a structural schematic diagram of the intelligent body iris and pupil effect processing device in the embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] The present application designs a method, device, equipment and storage medium for processing the iris and pupil effects of an intelligent body, which solves the technical problem that in current intelligent bodies represented by robots, the pupil is only displayed as a fixed pattern and is unchanging, and cannot make adaptive changes according to the environmental space, resulting in poor liveliness of the intelligent body.
[0040] For easier understanding, see Figure 1 , Figure 1 Flowchart of the method for processing the iris and pupil effects of an intelligent agent in the embodiment of the present application. Figure 1 As shown, specifically:
[0041] S1, obtaining the current environment image according to a preset time interval;
[0042] It should be noted that the current spatial picture is collected by a camera device installed in the intelligent body. Usually, the intelligent body records it in the form of video, but in order to better analyze the environmental changes, the current environmental picture in the video will be obtained at preset time intervals.
[0043] S2, extracting the environmental information of the current environmental picture, the environmental information includes environmental color information and environmental brightness information;
[0044] It should be noted that, for the intelligent agent's eye pupil layer and eye iris layer, the color information and brightness information of the current environment picture are two important indicators.
[0045] S3. Compare the environmental information of the current environment picture with the environmental information of the previous preset time interval. According to the comparison result, perform color change processing, brightness change processing and / or deformation change processing on the iris layer, the white of the eye layer and the pupil layer of the intelligent entity to achieve the display effect of the change of the iris and pupil of the intelligent entity.
[0046] It should be noted that in order to better reflect the biological nature and simulate the changing effects of the biological pupils, the iris layer, white of the eye layer and pupil layer of the intelligent entity will be processed with color changes, brightness changes and / or deformation changes according to environmental changes to achieve the changing display effect of the iris and pupil of the intelligent entity.
[0047] Furthermore, step S2 specifically includes:
[0048] The RGB color hue average and brightness average of each pixel point in the current environment picture are calculated to obtain the environment color information and environment brightness information of the current environment picture.
[0049] Furthermore, step S3 specifically includes:
[0050] Compare the ambient color information of the current ambient image with the ambient color information of the last preset time interval, and determine the cast color and the non-cast color according to the ambient RGB color hue shift result;
[0051] Perform preset hue adjustment on the corresponding cast colors and non-cast colors in the current eye iris layer and eye white layer.
[0052] It should be noted that the basic hue of color information changes from -180 to +180 on the 360-degree hue circle, and the initial value of the current screen is 0. Comprehensively judge the color information with the largest proportion in the current camera, RGB corresponding values, R red, G green, B blue, and adjust the iris and pupil color deviation positions through the position model of the RGB hue circle. According to the information of the current screen, an initial position value of the current screen will be calculated. If the environment changes, the current basic iris color information will be increased or decreased, and the iris color information will be adjusted so that the main iris color value is close to the color value calculated for the largest proportion of the current screen. In addition, the iris reflection color value is close to the opposite value (complementary color value) of the current information +180 degrees.
[0053] The colors of the current eye iris layer and the eye white layer will undergo a color hue shift based on the previous color according to the current environment color RGB color. For example, in the color change three-color model data, the color cast color change value is set to increase by 30%, and the value of the non-color cast color is reduced by 20%, so that the color display effect of the intelligent agent's eye iris layer and eye white layer is more in line with the actual environment.
[0054] Furthermore, step S3 specifically includes:
[0055] Compare the ambient brightness information of the current ambient image with the ambient brightness information of the previous preset time interval to determine the change result of the average ambient brightness value;
[0056] According to the change of the average brightness value of the environment, the brightness and darkness contrast of the current eye iris layer is adjusted, and the ambient RGB color of the current eye iris layer is adjusted accordingly.
[0057] It should be noted that when the ambient brightness of the space where the intelligent agent is located changes, such as day and night, or with or without lights indoors, the brightness contrast of the eye iris layer will be adjusted according to the preset time interval so that the brightness of the pattern corresponding to the eye iris layer conforms to the actual environment.
[0058] In the ambient brightness information, the brightness information is from -100 to +100, -100 is a pure black screen, +100 is a pure white screen, and the current brightness of the comprehensive ambient screen corresponds to the current value. If the environment becomes darker, the brightness information value of the iris and pupil decreases, and if the environment becomes brighter, the brightness value of the iris and pupil increases. For example, at noon or in a strong light environment, the pupil shrinks, the overall brightness and dark contrast of the eye increases, and the overall brightness becomes brighter. If the current environment is at night and the light source in the environment is weak and dark, then the screen brightness dims, the pupil dilates, the contrast between the iris and pupil decreases, and the overall brightness becomes relatively darker.
[0059] In addition, in order to better adapt to brightness changes, when the contrast of the eye iris layer is lower than the preset value, the eye iris layer can enter the eye protection mode, increasing the red (R) and green (G) values in the ambient RGB color and reducing the blue (B) value.
[0060] Furthermore, after comparing the ambient brightness information of the current ambient picture with the ambient brightness information of the last preset time interval to determine the change result of the ambient average brightness value, the method further includes:
[0061] According to the change result of the average brightness value of the environment, the pattern shapes corresponding to the current eye iris layer and the eye pupil layer are subjected to spherical deformation and scaling processing.
[0062] It should be noted that in order to more vividly display the agent's eye display effect, the agent's eye iris layer and eye pupil layer are changed accordingly according to the changes in ambient light, for example:
[0063] When there is strong light in the environment or the light in the scene becomes brighter, the agent's eye space will shrink accordingly;
[0064] When the environment gets darker, the agent's pupils get bigger;
[0065] When the pupil of the intelligent body changes in size, the pattern contained in the iris layer of the eye will also be deformed. Through the deformation simulation effect of the special iris pattern, the pattern of the iris layer of the eye is diffused, squeezed and stretched from the center point to the surrounding area, while the surrounding area remains unchanged, simulating the stretching effect of the dilator pupillae and the deformation effect of the pupillary sphincter of the organism.
[0066] See also Figure 2 , Figure 2 Schematic diagram of the structure of the intelligent iris and pupil effect processing device in the embodiment of the present application. Figure 2 As shown, specifically:
[0067] An acquisition unit 201 is used to acquire a current environment image at a preset time interval;
[0068] An extraction unit 202 is used to extract environmental information of the current environmental picture, where the environmental information includes environmental color information and environmental brightness information;
[0069] The processing unit 203 is used to compare the environmental information of the current environmental picture with the environmental information of the previous preset time interval, and according to the comparison result, perform color change processing, brightness change processing and / or deformation change processing on the iris layer, the white of the eye layer and the pupil layer of the intelligent entity to achieve the change display effect of the iris and pupil of the intelligent entity.
[0070] Further, the extraction unit 202 is specifically used for:
[0071] Calculate the RGB color hue average and brightness average of each pixel in the current environment image to obtain the environment color information and environment brightness information of the current environment image.
[0072] Furthermore, the processing unit 203 is specifically configured to:
[0073] Compare the ambient color information of the current ambient image with the ambient color information of the last preset time interval, and determine the cast color and the non-cast color according to the ambient RGB color hue shift result;
[0074] Perform preset hue adjustment on the corresponding cast colors and non-cast colors in the current eye iris layer and eye white layer.
[0075] Furthermore, the processing unit 203 is specifically configured to:
[0076] Compare the ambient brightness information of the current ambient image with the ambient brightness information of the previous preset time interval to determine the change result of the average ambient brightness value;
[0077] According to the change of the average brightness value of the environment, the brightness and darkness contrast of the current eye iris layer is adjusted, and the ambient RGB color of the current eye iris layer is adjusted accordingly.
[0078] Furthermore, the processing unit 203 is further configured to:
[0079] According to the change result of the average brightness value of the environment, the pattern shapes corresponding to the current eye iris layer and the eye pupil layer are subjected to spherical deformation and scaling processing.
[0080] The present application also provides another intelligent iris and pupil effect processing device, such as Figure 3 For the sake of convenience, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The terminal can be any terminal device including a pet robot, a virtual person, a mobile phone, a tablet computer, a personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (English full name: Point of Sales, English abbreviation: POS), a car computer, etc., taking the terminal as a mobile phone as an example:
[0081] Figure 3 FIG. 1 is a block diagram showing a partial structure of a pet robot related to a terminal provided in an embodiment of the present application. Figure 3 The pet robot includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and a power supply 1090. Those skilled in the art can understand that Figure 3 The pet robot structure shown in the figure does not constitute a limitation of the pet robot, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0082] Combine the following Figure 3 A detailed introduction to the various components of the pet robot:
[0083] The RF circuit 1010 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 1080 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1010 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (full name: LowNoiseAmplifier, English abbreviation: LNA), a duplexer, etc. In addition, the RF circuit 1010 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communications may use any communication standard or protocol, including but not limited to Global System of Mobile communications (Global System of Mobile communication, English abbreviation: GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, English abbreviation: CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, English abbreviation: LTE), e-mail, Short Messaging Service (SMS), etc.
[0084] The memory 1020 can be used to store software programs and modules. The processor 1080 executes various functional applications and data processing of the pet robot by running the software programs and modules stored in the memory 1020. The memory 1020 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the pet robot (such as audio data, a phone book, etc.), etc. In addition, the memory 1020 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0085] The input unit 1030 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the pet robot. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1031 or near the touch panel 1031 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1031 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1080, and can receive and execute the command sent by the processor 1080. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel 1031, the input unit 1030 may further include other input devices 1032. Specifically, the other input devices 1032 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0086] The display unit 1040 can be used to display information input by the user or information provided to the user and various menus of the pet robot. The display unit 1040 may include a display panel 1041. Optionally, the display panel 1041 may be configured in the form of a liquid crystal display (full name in English: Liquid Crystal Display, English abbreviation: LCD), an organic light-emitting diode (full name in English: Organic Light-Emitting Diode, English abbreviation: OLED), etc. Further, the touch panel 1031 may cover the display panel 1041. When the touch panel 1031 detects a touch operation on or near it, it is transmitted to the processor 1080 to determine the type of touch event. Subsequently, the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of touch event. Although in Figure 3 In the embodiment, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and output functions of the pet robot, but in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to realize the input and output functions of the pet robot.
[0087] The pet robot may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and / or the backlight when the pet robot moves to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the pet robot (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that the pet robot can also be equipped with, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0088] The audio circuit 1060, the speaker 1061, and the microphone 1062 can provide an audio interface between the user and the pet robot. The audio circuit 1060 can transmit the received audio data to the speaker 1061 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, and then the audio data is output to the processor 1080 for processing, and then sent to another pet robot through the RF circuit 1010, or the audio data is output to the memory 1020 for further processing.
[0089] WiFi is a short-range wireless transmission technology. The pet robot can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 1070. It provides users with wireless broadband Internet access. Figure 3 A WiFi module 1070 is shown, but it is understandable that it is not an essential component of the pet robot and can be omitted as needed without changing the essence of the invention.
[0090] The processor 1080 is the control center of the pet robot. It uses various interfaces and lines to connect various parts of the entire pet robot. By running or executing software programs and / or modules stored in the memory 1020, and calling data stored in the memory 1020, it performs various functions of the pet robot and processes data, thereby monitoring the pet robot as a whole. Optionally, the processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1080.
[0091] The pet robot also includes a power source 1090 (such as a battery) for supplying power to each component. Preferably, the power source can be logically connected to the processor 1080 through a power management system, thereby realizing functions such as charging, discharging, and power consumption management through the power management system.
[0092] Although not shown, the pet robot may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0093] In the embodiment of the present application, the processor 1080 included in the terminal also has the following functions:
[0094] S1, obtaining the current environment image according to a preset time interval;
[0095] S2, extracting the environmental information of the current environmental picture, the environmental information includes environmental color information and environmental brightness information;
[0096] S3. Compare the environmental information of the current environment picture with the environmental information of the previous preset time interval. According to the comparison result, perform color change processing, brightness change processing and / or deformation change processing on the iris layer, the white of the eye layer and the pupil layer of the intelligent entity to achieve the display effect of the change of the iris and pupil of the intelligent entity.
[0097] An embodiment of the present application also provides a computer-readable storage medium for storing program code, wherein the program code is used to execute any one of the implementation methods of the intelligent agent iris and pupil effect processing method described in the aforementioned embodiments.
[0098] In an embodiment of the present application, a method, device, equipment and storage medium for processing iris and pupil effects of an intelligent agent are provided. Based on the environmental color information and environmental brightness information contained in the current environmental picture of the intelligent agent, and according to the changes in the environmental information at preset time intervals, the iris layer, the white of the eye layer and the pupil layer of the intelligent agent are subjected to color change processing, brightness change processing and / or deformation change processing, so that the iris and pupil of the intelligent agent will change accordingly with the changes in the environment, making them more vivid, thereby solving the technical problem that in the current intelligent agents represented by robots, the pupil is only displayed as a fixed pattern and cannot make adaptive changes according to the environmental space, resulting in poor vividness of the intelligent agent.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0100] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0101] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0102] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0103] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.
[0106] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for processing iris and pupil effects of an intelligent agent, It is characterized in that include: S1, obtaining the current environment image according to a preset time interval; S2, extracting environmental information of the current environmental picture, wherein the environmental information includes environmental color information and environmental brightness information; S3. Compare the environmental information of the current environmental picture with the environmental information of the previous preset time interval, and according to the comparison result, perform color change processing, brightness change processing and / or deformation change processing on the iris layer, the white of the eye layer and the pupil layer of the intelligent entity to achieve the display effect of the change of the iris and pupil of the intelligent entity.
2. The method for processing iris and pupil effects of an intelligent agent according to claim 1, It is characterized in that The step S2 specifically includes: The RGB color hue average and brightness average of each pixel point in the current environment picture are calculated to obtain the environment color information and environment brightness information of the current environment picture.
3. The method for processing iris and pupil effects of an intelligent agent according to claim 2, It is characterized in that The step S3 specifically includes: Compare the ambient color information of the current ambient picture with the ambient color information of the last preset time interval, and determine the cast color and the non-cast color according to the ambient RGB color hue shift result; Perform preset hue adjustment on the corresponding cast colors and non-cast colors in the current eye iris layer and eye white layer.
4. The method for processing iris and pupil effects of an intelligent agent according to claim 2, It is characterized in that The step S3 specifically includes: Compare the ambient brightness information of the current ambient image with the ambient brightness information of the last preset time interval to determine the change result of the ambient average brightness value; According to the change of the average brightness value of the environment, the brightness and darkness contrast of the current eye iris layer is adjusted, and the ambient RGB color of the current eye iris layer is adjusted accordingly.
5. The method for processing iris and pupil effects of an intelligent agent according to claim 4, It is characterized in that After comparing the ambient brightness information of the current ambient picture with the ambient brightness information of the last preset time interval to determine the change result of the ambient average brightness value, the method further includes: According to the change result of the average brightness value of the environment, the pattern shapes corresponding to the current eye iris layer and the eye pupil layer are subjected to spherical deformation and scaling processing.
6. An intelligent iris and pupil effect processing device, It is characterized in that include: An acquisition unit, used to acquire the current environment image at a preset time interval; An extraction unit, used to extract environmental information of the current environmental picture, wherein the environmental information includes environmental color information and environmental brightness information; The processing unit is used to compare the environmental information of the current environmental picture with the environmental information of the previous preset time interval, and according to the comparison result, perform color change processing, brightness change processing and / or deformation change processing on the iris layer, the white of the eye layer and the pupil layer of the intelligent entity to achieve the change display effect of the iris and pupil of the intelligent entity.
7. The intelligent agent iris and pupil effect processing device according to claim 6, It is characterized in that The extraction unit is specifically used for: The RGB color hue average and brightness average of each pixel point in the current environment picture are calculated to obtain the environment color information and environment brightness information of the current environment picture.
8. The intelligent agent iris and pupil effect processing device according to claim 6, It is characterized in that The processing unit is specifically used for: Compare the ambient color information of the current ambient picture with the ambient color information of the last preset time interval, and determine the cast color and the non-cast color according to the ambient RGB color hue shift result; Perform preset hue adjustment on the corresponding cast colors and non-cast colors in the current eye iris layer and eye white layer.
9. An intelligent iris and pupil effect processing device, It is characterized in that The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the intelligent agent iris and pupil effect processing method described in any one of claims 1-5 according to the instructions in the program code.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store program code, and the program code is used to execute the intelligent agent iris and pupil effect processing method described in any one of claims 1-5.
