Imaging device, imaging method, and program

The imaging device uses positional and image data to adjust focus on objects within a target area, addressing focus adjustment challenges in autofocus imaging devices, particularly in surveillance, by identifying and tracking objects within the area.

JP7739903B2Active Publication Date: 2025-09-17JVC KENWOOD CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021157244
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-09-27
Publication Date
2025-09-17
Estimated Expiration
2041-09-27

AI Technical Summary

Technical Problem

Existing autofocus imaging devices struggle with appropriately adjusting the focus to ensure clear imaging, particularly in surveillance applications where objects may enter or exit the target area.

Method used

An imaging device equipped with an object information acquisition unit, target area acquisition unit, focus position control unit, and object identification unit to determine if an object is within a designated target area and adjust focus accordingly, using positional information and image data to identify if the object is the same as previously present in the area.

Benefits of technology

The device effectively adjusts focus on objects within the target area, ensuring clear imaging and recognizing if objects are the same as those previously present, enhancing surveillance capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007739903000001
    Figure 0007739903000001
  • Figure 0007739903000002
    Figure 0007739903000002
  • Figure 0007739903000003
    Figure 0007739903000003
Patent Text Reader

Abstract

To properly adjust a focal position.SOLUTION: An imaging device 100 includes an imaging element; an object information acquisition part which acquires the positional information on an object existing in an imaging region AR0 of the imaging element; an object region acquisition part which acquires the positional information on the object region AR in the imaging region AR0; a focus position control part for controlling a focus position of the imaging device 100 so that the focus position matches the object when the object is present in the object region AR: and an object identification part for determining whether an object is the same as the object existing in the object region AR in the past, when the object exists in the object region AR.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to an imaging device, an imaging method, and a program. [Background technology]

[0002] There are known autofocus imaging devices that automatically set a focal position. For example, Patent Document 1 describes that the focus is adjusted to a predetermined position designated by the user. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] International Publication No. 2017 / 141746 Summary of the Invention [Problem to be solved by the invention]

[0004] In an autofocus imaging device, it is required to properly adjust the focus.

[0005] In view of the above-mentioned problems, an object of the present invention is to provide an imaging device, an imaging method, and a program that are capable of appropriately adjusting the focus. [Means for solving the problem]

[0006] An imaging device according to one aspect of the present invention is an imaging device capable of capturing an image of an object, and includes an imaging element, an object information acquisition unit that acquires positional information of an object present in the imaging area of ​​the imaging element, a target area acquisition unit that acquires positional information of a target area within the imaging area, a focus position control unit that controls the focus position of the imaging device so as to focus on an object if an object is present in the target area, and an object identification unit that determines, if an object is present in the target area, whether the object is the same as an object that was present in the target area in the past.

[0007] An imaging method according to one aspect of the present invention is an imaging method for imaging an object, and includes the steps of acquiring positional information of an object present in an imaging area, acquiring positional information of a target area within the imaging area, controlling the focal position of an imaging device so as to focus on an object if an object is present in the target area, and determining, if an object is present in the target area, whether the object is the same as an object that was present in the target area in the past.

[0008] A program according to one aspect of the present invention is a program that causes a computer to execute an imaging method for imaging an object, and causes the computer to execute the following steps: acquiring positional information of an object present in an imaging area; acquiring positional information of a target area within the imaging area; controlling the focal position of an imaging device so as to focus on an object, if an object is present in the target area; and determining, if an object is present in the target area, whether the object is the same as an object that existed in the target area in the past. [Effects of the Invention]

[0009] According to the present invention, it is possible to appropriately adjust the focus. [Brief explanation of the drawings]

[0010] [Figure 1] FIG. 1 is a schematic block diagram of an imaging device according to the first embodiment. [Figure 2] FIG. 2 is a schematic diagram illustrating an example of a target region. [Figure 3] FIG. 3 is a schematic diagram illustrating an example of a target region. [Figure 4] FIG. 4 is a schematic diagram showing another example of the target region. [Figure 5] FIG. 5 is a schematic diagram showing another example of the target region. [Figure 6] FIG. 6 is a flowchart illustrating the process flow for setting the focal position. [Figure 7] FIG. 7 is a schematic diagram illustrating an example in which the motion of an object is set as a predetermined condition. DETAILED DESCRIPTION OF THE INVENTION

[0011] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the accompanying drawings. However, the present invention is not limited to the following embodiments.

[0012] (First embodiment) (Configuration of imaging device) FIG. 1 is a schematic block diagram of an imaging device according to a first embodiment. The imaging device 100 according to the first embodiment is an imaging device that captures an image of an object within an imaging range. The imaging device 100 is an autofocus camera that can automatically set the focal position. The imaging device 100 may be a video camera that captures moving images by capturing images every predetermined frame, or may be a camera that captures still images. The imaging device 100 may be used for any purpose, and may be used, for example, as a surveillance camera set at a predetermined position inside a facility or outdoors.

