Picture processing method, device, equipment and storage medium

文档序号:196180 发布日期:2021-11-02 浏览:29次 中文

阅读说明:本技术 图片处理方法、装置、设备与存储介质 (Picture processing method, device, equipment and storage medium ) 是由 夏杰 于 2021-07-27 设计创作,主要内容包括:本申请涉及图片处理技术领域,本申请提供一种图片处理方法、装置、设备与存储介质,图片处理方法包括:确定物联网终端当前所处的目标情景模式;采集在物联网终端预设范围内的至少一张第一图片;在至少一张第一图片满足目标情景模式对应的环境特征获取条件的情况下,获取与目标情景模式对应的预设环境特征;在至少一张第一图片中包含预设环境特征的情况下,向与物联网终端绑定的移动终端发送预警信息;从移动终端接收针对预警信息的反馈指令;响应反馈指令,获取与预设环境特征对应的被控设备和控制指令;向被控设备发送控制指令。实施本申请,可以实现远程场景下自动对不同情境模式对应的场景进行有效监控。(The application relates to the technical field of picture processing, and provides a picture processing method, a device, equipment and a storage medium, wherein the picture processing method comprises the following steps: determining a current target contextual model of the terminal of the Internet of things; collecting at least one first picture in a preset range of an Internet of things terminal; acquiring a preset environmental characteristic corresponding to a target contextual model under the condition that at least one first picture meets an environmental characteristic acquisition condition corresponding to the target contextual model; sending early warning information to a mobile terminal bound with the terminal of the Internet of things under the condition that at least one first picture contains preset environmental characteristics; receiving a feedback instruction aiming at the early warning information from the mobile terminal; responding to the feedback instruction, and acquiring controlled equipment and a control instruction corresponding to the preset environmental characteristics; and sending a control instruction to the controlled equipment. By implementing the method and the device, scenes corresponding to different situation modes can be automatically and effectively monitored in a remote scene.)

1. An image processing method, comprising:

determining a target contextual model in which the terminal of the Internet of things is currently located, wherein the target contextual model is determined by a scene in which the terminal of the Internet of things is currently located;

collecting at least one first picture in a preset range of the Internet of things terminal;

acquiring a preset environmental characteristic corresponding to the target contextual model under the condition that the at least one first picture meets an environmental characteristic acquisition condition corresponding to the target contextual model;

sending early warning information to a mobile terminal bound with the Internet of things terminal under the condition that the at least one first picture contains the preset environmental characteristics;

receiving a feedback instruction aiming at the early warning information from the mobile terminal;

responding to the feedback instruction, and acquiring controlled equipment corresponding to the preset environment characteristic and a control instruction corresponding to the preset environment characteristic;

and sending the control instruction to the controlled equipment so that the controlled equipment operates according to the control instruction.

2. The method of claim 1, wherein the target contextual model is an automobile mode or a home mode;

if the target contextual model is the automobile model, the environmental feature acquisition conditions corresponding to the target contextual model include: the at least one first picture does not contain human face features;

if the target contextual model is the home mode, the environmental feature acquisition conditions corresponding to the target contextual model include: the at least one first picture does not contain human face features; or the at least one first picture comprises preset face features, and the at least one first picture does not comprise face features except the preset face features; or the at least one first picture comprises the face features, and the face features contained in the first picture are not matched with the face features in the preset face feature set.

3. The method of claim 1 or 2, wherein the pre-warning information comprises the at least one first picture and an identification of each first picture; the method further comprises the following steps:

receiving a rephoto request from the mobile terminal, wherein the rephoto request comprises a target identifier;

acquiring target shooting information corresponding to the target identification, wherein the target shooting information is used for representing the state of the Internet of things terminal when shooting a first picture identified by the target identification;

adjusting the target shooting information, and shooting a second picture according to the adjusted target shooting information;

and sending the second picture to the mobile terminal.

4. The method according to claim 3, wherein if the target contextual model is an automobile mode, the target shooting information includes a target rotation angle and a target shooting parameter, the target rotation angle is a rotation angle of a camera of the terminal of the internet of things relative to a preset position when shooting the first picture identified by the target identifier, and the target shooting parameter is a shooting parameter when shooting the first picture identified by the target identifier;

the adjusting the target shooting information and shooting a second picture according to the adjusted target shooting information includes:

adjusting the size of the target shooting parameter to obtain an adjusted target shooting parameter;

and controlling a camera of the terminal of the Internet of things to rotate according to the target rotation angle, and shooting a second picture by adopting the adjusted target shooting parameters.

5. The method according to claim 3, wherein if the target contextual model is a home mode, the target shooting information includes a movement track, a target shooting position, a target rotation angle, and a target shooting parameter, the target shooting position is a position of the terminal of the internet of things on the movement track when the first picture identified by the target identifier is shot, the target rotation angle is a rotation angle of a camera of the terminal of the internet of things relative to a preset position when the first picture identified by the target identifier is shot, and the target shooting parameter is a shooting parameter of the first picture identified by the target identifier;

the adjusting the target shooting information and shooting a second picture according to the adjusted target shooting information includes:

adjusting the size of the target shooting parameter to obtain an adjusted target shooting parameter;

and controlling the Internet of things terminal to move to the target shooting position of the moving track, controlling a camera of the Internet of things terminal to rotate according to the target rotation angle, and shooting a second picture by adopting the adjusted target shooting parameters.

6. The method of claim 1, wherein the acquiring at least one first picture within a preset range of the internet of things terminal comprises:

if the target contextual model is an automobile mode, acquiring at least one piece of shooting information corresponding to the automobile mode, wherein the shooting information comprises a rotation angle and a shooting parameter corresponding to the rotation angle;

