CN104639835B - Image tracking system and image tracking method - Google Patents
Image tracking system and image tracking method Download PDFInfo
- Publication number
- CN104639835B CN104639835B CN201510074480.0A CN201510074480A CN104639835B CN 104639835 B CN104639835 B CN 104639835B CN 201510074480 A CN201510074480 A CN 201510074480A CN 104639835 B CN104639835 B CN 104639835B
- Authority
- CN
- China
- Prior art keywords
- preset
- image
- control unit
- dynamic image
- rotating device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000008859 change Effects 0.000 claims abstract description 12
- 238000005070 sampling Methods 0.000 claims description 14
- 238000004891 communication Methods 0.000 abstract description 10
- 230000007246 mechanism Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Image Analysis (AREA)
- Studio Devices (AREA)
Abstract
本发明公开了一种影像追踪系统及影像追踪方法,用以追踪一预设物件,并持续撷取包含预设物件的一动态影像,该影像追踪系统包括一影像撷取单元、一储存单元、一控制单元以及一转动装置。影像撷取单元用以连续撷取动态影像;储存单元暂存动态影像;控制单元分析动态影像;转动装置与控制单元进行通信连接,且影像撷取单元、储存单元、控制单元乘载于转动装置之上;其中转动装置接收一驱动讯号以改变影像撷取单元撷取动态影像的方向。当预设物件位于动态影像中,且不在预设区域中,控制单元计算影像撷取单元撷取动态影像的当前方向,与使预设物件位于预设区域中的角度差异,而输出驱动讯号以驱动转动装置依据角度差异转动。
The present invention discloses an image tracking system and an image tracking method, which are used to track a preset object and continuously capture a dynamic image containing the preset object. The image tracking system includes an image capture unit, a storage unit, a control unit, and a rotating device. The image capture unit is used to continuously capture dynamic images; the storage unit temporarily stores dynamic images; the control unit analyzes dynamic images; the rotating device is connected to the control unit for communication, and the image capture unit, the storage unit, and the control unit are mounted on the rotating device; wherein the rotating device receives a driving signal to change the direction in which the image capture unit captures the dynamic image. When the preset object is located in the dynamic image and is not in the preset area, the control unit calculates the current direction in which the image capture unit captures the dynamic image and the angle difference between the current direction in which the preset object is located in the preset area, and outputs a driving signal to drive the rotating device to rotate according to the angle difference.
Description
技术领域technical field
本发明有关影像追踪系统及影像追踪方法,特别是关于一种自动追踪预设物件的影像追踪系统以及所执行的影像追踪方法。The present invention relates to an image tracking system and an image tracking method, in particular to an image tracking system for automatically tracking preset objects and the executed image tracking method.
背景技术Background technique
随着电子技术的蓬勃发展,电子装置例如智能型手机已成为人们日常生活中不可或缺的一部分,智能型手机具备有拍照功能与摄影功能。With the vigorous development of electronic technology, electronic devices such as smart phones have become an indispensable part of people's daily life. Smart phones have camera and video functions.
但是智能型手机的配备的照相或摄影装置,用户在自拍方面比较不方便,因为,拍照范围需要受限于人的手长度,受限于人们的手臂的长度。因此,被拍照者有时候就无法完全入镜。 并且,消费者在自拍的同时,在按快门的同时,智能型手机也容易产生晃动,造成失焦。However, it is inconvenient for the user to take a selfie with the equipped camera or camera device of the smart phone, because the range of taking pictures needs to be limited by the length of a person's hand and the length of people's arms. Therefore, sometimes the person being photographed cannot be fully captured. Moreover, when consumers are taking selfies and pressing the shutter, the smart phone is also prone to shaking, resulting in out-of-focus.
发明内容Contents of the invention
有鉴于上述问题,本发明的主要目的在于提供一种影像追踪系统以及所执行的影像追踪方法,用以解决自拍时所面临的问题,而不需用户以手持拍照装置。In view of the above problems, the main purpose of the present invention is to provide an image tracking system and an implemented image tracking method to solve the problem faced when taking a selfie without requiring the user to hold the camera device.
为达到上述目的,本发明提出的一种影像追踪系统,用以追踪一预设物件,并持续撷取包含该预设物件的一动态影像,包括一影像撷取单元、一储存单元、一控制单元以及一转动装置。In order to achieve the above object, an image tracking system proposed by the present invention is used to track a preset object and continuously capture a dynamic image containing the preset object, including an image capture unit, a storage unit, a control unit and a rotating device.
影像撷取单元用以连续撷取该动态影像;储存单元电性连接该影像撷取单元,暂存该动态影像;控制单元电性连接该储存单元,该控制单元分析该动态影像,以判断该预设物件是否进入该影像撷取单元的取样画面中的一预设区域;转动装置与该控制单元进行通信连接,且该影像撷取单元、该储存单元、该控制单元乘载于该转动装置之上;其中该转动装置接收一驱动讯号以改变影像撷取单元撷取动态影像的方向。The image capture unit is used to continuously capture the dynamic image; the storage unit is electrically connected to the image capture unit to temporarily store the dynamic image; the control unit is electrically connected to the storage unit, and the control unit analyzes the dynamic image to determine the Whether the preset object enters a preset area in the sampling screen of the image capture unit; the rotating device communicates with the control unit, and the image capture unit, the storage unit, and the control unit are carried on the rotating device above; wherein the rotating device receives a driving signal to change the direction in which the image capture unit captures the dynamic image.
当该预设物件位于该动态影像中,且不在预设区域中,该控制单元计算影像撷取单元撷取动态影像的当前方向,与使预设物件位于预设区域中的角度差异,而输出该驱动讯号以驱动该转动装置依据该角度差异转动。When the preset object is located in the dynamic image and not in the preset area, the control unit calculates the angle difference between the current direction of the image capture unit to capture the dynamic image and the angle difference between the preset object located in the preset area, and outputs The driving signal is used to drive the rotating device to rotate according to the angle difference.
于一具体实施例中,当该预设物件进入该预设区域中,该控制单元持续分析该动态影像,判断该预设物件于一预定时间内,是否仍位于预设区域中;若该预设物件于前述的预定时间内,持续位于预设区域中,则该控制单元驱动该影像撷取单元执行拍照作业。In a specific embodiment, when the preset object enters the preset area, the control unit continuously analyzes the dynamic image to determine whether the preset object is still in the preset area within a predetermined time; if the preset If the object is continuously located in the preset area within the aforementioned predetermined time, the control unit drives the image capture unit to perform a photographing operation.
于一具体实施例中,该控制单元计算找出预设物件的中心点,以作为一基准点,并以该基准点是否位于该预设区域中为条件,判断该预设物件是否进入该预设区域中。In a specific embodiment, the control unit calculates and finds the center point of the preset object as a reference point, and judges whether the preset object enters the preset area based on whether the reference point is located in the preset area. in the setting area.
于一具体实施例中,当该动态影像中具有多个预设物件时,该控制单元计算找出多个预设物件的共同中心点,以作为基准点。In a specific embodiment, when there are multiple preset objects in the dynamic image, the control unit calculates and finds a common center point of the multiple preset objects as a reference point.
于一具体实施例中,当该动态影像中具有二个预设物件时,该控制单元计算找出二个预设物件的共同中心点,以作为基准点,该控制单元并分析二个预设物件之间的距离,是否小于一门坎距离;若该控制单元判断二个预设物件之间的距离,不小于该门坎距离,则该控制单元发出提示信息,以提示将二个预设物件之间的距离缩短。In a specific embodiment, when there are two preset objects in the dynamic image, the control unit calculates and finds the common center point of the two preset objects as a reference point, and the control unit analyzes the two preset objects Whether the distance between the objects is less than a threshold distance; if the control unit judges that the distance between the two preset objects is not less than the threshold distance, the control unit sends a prompt message to prompt the distance between the two preset objects The distance between them is shortened.
本发明还提出一种影像追踪方法,适用于一照相装置与一转动装置,该照相装置具有一影像撷取单元、一储存单元及一控制单元,且该影像撷取单元、该储存单元、该控制单元乘载于该转动装置之上,该转动装置接收一驱动讯号以改变影像撷取单元撷取动态影像的方向;该方法包含下列步骤:The present invention also proposes an image tracking method, which is suitable for a camera device and a rotating device. The camera device has an image capture unit, a storage unit and a control unit, and the image capture unit, the storage unit, the The control unit is mounted on the rotating device, and the rotating device receives a driving signal to change the direction in which the image capturing unit captures the dynamic image; the method includes the following steps:
以该影像撷取单元,用以连续撷取动态影像,并以该储存单元暂存该动态影像;The image capture unit is used to continuously capture dynamic images, and the storage unit is used to temporarily store the dynamic images;
以该控制单元分析该动态影像,以判断该预设物件是否进入该影像撷取单元的取样画面中的一预设区域;以及Analyzing the dynamic image with the control unit to determine whether the preset object enters a preset area in the sampling frame of the image capture unit; and
当该预设物件位于该动态影像中,且不在预设区域中,该控制单元计算影像撷取单元撷取动态影像的当前方向,与使预设物件位于预设区域中的角度差异,而输出该驱动讯号以驱动该转动装置依据该角度差异转动。When the preset object is located in the dynamic image and not in the preset area, the control unit calculates the angle difference between the current direction of the image capture unit to capture the dynamic image and the angle difference between the preset object located in the preset area, and outputs The driving signal is used to drive the rotating device to rotate according to the angle difference.
于一具体实施例中,当该预设物件进入该预设区域中,判断该预设物件于一预定时间内,是否仍位于预设区域中;若该预设物件于前述的预定时间内,持续位于预设区域中,驱动该影像撷取单元执行拍照作业。In a specific embodiment, when the preset object enters the preset area, it is judged whether the preset object is still in the preset area within a predetermined time; if the preset object is within the aforementioned predetermined time, Continuously located in the preset area, the image capture unit is driven to perform the photographing operation.
于一具体实施例中,影像追踪方法更包含,计算找出预设物件的中心点,以作为一基准点,并以该基准点是否位于该预设区域中为条件,判断该预设物件是否进入该预设区域中。In a specific embodiment, the image tracking method further includes calculating and finding the center point of the preset object as a reference point, and judging whether the preset object is Enter the preset area.
于一具体实施例中,影像追踪方法更包含,当该动态影像中具有多个预设物件时,计算找出多个预设物件的共同中心点,以作为基准点。In a specific embodiment, the image tracking method further includes, when there are multiple preset objects in the dynamic image, calculating and finding a common center point of the multiple preset objects as a reference point.
于一具体实施例中,影像追踪方法更包含,当该动态影像中具有二个预设物件时,计算找出二个预设物件的共同中心点,以作为基准点,并分析二个预设物件之间的距离,是否小于一门坎距离;若二个预设物件之间的距离,不小于该门坎距离,发出提示信息,以提示将二个预设物件之间的距离缩短。In a specific embodiment, the image tracking method further includes, when there are two preset objects in the dynamic image, calculating and finding the common center point of the two preset objects as a reference point, and analyzing the two preset objects Whether the distance between the objects is less than a threshold distance; if the distance between the two preset objects is not less than the threshold distance, a prompt message is sent to remind the distance between the two preset objects to be shortened.
借由本发明提供的自动追踪物体的撷取影像系统,当用户要进行自拍时,可以不受手臂的长度影响,而影响拍照范围。并且行动应用程序自行追踪人脸或其他任何物体,同时计算分析进行对焦的动作,可以有效的达到自拍的效果。By virtue of the image capture system for automatically tracking objects provided by the present invention, when a user wants to take a selfie, the range of the picture can be affected without being affected by the length of the arm. And the mobile app tracks the face or any other object by itself, and calculates and analyzes the focusing action at the same time, which can effectively achieve the selfie effect.
附图说明Description of drawings
图1是本发明实施例的影像追踪系统的系统方块图。FIG. 1 is a system block diagram of an image tracking system according to an embodiment of the present invention.
图2是本发明第一实施例中,影像追踪方法的方法流程图。FIG. 2 is a flow chart of the image tracking method in the first embodiment of the present invention.
图3是本发明第一实施例中,一具体实施例的方法流程图。Fig. 3 is a flow chart of a method in a specific embodiment in the first embodiment of the present invention.
图4是本发明第二实施例中,影像追踪方法的方法流程图。FIG. 4 is a flow chart of the image tracking method in the second embodiment of the present invention.
图5是本发明第三实施例中,影像追踪方法的方法流程图。FIG. 5 is a flow chart of the image tracking method in the third embodiment of the present invention.
图6是本发明第四实施例中,影像追踪方法的方法流程图。FIG. 6 is a flow chart of the image tracking method in the fourth embodiment of the present invention.
图7是本发明中,自动搜寻预设物件的流程图。FIG. 7 is a flow chart of automatically searching for preset objects in the present invention.
附图标记说明Explanation of reference signs
100 影像追踪系统100 image tracking system
100a 照相装置100a Camera device
110 影像撷取单元110 image capture unit
120 储存单元120 storage units
130 控制单元130 control unit
140 转动装置。140 Turn device.
具体实施方式Detailed ways
以下结合附图来详细说明本发明的具体实施方式。相同的符号代表具有相同或类似功能的构件或装置。Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. The same symbols represent components or devices with the same or similar functions.
请先参照图1所示,为本发明第一实施例所揭露的影像追踪系统100,包括一影像撷取单元110、一储存单元120、一控制单元130以及一转动装置140。影像撷取单元110、储存单元120、控制单元130整合为一照相装置,例如具有摄影功能的智能型手机或平板计算机。影像撷取单元110、储存单元120、控制单元130随同智能型手机100a乘载于转动装置140之上。转动装置140具有一马达,马达可以是步进马达或其他马达种类,用来驱动乘载智能型手机100a的平台依据一或多的轴向转动,而改变影像撷取单元110撷取影像方向。在储存单元120储存有行动应用程序 (mobile application),用以供控制单元130加载执行,而进行追踪预设物件、分析画面及计算画面基准点,而使影像追踪系统100执行一影像追踪方法。Please refer to FIG. 1 , which is an image tracking system 100 disclosed in the first embodiment of the present invention, including an image capture unit 110 , a storage unit 120 , a control unit 130 and a rotating device 140 . The image capture unit 110 , the storage unit 120 , and the control unit 130 are integrated into a camera device, such as a smart phone or a tablet computer with a camera function. The image capture unit 110 , the storage unit 120 , and the control unit 130 are carried on the rotating device 140 along with the smart phone 100 a. The rotating device 140 has a motor, which can be a stepping motor or other types of motors, and is used to drive the platform carrying the smart phone 100a to rotate according to one or more axial directions, so as to change the image capturing direction of the image capturing unit 110 . A mobile application is stored in the storage unit 120 for the control unit 130 to load and execute to track preset objects, analyze images and calculate image reference points, so that the image tracking system 100 executes an image tracking method.
请参阅图1与图2所示,影像追踪系统100用以执行影像追踪方法,用以追踪预设物件,使得预设物件可以持续出现在影像追踪系统100所撷取的动态影像的串流之中,借以持续执行对预设物件的录像作业或是拍照作业。Please refer to FIG. 1 and FIG. 2 , the image tracking system 100 is used to execute the image tracking method for tracking a preset object, so that the default object can continuously appear in the stream of dynamic images captured by the image tracking system 100 , so as to continuously execute the video recording operation or photographing operation of the preset object.
所述预设物件可为人脸,但并不排除其他对象,例如人体、汽车或其他可拍摄的物体。The preset object can be a human face, but does not exclude other objects, such as a human body, a car, or other objects that can be photographed.
于影像中分析出人脸或特定对象,并将其视为本发明所述的预设物件,为本领域具有通常知识者的常识,且可见于现有公知的技术文件中(例如中国台湾发明专利I469063),因此以下不再赘述于影像中分析出人脸或特定对象的技术细节。Analyzing a human face or a specific object in an image, and treating it as the preset object described in the present invention, is the common sense of those skilled in the art, and can be found in existing known technical documents (such as the invention of Taiwan, China) Patent I469063), so the technical details of analyzing human faces or specific objects in images will not be repeated below.
如图2所示,第一实施例的影像追踪系统100执行影像追踪方法的步骤如下:As shown in FIG. 2 , the image tracking system 100 of the first embodiment executes the steps of the image tracking method as follows:
首先,影像追踪系统100先建立控制单元130与转动装置140之间的通信链接,如步骤S110所示。通信链接可以通过有线通讯手段或无线通信手段达成。例如,以智能型手机100a为例,智能型手机100a与转动装置140之中分别设置蓝牙模块,并经过配对程序,而以蓝牙通讯协议建立控制单元130与转动装置140之间的通信链接;前述连结不排除以其他无线通信协议、USB有线连结、IEEE 1394有线连结执行通信链接的建立。First, the image tracking system 100 establishes a communication link between the control unit 130 and the rotating device 140 , as shown in step S110 . The communication link can be achieved by wired communication means or wireless communication means. For example, taking the smart phone 100a as an example, the smart phone 100a and the rotating device 140 are respectively equipped with Bluetooth modules, and after a pairing procedure, the communication link between the control unit 130 and the rotating device 140 is established with the Bluetooth communication protocol; The connection does not exclude the establishment of the communication link performed by other wireless communication protocols, USB wired connection, IEEE 1394 wired connection.
接着,控制单元130开启预设物件追踪模式,例如人脸追踪模式,如步骤S110a所示,以启动以影像撷取单元110,使得影像撷取单元110连续撷取一动态影像,但是暂时不执行拍照作业。Next, the control unit 130 turns on a preset object tracking mode, such as a face tracking mode, as shown in step S110a, to activate the image capture unit 110, so that the image capture unit 110 continuously captures a dynamic image, but does not execute it temporarily. Photo assignment.
撷取动态影像与拍照作业主要差异在于取样分辨率的差异;撷取动态影像是每秒执行多个静态影像撷取并依据时间序排序而形成动态影像,拍照作业仅撷取单一静态影像,因此,拍照作业通常以高分辨率执行,而撷取动态影像则以相对较低的分辨率执行,而录像作业,则是将动态影像的串流持续记录于一档案中。此外,因为影像撷取单元110可能尚未对焦,暂不进行拍照作业,也可以避免拍摄出失焦的照片。The main difference between capturing dynamic images and photographing operations is the difference in sampling resolution; capturing dynamic images is to execute multiple static image captures per second and sort them according to time sequence to form dynamic images, and the photographing operation only captures a single static image, so , the photographing operation is usually performed at high resolution, while the capture of dynamic images is performed at relatively low resolution, and the video recording operation is to continuously record the stream of dynamic images in a file. In addition, because the image capture unit 110 may not be in focus, the photographing operation is not performed temporarily, and out-of-focus photos can also be avoided.
储存单元120电性连接影像撷取单元110。前述的动态影像传送到储存单元120,而暂存该动态影像,但不排除将该动态影像的串流持续记录于档案,而成为录像作业。The storage unit 120 is electrically connected to the image capture unit 110 . The aforementioned moving image is transmitted to the storage unit 120 to temporarily store the moving image, but it does not rule out that the streaming of the moving image is continuously recorded in a file and becomes a recording operation.
控制单元130电性连接储存单元120,而可接收动态影像,以进行分析,如步骤S120所示。The control unit 130 is electrically connected to the storage unit 120 to receive the dynamic image for analysis, as shown in step S120.
如步骤S130所示,控制单元130先分析预设物件是否在动态影像中。As shown in step S130, the control unit 130 first analyzes whether the preset object is in the dynamic image.
如步骤S140所示,接着,若预设物件位于该动态影像中,则控制单元130进一步计算找出预设物件的中心点,以作为基准点。As shown in step S140, then, if the preset object is located in the dynamic image, the control unit 130 further calculates and finds the center point of the preset object as a reference point.
如步骤S150所示,控制单元130分析预设物件是否进入影像撷取单元110的取样画面中的一预设区域。预设区域是一个可以任意改变位置或形状的自定义区域。于一具体实施例中,判断预设物件是否进入影像撷取单元110的取样画面中的一预设区域,是判断前述的基准点是否位于预设区域中。As shown in step S150 , the control unit 130 analyzes whether the preset object enters a preset area in the sampling frame of the image capture unit 110 . A preset area is a custom area that can change its position or shape arbitrarily. In a specific embodiment, judging whether the preset object enters a preset area in the sampling frame of the image capture unit 110 is to determine whether the aforementioned reference point is located in the preset area.
如步骤S160所示,若预设物件进入影像撷取单元110的取样画面中的预设区域,则控制单元130完成追踪作业,以等待下一个触发指令。As shown in step S160, if the preset object enters the preset area in the sampling frame of the image capture unit 110, the control unit 130 completes the tracking operation and waits for the next trigger command.
如步骤S170所示,若预设物件位于动态影像中,但是不在影像撷取单元110的取样画面中的预设区域中,控制单元130计算影像撷取单元110撷取动态影像的当前方向,与使预设物件位于预设区域中的角度差异,而输出一驱动讯号。此时,转动装置140接收驱动讯号而依据该角度差异进行转动,以改变影像撷取单元110撷取动态影像的方向,使得预设物件进入影像撷取单元110的取样画面中的预设区域。As shown in step S170, if the preset object is located in the dynamic image, but not in the preset area in the sampling frame of the image capture unit 110, the control unit 130 calculates the current direction of the image capture unit 110 to capture the dynamic image, and The angle difference that causes the preset object to be located in the preset area, and output a driving signal. At this moment, the rotating device 140 receives the driving signal and rotates according to the angle difference, so as to change the direction in which the image capture unit 110 captures the dynamic image, so that the preset object enters the preset area in the sampling frame of the image capture unit 110 .
于步骤S130中,若控制单元130分析动态影像后,判断预设物件不在动态影像中,则控制单元130判断转动装置140是否正在转动中,如步骤S180。In step S130, if the control unit 130 determines that the preset object is not in the dynamic image after analyzing the dynamic image, then the control unit 130 determines whether the rotating device 140 is rotating, as in step S180.
于步骤S180中,若转动装置140已经停止转动,则回归至步骤S120。若转动装置140正在转动,则控制单元130持续输出驱动讯号,控制转动装置140沿着原转动方向继续进行顺向转动,以持续地改变影像撷取单元110撷取动态影像的方向,如步骤S190所示。In step S180, if the rotating device 140 has stopped rotating, return to step S120. If the rotating device 140 is rotating, the control unit 130 continues to output the driving signal to control the rotating device 140 to continue rotating along the original rotating direction, so as to continuously change the direction in which the image capturing unit 110 captures the dynamic image, as in step S190 shown.
参阅图3所示,第一实施例的一具体应用方式,为自动追踪录像,其主要系将步骤S110a的开启预设物件追踪模式步骤,例如人脸追踪模式的步骤,变更为人脸追踪模式,并且启动录像功能步骤,如步骤S110c。所述预设物件追踪模式,可以是特定对象的追踪,也可以是人脸的追踪。Referring to Fig. 3, a specific application of the first embodiment is automatic tracking video recording, which mainly changes the step of turning on the preset object tracking mode in step S110a, such as the step of face tracking mode, into the face tracking mode, And start the video recording function step, such as step S110c. The preset object tracking mode may be tracking of a specific object, or tracking of a human face.
如图4所示,为第二实施例的影像追踪方法,第二实施例前段步骤大致予第一实施例相同,差异在于步骤S150之后。As shown in FIG. 4 , it is the image tracking method of the second embodiment. The first steps of the second embodiment are roughly the same as those of the first embodiment, and the difference is after step S150 .
于步骤S150中,若预设物件进入影像撷取单元110的取样画面中的预设区域,则控制单元130完成追踪作业,并触发倒数计时机制,等待一预定时间,如步骤S200所示。于触发倒数计时机制时,控制单元130可同时输出一显示讯号,以驱动一显示单元显示倒数的时间,以供使用者了解于此一倒数时间中避免继续移动预设物件(例如人脸),以确保追踪结果而完成拍照作业。In step S150, if the preset object enters the preset area of the sampling frame of the image capture unit 110, the control unit 130 completes the tracking operation and triggers a countdown mechanism to wait for a predetermined time, as shown in step S200. When the countdown mechanism is triggered, the control unit 130 can output a display signal at the same time to drive a display unit to display the countdown time, so that the user can understand to avoid moving the default object (such as a human face) during the countdown time, Complete the photoshoot to ensure the tracking results.
如步骤S210所示,控制单元130持续分析动态影像,判断预设物件于前述的预定时间内,是否仍位于预设区域中。As shown in step S210, the control unit 130 continues to analyze the dynamic image to determine whether the preset object is still located in the preset area within the predetermined time.
如步骤S220所示,若预设物件于前述的预定时间内,持续位于预设区域中,则控制单元130驱动影像撷取单元110执行拍照作业,撷取分辨率相对较高的静态影像。As shown in step S220, if the preset object continues to be located in the preset area within the aforementioned predetermined time, the control unit 130 drives the image capture unit 110 to perform a photographing operation to capture a relatively high-resolution still image.
步骤S230所示,于拍照作业完成后,控制单元130输出控制讯号,控制转动装置140朝向一转动方向转动一预设角度后,回归至步骤S130。As shown in step S230, after the photographing operation is completed, the control unit 130 outputs a control signal to control the rotating device 140 to rotate toward a rotation direction by a preset angle, and then returns to step S130.
于步骤S210中,若预设物件于前述的预定时间内,离开预设区域中,则中断并重置倒数计时机制,如步骤S240,并回归到步骤S170,以再度改变影像撷取单元110撷取动态影像的方向,使得预设物件进入影像撷取单元110的取样画面中的预设区域中。In step S210, if the preset object leaves the preset area within the aforementioned predetermined time, the countdown mechanism is interrupted and reset, such as step S240, and returns to step S170 to change the image captured by the image capture unit 110 again. The direction of the dynamic image is taken so that the preset object enters into a preset area in the sampling frame of the image capture unit 110 .
前述第一实施例以及第二实施例的影像追踪方法,是用于追踪单一预设物件,但本发明的影像追踪方法,进行小幅度的调整后,即可追踪多个预设物件。The above-mentioned image tracking methods of the first embodiment and the second embodiment are used to track a single preset object, but the image tracking method of the present invention can track multiple preset objects after a small adjustment.
如图5所示,为本发明第三实施例的影像追踪方法,用于追踪多个预设物件,其步骤如下。As shown in FIG. 5 , it is an image tracking method according to a third embodiment of the present invention, which is used to track a plurality of preset objects. The steps are as follows.
首先,影像追踪系统100先建立控制单元130与转动装置140之间的通信链接,如步骤S110所示。First, the image tracking system 100 establishes a communication link between the control unit 130 and the rotating device 140 , as shown in step S110 .
接着,控制单元130开启多预设物件追踪模式,例如多人追踪模式,如步骤S110b所示,以启动以影像撷取单元110,使得影像撷取单元110连续撷取一动态影像。Next, the control unit 130 activates a multi-preset object tracking mode, such as a multi-person tracking mode, as shown in step S110b, to activate the image capture unit 110, so that the image capture unit 110 continuously captures a dynamic image.
控制单元130接收动态影像,以进行分析,如步骤S120所示。The control unit 130 receives the dynamic image for analysis, as shown in step S120.
如步骤S130所示,控制单元130先分析预设物件是否在动态影像中。As shown in step S130, the control unit 130 first analyzes whether the preset object is in the dynamic image.
如步骤S140a所示,接着,若有多个预设物件位于该动态影像中,则控制单元130进一步计算找出多个预设物件的共同中心点,以作为基准点。As shown in step S140a, then, if there are multiple preset objects located in the dynamic image, the control unit 130 further calculates and finds a common center point of the multiple preset objects as a reference point.
如步骤S150所示,控制单元130判断前述的基准点是否位于预设区域中。As shown in step S150, the control unit 130 determines whether the aforementioned reference point is located in a preset area.
于步骤S150中,若基准点是否位于预设区域,则控制单元130完成追踪作业,并触发倒数计时机制,等待一预定时间,如步骤S200所示。In step S150, if the reference point is located in the preset area, the control unit 130 completes the tracking operation and triggers a countdown mechanism to wait for a predetermined time, as shown in step S200.
如步骤S210所示,控制单元130持续分析动态影像,判断基准点于前述的预定时间内,是否仍位于预设区域中。As shown in step S210 , the control unit 130 continues to analyze the dynamic image to determine whether the reference point is still located in the preset area within the aforementioned predetermined time.
如步骤S220所示,若基准点于前述的预定时间内,持续位于预设区域中,则控制单元130驱动影像撷取单元110执行拍照作业,撷取分辨率相对较高的静态影像。As shown in step S220, if the reference point is continuously located in the preset area within the aforementioned predetermined time, the control unit 130 drives the image capture unit 110 to perform a photographing operation to capture a relatively high-resolution still image.
如步骤S230所示,于拍照作业完成后,控制单元130输出控制讯号,控制转动装置140朝向一转动方向转动一预设角度后,回归至步骤S130。As shown in step S230 , after the photographing operation is completed, the control unit 130 outputs a control signal to control the rotation device 140 to rotate toward a rotation direction by a preset angle, and then returns to step S130 .
于步骤S210中,若基准点于前述的预定时间内,离开预设区域中,则中断并重置倒数计时机制,如步骤S240,并回归到步骤S170,以再度改变影像撷取单元110撷取动态影像的方向,使得基准点进入影像撷取单元110的取样画面中的预设区域中。In step S210, if the reference point leaves the preset area within the aforementioned predetermined time, the countdown mechanism is interrupted and reset, as in step S240, and returns to step S170 to change the image captured by the image capture unit 110 again. The direction of the dynamic image is such that the reference point enters a preset area in the sampling frame of the image capturing unit 110 .
如图6所示,为本发明第四实施例的影像追踪方法,用于追踪二个预设物件,例如二个人脸,并执行二个预设物件的追踪,并且进行拍照作业的模式,如步骤S110d所示。第四实施例与第三实施例的主要差异步骤如下。As shown in FIG. 6, it is the image tracking method of the fourth embodiment of the present invention, which is used to track two preset objects, such as two faces, and execute the tracking of the two preset objects, and take pictures, such as Step S110d shows. The main differences between the fourth embodiment and the third embodiment are as follows.
于步骤S130中,若侦测到预设物件(人脸),则控制单元130进一步分析是否有二个预设物件(人脸),如步骤S132所示。若,没有二个人脸,则停止转动装置140的转动,如步骤S134所示,并回归至步骤S120。In step S130, if a preset object (face) is detected, the control unit 130 further analyzes whether there are two preset objects (face), as shown in step S132. If there are no two faces, stop the rotation of the rotating device 140, as shown in step S134, and return to step S120.
若步骤S132中追踪到二个预设物件,则进一步执行步骤S140b,找出两个预设物件的中心点,以作为基准点。If two preset objects are tracked in step S132, step S140b is further executed to find the center point of the two preset objects as a reference point.
接着,同样控制单元130同样分析基准点是否进入预设区域,如步骤S150所示。Next, the control unit 130 also analyzes whether the reference point enters the preset area, as shown in step S150.
如步骤S152所示,若基准点位于预设区域中,则控制单元130进一步分析二个预设物件之间的距离,是否小于一门坎距离。As shown in step S152, if the reference point is located in the preset area, the control unit 130 further analyzes whether the distance between the two preset objects is less than a threshold distance.
若,控制单元130判断二个预设物件之间的距离,不小于该门坎距离,则控制单元130发出提示信息,如步骤S224所示,以提示将二个预设物件之间的距离缩短,然后回归至步骤S140b。If the control unit 130 judges that the distance between the two preset objects is not less than the threshold distance, the control unit 130 sends a prompt message, as shown in step S224, to prompt to shorten the distance between the two preset objects, Then return to step S140b.
若,控制单元130判断二个预设物件之间的距离小于该门坎距离,则控制单元130执行S200触发倒数计时机制,等待一预定时间,如步骤S200所示。If the control unit 130 determines that the distance between the two preset objects is less than the threshold distance, the control unit 130 executes S200 to trigger the countdown mechanism and wait for a predetermined time, as shown in step S200 .
如步骤S210所示,控制单元130持续分析动态影像,判断基准点于前述的预定时间内,是否仍位于预设区域中。As shown in step S210 , the control unit 130 continues to analyze the dynamic image to determine whether the reference point is still located in the preset area within the aforementioned predetermined time.
如步骤S212所示,控制单元130持续分析动态影像,判断于前述的预定时间内,二个预设物件之间的距离,是否小于一门坎距离。As shown in step S212, the control unit 130 continues to analyze the dynamic image to determine whether the distance between the two preset objects is less than a threshold distance within the aforementioned predetermined time.
如步骤S220所示,若二个预设物件之间的距离于前述的预定时间内,持续小于门坎距离,则控制单元130驱动影像撷取单元110执行拍照作业,撷取分辨率相对较高的静态影像。As shown in step S220, if the distance between the two preset objects continues to be smaller than the threshold distance within the aforementioned predetermined time, the control unit 130 drives the image capture unit 110 to perform a photographing operation to capture relatively high-resolution images. still image.
若二个预设物件之间的距离于前述的预定时间内,发生不小于门坎距离的状态,也就是距离太远,则控制单元130停止倒数计时机制,如步骤S222所示;然后控制单元130发出提示信息,如步骤S224所示,以提醒二预设物件必须靠近,从而确保二个预设物件都被撷取进入所需的影像中。然后控制单元130回归至步骤S140b。If the distance between the two preset objects is not less than the threshold distance within the aforementioned predetermined time, that is, the distance is too far, then the control unit 130 stops the countdown mechanism, as shown in step S222; then the control unit 130 A prompt message is issued, as shown in step S224, to remind the two default objects that they must be close together, so as to ensure that the two default objects are captured into the desired image. Then the control unit 130 returns to step S140b.
如此一来,依据第四实施例的影像追踪方法,即可同时拍摄到两个预设物件的照片,同时确保两个预设物件的之间的距离不会太大。In this way, according to the image tracking method of the fourth embodiment, photos of two preset objects can be taken at the same time, while ensuring that the distance between the two preset objects is not too large.
参阅图7所示,为一种自动搜寻预设物件的流程,可安排于步骤S110a, S110b,S110c或S110d之后,也可以用于置换步骤S180与步骤S190。或者是,于控制单元130中加入另一个独立的判断循环,于动带影像中超过一预定时间后(例如8秒后),执行此一自动搜寻预设物件的流程。Referring to FIG. 7 , it is a process of automatically searching for preset objects, which can be arranged after step S110a, S110b, S110c or S110d, and can also be used to replace step S180 and step S190. Alternatively, another independent judging loop is added to the control unit 130 to execute the process of automatically searching for a preset object after a predetermined time (for example, 8 seconds) has elapsed in the moving image.
此一流程的触发条件,主要为动态影像中未侦测到预设物件,如步骤S310所示。The trigger condition of this process is mainly that no preset object is detected in the dynamic image, as shown in step S310.
下一步,控制单元130驱动转动装置140,于一第一轴向中朝第一转动方向转动至一上极限,如步骤S320所示。Next, the control unit 130 drives the rotation device 140 to rotate in a first rotation direction in a first axis to an upper limit, as shown in step S320 .
然后,控制单元130驱动转动装置140,于第二轴向顺时针或逆时针旋转360度,如步骤S330所示。Then, the control unit 130 drives the rotating device 140 to rotate 360 degrees clockwise or counterclockwise on the second axis, as shown in step S330 .
控制单元130驱动转动装置140,于第一轴向中,沿着相反于第一转动方向的第二转动方向转动一预定角度,如步骤S340。The control unit 130 drives the rotating device 140 to rotate a predetermined angle along a second rotating direction opposite to the first rotating direction in the first axis, as in step S340.
控制单元130判断转动装置140是否转动到第二转动方向的下极限,如步骤S350所示;若否,回归至步骤S330,于第二轴向顺时针或逆时针旋转360度。The control unit 130 determines whether the rotation device 140 has rotated to the lower limit of the second rotation direction, as shown in step S350; if not, returns to step S330, and rotates 360 degrees clockwise or counterclockwise on the second axis.
若,转动装置140转动到第二转动方向的下极限,则先执行于第二轴向顺时针或逆时针旋转360度的程序,如步骤S360所示;然后于第一轴向中朝向第一转动方向转动该预定角度,如步骤S370。If the rotation device 140 rotates to the lower limit of the second rotation direction, first execute the procedure of rotating 360 degrees clockwise or counterclockwise in the second axis, as shown in step S360; The rotation direction is rotated by the predetermined angle, as in step S370.
最后控制单元130判断转动装置140是否已经到达第一轴向的第一转动方向的上极限,如步骤S380所示。若尚未进入上极限,回归执行步骤S360。若,已经进入上极限,回归执行步骤S330。Finally, the control unit 130 judges whether the rotating device 140 has reached the upper limit of the first rotating direction of the first axis, as shown in step S380. If it has not entered the upper limit, return to step S360. If it has entered the upper limit, return to step S330.
在未侦测到至少一预设物件前,转动装置140反复的转动道上极限与下极限之间运动,直到侦测到预设物件即停止。Before at least one predetermined object is detected, the rotating device 140 repeatedly moves between the upper limit and the lower limit of the rotating track, and stops until a predetermined object is detected.
以上所述仅是本发明的较佳实施方式。本发明的范围并不以上述实施方式为限。凡是熟悉本案技艺的人士依本发明的精神所作的等效修饰或变化,皆应包含于权利要求范围内。The above descriptions are only preferred embodiments of the present invention. The scope of the present invention is not limited to the above-mentioned embodiments. All equivalent modifications or changes made by those skilled in the art according to the spirit of the present invention shall be included in the scope of the claims.
Claims (8)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201461940183P | 2014-02-14 | 2014-02-14 | |
US61940183 | 2014-02-14 | ||
US61/940,183 | 2014-02-14 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104639835A CN104639835A (en) | 2015-05-20 |
CN104639835B true CN104639835B (en) | 2018-09-28 |
Family
ID=53218097
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510074480.0A Active CN104639835B (en) | 2014-02-14 | 2015-02-12 | Image tracking system and image tracking method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104639835B (en) |
TW (1) | TWI653581B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI590195B (en) * | 2016-05-26 | 2017-07-01 | 晶睿通訊股份有限公司 | Image flow analyzing method with low datum storage and low datum computation and related camera device and camera system |
CN107018310A (en) * | 2016-10-08 | 2017-08-04 | 罗云富 | Self-photographing method and device with face tracking function |
CN106973220A (en) * | 2017-02-24 | 2017-07-21 | 小绿草股份有限公司 | Object tracking method |
CN107680118B (en) * | 2017-08-29 | 2020-10-20 | 苏州佳世达光电有限公司 | Image identification tracking method |
CN109788185A (en) * | 2017-11-13 | 2019-05-21 | 郑宇杰 | Image tracing device and its image tracing method |
TWM560035U (en) * | 2017-11-13 | 2018-05-11 | 鄭宇傑 | Image tracking device |
TWI663879B (en) * | 2018-03-05 | 2019-06-21 | 黑快馬股份有限公司 | Automatic Panning Shot System and Automatic Panning Shot Method |
TWI690207B (en) * | 2018-05-29 | 2020-04-01 | 圓展科技股份有限公司 | Object tracking method |
CN108600639B (en) * | 2018-06-25 | 2021-01-01 | 努比亚技术有限公司 | Portrait image shooting method, terminal and computer readable storage medium |
CN111050059B (en) * | 2018-10-12 | 2021-07-06 | 黑快马股份有限公司 | Follow-up shooting system with image stabilization function and follow-up shooting method with image stabilization function |
CN111050100A (en) * | 2018-10-12 | 2020-04-21 | 黑快马股份有限公司 | Automatic video recording and following shooting system and automatic video recording and following shooting method |
CN115474126A (en) * | 2021-06-11 | 2022-12-13 | 苏州佳世达电通有限公司 | Intelligent recognition and adjustment device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567391A (en) * | 2003-06-27 | 2005-01-19 | 黄英哲 | Video Automatic Tracking and Surveillance System and Its Photography Device |
TW200533188A (en) * | 2004-03-23 | 2005-10-01 | Yu-Lin Chiang | Pano-photographing monitor tracking system and its method |
CN101448142A (en) * | 2007-11-27 | 2009-06-03 | 鸿富锦精密工业(深圳)有限公司 | Image tracking device and image tracking method thereof |
CN102014248A (en) * | 2009-09-04 | 2011-04-13 | 华晶科技股份有限公司 | Automatic focusing method and module and image capturing device using the same |
CN102238366A (en) * | 2010-04-26 | 2011-11-09 | 鸿富锦精密工业(深圳)有限公司 | Camera of realizing image tracking and monitoring and method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7940299B2 (en) * | 2001-08-09 | 2011-05-10 | Technest Holdings, Inc. | Method and apparatus for an omni-directional video surveillance system |
-
2015
- 2015-02-12 CN CN201510074480.0A patent/CN104639835B/en active Active
- 2015-02-12 TW TW104104714A patent/TWI653581B/en not_active IP Right Cessation
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567391A (en) * | 2003-06-27 | 2005-01-19 | 黄英哲 | Video Automatic Tracking and Surveillance System and Its Photography Device |
TW200533188A (en) * | 2004-03-23 | 2005-10-01 | Yu-Lin Chiang | Pano-photographing monitor tracking system and its method |
CN101448142A (en) * | 2007-11-27 | 2009-06-03 | 鸿富锦精密工业(深圳)有限公司 | Image tracking device and image tracking method thereof |
CN102014248A (en) * | 2009-09-04 | 2011-04-13 | 华晶科技股份有限公司 | Automatic focusing method and module and image capturing device using the same |
CN102238366A (en) * | 2010-04-26 | 2011-11-09 | 鸿富锦精密工业(深圳)有限公司 | Camera of realizing image tracking and monitoring and method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104639835A (en) | 2015-05-20 |
TW201531961A (en) | 2015-08-16 |
TWI653581B (en) | 2019-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104639835B (en) | Image tracking system and image tracking method | |
CN106575027B (en) | Camera device and object tracking method thereof | |
CN104735355B (en) | The image capture method and device of a kind of intelligent terminal | |
CN102957868B (en) | Method and electronic device for shooting panorama | |
US9992410B2 (en) | Apparatus and method photographing image | |
US20170126989A1 (en) | Apparatus and method for processing an image in device | |
CN105592267B (en) | Photographing control method, photographing control device and photographing system | |
CN105657257B (en) | Image pickup method, device, system, mobile terminal and the self-shooting bar of distant view photograph | |
CN102739962A (en) | Image processing device capable of generating wide-range image | |
CN104079837B (en) | A kind of focusing method and device based on imaging sensor | |
WO2019179364A1 (en) | Photographing method and device and smart device | |
CN105007418A (en) | Photographing method and mobile terminal | |
US20120120267A1 (en) | Electronic apparatus, control method, program, and image-capturing system | |
JP6414218B2 (en) | Control device, control method and program | |
CN109995991A (en) | A shooting method, robot and mobile terminal | |
CN104820567A (en) | Method, equipment and system for controlling photographing with stylus | |
CN105611161A (en) | Photographing control method, photographing control device and photographing system | |
CN110264394B (en) | Image background removing system and method, and image background replacing device | |
CN105872378A (en) | Control method, control device and electronic device | |
JP2009105559A (en) | Method of detecting and processing object to be recognized from taken image, and portable electronic device with camera | |
CN105763797B (en) | Control method, control device and electronic device | |
CN109218612B (en) | A tracking shooting system and shooting method | |
JP2017103657A (en) | Imaging apparatus, imaging method, and computer program for imaging apparatus | |
CN106899796A (en) | Camera system and method | |
CN102480591A (en) | Method and device for automatically starting continuous shooting program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220215 Address after: No. 3, three 8F, Xinbei Road, Xinzhuang, Taiwan, China, 5 Patentee after: Black fast horse Co.,Ltd. Address before: Taipei city in Taiwan China Zhongxiao East Road No. 94 is two 4 floor Patentee before: HEIMAVISTA Inc. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230406 Address after: No. 106, Building 2, Jiuxiangling New Industrial Zone, 4227 Xilihu Road, Xili Street, Nanshan District, Shenzhen City, Guangdong Province Patentee after: HOHEM TECHNOLOGY Co.,Ltd. Address before: No. 3, three 8F, Xinbei Road, Xinzhuang, Taiwan, China, 5 Patentee before: Black fast horse Co.,Ltd. |