[0013] As shown in FIG. 1, the imaging device 100 includes an optical element 10, an imaging element 12, an image processing circuit 13, an object position measurement unit 14, an input unit 16, a display unit 18, a communication unit 20, a memory unit 22, and a control unit 24.

[0014] The optical element 10 is an element of an optical system such as a lens, etc. The optical element 10 may be one or more.

[0015] The imaging element 12 is an element that converts light incident through the optical element 10 into an image signal, which is an electrical signal. The imaging element 12 is, for example, a CCD (Charge Coupled Device) sensor or a CMOS (Complementary Metal Oxide Semiconductor) sensor.

[0016] The image processing circuit 13 generates image data for each frame from the image signal generated by the imaging element 12. The image data is data including, for example, information on the luminance and color of each pixel in one frame, and may be data to which a gradation is assigned for each pixel.

[0017] The object position measuring unit 14 is a sensor that measures the position of the object to be measured with respect to the imaging device 100 (the relative position of the object). The object here may be any object, and may be a living or inanimate object, and the same applies hereinafter. Furthermore, the object here may refer to a movable object, but is not limited thereto and may also refer to an immobile object.

[0018] In this embodiment, the object position measuring unit 14 measures the distance from the image capturing device 100 to the object as the relative position of the object. The object position measuring unit 14 may be any sensor capable of measuring the relative position of the object, and may be, for example, a TOF (Time Of Flight) sensor. When the object position measuring unit 14 is a TOF sensor, for example, a light-emitting element (e.g., an LED (Light Emitting Diode)) that irradiates light and a light-receiving unit that receives the light are provided, and the distance to the object is measured based on the time of flight of light that is irradiated from the light-emitting element to the object and returned to the light-receiving unit. Note that the object position measuring unit 14 may measure, for example, the direction in which the object exists relative to the image capturing device 100 in addition to measuring the distance from the image capturing device 100 to the object as the relative position of the object. In other words, the object position measuring unit 14 may measure, as the relative position of the object, the position (coordinates) of the object in a coordinate system with the image capturing device 100 as the origin.

[0019] The input unit 16 is a mechanism for accepting input (operation) from the user, and may be, for example, a button, a keyboard, or a touch panel.

[0020] The display unit 18 is a display panel that displays an image. In addition to the image captured by the imaging device 100, the display unit 18 may also be capable of displaying an image for the user to set a target area AR (described later).

[0021] The communication unit 20 is a communication module that communicates with an external device, and may be, for example, an antenna, a Wi-Fi (registered trademark) module, etc. The imaging device 100 communicates with the external device via wireless communication, but wired communication may also be used, and any communication method may be used.

[0022] The storage unit 22 is a memory that stores various information such as captured image data, calculation contents and programs of the control unit 24, and includes at least one of a main storage device such as a RAM (Random Access Memory), a ROM (Read Only Memory), and an external storage device such as an HDD (Hard Disk Drive). The program for the control unit 24 stored in the storage unit 22 may be stored in a recording medium that can be read by the imaging device 100.

[0023] The control unit 24 is a computing device and includes an arithmetic circuit such as a CPU (Central Processing Unit). The control unit 24 includes a target area acquisition unit 30, an object information acquisition unit 32, a focus position control unit 34, an imaging control unit 36, an image acquisition unit 38, and an object identification unit 40. The control unit 24 reads and executes a program (software) from the storage unit 22 to implement the target area acquisition unit 30, the object information acquisition unit 32, the focus position control unit 34, the imaging control unit 36, the image acquisition unit 38, and the object identification unit 40 and perform their processing. The control unit 24 may execute these processes using a single CPU, or may be provided with multiple CPUs and execute the processes using the multiple CPUs. At least a portion of the processing performed by the target area acquisition unit 30, the object information acquisition unit 32, the focus position control unit 34, the imaging control unit 36, the image acquisition unit 38, and the object identification unit 40 may be implemented using hardware circuits.

[0024] (Target area acquisition section) The target area acquisition unit 30 acquires information about a target area AR set within the imaging area of ​​the imaging device 100. The target area AR is an area set to automatically adjust the focus position. The information about the target area AR is information indicating the position of the target area AR, i.e., position information about the target area AR. The target area AR will be described below.

[0025] 2 and 3 are schematic diagrams for explaining an example of a target area. FIG. 2 is a view of the imaging device 100 and the target area AR viewed from above in the vertical direction, and FIG. 3 is a view of the imaging device 100 and the target area AR viewed from the horizontal direction. Hereinafter, direction Z is defined as the vertical direction, direction X is defined as one horizontal direction perpendicular to direction Z, and direction Y is defined as a direction (horizontal direction) perpendicular to direction Z and direction X. As shown in FIGS. 2 and 3, the range in which an image can be captured by the imaging device 100 is defined as an imaging area AR0. The imaging area AR0 refers to the area (space) that falls within the angle of view of the imaging element 12, in other words, the range in real space that is captured as an image. The target area AR is an area (space) set within the range of the imaging area AR0.

