Summary of the invention
In view of above content, be necessary to provide a kind of hand-held device, it can be provided with detection area and sense mode by touch-screen, sends detection area and the sense mode that is provided with to remote host, and receives the detecting result of main frame to this detection area.
In view of above content, also be necessary to provide a kind of method of utilizing hand-held device dynamic monitoring specific region, detection area and sense mode that it can be provided with according to hand-held device, detecting lost-and-found object or legacy in this detection area, and will detect the result and send hand-held device to.
A kind of hand-held device, this hand-held device comprises:
The unit is set, is used for detection area being set, and send the detection area that is provided with to main frame by touch-screen;
Selected cell is used for from the sense mode of this detection area of memory cell selection, and sends the sense mode of selecting to main frame;
Display unit, be used for when main frame according to the sense mode of selecting when described detection area detects lost-and-found object or legacy, the image that main frame is sent is presented on the touch-screen.
A kind of method of utilizing hand-held device dynamic monitoring specific region, this method comprises the steps:
Obtain detection area and sense mode that hand-held device is provided with;
At set intervals, main frame obtains the image of this detection area of camera device picked-up;
Main frame compares image that obtains and the image of storing in advance, with detecting lost-and-found object or legacy according to the sense mode that is provided with; And
When detecting lost-and-found object or legacy, main frame sends the image that obtains to hand-held device.
Compared to prior art, described hand-held device and utilize the method for its dynamic monitoring specific region, by touch-screen detection area and sense mode are set, send the detection area and the sense mode that are provided with to remote host, detection area and sense mode that main frame is provided with according to hand-held device, detecting lost-and-found object or legacy in this detection area, and will detect the result and send hand-held device to.Utilize the present invention to improve the efficient and the flexibility of security monitoring work.
Embodiment
As shown in Figure 1, be the network architecture diagram of supervisory control system preferred embodiment of the present invention.In the present embodiment, this supervisory control system 2 comprises hand-held device 12, network 14, main frame 16 and Duo Tai camera device (promptly 21,22,23).Described main frame 16 comprises detecting system 160 and storage device 162.Wherein, every camera device is positioned at a monitoring scene, so that this monitoring scene is carried out electronic monitoring, and sends the image that obtains to main frame 16 by network 14.Network 14 can be intranet (Intranet), also can be the communication network of the Internet (Internet) or other type, as GPRS, Wi-Fi/WLAN, 3G/WCDMA, 3.5G/HSDPA etc.
Described hand-held device 12 is used to be provided with detection area and sense mode, sends detection area and the sense mode that is provided with to main frame 16 by network 14.Detection area and sense mode that the detecting system 160 of main frame 16 is provided with according to hand-held device 12, detecting lost-and-found object or legacy in this detection area, and will detect the result and send hand-held device 12 to, detailed process is referring to following description.
Described camera device comprises, but be not limited to, can by software or hardware circuit mode drive patrol turntable video camera, fire ball video camera (SpeedDome) but and translation (Pan), tilt (Tilt), PTZ (Pan/Tilt/Zoom) video camera of convergent-divergent (Zoom) etc.Described hand-held device 12 can have the electronic equipment of Data Processing function for mobile phone or PDA (Personal Digital Assistant, personal digital assistant) etc.
As shown in Figure 2, be the block diagram of hand-held device 12 preferred embodiments of the present invention.In the present embodiment, this hand-held device comprises unit 121, selected cell 122, display unit 123, memory cell 124, touch-screen 125 and processor 126 is set.Described processor 126 is used to control the execution of said units 121 to 124, finishes the dynamic monitoring to the specific region.The alleged unit of the present invention is a computer program code segments of finishing a specific function, is more suitable for therefore below the present invention software description all being described with the unit in describing the implementation of software in computer than program.
Wherein, the described unit 121 that is provided with is used for by touch-screen 125 detection area being set, and sends the detection area that is provided with to main frame 16 by network 14, and idiographic flow is referring to the description of Fig. 4.Simultaneously, the detecting system 160 of main frame 16 obtains the image that detection area is set this detection area of camera device picked-up when finishing, and the image of storing this detection area is in storage device 162, as the image of storing in advance.
Described selected cell 122 is used for selecting from memory cell 124 sense mode of this detection area, and sends the sense mode of selecting to main frame 16 by network 14.In the present embodiment, described sense mode comprises: lost-and-found object sense mode and legacy sense mode.
The detecting system 160 of main frame 16 is (as 10 seconds) at set intervals, obtain the image of this detection area of camera device picked-up, according to the sense mode of above-mentioned selection, image that obtains and the image of storing are in advance compared, with detecting lost-and-found object or legacy.Idiographic flow is referring to the description of Fig. 5 and Fig. 6.
Described detecting system 160 also is used for when detecting lost-and-found object or legacy, the display unit 123 that sends the image that obtains and warning message to hand-held device 12 by network 14.
Described display unit 123 is used for this image that obtains and warning message are presented at touch-screen 125.
As shown in Figure 3, be the flow chart of preferred embodiment that utilizes the method for hand-held device 12 dynamic monitoring specific regions.
Step S1 is provided with the touch-screen 125 of unit 121 by hand-held device detection area is set, and sends the detection area that is provided with to main frame 16 by network 14, and idiographic flow is referring to the description of Fig. 4.Simultaneously, the detecting system 160 of main frame 16 obtains the image that detection area is set this detection area of camera device picked-up when finishing, and the image of storing this detection area is in storage device 162, as the image of storing in advance.
Step S2 selects the sense mode of this detection area by selected cell 122 from memory cell 124, and sends the sense mode of selecting to main frame 16 by network 14.In the present embodiment, described sense mode comprises: lost-and-found object sense mode and legacy sense mode.
Step S3, the detecting system 160 of main frame 16 is (as 10 seconds) at set intervals, obtain the image of this detection area of camera device picked-up.
Step S4, detecting system 160 judges that sense mode still is the legacy sense mode for the lost-and-found object sense mode.If sense mode is the lost-and-found object sense mode, then execution in step S5; If sense mode is the legacy sense mode, then execution in step S6.
Step S5, detecting system 160 compares image that obtains and the image of storing in advance, with the detecting lost-and-found object.Idiographic flow is referring to the description of Fig. 5.
Step S6, detecting system 160 compares image that obtains and the image of storing in advance, with the detecting legacy.Idiographic flow is referring to the description of Fig. 6.
Step S7, when detecting lost-and-found object or legacy, the display unit 123 that detecting system 160 sends the image that obtains and warning message to hand-held device 12 by network 14.Then, display unit 123 is presented at this image that obtains and warning message on the touch-screen 125.
In other embodiments, if do not detect lost-and-found object and legacy, then return step S3 and continue detecting.
As shown in Figure 4, be the particular flow sheet of step S1 among Fig. 3.
Step S10, hand-held device 12 are online to the setting page of the detecting system 160 of main frame 16 by network 14.
Step S11, the camera device by touch-screen 125 selections of hand-held device 12 are desired to watch shows referring to Fig. 7 A.
Step S12 is after choosing the camera device of desiring to watch, with the image that this camera device obtains occurring, shown in Fig. 7 B.Then,, select the pattern of choosing of detection area, choose pattern according to this and from the image that the camera device of this selection obtains, choose a detection area, shown in Fig. 7 C by touch-screen 125.When detection area choose finish after, click to set and to finish button, to finish setting.
Consult shown in Figure 8ly, the pattern of choosing of detection area comprises: single lectotype, multiselect pattern, eliminating pattern, intersect pattern and anti-lectotype etc.Wherein, single lectotype is: once choose a block as detection area; The multiselect pattern is: once choose two or more blocks as detection area; The eliminating pattern is: get rid of part zone (dash area) as detection area from a block of choosing; Crossing pattern is: keep the intersection zone of two selected block, with as detection area; Anti-lectotype is: two selected block are merged into a block, and get rid of the intersection zone of these two selected block, with the part that stays after getting rid of as detection area.
Step S13, the detecting system 160 of main frame 16 obtain and set the image that camera device when finishing absorbs the detection area of this selection, and the image of this detection area is stored in the storage device 162, as the image of storage in advance.
As shown in Figure 5, be the particular flow sheet of step S5 among Fig. 3.
Step S50, the image that input is obtained.
Step S51 compares image that obtains and the image of storing in advance, to calculate the quantity of difference pixel between the two.In the present embodiment, described difference pixel is meant RGB (Red, Green, Blue) the different pixel of rgb value of each pixel in value and the image of storing in advance of each pixel in this image that obtains.In other embodiments, described difference pixel also can be meant the different pixel of YCbCr value of each pixel in the image of the YCbCr value of each pixel in this image that obtains and storage in advance.
Step S52, whether the quantity of judging the difference pixel is greater than set point.If the quantity of difference pixel is greater than set point, execution in step S53 then; If the quantity of difference pixel is less than or equal to set point, then judging in this image that obtains does not have lost-and-found object, returns step S50.In the present embodiment, the size of this set point is: 20% of pixel total amount.
Step S53, judging in this image that obtains has lost-and-found object.
For example, consult shown in Figure 9, wherein, when on behalf of detection area, image B 1 set to finish, Cun Chu image in advance, image B 2 is represented the image of the follow-up picked-up of camera device.Article B10 among the B1 loses, and at this moment, detecting system 160 sends image B 2 to hand-held device 12, image B 2 is presented on the touch-screen 125, and encloses warning message (may lose as article), shown in B3.
As shown in Figure 6, be the particular flow sheet of step S6 among Fig. 3.
Step S60, the image that input is obtained.
Step S61 compares image that obtains and the image of storing in advance, to calculate the quantity of difference pixel between the two.In the present embodiment, described difference pixel is meant RGB (Red, Green, Blue) the different pixel of rgb value of each pixel in value and the image of storing in advance of each pixel in this image that obtains.In other embodiments, described difference pixel also can be meant the different pixel of YCbCr value of each pixel in the image of the YCbCr value of each pixel in this image that obtains and storage in advance.
Step S62, whether the quantity of judging the difference pixel is greater than set point.If the quantity of difference pixel is greater than set point, execution in step S63 then; If the quantity of difference pixel is less than or equal to set point, then judging in this image that obtains does not have legacy, returns step S60.In the present embodiment, the size of this set point is: 20% of pixel total amount.
Step S63 utilizes personage's detection techniques (People Detection Method) and detecting moving object technology (Moving Object Detection Method), detecting personage and mobile object from above-mentioned difference pixel.In the present embodiment, described personage's detection techniques adopts the Gentleboost algorithm.
Step S64 judges whether to detect personage or mobile object.If detect personage or mobile object, then judging in this image that obtains does not have legacy, returns step S60; If do not detect personage or mobile object, execution in step S65 then.In other embodiments, can also stipulate: if (as 5 minutes) do not detect personage or mobile object, then execution in step S65 in the default time.
Step S65, judging in this image that obtains has legacy.
For example, consult shown in Figure 10, wherein, when on behalf of detection area, image C 1 set to finish, Cun Chu image in advance, image C 2 and C3 represent the image of the follow-up picked-up of camera device.Owing in the image C 2 personage is arranged, so process decision chart is as there not being legacy among the C2.And do not have the personage in the image C 3, so process decision chart is as among the C3 legacy C30 (compared to image C 1) being arranged.At this moment, detecting system 160 sends image C 3 to hand-held device 12, image C 3 is presented on the touch-screen 125, and encloses warning message (as finding to leave over article), consults shown in the C4.
It should be noted that at last, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.