[go: up one dir, main page]

CN110392294A - Human body detecting method, device, electronic equipment and storage medium - Google Patents

Human body detecting method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110392294A
CN110392294A CN201910586701.0A CN201910586701A CN110392294A CN 110392294 A CN110392294 A CN 110392294A CN 201910586701 A CN201910586701 A CN 201910586701A CN 110392294 A CN110392294 A CN 110392294A
Authority
CN
China
Prior art keywords
video frame
image
human body
reminding
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910586701.0A
Other languages
Chinese (zh)
Inventor
赵明喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Huami Information Technology Co Ltd
Original Assignee
Anhui Huami Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Huami Information Technology Co Ltd filed Critical Anhui Huami Information Technology Co Ltd
Priority to CN201910586701.0A priority Critical patent/CN110392294A/en
Publication of CN110392294A publication Critical patent/CN110392294A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a kind of human body detecting method, device, electronic equipment and computer readable storage medium, which comprises the video frame where display user;The display alarm image in the video frame;The prompting image is for reminding user to adjust position, so that the human body of the user is in the specified region in the video frame;The video frame is cut according to the specified region, obtains the human detection result of the user.The process of embodiment of the present disclosure realization quick obtaining human detection result.

Description

Human body detection method, human body detection device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of image processing, and in particular, to a human body detection method, apparatus, electronic device, and computer-readable storage medium.
Background
With the development of intelligent hardware, cameras are increasingly used as a tool for detecting and researching human bodies. In general, a camera has a large field of view (FOV), and an individual occupies only a small area in a video, and in order to improve the detection accuracy, the first step is to detect the position of a human body in a video frame, and then cut out an image containing the human body from the video frame according to the position of the human body, so as to analyze the image containing the human body; the above steps require large computing resources, and therefore, it is necessary to provide a human body detection method to reduce the computing overhead of human body detection positioning.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a human body detection method, apparatus, electronic device, and computer-readable storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a human body detection method, including:
displaying a video frame where a user is located;
displaying a reminder image on the video frame; the reminding image is used for reminding a user of adjusting the position so that the human body of the user is located in a designated area in the video frame;
and cutting the video frame according to the designated area to obtain the human body detection result of the user.
Optionally, the displaying the reminder image on the video frame includes:
the reminding image and the video frame are positioned in different view layers of the same display window, and the view layer corresponding to the reminding image is positioned on the upper layer of the view layer corresponding to the video frame for displaying; or
The reminding image and the video frame are in different display windows, and the display window of the reminding image is displayed on the upper layer of the display window of the video frame.
Optionally, the reminder image or a portion of the reminder image corresponds to the designated area.
Optionally, the reminding image corresponding to the designated area is a pure color image with preset transparency or an image with a closed graph formed by a line frame at the edge.
Optionally, a part of the reminder image corresponds to the designated area, and the reminder image corresponds to the video frame;
cutting the video frame according to the designated area to obtain a human body detection result of the user, including:
and determining a clipping position of the video frame according to a position range of a part of the reminding image corresponding to the designated area, and clipping the video frame based on the clipping position.
Optionally, the designated area corresponds to the reminder image;
cutting the video frame according to the designated area to obtain a human body detection result of the user, including:
and determining a cutting position of the video frame according to the display position of the reminding image, and cutting the video frame based on the cutting position.
Optionally, the number of the designated areas is one or more;
if the display size of the video frame is not larger than a preset threshold value, the number of the designated areas is one, and the area of the designated areas is larger than half of the area of the video frame;
if the display size of the video frame is larger than the preset threshold, the designated areas are multiple, and the area of each designated area is not smaller than the preset area threshold and not larger than the area of the video frame in the preset proportion. According to a second aspect of the embodiments of the present disclosure, there is provided a human body detecting apparatus including:
the video frame display unit is used for displaying the video frame of the user;
the reminding image display unit is used for displaying a reminding image on the video frame; the reminding image is used for reminding a user of adjusting the position so that the human body of the user is located in a designated area in the video frame;
and the human body detection result acquisition unit is used for cutting the video frame according to the designated area to acquire the human body detection result of the user.
Optionally, the reminder image display unit includes:
the reminding image and the video frame are positioned in different view layers of the same display window, and the view layer corresponding to the reminding image is positioned on the upper layer of the view layer corresponding to the video frame for displaying; or
The reminding image and the video frame are in different display windows, and the display window of the reminding image is displayed on the upper layer of the display window of the video frame.
Optionally, the reminder image or a portion of the reminder image corresponds to the designated area.
Optionally, the reminding image corresponding to the designated area is a pure color image with preset transparency or an image with a closed graph formed by a line frame at the edge.
Optionally, a part of the reminder image corresponds to the designated area, and the reminder image corresponds to the video frame;
the human detection result acquiring unit includes:
and determining a clipping position of the video frame according to a position range of a part of the reminding image corresponding to the designated area, and clipping the video frame based on the clipping position.
Optionally, the designated area corresponds to the reminder image;
the human detection result acquiring unit includes:
and determining a cutting position of the video frame according to the display position of the reminding image, and cutting the video frame based on the cutting position.
Optionally, the number of the designated areas is one or more;
if the display size of the video frame is not larger than a preset threshold value, the number of the designated areas is one, and the area of the designated areas is larger than half of the area of the video frame;
if the display size of the video frame is larger than the preset threshold, the designated areas are multiple, and the area of each designated area is not smaller than the preset area threshold and not larger than the area of the video frame in the preset proportion.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein,
the processor is configured to perform the operations of the method as described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program, which, when executed by one or more processors, causes the processors to perform the operations in the method as described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the method and the device, the video frame where the user is located is displayed, the reminding image is displayed on the video frame and used for reminding the user to adjust the position, so that the human body of the user is located in the designated area in the video frame, then the video frame can be cut according to the designated area, and the human body detection result of the user is obtained.
In the present disclosure, the reminding image corresponding to the designated area may be a solid image with a preset transparency or an image with a closed graph formed by a line frame at an edge, so that the designated area is different from the video frame to give a reminding effect to a user.
In the disclosure, a part of the reminding image corresponds to the designated area, and under the condition that the reminding image corresponds to the video frame, the cutting position of the video frame can be determined according to the position range of the part of the reminding image corresponding to the designated area, and the video frame is cut based on the cutting position, so that the human detection result can be obtained without a complex human detection positioning process, the speed of obtaining the human detection result is improved, and the accuracy of the human detection result is ensured.
In the disclosure, under the condition that the designated area corresponds to the reminding image, the cutting position of the video frame can be determined according to the display position of the reminding image, and the video frame is cut based on the cutting position, so that the human detection result can be obtained without a complex human detection positioning process, the speed of obtaining the human detection result is increased, and the accuracy of the human detection result is ensured.
In the present disclosure, the number of the designated areas may be one or more so that human body detection results corresponding to a plurality of users may be obtained.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a human detection method according to an exemplary embodiment of the present disclosure.
FIG. 2A is a display diagram illustrating a designated area according to an exemplary embodiment of the present disclosure.
FIG. 2B is a display diagram illustrating 3 designated regions of the present disclosure according to an exemplary embodiment.
Fig. 3 is a block diagram illustrating a structure of a human body detecting device according to an exemplary embodiment of the present disclosure.
FIG. 4 is an architectural diagram of an electronic device illustrating the present disclosure according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
With the development of intelligent hardware in the related art, cameras are increasingly used as a tool for detecting and researching human bodies. In general, a camera has a large field of view (FOV), and an individual occupies only a small area in a video, and in order to improve the detection accuracy, the first step is to detect the position of a human body in a video frame, and then cut out an image containing the human body from the video frame image according to the position of the human body, so as to analyze the image containing the human body; the above human body detection steps require certain computing resources, and if the computing resources provided by the device are insufficient, the time spent in the human body detection steps is increased, so that the program response is too slow, and the use experience of the user is seriously influenced for some scenes requiring quick response, such as an AR game.
Therefore, in order to solve the problems in the related art, embodiments of the present disclosure provide a human body detection method, which may be applied to an electronic device, where the electronic device is a computing device with video capturing, displaying and processing functions, such as a mobile phone, a computer, a smart tablet, a digital assistant, and a smart television, and for example, the electronic device may include a camera and a display screen, so as to capture and display a video.
Referring to fig. 1, fig. 1 is a flowchart illustrating a human body detection method according to an exemplary embodiment of the present disclosure, the method including:
in step S101, a video frame in which the user is located is displayed.
In step S102, a reminder image is displayed on the video frame; the reminding image is used for reminding a user of adjusting the position so that the human body of the user is located in the designated area in the video frame.
In step S103, the video frame is clipped according to the designated area, and a human body detection result of the user is obtained.
In this embodiment, based on the needs of the user, the electronic device may shoot the user through the camera, generate a corresponding video frame for subsequent processing, for example, in a virtual teaching scene or an AR game scene, the electronic device needs to shoot the user, and analyze the user's motion through the generated video frame, so as to determine whether the user's motion meets the requirements, after the electronic device shoots the user through the camera and generates the corresponding video frame, the video frame may be displayed on the display screen of the electronic device in real time, it needs to be noted that the frame is a single image frame of a minimum unit in the image animation, one frame is a static image, the continuous frame forms the animation, the video frame is an image, the continuous video frame is displayed on the display screen of the electronic device, that is, a video seen by naked eyes, then, the electronic device displays a reminding image on the video frame, wherein the reminding image is used for reminding a user to adjust the position so that the human body of the user is located in a designated area in the video frame, so that the user can adjust the position of the electronic device based on the reminding image in the shooting process, then the electronic device can cut the video frame according to the designated area to obtain the human body detection result (namely the image containing the human body) of the user, and it can be seen that the human body detection result can be obtained without a complex human body detection positioning process in the embodiment of the disclosure, so that the speed of obtaining the human body detection result is increased, the accuracy of the human body detection result is ensured by setting the reminding image, and the computation amount and complexity of video processing are reduced; it should be noted that the shooting angle of the camera is fixed, so as to avoid the change of the shooting angle of the camera, which makes the user need to frequently adjust the position of the user.
In practical application, the reminding image can be displayed on a video frame in various ways, for example, the reminding image and the video frame can be in different view layers of the same display window, and the view layer corresponding to the reminding image is positioned on the upper layer of the view layer corresponding to the video frame for displaying; or the reminding image and the video frame can be in different display windows, and the display window of the reminding image is displayed on the upper layer of the display window of the video frame; in practical application, other various implementation manners can be flexibly configured according to needs, and the embodiment of the disclosure does not limit the implementation manners.
In an embodiment, the reminder image or a part of the reminder image corresponds to the designated area, the reminder image corresponding to the designated area may be a solid-color image with a preset transparency, or an image with a closed graph formed by a line frame at an edge, or a combination of the two display manners, please refer to fig. 2A, the reminder image corresponding to the designated area is an image with a closed graph formed by a dashed line frame, in this embodiment, a user can adjust the position of the user based on the designated area, so as to ensure that the human body of the user is located in the designated area in the video frame; if a part of the reminder image corresponds to the designated area, and a part of the reminder image corresponding to the designated area is a solid-color image with a preset transparency, the other part of the reminder image is different from the designated area, for example, the other part of the reminder image may be transparent, black, white, or the like.
In a possible implementation manner, if a part of the reminder image corresponds to the designated area and the reminder image corresponds to the video frame, the electronic device may determine a clipping position of the video frame according to a position range of the part of the reminder image corresponding to the designated area, clip the video frame based on the clipping position, and obtain a human body detection result.
In another possible implementation manner, if the designated area corresponds to the reminding image, the electronic device may determine a clipping position of the video frame according to a display position of the reminding image on the display screen, and clip the video frame based on the clipping position to obtain a human body detection result; it should be noted that, if the video frame is not displayed on the display screen in a full screen manner, the display position of the video frame on the display screen needs to be determined, so that the relative position between the reminding image and the video frame is determined according to the display position of the reminding image on the display screen and the display position of the video frame on the display screen, so as to determine the clipping position of the video frame, and the video frame is clipped based on the clipping position to obtain a human body detection result.
It is understood that the specific position of the designated area in the video frame is not limited in any way, and may be specifically set according to the actual situation.
In a possible implementation manner, for example, a device such as a mobile phone having a small display screen, where the display size of the video frame is small when the video frame is displayed, and if the number of the designated areas is too large or the area is too small, the human body of the user may not be completely located in the designated area in the video frame, and the accuracy of the human body detection result is reduced, based on the above situation, the electronic device may be configured to: if the display size of the video frame is smaller than or equal to a preset threshold value, determining a designated area, wherein the area of the designated area is larger than half of the area of the video frame, so that the accuracy of the obtained human body detection result is ensured; the size of the threshold is specifically set according to the actual situation; for example, the area of the designated area is set to 80% of the area of the video frame.
In another case, for example, in a device having a large display screen, such as an intelligent motor, etc., when the video frame is displayed, the display size of the video frame is large, so that one or more designated areas may be set, and if the display size of the video frame is larger than the preset threshold and a designated area is set, the area of the designated area may be set larger than a preset area threshold, it can be understood that the size of the area threshold may be specifically set according to an actual situation, which is not limited in any way by the embodiment of the present disclosure; if the display size of the video frame is greater than the preset threshold and the number of the designated areas is multiple, the area of each designated area may be set to be not less than the preset area threshold and not greater than the area of the video frame at the preset ratio, that is, the minimum area of each designated area may be the preset area threshold, and the maximum area may be the area of the video frame at the preset ratio.
In addition, the preset area threshold is set in this embodiment, so as to ensure that each image cut from the video frame based on the designated area includes a complete human body, that is, when the area of the designated area is greater than the preset area threshold, the number of the designated areas has a certain limit range, the number of the designated areas is related to the display size of the video frame, and the display size of the video frame is related to the display size of the display screen of the electronic device, for example, please refer to fig. 2B, which is a scene with 3 designated areas, where the position of the designated area is not limited in this embodiment, and may be displayed side by side after being preset, or may be determined based on the selection of the user; the areas of all the designated areas can be set to be the same or different, and can be specifically set according to actual conditions; it can be seen that the size and the number of the designated areas are determined based on the display size of the video frame, and on the premise that the image cut from the video frame based on the designated areas contains a complete human body, multiple human body detection results can be obtained as much as possible, so that the method and the device are suitable for a scene in which multiple people participate, and are beneficial to improving the use experience of a user.
The electronic device may determine one or more designated areas according to a selection of a user within a range of the designated areas satisfying a maximum number of settable display sizes of the video frames, where the designated areas correspond to the reminder images or a part of the reminder images, so that the reminder images corresponding to the designated areas are displayed on the video frames in a display process.
In one implementation, if the designated area corresponds to a part of the reminder image and a plurality of designated areas are determined according to selection requirements of a user, a plurality of parts can be designated on the reminder image to correspond to the plurality of designated areas respectively; in another implementation manner, if the designated area corresponds to the reminder image and the designated areas are determined according to the selection requirements of the user, the plurality of reminder images may be set to correspond to the designated areas, and each user may adjust the position based on the reminder image to enable the human body of the user to be located in the designated area in the video frame, so that a plurality of human body detection results may be obtained quickly, and the method is suitable for a scene in which multiple people participate, and is beneficial to improving the user experience of the user.
In another example, since the body types of people are not completely consistent, the electronic device may further determine the size of the designated area based on a body parameter of the user, where the body parameter may be one or more of height, arm length, and full leg length, and the body parameter may be acquired from an associated device or input by the user in advance, so as to acquire the designated area adapted to the user, avoid that the designated area set in a unified manner is too large so that the cut image including the human body relates to the content of many unrelated human bodies, and thus, the amount of calculation is reduced.
Corresponding to the embodiment of the human body detection method, the disclosure also provides an embodiment of the human body detection device and an electronic device applied by the human body detection device.
As shown in fig. 3, fig. 3 is a block diagram of a human body detection apparatus according to an exemplary embodiment of the present disclosure, the apparatus including:
and a video frame display unit 31 for displaying the video frame of the user.
A reminder image display unit 32 for displaying a reminder image on the video frame; the reminding image is used for reminding a user of adjusting the position so that the human body of the user is located in the designated area in the video frame.
And the human body detection result acquisition unit 33 is configured to crop the video frame according to the designated area, and acquire a human body detection result of the user.
Optionally, the reminder image display unit 32 includes:
the reminding image and the video frame are positioned in different view layers of the same display window, and the view layer corresponding to the reminding image is positioned on the upper layer of the view layer corresponding to the video frame for displaying; or
The reminding image and the video frame are in different display windows, and the display window of the reminding image is displayed on the upper layer of the display window of the video frame.
Optionally, the reminder image or a portion of the reminder image corresponds to the designated area.
Optionally, the reminding image corresponding to the designated area is a pure color image with preset transparency or an image with a closed graph formed by a line frame at the edge.
Optionally, a portion of the reminder image corresponds to the designated area, and the reminder image corresponds to the video frame.
The human detection result acquiring unit 33 includes:
and determining a clipping position of the video frame according to a position range of a part of the reminding image corresponding to the designated area, and clipping the video frame based on the clipping position.
Optionally, the designated area corresponds to the reminder image.
The human detection result acquiring unit 33 includes:
and determining a cutting position of the video frame according to the display position of the reminding image, and cutting the video frame based on the cutting position.
Optionally, the number of the designated areas is one or more.
If the display size of the video frame is not larger than a preset threshold value, the number of the designated areas is one, and the area of the designated areas is larger than half of the area of the video frame.
If the display size of the video frame is larger than the preset threshold, the designated areas are multiple, and the area of each designated area is not smaller than the preset area threshold and not larger than the area of the video frame in the preset proportion.
The implementation processes of the functions and actions of the modules in the human body detection device are specifically described in the implementation processes of the corresponding steps in the human body detection method, and are not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, the present disclosure also provides an electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein,
the processor is configured to perform the operations in the human detection method as described above.
Fig. 4 is a schematic structural diagram of an electronic device to which a human body detection apparatus is applied according to an exemplary embodiment.
As shown in fig. 4, according to an exemplary embodiment, an electronic device 400 is shown, where the electronic device 400 may be a computing device with video capturing, displaying and processing functions, such as a mobile phone, a computer, a smart tablet, a digital assistant, a smart tv, and the like.
Referring to fig. 4, electronic device 400 may include one or more of the following components: processing components 401, memory 402, power components 403, multimedia components 404, audio components 405, input/output (I/O) interfaces 406, sensor components 407, and communication components 408.
The processing component 401 generally controls overall operation of the device 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 401 may include one or more processors 409 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 401 may include one or more modules that facilitate interaction between processing component 401 and other components. For example, the processing component 401 may include a multimedia module to facilitate interaction between the multimedia component 404 and the processing component 401.
The memory 402 is configured to store various types of data to support operations at the electronic device 400. Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 402 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 403 provide power to the various components of electronic device 400. Power components 403 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 400.
The multimedia component 404 includes a screen providing an output interface between the electronic device 400 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 404 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 400 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 405 is configured to output and/or input audio signals. For example, the audio component 405 may include a Microphone (MIC) configured to receive external audio signals when the electronic device 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 402 or transmitted via the communication component 404. In some embodiments, audio component 405 also includes a speaker for outputting audio signals.
The I/O interface 402 provides an interface between the processing component 401 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 407 includes one or more sensors for providing various aspects of status assessment for the electronic device 400. For example, the sensor component 407 may detect an open/closed state of the electronic device 400, the relative positioning of components, such as a display and keypad of the electronic device 400, the sensor component 407 may also detect a change in position of the electronic device 400 or a component of the electronic device 400, the presence or absence of user contact with the electronic device 400, orientation or acceleration/deceleration of the electronic device 400, and a change in temperature of the electronic device 400. The sensor assembly 407 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 407 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 407 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a heart rate signal sensor, an electrocardiogram sensor, a fingerprint sensor, or a temperature sensor.
The communication component 408 is configured to facilitate wired or wireless communication between the electronic device 400 and other devices. The electronic device 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 404 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 408 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 402 comprising instructions, executable by the processor 409 of the electronic device 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein the instructions in the storage medium, when executed by the processor 409, enable the apparatus 400 to perform the aforementioned human detection method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (16)