[0026] More specifically, the target area AR is an area within the imaging area AR0 between a first position AX1 and a second position AX2. The first position AX1 is a position at a first distance L1 from the imaging device 100, and the second position AX2 is a position at a second distance L2 that is shorter than the first distance L1. As shown in FIGS. 2 and 3 , in this embodiment, the first position AX1 can be considered to be a virtual plane that includes positions (coordinates) within the imaging area AR0 that are at the first distance L1 from the imaging device 100. Similarly, the second position AX2 can be considered to be a virtual plane that includes positions (coordinates) within the imaging area AR0 that are at the second distance L2 from the imaging device 100. That is, the target area AR can be considered to be a space within the imaging area AR0 that is surrounded by a virtual plane that is at the second distance L2 from the imaging device 100 and a virtual plane that is at the first distance L1 from the imaging device 100. Note that the first position AX1 is not limited to being a virtual plane on which all positions (coordinates) included in the first position AX1 are the first distance L1 from the imaging device 100, but may be a virtual plane on which at least some positions (coordinates) included in the first position AX1 are the first distance L1 from the imaging device 100. Similarly, the second position AX2 may be a virtual plane on which at least some positions (coordinates) included in the second position AX2 are the second distance L2 from the imaging device 100.

[0027] 4 and 5 are schematic diagrams showing other examples of the target area. In the description of FIGS. 2 and 3, the target area AR is delimited by the first position AX1 and the second position AX2 with respect to the imaging area AR0 in the optical axis direction of the imaging device 100 (the depth direction of the image). However, the target area AR is not delimited with respect to the imaging area AR0 in the radial direction (the direction of the angle of view) with respect to the optical axis direction of the imaging device 100. In other words, the end face of the target area AR in the direction of the angle of view coincides with the end face of the imaging area AR0 in the direction of the angle of view. However, this is not limited thereto, and the target area AR may also be delimited with respect to the imaging area AR0 in the direction of the angle of view. That is, for example, as shown in FIGS. 4 and 5, the target area AR may also be delimited with respect to the imaging area AR0 in the direction of the angle of view by the third position AX3. In this example, the third position AX3 is a virtual surface (here, a closed curved surface shaped like a cylindrical side surface) that includes positions (coordinates) that are a predetermined distance outward in the radial direction with respect to the optical axis LX of the imaging device 100. In this case, the target area AR is an area (space) surrounded by the first position AX1, the second position AX2, and the third position AX3. Note that the third position AX3 is not limited to being a virtual plane in which all positions (coordinates) included in the third position AX3 are the first distance L1 from the optical axis LX, but may be a virtual plane in which at least some positions (coordinates) included in the third position AX3 are the third distance L3 from the optical axis LX. For example, the third position AX3 may be a virtual plane that expands radially outward (in the horizontal and elevation directions) at a predetermined angle as it moves away from the image capture device 100 along the optical axis direction.

[0028] The size and shape of the target area AR are not limited to those described above and may be any. The position of the target area AR is also not limited to between the first position AX1 and the second position AX2 and may be any position. The target area AR is an area set within the imaging area AR0, but is not limited to this. For example, if the range measurable by the object position measuring unit 14 is defined as a ranging area (ranging space), the target area AR may be an area set within the ranging area. In this case, the imaging area AR in FIGS. 2 to 5 may be treated as the ranging area.

[0029] The target area acquisition unit 30 may acquire information about the target area AR using any method. For example, the position of the target area AR may be set in advance. In this case, the target area acquisition unit 30 may read the position information of the target area AR set in advance from the storage unit 22, or may acquire the position information of the target area AR from another device via the communication unit 20. For example, if the position of the target area AR is not set in advance, the target area acquisition unit 30 may automatically set the position of the target area AR. For example, the user may set the position of the target area AR. In this case, for example, the user may input information specifying the position of the target area AR (e.g., values ​​of the first distance L1, the second distance L2, and the third distance L3) to the input unit 16, and the target area acquisition unit 30 may set the target area AR based on the position information of the target area AR specified by the user. For example, the target area AR may be set by specifying coordinates. That is, in the example of FIG. 2, coordinates P1, P2, P3, and P4 that are the vertex positions of the target area AR may be specified, and the area enclosed by the coordinates P1 to P4 may be set as the target area AR.

[0030] (Object information acquisition unit) The object information acquisition unit 32 acquires position information of an object present within the imaging area AR0. The object information acquisition unit 32 controls the object position measurement unit 14 to cause the object position measurement unit 14 to measure the relative position of the object with respect to the imaging device 100. The object information acquisition unit 32 acquires the measurement result of the object's relative position with respect to the imaging device 100 by the object position measurement unit 14 as object position information. The object information acquisition unit 32 acquires object position information sequentially by acquiring object position information at predetermined time intervals. The object information acquisition unit 32 can also acquire information indicating the shape of the object (e.g., the 3D shape of the object) based on the object position information. For example, the object information acquisition unit 32 can acquire the 3D shape of the object by accumulating multiple pieces of position information, such as TOF image information.

