CN114501747A - Hospital ward light intelligent control method, device, equipment and storage medium - Google Patents

Hospital ward light intelligent control method, device, equipment and storage medium Download PDF

Info

Publication number
CN114501747A
CN114501747A CN202210053253.XA CN202210053253A CN114501747A CN 114501747 A CN114501747 A CN 114501747A CN 202210053253 A CN202210053253 A CN 202210053253A CN 114501747 A CN114501747 A CN 114501747A
Authority
CN
China
Prior art keywords
light
ward
determining
portrait
images
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.)
Granted
Application number
CN202210053253.XA
Other languages
Chinese (zh)
Other versions
CN114501747B (en
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.)
Shenzhen Aoxin Technology Co ltd
Original Assignee
Shenzhen Aoxin 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 Shenzhen Aoxin Technology Co ltd filed Critical Shenzhen Aoxin Technology Co ltd
Priority to CN202210053253.XA priority Critical patent/CN114501747B/en
Publication of CN114501747A publication Critical patent/CN114501747A/en
Application granted granted Critical
Publication of CN114501747B publication Critical patent/CN114501747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/115Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
    • H05B47/125Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings by using cameras
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The invention discloses a hospital ward light intelligent control method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a plurality of continuous frame monitoring images of a target ward from a ward monitoring video stream, and performing portrait recognition on the plurality of continuous frame monitoring images through a preset portrait detection algorithm; determining the activity state of each human body in the target ward according to the portrait recognition result; acquiring a plurality of continuous frame environment images from an outdoor monitoring video stream, and extracting a plurality of regions of interest from the plurality of continuous frame environment images; selecting a plurality of sampling points in the region of interest, and determining the ambient light parameters of the current environment according to the plurality of sampling points; and determining a light adjusting parameter according to the activity state and the ambient light parameter, and controlling the intelligent lamp in the target ward to work according to the light adjusting parameter. The technical problem that the requirements of different personnel cannot be met due to constant light brightness is solved, intelligent control of ward light is achieved, and user experience is improved.

Description

