Disclosure of Invention
The invention has at least the following key points:
(1) the selection of the subimages is executed in a rhombus with higher traversal capability, and the analysis of the parameters is executed based on the selected subimages, so that the reliability of the analyzed parameters is ensured while the data volume of the image analysis is reduced;
(2) whether the flash lamp is used or not is determined according to whether the flash lamp lighting spot target exists in the imaging image of the image capturing device, and then corresponding color temperature control is carried out, so that the intelligent level of the image capturing device is improved.
According to an aspect of the present invention, there is provided an intelligent object-specific detection apparatus, the apparatus comprising:
the image capturing device is used for executing image data capturing action on the front environment of the image capturing device so as to obtain and output a corresponding front environment image;
the rectangle fitting device is connected with the image capturing device and used for receiving the front environment image, identifying each target in the front environment image, performing rectangle fitting on the appearance of each target to obtain a corresponding externally-expanded rectangle, and performing rectangle fitting on the appearance of each target to obtain a corresponding externally-expanded rectangle comprises: the outward-extending rectangle is the smallest rectangle capable of including the outline of the target;
the area processing device is connected with the rectangle fitting device and used for sequencing the externally-expanded rectangles of the targets based on the area sizes, taking the externally-expanded rectangles with the central serial numbers as the shapes of the segmentation windows and executing segmentation on the front environment image based on the shapes of the segmentation windows to obtain sub-images;
the diamond drawing device is used for performing diamond drawing on the midpoint of the top pixel row, the midpoint of the bottom pixel row, the midpoint of the leftmost pixel row and the midpoint of the rightmost pixel row of the front environment image in the front environment image;
and the signal traversing equipment is respectively connected with the area processing equipment and the diamond drawing equipment and is used for receiving each subimage of the front environment image and outputting the subimage with the drawn diamond-shaped contents as a reference subimage.
According to another aspect of the present invention, there is also provided an intelligent target-specific detection method, including:
using an image capturing device for performing an image data capturing action on its front environment to obtain and output a corresponding front environment image;
using a rectangle fitting device, connected to the image capturing device, for receiving the front environment image, identifying each target in the front environment image, performing a rectangle fitting on an outer shape of each target to obtain a corresponding extended rectangle, the performing a rectangle fitting on an outer shape of each target to obtain a corresponding extended rectangle comprising: the outward-extending rectangle is the smallest rectangle capable of including the outline of the target;
using an area processing device connected with the rectangle fitting device, and configured to sort the outward-extending rectangles of the targets based on area size, take the outward-extending rectangle with the central sequence number as a segmentation window shape, and perform segmentation on the front environment image based on the segmentation window shape to obtain sub-images;
using a diamond-shaped drawing device for diamond-shaped drawing with the midpoint of the top pixel row, the midpoint of the bottom pixel row, the midpoint of the leftmost pixel row and the midpoint of the rightmost pixel row of the front environment image within the front environment image;
and the signal traversing equipment is respectively connected with the area processing equipment and the diamond drawing equipment and is used for receiving each subimage of the front environment image and outputting the subimage with the drawn diamond as a reference subimage.
The intelligent target pertinence detection device and method provided by the invention are compact in structure and wide in application. Whether the flash lamp is used or not is determined according to whether the flash lamp lighting spot target exists in the imaging image of the image capturing device, and then corresponding color temperature control is carried out, so that the intelligent level of the image capturing device is improved.
Detailed Description
Embodiments of the intelligent object-specific detection apparatus and method of the present invention will be described in detail below with reference to the accompanying drawings.
The english learning name of the flashlight is Flash Light. Flash is also one of the ways to enhance exposure, especially in dark places, where flashing helps make the scene brighter.
The Chinese characters are called electronic flash lamp, also called high-speed flash lamp. The electronic flash lamp stores high voltage electricity through a capacitor, and the pulse triggers the flash tube to discharge so as to complete instant flash. The color temperature of a common electronic flash lamp is about 5500K, is close to the color temperature under sunlight in the daytime, and the luminescent property belongs to a cold light type and is suitable for shooting objects which are afraid of heat.
At present, when an image capturing device performs image capturing, the difference between image signals shot by a flash lamp or not is large, in the case of shooting by a flash lamp, the image content is white and light spots exist, in the case of shooting without a flash lamp, the image content is relatively dark and corresponding light spots do not exist, and the situation that the difference between the image signals is large is unwilling for a photographer to see.
In order to overcome the defects, the invention builds an intelligent target pertinence detection device and method, and can effectively solve the corresponding technical problems.
The intelligent target pertinence detection device shown according to the embodiment of the present invention includes:
the image capturing device is used for executing image data capturing action on the front environment of the image capturing device so as to obtain and output a corresponding front environment image;
wherein, fig. 1 is an assembly schematic diagram of the image capturing device;
the rectangle fitting device is connected with the image capturing device and used for receiving the front environment image, identifying each target in the front environment image, performing rectangle fitting on the appearance of each target to obtain a corresponding externally-expanded rectangle, and performing rectangle fitting on the appearance of each target to obtain a corresponding externally-expanded rectangle comprises: the outward-extending rectangle is the smallest rectangle capable of including the outline of the target;
the area processing device is connected with the rectangle fitting device and used for sequencing the externally-expanded rectangles of the targets based on the area sizes, taking the externally-expanded rectangles with the central serial numbers as the shapes of the segmentation windows and executing segmentation on the front environment image based on the shapes of the segmentation windows to obtain sub-images;
the diamond drawing device is used for performing diamond drawing on the midpoint of the top pixel row, the midpoint of the bottom pixel row, the midpoint of the leftmost pixel row and the midpoint of the rightmost pixel row of the front environment image in the front environment image;
the signal traversing equipment is respectively connected with the area processing equipment and the diamond drawing equipment and is used for receiving each subimage of the front environment image and outputting the subimage with the drawn diamond as a reference subimage;
the parameter identification device is connected with the signal traversing device and used for carrying out arithmetic mean calculation on each chromatic value of each received reference sub-image so as to obtain and output a corresponding reference chromatic value;
the data adjusting device is connected with the parameter recognizing device and used for executing chroma adjusting processing on the front environment image based on the received reference chroma value so as to obtain and output a corresponding chroma processing image, wherein the stronger the difference value of the reference chroma value from a desired chroma threshold value is, the stronger the intensity of executing the chroma adjusting processing on the front environment image is;
the light spot analyzing equipment is connected with the data adjusting equipment and used for sending a first analyzing signal when the light spot target is found in the front environment image based on the light spot imaging characteristics, and otherwise, sending a second analyzing signal;
the color temperature control device is respectively connected with the image capturing device and the light spot analyzing device, and is used for controlling the color temperature of an image when the image capturing device performs image capturing within the range of 5000K-5500K when receiving the first analyzing signal and controlling the color temperature of the image when the image capturing device performs image capturing outside the range of 5000K-5500K when receiving the second analyzing signal;
wherein, in the light spot analyzing apparatus, the light spot is a light spot formed on an imaging image when illuminated with a flash lamp.
Next, a detailed description will be given of a specific configuration of the intelligent object-specific detection device according to the present invention.
In the intelligent target-specific detection device:
in the area processing device, the length and the width of each sub-image obtained by segmentation are respectively equal;
wherein the diamond drawing device, the signal traversing device, the parameter recognizing device, and the data adjusting device share the same 32-bit parallel data bus.
In the intelligent target-specific detection device:
the light spot analyzing equipment is realized by adopting a general array logic device GAL chip, and the GAL chip is designed by adopting VHDL;
the color temperature control equipment is a non-bus type single chip microcomputer, and a timer and a ROM (read only memory) are arranged in the non-bus type single chip microcomputer.
In the intelligent target-specific detection device:
the light spot analysis equipment and the color temperature control equipment are in data connection and data interaction through a 32-bit parallel data interface;
the light spot analyzing equipment and the color temperature control equipment share the same field timing equipment and the same power supply input equipment.
In the intelligent target-specific detection device:
a data cache device is also arranged between the light spot analysis device and the color temperature control device;
the data cache device is connected with the light spot analyzing device and the color temperature control device through two data interfaces respectively.
The intelligent target pertinence detection method shown according to the embodiment of the invention comprises the following steps:
using an image capturing device for performing an image data capturing action on its front environment to obtain and output a corresponding front environment image;
using a rectangle fitting device, connected to the image capturing device, for receiving the front environment image, identifying each target in the front environment image, performing a rectangle fitting on an outer shape of each target to obtain a corresponding extended rectangle, the performing a rectangle fitting on an outer shape of each target to obtain a corresponding extended rectangle comprising: the outward-extending rectangle is the smallest rectangle capable of including the outline of the target;
using an area processing device connected with the rectangle fitting device, and configured to sort the outward-extending rectangles of the targets based on area size, take the outward-extending rectangle with the central sequence number as a segmentation window shape, and perform segmentation on the front environment image based on the segmentation window shape to obtain sub-images;
using a diamond-shaped drawing device for diamond-shaped drawing with the midpoint of the top pixel row, the midpoint of the bottom pixel row, the midpoint of the leftmost pixel row and the midpoint of the rightmost pixel row of the front environment image within the front environment image;
the signal traversing equipment is respectively connected with the area processing equipment and the diamond drawing equipment and is used for receiving each subimage of the front environment image and outputting the subimage with the drawn diamond as a reference subimage;
the parameter identification equipment is connected with the signal traversal equipment and used for carrying out arithmetic mean calculation on each chromatic value of each received reference sub-image so as to obtain and output a corresponding reference chromatic value;
the use data adjusting device is connected with the parameter recognizing device and used for executing chroma adjusting processing on the front environment image based on the received reference chroma value so as to obtain and output a corresponding chroma processing image, wherein the stronger the difference value of the reference chroma value from a desired chroma threshold value is, the stronger the chroma adjusting processing is executed on the front environment image;
using light spot analyzing equipment connected with the data adjusting equipment and used for sending a first analyzing signal when finding that a light spot target exists in the front environment image based on the light spot imaging characteristics, and otherwise, sending a second analyzing signal;
the color temperature control device is respectively connected with the image capturing device and the light spot analysis device, and is used for controlling the color temperature of an image when the image capturing device performs image capturing within the range of 5000K-5500K when receiving the first analysis signal and controlling the color temperature of the image when the image capturing device performs image capturing outside the range of 5000K-5500K when receiving the second analysis signal;
wherein, in the light spot analyzing apparatus, the light spot is a light spot formed on an imaging image when illuminated with a flash lamp.
Next, the specific steps of the intelligent target-specific detection method of the present invention will be further described.
In the intelligent target targeted detection method:
in the area processing device, the length and the width of each sub-image obtained by segmentation are respectively equal;
wherein the diamond drawing device, the signal traversing device, the parameter recognizing device, and the data adjusting device share the same 32-bit parallel data bus.
In the intelligent target targeted detection method:
the light spot analyzing equipment is realized by adopting a general array logic device GAL chip, and the GAL chip is designed by adopting VHDL;
the color temperature control equipment is a non-bus type single chip microcomputer, and a timer and a ROM (read only memory) are arranged in the non-bus type single chip microcomputer.
In the intelligent target targeted detection method:
the light spot analysis equipment and the color temperature control equipment are in data connection and data interaction through a 32-bit parallel data interface;
the light spot analyzing equipment and the color temperature control equipment share the same field timing equipment and the same power supply input equipment.
In the intelligent target targeted detection method:
a data cache device is also arranged between the light spot analysis device and the color temperature control device;
the data cache device is connected with the light spot analyzing device and the color temperature control device through two data interfaces respectively.
In addition, VHDL is mainly used to describe the structure, behavior, function, and interface of a digital system. Except for the fact that it contains many statements with hardware features, the linguistic form, description style, and syntax of VHDL are very similar to a general computer high-level language. The structural features of the VHDL program are to divide an engineering design, or design entity (which may be a component, a circuit module or a system) into an external (or visible part, and port) and an internal (or invisible part), which relate to the internal functions and algorithm completion of the entity. After an external interface is defined for a design entity, once its internal development is complete, other designs can invoke the entity directly. This concept of dividing the design entity into inner and outer parts is the fundamental point of VHDL system design.
VHDL has powerful language structure, and can describe complex logic control by simple and clear source code. The method has a multi-level design description function, is refined layer by layer, and can directly generate circuit level description. VHDL supports the design of synchronous, asynchronous, and random circuits, which is incomparable with other hardware description languages. VHDL also supports various design methods, both bottom-up and top-down; the method supports both modular design and hierarchical design.
Finally, it should be noted that each functional device in the embodiments of the present invention may be integrated into one processing device, or each device may exist alone physically, or two or more devices may be integrated into one device.
The functions, if implemented in the form of software-enabled devices and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.