WO2018133753A1 - 一种强光下的设备保护方法及装置 - Google Patents

一种强光下的设备保护方法及装置 Download PDF

Info

Publication number
WO2018133753A1
WO2018133753A1 PCT/CN2018/072565 CN2018072565W WO2018133753A1 WO 2018133753 A1 WO2018133753 A1 WO 2018133753A1 CN 2018072565 W CN2018072565 W CN 2018072565W WO 2018133753 A1 WO2018133753 A1 WO 2018133753A1
Authority
WO
WIPO (PCT)
Prior art keywords
imaging device
instruction
image
shutter
light source
Prior art date
Application number
PCT/CN2018/072565
Other languages
English (en)
French (fr)
Inventor
杨伟
郭海训
宋其毅
唐杰
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Priority to US16/333,119 priority Critical patent/US10992871B2/en
Priority to EP18742186.2A priority patent/EP3573328B1/en
Publication of WO2018133753A1 publication Critical patent/WO2018133753A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01LSEMICONDUCTOR DEVICES NOT COVERED BY CLASS H10
    • H01L27/00Devices consisting of a plurality of semiconductor or other solid-state components formed in or on a common substrate
    • H01L27/14Devices consisting of a plurality of semiconductor or other solid-state components formed in or on a common substrate including semiconductor components sensitive to infrared radiation, light, electromagnetic radiation of shorter wavelength or corpuscular radiation and specially adapted either for the conversion of the energy of such radiation into electrical energy or for the control of electrical energy by such radiation
    • H01L27/144Devices controlled by radiation
    • H01L27/146Imager structures
    • H01L27/14601Structural or functional details thereof
    • H01L27/14603Special geometry or disposition of pixel-elements, address-lines or gate-electrodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/75Circuitry for compensating brightness variation in the scene by influencing optical camera components