1. A human detection method, comprising:
displaying a video frame where a user is located;
displaying a reminder image on the video frame; the reminding image is used for reminding a user of adjusting the position so that the human body of the user is located in a designated area in the video frame;
and cutting the video frame according to the designated area to obtain the human body detection result of the user.
2. The human body detection method according to claim 1, wherein the displaying of the reminder image on the video frame comprises:
the reminding image and the video frame are positioned in different view layers of the same display window, and the view layer corresponding to the reminding image is positioned on the upper layer of the view layer corresponding to the video frame for displaying; or
The reminding image and the video frame are in different display windows, and the display window of the reminding image is displayed on the upper layer of the display window of the video frame.
3. The human body detection method according to claim 1,
the reminder image or a portion of the reminder image corresponds to the designated area.
4. The human body detection method according to claim 3,
the reminding image corresponding to the designated area is a pure color image with preset transparency or an image with a closed graph formed by line frames at the edge.
5. The human body detection method according to claim 1, wherein a part of the reminder image corresponds to the designated area, and the reminder image corresponds to the video frame;
cutting the video frame according to the designated area to obtain a human body detection result of the user, including:
and determining a clipping position of the video frame according to a position range of a part of the reminding image corresponding to the designated area, and clipping the video frame based on the clipping position.
6. The human detection method according to claim 1, wherein the designated area corresponds to the reminder image;
cutting the video frame according to the designated area to obtain a human body detection result of the user, including:
and determining a cutting position of the video frame according to the display position of the reminding image, and cutting the video frame based on the cutting position.
7. The human body detection method according to claim 3, wherein the number of the designated areas is one or more;
if the display size of the video frame is not larger than a preset threshold value, the number of the designated areas is one, and the area of the designated areas is larger than half of the area of the video frame;
if the display size of the video frame is larger than the preset threshold, the designated areas are multiple, and the area of each designated area is not smaller than the preset area threshold and not larger than the area of the video frame in the preset proportion.
8. A human body detecting device, comprising:
the video frame display unit is used for displaying the video frame of the user;
the reminding image display unit is used for displaying a reminding image on the video frame; the reminding image is used for reminding a user of adjusting the position so that the human body of the user is located in a designated area in the video frame;
and the human body detection result acquisition unit is used for cutting the video frame according to the designated area to acquire the human body detection result of the user.
9. The human body detecting device according to claim 8, wherein the warning image display unit includes:
the reminding image and the video frame are positioned in different view layers of the same display window, and the view layer corresponding to the reminding image is positioned on the upper layer of the view layer corresponding to the video frame for displaying; or
The reminding image and the video frame are in different display windows, and the display window of the reminding image is displayed on the upper layer of the display window of the video frame.
10. The human detection device according to claim 8, wherein the reminder image or a part of the reminder image corresponds to the designated area.
11. The human body detection device according to claim 10, wherein the reminder image corresponding to the designated area is a solid image with a preset transparency or an image with a closed figure composed of a line frame at the edge.
12. The human body detection device according to claim 8, wherein a part of the reminder image corresponds to the designated area, and the reminder image corresponds to the video frame;
the human detection result acquiring unit includes:
and determining a clipping position of the video frame according to a position range of a part of the reminding image corresponding to the designated area, and clipping the video frame based on the clipping position.
13. The human body detecting device according to claim 8, wherein the designated area corresponds to the reminder image;
the human detection result acquiring unit includes:
and determining a cutting position of the video frame according to the display position of the reminding image, and cutting the video frame based on the cutting position.
14. The human body detecting device according to claim 10, wherein the number of the designated areas is one or more;
if the display size of the video frame is not larger than a preset threshold value, the number of the designated areas is one, and the area of the designated areas is larger than half of the area of the video frame;
if the display size of the video frame is larger than the preset threshold, the designated areas are multiple, and the area of each designated area is not smaller than the preset area threshold and not larger than the area of the video frame in the preset proportion.
15. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein,
the processor configured to perform the human detection method of any of the above claims 1 to 7.
16. A computer-readable storage medium, having stored thereon a computer program which, when executed by one or more processors, causes the processors to perform the human detection method of any one of claims 1 to 7.
CN201910586701.0A 2019-07-01 2019-07-01 Human body detecting method, device, electronic equipment and storage medium Pending CN110392294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910586701.0A CN110392294A (en) 2019-07-01 2019-07-01 Human body detecting method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910586701.0A CN110392294A (en) 2019-07-01 2019-07-01 Human body detecting method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110392294A true CN110392294A (en) 2019-10-29