[0031] (Focus position control unit) The focus position control unit 34 sets the focus position of the imaging device 100. The focus position control unit 34 controls the focus position by controlling the position of the optical element 10, that is, by moving the position of the optical element 10.

[0032] The focus position control unit 34 adjusts the focus position to an object present within the target area AR. In other words, the focus position control unit 34 sets the focus position to the position of an object determined to be present within the target area AR. In this embodiment, the focus position control unit 34 determines whether an object is present within the target area AR based on the object's position information acquired by the object information acquisition unit 32. If the position of the object acquired by the object information acquisition unit 32 overlaps with the position of the target area AR, the focus position control unit 34 determines that the object is present within the target area AR and adjusts the focus position to the object's position acquired by the object information acquisition unit 32. That is, for example, if the distance from the imaging device 100 to the object is equal to or less than the first distance L1 and equal to or greater than the second distance L2, the focus position control unit 34 determines that the object is present within the target area AR and adjusts the focus position to the object. On the other hand, the focus position control unit 34 does not adjust the focus position to an object not present within the target area AR. That is, for example, if the distance from the imaging device 100 to the object is farther than the first distance L1 or closer than the second distance L2, the focus position control unit 34 determines that the object does not exist within the target area AR and does not adjust the focus position to the object.

[0033] The focus position control unit 34 continues to focus on the object for a period during which the object for which the focus position is set is present within the target area AR. That is, the focus position control unit 34 determines whether the object continues to exist within the target area AR based on the object's position information acquired at predetermined time intervals by the object information acquisition unit 32, and continues to focus on the object for a period during which the object continues to exist within the target area AR. On the other hand, if the object for which the focus position is set moves outside the target area AR, i.e., if it is no longer present within the target area AR, the focus position control unit 34 moves the focus position away from the object and focuses on a position other than the object.

[0034] Note that the focus position control unit 34 does not need to adjust the focus position for an object that has been present in the target area AR since the imaging device 100 started operating (the timing when imaging is possible). That is, the focus position control unit 34 may adjust the focus position for an object that enters the target area AR after operation has started. In other words, the focus position control unit 34 may adjust the focus position for an object that exists in the target area AR at a certain timing but did not exist in the target area AR at a timing prior to that timing, from the timing when the object begins to exist in the target area AR. In other words, when an object moves from outside the target area AR into the target area AR, the focus position control unit 34 may recognize the object as a target to be focused on. That is, the focus position control unit 34 may adjust the focus position for an object that moves from outside the target area AR into the target area AR.

[0035] Furthermore, when no object is present within the target area AR, the focus position control unit 34 may adjust the focus position to a preset position. The position may be set arbitrarily, but is preferably set within the target area AR, such as the center position of the target area AR.

[0036] The focal position may be set by the user. In this case, for example, the camera may be able to switch between an auto mode in which the focal position is automatically set and a manual mode in which the user sets the focal position. In the auto mode, the focal position is set by the focal position control unit 34 as described above. On the other hand, in the manual mode, the user inputs an operation to set the focal position into the input unit 16, and the focal position control unit 34 sets the focal position in accordance with the user's operation.

[0037] (imaging control unit) The imaging control unit 36 ​​controls imaging by the imaging device 100 to capture an image. The imaging control unit 36 ​​controls, for example, the imaging element 12 to cause the imaging element 12 to acquire an image signal. For example, the imaging control unit 36 ​​may cause the imaging element 12 to acquire an image signal automatically, or may cause the imaging element 12 to acquire an image signal in response to a user operation.

[0038] (Image acquisition section) The image acquisition unit 38 acquires image data acquired by the imaging element 12. The image acquisition unit 38, for example, controls the image processing circuit 13 to cause the image processing circuit 13 to generate image data from the image signal generated by the imaging element 12, and acquires the image data. The image acquisition unit 38 stores the image data in the storage unit 22.

[0039] (Object Identification Unit) If an object is present in the target area AR, the object identification unit 40 determines whether the object is the same as an object that previously existed in the target area AR. That is, when it is determined that an object is located in the target area AR, the focus position control unit 34 adjusts the focus position on the object, while the object identification unit 40 determines whether the object is the same as an object that previously existed in the same target area AR.

[0040] In this embodiment, the object identification unit 40 determines whether the objects determined to exist within the target area AR are the same based on image data of the object determined to exist within the target area AR and image data of objects previously determined to exist within the target area AR. In this case, the imaging control unit 36 ​​captures an image including the object at the timing when it is determined that the object exists within the target area AR, and causes the image acquisition unit 38 to acquire image data of the object. The object identification unit 40 determines whether the objects are the same based on the image data of the object currently acquired and the image data of the object previously acquired. Note that the image data of the object is image data that indicates the outline of the object.