Definitions

  • the present application relates to the technical field of image acquisition devices, and in particular, to a device protection method and device under strong light.
  • the photosensitive element in the image pickup apparatus is a precision part, and if the photosensitive element is aligned with a strong light source, the photosensitive element is easily damaged by strong light.
  • the purpose of the embodiments of the present application is to provide a device protection method and device under strong light to reduce damage caused by strong light to the photosensitive element in the imaging device.
  • the embodiment of the present application discloses a device protection method under strong light, including:
  • a light-shielding command is sent to cause the photosensitive element of the image pickup apparatus to avoid the light source.
  • the light-shielding instruction is an instruction to rotate the imaging device or an instruction to turn off the shutter of the imaging device; and the step of transmitting the light-shielding instruction includes:
  • the light-shielding instruction is an instruction to rotate the imaging device or an instruction to turn off the shutter of the imaging device; and the step of transmitting the light-shielding instruction includes:
  • an instruction to turn off the shutter of the imaging device is sent to cause the shutter to block the photosensitive element of the image pickup apparatus.
  • the step of sending an instruction to rotate the imaging device includes:
  • the method further includes:
  • the returning instruction carries return path information, so that the imaging device returns to an initial position according to the return path information, where the initial position is:
  • the imaging device performs a position before the rotation based on the rotation path information.
  • the method may further include:
  • the method further includes:
  • the method further includes:
  • Start timing after the second preset duration, send a shutter open command, and acquire a third image acquired by the camera device;
  • the step of determining whether the imaging device can be rotated may include:
  • the hardware configuration information of the imaging device is read, and whether the imaging device can be rotated is determined according to the hardware configuration information.
  • the step of sending an instruction to rotate the imaging device may include:
  • the rotation path information carries the rotation path information, so that the imaging device rotates in a direction away from the light source according to the rotation path information.
  • a device protection device under strong light including:
  • a first acquiring module configured to acquire a gray value of a pixel in the first image collected by the imaging device
  • a first determining module configured to determine a pixel point whose gray value is greater than the first preset threshold as the target pixel point
  • a first determining module configured to determine whether the number of target pixel points is greater than a second preset threshold; if yes, triggering the first sending module;
  • the first sending module is configured to send a light-shielding instruction to prevent the photosensitive element of the imaging device from avoiding the light source.
  • the light shielding instruction is an instruction to rotate the imaging device or an instruction to turn off the shutter of the imaging device; when the light shielding instruction is an instruction to rotate the imaging device, the first sending module includes a first sending submodule; When the light shielding instruction is an instruction to turn off the shutter of the imaging device, the first sending module includes a second sending submodule,
  • the first sending submodule is configured to send an instruction to rotate the imaging device, so that the imaging device rotates in a direction away from the light source according to an instruction of the rotating imaging device;
  • the second sending submodule is configured to send an instruction to turn off the shutter of the imaging device, so that the shutter blocks the photosensitive element of the imaging device.
  • the light-shielding instruction is an instruction to rotate the imaging device or an instruction to turn off the shutter of the imaging device;
  • the first sending module includes a determining sub-module, a third transmitting sub-module, and a fourth transmitting sub-module;
  • the determining sub-module is configured to determine whether the imaging device is rotatable; if yes, triggering the third sending sub-module; if not, triggering the fourth transmitting sub-module;
  • the third sending submodule is configured to send an instruction to rotate the imaging device, so that the imaging device rotates in a direction away from the light source according to an instruction of the rotating imaging device;
  • the fourth transmitting submodule is configured to send an instruction to turn off the shutter of the imaging device, so that the shutter blocks the photosensitive element of the imaging device.
  • the first sending submodule or the third sending submodule includes:
  • a first determining unit configured to determine a location of the light source according to the first image
  • a second determining unit configured to determine a rotation path of the imaging device away from the position
  • a sending unit configured to send an instruction to rotate the imaging device, where the instruction of the rotating imaging device carries the rotation path information, so that the imaging device rotates in a direction away from the position according to the rotation path information.
  • the device further includes:
  • a third sending module configured to start a timing after the third sending submodule sends an instruction to rotate the imaging device, and send a return instruction after the third preset duration; the returning instruction carries the return path information, And causing the imaging device to return to the initial position according to the return path information, where the initial position is: a position before the imaging device performs rotation according to the rotation path information.
  • the device further includes:
  • a fifth acquiring module configured to acquire a fourth image collected by the imaging device, and a gray value of a pixel in the fourth image
  • a fourth determining module configured to determine a pixel point whose gray value is greater than the first preset threshold as a target pixel point
  • the fourth determining module is configured to determine whether the number of target pixel points is greater than the second preset threshold; if yes, trigger the sending unit.
  • the device further includes:
  • a first timing module configured to start timing after the first sending submodule sends an instruction to rotate the imaging device, and trigger a second acquiring module after the first preset duration
  • a second acquiring module configured to acquire a second image collected by the imaging device
  • a third acquiring module configured to acquire a gray value of a pixel in the second image
  • a second determining module configured to determine a pixel point whose gray value is greater than the first preset threshold as a target pixel point
  • the second determining module is configured to determine whether the number of target pixel points is greater than the second preset threshold; if yes, triggering the second sending sub-module.
  • the device further includes:
  • a second timing module configured to start timing after the second sending submodule or the fourth sending submodule sends an instruction to close the shutter of the imaging device, and trigger the second sending module after the second preset duration
  • a second sending module configured to send an open shutter command, and acquire a third image collected by the camera device
  • a fourth acquiring module configured to acquire a gray value of a pixel in the third image
  • a third determining module configured to determine a pixel point whose gray value is greater than the first preset threshold as a target pixel point
  • the third determining module is configured to determine whether the number of target pixel points is greater than the second preset threshold; if yes, triggering the second sending sub-module.
  • an embodiment of the present application further discloses an image capturing apparatus, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
  • a memory for storing a computer program
  • the processor when used to execute a program stored on the memory, implements the device protection method under any of the above-mentioned strong light.
  • the embodiment of the present application further discloses a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, any one of the above-mentioned strong light is realized.
  • Device protection method when the computer program is executed by the processor, any one of the above-mentioned strong light is realized.
  • the embodiment of the present application further discloses a computer program, which is implemented to implement the device protection method under any of the above-mentioned strong light.
  • FIG. 1 is a schematic diagram of a first process of a device protection method under strong light according to an embodiment of the present application
  • FIG. 2 is a second schematic flowchart of a device protection method under strong light according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a third process of a device protection method under strong light according to an embodiment of the present application.
  • FIG. 4 is a fourth schematic flowchart of a device protection method under strong light according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a device protection device under strong light according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an image capturing apparatus according to an embodiment of the present disclosure.
  • the embodiment of the present application provides a device protection method and device under strong light.
  • the method and the device can be applied to an image capturing device, and can also be applied to an electronic device that is separately provided, which is not limited.
  • the device protection method under strong light provided by the embodiment of the present application is first described in detail below.
  • FIG. 1 is a schematic diagram of a first process of a device protection method under strong light according to an embodiment of the present disclosure, including:
  • S101 Acquire a gray value of each pixel in the first image acquired by the imaging device.
  • the device for performing the present solution may be an imaging device, and the imaging device may analyze an image collected by itself to acquire a gray value of each pixel in the image.
  • the device for performing the solution may also be a separately set electronic device, and the electronic device is communicably connected with the camera device, acquires an image captured by the camera device, and analyzes the image to obtain a gray value of each pixel in the image. .
  • the first preset threshold may be set according to actual conditions. For example, the photosensitive element in the imaging device is very sensitive, and the light is slightly strong, which may cause damage thereto. In this case, the first preset threshold may be set. Lower; if the photosensitive element in the camera device is not very sensitive, only strong light will damage it. In this case, the first preset threshold can be set higher.
  • S103 Determine whether the number of target pixel points is greater than a second preset threshold, and if yes, execute S103.
  • the second preset threshold may also be set according to actual conditions. For example, the photosensitive element in the imaging device is very sensitive, and the light is slightly strong, which may cause damage thereto. In this case, the second preset threshold may be set. The ground is lower; if the photosensitive element in the camera device is not very sensitive, only strong light will damage it. In this case, the second preset threshold can be set higher.
  • S104 Send a light-shielding instruction to prevent the photosensitive element of the imaging device from avoiding the light source.
  • the light-shielding instruction may be an instruction to rotate the imaging device or an instruction to turn off the shutter of the imaging device;
  • S104 may include:
  • S104 may include: determining whether the imaging device is rotatable; if yes, transmitting an instruction to rotate the imaging device to rotate the imaging device in a direction away from the light source; if not, transmitting the closed imaging device An instruction of the shutter to close the shutter and block the photosensitive element of the image pickup apparatus.
  • the first solution the device performing the solution may determine, in the first image, an image region whose gray value is greater than a third preset threshold as a position of the light source in the first image; Determining, by the position of the light source in the first image, a rotation path of the imaging device facing away from the light source; transmitting an instruction to rotate the imaging device, wherein the instruction of the rotating imaging device carries the rotation path information, so as to The imaging device rotates in a direction away from the light source based on the rotation path information.
  • the gradation value of the pixel at the position where the light source is located in the first image is large, and therefore, the region having a large gradation value can be identified in the first image, and the region is used as the position of the light source in the first image.
  • an area where the gray value of the pixel point is greater than the third preset threshold may be identified.
  • an area where the average gray value of the pixel point is greater than a third preset threshold may be identified as a light source.
  • the specific recognition method is not limited.
  • the rotational path of the imaging device is determined based on the position of the light source in the first image.
  • the rotation path may include a rotation angle and a rotation direction.
  • the rotation angle may be a fixed value, for example, 180 degrees, 90 degrees, etc., and is not limited in particular; or the rotation angle may also be a dynamic value, for example, the rotation angle may be determined according to the position of the light source in the first image.
  • the direction of rotation can be preset, for example, it can be rotated clockwise horizontally, or can be rotated counterclockwise horizontally, or can be rotated up and down.
  • the specific direction of rotation is not limited, or it can be determined according to the position of the light source in the first image.
  • Direction of rotation is not limited, or it can be determined according to the position of the light source in the first image.
  • the circumscribed rectangle coordinates of the light source in the first image may be determined; then, according to the circumscribed rectangle coordinates, a shortest path for removing the field of view of the light source is calculated, and the shortest path includes a rotation angle and a rotation direction; Then the rotation path is determined.
  • the rotation direction of the imaging device is horizontal rotation, which can be rotated clockwise or counterclockwise; assuming that the correspondence between the size of the circumscribed rectangle and the rotation angle is stored in advance, the larger the circumscribed rectangle, the more the rotation angle Large; assuming that the first image is 160 mm long and 120 mm high, it is determined that the circumscribed rectangle coordinates of the light source in the first image are located in the upper left corner, and the image coordinate system of the first image is assumed to be the coordinate point of the top left corner, and four points of the circumscribed rectangle The coordinates are (0,0), (0,1), (1,0), (1,1).
  • the position of the light source in the first image is the upper left corner, and the direction away from the light source is rotated to the right, or clockwise; here, assuming that the rotation angle determined according to the size of the circumscribed rectangle is 10 degrees, the rotating imaging apparatus is transmitted.
  • the rotation path information carried in the instruction includes: 10 degrees clockwise rotation.
  • the device performing the solution sends an instruction to turn off the shutter of the imaging device to the imaging device, and after receiving the instruction to close the shutter of the imaging device, the imaging device turns off the shutter of the camera, so that the shutter can block the light source and form a pair of photosensitive elements. Occlusion protection.
  • FIG. 2 is a second schematic flowchart of a method for protecting a device in a strong light according to an embodiment of the present application.
  • the embodiment shown in FIG. 2 is based on the embodiment shown in FIG. 1 of the present application, and S104 may include:
  • S104A Send an instruction to rotate the imaging device.
  • S104B Start timing, when the first preset duration is reached, or after the first preset duration, the second image acquired by the imaging device is acquired.
  • S104C Acquire a gray value of a pixel in the second image.
  • S104D Determine a pixel point whose gray value is greater than the first preset threshold as a target pixel point.
  • S104E Determine whether the number of target pixel points is greater than the second preset threshold; if yes, execute S104F.
  • S104F Send an instruction to turn off the shutter of the imaging device so that the shutter blocks the photosensitive element of the imaging device.
  • the instruction to rotate the imaging device is sent first, and the preset duration after the instruction to rotate the imaging device is sent, for example, 3s, the imaging is acquired again.
  • the image captured by the device the image acquired in S101 is referred to as a first image, and the image acquired in S104B is referred to as a second image. It can be understood that the time corresponding to the first image is earlier than the time corresponding to the second image.
  • the processing of the second image is similar to the processing of the first image, determining whether the target pixel in the second image is greater than a second preset threshold, and if greater, indicating that the imaging device is still under strong light, that is, imaging The device cannot reduce the glare by turning it.
  • an instruction to turn off the shutter of the imaging device is transmitted to the imaging device, and after receiving the instruction to close the shutter of the imaging device, the imaging device closes the shutter of the self, so that the shutter can block the light source and form an occlusion protection for the photosensitive element.
  • the recording may be performed.
  • the scheme is executed later, the number of the target pixel points is determined to be greater than that in the S103.
  • the instruction to rotate the imaging device can no longer be sent, and the instruction to turn off the shutter of the imaging device can be directly sent.
  • the method may further include:
  • the second preset duration after the instruction to turn off the shutter of the imaging device is sent to the imaging device (the second preset duration may be the same as or different from the first preset duration), for example, after 2 minutes, sent to the imaging device. Open the shutter command.
  • the strong light source may not be in the field of view, in which case the image acquired by the imaging device is acquired again.
  • the image acquired at this time is referred to as a third image. It can be understood that the time corresponding to the third image is later than the time corresponding to the second image and later than the time corresponding to the first image.
  • the processing of the third image is similar to the processing of the second image, determining whether the target pixel in the third image is greater than a second preset threshold: if greater than, indicating that the imaging device is still under strong light, at this time, the sending is off.
  • the camera shutter command re-closes the shutter; if it is smaller, it means that the strong light source is no longer in the field of view, at this time, the shutter is no longer closed.
  • FIG. 3 is a third schematic flowchart of a method for protecting a device in a strong light according to an embodiment of the present application.
  • the embodiment shown in FIG. 3 is based on the embodiment shown in FIG. 1 of the present application, and S104 may include:
  • S104G determining whether the imaging device is rotatable; if yes, executing S104H, and if not, executing S104I.
  • thermo imaging device e.g., detecting whether a rotating device is provided in the thermal imaging device, or rotating the module, etc., if any, indicating that the thermal imaging device is rotatable.
  • the hardware configuration information of the thermal imaging device may be read, and whether the thermal imaging device can be rotated according to the hardware configuration information, etc., the specific determination manner is not limited.
  • S104H determining a position of the light source according to the first image; determining a rotation path of the imaging device facing away from the position; and transmitting an instruction to rotate the imaging device, where the instruction of the rotating imaging device carries the rotation path information, Taking the imaging device to rotate in a direction away from the position according to the rotation path information;
  • S104I Send an instruction to close the shutter of the imaging device to block the shutter from the photosensitive element of the imaging device.
  • the device performing the present solution may determine the position of the light source according to the first image acquired above, and then determine a rotation path of the imaging device away from the position, and send an instruction to rotate the imaging device, where the instruction of the rotating imaging device is Carrying the rotation path information, the imaging device receives the instruction to rotate the imaging device, and then rotates in a direction away from the position of the light source according to the rotation path information.
  • the circumscribed rectangle coordinates of the light source in the first image may be determined; then, according to the circumscribed rectangle coordinates, the shortest path for removing the field of view of the light source is calculated; thus, determining The turning path.
  • the device performing the present solution may send an instruction to close the imaging device shutter to the imaging device, and the imaging device closes the shutter after receiving the instruction to close the shutter of the imaging device, so that the shutter can block the light source and form Occlusion protection of the photosensitive element.
  • the method may further include:
  • the second preset duration after the instruction to turn off the shutter of the imaging device is sent to the imaging device (the second preset duration may be the same as or different from the first preset duration), for example, after 2 minutes, sent to the imaging device. Open the shutter command.
  • the strong light source may not be in the field of view, in which case the image acquired by the imaging device is acquired again.
  • the image acquired at this time is referred to as a third image. It can be understood that the time corresponding to the third image is later than the time corresponding to the second image and later than the time corresponding to the first image.
  • the processing of the third image is similar to the processing of the second image, determining whether the target pixel in the third image is greater than a second preset threshold: if greater than, indicating that the imaging device is still under strong light, at this time, the sending is off.
  • the camera shutter command re-closes the shutter; if it is smaller, it means that the strong light source is no longer in the field of view, at this time, the shutter is no longer closed.
  • FIG. 4 is a fourth schematic flowchart of a method for protecting a device in a strong light according to an embodiment of the present disclosure.
  • the embodiment shown in FIG. 4 is based on the embodiment shown in FIG. 1 of the present application, and S104 may include:
  • S104J Sends an instruction to rotate the imaging device.
  • S104K Start timing, when a third preset duration is reached, or after a third preset duration, a return command is sent.
  • the returning instruction carries the return path information, so that the imaging device returns to the initial position according to the return path information, where the initial position is: a position before the imaging device performs the rotation according to the rotation path information.
  • S104L Acquire a fourth image acquired by the imaging device and a gray value of a pixel in the fourth image.
  • S104M Determine a pixel point whose gray value is greater than the first preset threshold as a target pixel point.
  • S104N determining whether the number of target pixel points is greater than the second preset threshold; if yes, returning to execute S104J, if not, indicating that there is no strong light source in the field of view of the imaging device, and the process ends.
  • the instruction to rotate the imaging device is sent first, and the preset duration after the instruction to rotate the imaging device is sent, for example, 1 minute later, and then sent.
  • the instruction is returned to return the imaging device to the initial position, that is, the position before the imaging device performs the rotation according to the above-described rotation path information.
  • the image acquired by the imaging device is acquired again.
  • the image acquired in S104L is referred to as a fourth image, and it can be understood that the time corresponding to the first image is earlier than the time corresponding to the fourth image.
  • the processing of the fourth image is similar to the processing of the first image, determining whether the target pixel in the fourth image is greater than a second predetermined threshold, and if greater, indicating that the imaging device is still under strong light. In this case, it means that the strong light source is still present, and the instruction to rotate the imaging device is sent to the imaging device again to deviate from the strong light source.
  • S104K-S104N in FIG. 4 may also be added based on the embodiment shown in FIG. 3, S104K-S104N is executed after S104H, and when S104N determines that the result is YES, it returns to S104H, and when S104N determines that the result is NO, the flow ends. .
  • the specific process is similar and will not be described again.
  • the embodiment of the present application further provides a device protection device under strong light.
  • FIG. 5 is a schematic structural diagram of a device protection device under strong light according to an embodiment of the present disclosure, including:
  • the first obtaining module 501 is configured to acquire a gray value of a pixel in the first image collected by the imaging device;
  • the first determining module 502 is configured to determine, as the target pixel point, a pixel point whose gray value is greater than the first preset threshold;
  • the first determining module 503 is configured to determine whether the number of target pixel points is greater than a second preset threshold; if yes, triggering the first sending module 504;
  • the first sending module 504 is configured to send a light-shielding instruction to prevent the photosensitive element of the imaging device from avoiding the light source.
  • the light-shielding instruction is an instruction to rotate the imaging device or an instruction to turn off the shutter of the imaging device; when the light-shielding instruction is an instruction to rotate the imaging device, the first transmitting module includes the first transmitter a module, when the light-shielding instruction is an instruction to turn off the shutter of the imaging device, the first sending module includes a second sending sub-module,
  • a first sending submodule configured to send an instruction to rotate the imaging device, so that the imaging device rotates in a direction away from the light source according to an instruction of the rotating imaging device;
  • a second sending submodule configured to send an instruction to close the shutter of the imaging device, so that the shutter blocks the photosensitive element of the imaging device.
  • the light-shielding instruction is an instruction to rotate the imaging device or an instruction to turn off the shutter of the imaging device;
  • the first sending module 504 includes a determining sub-module, a third transmitting sub-module, and a fourth transmitting sub-module (in the figure) Not shown), where
  • the determining sub-module is configured to determine whether the imaging device is rotatable; if yes, triggering the third sending sub-module; if not, triggering the fourth transmitting sub-module;
  • the third sending submodule is configured to send an instruction to rotate the imaging device, so that the imaging device rotates in a direction away from the light source according to an instruction of the rotating imaging device;
  • the fourth transmitting submodule is configured to send an instruction to turn off the shutter of the imaging device, so that the shutter blocks the photosensitive element of the imaging device.
  • the first sending submodule or the third sending submodule may include: a first determining unit, a second determining unit, and a sending unit (not shown), where
  • a first determining unit configured to determine a location of the light source according to the first image
  • a second determining unit configured to determine a rotation path of the imaging device away from the position
  • a sending unit configured to send an instruction to rotate the imaging device, where the instruction of the rotating imaging device carries the rotation path information, so that the imaging device rotates in a direction away from the position according to the rotation path information.
  • the device may further include:
  • a third sending module (not shown), configured to start timing after the third sending submodule sends an instruction to rotate the imaging device, and send a return instruction after the third preset duration; after the returning instruction Carrying return path information, so that the imaging device returns to the initial position according to the return path information, where the initial position is: a position before the imaging device performs rotation according to the rotation path information;
  • the apparatus may further include: a fifth obtaining module, a fourth determining module, and a fourth determining module (not shown), wherein
  • a fifth acquiring module configured to acquire a fourth image collected by the imaging device, and a gray value of a pixel in the fourth image
  • a fourth determining module configured to determine a pixel point whose gray value is greater than the first preset threshold as a target pixel point
  • the fourth determining module is configured to determine whether the number of target pixel points is greater than the second preset threshold; if yes, trigger the sending unit.
  • the device may further include: a first timing module, a second acquiring module, a third obtaining module, a second determining module, and a second determining module (not shown), where
  • the first timing module is configured to start timing after the first sending submodule sends an instruction to rotate the imaging device, and trigger the second acquiring module after the first preset duration;
  • a second acquiring module configured to acquire a second image collected by the imaging device
  • a third acquiring module configured to acquire a gray value of a pixel in the second image
  • a second determining module configured to determine a pixel point whose gray value is greater than the first preset threshold as a target pixel point
  • the second determining module is configured to determine whether the number of target pixel points is greater than the second preset threshold; if yes, triggering the second sending sub-module.
  • the apparatus may further include: a second timing module, a second sending module, a fourth obtaining module, a third determining module, and a third determining module (not shown), wherein
  • a second timing module configured to start timing after the second sending submodule or the fourth sending submodule sends an instruction to close the shutter of the imaging device, and trigger the second sending module after the second preset duration
  • a second sending module configured to send an open shutter command, and acquire a third image collected by the camera device
  • a fourth acquiring module configured to acquire a gray value of a pixel in the third image
  • a third determining module configured to determine a pixel point whose gray value is greater than the first preset threshold as a target pixel point
  • the third determining module is configured to determine whether the number of target pixel points is greater than the second preset threshold; if yes, triggering the second sending sub-module.
  • the embodiment of the present application further provides an image capturing apparatus, as shown in FIG. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 pass through the communication bus 604.
  • an image capturing apparatus as shown in FIG. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 pass through the communication bus 604.
  • the processor 601 is configured to implement the device protection method under any of the above-mentioned strong light when executing the program stored on the memory 603.
  • the imaging device further includes components such as a photosensitive element, a shutter, and the like (not shown), and other components of the imaging device are not described in the embodiment of the present application.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, implements any device protection method under any strong light.
  • the embodiment of the present application further provides a computer program, which is implemented to implement the device protection method under any of the above-mentioned strong light.
  • the various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
  • the device protection device embodiment under the strong light shown in FIG. 5, the imaging device embodiment shown in FIG. 6, the computer readable storage medium embodiment, and the computer program embodiment are basically similar to Figure 1-4 shows an embodiment of the device protection method under strong light, so the description is relatively simple.
  • related parts refer to the description of the embodiment of the device protection method under strong light as shown in Figure 1-4.

