An image sensing apparatus having camera-shake detection function

Abstract: A video camera having camera-shake detection function divides an image sensed picture into a plurality of blocks and binary codes the luminance signal in each pixel in each block. The presence of a binary coded data of "1" is detected for each horizontal line and vertical line in each block, whereby the presence of at least one causes data "1" to be stored in the bit position in the memory corresponding to the line. Accordingly, data representing the distribution of an object in the vertical direction and the horizontal direction are obtained for each block. By calculating the data correlation between consecutive frames, a motion vector of the object for each block is specified, whereby a motion vector representing the entire picture is selected by subjecting the motion vectors of all blocks to majority decision logic process. In accordance with this selected motion vector, the movement of the object caused by camera-shake is corrected appropriately.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to image sensing apparatus such as video camera having camera-shake detection function, and more particularly, to an image sensing apparatus that can detect the direction and magnitude of camera-shake according to variation with time of the distribution state of high luminance area in an image sensed picture. Description of the Background Art Image sensing apparatus are in practical use that detect the direction and magnitude of camera-shake to correct unnecessary motion in the image sensed picture caused by camera-shaking in shooting continuously an object using an image sensing apparatus such as a video camera. Japanese Patent Laying-Open JP-A- 60-143330 discloses a video camera comprising a vibration type angle velocity sensor that obtains electrically the amount of camera-shaking of a video camera by detecting Corioli's force with the sensor, for example. There is another method of detecting camera-shake that sets a number of sampling points in advance in an image sensed picture for detecting and holding the luminance signal level of each sampling point in a field, followed by detecting the luminance signal level of the peripheral area of each sampling point in the succeeding field, and comparing this with the luminance signal level of the prior field in the corresponding sampling point for specifying the motion vector of the image sensed picture. In other words, by searching for a point in the periphery area having a luminance level equal to that of the corresponding sampling point in the prior field to calculate the direction and distance of the level change from that sampling point as a center point, the motion vector of the object image is specified for each sampling point. Then, by specifying the most frequent occurring direction and distance motion vector out of the many motion vectors in the entire image sensed picture as the motion vector representing the motion of the entire image sensed picture, the motion of the image sensed picture is corrected in accordance with the determined motion vector. Such methods of camera-shake correction comprise the method of moving the lens or image sensing device (for example, a solid-state image sensing device such as CCD) of the image sensing apparatus in accordance with the detected camera-shake information (motion vector), and the method of moving an area (effective image area) corresponding to a signal read out area from the image sensing device within an area (image sensing area) corresponding to the entire image sensing device, which are both well-known conventional techniques (for example, refer to Japanese Patent Publication JP-A- 1-212078). EP-A-0 332 169 discloses an image sensing apparatus having an image shake detection function. The apparatus comprises an image sensor and an A/D converter for converting the luminance signal into a digital signal. The apparatus calculates horizontal and vertical histograms on the basis of the diqital data to determine the motion vectors for the current and the previous frame. On the basis of these motion vectors a shake compensation is carried out. From US-A-4 777 530 it is known to specify motion vectors for a plurality of blocks of the sensed image. The above mentioned methods of camera-shake detection require the provision of a special sensor or a memory of large capacity, which gave a disadvantage that these methods are not so suitable for video cameras for consumer use. SUMMARY OF THE INVENTION An object of the present invention is to provide an image sensing apparatus that can detect camera-shake with a simple structure. Another object of the present invention is to provide an image sensing apparatus that can detect camera-shake accurately even when binary coded data of the luminance level of an object are dispersed. A further object of the present invention is to provide an image sensing apparatus which only requires a significantly reduced storage capacity. These objects are solved by the features of claim 1. Further advantages are mentioned in the subclaim. The major advantage of the present invention is that the motion of an object due to camera-shake can be detected without providing a special sensor or a memory of large capacity, due to implementation of dividing an image sensed picture into a plurality of blocks to specify a motion vector of the object for each block. Another advantage of the present invention is that the motion of an object in an image sensed picture can be detected accurately owing to normalization process of compressing the pattern of the object and binary coding the same, even if binary coded data of the luminance level of the object image are dispersed. Further advantage of the present invention is that the circuit structure for detecting the motion of an object can be further simplified due to implementation of specifying a motion vector for each block based on data indicating the center point of the object in each block. The foregoing and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Figs. 1A and 1B schematically show a manner in which an image area is divided into a plurality of blocks according to the present invention. Fig. 2 is a block diagram schematically showing a camera-shake detecting circuit of a video camera according to a first embodiment of the present invention. Fig. 3 is a block diagram showing in detail a memory circuit of Fig. 2. Fig. 4 is a block diagram showing in detail a motion vector detecting circuit of Fig. 2. Fig. 5 is a diagram schematically showing the principle of normalization. Fig. 6 is a block diagram schematically showing a camera-shake detecting circuit of a video camera. Fig. 7 is a block diagram showing in detail an intermediate value setting circuit of Fig. 6. Fig. 8 is a block diagram schematically showing a camera-shake detecting circuit of a video camera according to a further embodiment of the present invention. Fig. 9 is a block diagram showing in detail a motion vector detecting circuit of Fig. 8. Fig. 10 schematically shows a manner in which an area is set according to a still further embodiment of the present invention. DESCRIPTION OF THE PREFERRED EMBODIMENTS Figs. 1A and 1B schematically show a manner in which an image area is divided into a plurality of blocks. The principle of block division of the present invention will be explained hereinafter with reference to Figs. 1A and 1B. Fig. 1A shows a signal read out area from a CCD which is a solid-state image sensing device, i.e. the entire effective image area. This area is formed by a certain number of effective image lines (horizontal lines including image information; 480 horizontal lines in this case), where each of these effective image lines is formed of a certain number of pixels (picture elements; 900 pixels in this case). According to the present invention, this effective image area is divided into N columns in the vertical direction and M rows in the horizontal direction to result in M x N blocks, as shown in Fig. 1A. Fig. 1B is an enlarged view of one of the M x N blocks of Fig. 1A. In each block, it is presumed that there are P effective image lines, each formed of Q pixels. In other words, the entire effective image area of Fig. 1A is formed of M x P = 480 effective image lines, where each effective image line is formed of N x Q = 900 pixels. The basic principle of the present invention will be described briefly. The division of effective image area is carried out for the purpose of specifying a motion vector of an object for each block. That is to say, the video (luminance) signal level of each pixel (picture element) in each block is compared with a reference value determined for each block, whereby a binary coded data of a high level (1) or a low level (0) indicating the image of the object is obtained for each pixel. The motion vector of the object for each block can be specified by comparing data indicating the distribution state of high level data obtained for each block by each frame. Then, a motion vector of the object of the entire picture can be specified by majority decision logic process based on the motion vectors of respective blocks. Fig. 2 is a block diagram schematically showing a camera-shake detecting circuit of a video camera according to a first embodiment of the present invention. The operation of the first embodiment indicated in Fig. 2 is described with reference to the aforementioned Figs. 1A and 1B. According to the first embodiment of the present invention, each block formed of P x Q pixels, as shown in Fig. 1B, is further divided into P horizontal lines and Q vertical lines. For each horizontal line, determination is made whether there is a pixel having a data of a high logic level, whereby the presence of at least one pixel having a high level data in the corresponding horizontal line causes a data of "1" to be stored in the corresponding bit position in a vertical line memory of a P-bit structure that will be described later on. Similarly, for each vertical line, determination is made whether there is a pixel having a high level data, whereby the presence of at least one pixel having a high level data in the corresponding vertical line causes a data of "1" to be stored in the corresponding bit position in a horizontal line memory of a Q-bit structure that will also be explained later on. This detection of the distribution state of high level data in each of M x N blocks is carried out for each frame. The detected results of all the blocks in the preceding frame are temporarily held and compared with the detected results of all the blocks of a succeeding frame during a vertical blanking period to obtain correlation of data between frames in each of the vertical direction and the horizontal direction. The moving distances in the vertical direction and the horizontal direction of the distribution state of high level data are obtained for each block to specify the motion vector of the object in the corresponding block. Then, the motion vector of the entire picture is determined by logic processing such as majority decision logic processing based on the motion vectors determined for respective blocks. According to the above mentioned first embodiment, the capacity required for the vertical line memory and the horizontal line memory for the entire effective image area is P x (M x N) = 480N bits and Q x (M x N) = 900M bits, respectively, which results in 480N + 900M bits in total. In comparison with the memory capacity of 480 x 900 = 432K bits necessary for sampling binary coded data for all pixels in the entire picture, a memory of significantly smaller capacity is sufficient for determining the motion vector of the object. The specific operation of the camera-shake detecting circuit according to the first embodiment of the present invention will be explained hereinafter with reference to Fig. 2. The first embodiment shows the case where the present invention is applied to a video camera which performs camera-shake correction by moving the effective image area within the image sensed area corresponding to the entire CCD according to the detected camera-shake information. Because such camera-shake correction is a well-known conventional technique, specific description of means for camera-shake correction is omitted. Referring to Fig. 2, the image sensed output provided from a solid-state image sensing device 1 such as a CCD is supplied to a signal processing circuit 2 to be converted into a color video signal of a NTSC system. Signal processing circuit 2 separates a luminance signal from the NTSC color video signal and provides the same to a reference signal selection circuit 3 and a comparison circuit 4. Reference value selection circuit 3 determines an intermediate value between a peak value of the luminance signal of the preceding frame within each of the M x N blocks and a pedestal level which is a fixed DC voltage level, as the reference value for each block. Comparison circuit 4 compares the current luminance signal supplied continuously from signal processing circuit 2 with a reference value determined as mentioned above for each block according to a predetermined sampling cycle provide a binary coded data representing a high level (1) when the luminance signal exceeds the reference value and otherwise a low level (0). The output of comparison circuit 4 is stored in a first memory circuit 5 during the effective image period of a certain frame, and stored in a second memory circuit 6 during the effective image period of the next frame. In a further next frame, the comparison output is stored again in the first memory circuit 5. In a similar manner, the comparison results are stored alternately in memory circuits 5 and 6 by every frame. Fig. 3 is a block diagram showing the structure of the first memory circuit 5. The structure of the second memory circuit 6 is identical to that of memory circuit 5, and their description will not be repeated. Referring to Fig. 3, a binary coded data of a high level or a low level from comparison circuit 4 is applied to one input of an OR circuit 5c and to the set input of a flip-flop circuit 5d. The output of OR circuit 5c is provided and stored in a horizontal line memory 5a. Horizontal line memory 5a is considered as the horizontal line memory of a Q-bit structure for each block indicated at the bottom of Fig. 1B, which is gathered a number corresponding to the entire picture, i.e. M x N horizontal line memories. In other words, each of M x N blocks formed by dividing the horizontal line memory 5a of Fig. 3 corresponds to the horizontal line memory of Q bits for each block of Fig. 1B. N memories of the topmost row of horizontal line memory 5a are supplied with and stores the binary coded data of N x Q pixels forming the first effective image line via OR circuit 5c. Next, when the binary coded data of the second effective image line is applied to one input of OR gate 5c, the data of a pixel (address) corresponding to that of a newly input data, out of the above written data, is read out from memory 5a in synchronism with the horizontal synchronizing signal component in the luminance signal, and supplied simultaneously to the other input of OR gate 5c. If at least one of the two inputs of OR gate circuit 5c is a high level data, a high level data is written into the corresponding address of horizontal line memory 5a. Otherwise, a low level data is written into the corresponding address. This OR process is carried out for each pixel (address) for the first through Pth effective image lines. If there is at least one binary coded data of a high level in each of the Q vertical lines for each of the N blocks of the uppermost row in the effective image area, the data of the corresponding pixel (address) eventually attains a high level, and if there is no binary coded data of a high level, the data of the corresponding pixel (address) attains a low level. Such distribution detected data indicating the presence of a high level data in each vertical line are first stored in the uppermost row blocks in horizontal line memory 5a of Fig. 3. Similar OR process is carried out for data of the next P effective image lines, whereby distribution detected data indicating the presence of a binary coded data of a high level for each vertical line for the N blocks of the second row of the effective image area are stored in the blocks of the second row of horizontal line memory 5a of Fig. 3. Similar processing is carried out for every P effective image lines, whereby distribution detected data corresponding to one frame is stored in horizontal line memory 5a. Flip-flop circuit 5d is reset at a timing corresponding to the start of every N blocks by a reset signal provided from a reset signal generating circuit (not shown), and set when the binary coded data from comparison circuit 4 is a high level in each horizontal period. If there is at least one pixel of a high level data in each section of the effective image line divided into N portions, a high level distribution detected data is stored only in the address indicating the corresponding horizontal line in the corresponding block of the N x M blocks forming the vertical line memory 5b of Fig. 3. In the above described manner, distribution detected data indicating the distribution state of pixels of high level for consecutive two frames are stored in the first and second memory circuits 5 and 6, whereby data is read out at a high rate simultaneously from both memory circuits during the vertical blanking period. In other words, data are read out simultaneously from the horizontal line memories 5a and 6a from respective memory circuits, and then data are read out simultaneously from the vertical line memories 5b and 6b. The distribution detected data read out from memory circuits 5 and 6 are supplied to the two input terminals of a microcomputer 7 via a switching circuit 9 that is switching controlled by each frame with a control signal from a control signal source not shown. Microcomputer 7 specifies the object's motion vector of the entire effective image area according to the distribution detected data read out from the first and second memory circuits 5 and 6, whereby the effective image area is appropriately moved within the image sensed area in a software manner. Microcomputer 7 is functionally represented as a combination of motion vector detecting circuit 7a and a read out area control circuit 7b. Fig. 4 is a block diagram showing the function of motion vector detecting circuit 7a. Referring to Fig. 4, switching circuit 9 (Fig. 2) switches between the data paths of two systems by every frame so that always the data of the latest frame out of the distribution detected data of the two consecutive frames stored in the first and second memory circuits 5 and 6 are applied in series to a shift register 10 of 5 bits, and always data of the preceding frame are applied in series to a shift register 11 of 5 bits. The data of the third bit from the head of the data of five bits of the latest frame applied to the first shift register 10 is supplied commonly to respective one inputs of negative exclusive OR circuits 12 - 16. The data of five bits of the preceding frame applied to the second shift register 10 are respectively applied to the other inputs of negative exclusive OR circuits 12 - 16. Each negative exclusive OR circuit generates a high level data only when the two inputs coincide with each other, and otherwise a low level data. This generated data is supplied to the corresponding counter of counters 17 - 21 of the succeeding stage. Each of counters 17 - 21 counts the output of the corresponding negative exclusive OR circuit for each block section according to a timing signal applied commonly from a signal generating source not shown. In other words, the output of the center negative exclusive OR circuit 14 indicates the match/mismatch of the distribution detected data of the same address of the first and second memory circuits 5 and 6, whereby the output thereof, i.e. the counted value of counter 19 which counts the number of matching, indicates the degree of correlation with respect to the possibility of no movement in the object between consecutive frames for each block. The outputs of negative exclusive OR circuits 13 and 15 indicate the match/mismatch of distribution detected data in addresses differing by ±1 bit from each other of the first and second memory circuits 5 and 6, whereby the counted values of counters 18 and 20 counting the number of matching indicate the degree of correlation with respect to the possibility of ±1 pixel or ±1 horizontal line movement of the object in the horizontal direction or the vertical direction between consecutive frames for each block. The outputs of negative exclusive OR circuits 12 and 16 indicate the match/mismatch of distribution detected data of addresses differing by ±2 bits from each other of the first and second memory circuits 5 and 6, whereby the counted values of counters 17 and 21 counting the number of matching indicate the degree of correlation with respect to the possibility of ±2 pixels or ±2 horizontal lines movement of the object in the horizontal direction or the vertical direction between consecutive frames for each block. Motion vector specifying circuit 22 obtains the moving distances of the object in the horizontal and vertical directions for each block by specifying the counter having the maximum counted value out of counters 17 - 21 every time the counting for each block is completed, and stores subsequently the results in motion vector memory 23. The motion vectors for respective blocks are thus formed in motion vector memory 23. The motion vectors of respective blocks established in memory 23 are subsequently read out and provided to motion vector selection circuit 24 for majority decision logic processing. Motion vector selection circuit 24 selects the most reasonable motion vector from the motion vectors of respective blocks and provides the same as the motion vector representing the motion of the object in the entire picture to read out area control circuit 7b of Fig. 2. Motion vector selection circuit 24 capable of the aforementioned majority decision logic process is well known, and detail description will be omitted. Read out area control circuit 7b generates a control signal and provides it to a CCD driving circuit 8 for moving the effective image area within the image sensed area to follow the provided motion vector of the entire picture. CCD driving circuit 8 responds to this control signal to generate a signal for changing the signal read out area within the entire image sensed area of CCD 1. This signal is provided to CCD 1. As a result, the effective image area is moved following the movement of the object within the effective image area. Although the moving distances of the object in the consecutive frames are ±2 pixels in the horizontal direction and ±2 horizontal lines in the vertical direction in the above first embodiment, the moving distances are not limited to the above example and may be increased if necessary. Thus, according to the first embodiment of the present invention, the unnecessary movement of an object in an effective image area due to camera-shaking caused by the operator of a video camera can be detected without using a special sensor or a memory of large capacity to correct such unnecessary movement. If high luminance portions of the object image are dispersed in each of the N x M blocks obtained by dividing the effective image area in the above mentioned first embodiment, it is difficult to detect the movement of the object in each block according to the correlation of binary coded data (distribution detected data) between consecutive frames, since all contents in the horizontal and vertical line memories become "1". In an example which will be explained hereinafter performs normalization processing by integrating high level portions of the pattern of an object image in each block and binary coding the integrated value by comparing the same with a reference value. Trivial information of the object image are removed and the patterns of the object image are simplified by the normalization process. This ensures appropriate detection of the movement of the object. Fig. 5 is the diagram used for explaining the principle of normalization. Referring to Fig. 5, one of the M x N blocks of Fig. 1A is enlarged and shown. This block is further divided into P x Q pixels, similar to Fig. 1B. According to the normalization process, the binary coded data of high level (the shaded portions in Fig. 5) are integrated in the vertical direction and the horizontal direction for each block. In other words, the number of binary coded data of a high level is counted for each of the P horizontal lines, whereby the vertical counted data is provided for P horizontal lines (refer to V 1 of Fig. 5). Also, the number of binary coded data of a high level are counted for each of the Q vertical lines, whereby the horizontal counted data is provided for Q pixels (refer to H 1 of Fig. 5). Then, an intermediate value of the counted data is calculated for each block in each of the horizontal direction and the vertical direction. In Fig. 5, the minimum counted value in data V 1 is 1 and the maximum counted value is 11 to result in the intermediate value of (1 + 11)/2 = 6 for the vertical direction. The minimum counted value of data H 1 is 1 and the maximum counted value is 9 to result in an intermediate value of (1 + 9)/2 = 5 for the horizontal direction. Based on these intermediate values of the preceding frame formed in the above described manner, the counted values of the current frame are binary coded to form normalized data. If the intermediate values of the preceding frame are similarly 6 in the vertical direction and 5 in the horizontal direction in the example of Fig. 5, the normalized data of the horizontal line where the counted value exceeds 6 is set to "1", and the normalized data of the horizontal line that is less than 6 is set to "0". (Refer to V 2 of Fig. 5). For the horizontal direction, the normalized data of the vertical line where the counted value exceeds 5 is set to "1", and the normalized data of the vertical line where the counted value is less than 5 is set to "0" (refer to H 2 of Fig. 5). These normalized data V 2 and H 2 are stored in the vertical line memory and the horizontal line memory instead of the distribution detected data of the aforementioned first embodiment, whereby the motion vector of the object for each block is specified according to these normalized data, similar to the manner in the first embodiment. Fig. 6 is a block diagram schematically showing a camera-shake detecting circuit of a video camera. In Fig. 6, solid-state image sensing device 1, signal processing circuit 2, reference value selection circuit 3, comparison circuit 4, motion vector detecting circuit 7a, read out area control circuit 7b and CCD driving circuit 8 are identical to those shown in Fig. 2, and their descriptions will not be repeated. Referring to Fig. 6, the binary coded data for each pixel supplied from comparison circuit 4 is applied to a horizontal counting circuit 30 and a vertical counting circuit 31. Horizontal counting circuit 30 counts the supplied binary coded data for each block and for each horizontal line to provide the resulting data V 1 to a first intermediate value setting circuit 33 and to a horizontal normalization circuit 37. Fig. 7 is a block diagram showing in detail the intermediate value setting circuit 33. Referring to Fig. 7, the counted value data provided from horizontal counting circuit 30 is applied to a maximum value latching circuit 41 and a minimum value latching circuit 42. These latching circuits latch the maximum value and the minimum value of the counted value data, respectively, in the horizontal direction for each block. The counted value data for one frame is applied, and the maximum and minimum values of counted value data V 1 are averaged for each block by intermediate value calculating circuit 43 during the vertical blanking period after the maximum value and the minimum value for each block have been determined. Thus, the intermediate value data of the vertical direction is calculated. This intermediate value data is supplied and stored in the first intermediate value memory circuit 35 of the next stage. At the next frame, the intermediate value data of the block corresponding to the latest counted value data V 1 provided from horizontal counting circuit 30 is read out from the first intermediate value memory circuit 35. Horizontal normalization circuit 37 compares the latest counted value data V 1 provided from horizontal counting circuit 30 with the intermediate value data provided from the first intermediate value memory circuit 35 to provide the comparison result to memory 39 as the horizontal normalized data of 1 or 0. Vertical counting circuit 31 for integrating binary coded data in the vertical direction integrates the counted value data read out from M line memory 32 that stores the counted values in the vertical direction for all blocks forming one frame and the latest binary coded data provided from comparison circuit 4 to sequentially update the counted value of the corresponding vertical line, whereby the integrated data is stored in M line memory 32, and supplied to the second intermediate value setting circuit 34 and a vertical normalization circuit 38. The structure and operation of the second intermediate value setting circuit 34 are basically similar to that of the first intermediate value setting circuit 33 of Fig. 7. However, the second intermediate value setting circuit 34 has a simpler circuit configuration because it is not necessary to provide memory means for each block in maximum value latching circuit 41 and minimum value latching circuit 42 due to counted value being sequentially provided from vertical counting circuit 31 for each block. The vertical intermediate value data calculated at the second intermediate value setting circuit 34 is provided to the second intermediate value memory circuit of the next stage. In the next frame, intermediate value data of the block corresponding to the latest counted value data H 1 provided from vertical counting circuit 31 is read out from the second intermediate value memory circuit 36. Vertical normalization circuit 38 compares the latest counted value data H 1 provided from vertical counting circuit 31 with the intermediate value data provided from the second intermediate value memory circuit 36 to supply the comparison result to memory 39 as the vertical normalized data of "1" or "0". The above mentioned horizontal counting circuit 30, vertical counting circuit 31, M line memory 32, first and second intermediate value setting circuits 33 and 34, first and second intermediate value memory circuits 35 and 36, horizontal normalization circuit 37 and vertical normalization circuit 38 constitute as a whole a normalization circuit 100. Memory 39 stores the horizontal normalized data provided from horizontal normalization circuit 37 in a vertical memory (not shown), and the vertical normalized data provided from vertical normalization circuit 38 in a horizontal memory (not shown). After one frame period has elapsed, memory 39 transmits this content to memory 40. The contents of memories 39 and 40 are read out simultaneously and provided to microcomputer 7 identical to that of the first embodiment of Fig. 2. The motion vector for each block is specified according to the normalized horizontal and vertical distribution detected data, and then the motion vector representing the entire picture is specified by the majority decision logic process. The remaining operation is identical to that of the aforementioned first embodiment and will not be repeated. Thus, the movement of an object in an effective image area can be detected by carrying out normalization process that integrates and binary-codes the pattern of high level portion of the object, even when the binary coded data of an object image are dispersed. Fig. 8 is a block diagram schematically showing a camera-shake detecting circuit of a video camera according to the embodiment of the present invention. In the third embodiment, the center point of the object pattern for each block is detected according to the horizontal and vertical normalized data for each block calculated by the normalization circuit 100. The motion vector for each block is specified according to the moving direction of the center point of each block between consecutive frames. Referring to Fig. 8, horizontal normalized data and vertical normalized data separately provided from normalization circuit 100 having a structure identical to that of Fig. 6 are provided to a center point detecting circuit 200 sequentially for each block to detect the position of center point G of the object pattern for each block. Center point G is individually obtained for the vertical direction and the horizontal direction by the following equation, where N is the bit number of the horizontal or vertical normalized data, and D k is the data of the K-th bit within this data. Referring to Fig. 8, the horizontal normalized data (vertical direction center point position data) supplied from normalization circuit 100 is provided to the control input of a gate 50 and a data counter 54. Counter 52 repeats counting for each block, i.e. for every P bits in synchronism with the input of the first bit of the horizontal normalized data of each block. When the k-th bit data D k of the horizontal normalized data is "1", gate 50 supplies the counted value k of counter 52 to one input of an adder circuit 56. The output of adder circuit 56 is latched at a latching circuit 58, and then applied to the other input of adder circuit 56. That is to say, latching circuit 58 and adder circuit 56 carry out the calculation of the numerator of equation (1) obtaining the position of a center point in the vertical direction, This calculated result is stored in latching circuit 58. Data counter 54 counts the applied horizontal normalized data to carry out the calculation of the denominator of equation (1) for the vertical direction, After the horizontal normalized data of each block have been applied, a divider circuit 60 divides the output of latching circuit 58 by the output of data counter 54 to obtain the center point position data in the vertical direction of the corresponding block. Similarly, the vertical normalized data (horizontal center point position data) provided from normalization circuit 100 is applied to the control input of a gate 51 and a data counter 55. A counter 53 repeats counting for each block, i.e. for every Q bits in synchronism with the input of the first bit of the vertical normalized data of each block. When the k-th data D k of the vertical normalized data is "1", gate 51 supplies the counted value k of counter 53 to one input of an adder circuit 57. The output of adder circuit 57 is latched at a latching circuit 59, and then supplied to the other input of adder circuit 57. That is to say, latching circuit 59 and adder circuit 57 carry out the calculation of the numerator of equation (1) obtaining the position of the center point in the horizontal direction, The calculated result is stored in latching circuit 59. Data counter 55 counts the applied vertical normalized data to carry out calculation of the denominator of equation (1) of the horizontal direction, After the horizontal normalized data have been applied for each block, a divider circuit 61 divides the output of latching circuit 59 by the output of data counter 55 to obtain the center point position data in the horizontal direction of the corresponding block. The center point position data of the vertical direction and the horizontal direction calculated in center point detecting circuit 200 are applied to the two input terminals of microcomputer 70. Microcomputer 70 specifies the motion vector of the object in the effective image area according to the center point position data provided from center point detecting circuit 200 to move the effective image area appropriately within the image sensing area in a software manner according to the result. Microcomputer 70 functions as a combination of motion vector detecting circuit 70a and read out area control circuit 70b. Fig. 9 is a block diagram showing the function of motion vector detecting circuit 70a. Referring to Fig. 9, the center point position data of the vertical direction provided from center point detecting circuit 200 is applied to a memory 71 and a comparison circuit 73, whereby the center point position data of all the blocks of the corresponding frame are temporarily held in memory 71. At the next frame, the latest vertical direction center point position data provided from center point detecting circuit 200 is compared with the vertical direction center point position data of the preceding frame provided from memory 71 for each block to calculate the difference therebetween, i.e. the moving distance of the center point of the object pattern in the vertical direction in one frame period. Similarly, the horizontal direction center point position data provided from center point detecting circuit 200 is applied to a memory 72 and a comparison circuit 74, whereby the center point position data of all the blocks of the corresponding frame are temporarily held in memory 72. At the next frame, the latest horizontal direction center point position data of the preceding frame provided from center point detecting circuit 200 is compared with the horizontal direction center point position data of the preceding frame provided from memory 72 for each block to calculate the difference therebetween, i.e. the moving distance of the center point of the object pattern in the horizontal direction in one frame period. The above mentioned memories 71 and 72 and comparison circuits 73 and 74 form motion vector specifying circuit 75. The moving distances of the center point in the vertical direction and the horizontal direction for each block is sequentially stored in motion vector memory 76. The motion vectors for respective blocks are established within motion vector memory 76. The motion vectors of respective blocks established in memory 76 are read out sequentially and provided to motion vector selection circuit 77 for majority decision logic process. Similar to the motion vector selection circuit 24 of Fig. 4, motion vector selection circuit 77 selects the motion vector of the most highest frequency occurrence out of the motion vectors of respective blocks and provides the same to read out area control circuit 70b of Fig. 8 as the motion vector representing the movement of the object in the entire picture. Because read out area control circuit 70b is identical to read out area control circuit 7b of Fig. 2, the remaining operation is identical to that of the aforementioned embodiment, and their description will not be repeated. Although majority decision logic process is carried out for the motion vectors specified for all blocks in the above mentioned embodiment, the motion vector for the entire image area may be specified by individually carrying out majority decision logic process for the scalar quantity of the moving distances of the center point position in the vertical direction and the horizontal direction. The above mentioned embodiment detects the center point position according to the normalized data of all horizontal lines and vertical lines in each block. There is a great possibility that a new object is introduced near the inner periphery of the boundary of each block when camera-shaking caused by the operator occurs. Therefore, such normalized data of the lines near the inner periphery of the succeeding frame may suppress the accurate detection of the center point position. When the maximum moving distances of the object due to camera-shaking are expected to be ±Q' pixels in the horizontal direction and ±P' lines in the vertical direction, it is possible to calculate the center point position data of the preceding frame which is the base for comparison, using the area inside Fig. 10 as the standard area for each block of the preceding frame, and then use the center point data of (2Q'+1)x(2P'+1) areas (the outside area of Fig. 10) formed by moving the above mentioned standard area ±Q' pixels in the horizontal direction and ±P' lines in the vertical direction as the center point position data of the current frame to be compared. It is also applicable to the first embodiment to detect the movement of the object by setting the area in each block in the preceding frame to be smaller than the area in each block in the current frame. Hence, according to the embodiment of the present invention, unnecessary movement of an object due to camera-shaking can be detected with a more simplified structure. Although a method of moving an effective image area within the image sensed area is employed as a method of correction according to the detected motion vector in the above described three embodiments, other methods for correction may be employed, such as changing the angles of the CCDs or lens. It is appreciated that a portion or all of the embodiments may be realized in a software manner using microcomputers. It is also appreciated that a similar effect may be obtained by specifying a motion vector by directly carrying out the center point detection of the embodiment according to distribution detected data obtained for each vertical line memory and each horizontal line memory in the first embodiment, without carrying out the normalization process. Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, the scope of the present invention being limited only by the terms of the appended claims.