[0041] Any method may be used to determine whether objects are identical based on image data. For example, the object identification unit 40 may extract object features from the object image data and determine whether the objects are identical based on the degree of similarity between the features. That is, the object identification unit 40 extracts object features from previously acquired image data of the object, extracts object features from currently acquired image data of the object, and determines whether the objects are identical based on the degree of similarity between the feature features of the objects. The object identification unit 40 determines that the objects are identical if the degree of similarity between the feature features is equal to or greater than a predetermined threshold, and determines that the objects are not identical if the degree of similarity between the feature features is less than the predetermined threshold. Note that the extraction of feature features from previously acquired image data of the object may be performed at any timing. For example, the feature values ​​may be extracted at the time the image data of the object was acquired in the past and stored in the storage unit 22. In this case, the object identification unit 40 reads the feature values ​​extracted from the previously acquired image data of the object from the storage unit 22. Furthermore, any method may be used to extract features and calculate the degree of match, for example, an AI (Artificial Intelligence) model may be used. Furthermore, the determination of object identity may be based on something other than image data. For example, the determination of object identity may be performed using 3D shape information acquired by the object information acquisition unit 32.

[0042] Here, the past refers to a period from the present (the most recent timing at which it was determined that an object was located within the target area AR) to a predetermined time ago. That is, in this embodiment, if an object has existed in the target area AR since a timing before the predetermined time ago, the object identification unit 40 determines whether the object is identical to the object currently determined to exist within the target area AR. In other words, the object identification unit 40 determines whether the object currently determined to exist within the target area AR is identical to an object that has existed within the target area AR since a timing before the predetermined time ago. However, the object identification unit 40 is not limited to determining that only objects that have existed within the target area AR since a timing before the predetermined time ago are identical. That is, the object identification unit 40 may also determine that an object is identical to an object that has been determined to exist within the target area AR even in the past, even if there is an object that was determined to exist within the target area AR even before the predetermined time ago.

[0043] Furthermore, if an object has existed in the target area AR multiple times in the past, the object identification unit 40 may determine whether the current object matches an object that existed in the target area AR most recently. However, the object identification unit 40 is not limited to determining whether the current object matches only the most recent object, and may determine whether the current object matches each of the past objects based on the image data of the current object and the image data of each of the past objects.

[0044] It can be said that the imaging device 100 is constantly capturing images when it displays images within the imaging area AR on the display unit 18 in real time. However, when the image is not being recorded, the image is temporarily stored in a buffer or the like and then automatically deleted without being saved in the storage unit 22. In this embodiment, the image data used for identity determination may refer to image data that is automatically deleted without being saved in the storage unit 22, rather than image data for recording that is automatically saved in the storage unit 22.

[0045] The method of determining whether an object is identical to a past object is not limited to using image data. For example, the object identification unit 40 may perform the determination based on the position information of the object acquired by the object information acquisition unit 32. In this case, for example, the object identification unit 40 determines whether the object currently located within the target area AR corresponds to an object that previously existed within the target area AR, moved out of the target area AR, and has now re-entered the target area AR, based on the position information of the object continuously acquired in time series. If the object identification unit 40 determines that the object currently located within the target area AR corresponds to an object that previously existed within the target area AR and has now re-entered the target area AR, it determines that the object is identical to the past object.

[0046] The object identification unit 40 stores the determination result of the identity determination with a past object in the storage unit 22. That is, the object identification unit 40 stores the determination result of whether the object determined to be currently located within the target area AR is identical to an object that existed in the same target area AR in the past in the storage unit 22. In this case, for example, the object identification unit 40 may store this determination result in the storage unit 22 in association with image data of the object, or may store this determination result in the storage unit 22 in association with the time when the image data was acquired.

[0047] An example of the above-described process of adjusting the focal position and the process of determining whether the object is identical to a past object will be described with reference to FIG. 2. FIG. 2 shows an example in which object A moves in the following order: position A0 outside the target area AR, position A1 within the target area AR, position A2 outside the target area AR, position A3 within the target area AR, and position 4 outside the target area AR. In this case, the focus position control unit 34 does not adjust the focal position on object A when object A is at position A0, but instead adjusts the focal position to, for example, a set position. Then, the focus position control unit 34 adjusts the focal position on object A when object A is at position A1, i.e., when object A enters the target area AR. At this time, the object identification unit 40 determines whether object A at position A1 is identical to an object that was located in the target area AR before object A was located at position A1. In this example, since there is no object that was located in the target area AR before the time when object A was located at position A1, the object identification unit 40 determines that there was no object identical to object A in the past, and stores the determination result in the memory unit 22.

[0048] The focus position control unit 34 continues to focus on object A while object A is located within the target area AR. Thereafter, when object A moves to position A2, i.e., when object A leaves the target area AR, the focus position control unit 34 removes the focus from object A and returns the focus to the set position. Thereafter, when object A is located at position A3, i.e., when object A re-enters the target area AR, the focus position is adjusted to object A. At this time, the object identification unit 40 determines whether object A located at position A3 is the same as an object located in the target area AR before object A located at position A3. In this example, object A was located within the target area AR at position A1, so the object identification unit 40 determines that object A located at position A3 and object A located at position A1 are the same object and stores the determination result in the memory unit 22.