Abstract

本申请实施例公开了一种强光下的设备保护方法及装置,根据摄像设备采集的图像中目标像素点(灰度值大于第一预设阈值的像素点)的数量,判断该图像中是否存在强光源,如果存在,表示摄像设备中的感光元件正对准强光源。这种情况下,发送避光指令,以使摄像设备的感光元件避开光源,降低了强光对摄像设备中感光元件造成的损伤。

Description

一种强光下的设备保护方法及装置
本申请要求于2017年1月17日提交中国专利局、申请号为201710031314.1、发明名称为“一种强光下的设备保护方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及图像采集设备技术领域,特别涉及一种强光下的设备保护方法及装置。
背景技术
摄像设备的工作环境中经常会有强光照射。摄像设备中的感光元件属于精密部件,如果感光元件正对准强光源,感光元件很容易被强光损伤。
发明内容
本申请实施例的目的在于提供一种强光下的设备保护方法及装置,以降低强光对摄像设备中感光元件造成的损伤。
为达到上述目的,本申请实施例公开了一种强光下的设备保护方法,包括:
获取摄像设备采集的第一图像中像素点的灰度值;
将灰度值大于第一预设阈值的像素点确定为目标像素点;
判断目标像素点的数量是否大于第二预设阈值;
如果是,发送避光指令,以使所述摄像设备的感光元件避开光源。
可选的,所述避光指令为转动摄像设备的指令或者关闭摄像设备快门的指令;所述发送避光指令的步骤,包括:
发送转动摄像设备的指令,以使所述摄像设备根据所述转动摄像设备的指令,向背离光源的方向转动;或者,发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
可选的,所述避光指令为转动摄像设备的指令或者关闭摄像设备快门的指令;所述发送避光指令的步骤,包括:
判断所述摄像设备是否能够转动;
如果是,发送转动摄像设备的指令,以使所述摄像设备根据所述转动摄像设备的指令,向背离光源的方向转动;
如果否,发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
可选的,所述发送转动摄像设备的指令的步骤,包括:
根据所述第一图像,确定光源的位置;
确定所述摄像设备背离所述位置的转动路径;
发送转动摄像设备的指令,所述转动摄像设备的指令中携带有所述转动路径信息,以使所述摄像设备根据所述转动路径信息,向背离所述位置的方向转动。
可选的,在所述发送转动摄像设备的指令的步骤之后,还包括:
启动计时,当经过第三预设时长后,发送返回指令;所述返回指令中携带有返回路径信息,以使所述摄像设备根据所述返回路径信息返回初始位置,所述初始位置为:所述摄像设备根据所述转动路径信息进行转动之前的位置。
可选的,在所述发送返回指令的步骤之后,还可以包括:
获取所述摄像设备采集的第四图像、及所述第四图像中像素点的灰度值;
将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
判断目标像素点的数量是否大于所述第二预设阈值;
如果是,返回所述发送转动摄像设备的指令的步骤。
可选的,在所述发送转动摄像设备的指令的步骤之后,还包括:
启动计时,当经过第一预设时长后,获取所述摄像设备采集的第二图像;
获取所述第二图像中像素点的灰度值;
将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
判断目标像素点的数量是否大于所述第二预设阈值;
如果是,发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
可选的,在所述发送关闭摄像设备快门的指令的步骤之后,还包括:
启动计时,当经过第二预设时长后,发送打开快门指令,并获取所述摄像设备采集的第三图像;
获取所述第三图像中像素点的灰度值;
将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
判断目标像素点的数量是否大于所述第二预设阈值;
如果是,发送关闭摄像设备快门的指令。
可选的,所述判断所述摄像设备是否能够转动的步骤,可以包括:
判断所述摄像设备中是否设置有转动器件;
或者,读取所述摄像设备的硬件配置信息,根据所述硬件配置信息判断所述摄像设备是否能够转动。
可选的,所述发送转动摄像设备的指令的步骤,可以包括:
在所述第一图像中,确定灰度值大于第三预设阈值的图像区域,作为所述光源在所述第一图像中的位置;
根据所述光源在所述第一图像中的位置,确定所述摄像设备背离所述光源的转动路径;
发送转动摄像设备的指令,所述转动摄像设备的指令中携带有所述转动路径信息,以使所述摄像设备根据所述转动路径信息,向背离所述光源的方向转动。
为达到上述目的,本申请实施例还公开了一种强光下的设备保护装置,包括:
第一获取模块,用于获取摄像设备采集的第一图像中像素点的灰度值;
第一确定模块,用于将灰度值大于第一预设阈值的像素点确定为目标像素点;
第一判断模块,用于判断目标像素点的数量是否大于第二预设阈值;如果是,触发第一发送模块;
所述第一发送模块,用于发送避光指令,以使所述摄像设备的感光元件避开光源。
可选的,所述避光指令为转动摄像设备的指令或者关闭摄像设备快门的指令;当所述避光指令为转动摄像设备的指令时,所述第一发送模块包括第一发送子模块;当所述避光指令为关闭摄像设备快门的指令时,所述第一发送模块包括第二发送子模块,
所述第一发送子模块,用于发送转动摄像设备的指令,以使所述摄像设备根据所述转动摄像设备的指令,向背离光源的方向转动;
所述第二发送子模块,用于发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
可选的,所述避光指令为转动摄像设备的指令或者关闭摄像设备快门的指令;所述第一发送模块,包括判断子模块、第三发送子模块和第四发送子模块;
所述判断子模块,用于判断所述摄像设备是否能够转动;如果是,触发所述第三发送子模块,如果否,触发所述第四发送子模块;
所述第三发送子模块,用于发送转动摄像设备的指令,以使所述摄像设备根据所述转动摄像设备的指令,向背离光源的方向转动;
所述第四发送子模块,用于发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
可选的,所述第一发送子模块或者所述第三发送子模块,包括:
第一确定单元,用于根据所述第一图像,确定光源的位置;
第二确定单元,用于确定所述摄像设备背离所述位置的转动路径;
发送单元,用于发送转动摄像设备的指令,所述转动摄像设备的指令中携带有所述转动路径信息,以使所述摄像设备根据所述转动路径信息,向背离所述位置的方向转动。
可选的,所述装置还包括:
第三发送模块,用于在所述第三发送子模块发送转动摄像设备的指令后启动计时,当经过第三预设时长后,发送返回指令;所述返回指令中携带有返回路径信息,以使所述摄像设备根据所述返回路径信息返回初始位置,所述初始位置为:所述摄像设备根据所述转动路径信息进行转动之前的位置。
可选的,所述装置还包括:
第五获取模块,用于获取所述摄像设备采集的第四图像、及所述第四图像中像素点的灰度值;
第四确定模块,用于将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
第四判断模块,用于判断目标像素点的数量是否大于所述第二预设阈值;如果是,触发所述发送单元。
可选的,所述装置还包括:
第一计时模块,用于在所述第一发送子模块发送转动摄像设备的指令后,启动计时,当经过第一预设时长后,触发第二获取模块;
第二获取模块,用于获取所述摄像设备采集的第二图像;
第三获取模块,用于获取所述第二图像中像素点的灰度值;
第二确定模块,用于将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
第二判断模块,用于判断目标像素点的数量是否大于所述第二预设阈值;如果是,触发所述第二发送子模块。
可选的,所述装置还包括:
第二计时模块,用于在所述第二发送子模块或者所述第四发送子模块发 送关闭摄像设备快门的指令之后,启动计时,当经过第二预设时长后,触发第二发送模块;
第二发送模块,用于发送打开快门指令,并获取所述摄像设备采集的第三图像;
第四获取模块,用于获取所述第三图像中像素点的灰度值;
第三确定模块,用于将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
第三判断模块,用于判断目标像素点的数量是否大于所述第二预设阈值;如果是,触发所述第二发送子模块。
为达到上述目的,本申请实施例还公开了一种摄像设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
存储器,用于存放计算机程序;
处理器,用于执行存储器上所存放的程序时,实现上述任一种强光下的设备保护方法。
为达到上述目的,本申请实施例还公开了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一种强光下的设备保护方法。
为达到上述目的,本申请实施例还公开了一种计算机程序,所述计算机程序被执行时实现上述任一种强光下的设备保护方法。
应用本申请实施例,根据摄像设备采集的图像中目标像素点(灰度值大于第一预设阈值的像素点)的数量,判断该图像中是否存在强光源,如果存在,表示摄像设备中的感光元件正对准强光源。这种情况下,发送避光指令,以使摄像设备的感光元件避开光源,降低了强光对摄像设备中感光元件造成的损伤。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例 和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的强光下的设备保护方法的第一种流程示意图;
图2为本申请实施例提供的强光下的设备保护方法的第二种流程示意图;
图3为本申请实施例提供的强光下的设备保护方法的第三种流程示意图;
图4为本申请实施例提供的强光下的设备保护方法的第四种流程示意图;
图5为本申请实施例提供的一种强光下的设备保护装置的结构示意图;
图6为本申请实施例提供的一种摄像设备的结构示意图。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
为了解决上述技术问题,本申请实施例提供了一种强光下的设备保护方法及装置。该方法及装置可以应用于摄像设备,也可以应用于单独设置的电子设备,具体不做限定。
下面首先对本申请实施例提供的强光下的设备保护方法进行详细说明。
图1为本申请实施例提供的强光下的设备保护方法的第一种流程示意图,包括:
S101:获取摄像设备采集的第一图像中每个像素点的灰度值。
如上所述,执行本方案的设备可以为摄像设备,摄像设备可以对自身采集的图像进行分析,获取图像中每个像素点的灰度值。
或者,执行本方案的设备也可以为单独设置的电子设备,该电子设备与摄像设备通信连接,获取摄像设备采集的图像,并对该图像进行分析,获取 图像中每个像素点的灰度值。
S102:在所述第一图像中,将灰度值大于第一预设阈值的像素点确定为目标像素点。
该第一预设阈值可以根据实际情况进行设定,比如,摄像设备中的感光元件非常敏感,光线稍强就会对其造成损伤,这种情况下,该第一预设阈值可以设定地较低些;如果摄像设备中的感光元件不是非常敏感,只有强光线才会对其造成损伤,这种情况下,该第一预设阈值可以设定地较高些。
S103:判断目标像素点的数量是否大于第二预设阈值,如果是,执行S103。
该第二预设阈值也可以根据实际情况进行设定,比如,摄像设备中的感光元件非常敏感,光线稍强就会对其造成损伤,这种情况下,该第二预设阈值可以设定地较低些;如果摄像设备中的感光元件不是非常敏感,只有强光线才会对其造成损伤,这种情况下,该第二预设阈值可以设定地较高些。
S104:发送避光指令,以使所述摄像设备的感光元件避开光源。
作为一种实施方式,避光指令可以为转动摄像设备的指令或者关闭摄像设备快门的指令;S104可以包括:
发送转动摄像设备的指令,以使所述摄像设备向背离光源的方向转动;或者,发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
作为另一种实施方式,S104可以包括:判断所述摄像设备是否能够转动;如果是,发送转动摄像设备的指令,以使所述摄像设备向背离光源的方向转动;如果否,发送关闭摄像设备快门的指令,以使快门关闭且遮挡所述摄像设备的感光元件。
举例来说,可以判断所述摄像设备中是否设置有转动器件;或者,可以读取所述摄像设备的硬件配置信息,根据所述硬件配置信息判断所述摄像设备是否能够转动。
如果S103的判断结果为是,则表示摄像设备当前正处于强光下,这种情况下,可以采取如下保护方案。
第一种方案,执行本方案的设备可以在所述第一图像中,确定灰度值大于第三预设阈值的图像区域,作为所述光源在所述第一图像中的位置;根据所述光源在所述第一图像中的位置,确定所述摄像设备背离所述光源的转动路径;发送转动摄像设备的指令,所述转动摄像设备的指令中携带有所述转动路径信息,以使所述摄像设备根据所述转动路径信息,向背离所述光源的方向转动。
第一图像中光源所在位置像素点的灰度值较大,因此,可以在第一图像中识别灰度值较大的区域,将该区域作为光源在第一图像中的位置。比如,可以识别像素点灰度值全部大于第三预设阈值的区域,作为光源在第一图像中的位置,也可以识别像素点平均灰度值大于第三预设阈值的区域,作为光源在第一图像中的位置,具体识别方式不做限定。
根据光源在第一图像中的位置,确定摄像设备的转动路径。具体来说,转动路径可以包括转动角度和转动方向。转动角度可以为固定值,比如,180度、90度等,具体不做限定;或者转动角度也可以为动态值,比如可以根据光源在第一图像中的位置,确定转动角度。转动方向可以预先设定,比如可以水平顺时针转动,或者可以水平逆时针转动,或者,也可以上下转动,具体转动方向不做限定,或者,也可以根据光源在第一图像中的位置,确定转动方向。
作为一种实施方式,可以确定出光源在第一图像中的外接矩形坐标;然后,根据该外接矩形坐标,计算将光源移除视场的最短路径,该最短路径包含转动角度及转动方向;这样,便确定出了转动路径。
举个简单的例子,假设摄像设备的转动方向为水平转动,可以顺时针转动,也可以逆时针转动;假设预先存储有外接矩形的大小与转动角度的对应关系,外接矩形越大,转动角度越大;假设第一图像长160mm高120mm,确定出光源在第一图像中的外接矩形坐标位于左上角,假设第一图像的图像坐标系以最左上角的点为坐标点,外接矩形四个点的坐标分别为(0,0),(0,1),(1,0),(1,1)。
光源在第一图像中的位置为左上角,背离光源的方向为向右转动,或者说顺时针转动;这里假设根据外接矩形的大小确定出的转动角度为10度,则 发送的转动摄像设备的指令中携带的转动路径信息包括:顺时针转动10度。
第二种方案,执行本方案的设备向摄像设备发送关闭摄像设备快门的指令,摄像设备在接收到该关闭摄像设备快门的指令后,关闭自身快门,这样,快门可以遮挡光源,形成对感光元件的遮挡保护。
应用本申请图1所示实施例,根据摄像设备采集的图像中目标像素点(灰度值大于第一预设阈值的像素点)的数量,判断该图像中是否存在强光源,如果存在,表示摄像设备中的感光元件正对准强光源。这种情况下,发送避光指令,以使摄像设备的感光元件避开光源,降低了强光对摄像设备中感光元件造成的损伤。
图2为本申请实施例提供的强光下的设备保护方法的第二种流程示意图,本申请图2所示实施例在本申请图1所示实施例的基础上,S104可以包括:
S104A:发送转动摄像设备的指令。
S104B:启动计时,当到达第一预设时长时,或者说当经过第一预设时长后,获取所述摄像设备采集的第二图像。
S104C:获取所述第二图像中像素点的灰度值。
S104D:将灰度值大于所述第一预设阈值的像素点确定为目标像素点。
S104E:判断目标像素点的数量是否大于所述第二预设阈值;如果是,执行S104F。
S104F:发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
也就是说,在图2所示实施例中,S103的判断结果为是时,先发送转动摄像设备的指令,在发送转动摄像设备的指令后的预设时长,比如说3s后,再次获取摄像设备采集的图像。为了区分描述,将S101中获取的图像称为第一图像,将S104B中获取的图像称为第二图像,可以理解的是,第一图像对应的时刻早于第二图像对应的时刻。
第二图像的处理过程与第一图像的处理过程类似,确定第二图像中的目标像素点是否大于第二预设阈值,如果大于,表示摄像设备仍正处于强光下, 也就是说,摄像设备不能通过转动降低了强光照射。
这种情况下,向摄像设备发送关闭摄像设备快门的指令,摄像设备在接收到该关闭摄像设备快门的指令后,关闭自身快门,这样,快门可以遮挡光源,形成对感光元件的遮挡保护。
需要说明的是,在图2所示实施例中,如果确定摄像设备不能通过转动降低了强光照射,则可以对此进行记录,以后执行本方案时,在S103判断目标像素点的数量大于第二预设阈值的情况下,可以不再发送转动摄像设备的指令,直接发送关闭摄像设备快门的指令。
在图2所示实施例中,在S104F之后,还可以包括:
启动计时,当到达第二预设时长时,或者说经过第二预设时长后,发送打开快门指令,并获取所述摄像设备采集的第三图像;
获取所述第三图像中像素点的灰度值;
将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
判断目标像素点的数量是否大于所述第二预设阈值;
如果是,发送关闭摄像设备快门的指令。
也就是说,在向摄像设备发送关闭摄像设备快门的指令后的第二预设时长(第二预设时长与第一预设时长可以相同或不同),比如说2分钟后,向摄像设备发送打开快门指令。
可以理解的是,2分钟后,强光源可能已经不在视场范围内,这种情况下,再次获取摄像设备采集的图像。为了区分描述,将此时获取的图像称为第三图像,可以理解的是,第三图像对应的时刻晚于第二图像对应的时刻,也晚于第一图像对应的时刻。
第三图像的处理过程与第二图像的处理过程类似,确定第三图像中的目标像素点是否大于第二预设阈值:如果大于,表示摄像设备仍正处于强光下,此时,发送关闭摄像设备快门的指令,重新关闭快门;如果小于,表示强光源已经不在视场范围内,此时,快门不再关闭。
图3为本申请实施例提供的强光下的设备保护方法的第三种流程示意图,本申请图3所示实施例在本申请图1所示实施例的基础上,S104可以包括:
S104G:判断所述摄像设备是否能够转动;如果是,执行S104H,如果否,执行S104I。
作为一种实施方式,在图2所示实施例中,当确定摄像设备不能通过转动降低了强光照射时,对其进行了记录,因此,此时可以通过记录,判断摄像设备是否能够转动。
或者,也可以采用其他实施方式,比如,检测热成像设备中是否设置有转动器件,或者转动模块等,如果有,则表示热成像设备能够转动。或者,也可以读取热成像设备的硬件配置信息,根据该硬件配置信息判断热成像设备是否能够转动,等等,具体判断方式不做限定。
S104H:根据所述第一图像,确定光源的位置;确定所述摄像设备背离所述位置的转动路径;发送转动摄像设备的指令,所述转动摄像设备的指令中携带有所述转动路径信息,以使所述摄像设备根据所述转动路径信息,向背离所述位置的方向转动;
S104I:发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
如果摄像设备能够转动,执行本方案的设备可以根据上述获取的第一图像,确定光源的位置,然后确定摄像设备背离该位置的转动路径,发送转动摄像设备的指令,该转动摄像设备的指令中携带有该转动路径信息,摄像设备接收到该转动摄像设备的指令后,根据所述转动路径信息,向背离该光源的位置的方向转动。
作为一种实施方式,确定光源的位置时,可以确定出光源在第一图像中的外接矩形坐标;然后,根据该外接矩形坐标,计算将光源移除视场的最短路径;这样,便确定出了转动路径。
如果摄像设备不能够转动,执行本方案的设备可以向摄像设备发送关闭 摄像设备快门的指令,摄像设备在接收到该关闭摄像设备快门的指令后,关闭自身快门,这样,快门可以遮挡光源,形成对感光元件的遮挡保护。
在图3所示实施例中,在S104I之后,还可以包括:
启动计时,当到达第二预设时长时,或者说经过第二预设时长后,发送打开快门指令,并获取所述摄像设备采集的第三图像;
获取所述第三图像中像素点的灰度值;
将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
判断目标像素点的数量是否大于所述第二预设阈值;
如果是,发送关闭摄像设备快门的指令。
也就是说,在向摄像设备发送关闭摄像设备快门的指令后的第二预设时长(第二预设时长与第一预设时长可以相同或不同),比如说2分钟后,向摄像设备发送打开快门指令。
可以理解的是,2分钟后,强光源可能已经不在视场范围内,这种情况下,再次获取摄像设备采集的图像。为了区分描述,将此时获取的图像称为第三图像,可以理解的是,第三图像对应的时刻晚于第二图像对应的时刻,也晚于第一图像对应的时刻。
第三图像的处理过程与第二图像的处理过程类似,确定第三图像中的目标像素点是否大于第二预设阈值:如果大于,表示摄像设备仍正处于强光下,此时,发送关闭摄像设备快门的指令,重新关闭快门;如果小于,表示强光源已经不在视场范围内,此时,快门不再关闭。
图4为本申请实施例提供的强光下的设备保护方法的第四种流程示意图,本申请图4所示实施例在本申请图1所示实施例的基础上,S104可以包括:
S104J:发送转动摄像设备的指令。
S104K:启动计时,当到达第三预设时长时,或者说经过第三预设时长后,发送返回指令。
所述返回指令中携带有返回路径信息,以使所述摄像设备根据所述返回路径信息返回初始位置,所述初始位置为:所述摄像设备根据所述转动路径信息进行转动之前的位置。
S104L:获取所述摄像设备采集的第四图像、及所述第四图像中像素点的灰度值。
S104M:将灰度值大于所述第一预设阈值的像素点确定为目标像素点。
S104N:判断目标像素点的数量是否大于所述第二预设阈值;如果是,返回执行S104J,如果否,表示摄像设备的视场范围内已不存在强光源,流程结束。
也就是说,在图4所示实施例中,S103的判断结果为是时,先发送转动摄像设备的指令,在发送转动摄像设备的指令后的预设时长,比如说1分钟后,再发送返回指令,使摄像设备返回初始位置,也就是摄像设备根据上述转动路径信息进行转动之前的位置。
摄像设备返回初始位置后,再次获取摄像设备采集的图像。为了区分描述,将S104L中获取的图像称为第四图像,可以理解的是,第一图像对应的时刻早于第四图像对应的时刻。
第四图像的处理过程与第一图像的处理过程类似,确定第四图像中的目标像素点是否大于第二预设阈值,如果大于,表示摄像设备仍正处于强光下。这种情况下,表示强光源仍然存在,再次向摄像设备发送转动摄像设备的指令,以背离该强光源。
或者,图4中的S104K—S104N也可以在图3所示实施例的基础上增加,S104K—S104N在S104H之后执行,S104N判断结果为是时,返回S104H,S104N判断结果为否时,流程结束。具体流程类似,不再赘述。
与上述方法实施例相对应,本申请实施例还提供一种强光下的设备保护装置。
图5为本申请实施例提供的一种强光下的设备保护装置的结构示意图,包括:
第一获取模块501,用于获取摄像设备采集的第一图像中像素点的灰度值;
第一确定模块502,用于将灰度值大于第一预设阈值的像素点确定为目标像素点;
第一判断模块503,用于判断目标像素点的数量是否大于第二预设阈值;如果是,触发第一发送模块504;
第一发送模块504,用于发送避光指令,以使所述摄像设备的感光元件避开光源。
在本实施例中,所述避光指令为转动摄像设备的指令或者关闭摄像设备快门的指令;当所述避光指令为转动摄像设备的指令时,所述第一发送模块包括第一发送子模块,当所述避光指令为关闭摄像设备快门的指令时,所述第一发送模块包括第二发送子模块,
第一发送子模块,用于发送转动摄像设备的指令,以使所述摄像设备根据所述转动摄像设备的指令,向背离光源的方向转动;
第二发送子模块,用于发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
在本实施例中,所述避光指令为转动摄像设备的指令或者关闭摄像设备快门的指令;第一发送模块504,包括判断子模块、第三发送子模块和第四发送子模块(图中未示出),其中,
所述判断子模块,用于判断所述摄像设备是否能够转动;如果是,触发所述第三发送子模块,如果否,触发所述第四发送子模块;
所述第三发送子模块,用于发送转动摄像设备的指令,以使所述摄像设备根据所述转动摄像设备的指令,向背离光源的方向转动;
所述第四发送子模块,用于发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
在本实施例中,第一发送子模块或者所述第三发送子模块,可以包括:第一确定单元、第二确定单元和发送单元(图中未示出),其中,
第一确定单元,用于根据所述第一图像,确定光源的位置;
第二确定单元,用于确定所述摄像设备背离所述位置的转动路径;
发送单元,用于发送转动摄像设备的指令,所述转动摄像设备的指令中携带有所述转动路径信息,以使所述摄像设备根据所述转动路径信息,向背离所述位置的方向转动。
在本实施例中,所述装置还可以包括:
第三发送模块(图中未示出),用于在所述第三发送子模块发送转动摄像设备的指令后启动计时,当经过第三预设时长后,发送返回指令;所述返回指令中携带有返回路径信息,以使所述摄像设备根据所述返回路径信息返回初始位置,所述初始位置为:所述摄像设备根据所述转动路径信息进行转动之前的位置;
在本实施例中,所述装置还可以包括:第五获取模块、第四确定模块和第四判断模块(图中未示出),其中,
第五获取模块,用于获取所述摄像设备采集的第四图像、及所述第四图像中像素点的灰度值;
第四确定模块,用于将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
第四判断模块,用于判断目标像素点的数量是否大于所述第二预设阈值;如果是,触发所述发送单元。
在本实施例中,所述装置还可以包括:第一计时模块、第二获取模块、第三获取模块、第二确定模块和第二判断模块(图中未示出),其中,
第一计时模块,用于在第一发送子模块发送转动摄像设备的指令后,启动计时,当经过第一预设时长后,触发第二获取模块;
第二获取模块,用于获取所述摄像设备采集的第二图像;
第三获取模块,用于获取所述第二图像中像素点的灰度值;
第二确定模块,用于将灰度值大于所述第一预设阈值的像素点确定为目 标像素点;
第二判断模块,用于判断目标像素点的数量是否大于所述第二预设阈值;如果是,触发第二发送子模块。
在本实施例中,所述装置还可以包括:第二计时模块、第二发送模块、第四获取模块、第三确定模块和第三判断模块(图中未示出),其中,
第二计时模块,用于在第二发送子模块或者第四发送子模块发送关闭摄像设备快门的指令之后,启动计时,当经过第二预设时长后,触发第二发送模块;
第二发送模块,用于发送打开快门指令,并获取所述摄像设备采集的第三图像;
第四获取模块,用于获取所述第三图像中像素点的灰度值;
第三确定模块,用于将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
第三判断模块,用于判断目标像素点的数量是否大于所述第二预设阈值;如果是,触发第二发送子模块。
应用本申请图5实施例,根据摄像设备采集的图像中目标像素点(灰度值大于第一预设阈值的像素点)的数量,判断该图像中是否存在强光源,如果存在,表示摄像设备中的感光元件正对准强光源。这种情况下,发送避光指令,以使摄像设备的感光元件避开光源,降低了强光对摄像设备中感光元件造成的损伤。
本申请实施例还提供了一种摄像设备,如图6所示,包括处理器601、通信接口602、存储器603和通信总线604,其中,处理器601,通信接口602,存储器603通过通信总线604完成相互间的通信,
存储器603,用于存放计算机程序;
处理器601,用于执行存储器603上所存放的程序时,实现上述任一种强光下的设备保护方法。
该摄像设备还包含感光元件、快门等部件(图中未示出),本申请实施例不再对摄像设备的其他部件进行说明。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一种强光下的设备保护方法。
本申请实施例还提供了一种计算机程序,所述计算机程序被执行时实现上述任一种强光下的设备保护方法。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于图5所示的强光下的设备保护装置实施例、图6所示的摄像设备实施例、上述计算机可读存储介质实施例、上述计算机程序实施例而言,由于其基本相似于图1-4所示的强光下的设备保护方法实施例,所以描述的比较简单,相关之处参见图1-4所示的强光下的设备保护方法实施例的部分说明即可。
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (9)

  1. 一种强光下的摄像设备保护方法,其特征在于,包括:
    获取摄像设备采集的第一图像中每个像素点的灰度值;
    在所述第一图像中,将灰度值大于第一预设阈值的像素点确定为目标像素点;
    判断目标像素点的数量是否大于第二预设阈值;
    若目标像素点的数量大于第二预设阈值,发送避光指令,所述避光指令用于控制所述摄像设备的感光元件避开光源。
  2. 根据权利要求1所述的方法,其特征在于,所述避光指令为转动摄像设备的指令或者关闭摄像设备快门的指令;所述发送避光指令的步骤,包括:
    发送转动摄像设备的指令,以使所述摄像设备向背离光源的方向转动;或者,发送关闭摄像设备快门的指令,以使快门关闭且遮挡所述摄像设备的感光元件。
  3. 根据权利要求1所述的方法,其特征在于,所述发送避光指令的步骤,包括:
    判断所述摄像设备是否能够转动;
    如果是,发送转动摄像设备的指令,以使所述摄像设备向背离光源的方向转动;
    如果否,发送关闭摄像设备快门的指令,以使快门关闭且遮挡所述摄像设备的感光元件。
  4. 根据权利要求3所述的方法,其特征在于,所述判断所述摄像设备是否能够转动的步骤,包括:
    判断所述摄像设备中是否设置有转动器件;
    或者,读取所述摄像设备的硬件配置信息,根据所述硬件配置信息判断所述摄像设备是否能够转动。
  5. 根据权利要求2或3所述的方法,其特征在于,所述发送转动摄像设备 的指令的步骤,包括:
    在所述第一图像中,确定灰度值大于第三预设阈值的图像区域,作为所述光源在所述第一图像中的位置;
    根据所述光源在所述第一图像中的位置,确定所述摄像设备背离所述光源的转动路径;
    发送转动摄像设备的指令,所述转动摄像设备的指令中携带有所述转动路径信息,以使所述摄像设备根据所述转动路径信息,向背离所述光源的方向转动。
  6. 根据权利要求2或3所述的方法,其特征在于,在所述发送转动摄像设备的指令的步骤之后,还包括:
    启动计时,当经过第三预设时长后,发送返回指令;所述返回指令中携带有返回路径信息,以使所述摄像设备根据所述返回路径信息返回初始位置,所述初始位置为:所述摄像设备根据所述转动路径信息进行转动之前的位置。
  7. 根据权利要求2或3所述的方法,其特征在于,在所述发送转动摄像设备的指令的步骤之后,还包括:
    启动计时,当经过第一预设时长后,获取所述摄像设备采集的第二图像;
    获取所述第二图像中像素点的灰度值;
    将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
    判断目标像素点的数量是否大于所述第二预设阈值;
    如果是,发送关闭摄像设备快门的指令,以使快门遮挡所述摄像设备的感光元件。
  8. 根据权利要求2或3所述的方法,其特征在于,在所述发送关闭摄像设备快门的指令的步骤之后,还包括:
    启动计时,当经过第二预设时长后,发送打开快门指令,并获取所述摄像设备采集的第三图像;
    获取所述第三图像中像素点的灰度值;
    将灰度值大于所述第一预设阈值的像素点确定为目标像素点;
    判断目标像素点的数量是否大于所述第二预设阈值;
    如果是,发送关闭摄像设备快门的指令。
  9. 一种摄像设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
    存储器,用于存放计算机程序;
    处理器,用于执行存储器上所存放的程序时,实现权利要求1-8任一所述的方法步骤。