Hospital ward light intelligent control method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a hospital ward light intelligent control method, device, equipment and storage medium.
Background
At present, the light in the hospital ward is the light of invariable luminance generally, can not adjust according to human state in the ward, if patient is at the rest, the luminance of light is too high can produce adverse effect to patient, if medical personnel inspect patient, light luminance is low excessively, then can influence medical personnel and normally work, consequently how to adjust light luminance according to the state of personnel in the ward becomes the technical problem who awaits the solution urgently.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a hospital ward light intelligent control method, a hospital ward light intelligent control device, equipment and a storage medium, and aims to solve the technical problem that light cannot be adjusted according to the state of personnel in a ward in the prior art.
In order to achieve the purpose, the invention provides an intelligent light control method for a hospital ward, which comprises the following steps:
acquiring a plurality of continuous frame monitoring images of a target ward from a ward monitoring video stream, and performing portrait recognition on the plurality of continuous frame monitoring images through a preset portrait detection algorithm;
determining the activity state of each human body in the target ward according to the image recognition result;
acquiring a plurality of continuous frame environment images from an outdoor monitoring video stream, and extracting a plurality of regions of interest from the plurality of continuous frame environment images;
selecting a plurality of sampling points in the region of interest, and determining the ambient light parameters of the current environment according to the plurality of sampling points;
and determining a light adjusting parameter according to the activity state and the ambient light parameter, and controlling the intelligent lamp in the target ward to work according to the light adjusting parameter.
Optionally, the determining the activity state of each human body in the target ward according to the result of the image recognition includes:
judging whether medical portrait characteristics exist in the plurality of continuous frame monitoring images according to the portrait recognition result;
when medical portrait characteristics exist in the continuous frame monitoring images, acquiring a plurality of image position information corresponding to the medical portrait characteristics in the continuous frame monitoring images;
determining the movement track of the medical staff to which the medical portrait features belong according to the position information of the plurality of images;
and determining the medical care activity state of the medical care personnel in the target ward to which the medical care portrait features belong according to the moving track.
Optionally, the determining, according to the plurality of pieces of image position information, a movement trajectory of a medical care person to which the medical care person portrait feature belongs includes:
acquiring shooting time corresponding to a plurality of continuous frame monitoring images, and generating a marking serial number according to the shooting time;
and adding a serial number for the corresponding image position information according to the marking serial number to obtain the moving track of the medical image feature.
Optionally, the active state includes a non-medical care active state, and after determining whether medical care portrait features exist in the consecutive frame monitoring images according to the portrait recognition result, the method further includes:
when medical portrait characteristics do not exist in the plurality of continuous frame monitoring images, determining non-medical portrait characteristics according to a portrait recognition result;
and determining the non-medical care activity state of the non-medical care personnel in the target ward according to the non-medical care portrait characteristics.
Optionally, the selecting a plurality of sampling points in the region of interest, and determining an ambient light parameter of a current environment according to the plurality of sampling points includes:
selecting N sampling points in the region of interest, and determining the RGB mean value of the N sampling points;
determining the color variance of each sampling point according to the RGB value and the RGB mean value of each sampling point;
when the color variance is larger than the preset variance, removing the corresponding sampling points to obtain a preselected sampling point set;
and determining the ambient light parameters of the current environment according to the RGB mean value of each preselected sampling point in the preselected sampling point set.
Optionally, the determining a lighting adjustment parameter according to the activity state and the ambient light parameter, and controlling the intelligent lamp in the target ward to operate according to the lighting adjustment parameter includes:
judging whether the activity state is a medical care activity state;
when the active state is a medical care active state, judging whether the corresponding medical care personnel enters the target ward according to the movement track;
when the medical staff enters the target ward, acquiring current lamplight adjusting parameters of the intelligent lamp;
and searching a target lamp light adjusting parameter corresponding to the medical staff in a preset mapping relation table, and adjusting the current lamp light adjusting parameter of the intelligent lamp to the target lamp light adjusting parameter.
Optionally, after determining whether the active state is a healthcare active state, the method further includes:
when the activity state is a non-medical care activity state, acquiring an ambient light parameter;
and determining the light adjusting parameters of the intelligent lamp according to the ambient light parameters, and controlling the intelligent lamp to work according to the light adjusting parameters.
In addition, in order to achieve the above object, the present invention further provides an intelligent light control device for hospital wards, comprising:
the identification module is used for acquiring a plurality of continuous frame monitoring images of a target ward from the ward monitoring video stream and identifying the images of the plurality of continuous frame monitoring images through a preset image detection algorithm;
the determining module is used for determining the activity state of each human body in the target ward according to the portrait recognition result;
the extraction module is used for acquiring a plurality of continuous frame environment images from the outdoor monitoring video stream and extracting a plurality of interested areas from the plurality of continuous frame environment images;
the sampling module is used for selecting a plurality of sampling points in the region of interest and determining the ambient light parameters of the current environment according to the plurality of sampling points;
and the control module is used for determining a light adjusting parameter according to the activity state and the ambient light parameter and controlling the intelligent lamp in the target ward to work according to the light adjusting parameter.
In addition, in order to achieve the above object, the present invention further provides an intelligent light control device for hospital wards, comprising: the intelligent control program is configured to realize the steps of the intelligent control method for the hospital ward light.
In addition, in order to achieve the above object, the present invention further provides a storage medium, where the storage medium stores an intelligent hospital ward lighting control program, and when the intelligent hospital ward lighting control program is executed by a processor, the steps of the intelligent hospital ward lighting control method are implemented.
The method comprises the steps of obtaining a plurality of continuous frame monitoring images of a target ward from a ward monitoring video stream, and carrying out portrait recognition on the continuous frame monitoring images through a preset portrait detection algorithm; determining the activity state of each human body in the target ward according to the image recognition result; acquiring a plurality of continuous frame environment images from an outdoor monitoring video stream, and extracting a plurality of regions of interest from the plurality of continuous frame environment images; selecting a plurality of sampling points in the region of interest, and determining the ambient light parameters of the current environment according to the plurality of sampling points; and determining a light adjusting parameter according to the activity state and the ambient light parameter, and controlling the intelligent lamp in the target ward to work according to the light adjusting parameter. The invention determines the activity state of the human body according to the recognition result of the monitoring image in the ward, determines the ambient light parameter according to the sampling point selected from the ambient image, determines the light adjusting parameter according to the activity state of the human body and the ambient light parameter, and controls the intelligent lamp in the ward to work, thereby solving the technical problem that the requirements of different personnel cannot be met due to constant light brightness, realizing the intelligent control of the ward light and improving the user experience.
Drawings
Fig. 1 is a schematic structural diagram of a hospital ward lighting intelligent control device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of the intelligent hospital ward lighting control method according to the present invention;
FIG. 3 is a schematic flow chart of a hospital ward lighting intelligent control method according to a second embodiment of the present invention;
fig. 4 is a block diagram of the structure of the hospital ward lighting intelligent control device according to the first embodiment of the invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a hospital ward lighting intelligent control device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the hospital room light intelligent control device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the hospital room light intelligent control device, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a hospital room light intelligent control program.
In the intelligent control device for the light in the hospital ward shown in fig. 1, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the hospital ward lighting intelligent control device can be arranged in the hospital ward lighting intelligent control device, and the hospital ward lighting intelligent control device calls the hospital ward lighting intelligent control program stored in the memory 1005 through the processor 1001 and executes the hospital ward lighting intelligent control method provided by the embodiment of the invention.
An embodiment of the invention provides an intelligent control method for hospital ward light, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the intelligent control method for hospital ward light.
In this embodiment, the hospital ward lighting intelligent control method includes the following steps:
step S10: and acquiring a plurality of continuous frame monitoring images of the target ward from the ward monitoring video stream, and carrying out portrait recognition on the plurality of continuous frame monitoring images through a preset portrait detection algorithm.
It should be noted that the execution subject of the embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of implementing the above functions, etc. The present embodiment and the following embodiments will be described below by taking intelligent control of hospital room lights as an example.
It is understood that the ward monitoring video stream may be a video shot by a camera provided in the target ward; the preset portrait detection algorithm may be a preset trained YOLO V5 algorithm; the portrait recognition of the plurality of continuous frames of monitoring images through the preset portrait detection algorithm may be to input the plurality of continuous frames of monitoring images into the preset portrait detection algorithm to obtain the portrait type and the portrait detection frame corresponding to each monitoring image output by the preset portrait detection algorithm.
In the specific implementation, the hospital ward lighting intelligent control device acquires a plurality of continuous frames of monitoring images from a monitoring video stream of a target ward, inputs the plurality of continuous frames of monitoring images into a preset portrait detection algorithm, and acquires the portrait type and the portrait detection frame corresponding to each monitoring image.
Step S20: and determining the activity state of each human body in the target ward according to the image recognition result.
It should be understood that the determining of the activity state of each human body in the target ward according to the image recognition result may be determining the activity state of each human body in the target ward according to the image type and the image detection frame corresponding to each monitored image.
Step S30: the method comprises the steps of obtaining a plurality of continuous frame environment images from an outdoor monitoring video stream, and extracting a plurality of interested areas from the plurality of continuous frame environment images.
It can be understood that the outdoor monitoring video stream may be a video shot by a camera arranged outdoors, and because the position and shooting angle of the camera are fixed, a background image in the shot video does not change, and the background image may be an image corresponding to the sky in an environment image; the region of interest may be a region that is previously defined in the environment image and can reflect the intensity of outdoor environment light, for example, a background image region in the environment image may be defined as the region of interest.
It should be understood that, when the outdoor camera takes the outdoor surveillance video, the region of interest is generated in each frame of environment image according to the pre-defined background image region, and the region of interest may be a region surrounded by a rectangular frame.
In the specific implementation, the hospital ward lighting intelligent control device acquires a plurality of continuous frame environment images from an outdoor monitoring video stream shot by an outdoor camera, and extracts a predetermined area capable of reflecting outdoor environment light intensity from each environment image.
Step S40: and selecting a plurality of sampling points in the region of interest, and determining the ambient light parameters of the current environment according to the plurality of sampling points.
It is understood that the ambient light parameter may be an illumination intensity parameter of the outdoor environment; the selection of the plurality of sampling points in the region of interest may be a random selection of the plurality of sampling points in the region of interest, or a generation of a maximum inscribed circle of the region of interest using a center point of a rectangular region of interest as a center of a circle, and a random selection of the plurality of sampling points in a region corresponding to the maximum inscribed circle.
In the specific implementation, the hospital ward lighting intelligent control device generates a maximum inscribed circle of a rectangular region of interest of each environment image by taking a central point of the region of interest as a circle center, randomly selects a plurality of sampling points in a region corresponding to the maximum inscribed circle, and determines the environment light parameters of the current environment according to pixel information of the plurality of sampling points corresponding to each environment image.
Step S50: and determining a light adjusting parameter according to the activity state and the ambient light parameter, and controlling the intelligent lamp in the target ward to work according to the light adjusting parameter.
It should be understood that the light adjustment parameters may be parameters that adjust the brightness and color of the smart light; determining the light adjusting parameter according to the activity status and the ambient light parameter may be determining a status type of the activity status, determining an activity priority of the activity status according to the activity type, and determining the light adjusting parameter according to the activity priority and the ambient light parameter.
In the specific implementation, the hospital ward light intelligent control device acquires a plurality of continuous frames of monitoring images from a ward monitoring video stream shot by a camera arranged in a standard ward, inputs the plurality of continuous frames of monitoring images into a preset portrait detection algorithm to obtain portrait categories and portrait detection frames corresponding to the monitoring images, and determines the activity state of each human body in a target ward according to the portrait categories and the portrait detection frames corresponding to the monitoring images; the intelligent hospital ward light control equipment acquires a plurality of continuous frame environment images from an outdoor monitoring video stream shot by an outdoor camera, extracts corresponding rectangular interesting regions from each environment image, generates a maximum inscribed circle of each rectangular interesting region by taking a central point of each rectangular interesting region as a circle center, randomly selects a plurality of sampling points in an image region corresponding to each maximum inscribed circle, and determines an environment light parameter according to pixel information of each sampling point; and the intelligent light control equipment in the hospital ward judges the state type of the active state, determines light adjusting parameters according to the state type and the ambient light parameters, and controls the intelligent light in the target ward to work according to the light adjusting parameters.
Further, in concrete application, medical personnel often need to go to the work such as making an rounds of wards, inquiry and needle insertion in the target ward, just need stronger light this moment to guarantee that medical personnel accomplishes work smoothly, adjust light in order to according to medical personnel' S state, the active state includes the medical care active state, step S20 includes:
step S201: and judging whether medical portrait characteristics exist in the plurality of continuous frame monitoring images according to the portrait recognition result.
It can be understood that, the judgment of whether medical portrait features exist in the plurality of continuous frame monitoring images according to the portrait recognition result may be to judge whether medical staff portrait categories are included in the obtained portrait categories, and if so, judge that medical portrait features exist in the plurality of continuous frame monitoring images.
Step S202: and when medical portrait characteristics exist in the continuous frames of monitoring images, acquiring a plurality of image position information corresponding to the medical portrait characteristics in the continuous frames of monitoring images.
It should be understood that the image position information may be pixel information of the medical person image feature in the monitoring image, wherein the pixel information includes pixel coordinates and RGB values of each pixel point; image position information can be determined according to the portrait detection frame corresponding to the medical portrait characteristics in each monitored image.
Step S203: and determining the movement track of the medical staff to which the medical portrait features belong according to the position information of the plurality of images.
It can be understood that the determination of the movement trajectory of the medical care personnel to which the medical care personnel image feature belongs according to the plurality of image position information may be a determination of a plurality of corresponding center pixel coordinates according to pixel coordinates of each pixel point in the plurality of image position information, and a determination of the movement trajectory of the medical care personnel according to the plurality of center pixel coordinates; the center pixel coordinate may be a pixel coordinate located at a geometric center point of the portrait sensing frame.
Step S204: and determining the medical care activity state of the medical care personnel in the target ward to which the medical care portrait features belong according to the moving track.
It should be understood that the healthcare activity state includes entry into the target patient room and exit from the target patient room; the medical care activity state of the medical care personnel in the target ward to which the medical care person figure feature belongs can be determined according to the moving track, namely the distance change is determined according to the coordinates of the central pixel point on the moving track and the coordinates of the edge pixel points at the edge of the image in the monitoring image, and whether the medical care personnel enters the target ward or leaves the target ward is determined according to the distance change.
Further, in order to improve the accuracy of determining the movement trajectory of the portrait of medical care person, the determining, according to the position information of the plurality of images, the movement trajectory of the medical care person to which the portrait of medical care person belongs includes: acquiring shooting time corresponding to a plurality of continuous frame monitoring images, and generating a marking serial number according to the shooting time; and adding a serial number for the corresponding image position information according to the marking serial number to obtain the moving track of the medical image feature.
In the specific implementation, the hospital ward lighting intelligent control device acquires the shooting time corresponding to each monitoring image, generates a marking serial number according to the sequence of the shooting time, adds a serial number to the corresponding image position information according to the marking serial number, and determines the movement track of the medical image feature according to the image position information after the serial number is added.
Further, in order to realize intelligent control of ward lighting, the activity state includes a non-medical care activity state, and after judging whether medical care portrait characteristics exist in the plurality of continuous frame monitoring images according to the portrait recognition result, the method further includes: when medical portrait characteristics do not exist in the plurality of continuous frame monitoring images, determining non-medical portrait characteristics according to a portrait recognition result; and determining the non-medical care activity state of the non-medical care personnel in the target ward according to the non-medical care portrait characteristics.
In specific implementation, when medical portrait characteristics do not exist in a plurality of continuous frame images, the hospital ward lighting intelligent control device determines non-medical portrait characteristics according to portrait categories, and determines non-medical activity states of non-medical staff in a target ward according to the non-medical portrait characteristics, wherein the non-medical activity states include activity states of rest, newspaper watching, dining and the like.
In the embodiment, a plurality of continuous frame monitoring images of a target ward are obtained from a ward monitoring video stream, and the images of the plurality of continuous frame monitoring images are identified through a preset image detection algorithm; determining the activity state of each human body in the target ward according to the image recognition result; acquiring a plurality of continuous frame environment images from an outdoor monitoring video stream, and extracting a plurality of regions of interest from the plurality of continuous frame environment images; selecting a plurality of sampling points in the region of interest, and determining the ambient light parameters of the current environment according to the plurality of sampling points; and determining a light adjusting parameter according to the activity state and the ambient light parameter, and controlling the intelligent lamp in the target ward to work according to the light adjusting parameter. According to the embodiment, the activity state of the human body is determined according to the recognition result of the monitoring image in the ward, the environment light parameter is determined according to the sampling point selected from the environment image, the light adjusting parameter is determined according to the activity state of the human body and the environment light parameter, and the intelligent lamp in the ward is controlled to work.
Referring to fig. 3, fig. 3 is a schematic flow chart of a hospital ward lighting intelligent control method according to a second embodiment of the present invention.
Based on the first embodiment described above, in the present embodiment, the step S40 includes:
step S401: and selecting N sampling points in the region of interest, and determining the RGB mean value of the N sampling points.
It can be understood that, in this embodiment, N sampling points are selected in the region of interest corresponding to each environmental image, where N is an integer greater than or equal to 2, and each sampling point includes a pixel point, and an RGB average value is obtained according to RGB values of all the sampling points.
In a specific implementation, for example, there are 3 environment images, and if the number of sampling points is 4, 12 pixel points are obtained altogether, and the average values of R values, G values, and B values of the 12 pixel points are respectively obtained to obtain the RGB average value.
Step S402: and determining the color variance of each sampling point according to the RGB value and the RGB mean value of each sampling point.
In specific implementation, the average value of the R value, the G value and the B value in the RGB average value is calculated, and then the color variance of each sampling point is determined according to the R value, the G value and the B value of each sampling point and the average value.
Step S403: and when the color variance is larger than the preset variance, removing the corresponding sampling points to obtain a preselected sampling point set.
It can be understood that when the color variance is greater than the preset variance, it indicates that the deviation of the corresponding sampling point is large, the sampling point is removed, and the remaining sampling points constitute a preselected sampling point set.
Step S404: and determining the ambient light parameters of the current environment according to the RGB mean value of each preselected sampling point in the preselected sampling point set.
In a specific implementation, the RGB mean value of each preselected sampling point in the preselected sampling point set is calculated, and the RGB mean value is used as the ambient light parameter of the current environment.
Further, in order to realize intelligent adjustment of the hospital ward lighting, the step S50 includes: judging whether the activity state is a medical care activity state; when the active state is a medical care active state, judging whether the corresponding medical care personnel enters the target ward according to the movement track; when the medical staff enters the target ward, acquiring current lamplight adjusting parameters of the intelligent lamp; and searching a target lamp light adjusting parameter corresponding to the medical staff in a preset mapping relation table, and adjusting the current lamp light adjusting parameter of the intelligent lamp to the target lamp light adjusting parameter.
In the concrete implementation, the intelligent light control equipment in the hospital ward judges whether the activity type of the activity state is the medical care activity state, if so, judges whether the corresponding medical care personnel enters the target ward according to the movement track, when the medical staff is judged to enter the target ward, the medical staff is indicated to finish the relevant work of ward round, inquiry, needle insertion and the like, the current light adjusting parameters of the intelligent lamp are obtained at the moment, the current brightness of the intelligent lamp can be determined according to the current light adjusting parameter, the target light adjusting parameter corresponding to the medical staff is searched in the preset relation table, determining the target brightness of the intelligent lamp according to the target lamp light adjusting parameter, judging whether the current brightness is greater than the target brightness, if so, and if not, adjusting the brightness of the intelligent lamp from the current brightness to the target brightness according to the target lamp light adjusting parameter.
Further, in order to realize intelligent adjustment of hospital ward lighting, after determining whether the activity state is a medical care activity state, the method further includes: when the activity state is a non-medical care activity state, acquiring an ambient light parameter; and determining the light adjusting parameters of the intelligent lamp according to the ambient light parameters, and controlling the intelligent lamp to work according to the light adjusting parameters.
It can be understood that when the active state of the hospital ward light intelligent control device is a non-medical care active state, it indicates that medical care personnel do not need to complete related work, the ambient light parameter is used as the light adjusting parameter of the intelligent lamp, the intelligent lamp is controlled to work according to the light adjusting parameter, so as to simulate the change of outdoor ambient light in the target ward, and prevent the change of the intrinsic circadian rhythm of the patient caused by the patient being always in the constant-brightness light, and further generate adverse effect on the body of the patient; when the light adjusting parameters of the intelligent lamp are determined according to the ambient light parameters, in order to save computational resources, an adjusting time interval can be set, when the set time interval is reached, the light adjusting parameters of the intelligent lamp are adjusted once according to the ambient light parameters, for example, the set adjusting time interval is 20 minutes, and the light adjusting parameters are adjusted once every 20 minutes.
In the embodiment, N sampling points are selected in the region of interest, and the RGB mean values of the N sampling points are determined; determining the color variance of each sampling point according to the RGB value and the RGB mean value of each sampling point; when the color variance is larger than the preset variance, removing the corresponding sampling points to obtain a preselected sampling point set; and determining the ambient light parameters of the current environment according to the RGB mean value of each preselected sampling point in the preselected sampling point set. Because this embodiment is when having the activity characteristic of doctorsing and nurses in the target ward, adjust the intelligent lamp according to the target lamp light adjusting parameter that corresponds with medical personnel, when not having the activity characteristic of doctorsing and nurses, adjust the intelligent lamp according to the ambient light parameter, can guarantee that medical personnel accomplish work smoothly when, simulate outdoor ambient light in the target ward, realized the intelligent control of ward light.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores an intelligent hospital ward lighting control program, and the intelligent hospital ward lighting control program, when executed by a processor, implements the steps of the intelligent hospital ward lighting control method described above.
Referring to fig. 4, fig. 4 is a block diagram illustrating a structure of a hospital ward lighting intelligent control device according to a first embodiment of the present invention.
As shown in fig. 4, the intelligent control device for hospital ward lighting provided by the embodiment of the present invention includes: identification module 10, determination module 20, extraction module 30, sampling module 40 and control module 50.
The identification module 10 is configured to acquire a plurality of continuous frame monitoring images of a target ward from a ward monitoring video stream, and perform portrait identification on the plurality of continuous frame monitoring images through a preset portrait detection algorithm;
the determining module 20 is configured to determine an activity state of each human body in the target ward according to a result of the portrait recognition;
the extraction module 30 is configured to obtain a plurality of continuous frame environment images from an outdoor monitoring video stream, and extract a plurality of regions of interest from the plurality of continuous frame environment images;
the sampling module 40 is configured to select a plurality of sampling points in the region of interest, and determine an ambient light parameter of a current environment according to the plurality of sampling points;
and the control module 50 is configured to determine a light adjustment parameter according to the activity state and the ambient light parameter, and control the intelligent lamp in the target ward to operate according to the light adjustment parameter.
In the embodiment, a plurality of continuous frame monitoring images of a target ward are obtained from a ward monitoring video stream, and the images of the plurality of continuous frame monitoring images are identified through a preset image detection algorithm; determining the activity state of each human body in the target ward according to the image recognition result; acquiring a plurality of continuous frame environment images from an outdoor monitoring video stream, and extracting a plurality of regions of interest from the plurality of continuous frame environment images; selecting a plurality of sampling points in the region of interest, and determining the ambient light parameters of the current environment according to the plurality of sampling points; and determining a light adjusting parameter according to the activity state and the ambient light parameter, and controlling the intelligent lamp in the target ward to work according to the light adjusting parameter. According to the embodiment, the activity state of the human body is determined according to the identification result of the monitoring image in the ward, the ambient light parameter is determined according to the sampling point selected from the ambient image, the light adjusting parameter is determined according to the activity state of the human body and the ambient light parameter, and the intelligent lamp in the ward is controlled to work.
Based on the first embodiment of the hospital ward lighting intelligent control device, the invention provides a second embodiment of the hospital ward lighting intelligent control device.
In this embodiment, the determining module 20 is further configured to determine whether medical portrait features exist in the multiple continuous frame monitoring images according to a portrait recognition result; when medical portrait characteristics exist in the continuous frame monitoring images, acquiring a plurality of image position information corresponding to the medical portrait characteristics in the continuous frame monitoring images; determining the movement track of the medical staff to which the medical portrait features belong according to the position information of the plurality of images; determining the medical care activity state of the medical care personnel in the target ward to which the medical care portrait features belong according to the moving track; the active state comprises a healthcare active state.
The determining module 20 is further configured to obtain shooting time corresponding to a plurality of consecutive frames of monitoring images, and generate a mark sequence number according to the shooting time; and adding a serial number for the corresponding image position information according to the marking serial number to obtain the moving track of the medical image feature.
The determining module 20 is further configured to determine non-medical portrait features according to a portrait recognition result when medical portrait features do not exist in the plurality of continuous frame monitoring images; and determining the non-medical care activity state of the non-medical care personnel in the target ward according to the non-medical care portrait characteristics.
The sampling module 40 is further configured to select N sampling points in the region of interest, and determine an RGB mean value of the N sampling points; determining the color variance of each sampling point according to the RGB value and the RGB mean value of each sampling point; when the color variance is larger than the preset variance, removing the corresponding sampling points to obtain a preselected sampling point set; and determining the ambient light parameters of the current environment according to the RGB mean value of each preselected sampling point in the preselected sampling point set.
The control module 50 is further configured to determine whether the activity state is a medical care activity state; when the active state is a medical care active state, judging whether the corresponding medical care personnel enters the target ward according to the movement track; when the medical staff enters the target ward, acquiring current lamplight adjusting parameters of the intelligent lamp; and searching a target lamp light adjusting parameter corresponding to the medical staff in a preset mapping relation table, and adjusting the current lamp light adjusting parameter of the intelligent lamp to the target lamp light adjusting parameter.
The control module 50 is further configured to obtain an ambient light parameter when the activity state is a non-medical-care activity state; and determining the light adjusting parameters of the intelligent lamp according to the ambient light parameters, and controlling the intelligent lamp to work according to the light adjusting parameters.
Other embodiments or specific implementation manners of the hospital ward light intelligent control device of the invention can refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An intelligent light control method for hospital wards is characterized by comprising the following steps:
acquiring a plurality of continuous frame monitoring images of a target ward from a ward monitoring video stream, and performing portrait recognition on the plurality of continuous frame monitoring images through a preset portrait detection algorithm;
determining the activity state of each human body in the target ward according to the image recognition result;
acquiring a plurality of continuous frame environment images from an outdoor monitoring video stream, and extracting a plurality of regions of interest from the plurality of continuous frame environment images;
selecting a plurality of sampling points in the region of interest, and determining the ambient light parameters of the current environment according to the plurality of sampling points;
and determining a light adjusting parameter according to the activity state and the ambient light parameter, and controlling the intelligent lamp in the target ward to work according to the light adjusting parameter.
2. The method of claim 1, wherein the activity state comprises a healthcare activity state, and wherein determining the activity state of each individual in the target patient room based on the image recognition comprises:
judging whether medical portrait characteristics exist in the plurality of continuous frame monitoring images according to the portrait recognition result;
when medical portrait characteristics exist in the continuous frame monitoring images, acquiring a plurality of image position information corresponding to the medical portrait characteristics in the continuous frame monitoring images;
determining the movement track of the medical staff to which the medical portrait features belong according to the position information of the plurality of images;
and determining the medical care activity state of the medical care personnel in the target ward to which the medical care portrait features belong according to the moving track.
3. The method of claim 2, wherein said determining a path of movement of a healthcare worker to which said healthcare portrait feature belongs based on said plurality of image location information comprises:
acquiring shooting time corresponding to a plurality of continuous frames of monitoring images, and generating a marking serial number according to the shooting time;
and adding a serial number for the corresponding image position information according to the marking serial number to obtain the moving track of the medical image feature.
4. The method of claim 3, wherein said active state comprises a non-healthcare active state, and wherein said method further comprises, after determining whether a healthcare portrait feature exists in said plurality of consecutive frame monitor images based on a portrait recognition result:
when medical portrait characteristics do not exist in the plurality of continuous frame monitoring images, determining non-medical portrait characteristics according to a portrait recognition result;
and determining the non-medical care activity state of the non-medical care personnel in the target ward according to the non-medical care portrait characteristics.
5. The method according to any one of claims 1-4, wherein said selecting a number of sample points in said region of interest and determining an ambient light parameter of the current environment from said number of sample points comprises:
selecting N sampling points in the region of interest, and determining the RGB mean value of the N sampling points;
determining the color variance of each sampling point according to the RGB value and the RGB mean value of each sampling point;
when the color variance is larger than the preset variance, removing the corresponding sampling points to obtain a preselected sampling point set;
and determining the ambient light parameters of the current environment according to the RGB mean value of each preselected sampling point in the preselected sampling point set.
6. The method of claim 5, wherein said determining a light adjustment parameter based on said activity status and said ambient light parameter, and controlling operation of a smart light in said target room based on said light adjustment parameter, comprises:
judging whether the activity state is a medical care activity state;
when the active state is a medical care active state, judging whether the corresponding medical care personnel enters the target ward according to the movement track;
when the medical staff enters the target ward, acquiring current lamplight adjusting parameters of the intelligent lamp;
and searching a target lamp light adjusting parameter corresponding to the medical staff in a preset mapping relation table, and adjusting the current lamp light adjusting parameter of the intelligent lamp to the target lamp light adjusting parameter.
7. The method of claim 6, wherein after determining whether the activity state is a healthcare activity state, the method further comprises:
when the activity state is a non-medical care activity state, acquiring an ambient light parameter;
and determining the light adjusting parameters of the intelligent lamp according to the ambient light parameters, and controlling the intelligent lamp to work according to the light adjusting parameters.
8. The utility model provides a hospital ward light intelligent control device which characterized in that, the device includes:
the identification module is used for acquiring a plurality of continuous frame monitoring images of a target ward from the ward monitoring video stream and identifying the images of the plurality of continuous frame monitoring images through a preset image detection algorithm;
the determining module is used for determining the activity state of each human body in the target ward according to the portrait recognition result;
the extraction module is used for acquiring a plurality of continuous frame environment images from the outdoor monitoring video stream and extracting a plurality of interested areas from the plurality of continuous frame environment images;
the sampling module is used for selecting a plurality of sampling points in the region of interest and determining the ambient light parameters of the current environment according to the plurality of sampling points;
and the control module is used for determining a light adjusting parameter according to the activity state and the ambient light parameter and controlling the intelligent lamp in the target ward to work according to the light adjusting parameter.
9. The utility model provides a hospital ward light intelligent control equipment which characterized in that, equipment includes: the intelligent control system comprises a memory, a processor and an intelligent control program of the hospital ward light, wherein the intelligent control program of the hospital ward light is stored in the memory and can run on the processor, and the intelligent control program of the hospital ward light is configured to realize the steps of the intelligent control method of the hospital ward light according to any one of claims 1 to 7.
10. A storage medium, wherein the storage medium stores thereon a hospital room light intelligent control program, and the hospital room light intelligent control program, when executed by a processor, implements the steps of the hospital room light intelligent control method according to any one of claims 1 to 7.
CN202210053253.XA 2022-01-18 2022-01-18 Intelligent control method, device, equipment and storage medium for hospital ward light Active CN114501747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210053253.XA CN114501747B (en) 2022-01-18 2022-01-18 Intelligent control method, device, equipment and storage medium for hospital ward light

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210053253.XA CN114501747B (en) 2022-01-18 2022-01-18 Intelligent control method, device, equipment and storage medium for hospital ward light