for each piece of shooting information in the at least one piece of shooting information, controlling a camera of the Internet of things terminal to rotate according to the rotation angle, and shooting a first picture by adopting shooting parameters corresponding to the rotation angle as the first picture corresponding to the shooting information;

and determining a first picture corresponding to each shooting information in the at least one piece of shooting information as at least one first picture in a preset range of the Internet of things terminal.

7. The method of claim 1, wherein the acquiring at least one first picture within a preset range of the internet of things terminal comprises:

if the target contextual model is a home mode, acquiring at least one piece of shooting information corresponding to the home mode, wherein the shooting information comprises a moving track, a shooting position on the moving track, a rotation angle corresponding to the shooting position and a shooting parameter corresponding to the shooting position;

for each piece of shooting information in the at least one piece of shooting information, controlling the internet of things terminal to move to the shooting position according to the moving track, controlling a camera of the internet of things terminal to rotate according to a rotation angle corresponding to the shooting position, and shooting a first picture by adopting shooting parameters corresponding to the shooting position as the first picture corresponding to the shooting information;

and determining a first picture corresponding to each piece of shooting information in the at least one piece of shooting information as at least one first picture in a preset range of the Internet of things terminal.

8. A picture processing apparatus, comprising:

the system comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a target contextual model in which an Internet of things terminal is currently located, and the target contextual model is determined by a scene in which the Internet of things terminal is currently located;

the acquisition unit is used for acquiring at least one first picture within a preset range of the Internet of things terminal;

a first obtaining unit, configured to obtain a preset environmental feature corresponding to the target contextual model when the at least one first picture meets an environmental feature obtaining condition corresponding to the target contextual model;

the sending unit is used for sending early warning information to a mobile terminal bound with the Internet of things terminal under the condition that the at least one first picture contains the preset environment characteristics;

a receiving unit, configured to receive a feedback instruction for the early warning information from the mobile terminal;

the instruction response unit is used for responding to the feedback instruction and acquiring controlled equipment corresponding to the preset environment characteristic and a control instruction corresponding to the preset environment characteristic;

the sending unit is further configured to send the control instruction to the controlled device, so that the controlled device operates according to the control instruction.

9. A picture processing device comprising a processor, a memory and a communication interface, the processor, the memory and the communication interface being interconnected, wherein the communication interface is configured to receive and transmit data, the memory is configured to store program code, and the processor is configured to invoke the program code to perform the method of any of claims 1 to 7.

10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium; the computer program, when run on one or more processors, performs the method of any one of claims 1-7.

Technical Field

The present application relates to the field of image processing technologies, and in particular, to an image processing method, an image processing apparatus, a device, and a storage medium.

Background

With the development of intellectualization, a lot of convenience is brought to the life of a user, the user can control the equipment through a voice instruction, for example, the user can control the closing or opening of a door window or a vehicle window through the voice instruction. However, the control of the device through the voice instruction requires that the user is within a certain range of the device, the device can acquire the voice instruction of the user, and the user actively triggers the device, so that the use scene is greatly limited, for example, the user is not at home or in a vehicle, and the remote scene cannot be monitored.

Disclosure of Invention

Therefore, it is necessary to provide a method, an apparatus, a device and a storage medium for processing an image, which can automatically and effectively monitor scenes corresponding to different contextual modes in a remote scene.

In a first aspect, the present application provides a method for processing an image, where the method includes:

determining a target contextual model in which the terminal of the Internet of things is currently located, wherein the target contextual model is determined by a scene in which the terminal of the Internet of things is currently located;

collecting at least one first picture in a preset range of the Internet of things terminal;

acquiring a preset environmental characteristic corresponding to the target contextual model under the condition that the at least one first picture meets an environmental characteristic acquisition condition corresponding to the target contextual model;

sending early warning information to a mobile terminal bound with the Internet of things terminal under the condition that the at least one first picture contains the preset environmental characteristics;

receiving a feedback instruction aiming at the early warning information from the mobile terminal;

responding to the feedback instruction, and acquiring controlled equipment corresponding to the preset environment characteristic and a control instruction corresponding to the preset environment characteristic;

and sending the control instruction to the controlled equipment so that the controlled equipment operates according to the control instruction.

With reference to the first aspect, in some embodiments, the target contextual model is an automobile mode or a home mode;

if the target contextual model is the automobile model, the environmental feature acquisition conditions corresponding to the target contextual model include: the at least one first picture does not contain human face features;

if the target contextual model is the home mode, the environmental feature acquisition conditions corresponding to the target contextual model include: the at least one first picture does not contain human face features; or the at least one first picture comprises preset face features, and the at least one first picture does not comprise face features except the preset face features; or the at least one first picture comprises the face features, and the face features contained in the first picture are not matched with the face features in the preset face feature set.

With reference to the first aspect, in some embodiments, the warning information includes the at least one first picture and an identifier of each first picture; the method further comprises the following steps:

receiving a rephoto request from the mobile terminal, wherein the rephoto request comprises a target identifier;

acquiring target shooting information corresponding to the target identification, wherein the target shooting information is used for representing the state of the Internet of things terminal when shooting a first picture identified by the target identification;

adjusting the target shooting information, and shooting a second picture according to the adjusted target shooting information;

and sending the second picture to the mobile terminal.

With reference to the first aspect, in some embodiments, if the target contextual model is an automobile mode, the target shooting information includes a target rotation angle and a target shooting parameter, the target rotation angle is a rotation angle of a camera of the internet of things terminal when shooting a first picture identified by the target identifier, and the target shooting parameter is a shooting parameter when shooting the first picture identified by the target identifier;

the adjusting the target shooting information and shooting a second picture according to the adjusted target shooting information includes:

adjusting the size of the target shooting parameter to obtain an adjusted target shooting parameter;