PCT/CN2018/072565 2017-01-17 2018-01-15 一种强光下的设备保护方法及装置 WO2018133753A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US16/333,119 US10992871B2 (en) 2017-01-17 2018-01-15 Method and apparatus for protecting device under strong light
EP18742186.2A EP3573328B1 (en) 2017-01-17 2018-01-15 Method and apparatus for protecting camera device under strong light

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710031314.1A CN108322637B (zh) 2017-01-17 2017-01-17 一种强光下的设备保护方法及装置
CN201710031314.1 2017-01-17

Publications (1)

Publication Number Publication Date
WO2018133753A1 true WO2018133753A1 (zh) 2018-07-26

Family

ID=62892557

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/072565 WO2018133753A1 (zh) 2017-01-17 2018-01-15 一种强光下的设备保护方法及装置

Country Status (4)

Country Link
US (1) US10992871B2 (zh)
EP (1) EP3573328B1 (zh)
CN (1) CN108322637B (zh)
WO (1) WO2018133753A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108347560A (zh) * 2018-01-17 2018-07-31 浙江大华技术股份有限公司 一种摄像机防太阳灼伤方法、摄像机及可读存储介质
CN110470401B (zh) * 2019-07-03 2021-04-27 深圳市景阳信息技术有限公司 热成像摄像机过载保护的方法、装置以及存储介质
CN111027341A (zh) * 2019-12-28 2020-04-17 安徽硕威智能科技有限公司 一种基于oid二维暗码识别的交互方法、装置、系统及其存储介质
JP7375552B2 (ja) * 2020-01-06 2023-11-08 株式会社Jvcケンウッド 画像処理装置、画像処理方法およびプログラム
CN111294526B (zh) * 2020-03-06 2022-06-14 浙江大华技术股份有限公司 一种摄像机防太阳灼伤处理方法及装置
CN113299673B (zh) * 2021-05-24 2022-07-29 维沃移动通信有限公司 感光器件控制方法、控制装置、电子设备和可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101428590A (zh) * 2008-08-13 2009-05-13 程滋颐 汽车用摄像头
CN102889932A (zh) * 2012-09-25 2013-01-23 山东神戎电子股份有限公司 一种抗强光损伤热像仪及其方法
CN104822011A (zh) * 2014-01-31 2015-08-05 日立产业控制解决方案有限公司 摄像装置
CN105337180A (zh) * 2015-10-16 2016-02-17 常熟开关制造有限公司(原常熟开关厂) 配电柜及配电系统
CN105678744A (zh) * 2015-12-30 2016-06-15 中国科学院半导体研究所 距离选通自主成像自适应mcp增益调节方法

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB934760A (en) * 1960-11-03 1963-08-21 Pye Ltd Improvements in television apparatus
US6281927B1 (en) * 1988-09-26 2001-08-28 The United States Of America As Represented By The Secretary Of The Army Rotating shutter system for hostile laser source location technique
US5111036A (en) * 1991-03-04 1992-05-05 The United States Of America As Represented By The Secretary Of The Navy Shutter apparatus
US8120652B2 (en) * 1997-04-02 2012-02-21 Gentex Corporation System for controlling vehicle equipment
KR101092539B1 (ko) * 2005-02-18 2011-12-14 삼성전자주식회사 화이트 밸런스를 자동 조정하는 영상장치 및 그의 화이트밸런스 조정 방법
JP2007142924A (ja) * 2005-11-21 2007-06-07 Matsushita Electric Ind Co Ltd ネットワークカメラ、カメラ装置およびカメラ保護方法
KR101091913B1 (ko) * 2006-06-27 2011-12-08 삼성테크윈 주식회사 촬영장치의 역광보정방법
CN101650254B (zh) * 2009-09-02 2012-05-30 四川电力试验研究院 具有强光保护功能的激光成像仪
JP2011155361A (ja) * 2010-01-26 2011-08-11 Sony Corp 撮像装置、撮像制御方法、プログラム
EP2596457A2 (de) * 2010-07-19 2013-05-29 Hella KGaA Hueck & Co Verfahren und vorrichtung zum erkennen von lichtquellen
CN202649396U (zh) * 2012-05-23 2013-01-02 北京赛凡光电仪器有限公司 光电化学太阳电池测试仪
DE102012216065A1 (de) * 2012-09-11 2014-03-13 Robert Bosch Gmbh Verfahren und Vorrichtung zur Erkennung von zumindest einer gepulsten Lichtquelle für ein Fahrzeug
US10686984B1 (en) * 2015-02-13 2020-06-16 Waylens, Inc. Connected camera system
CN105424197B (zh) * 2015-12-18 2019-05-07 烟台艾睿光电科技有限公司 一种全自动红外热像仪的掉电强光保护系统和方法
US10048696B2 (en) * 2015-12-22 2018-08-14 Uber Technologies, Inc. Intelligent lens masking system for an autonomous vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101428590A (zh) * 2008-08-13 2009-05-13 程滋颐 汽车用摄像头
CN102889932A (zh) * 2012-09-25 2013-01-23 山东神戎电子股份有限公司 一种抗强光损伤热像仪及其方法
CN104822011A (zh) * 2014-01-31 2015-08-05 日立产业控制解决方案有限公司 摄像装置
CN105337180A (zh) * 2015-10-16 2016-02-17 常熟开关制造有限公司(原常熟开关厂) 配电柜及配电系统
CN105678744A (zh) * 2015-12-30 2016-06-15 中国科学院半导体研究所 距离选通自主成像自适应mcp增益调节方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3573328A4 *

