Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 2 is a flowchart of a method for identifying attribute information according to an embodiment of the present invention, where the embodiment is applicable to identifying attribute information of an obstacle in a detection area, and particularly may be used to identify a scene of attribute information of a user located in front of a display screen. The method may be performed by attribute information identifying means, which may be implemented in software and/or hardware, integrated in a terminal device requiring identification of attribute information. The method specifically comprises the following steps:
s110, acquiring a first terahertz signal received by a terahertz receiver, wherein the first terahertz signal is obtained by reflecting a second terahertz signal transmitted to a target detection area through a terahertz transmitter through an obstacle in the target detection area.
Terahertz is an electromagnetic wave between infrared and microwave. Because of the high frequency and short terahertz wave, the device has strong penetrability to solid objects such as walls and the like, and has extremely high recognition rate to fine edges and corners. In addition, the terahertz is easy to be absorbed by polar molecules, so that high-intensity terahertz radiation can only reach the skin surface layer of a human body and cannot penetrate the human body, and therefore the human body can be imaged more clearly and health problems cannot be caused. The target detection area may refer to an area for detecting attribute information, which may be preset according to preset scene requirements and parameters of the terahertz transmitter. For example, a front area of the display screen may be taken as a target detection area so that attribute information of an obstacle located in front of the display screen may be detected. The terahertz transmitter refers to a device for transmitting a second terahertz signal. The terahertz receiver refers to a device for receiving a first terahertz signal reflected back by an obstacle in a target detection area. Illustratively, the terahertz transmitter may radiate a detection area in a range of about 20 meters based on the set intensity of the second terahertz signal. The obstacle in this embodiment may refer to a human body and/or any object located within the target detection zone.
It should be noted that, because terahertz can penetrate nonpolar objects such as wall body to can avoid using the camera lens, hide terahertz transmitter and terahertz receiver at the panel back, make the user can not find, consequently can avoid causing user's dislike emotion.
Specifically, the terahertz transmitter may transmit a second terahertz signal to the target detection area, the second terahertz signal may diffuse in the target detection area, the second terahertz signal may be reflected after contacting an obstacle in the target detection area, and the terahertz receiver may receive the first terahertz signal obtained after reflection. Fig. 3 shows an example in which a terahertz transmitter transmits a second terahertz signal. Both the terahertz transmitter (shown as a dashed circle) and the terahertz receiver in fig. 3 can be mounted hidden from view on the top of the display screen. The second terahertz signal emitted by the terahertz emitter is reflected by a human body in the target detection area, so that the terahertz receiver can receive the reflected first terahertz signal. The terahertz receiver can send the first terahertz signal received in real time to the attribute information identifying device, so that the attribute information identifying device can obtain the first terahertz signal received by the terahertz receiver in real time.
S120, constructing an image of the obstacle according to the first terahertz signal, and identifying attribute information of the obstacle according to the image.
The attribute information of the obstacle may refer to information specific to the obstacle, for example, when the obstacle is a human body, the attribute information may be, but is not limited to, an age level and a sex. One or more obstacles may exist in the target detection area in this embodiment at the same time, so that the constructed image may contain information of one or more obstacles.
Specifically, information such as distance, shape and material of the obstacle can be determined according to the obtained first terahertz signal, so that an image of the obstacle is constructed. Because the transmission reduction of the terahertz in the air is relatively small, even if influence factors such as fog exist in the environment, the imaging result cannot be greatly deviated, and the boundaries of the characters and the background cannot be too many magazines, so that the shadow degree can be reduced by using the terahertz indirect imaging mode, and the image with higher picture quality is obtained. Compared with the method that a camera is used for directly capturing pictures, the first terahertz signal received by the terahertz receiver is digital information, and scene pictures cannot be directly presented, so that the privacy of a user can be protected, and meanwhile the possibility of being hacked to remotely monitor can be reduced. The terahertz receiver in this embodiment can receive the first terahertz signal in real time, so that a corresponding image can be constructed according to the first terahertz signal received each time, and a multi-frame image can be obtained. The embodiment can process each constructed frame of image and identify attribute information of the obstacle.
According to the technical scheme, the terahertz transmitter transmits the second terahertz signal to the target detection area, the second terahertz signal is reflected by the obstacle in the target detection area, and the terahertz receiver receives the first terahertz signal obtained after reflection, so that an image of the obstacle can be constructed according to the first terahertz signal, and attribute information of the obstacle can be identified according to the image. Because terahertz can penetrate through nonpolar objects such as walls, no radiation is generated to human bodies, and the identification rate of fine edges and corners is high, a user can not perceive the existence of a terahertz receiver and a terahertz receiver in an image indirectly obtaining mode by utilizing the terahertz transmitter and the terahertz receiver, the user is prevented from being inspired to feel the emotion, the imaging quality can be ensured, and the accuracy of attribute information identification is improved.
On the basis of the above technical solution, the "constructing an image of an obstacle according to the first terahertz signal" in S120 may include: determining a distance between the obstacle and the terahertz receiver according to the receiving time of the first terahertz signal; an image of the obstacle is determined from the signal strength and the distance of the first terahertz signal.
In this embodiment, the reflection and absorption conditions of the second terahertz signal by the obstacles made of different materials are different, so that different obstacles can be distinguished according to the signal strength of the reflected first terahertz signal.
Specifically, the present embodiment may determine a time interval based on the reception time of the first terahertz signal and the transmission time of the second terahertz signal, and calculate the distance between each obstacle and the terahertz receiver based on the time interval and the propagation speed. The spatial position of each obstacle can be constructed based on the calculated distance, and different obstacles and structures at the same spatial position can be identified according to the signal intensity of the first terahertz signal, so that an image of the simulated obstacle can be formed.
Illustratively, determining the image of the obstacle according to the signal strength and the distance of the first terahertz signal may include: determining a color mark corresponding to each pixel point of the obstacle according to the signal intensity and the distance of the first terahertz signal; and drawing each color mark at a corresponding pixel point to generate an image of the obstacle.
Wherein the color identification may refer to, but is not limited to, RGB (Red, green, blue) information so that different distances and signal strengths may be distinguished using the color identification. Specifically, in this embodiment, according to a preset correspondence between signal intensity and color identifier at each distance, and a distance corresponding to each pixel point and a signal intensity of a first terahertz signal, a color identifier corresponding to each pixel point is determined, and each color identifier is drawn at a corresponding pixel point, so that a corresponding color identifier can be displayed at each pixel point, so that subsequent image recognition processing is facilitated. The image generated in this embodiment resembles the effect of a night vision device and thermodynamic diagram.
On the basis of the above technical solution, the "attribute information for identifying an obstacle from an image" in S120 may include: when the target obstacle in the moving state exists in the target detection area according to the image of the obstacle, acquiring a target image corresponding to the target obstacle; and determining the structure information of the target obstacle according to the target image, and determining the attribute information of the target obstacle according to the structure information.
Wherein the target obstacle may be, but is not limited to, a human body so that attribute information of the human body in the target detection area may be recognized. The number of target obstacles may be one or more. Specifically, in this embodiment, whether an obstacle in a moving state exists in the target detection area may be determined by comparing the content in each frame of image, if yes, matching is performed according to standard structural information of the target obstacle, and whether the obstacle in the moving state is the target obstacle is determined; or firstly, matching according to the standard structure information of the target obstacle, and determining whether the target obstacle exists in the target detection area, if so, determining whether the target obstacle is in a moving state according to the multi-frame target image corresponding to the target obstacle. When the target obstacle in the moving state is detected, tracking and image recognition can be performed on the target obstacle, actual structure information of the target obstacle is determined, and attribute information corresponding to the actual structure information is determined based on the corresponding relation between each structure and the attribute.
For example, when the target obstacle is a human body, whether or not there is a detectable pedestrian in the image may be determined based on the structure of the head, upper body, and leg in the human body based on the machine learning model, so as to avoid misrecognition due to the presence of a mannequin or the like. When detecting that a pedestrian exists in the target detection area, the multi-frame images of the pedestrian intercepted at different positions can be uniformly stretched into uniform sizes, so that the calculated amount is reduced, and the recognition efficiency is improved. Each frame of image can be layered from top to bottom, and structural information of the human body, such as hairstyle, facial contour, smoothness of shoulders, ratio of chest contour and shoulders, ratio of crotch to upper body, and the like, of the human body can be determined one by one. The present embodiment can determine the number of target obstacles based on the number of heads in the target detection area.
Illustratively, determining the attribute information of the target obstacle according to the structure information may include: determining the sex of the target obstacle according to the physical characteristic information in the structural information; and determining the age level of the target obstacle according to the face contour information in the structure information.
Wherein the body characteristic information may be, but is not limited to, chest information and crotch information. Facial contour information may include, but is not limited to, facial fold levels. Age ratings can be three ratings: young, middle-aged and elderly. Specifically, if the chest height of the target obstacle is greater than the preset height and the pubic width is greater than the preset width, the target obstacle may be determined to be female, otherwise the target obstacle may be determined to be male. If the facial fold degree of the target obstacle is smaller than or equal to a first preset value, determining that the target obstacle is a young person; if the facial fold degree of the target obstacle is greater than the first preset value and less than or equal to the second preset value, determining that the target obstacle is a middle-aged person; if the degree of facial wrinkles of the target obstacle is greater than the second preset value, the target obstacle can be determined to be an elderly person. The embodiment can also determine the age based on the hairstyle, shape and facial contour information of the target obstacle, so as to obtain more accurate age and improve recognition accuracy.
Example two
Fig. 4 is a flowchart of a method for identifying attribute information according to a second embodiment of the present invention, where, based on attribute information of an obstacle, content matching the attribute information is determined and displayed on a display screen. Wherein the same or corresponding terms as those of the above-described embodiments are not explained in detail herein.
Referring to fig. 4, the attribute information identifying method provided in the present embodiment specifically includes the following steps:
S210, acquiring a first terahertz signal received by a terahertz receiver, wherein the first terahertz signal is obtained by reflecting a second terahertz signal transmitted to a target detection area through a terahertz transmitter through an obstacle in the target detection area.
S220, constructing an image of the obstacle according to the first terahertz signal, and identifying attribute information of the obstacle according to the image.
And S230, the attribute information is sent to the background server, so that the background server determines the content to be displayed based on the attribute information.
The content to be displayed may refer to picture information and/or video information of the object to be displayed.
Specifically, the terminal device for identifying attribute information in this embodiment may be connected to the background server through a network, for example, through WIFI connection or ethernet connection, and after networking, the identified attribute information may be transmitted to the background server. The background server can determine the content to be displayed, which is matched with the attribute content, based on a pre-configured pushing mode. For example, when there are a plurality of human bodies in the target detection area, the number of men and women in the target detection area may be determined based on the identified attribute information, and when the number of men is large, the item information having men as a guest group may be used as the content to be displayed, such as beer, shaver, car, and the like. If the number of women is large, the article information with women as the guest group can be used as the content to be displayed, such as related article information of cosmetic, food and the like. If a user is closer to the terahertz receiver, the intensity of a second terahertz signal received by the user is higher, and the intensity of a first terahertz signal reflected back is also higher, so that the imaging quality is also higher, and the content to be displayed matched with the user can be determined according to the attribute information of the user closest to the terahertz receiver, thereby improving the pushing value.
S240, receiving the content to be displayed sent by the background server, and displaying the content to be displayed in the display screen.
Specifically, when receiving the content to be displayed sent by the background server, the display screen can be controlled to display the content to be displayed based on a preset display mode, so that personalized pushing of the user is realized, the user is prevented from being inspired, and the pushing effect is improved.
According to the technical scheme, the identified attribute information is sent to the background server, and when the content to be displayed, which is matched with the attribute information and sent by the background server, is received, the content is displayed on the display screen, so that personalized pushing of a user is realized, the time that the user stays in front of the display screen can be prolonged, and the pushing effect is improved.
The following is an embodiment of an attribute information identifying apparatus provided in an embodiment of the present invention, which is the same as the attribute information identifying method of each of the above embodiments, and reference may be made to the embodiment of the above attribute information identifying method for details which are not described in detail in the embodiment of the attribute information identifying apparatus.
Example III
Fig. 5 is a schematic structural diagram of an attribute information identifying apparatus according to a third embodiment of the present invention, where the embodiment is applicable to identifying attribute information of an obstacle in a detection area, and the apparatus specifically includes: a first terahertz signal acquisition module 310 and an attribute information identification module 320.
A first terahertz signal acquisition module 310 for acquiring a first terahertz signal received by a terahertz receiver, where the first terahertz signal is obtained by reflection of a second terahertz signal emitted to a target detection area by a terahertz transmitter through an obstacle in the target detection area; the attribute information identifying module 320 is configured to construct an image of the obstacle according to the first terahertz signal, and identify attribute information of the obstacle according to the image.
Optionally, the attribute information identifying module 320 includes:
a distance determining unit for determining a distance between the obstacle and the terahertz receiver according to a reception time of the first terahertz signal;
And the image determining unit is used for determining an image of the obstacle according to the signal intensity and the distance of the first terahertz signal.
Optionally, the image determining unit is specifically configured to: determining a color mark corresponding to each pixel point of the obstacle according to the signal intensity and the distance of the first terahertz signal; and drawing each color mark at a corresponding pixel point to generate an image of the obstacle.
Optionally, the attribute information identifying module 320 further includes:
a target image acquisition unit, configured to acquire a target image corresponding to a target obstacle when it is determined that the target obstacle in a moving state exists in the target detection area according to the image of the obstacle;
And the attribute information determining unit is used for determining the structure information of the target obstacle according to the target image and determining the attribute information of the target obstacle according to the structure information.
Optionally, the attribute information determining unit is specifically configured to: determining the sex of the target obstacle according to the physical characteristic information in the structural information; and determining the age level of the target obstacle according to the face contour information in the structure information.
Optionally, the apparatus further comprises:
The attribute information sending module is used for sending the attribute information to the background server after the attribute information of the obstacle is identified according to the image, so that the background server determines the content to be displayed based on the attribute information;
the content to be displayed display module is used for receiving the content to be displayed sent by the background server and displaying the content to be displayed in the display screen.
The attribute information identification device provided by the embodiment of the invention can execute the attribute information identification method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the attribute information identification method.
Example IV
Fig. 6 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present invention. Referring to fig. 6, the terminal device includes: a terahertz transmitter 410, a terahertz receiver 420, a processor 430, a memory 440, and a display screen 450. Wherein,
A terahertz transmitter 410 for transmitting a second terahertz signal to the target detection area;
the terahertz receiver 420 is connected to the processor 430 for receiving the first terahertz signal obtained by reflection of the second terahertz signal by an obstacle in the target detection area and transmitting the first terahertz signal into the digitizer 430.
A memory 440 for storing one or more programs;
when executed by the processor 430, causes the processor 430 to implement the attribute information identification method steps as provided by any embodiment of the present invention. The processor 430 may employ an I7 core X86 processing system to have low power and high computational power.
A display screen 450 for displaying content matching the attribute information.
In the present embodiment, the terahertz transmitter 410 and the terahertz receiver 420 are placed at a preset interval behind the top panel of the display screen 450 to hide the terahertz transmitter 410 and the terahertz receiver 420 so that the user does not perceive the presence of the terahertz transmitter 410 and the terahertz receiver 420, thereby making it possible to avoid causing an objectionable emotion to the user. And by arranging the terahertz transmitter 410 and the terahertz receiver 420 at intervals, terahertz signals can be transmitted singly, so that signal influence is avoided, and the composition quality is improved.
One processor 430 is illustrated in fig. 6; the processor 430 and the memory 440 in the terminal device may be connected by a bus or other means, for example in fig. 6.
The memory 440 serves as a computer-readable storage medium, and may be used to store a software program, a computer-executable program, and modules, such as program instructions/modules (e.g., the first terahertz signal acquisition module 310 and the attribute information identification module 320 in the attribute information identifying apparatus) corresponding to the attribute information identifying method in the embodiment of the present invention. The processor 430 executes various functional applications of the terminal device and data processing, i.e., implements the above-described attribute information identification method, by running software programs, instructions, and modules stored in the memory 440.
The memory 440 mainly includes a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal device, etc. In addition, memory 440 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 440 may further include memory remotely located relative to processor 430, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The terminal device in this embodiment may further include:
the network module is used for the external network connection of the terminal equipment, can support the connection of two modes of WIFI connection and Ethernet, and can send the attribute information to the background server through the network after networking.
The power module is used for providing power for the terminal equipment, and the external power supply interface can be a Direct Current (DC) interface or a power over Ethernet (Power Over Ethernet, active Ethernet) interface.
The terminal device according to the present embodiment and the attribute information identifying method according to the foregoing embodiment belong to the same inventive concept, and technical details not described in detail in the present embodiment can be seen in the foregoing embodiment, and the present embodiment has the same advantages as those of executing the attribute information identifying method.
Example five
A fifth embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the attribute information identifying method steps as provided by any embodiment of the present invention, the method comprising:
Acquiring a first terahertz signal received by a terahertz receiver, wherein the first terahertz signal is obtained by reflecting a second terahertz signal transmitted to a target detection area by a terahertz transmitter through an obstacle in the target detection area;
And constructing an image of the obstacle according to the first terahertz signal, and identifying attribute information of the obstacle according to the image.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.