and controlling a camera of the terminal of the Internet of things to rotate according to the target rotation angle, and shooting a second picture by adopting the adjusted target shooting parameters.

With reference to the first aspect, in some embodiments, if the target contextual model is a home mode, the target shooting information includes a movement track, a target shooting position, a target rotation angle, and a target shooting parameter, where the target shooting position is a position of the internet of things terminal on the movement track when shooting the first picture identified by the target identifier, the target rotation angle is a rotation angle of a camera of the internet of things terminal when shooting the first picture identified by the target identifier, and the target shooting parameter is a shooting parameter of the first picture identified by the target identifier;

the adjusting the target shooting information and shooting a second picture according to the adjusted target shooting information includes:

adjusting the size of the target shooting parameter to obtain an adjusted target shooting parameter;

and controlling the Internet of things terminal to move to the target shooting position of the moving track, controlling a camera of the Internet of things terminal to rotate according to the target rotation angle, and shooting a second picture by adopting the adjusted target shooting parameters.

With reference to the first aspect, in some embodiments, the acquiring at least one first picture within a preset range of the internet of things terminal includes:

if the target contextual model is an automobile mode, acquiring at least one piece of shooting information corresponding to the automobile mode, wherein the shooting information comprises a rotation angle and a shooting parameter corresponding to the rotation angle;

for each piece of shooting information in the at least one piece of shooting information, controlling a camera of the Internet of things terminal to rotate according to the rotation angle, and shooting a first picture by adopting shooting parameters corresponding to the rotation angle as the first picture corresponding to the shooting information;

and determining a first picture corresponding to each shooting information in the at least one piece of shooting information as at least one first picture in a preset range of the Internet of things terminal.

With reference to the first aspect, in some embodiments, the acquiring at least one first picture within a preset range of the internet of things terminal includes:

if the target contextual model is a home mode, acquiring at least one piece of shooting information corresponding to the home mode, wherein the shooting information comprises a moving track, a shooting position on the moving track, a rotation angle corresponding to the shooting position and a shooting parameter corresponding to the shooting position;

for each piece of shooting information in the at least one piece of shooting information, controlling the internet of things terminal to move to the shooting position according to the moving track, controlling a camera of the internet of things terminal to rotate according to a rotation angle corresponding to the shooting position, and shooting a first picture by adopting shooting parameters corresponding to the shooting position as the first picture corresponding to the shooting information;

and determining a first picture corresponding to each piece of shooting information in the at least one piece of shooting information as at least one first picture in a preset range of the Internet of things terminal.

In a second aspect, the present application provides a picture processing apparatus, comprising:

the system comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a target contextual model in which an Internet of things terminal is currently located, and the target contextual model is determined by a scene in which the Internet of things terminal is currently located;

the acquisition unit is used for acquiring at least one first picture within a preset range of the Internet of things terminal;

a first obtaining unit, configured to obtain a preset environmental feature corresponding to the target contextual model when the at least one first picture meets an environmental feature obtaining condition corresponding to the target contextual model;

the sending unit is used for sending early warning information to a mobile terminal bound with the Internet of things terminal under the condition that the at least one first picture contains the preset environment characteristics;

a receiving unit, configured to receive a feedback instruction for the early warning information from the mobile terminal;

the instruction response unit is used for responding to the feedback instruction and acquiring controlled equipment corresponding to the preset environment characteristic and a control instruction corresponding to the preset environment characteristic;

the sending unit is further configured to send the control instruction to the controlled device, so that the controlled device operates according to the control instruction.

With reference to the second aspect, in some embodiments, the target contextual model is an automobile mode or a home mode;

if the target contextual model is the automobile model, the environmental feature acquisition conditions corresponding to the target contextual model include: the at least one first picture does not contain human face features;

if the target contextual model is the home mode, the environmental feature acquisition conditions corresponding to the target contextual model include: the at least one first picture does not contain human face features; or the at least one first picture comprises preset face features, and the at least one first picture does not comprise face features except the preset face features; or the at least one first picture comprises the face features, and the face features contained in the first picture are not matched with the face features in the preset face feature set.

With reference to the second aspect, in some embodiments, the warning information includes the at least one first picture and an identification of each first picture;

the receiving unit is further configured to receive a rephotograph request from the mobile terminal, where the rephotograph request includes a target identifier;

the device further comprises:

a second obtaining unit, configured to obtain target shooting information corresponding to the target identifier, where the target shooting information is used to indicate a state of the internet of things terminal when shooting a first picture identified by the target identifier;

the adjusting unit is used for adjusting the target shooting information and shooting a second picture according to the adjusted target shooting information;

the sending unit is further configured to send the second picture to the mobile terminal.

With reference to the second aspect, in some embodiments, if the target contextual model is an automobile mode, the target shooting information includes a target rotation angle and a target shooting parameter, the target rotation angle is a rotation angle of a camera of the internet of things terminal when shooting the first picture identified by the target identifier, and the target shooting parameter is a shooting parameter when shooting the first picture identified by the target identifier;

the adjusting unit is specifically configured to adjust the size of the target shooting parameter to obtain an adjusted target shooting parameter; and controlling a camera of the terminal of the Internet of things to rotate according to the target rotation angle, and shooting a second picture by adopting the adjusted target shooting parameters.

With reference to the second aspect, in some embodiments, if the target contextual model is the home mode, the target shooting information includes a moving track, a target shooting position, a target rotation angle, and a target shooting parameter, where the target shooting position is a position of the internet of things terminal on the moving track when shooting the first picture identified by the target identifier, the target rotation angle is a rotation angle of a camera of the internet of things terminal when shooting the first picture identified by the target identifier, and the target shooting parameter is a shooting parameter of the first picture identified by the target identifier;