Also Published As

Publication number Publication date
EP3573328B1 (en) 2022-08-03
EP3573328A1 (en) 2019-11-27
US20190364218A1 (en) 2019-11-28
US10992871B2 (en) 2021-04-27
CN108322637B (zh) 2020-02-11
EP3573328A4 (en) 2019-11-27
CN108322637A (zh) 2018-07-24

Similar Documents

Publication Publication Date Title
WO2018133753A1 (zh) 一种强光下的设备保护方法及装置
KR20190139262A (ko) 차량 손실 평가 이미지를 획득하기 위한 방법과 장치, 서버 및 단말기 디바이스
TW201941110A (zh) 二維碼識讀方法、裝置及設備
US9237340B2 (en) Camera pose estimation
TW201710876A (zh) 電子裝置及其拍照控制方法和系統
JP7365055B2 (ja) ビデオオブジェクト検出
WO2018050128A1 (zh) 目标跟踪方法、电子设备及存储介质
US9973687B2 (en) Capturing apparatus and method for capturing images without moire pattern
WO2018099132A1 (zh) 面单图像的获取方法及装置
CN110519510B (zh) 一种抓拍方法、装置、球机及存储介质
WO2017215108A1 (zh) 一种调整投影图像的方法及投影仪
US20170169242A1 (en) Managing method and device for sensor access authority
KR20140090078A (ko) 이미지 처리 방법 및 그 방법을 처리하는 전자 장치
TW202001801A (zh) 影像處理方法、電腦設備和可讀儲存媒體
WO2021129806A1 (zh) 图像处理方法、装置、电子设备及可读存储介质
WO2019080061A1 (zh) 基于摄像设备的遮挡检测修复装置及其遮挡检测修复方法
TW201536050A (zh) 可修正偏移視角的影像擷取方法、電腦程式產品暨其影像擷取裝置
KR101641647B1 (ko) 저사양 영상 기기에서의 실시간 영상 인식 방법
KR101925799B1 (ko) 디스플레이 장치에서 표시되는 정보의 유출을 방지하기 위한 컴퓨터 프로그램과 이를 이용한 보안 서비스 제공 방법
US20180350082A1 (en) Method of tracking multiple objects and electronic device using the same
WO2018099128A1 (zh) 一种应用于投影设备的方法及装置
WO2018188438A1 (zh) 一种图像显示方法及装置
US10896488B2 (en) Electronic device and method for removing haze from image
US20110267463A1 (en) Image capturing device and method for controlling image capturing device
KR20170096257A (ko) 데이터 무결성 처리 시스템

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18742186

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018742186

Country of ref document: EP

Effective date: 20190819