Family

ID=68286041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910586701.0A Pending CN110392294A (en) 2019-07-01 2019-07-01 Human body detecting method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110392294A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111768422A (en) * 2020-01-16 2020-10-13 北京沃东天骏信息技术有限公司 Edge detection processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040028397A1 (en) * 2002-06-03 2004-02-12 Koji Maekawa Photographing and printing device, printing paper unit, method for controlling the photographing and printing device, control program of the photographing and printing device, and computer-readable recording medium storing the same therein
CN101184165A (en) * 2006-11-14 2008-05-21 株式会社万代南梦宫游戏 Program, information storage carrier, photo printing device and photo printing method
CN107257438A (en) * 2017-07-10 2017-10-17 广东欧珀移动通信有限公司 Photographing reminder method, device, terminal and computer storage medium
CN108038891A (en) * 2017-12-28 2018-05-15 福建中金在线信息科技有限公司 A kind of graphic processing method and device
CN109791702A (en) * 2016-09-23 2019-05-21 苹果公司 Head portrait creation and editor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040028397A1 (en) * 2002-06-03 2004-02-12 Koji Maekawa Photographing and printing device, printing paper unit, method for controlling the photographing and printing device, control program of the photographing and printing device, and computer-readable recording medium storing the same therein
CN101184165A (en) * 2006-11-14 2008-05-21 株式会社万代南梦宫游戏 Program, information storage carrier, photo printing device and photo printing method
CN109791702A (en) * 2016-09-23 2019-05-21 苹果公司 Head portrait creation and editor
CN107257438A (en) * 2017-07-10 2017-10-17 广东欧珀移动通信有限公司 Photographing reminder method, device, terminal and computer storage medium
CN108038891A (en) * 2017-12-28 2018-05-15 福建中金在线信息科技有限公司 A kind of graphic processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111768422A (en) * 2020-01-16 2020-10-13 北京沃东天骏信息技术有限公司 Edge detection processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US9674395B2 (en) Methods and apparatuses for generating photograph
US10284773B2 (en) Method and apparatus for preventing photograph from being shielded
CN105430262B (en) Filming control method and device
EP3182716A1 (en) Method and device for video display
EP3173970A1 (en) Image processing method and apparatus
EP3163411A1 (en) Method, device and apparatus for application switching
CN104156915A (en) Skin color adjusting method and device
CN106534951B (en) Video segmentation method and device
EP3113071A1 (en) Method and device for acquiring iris image
US11252341B2 (en) Method and device for shooting image, and storage medium
CN106469446B (en) Depth image segmentation method and segmentation device
CN108154090B (en) Face recognition method and device
CN114185444B (en) Touch screen error touch prevention method, device and storage medium
CN113315903B (en) Image acquisition method and device, electronic equipment and storage medium
CN111462284B (en) Animation generation method, animation generation device and electronic equipment
CN109255839B (en) Scene adjustment method and device
CN110392294A (en) Human body detecting method, device, electronic equipment and storage medium
EP3945717A1 (en) Take-off capture method and electronic device, and storage medium
CN118214950A (en) Image stitching method, device and storage medium
CN115914721A (en) Live broadcast picture processing method and device, electronic equipment and storage medium
CN110312117B (en) Data refreshing method and device
CN103973883A (en) Method and device for controlling voice input device
CN113551768B (en) Method and device for determining ambient brightness
CN115118950B (en) Image processing method and device
CN110865720A (en) Human body posture reminding method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191029

RJ01 Rejection of invention patent application after publication