the adjusting unit is specifically configured to adjust the size of the target shooting parameter to obtain an adjusted target shooting parameter; and controlling the Internet of things terminal to move to the target shooting position of the moving track, controlling a camera of the Internet of things terminal to rotate according to the target rotation angle, and shooting a second picture by adopting the adjusted target shooting parameters.

With reference to the second aspect, in some embodiments, the acquisition unit is specifically configured to:

if the target contextual model is an automobile mode, acquiring at least one piece of shooting information corresponding to the automobile mode, wherein the shooting information comprises a rotation angle and a shooting parameter corresponding to the rotation angle;

for each piece of shooting information in the at least one piece of shooting information, controlling a camera of the Internet of things terminal to rotate according to the rotation angle, and shooting a first picture by adopting shooting parameters corresponding to the rotation angle as the first picture corresponding to the shooting information;

and determining a first picture corresponding to each shooting information in the at least one piece of shooting information as at least one first picture in a preset range of the Internet of things terminal.

With reference to the second aspect, in some embodiments, the acquisition unit is specifically configured to:

if the target contextual model is a home mode, acquiring at least one piece of shooting information corresponding to the home mode, wherein the shooting information comprises a moving track, a shooting position on the moving track, a rotation angle corresponding to the shooting position and a shooting parameter corresponding to the shooting position;

for each piece of shooting information in the at least one piece of shooting information, controlling the internet of things terminal to move to the shooting position according to the moving track, controlling a camera of the internet of things terminal to rotate according to a rotation angle corresponding to the shooting position, and shooting a first picture by adopting shooting parameters corresponding to the shooting position as the first picture corresponding to the shooting information;

and determining a first picture corresponding to each piece of shooting information in the at least one piece of shooting information as at least one first picture in a preset range of the Internet of things terminal.

In a third aspect, the present application provides a picture processing device, including a processor, a memory, and a communication interface, where the processor, the memory, and the communication interface are connected to each other, where the communication interface is configured to receive and send data, the memory is configured to store program codes, and the processor is configured to call the program codes to perform a method as described in the first aspect and any possible implementation manner of the first aspect.

In a fourth aspect, the present application provides a computer readable storage medium having a computer program stored therein; the computer program, when run on one or more processors, causes the terminal device to perform the method as described in the first aspect and any possible implementation form of the first aspect.

In the embodiment of the application, a target contextual model where the internet of things terminal is located at present is determined, at least one first picture in a preset range of the internet of things terminal is collected, a preset environmental characteristic corresponding to the target contextual model is obtained under the condition that the at least one first picture meets an environmental characteristic obtaining condition corresponding to the target contextual model, early warning information is sent to a mobile terminal bound with the internet of things terminal under the condition that the at least one first picture contains the preset environmental characteristic, and the controlled device is controlled to operate according to a control instruction according to a feedback instruction of the mobile terminal. By the method, the terminal of the Internet of things can be matched by adopting different preset environmental characteristics under the condition that the terminal of the Internet of things is in different contextual models, so that the scenes corresponding to different contextual models can be effectively monitored automatically under a remote scene.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below.

Fig. 1 is a schematic flowchart of a picture processing method according to an embodiment of the present disclosure;

fig. 2 is a schematic flowchart of another image processing method according to an embodiment of the present disclosure;

fig. 3 is a schematic diagram of a picture processing apparatus according to an embodiment of the present disclosure;

fig. 4 is a schematic diagram of an image processing apparatus according to an embodiment of the present application.

Detailed Description

The present invention is described in further detail below with reference to the attached drawing figures.

The terminology used in the following embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in the specification of the present application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

In this application, "at least one" means one or more, "a plurality" means two or more, "at least two" means two or three and three or more, "and/or" for describing an association relationship of associated objects, which means that there may be three relationships, for example, "a and/or B" may mean: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one item(s) below" or similar expressions refer to any combination of these items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b," a and c, "" b and c, "or" a and b and c.

In order to more clearly describe the scheme of the present application, some drawings related to the present application are further described below.

Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a picture processing method according to an embodiment of the present disclosure. As shown in fig. 1, the method comprises the steps of:

step 110, determining a current target contextual model of the terminal of the internet of things, wherein the target contextual model is determined by a current scene of the terminal of the internet of things.

In the embodiment of the application, the current target contextual model of the terminal of the internet of things is determined by the current scene of the terminal of the internet of things, for example, if the terminal of the internet of things is placed at home, the current target contextual model of the terminal of the internet of things can be a home mode; if the terminal of the internet of things is currently placed in the automobile, the target contextual model in which the terminal of the internet of things is currently located can be an automobile model; if the terminal of the internet of things is currently placed in a working area (for example, in a company), the target contextual model in which the terminal of the internet of things is currently located may be a company model.

In a possible design, the user can set the contextual model that this thing networking terminal is located on thing networking terminal, for example, if the user places this thing networking terminal at home, then can set up the contextual model that thing networking terminal is currently located into the family mode, if the user places this thing networking terminal inside the car, then can set up the contextual model that this thing networking terminal is currently located into the car mode. And the terminal of the Internet of things acquires a target contextual model set by the user.

In another possible design, the terminal of the internet of things can determine the current contextual model of the terminal of the internet of things by acquiring pictures of the surrounding environment and identifying and analyzing the acquired pictures. For example, if the picture acquired by the internet of things terminal includes car picture features such as a steering wheel and a central control screen, it may be determined that the current target contextual model of the internet of things terminal is the car model.

And 120, collecting at least one first picture in a preset range of the Internet of things terminal.

In one embodiment, a camera of the terminal of the internet of things is controlled to shoot at least one first picture in a preset range, and illustratively, different modes for collecting the first picture can be adopted according to different contextual models of the terminal of the internet of things.