Publications (2)

Publication Number Publication Date
CN114501747A true CN114501747A (en) 2022-05-13
CN114501747B CN114501747B (en) 2024-03-26

Family

ID=81511887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210053253.XA Active CN114501747B (en) 2022-01-18 2022-01-18 Intelligent control method, device, equipment and storage medium for hospital ward light

Country Status (1)

Country Link
CN (1) CN114501747B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130310652A1 (en) * 2012-05-15 2013-11-21 The Cleveland Clinic Foundation Integrated surgical task lighting
CN109152160A (en) * 2018-02-08 2019-01-04 吴永慧 Hospital ward brightness adaptive regulation method
CN110381652A (en) * 2019-07-08 2019-10-25 武汉诚信卓远科技发展有限公司 Lamps intelligent control method, equipment and computer readable storage medium
CN113345567A (en) * 2021-07-15 2021-09-03 郑州大学第一附属医院 Patient monitoring system and intelligent monitoring control method thereof
CN113623569A (en) * 2021-08-25 2021-11-09 上海执光医疗科技有限公司 Lighting system for use in ward

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130310652A1 (en) * 2012-05-15 2013-11-21 The Cleveland Clinic Foundation Integrated surgical task lighting
CN109152160A (en) * 2018-02-08 2019-01-04 吴永慧 Hospital ward brightness adaptive regulation method
CN110381652A (en) * 2019-07-08 2019-10-25 武汉诚信卓远科技发展有限公司 Lamps intelligent control method, equipment and computer readable storage medium
CN113345567A (en) * 2021-07-15 2021-09-03 郑州大学第一附属医院 Patient monitoring system and intelligent monitoring control method thereof
CN113623569A (en) * 2021-08-25 2021-11-09 上海执光医疗科技有限公司 Lighting system for use in ward

