Disclosure of Invention
The embodiment of the application provides a processing method and electronic equipment, which solve the problem that in the scheme of triggering the electronic equipment through infrared light in the related art, the position of a light spot on a display screen is inaccurate to the position of actual triggering.
In order to achieve the above purpose, the technical scheme of the application is realized as follows:
a method of processing, the method comprising:
The method comprises the steps of obtaining sensing information, wherein the sensing information characterizes input light spots on a display screen, the sensing information characterizes sensing values of a plurality of sensing units which generate changes in a sensing array of the display screen, sensing areas corresponding to the sensing units which generate changes comprise a first sensing unit area and a second sensing unit area, the first sensing unit area corresponds to the input light spots one by one, and the second sensing unit area is adjacent to the first sensing unit area;
determining an input position of the input light spot on the display screen based on the sensing information;
and controlling to display an input focus corresponding to the input light spot on the display screen based on the input position.
In the above-described arrangement, the first and second embodiments,
The input position overlaps with the position of the input light spot on the display screen;
Or alternatively;
the sensing position of the input position relative to the position of the input light spot in the first sensing unit area is closer to the position of the input light spot in the display screen.
In the above scheme, the obtaining the sensing information includes:
and obtaining sensing information of the input light spots projected onto the sensing array through the optical scattering layer of the display screen to form scattering light spots, wherein a sensing area on the sensing array corresponding to the scattering light spots comprises a first sensing unit area and a second sensing unit area.
In the above scheme, the obtaining the sensing information includes:
obtaining first sensing information, wherein the first sensing information is obtained by projecting the input light spots to the sensing array;
Determining an expansion area based on the first sensing information;
generating second sensing information of the expansion area;
taking the first sensing information and the second sensing information as the sensing information;
Wherein the extended region includes at least the second sensing unit region.
In the above scheme, the determining, based on the sensing information, the input position of the input light spot on the display screen includes:
determining a center point of a sensing region characterized by the sensing information,
And taking the central point as an input position of the input light spot.
In the above aspect, the sensing value is a plurality of values, the plurality of values are related to the sensed light quantity, the plurality of values have an upper threshold, and the determining the center point of the sensing area characterized by the sensing information includes:
determining the size of a sensing area corresponding to each sensing unit based on sensing values in the sensing units and the upper threshold;
the center of the sensing region is determined based on the sensing region sizes of the plurality of sensing units.
In the above aspect, the determining the center of the sensing area based on the sensing area sizes of the sensing units includes:
And determining the sensing unit with the largest sensing value among the sensing units as the sensing unit with the reference center of the sensing area, and determining the center of the sensing area based on the sensing area size of the sensing units and the reference center.
An electronic device, the electronic device comprising:
A display screen;
The photosensitive array is used for obtaining induction information;
The sensing information characterizes the sensing values of a plurality of sensing units which generate changes in the sensing array of the display screen, wherein the sensing information characterizes the input light spots on the display screen, the sensing information characterizes the sensing values of the plurality of sensing units which generate changes comprise a first sensing unit area and a second sensing unit area, the first sensing unit area corresponds to the input light spots one by one, and the second sensing unit area is adjacent to the first sensing unit area;
A processor:
determining an input position of the input light spot on the display screen based on the sensing information;
and controlling to display an input focus corresponding to the input light spot on the display screen based on the input position.
In the above scheme, the electronic device further includes:
And the optical scattering layer is used for projecting the input light spot to the sensing array to form a scattering light spot, and the sensing area on the sensing array corresponding to the scattering light spot comprises the first sensing unit area and the second sensing unit area.
In the above aspect, the processor is further configured to:
determining a central point of an induction area characterized by the induction information;
and taking the central point as an input position of the input light spot.
The processing method and the electronic equipment provided by the embodiment of the application acquire the sensing information to represent the input light spots on the display screen, wherein the sensing information represents the sensing values of a plurality of sensing units which are changed in the sensing array of the display screen, the sensing areas corresponding to the sensing units which are changed comprise a first sensing unit area and a second sensing unit area, the first sensing unit area corresponds to the input light spots one by one, the second sensing unit area is adjacent to the first sensing unit area, the input position of the input light spots on the display screen is determined based on the sensing information, and the input focus corresponding to the input light spots is controlled to be displayed on the display screen based on the input position.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
An embodiment of the present application provides a processing method, which may be applied to an electronic device, and is shown with reference to fig. 1, and the method includes the following steps:
And 101, obtaining induction information.
The sensing information characterization display screen comprises a sensing array, a sensing unit area and a sensing unit area, wherein the sensing information characterization display screen is provided with input light spots, sensing values of a plurality of sensing units which generate changes in the sensing array of the sensing information characterization display screen are obtained, the sensing areas corresponding to the sensing units which generate changes comprise a first sensing unit area and a second sensing unit area, the first sensing unit area corresponds to the input light spots one by one, and the second sensing unit area is adjacent to the first sensing unit area.
In the embodiment of the application, the sensing information may be sensing values of a plurality of sensing units which are changed according to the input light spot in a sensing array of the display screen, wherein the sensing values are obtained by the electronic device after the input light spot is taken in the display screen of the electronic device. It should be noted that the sensing information may be that after an input light spot is projected onto a display screen in a real environment, a sensing unit in the sensing array senses the input light spot to determine a sensing value, or the sensing information may be that a real light environment is simulated by application software to project the input light spot onto the display screen in the simulated scene, so that the sensing unit in the sensing array of the simulated scene senses the input light spot to determine the sensing value. In one possible implementation, the input light spot may be generated after the infrared light is projected onto the display screen.
The second sensing unit region may be adjacent to one of the upper, lower, left and right sides of the first sensing unit region, or may be a plurality of sensing unit regions adjacent to a plurality of the upper, lower, left and right sides of the first sensing unit region, or may be a plurality of sensing unit regions adjacent to each of the upper, lower, left and right sides of the first sensing unit region, i.e., the second sensing unit region surrounds the first sensing unit region.
Step 102, determining the input position of the input light spot on the display screen based on the sensing information.
In the embodiment of the application, the electronic equipment can analyze the sensing information of the sensing unit areas to determine the sizes of the corresponding sensing unit areas, and then can determine the input positions of the input light spots on the display screen according to the sizes of the sensing unit areas.
And 103, controlling to display an input focus corresponding to the input light spot on a display screen based on the input position.
After determining the input position of the input light spot on the display screen, the electronic device may display an input focus corresponding to the input light spot at the input position on the display screen, where it is to be noted that the input focus may be used to indicate which information in the electronic device is processed.
According to the processing method provided by the embodiment of the application, the input light spots input on the display screen are sensed through the plurality of sensing units comprising the second sensing unit area and the first sensing unit area corresponding to the input light spots one by one, the input focus of the input light spots on the display screen is determined according to the sensing information of the plurality of sensing units, and the condition that the sensing units are larger than the light spots is avoided, so that the problem that the position of the light spots on the display screen is inaccurate to the position alignment actually triggered in the scheme of triggering the electronic equipment through infrared light in the related art is solved.
Based on the foregoing embodiments, an embodiment of the present application provides a processing method, referring to fig. 2, including the steps of:
Step 201, the electronic device obtains sensing information of the input light spot projected onto the sensing array through the optical scattering layer of the display screen to form a scattering light spot.
The sensing area on the sensing array corresponding to the scattering light spot comprises a first sensing unit area and a second sensing unit area.
It should be noted that, referring to fig. 3, the input light spot may be generated after the infrared light is projected onto the display screen by a transmitting device capable of emitting infrared light, and in a possible implementation, the transmitting device may be a transmitting pen or a remote controller.
In the embodiment of the application, the optical scattering layer can enlarge the size of the input light spot projected onto the display screen and form the scattering light spot based on the input light spot, so that more sensing units in the sensing array sense the input light spot, and the light sensing device is not required to be small enough, thereby ensuring the precision of the finally determined input position. Referring to fig. 4, the size of an input spot is increased after a beam of infrared light input to the display screen is scattered by the optical scattering layer, forming a larger area of infrared light spot.
Step 202, the electronic device obtains first sensing information.
The first sensing information is obtained by projecting an input light spot to the sensing array.
In the embodiment of the present application, the first sensing information may be a sensing value of a sensing unit that changes after an input light spot generated after the infrared light is emitted to the display screen by the emitting device capable of emitting infrared light is projected to the sensing array.
Step 203, the electronic device determines the expansion area based on the first sensing information, and generates second sensing information of the expansion area.
In the embodiment of the application, after the first sensing unit area is obtained, the area after the diffusion of the input light spots can be simulated by application software to serve as an expansion area, and further the second sensing information is the sensing value of the sensing unit at the expansion area determined based on the first sensing information, wherein in practical application, the distance between the display screen and the sensing unit can be determined based on the first sensing unit, and the expansion area can be determined based on the angle of light scattering and the distance between the display screen and the sensing unit. The expansion area is, for example, rectangular or circular, elliptical, or the like, and, in the case of the multivalued sensing unit, the closer to the second sensing unit at the position of the sensing unit corresponding to the input light spot, the larger the value of the corresponding second sensing information thereof is determined by simulation.
For the case of the binary sensing unit, the sensing value at the extended area is binary (0 and 1), if the sensing value is 1, the extended area senses light, and if the sensing value is 0, the extended area does not sense light, and at this time, the second sensing information can be determined by the sensing unit corresponding to the extended area.
In step 204, the electronic device uses the first sensing information and the second sensing information as sensing information.
The first sensing information and the second sensing information can be used together as finally obtained sensing information, so that the input position of the input light spot on the display screen can be determined based on the sensing information.
It should be noted that steps 205-207 may be performed after step 201 or steps 202-204.
Step 205, the electronic device determines a center point of the sensing area characterized by the sensing information.
The electronic device may analyze the sensing information to determine the sizes of the first sensing unit area and the second sensing unit area, and then determine the center point of the whole area, where it is to be noted that the sizes of the first sensing unit area and the second sensing unit area in the embodiment of the present application are not the sizes of the first sensing unit area and the second sensing unit area in physical, but the sizes determined based on the sizes of the sensing information.
In an embodiment of the present application, step 205 may be implemented by:
in step 205a, the electronic device determines a sensing area size corresponding to each sensing unit based on the sensing values and the upper threshold value in the sensing units.
Wherein the sensed value is a plurality of values, the plurality of values being related to the amount of light sensed, the plurality of values having an upper threshold.
In the embodiment of the application, the size of the sensing area corresponding to the sensing unit can be determined based on the magnitude of the light quantity sensed by the sensing unit and the upper threshold corresponding to the sensing value, in one possible implementation, the upper threshold of the sensing value is 128, and the range of a plurality of values included in the sensing value is 0-128, so that the size of the sensing area corresponding to the sensing unit corresponding to different sensing values can be determined based on the preset corresponding relation between the sensing value and the sensing area size, and the size of the sensing area corresponding to each sensing unit is determined.
In other embodiments of the present application, the sensing value may be expressed in a binary form, that is, the sensing value may include two values, namely, 0 and 1, if the sensing value is a first value of 1, it indicates that the sensing unit senses light, and if the sensing value is a second value of 0, it indicates that the sensing unit does not sense light, and at this time, the size of the sensing area may be determined based on the size of the sensing unit whose sensing value is the first value.
Step 205b, the electronic device determines the center of the sensing area based on the sensing area sizes of the plurality of sensing units.
The sensing area sizes of the sensing units may be analyzed to determine a center point of the sensing area.
In an embodiment of the present application, step 205b may be implemented by:
and determining the sensing unit with the largest sensing value among the sensing units as the sensing unit with the reference center of the sensing area, and determining the center of the sensing area based on the size of the sensing area of the sensing units and the reference center.
When determining the center of the sensing area, the sensing unit with the largest sensing value can be determined from the sensing units as the sensing unit corresponding to the reference center, that is, the reference center is in the sensing unit with the largest sensing value, and then the center of the sensing area can be determined from the sensing units based on the sensing area size of each sensing unit and the reference center. That is, the center position to be selected may be determined based on the sensing region size, and the center of the sensing region may be determined as the center of the sensing region from among the center positions to be selected.
Step 206, the electronic device uses the center point as the input position of the input light spot.
The input position and the position of the input light spot on the display screen overlap, that is, the position of the input light spot on the display screen is the position corresponding to the center point on the display screen, and the input position on the display screen is the position corresponding to the center point on the display screen.
Or alternatively;
The first difference between the input position and the position of the input light spot on the display screen is smaller than the second difference between the sensing position of the input light spot on the first sensing unit area and the position of the input light spot on the display screen, namely, the first difference is smaller than the second difference, so that the input position is closer to the position of the input light spot.
Step 207, the electronic device controls to display an input focus corresponding to the input light spot on the display screen based on the input position.
In other embodiments of the present application, when the transmitting device transmits infrared light not perpendicular to the display screen, the electronic device determines, based on the gravity sensor, a receiving angle at which the display screen receives the input light spot, and then may determine, based on a distance between the display screen and a layer where the sensing array is located and the receiving angle, an offset of the input light spot on the layer where the sensing array is located, and correct the input position based on the offset.
According to the processing method provided by the embodiment of the application, the input light spots input on the display screen are sensed through the plurality of sensing units comprising the second sensing unit area and the first sensing unit area corresponding to the input light spots one by one, the input focus of the input light spots on the display screen is determined according to the sensing information of the plurality of sensing units, and the condition that the sensing units are larger than the light spots is avoided, so that the problem that the position of the light spots on the display screen is inaccurate to the position alignment actually triggered in the scheme of triggering the electronic equipment through infrared light in the related art is solved.
Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, where the electronic device may be applied to the processing method provided in the embodiment corresponding to fig. 1 to 2, and referring to fig. 3, the electronic device 3 may include:
A display screen 31;
a photosensitive array 32 for obtaining sensed information;
The sensing information representing display screen comprises a sensing array, a sensing information representing display screen and a sensing information representing display screen, wherein sensing information representing display screen comprises sensing values of a plurality of sensing units which generate changes, the sensing units generating changes comprise a first sensing unit area and a second sensing unit area, the first sensing unit area corresponds to the input light spots one by one, and the second sensing unit area is adjacent to the first sensing unit area;
in one possible implementation, the display screen may be an organic light emitting semiconductor (Organic Electroluminescence Display, OLED) display screen.
A processor 33 (not shown in fig. 3 and 5) for determining an input position of the input spot on the display screen based on the sensed information, and controlling the display of an input focus corresponding to the input spot on the display screen based on the input position.
In other embodiments of the present application, referring to fig. 5, the electronic device further includes:
An optical scattering layer 34 for projecting the input light spot onto the sensing array to form a scattered light spot;
The sensing area on the sensing array corresponding to the scattering light spot comprises a first sensing unit area and a second sensing unit area.
It should be noted that, as shown in fig. 5, the optical scattering layer 34 may be disposed between the display screen 31 and the layer where the sensor array 32 is located, and the sensor array may include a photoresistor matrix. In one possible implementation, the thickness of the optical scattering layer is 50-150um.
In other embodiments of the application, the processor is further configured to perform the steps of:
A center point of a sensing region characterized by the sensing information is determined,
The center point is taken as the input position of the input light spot.
It should be noted that the electronic device may further include a first adhesive layer and a second adhesive layer, where,
The first sticking layer is arranged between the display screen and the optical scattering layer and is used for sticking the display screen and the optical scattering layer together;
The second adhesion layer is arranged between the optical scattering layer and the light sensing device layer and used for adhering the optical scattering layer and the light sensing device layer together.
The electronic equipment provided by the embodiment of the application can comprise a display screen and an induction array, the input light spots input on the display screen can be inducted through a plurality of induction units in the induction array, wherein the induction units comprise a second induction unit area and a first induction unit area which is in one-to-one correspondence with the input light spots, and the input focus of the input light spots on the display screen is determined according to the induction information of the induction units, so that the condition that the induction units are larger than the light spots in size is avoided, and the problem that in the scheme of triggering the electronic equipment through infrared light, the position of the light spots on the display screen is inaccurate from the position of the actually triggered position is solved.
Based on the foregoing embodiments, embodiments of the present application provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement steps in the processing methods provided by the corresponding embodiments of fig. 1 and 2.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The computer readable storage medium may be a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable programmable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable programmable Read Only Memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory, EEPROM), a magnetic random access Memory (Ferromagnetic Random Access Memory, FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a compact disk Read Only Memory (Compact Disc Read-Only Memory, CD-ROM), or any electronic device including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, or the like.
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, apparatus, article, or device 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, apparatus, article, or device. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, apparatus, article or device comprising the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment device may be implemented by means of software plus a necessary general hardware platform, or may be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the described device of the various embodiments of the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of apparatus, devices (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.