The first mode is that if the current target contextual model of the terminal of the internet of things is the automobile mode, namely the terminal of the internet of things is placed in an automobile, the camera of the terminal of the internet of things can be controlled to rotate, and the camera can rotate and shoot at the same time, so that at least one first picture is obtained. For example, a rotation angle interval is set, and a first picture is taken every time the camera rotates by the rotation angle interval, and for example, the rotation angle interval may be set to 15 degrees, that is, a first picture is taken every time the camera rotates by 15 degrees.

Specifically, optionally, at least one piece of shooting information corresponding to the automobile mode may be acquired, where each piece of shooting information may include a rotation angle and a shooting parameter corresponding to the rotation angle, and the rotation angle may be an angle offset with respect to an initial position of the camera, or the rotation angle may also be an angle position with respect to a last shooting time of the camera, and the rotation angle may determine the shooting angle of the camera, without being limited in this application. The shooting parameters may include parameters used when shooting the picture, such as a shutter, an aperture, a magnification factor, and the like, and may determine the quality and the definition of the first picture shot.

For each piece of shooting information, controlling a camera of the terminal of the internet of things to rotate according to a rotation angle in the shooting information, and shooting a first picture by using shooting parameters corresponding to the rotation angle (namely, shooting parameters contained in the shooting information), wherein the shooting parameters are used as the first picture corresponding to the shooting information for convenience of description. It is to be understood that each photographing information may correspond to one first picture, and at least one photographing information may correspond to at least one first picture.

The second mode is that if the current target contextual model that locates at the thing networking terminal is the family mode, this thing networking terminal is placed at home promptly, can control this thing networking terminal and remove, and control the camera at this thing networking terminal and rotate, and at the in-process that this thing networking terminal removed, this camera is rotatory while shooting to obtain at least one first picture. For example, in order to take pictures of each room in a home, a movement track of the internet of things terminal is preset, for example, a user may set the movement track of the internet of things terminal on the internet of things terminal according to the specific situation of the user in the home and the shooting requirement, for example, the movement track may be 3 meters forward, 4 meters leftward, and 2 meters rightward. Further, at least one shooting position on the moving track may be set, for example, a shooting position is set when moving 2 meters forward, and meanwhile, a rotation angle at the shooting position is set, and the rotation angle determines a shooting angle, for example, the shooting angle set at the shooting position 2 meters forward is set to be 50 degrees for shooting, and further, shooting parameters at the shooting position may also be set, so that the terminal of the internet of things may shoot the first picture using the shooting parameters. When the terminal of the internet of things shoots, the terminal of the internet of things moves according to the preset moving track, stops at the shooting position defined in advance on the moving track, and rotates the camera according to the preset rotating angle, so that the first picture is shot by adopting the preset shooting parameters. It is understood that if a rotation angle is set for one photographing position, one photographing position may take a first picture; if a plurality of rotation angles are set for one photographing position, a plurality of first pictures can be taken for one photographing position, and the application is not limited.

Specifically, optionally, at least one piece of shooting information corresponding to the home mode may be acquired, where the shooting information may include a moving track, a shooting position on the moving track, a rotation angle corresponding to the shooting position, and a shooting parameter corresponding to the shooting position, and it may be understood that shooting positions in different pieces of shooting information are different, and one piece of shooting information may include one rotation angle or multiple rotation angles.

And for each piece of shooting information, controlling the mobile terminal to move to a corresponding shooting position according to the moving track, and controlling the camera of the terminal of the Internet of things to rotate according to a rotation angle corresponding to the shooting position, so that a first picture is shot by adopting shooting parameters corresponding to the shooting position, and the shooting parameters are taken as the first picture corresponding to the shooting information for convenience of description. It is to be understood that each shot information may correspond to one or more first pictures, and at least one shot information may correspond to at least one first picture.

Step 130, acquiring a preset environmental characteristic corresponding to the target contextual model when the at least one first picture meets an environmental characteristic acquisition condition corresponding to the target contextual model.

Step 140, sending early warning information to the mobile terminal bound with the internet of things terminal under the condition that the at least one first picture contains the preset environment characteristics.

In one embodiment, whether the acquired at least one first picture meets the environmental feature acquisition condition corresponding to the target contextual model is judged, and if the acquired at least one first picture meets the environmental feature acquisition condition corresponding to the target contextual model, preset environmental features corresponding to the target contextual model are acquired. Wherein, the target contextual model that thing networking terminal was located is different, and then the environmental characteristic that corresponds acquires the condition is also different, for example, the target contextual model that thing networking terminal was located is the automobile mode, and then the environmental characteristic that corresponds with the automobile mode acquires the condition and includes: none of the at least one first picture contains facial features (i.e., it is determined that there is no person in the car). For another example, if the target contextual model where the terminal of the internet of things is located is a home model, the environmental characteristic obtaining condition corresponding to the home model may include one or more of the following conditions: the at least one first picture does not contain facial features (i.e., no one is at home); the at least one first picture comprises preset face features, the preset face features can be face features of children at home, and the at least one first picture does not comprise face features except the preset face features (namely only the children at home are at home); or the at least one first picture contains the facial features, and the facial features contained in the first picture are not matched with the facial features in the preset facial feature set (namely, only strangers exist in the family).

Specifically, optionally, the internet of things terminal stores in advance at least one preset face feature corresponding to the home mode. For example, the user may input the face features of each family member in the terminal of the internet of things, and store the face features in the terminal of the internet of things as at least one preset face feature. In some optional modes, the terminal of the internet of things may also only store the facial features of children at home as the preset facial features.