[0049] Thereafter, when the object A moves to position A4, that is, when the object A moves out of the target area AR, the focus position control unit 34 moves the focus position away from the object A and returns the focus position to the set position.

[0050] (Focus position setting flow) Next, the process flow for setting the focal position described above will be described. FIG. 6 is a flowchart illustrating the process flow for setting the focal position. As shown in FIG. 6, the control unit 24 acquires information about the target area AR using the target area acquisition unit 30 (step S10), and acquires position information of the object using the object information acquisition unit 32 (step S12). The order of steps S10 and S12 may be arbitrary. The control unit 24 determines, using the focus position control unit 34, whether the object is located within the target area AR based on the position information of the object (step S14). If the object is not located within the target area AR (step S14; No), the process returns to step S12 and continues acquiring position information of the object. On the other hand, if the object is located within the target area AR (step S14; Yes), the focus position control unit 34 adjusts the focal position to the object (step S16). Then, the object identification unit 40 determines whether the object located within the target area AR is the same as an object that was previously located within the target area AR (step S18). In this embodiment, for example, the object identification unit 40 determines whether an object has been present in the target area AR since a timing a predetermined time before the timing when the object was located in the target area AR. If an object has been present in the target area AR since a timing a predetermined time before, the object identification unit 40 determines whether the object that was present in the target area AR since a timing a predetermined time before is the same as the object currently present in the target area AR. The object identification unit 40 stores the determination result of whether the two objects are the same in the storage unit 22. Thereafter, the object identification unit 40 continues to acquire position information of the object and determines whether the object has moved outside the target area AR (step S20). If the object has not moved outside the target area AR (step S20; No), that is, if the object continues to exist in the target area AR, the process returns to step S16, and the focus position continues to be adjusted on the object. If the object has moved outside the target area AR (step S20; Yes), the focus position control unit 34 shifts the focus position away from the object (step S22). Thereafter, if the process is not to be ended (step S24; No), the process returns to step S12, and if the process is to be ended (step S24; Yes), the process is ended.

[0051] (effect) As described above, the imaging device 100 according to this embodiment includes the image sensor 12, the object information acquisition unit 32, the target area acquisition unit 30, the focus position control unit 34, and the object identification unit 40. The object information acquisition unit 32 acquires position information of an object present in the imaging area AR0 of the image sensor 12. The target area acquisition unit 30 acquires position information of the target area AR within the imaging area AR0. If an object is present in the target area AR, the focus position control unit 34 controls the focus position of the imaging device 100 so as to focus on the object. If an object is present in the target area AR, the object identification unit 40 determines whether the object is the same as an object that previously existed in the target area AR.

[0052] Here, autofocus imaging devices are required to appropriately adjust the focal position. In contrast, the imaging device 100 according to this embodiment adjusts the focal position to an object present within the target area AR, and can therefore appropriately focus on an object present within the target area AR, which is an area that requires attention in, for example, surveillance. Furthermore, in this embodiment, it is determined whether an object within the target area AR has been located in the same target area AR in the past, and therefore, when objects appear in the target area AR at different times, it is possible to recognize whether they are the same object.

[0053] The object identification unit 40 determines whether the objects are the same based on image data of an object present in the target area AR captured by the image sensor 12 and image data of an object that existed in the target area AR earlier captured by the image sensor 12. By determining whether the objects are the same based on the image data, when objects appear in the target area AR at different times, it is possible to appropriately recognize whether the objects are the same object.

[0054] When an object is present in the target area AR, the object identification unit 40 determines whether the object is the same as an object that was present in the target area AR at a timing a predetermined time before that. Therefore, when objects appear in the target area AR at different times, it is possible to appropriately recognize whether they are the same object.

[0055] The target area AR is located between a first position AX1, which is a first distance L1 from the image capture device 100, and a second position AX2, which is a second distance L2 from the image capture device 100 that is shorter than the first distance L1. The image capture device 100 according to this embodiment can appropriately focus on an object located at such a position.

[0056] (Second embodiment) Next, a second embodiment will be described. The second embodiment differs from the first embodiment in that the focal position is adjusted to an object that exists within the target area AR and satisfies a predetermined condition. Explanations of the configurations of the second embodiment that are common to the first embodiment will be omitted.

[0057] In the second embodiment, the focus position control unit 34 adjusts the focus position on an object that exists within the target area AR and satisfies a predetermined condition. The focus position control unit 34 does not adjust the focus position on an object that does not satisfy at least one of the following conditions: existence within the target area AR; and the predetermined condition. The focus position control unit 34 continues to adjust the focus position on the object for a period during which the object satisfies the predetermined condition and remains within the target area AR. On the other hand, the focus position control unit 34 shifts the focus position away from the object when the object no longer satisfies at least one of existence within the target area AR and the predetermined condition. That is, for example, the focus position control unit 34 shifts the focus position away from the object when the object satisfies the predetermined condition but moves outside the target area AR, or when the object exists within the target area AR but no longer satisfies the predetermined condition.