Also Published As

Publication number Publication date
CN114501747B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN108090405B (en) Face recognition method and terminal
CN110232369B (en) Face recognition method and electronic equipment
WO2019041519A1 (en) Target tracking device and method, and computer-readable storage medium
CN102859554B (en) Collating device
WO2019033569A1 (en) Eyeball movement analysis method, device and storage medium
JP2020515983A (en) Target person search method and device, device, program product and medium
EP3869448A1 (en) Iris authentication device, iris authentication method, and recording medium
CN112149570B (en) Multi-person living body detection method, device, electronic equipment and storage medium
CN111862341A (en) Virtual object driving method and device, display equipment and computer storage medium
CN110443179B (en) Off-post detection method and device and storage medium
JP2007025902A (en) Image processor and image processing method
CN113591562A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN110852220B (en) Intelligent facial expression recognition method, terminal and computer readable storage medium
US9501710B2 (en) Systems, methods, and media for identifying object characteristics based on fixation points
CN112437231A (en) Image shooting method and device, electronic equipment and storage medium
CN110210401B (en) Intelligent target detection method under weak light
CN111178113B (en) Information processing method, device and storage medium
CN114501747A (en) Hospital ward light intelligent control method, device, equipment and storage medium
CN113963311B (en) Safe production risk video monitoring method and system
CN112347832B (en) Unlocking method, device, equipment and computer storage medium based on face recognition
WO2020241208A1 (en) Retrieval device, control method, and program
RU2295152C1 (en) Method for recognizing face of an individual on basis of video image
CN113645743A (en) Intelligent lighting method, device and equipment based on television and storage medium
CN112380941A (en) Identity recognition method and device, terminal equipment and storage medium
CN112788425A (en) Dynamic area display method, device, equipment and computer readable storage medium

Legal Events

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