Claims: An image sensing apparatus having camera-shake detection function comprising: image sensing means (1, 2) for receiving light from an object and converting the same into a video signal, binary coding means (3, 4) for dividing an image sensed picture into a plurality of blocks (M x N) and binary coding said video signal at (P x Q) sampling points formed of P sampling points in the vertical direction and Q sampling points in the horizontal direction in each block by comparing the same with a first reference value determined for each block, correction data calculating means (5b, 5d, 5a, 5c) for generating first normalized data indicating the distribution position of the object in the vertical direction by logically combining (5b, 5d) for each horizontal line of each block all Q binary coded data of said horizontal line; and for generating second normalized data indicating the distribution position of the object in the horizontal direction by logically combining (5a, 5c) for each vertical line of each block all P binary coded data of said vertical line, a pair of memory means (5, 6) for storing said first and second normalized data every predetermined period for each block, motion vector specifying means (9, 7a) for detecting a correlation between a pair of said first normalized data and pair of said second normalized data stored in said pair of memory means (5, 6) to specify a motion vector of the object for each block according to the detected correlation, motion vector selecting means (7a) for selecting a motion vector of the object of an entire image sensed picture by logic process based on said specified motion vectors for respective blocks, and means (7b, 8) responsive to the selected motion vector of the object of the entire image sensed picture to control said image sensing means to make changes to said image sensed picture so as to correct the motion of the object. The image sensing apparatus according to claim 1, wherein said distribution data calculating means comprises means for calculating data indicating the center point position of the object for each block according to said first and second normalized data, said motion vector specifying means comprises means to detect the moving distance of the center point of the object between the preceding frame and the current frame for each of said block for specifying a motion vector for each block according to the result.

Inventors: KOBAYASHI AKIO, KOBAYASHI, AKIO
Applicants: SANYO ELECTRIC CO, SANYO ELECTRIC CO., LTD.
Application year: 1991
Main classification: H04N5
IPC codes: H04N5, G06T7