When the current contextual model of the terminal of the internet of things is detected to be the family model, at least one pre-stored preset face feature corresponding to the family model is obtained, at least one collected first picture is analyzed and identified, and whether one or more preset face features in the at least one preset face feature are contained in the at least one first picture is determined.

Under the condition that the at least one first picture meets the environment feature obtaining condition corresponding to the target contextual model, preset environment features corresponding to the target contextual model can be further obtained, and it can be understood that the preset environment features can be different according to different scenes in which the internet of things terminal is applicable. And sending early warning information to the mobile terminal bound to the terminal of the Internet of things under the condition that the at least one first picture contains preset environmental characteristics.

Illustratively, the target profile is a home profile, and the preset environmental characteristics may be one or more of the following characteristics: environmental characteristics of the home unclosed door and window; the environmental characteristics of the gas not turning off the fire, i.e. the environmental characteristics including the fire.

In some optional embodiments, the preset environmental features corresponding to the home mode may be factory-set environmental features, or the preset environmental features corresponding to the home mode may be set by a user according to a requirement of the user, for example, the user may enter a home mode setting interface, add the preset environmental features through an "add environmental feature" control of the internet of things terminal, the adding mode may include a mode of scanning a picture, for example, the user needs to add an environmental feature that the gas is not turned off, then take a picture containing fire, and perform feature extraction on the picture, so as to obtain the environmental features containing fire.

And analyzing and identifying the acquired at least one first picture, and if the at least one first picture contains preset environmental characteristics corresponding to the family mode, sending early warning information to the mobile terminal bound with the terminal of the Internet of things. The early warning information may be determined by a preset environmental characteristic, for example, if the preset environmental characteristic is an environmental characteristic that a door or a window is not closed, the early warning information may prompt the user that the door or the window is not closed at home; if the preset environmental characteristics are environmental characteristics which do not shut down fire, the early warning information can prompt the user that the fire is not shut down at home.

Optionally, the early warning information sent by the terminal of the internet of things to the mobile terminal may be sent by one or more of a short message, an instant messaging message, or an email.

Illustratively, the target contextual model is an automobile model, and the preset environmental characteristics may include one or more of the following characteristics: environmental characteristics of the automobile unclosed windows (i.e. the automobile unclosed windows and doors); environmental characteristics of the automobile with the windows not closed and rainy picture characteristics (namely the automobile with the windows not closed and the outside rainy); and (4) picture characteristics that a control screen in the automobile is not closed.

In some optional embodiments, the preset environmental features corresponding to the automobile mode may be environment features that are factory-set, or the preset environmental features corresponding to the automobile mode may be set by a user according to a requirement of the user, for example, the user may enter an automobile mode setting interface and add the preset environmental features through an "add environmental feature" control of the internet of things terminal, and the adding manner may include a manner of scanning a picture.

And analyzing and identifying the acquired at least one first picture, and if the at least one first picture contains preset environmental characteristics corresponding to the automobile mode, sending early warning information to the mobile terminal bound with the terminal of the Internet of things. The early warning information may be determined by a preset environmental characteristic, for example, if the preset environmental characteristic is an environmental characteristic that the window is not closed, the early warning information may prompt the user that the automobile does not have a window related; if the preset environmental characteristics are the characteristics of the environment that the automobile window is not closed and the environment is rainy, the early warning information can prompt the user that the automobile window is not closed and the automobile is rainy.

Optionally, the early warning information sent by the terminal of the internet of things to the mobile terminal may be sent by one or more of a short message, an instant messaging message, or an email.

Step 150, receiving a feedback instruction aiming at the early warning information from the mobile terminal;

for example, after receiving the warning information, the mobile terminal may send a feedback instruction to the internet of things terminal, trigger the internet of things terminal to obtain a control instruction corresponding to the preset environmental characteristic and a corresponding controlled device through the feedback instruction, and send the control instruction to the controlled device.

In one embodiment, the user may remotely control the closing of the window upon receiving the feedback information. After the mobile terminal receives the early warning information, the early warning information can be fed back, for example, the preset environmental characteristic is that the door and window are not closed in a home, the early warning information can include two options, whether the door and window are closed through remote control or not is judged, and if the user clicks 'yes', the mobile terminal sends a feedback instruction to the internet of things terminal to control the door and window to be closed.

Step 160, responding to the feedback instruction, and acquiring a controlled device corresponding to the preset environment characteristic and a control instruction corresponding to the preset environment characteristic;

step 170, sending the control instruction to the controlled device, so that the controlled device operates according to the control instruction.

Illustratively, the terminal of the internet of things may further obtain a control instruction corresponding to the preset environmental characteristic and a corresponding controlled device, and send the control instruction to the controlled device. For example, the current target contextual model of the terminal of the internet of things is an automobile model, if the preset environmental characteristic is the environmental characteristic of not closing the window, the corresponding controlled device can be an on-board device or the window, and the control instruction is used for controlling the window to be closed.

For another example, the current target contextual model of the terminal of the internet of things is a home model, if the preset environmental characteristic is an environmental characteristic that doors and windows are not closed at home, the corresponding controlled device is a door and window device, and the control instruction is used for controlling the doors and windows to be closed. If the preset environmental characteristic is the environmental characteristic that the gas is not turned off, the corresponding controlled device is the gas stove, and the control instruction is used for controlling the gas stove to be turned off.

In the embodiment of the application, the target contextual model in which the terminal of the internet of things is located at present is determined, at least one first picture in a preset range of the terminal of the internet of things is collected, the preset environmental feature corresponding to the target contextual model is obtained under the condition that the at least one first picture meets the environmental feature obtaining condition corresponding to the target contextual model, and the early warning information is sent to the mobile terminal bound with the terminal of the internet of things under the condition that the at least one first picture contains the preset environmental feature.