[0058] The focus position control unit 34 may determine whether the predetermined conditions are met using any method, but may determine whether the predetermined conditions are met based on at least one of object position information and an image of the object. The object position information here may refer to the measurement results of the object position measurement unit 14, and the image of the object may refer to image data of the object acquired by the image sensor 12.

[0059] The predetermined condition here may be any condition other than the presence of an object within the target area AR. For example, the predetermined condition may be at least one of the following: the object is performing a predetermined motion, the object has a predetermined shape, and the object is facing a predetermined direction. Alternatively, any two of these may be the predetermined conditions, or all of these may be the predetermined conditions. When multiple predetermined conditions are set, the focus position control unit 34 determines that the predetermined conditions are met when all of the conditions are met.

[0060] A case where object movement is the predetermined condition will be described. In this case, the focus position control unit 34 determines whether the object is performing a predetermined movement based on the object's position information continuously acquired in time series. The focus position control unit 34 adjusts the focus position to an object that exists within the target area AR and is performing a predetermined movement. The focus position control unit 34 does not adjust the focus position to an object that does not satisfy at least one of the conditions of being present within the target area AR and performing a predetermined movement. The focus position control unit 34 continues to adjust the focus position to the object for a period during which the object is present within the target area AR and continues performing a predetermined movement. On the other hand, if the object no longer satisfies at least one of the conditions of being present within the target area AR and performing a predetermined movement, the focus position control unit 34 removes the focus position from the object. Note that the movement of the object here refers to the object's movement mode, and may refer to, for example, the object's movement direction and movement speed. For example, if the predetermined movement refers to vertically downward movement at a speed of 10 m / h or more, the focus position control unit 34 adjusts the focus position on an object moving vertically downward within the target area AR at a speed of 10 m / h or more. Note that the movement of an object is not limited to the direction and speed of the object's movement, but may refer to any movement pattern. For example, the movement of an object may refer to at least one of the direction and speed of the object's movement.

[0061] FIG. 7 is a schematic diagram illustrating an example in which the predetermined condition is the movement of an object. In the example of FIG. 7, the predetermined condition is the vertical downward movement of the object (opposite to the Z direction), i.e., the movement direction of the object. The example of FIG. 7 illustrates a case in which object A moves vertically downward from position A0a, passing through positions A1a and A2a, to position A3a, and stops at position A3a. Position A0a is outside the target area AR, while positions A1a, A2a, and A3a are within the target area AR. In this case, when object A is located at position A0a, object A is outside the target area AR, so the focus position control unit 34 does not focus on object A, but instead focuses on a set position, for example. Then, when object A is located at position A1a, i.e., when object A enters the target area AR while moving vertically downward, the focus position control unit 34 focuses on object A. The focal position control unit 34 continues to adjust the focal position to the object A even when the object A is at the position A2a, and when the object A moves to the position A3a and stops, it removes the focal position from the object A and returns the focal position to the set position.

[0062] Next, a case where the shape of an object is set as a predetermined condition will be described. In this case, the focus position control unit 34 determines whether the object has a predetermined shape based on image data containing the object. The focus position control unit 34 adjusts the focus position to an object that exists within the target area AR and has a predetermined shape. The focus position control unit 34 does not adjust the focus position to an object that does not satisfy at least one of the conditions of being present within the target area AR and having a predetermined shape. The focus position control unit 34 continues to adjust the focus position to the object for a period during which the object has the predetermined shape and continues to exist within the target area AR. On the other hand, if the object no longer satisfies at least one of the conditions of being present within the target area AR and having a predetermined shape, the focus position control unit 34 removes the focus position from the object. The shape of the object here may be, for example, at least one of the size and the outer shape of the object. For example, if the predetermined shape refers to an object that is equal to or larger than a predetermined size, the focus position control unit 34 adjusts the focus position to an object that exists within the target area AR and has the predetermined size or larger. Note that 3D shape information acquired by the object information acquisition unit 32 may be used to acquire the shape information of the object.

[0063] A case where the orientation of an object is set as a predetermined condition will be described. In this case, the focus position control unit 34 determines whether the object is facing a predetermined direction based on image data containing the object. The focus position control unit 34 adjusts the focus position to an object that exists within the target area AR and faces the predetermined direction. The focus position control unit 34 does not adjust the focus position to an object that does not satisfy at least one of the conditions of being present within the target area AR and facing the predetermined direction. The focus position control unit 34 continues to adjust the focus position to the object for a period during which the object continues to exist within the target area AR while facing the predetermined direction. On the other hand, if the object no longer satisfies at least one of the conditions of being present within the target area AR and facing the predetermined direction, the focus position control unit 34 removes the focus position from the object. Note that 3D shape information acquired by the object information acquisition unit 32 may be used to acquire information about the object's orientation.

