Summary of the invention
In view of above content, be necessary to provide a kind of hand-held device, it can arrange detection area and sense mode by touch-screen, sends the detection area of setting and sense mode to remote host, and Receiving Host is to the detecting result of 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 arrange according to hand-held device, detecting lost-and-found object or legacy in this detection area, and will detect result and send hand-held device to.
A kind of hand-held device, this hand-held device comprises:
Setting unit, for by touch-screen, detection area being set, and send the detection area of setting to main frame;
Selected cell, for select the sense mode of this detection area from memory cell, and send the sense mode of selection to main frame;
Display unit, 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 touch-screen.
A kind of method of utilizing hand-held device dynamic monitoring specific region, the method comprises the steps:
Obtain detection area and sense mode that hand-held device arranges;
At set intervals, main frame obtains the image of this detection area of camera device picked-up;
Main frame, according to the sense mode arranged, compares the image obtained with pre-stored image, to detect lost-and-found object or legacy; And
When detecting lost-and-found object or legacy, main frame sends the image obtained 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 of setting and sense mode to remote host, detection area and sense mode that main frame arranges according to hand-held device, detecting lost-and-found object or legacy in this detection area, and will detect result and send hand-held device to.Efficiency and the flexibility of security monitoring work that utilized the present invention to improve.
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 (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 to electronic monitoring, and sends by network 14 image obtained to main frame 16.Network 14 can be intranet (Intranet), can be also 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, for detection area and sense mode are set, sends the detection area of setting and sense mode to main frame 16 by network 14.Detection area and sense mode that the detecting system 160 of main frame 16 arranges according to hand-held device 12, detecting lost-and-found object or legacy in this detection area, and will detect 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 be driven by software or hardware circuit mode 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 for mobile phone or PDA (Personal Digital Assistant, personal digital assistant) etc. the electronic equipment of data processing capacity.
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 setting unit 121, selected cell 122, display unit 123, memory cell 124, touch-screen 125 and processor 126.Described processor 126, for controlling the execution of said units 121 to 124, completes the dynamic monitoring to specific region.The alleged unit of the present invention has been the computer program code segments of a specific function, than program, is more suitable for, in describing the implementation of software in computer, therefore below the present invention, software description all being described with unit.
Wherein, described setting unit 121 is for by touch-screen 125, detection area being set, and sends the detection area of setting to main frame 16 by network 14, and idiographic flow is referring to the description of Fig. 4.Simultaneously, the image of this detection area of camera device picked-up that the detecting system 160 of main frame 16 obtains detection area while having set, and the image of storing this detection area is in storage device 162, as pre-stored image.
Described selected cell 122 is for select the sense mode of these detection area from memory cell 124, and sends the sense mode of selection 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, the image that obtains and pre-stored image are 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 is also 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 presented at touch-screen 125 for image and the warning message that this is obtained.
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, setting unit 121 arranges detection area by the touch-screen 125 of hand-held device, and sends the detection area of setting to main frame 16 by network 14, and idiographic flow is referring to the description of Fig. 4.Simultaneously, the image of this detection area of camera device picked-up that the detecting system 160 of main frame 16 obtains detection area while having set, and the image of storing this detection area is in storage device 162, as pre-stored image.
Step S2 selects the sense mode of this detection area, and sends the sense mode of selection to main frame 16 by network 14 from memory cell 124 by selected cell 122.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 judgement sense modes are lost-and-found object sense mode or legacy sense mode.If sense mode is the lost-and-found object sense mode, perform step S5; If sense mode is the legacy sense mode, perform step S6.
Step S5, detecting system 160 compares the image that obtains and pre-stored image, with the detecting lost-and-found object.Idiographic flow is referring to the description of Fig. 5.
Step S6, detecting system 160 compares the image that obtains and pre-stored image, 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 obtains this image and warning message are presented on touch-screen 125.
In other embodiments, if do not detect lost-and-found object and legacy, return to step S3 and continue detecting.
As shown in Figure 4, be the particular flow sheet of step S1 in Fig. 3.
Step S10, hand-held device 12 is online to the setting page of the detecting system 160 of main frame 16 by network 14.
Step S11, select by the touch-screen 125 of hand-held device 12 camera device of wanting to watch, and referring to Fig. 7 A, shows.
Step S12, after choosing the camera device of wanting to watch, by the image that occurs that this camera device obtains, shown in Fig. 7 B.Then, by touch-screen 125, select the pattern of choosing of detection area, choose pattern according to this and choose a detection area from the image that the camera device of this selection obtains, shown in Fig. 7 C.After detection area has been chosen, click and set button, to complete setting.
Consult shown in Fig. 8, the pattern of choosing of detection area comprises: single choice pattern, multiselect pattern, eliminating pattern, crossing pattern and anti-lectotype etc.Wherein, the single choice pattern 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: retain the intersection zone of two selected block, using as detection area; Anti-lectotype is: two selected block are merged into to a block, and get rid of the intersection zone of these two selected block, the part stayed after getting rid of is as detection area.
Step S13, the detecting system 160 of main frame 16 obtains camera device while having set and absorbs the image of the detection area of this selection, and the image of this detection area is stored in storage device 162, as pre-stored image.
As shown in Figure 5, be the particular flow sheet of step S5 in Fig. 3.
Step S50, the image that input is obtained.
Step S51, compare the image that obtains and pre-stored image, to calculate the quantity of difference pixel between the two.In the present embodiment, described difference pixel refers to that the RGB (Red, Green, Blue) of each pixel in this image obtained is worth the pixel different from the rgb value of each pixel in pre-stored image.In other embodiments, the pixel that the YCbCr value that described difference pixel also can refer to each pixel in this image obtained is different from the YCbCr value of each pixel in pre-stored image.
Step S52, judge whether the quantity of difference pixel is greater than set point.If the quantity of difference pixel is greater than set point, perform step S53; If the quantity of difference pixel is less than or equal to set point, judge in this image obtained and there is no lost-and-found object, return to step S50.In the present embodiment, the size of this set point is: 20% of pixel total amount.
Step S53, judge in this image obtained lost-and-found object arranged.
For example, consult shown in Fig. 9, wherein, image B 1 represents when detection area has been set, pre-stored image, and image B 2 represents the image of the follow-up picked-up of camera device.Article B10 in B1 loses, and now, detecting system 160 sends image B 2 to hand-held device 12, image B 2 is presented on touch-screen 125, and encloses warning message (as article may be lost), shown in B3.
As shown in Figure 6, be the particular flow sheet of step S6 in Fig. 3.
Step S60, the image that input is obtained.
Step S61, compare the image that obtains and pre-stored image, to calculate the quantity of difference pixel between the two.In the present embodiment, described difference pixel refers to that the RGB (Red, Green, Blue) of each pixel in this image obtained is worth the pixel different from the rgb value of each pixel in pre-stored image.In other embodiments, the pixel that the YCbCr value that described difference pixel also can refer to each pixel in this image obtained is different from the YCbCr value of each pixel in pre-stored image.
Step S62, judge whether the quantity of difference pixel is greater than set point.If the quantity of difference pixel is greater than set point, perform step S63; If the quantity of difference pixel is less than or equal to set point, judge in this image obtained and there is no legacy, return to step S60.In the present embodiment, the size of this set point is: 20% of pixel total amount.
Step S63, utilize 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, judge whether to detect personage or mobile object.If detect personage or mobile object, judge in this image obtained and there is no legacy, return to step S60; If do not detect personage or mobile object, perform step S65.In other embodiments, can also stipulate: if (as 5 minutes) do not detect personage or mobile object within the default time, perform step S65.
Step S65, judge in this image obtained legacy arranged.
For example, consult shown in Figure 10, wherein, image C 1 represents when detection area has been set, pre-stored image, and image C 2 and C3 represent the image of the follow-up picked-up of camera device.Owing in image C 2, the personage being arranged, so process decision chart is as there is no legacy in C2.And there is no the personage in image C 3, so process decision chart is as in C3 legacy C30 (compared to image C 1) being arranged.Now, detecting system 160 sends image C 3 to hand-held device 12, image C 3 is presented on touch-screen 125, and encloses warning message (as found to leave over article), consults shown in C4.
Finally it should be noted that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can modify 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.