Referring to fig. 2, fig. 1 is a schematic flow chart illustrating another picture processing method according to an embodiment of the present disclosure. As shown in fig. 2, the method comprises the steps of:

step 210, determining a current target contextual model of the terminal of the internet of things, wherein the target contextual model is determined by a current scene of the terminal of the internet of things;

step 220, collecting at least one first picture in a preset range of the internet of things terminal;

step 230, acquiring a preset environmental feature corresponding to the target contextual model when the at least one first picture meets an environmental feature acquisition condition corresponding to the target contextual model;

step 240, sending early warning information to the mobile terminal bound with the terminal of the internet of things under the condition that the at least one first picture contains the preset environment characteristics.

Referring to steps 110 to 140 of the embodiment shown in fig. 1, steps 210 to 240 of this embodiment are not described herein again.

Step 250, receiving a rephoto request from the mobile terminal, wherein the rephoto request comprises a target identifier;

in one embodiment, the mobile terminal receives the warning information, which may include at least one first picture collected by the terminal of the internet of things, so that the user can view the at least one first picture, erroneous judgment is avoided, or the user can view a specific scene conveniently.

In some embodiments, the user views the at least one first picture, and if it is found that a certain first picture in the at least one first picture is not clear, or a face in the certain first picture is suspected, or the user needs to see the certain clear first picture, the user may click the first picture, and the mobile terminal responds to the click operation and sends the target identifier of the first picture to the internet of things terminal.

Step 260, acquiring target shooting information corresponding to the target identifier, wherein the target shooting information is used for representing a state of the internet of things terminal when shooting a first picture identified by the target identifier;

in this embodiment of the application, when the terminal of the internet of things shoots each first picture, the corresponding relationship between the identifier of each first picture and the shooting information of the first picture may be stored, and it can be understood that, if the target contextual models of the terminal of the internet of things are different, the content included in the shooting information is different, which specifically refers to the description of the foregoing embodiment and is not described herein again.

When the internet of things terminal receives the rephoto request containing the target identification, the target shooting information corresponding to the target identification can be obtained.

Step 270, adjusting the target shooting information, and shooting a second picture according to the adjusted target shooting information;

in the embodiment of the application, the target scene modes of the terminal of the internet of things are different, and the target shooting information is also different, and a home mode and an automobile mode are taken as examples.

If the target contextual model of the terminal of the internet of things is the automobile model, the target shooting information comprises a target rotation angle and a target shooting parameter, the target rotation angle can be a rotation angle of a camera of the terminal of the internet of things relative to a preset position when the first picture identified by the target identification is shot, and the target shooting parameter is a shooting parameter of the first picture identified by the target identification. For the purpose of making the shooting clearer, the size of the target shooting parameters can be adjusted, for example, the amplification factor of the camera is enlarged, so that the adjusted target shooting parameters are obtained, the camera of the internet of things is controlled to rotate according to the target rotation angle, the adjusted target shooting parameters are adopted to shoot a second picture, and the second picture is clearer relative to the first picture. It can be understood that the target rotation angle may also be adjusted, and the camera may be rotated according to the adjusted target rotation angle.

If the target contextual model in which the terminal of the internet of things is located is a home mode, the target shooting information includes a moving track, a target shooting position, a target rotation angle and target shooting parameters, the target shooting position can be a position of the terminal of the internet of things on the moving track when a first picture identified by the target identifier is shot, the target rotation angle is a rotation angle of a camera of the terminal of the internet of things relative to a preset position when the first picture identified by the target identifier is shot, and the target shooting parameters are shooting parameters of the first picture identified by the target identifier. For clearer shooting, the size of the target shooting parameter can be adjusted, for example, the amplification factor of the camera is enlarged, so that the adjusted target shooting parameter is obtained, the internet of things terminal is controlled to move to the target shooting position of the moving track, for example, the target shooting position can be a position moving 3 meters forwards, the camera of the internet of things terminal is controlled to rotate according to the target rotation angle, and the adjusted target shooting parameter is adopted to shoot a second picture. The second picture is clearer than the first picture. It is understood that the target photographing position and/or the target rotation angle may also be adjusted.

Step 280, sending the second picture to the mobile terminal.

In one embodiment, the internet of things terminal sends the second picture shot again to the mobile terminal, so that the user can see a certain scene in the home more clearly through the mobile terminal, and further determine whether the early warning information sent by the internet of things terminal is true or not, or the user can know some scenes in the home more clearly through the second picture. For example, if the user finds that a bank card is on the table at home through at least one first picture transmitted by the mobile terminal, but cannot determine the specific information of the bank card, the user can see clear information of the bank card through the steps.

In the embodiment of the application, remote monitoring can be achieved through the Internet of things terminal, and the user can shoot some pictures again through the mobile terminal remote control Internet of things terminal, so that the quality of the pictures looked up by the user is guaranteed, and the requirements of more scenes are met.

Referring to fig. 3, a schematic structural diagram of an image processing apparatus is provided in an embodiment of the present application. As shown in fig. 3, the picture processing apparatus may include:

the determining unit 10 is configured to determine a target contextual model in which the terminal of the internet of things is currently located, where the target contextual model is determined by a scene in which the terminal of the internet of things is currently located;

the acquisition unit 11 is used for acquiring at least one first picture within a preset range of the internet of things terminal;

a first obtaining unit 12, configured to obtain a preset environmental feature corresponding to the target contextual model when the at least one first picture meets an environmental feature obtaining condition corresponding to the target contextual model;

the sending unit 13 is configured to send early warning information to a mobile terminal bound to the internet of things terminal when the at least one first picture includes the preset environment feature;

a receiving unit 14, configured to receive a feedback instruction for the early warning information from the mobile terminal;