[0064] The predetermined conditions may be set in any manner, for example, they may be set in advance. In this case, the focus position control unit 34 may read information indicating the predetermined conditions (e.g., movement direction and movement speed) from the storage unit 22, or may acquire the predetermined conditions from another device via the communication unit 20. Furthermore, for example, if the predetermined conditions are not set in advance, the focus position control unit 34 may automatically set the predetermined conditions. Furthermore, for example, the user may set the predetermined conditions. In this case, for example, the user may input information specifying the predetermined conditions (e.g., movement direction and movement speed) to the input unit 16, and the focus position control unit 34 may set the predetermined conditions based on the information specified by the user.

[0065] As described above, in the second embodiment, the focus position control unit 34 may adjust the focus position on an object that is present in the target area AR and is performing a predetermined motion. The focus position control unit 34 continues to adjust the focus position on the object while the object is performing the predetermined motion, and removes the focus position from the object when the object stops performing the predetermined motion. In this way, by setting the condition for adjusting the focus position as being within the target area AR and also satisfying the predetermined motion, it becomes possible to track an object performing a specific motion and adjust the focus position appropriately.

[0066] In the second embodiment, the focus position control unit 34 may adjust the focus position to an object that exists in the target area AR and has a predetermined shape. In this way, by setting the condition for adjusting the focus position that the object has a predetermined shape in addition to being within the target area AR, it becomes possible to track an object of a specific shape and adjust the focus position appropriately.

[0067] In the second embodiment, the focus position control unit 34 may adjust the focus position to an object that exists in the target area AR and faces a predetermined direction. In this way, by setting the condition for adjusting the focus position as facing a predetermined direction in addition to being within the target area AR, it becomes possible to track an object facing a specific direction and adjust the focus position appropriately.

[0068] Although the embodiments of the present invention have been described above, the embodiments are not limited by the content of these embodiments. Furthermore, the above-described components include those easily conceivable to those skilled in the art, those that are substantially identical, and those within the so-called equivalent range. Furthermore, the above-described components can be combined as appropriate, and the configurations of each embodiment can be combined. Furthermore, various omissions, substitutions, or modifications of components can be made without departing from the spirit of the above-described embodiments. Furthermore, while each embodiment has been described with the focus position adjustment operation as a characteristic feature, the focus position adjustment operation may be combined with other operations. For example, the focus position adjustment operation may be combined with a zooming operation. Furthermore, in the description of each embodiment, the focus position adjustment operation may be replaced with other operations. For example, the focus position adjustment operation may be replaced with a zooming operation. Furthermore, in each embodiment, the control unit 24 of the imaging device may send a notification to a predetermined destination via the communication unit 20 when a set condition is met, such as an object entering or leaving a predetermined target area AR or moving in a predetermined direction. The set condition here may refer to, for example, adjusting the focus position to an object when the object moves into the target area AR. [Explanation of symbols]

[0069] 10 Optical Elements 12 Image sensor 14 Object position measurement section 30 Target area acquisition unit 32 Object information acquisition unit 34 Focus position control unit 40 Object Identification Unit AR target area AR0 imaging area AX1 1st position AX2 2nd position L1 1st distance L2 2nd distance

Claims

1. An imaging device capable of imaging an object, An imaging element; an object information acquisition unit that acquires position information of an object present in an imaging area of ​​the imaging element; a target area acquisition unit that acquires position information of a target area within the imaging area; a focus position control unit that controls a focus position of the imaging device so as to focus on an object when the object is present within the target area; an object identification unit that, when an object is present in the target area, determines whether the object is the same as an object that previously existed in the target area; having Imaging device.

2. 2. The imaging device according to claim 1, wherein the object identification unit determines whether the objects are the same based on image data of an object present in the target area captured by the imaging element and image data of an object that existed in the target area earlier captured by the imaging element.

3. 3. The imaging device according to claim 1, wherein, when an object is present in the target area, the object identification unit determines whether the object is the same as an object that was present in the target area at a timing a predetermined time before the present object.

4. 4. The imaging device according to claim 1, wherein the target area is located between a first position at a first distance from the imaging device and a second position at a second distance from the imaging device that is shorter than the first distance.

5. An imaging method for imaging an object, comprising: acquiring position information of an object present in an imaging area; acquiring position information of a target area within the imaging area; If an object is present in the target area, controlling a focus position of an imaging device so as to focus on the object; If an object is present in the target area, determining whether the object is the same as an object that previously existed in the target area; Including, Imaging method.

6. A program for causing a computer to execute an imaging method for imaging an object, acquiring position information of an object present in an imaging area; acquiring position information of a target area within the imaging area; If an object is present in the target area, controlling a focus position of an imaging device so as to focus on the object; If an object is present in the target area, determining whether the object is the same as an object that previously existed in the target area; causing the computer to execute program.

Citation Information

Patent Citations

  • Automatic imaging apparatus

    JP2010193423A

  • Image processing apparatus and monitoring area setting method

    JP2019186745A

  • Object detection device, detection control method, and program

    JP2020115679A

  • Imaging device, imaging control method, and program

    WO2017141746A1