the instruction response unit 15 is configured to respond to the feedback instruction, and acquire a controlled device corresponding to the preset environment characteristic and a control instruction corresponding to the preset environment characteristic;

the sending unit 13 is further configured to send the control instruction to the controlled device, so that the controlled device operates according to the control instruction.

In one possible design, the target contextual model is an automobile mode or a home mode;

if the target contextual model is the automobile model, the environmental feature acquisition conditions corresponding to the target contextual model include: the at least one first picture does not contain human face features;

if the target contextual model is the home mode, the environmental feature acquisition conditions corresponding to the target contextual model include: the at least one first picture does not contain human face features; or the at least one first picture comprises preset face features, and the at least one first picture does not comprise face features except the preset face features; or the at least one first picture comprises the face features, and the face features contained in the first picture are not matched with the face features in the preset face feature set.

In one possible design, the warning information includes the at least one first picture and an identifier of each first picture;

the receiving unit is further configured to receive a rephotograph request from the mobile terminal, where the rephotograph request includes a target identifier;

the device further comprises:

a second obtaining unit, configured to obtain target shooting information corresponding to the target identifier, where the target shooting information is used to indicate a state of the internet of things terminal when shooting a first picture identified by the target identifier;

the adjusting unit is used for adjusting the target shooting information and shooting a second picture according to the adjusted target shooting information;

the sending unit 13 is further configured to send the second picture to the mobile terminal.

In one possible design, if the target contextual model is an automobile model, the target shooting information includes a target rotation angle and target shooting parameters, the target rotation angle is a rotation angle of a camera of the internet of things terminal when shooting a first picture identified by the target identifier, and the target shooting parameters are shooting parameters of the first picture identified by the target identifier;

the adjusting unit is specifically configured to adjust the size of the target shooting parameter to obtain an adjusted target shooting parameter; and controlling a camera of the terminal of the Internet of things to rotate according to the target rotation angle, and shooting a second picture by adopting the adjusted target shooting parameters.

In one possible design, if the target contextual model is a home mode, the target shooting information includes a movement track, a target shooting position, a target rotation angle and a target shooting parameter, the target shooting position is a position of the internet of things terminal on the movement track when shooting a first picture identified by the target identifier, the target rotation angle is a rotation angle of a camera of the internet of things terminal when shooting the first picture identified by the target identifier, and the target shooting parameter is a shooting parameter of the first picture identified by the target identifier;

the adjusting unit is specifically configured to adjust the size of the target shooting parameter to obtain an adjusted target shooting parameter; and controlling the Internet of things terminal to move to the target shooting position of the moving track, controlling a camera of the Internet of things terminal to rotate according to the target rotation angle, and shooting a second picture by adopting the adjusted target shooting parameters.

In one possible design, the acquisition unit 11 is specifically configured to:

if the target contextual model is an automobile mode, acquiring at least one piece of shooting information corresponding to the automobile mode, wherein the shooting information comprises a rotation angle and a shooting parameter corresponding to the rotation angle;

for each piece of shooting information in the at least one piece of shooting information, controlling a camera of the Internet of things terminal to rotate according to the rotation angle, and shooting a first picture by adopting shooting parameters corresponding to the rotation angle as the first picture corresponding to the shooting information;

and determining a first picture corresponding to each shooting information in the at least one piece of shooting information as at least one first picture in a preset range of the Internet of things terminal.

In one possible design, the acquisition unit 11 is specifically configured to:

if the target contextual model is a home mode, acquiring at least one piece of shooting information corresponding to the home mode, wherein the shooting information comprises a moving track, a shooting position on the moving track, a rotation angle corresponding to the shooting position and a shooting parameter corresponding to the shooting position;

for each piece of shooting information in the at least one piece of shooting information, controlling the internet of things terminal to move to the shooting position according to the moving track, controlling a camera of the internet of things terminal to rotate according to a rotation angle corresponding to the shooting position, and shooting a first picture by adopting shooting parameters corresponding to the shooting position as the first picture corresponding to the shooting information;

and determining a first picture corresponding to each piece of shooting information in the at least one piece of shooting information as at least one first picture in a preset range of the Internet of things terminal.

For a specific description of the embodiment of the apparatus shown in fig. 3, reference may be made to the specific description of the embodiment of the method shown in fig. 1 or fig. 2, which is not repeated herein.

Referring to fig. 4, which is a schematic structural diagram of a picture processing apparatus according to an embodiment of the present disclosure, as shown in fig. 4, the picture processing apparatus 1000 may include: at least one processor 1001, such as a CPU, at least one communication interface 1003, memory 1004, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The communication interface 1003 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1004 may optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 4, memory 1004, which is a type of computer storage medium, may include an operating system, network communication units, and program instructions.

In the picture processing device 1000 shown in fig. 4, the processor 1001 may be configured to load program instructions stored in the memory 1004 and specifically perform the following operations:

determining a target contextual model in which the terminal of the Internet of things is currently located, wherein the target contextual model is determined by a scene in which the terminal of the Internet of things is currently located;

collecting at least one first picture in a preset range of the Internet of things terminal;

acquiring a preset environmental characteristic corresponding to the target contextual model under the condition that the at least one first picture meets an environmental characteristic acquisition condition corresponding to the target contextual model;

and sending early warning information to a mobile terminal bound with the Internet of things terminal under the condition that the at least one first picture contains the preset environment characteristics.

It should be noted that, for a specific implementation process, reference may be made to specific descriptions of the method embodiment shown in fig. 1 or fig. 2, which is not described herein again.

An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps in the embodiment shown in fig. 1 or fig. 2, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 or fig. 2, which is not described herein again.

In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the present application occur, in whole or in part, when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.

One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:人工智能安防监控系统及监控方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类