[go: up one dir, main page]

CN107170239A - A kind of target vehicle follows the trail of grasp shoot method and device - Google Patents

A kind of target vehicle follows the trail of grasp shoot method and device Download PDF

Info

Publication number
CN107170239A
CN107170239A CN201710523182.4A CN201710523182A CN107170239A CN 107170239 A CN107170239 A CN 107170239A CN 201710523182 A CN201710523182 A CN 201710523182A CN 107170239 A CN107170239 A CN 107170239A
Authority
CN
China
Prior art keywords
image
target vehicle
camera device
video
trail
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.)
Pending
Application number
CN201710523182.4A
Other languages
Chinese (zh)
Inventor
陈达权
李海艳
黄运保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201710523182.4A priority Critical patent/CN107170239A/en
Publication of CN107170239A publication Critical patent/CN107170239A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/017Detecting movement of traffic to be counted or controlled identifying vehicles
    • G08G1/0175Detecting movement of traffic to be counted or controlled identifying vehicles by photographing vehicles, e.g. when violating traffic rules

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

本发明公开了一种目标车辆追踪抓拍方法及装置,方法包括:在接收到下发的目标车辆追踪抓拍指令后,开始以预设时间间隔从摄像装置拍摄视频中获取当前帧图像,并从获取的该帧图像中提取目标车辆图像;判断在该帧图像中目标车辆图像是否满足预设要求,若是,则保存该帧图像,若否,则调节摄像装置的光学参数,以使在摄像装置拍摄视频中目标车辆图像能清晰反映目标车辆信息。本发明目标车辆追踪抓拍方法及装置,以预设时间间隔从拍摄视频中抓拍图像,在每次获取图像后,根据获取的当前帧图像对摄像装置的光学参数调节,以使在摄像装置拍摄视频中目标车辆图像能清晰反映目标车辆信息,使能够从拍摄视频中获取到能清晰反映目标车辆信息的图像。

The invention discloses a method and device for tracking and capturing a target vehicle. The method includes: after receiving an instruction for tracking and capturing a target vehicle, start to obtain the current frame image from the video shot by the camera device at a preset time interval, and obtain Extract the target vehicle image in the frame image; judge whether the target vehicle image in the frame image meets the preset requirements, if so, save the frame image, if not, adjust the optical parameters of the camera device, so that when the camera device shoots The image of the target vehicle in the video can clearly reflect the information of the target vehicle. The target vehicle tracking and capturing method and device of the present invention capture images from the shooting video at preset time intervals, and adjust the optical parameters of the camera device according to the acquired current frame image after each image acquisition, so that when the camera device shoots a video The image of the target vehicle can clearly reflect the information of the target vehicle, so that an image that can clearly reflect the information of the target vehicle can be obtained from the shooting video.

Description

一种目标车辆追踪抓拍方法及装置A method and device for tracking and capturing a target vehicle

技术领域technical field

本发明涉及智能交通技术领域,特别是涉及一种目标车辆追踪抓拍方法及装置。The invention relates to the technical field of intelligent transportation, in particular to a method and device for tracking and capturing a target vehicle.

背景技术Background technique

随着汽车的全面普及,城市交通拥堵、公路交通事故频发等社会问题日益突出,而这些问题的发生多数情况下起于驾驶员的交通违法行为。With the full popularity of automobiles, social problems such as urban traffic congestion and frequent highway traffic accidents have become increasingly prominent, and most of these problems occur due to drivers' traffic violations.

目前,交通管理部门通过在路段上设置摄像头对交通违法行为进行监控抓拍,但是在一些小路口或者车辆较少的道路上存在盲区;另外,基于现代科技水平的进步,一般车辆上的导航系统会提示驾驶员在哪些路段会有抓拍,这都使得许多驾驶员抱有侥幸心理,因此闯红灯、逆行、随意倒车、强行变道、压双实线掉头、非法占用应急车道及右转不让直行行人等交通违法行为多有发生,存在的交通安全隐患威胁着人们的财产甚至生命安全。At present, the traffic management department monitors and captures traffic violations by installing cameras on road sections, but there are blind spots at some small intersections or roads with fewer vehicles; in addition, based on the advancement of modern technology, the navigation system on general vehicles will Prompt the driver on which road sections will have snapshots, which makes many drivers feel lucky, so running a red light, going the wrong way, reversing at will, changing lanes forcibly, turning around on double solid lines, illegally occupying emergency lanes and turning right to prevent straight pedestrians Such traffic violations often occur, and the existing traffic safety hazards threaten people's property and even life safety.

为了弥补交通管理部门设置的摄像头监控不足,许多城市都出台了相应政策鼓励市民对交通违法行为进行举报,对于举报市民,或是直接给予现金奖励,或是给予一次轻微交通违法免记分奖励。举报方式比如可以通过微信,上传多张违法照片或者视频,并且举报系统对这些违法照片或视频也有相应的要求,比如必须清晰反映违法车辆号牌、违法车辆外观及违法事实等。In order to make up for the lack of camera surveillance set up by the traffic management department, many cities have introduced corresponding policies to encourage citizens to report traffic violations. For reporting citizens, either directly give cash rewards, or give a reward for minor traffic violations without demerit points. The reporting method can be through WeChat, for example, uploading multiple illegal photos or videos, and the reporting system also has corresponding requirements for these illegal photos or videos, for example, the license plate of the illegal vehicle, the appearance of the illegal vehicle and the facts of the violation must be clearly reflected.

然而现有的行车记录仪只能固定地、单一地拍摄场景图像,并不能保证拍摄的图像或视频能清晰反映违法车辆号牌、违法车辆外观或者违法事实等信息。However, existing driving recorders can only take fixed and single scene images, and cannot guarantee that the captured images or videos can clearly reflect information such as license plates of illegal vehicles, appearance of illegal vehicles, or illegal facts.

发明内容Contents of the invention

鉴于此,本发明的目的是提供一种目标车辆追踪抓拍方法及装置,能够实现获取到能清晰反映目标车辆信息的图像。In view of this, the object of the present invention is to provide a method and device for tracking and capturing a target vehicle, which can realize the acquisition of an image that can clearly reflect the information of the target vehicle.

为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:

一种目标车辆追踪抓拍方法,包括:A method for tracking and capturing a target vehicle, comprising:

在接收到下发的目标车辆追踪抓拍指令后,开始以预设时间间隔从摄像装置拍摄视频中获取当前帧图像,并从获取的该帧图像中提取目标车辆图像;After receiving the issued target vehicle tracking and capturing command, start to obtain the current frame image from the video shot by the camera device at a preset time interval, and extract the target vehicle image from the acquired frame image;

判断在该帧图像中目标车辆图像是否满足预设要求,若是,则保存该帧图像,若否,则调节摄像装置的光学参数,以使在所述摄像装置拍摄视频中目标车辆图像能满足所述预设要求,所述预设要求为在图像中目标车辆图像能清晰反映目标车辆信息。Determine whether the target vehicle image in the frame image meets the preset requirements, if so, save the frame image, if not, adjust the optical parameters of the camera device, so that the target vehicle image in the video captured by the camera device can meet the preset requirements. The preset requirement is that the image of the target vehicle in the image can clearly reflect the information of the target vehicle.

可选地,还包括:在到达预设时间间隔时间点时,若所述摄像装置的光学参数正在调节中,则待所述摄像装置的光学参数调节完成后,即刻从拍摄视频中获取图像,并以该获取时刻为起点计算下次获取图像的时间点。Optionally, it also includes: when the preset time interval time point is reached, if the optical parameters of the camera device are being adjusted, immediately after the optical parameters of the camera device are adjusted, an image is acquired from the shooting video, And use the acquisition moment as a starting point to calculate the time point of acquiring the image next time.

可选地,所述预设要求包括所提取的所述目标车辆图像占整个图像的面积比值位于预设范围内;Optionally, the preset requirement includes that the ratio of the area of the extracted image of the target vehicle to the entire image is within a preset range;

所述调节摄像装置的光学参数,以使在所述摄像装置拍摄视频中目标车辆图像能满足所述预设要求包括:The adjustment of the optical parameters of the camera device so that the image of the target vehicle in the video captured by the camera device can meet the preset requirements includes:

根据所述面积比值调节所述摄像装置变倍组与前固定组之间的距离,以使在所述摄像装置拍摄视频中目标车辆图像占整个图像的面积比值位于所述预设范围的中间值。Adjust the distance between the variable magnification group of the camera device and the front fixed group according to the area ratio, so that the area ratio of the target vehicle image to the entire image in the video captured by the camera device is located at the middle value of the preset range .

可选地,所述调节摄像装置的光学参数,以使在拍摄视频中目标车辆图像能满足所述预设要求还包括:Optionally, the adjusting the optical parameters of the camera device so that the image of the target vehicle in the captured video can meet the preset requirements further includes:

调节所述摄像装置补偿组与变倍组之间的距离,以使所述摄像装置对焦;Adjusting the distance between the compensation group of the camera device and the zoom group, so that the camera device is focused;

调节所述摄像装置的光圈大小,以使拍摄的视频图像曝光正常。The size of the aperture of the camera device is adjusted so that the exposure of the captured video image is normal.

可选地,还包括:若所提取的所述目标车辆图像占整个图像的面积比值位于所述预设范围,判断所提取的所述目标车辆图像占整个图像的面积比值相对于上一次所提取的目标车辆图像占整个图像的面积比值的变化量是否大于阈值;Optionally, it also includes: if the ratio of the area of the extracted target vehicle image to the entire image is within the preset range, judging that the ratio of the area of the extracted target vehicle image to the entire image is compared with that extracted last time. Whether the change in the area ratio of the target vehicle image to the entire image is greater than the threshold;

若是,则根据所述面积比值调节所述摄像装置变倍组与前固定组之间的距离,以使在摄像装置拍摄视频中目标车辆图像占整个图像的面积比值位于所述预设范围的中间值。If yes, then adjust the distance between the variable magnification group of the camera device and the front fixed group according to the area ratio, so that the area ratio of the target vehicle image to the entire image in the video captured by the camera device is located in the middle of the preset range value.

可选地,与所述变倍组连接有第一步进电机,所述第一步进电机用于根据输入脉冲调节所述变倍组与所述前固定组之间的距离;Optionally, a first stepping motor is connected to the variable magnification group, and the first stepping motor is used to adjust the distance between the variable magnification group and the front fixed group according to the input pulse;

与所述补偿组连接有第二步进电机,所述第二步进电机用于调节所述补偿组与所述变倍组之间的距离。A second stepper motor is connected to the compensation group, and the second stepper motor is used to adjust the distance between the compensation group and the variable magnification group.

可选地,从图像中提取目标车辆图像包括:Optionally, extracting the target vehicle image from the image includes:

在图像中设置与图像边缘重合的矩形框;Set a rectangular box in the image that coincides with the edge of the image;

将矩形框的四条边同时向对边方向平行移动,在所述矩形框的边第一次接触目标车辆所在像素点时,该边停止平行移动;Move the four sides of the rectangular frame in parallel to the opposite direction at the same time, and when the side of the rectangular frame touches the pixel point where the target vehicle is located for the first time, the side stops moving in parallel;

在所述矩形框的四条边均停止平行移动后,以获得的矩形框内的图像作为所提取的目标车辆图像。After the four sides of the rectangular frame stop moving in parallel, the obtained image inside the rectangular frame is used as the extracted image of the target vehicle.

可选地,还包括:将保存的图像传输给用户的移动设备,移动设备在接收到图像后,读取移动设备的定位信息以及时间信息并以文本文件记录,并将图像及记录有定位信息和时间信息的文本文件存储在同一文件夹中。Optionally, it also includes: transmitting the saved image to the user's mobile device. After receiving the image, the mobile device reads the location information and time information of the mobile device and records it in a text file, and records the image and the location information and time information text files are stored in the same folder.

一种目标车辆追踪抓拍装置,包括:A target vehicle tracking and capturing device, comprising:

获取模块,用于在接收到下发的目标车辆追踪抓拍指令后,开始以预设时间间隔从摄像装置拍摄视频中获取当前帧图像,并从获取的该帧图像中提取目标车辆图像;The obtaining module is used to start obtaining the current frame image from the video shot by the camera at a preset time interval after receiving the issued target vehicle tracking and capturing instruction, and extract the target vehicle image from the obtained frame image;

调节模块,用于判断在该帧图像中目标车辆图像是否满足预设要求,若是,则保存该帧图像,若否,则调节摄像装置的光学参数,以使在所述摄像装置拍摄视频中目标车辆图像能满足所述预设要求,所述预设要求为在图像中目标车辆图像能清晰反映目标车辆信息。An adjustment module, used to judge whether the target vehicle image in the frame image meets the preset requirements, if so, save the frame image, if not, adjust the optical parameters of the camera device, so that the target vehicle image in the video captured by the camera device The vehicle image can meet the preset requirement, and the preset requirement is that the image of the target vehicle in the image can clearly reflect the information of the target vehicle.

可选地,所述获取模块还用于在到达预设时间间隔时间点时,若所述摄像装置的光学参数正在调节中,则待所述摄像装置的光学参数调节完成后,即刻从拍摄视频中获取图像,并以该获取时刻为起点计算下次获取图像的时间点。Optionally, the acquisition module is further configured to, when the preset time interval time point is reached, if the optical parameters of the imaging device are being adjusted, immediately after the adjustment of the optical parameters of the imaging device is completed, immediately from the shooting video The image is acquired in , and the time point of the next image acquisition is calculated using the acquisition moment as the starting point.

可选地,还包括控制面板,所述控制面板设置有:Optionally, a control panel is also included, and the control panel is provided with:

触摸显示屏,用于显示视频图像,并在用户触摸时下发所述目标车辆追踪抓拍指令;The touch display screen is used to display the video image, and sends the target vehicle tracking and capturing instruction when the user touches it;

图像调节按钮,用于在被触发时手动调节增大或者减小目标车辆图像在拍摄的图像中的面积比值。The image adjustment button is used for manually adjusting to increase or decrease the area ratio of the target vehicle image in the captured image when triggered.

由上述技术方案可知,本发明所提供的目标车辆追踪抓拍方法及装置,在接收到下发的目标车辆追踪抓拍指令后,开始以预设时间间隔从摄像装置拍摄视频中获取当前帧图像,并从获取的该帧图像中提取目标车辆图像;对于每次获取的图像,判断在该帧图像中目标车辆图像是否满足预设要求,若是,则保存该帧图像,若否,则调节摄像装置的光学参数,以使在摄像装置拍摄视频中目标车辆图像能清晰反映目标车辆信息,使得能够从拍摄视频中获取到能清晰反映目标车辆信息的图像。It can be seen from the above technical solution that the target vehicle tracking and capturing method and device provided by the present invention, after receiving the issued target vehicle tracking and capturing command, starts to acquire the current frame image from the video shot by the camera device at a preset time interval, and Extract the target vehicle image from the frame image obtained; for each image obtained, judge whether the target vehicle image in the frame image meets the preset requirements, if so, save the frame image, if not, adjust the camera Optical parameters, so that the image of the target vehicle in the video shot by the camera device can clearly reflect the information of the target vehicle, so that an image that can clearly reflect the information of the target vehicle can be obtained from the video shot.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例提供的一种目标车辆追踪抓拍方法的流程图;Fig. 1 is a flow chart of a method for tracking and capturing a target vehicle provided by an embodiment of the present invention;

图2为本发明实施例中从获取图像中提取目标车辆图像方法的流程图;Fig. 2 is the flowchart of the method for extracting target vehicle image from acquired image in the embodiment of the present invention;

图3为本发明实施例中摄像装置的结构示意图;FIG. 3 is a schematic structural view of an imaging device in an embodiment of the present invention;

图4为本发明又一实施例中根据提取的目标车辆图像进行调整的流程图;Fig. 4 is a flow chart of adjusting according to the extracted target vehicle image in another embodiment of the present invention;

图5为本发明实施例提供的一种目标车辆追踪抓拍装置的示意图;5 is a schematic diagram of a target vehicle tracking and capturing device provided by an embodiment of the present invention;

图6为本发明实施例提供的一种目标车辆追踪抓拍装置中控制面板的示意图。FIG. 6 is a schematic diagram of a control panel in a tracking and capturing device for a target vehicle provided by an embodiment of the present invention.

具体实施方式detailed description

为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

请参考图1,本发明实施例提供的一种目标车辆追踪抓拍方法,包括步骤:Please refer to Fig. 1, a kind of target vehicle tracking capture method provided by the embodiment of the present invention, comprises steps:

S10:在接收到下发的目标车辆追踪抓拍指令时,从摄像装置拍摄视频中获取当前帧图像。S10: Acquire the current frame image from the video shot by the camera device when receiving the issued target vehicle tracking and capturing instruction.

在具体实施时,摄像装置可以是用户车辆的摄像装置(比如行车记录仪)。用户车辆的摄像装置(比如行车记录仪)实时拍摄路况图像,拍摄的路况图像通过显示屏显示给用户,比如可以是触摸显示屏。当用户在触摸显示屏显示的路况图像中观察到违法车辆时,用户可以通过在触摸显示屏中点击违法车辆,从而选中目标车辆,向系统触发下发目标车辆追踪抓拍指令。In a specific implementation, the camera device may be a camera device of the user's vehicle (such as a driving recorder). The camera device of the user's vehicle (such as a driving recorder) captures road condition images in real time, and the captured road condition images are displayed to the user through a display screen, such as a touch display screen. When the user observes an illegal vehicle in the road condition image displayed on the touch screen, the user can click the illegal vehicle on the touch screen to select the target vehicle, and trigger the system to issue a target vehicle tracking and capture command.

在接收到目标车辆追踪抓拍指令时,开始以预设时间间隔从摄像装置拍摄视频中获取当前帧图像,并从当前帧图像中提取目标车辆图像。When the tracking and capturing instruction of the target vehicle is received, the current frame image is acquired from the video shot by the camera device at a preset time interval, and the target vehicle image is extracted from the current frame image.

S11:判断在该帧图像中目标车辆图像是否满足预设要求,所述预设要求为在图像中目标车辆图像能清晰反映目标车辆信息。S11: Determine whether the image of the target vehicle in the image frame meets a preset requirement, the preset requirement being that the image of the target vehicle in the image can clearly reflect the information of the target vehicle.

其中,目标车辆图像能清晰反映目标车辆信息是指在图像中目标车辆图像能清晰反映目标车辆的车辆外观、车辆号牌或者现场车辆违法事实等信息,具体的,可以是所提取的目标车辆图像占整个图像的面积比值位于预设范围内,且图像显示清晰。Wherein, the image of the target vehicle can clearly reflect the information of the target vehicle means that the image of the target vehicle in the image can clearly reflect the appearance of the target vehicle, the vehicle license plate, or the fact that the vehicle violated the law on the spot. Specifically, it can be the extracted image of the target vehicle The ratio of the area to the entire image is within a preset range, and the image is displayed clearly.

若是,则执行步骤S12;If yes, execute step S12;

S12:保存该帧图像。S12: Save the frame image.

若否,则执行步骤S13;If not, execute step S13;

S13:调节摄像装置的光学参数,以使在所述摄像装置拍摄视频中目标车辆图像能满足所述预设要求。S13: Adjust the optical parameters of the camera device, so that the image of the target vehicle in the video captured by the camera device can meet the preset requirements.

S14:在到达预设时间间隔时间点时,从摄像装置拍摄视频中获取当前帧图像,并从获取的该帧图像中提取目标车辆图像。S14: When the preset time interval time point is reached, the current frame image is acquired from the video shot by the camera device, and the target vehicle image is extracted from the acquired frame image.

本方法中,在接收到目标车辆追踪抓拍指令后,开始以预设时间间隔从摄像装置拍摄视频中抓拍图像,具体为每到达预设时间间隔时间点时,从摄像装置拍摄视频中获取当前帧图像。具体的,可以当拍摄视频中每拍摄预设数量帧图像后,从中采集一帧图像,比如预设数量为48帧。In this method, after receiving the target vehicle tracking and capturing instruction, start to capture images from the video shot by the camera device at a preset time interval, specifically, every time the preset time interval time point is reached, the current frame is obtained from the video shot by the camera device image. Specifically, after each preset number of frames of images in the shooting video is captured, one frame of images may be collected, for example, the preset number of frames is 48 frames.

S15:判断在该帧图像中目标车辆图像是否满足预设要求,所述预设要求为在图像中目标车辆图像能清晰反映目标车辆信息,在具体实施时,可以是所提取的目标车辆图像占整个图像的面积比值位于预设范围内,且图像显示清晰。S15: Judging whether the image of the target vehicle in the frame image meets the preset requirement, the preset requirement is that the image of the target vehicle in the image can clearly reflect the information of the target vehicle. The area ratio of the entire image is within a preset range, and the image display is clear.

若是,则执行步骤S16;If so, execute step S16;

S16:保存该帧图像。S16: Save the frame image.

若否,则执行步骤S17;If not, execute step S17;

S17:调节摄像装置的光学参数,以使在所述摄像装置拍摄视频中目标车辆图像能满足所述预设要求。S17: Adjust the optical parameters of the camera device, so that the image of the target vehicle in the video captured by the camera device can meet the preset requirements.

然后循环进入步骤S14。Then loop into step S14.

可以看出,本实施例目标车辆追踪抓拍方法,当用户通过实时拍摄的路况图像观察到违法车辆时,选中目标车辆,开始对目标车辆进行追踪抓拍;在追踪过程中,以预设时间间隔从拍摄视频中抓拍图像,在每次获取图像后根据获取的当前帧图像对摄像装置的光学参数调节,通过调整使在摄像装置拍摄视频中能清晰反映目标车辆信息,使得能够从拍摄视频中获取到能清晰反映目标车辆信息的图像,实现对目标车辆的追踪抓拍。It can be seen that in the target vehicle tracking and capturing method of this embodiment, when the user observes an illegal vehicle through the real-time captured road condition image, the user selects the target vehicle and begins to track and capture the target vehicle; Capture images in the shooting video, adjust the optical parameters of the camera device according to the current frame image obtained after each image acquisition, through adjustment, the target vehicle information can be clearly reflected in the video shot by the camera device, so that it can be obtained from the shooting video The image that can clearly reflect the information of the target vehicle can realize the tracking and capturing of the target vehicle.

在以上实施例描述中,示例性的,从图像中提取目标车辆图像可采用以下方法,请参考图2,具体步骤包括:In the description of the above embodiments, for example, the following method can be used to extract the target vehicle image from the image, please refer to Figure 2, and the specific steps include:

S100:在图像中设置与图像边缘重合的矩形框;S100: Set a rectangular frame in the image that coincides with the edge of the image;

S101:将矩形框的四条边同时向对边方向平行移动,在所述矩形框的边第一次接触目标车辆所在像素点时,该边停止平行移动;S101: Simultaneously move the four sides of the rectangular frame in parallel to opposite sides, and stop the parallel movement when the side of the rectangular frame touches the pixel point where the target vehicle is located for the first time;

S102:在所述矩形框的四条边均停止平行移动后,以获得的矩形框内的图像作为所提取的目标车辆图像。S102: After the four sides of the rectangular frame stop moving in parallel, the obtained image inside the rectangular frame is used as the extracted image of the target vehicle.

在一种实施方式中,判断在该帧图像中目标车辆图像是否满足预设要求,预设要求包括所提取的所述目标车辆图像占整个图像的面积比值位于预设范围内。In one embodiment, it is judged whether the image of the target vehicle in the frame image meets a preset requirement, and the preset requirement includes that the ratio of the extracted area of the image of the target vehicle to the entire image is within a preset range.

在具体实施时,可通过以下方法计算所提取的目标车辆图像占整个图像的面积比值,具体为采用上述方法从获取的图像中提取目标车辆图像后,对获取的图像进行二值化处理,具体为:将图像中目标车辆图像的像素点灰度值设为0(即为黑色),其他像素点灰度值设为255(即为白色),其中灰度值为0的像素点个数除以图像总像素点的个数,所得的值即为所提取的目标车辆图像占整个图像的面积比值,然后根据这一面积比值进行判断和调节。In specific implementation, the area ratio of the extracted target vehicle image to the entire image can be calculated by the following method, specifically, after the target vehicle image is extracted from the acquired image using the above method, the acquired image is binarized, specifically It is: set the pixel gray value of the target vehicle image in the image to 0 (that is, black), and the gray value of other pixels to 255 (that is, white), where the number of pixels with a gray value of 0 is divided by Based on the total number of pixels in the image, the obtained value is the area ratio of the extracted target vehicle image to the entire image, and then judge and adjust according to this area ratio.

当所提取的目标车辆图像占整个图像的面积比值超出预设范围时,则调节摄像装置的光学参数,以使在拍摄视频中目标车辆图像能满足所述预设要求,具体包括:When the area ratio of the extracted target vehicle image to the entire image exceeds the preset range, the optical parameters of the camera device are adjusted so that the target vehicle image in the captured video can meet the preset requirements, specifically including:

S200:根据所述面积比值调节所述摄像装置变倍组与前固定组之间的距离,以使在摄像装置拍摄视频中目标车辆图像占整个图像的面积比值位于所述预设范围的中间值。S200: Adjust the distance between the variable magnification group of the camera device and the front fixed group according to the area ratio, so that the area ratio of the image of the target vehicle to the entire image in the video captured by the camera device is at the middle value of the preset range .

本实施例中,可参考图3,摄像装置包括前固定组30、变倍组31、补偿组32、后固定组33和成像器件34。本方法中,具体根据所述面积比值调节摄像装置中变倍组31到所固定组30的距离x,以使拍摄的视频图像中目标车辆图像占整个图像的面积比值位于预设范围的中间值。In this embodiment, referring to FIG. 3 , the imaging device includes a front fixing group 30 , a variable magnification group 31 , a compensation group 32 , a rear fixing group 33 and an imaging device 34 . In this method, the distance x between the variable magnification group 31 and the fixed group 30 in the imaging device is adjusted specifically according to the area ratio, so that the area ratio of the target vehicle image in the captured video image to the entire image is located at the middle value of the preset range .

例如,预设范围为47%~53%,若获取的当前帧图像中计算得到的面积比值小于47%,则控制增大摄像装置的变倍组焦距,即调节增大距离x,使后续拍摄图像中这一面积比值位于47%~53%范围内;若计算的面积比值大于53%,则控制减小摄像装置的变倍组焦距,即减小距离x,使后续拍摄图像中这一面积比值位于47%~53%范围内。For example, the preset range is 47% to 53%. If the area ratio calculated in the acquired current frame image is less than 47%, the focal length of the zoom group of the camera device is controlled to be increased, that is, the increased distance x is adjusted so that subsequent shooting This area ratio in the image is in the range of 47% to 53%; if the calculated area ratio is greater than 53%, then control to reduce the focal length of the zoom group of the camera device, that is, reduce the distance x, so that this area in the subsequent image capture The ratio is in the range of 47% to 53%.

具体的,可设置与所述变倍组31连接的第一步进电机35,用于调节摄像装置中变倍组31到前固定组30的距离x。系统根据计算出的面积比值与预设范围中间值比较,计算出需要调节的比例,从而再计算出x的值,进而计算出第一步进电机35所需的脉冲数并向第一步进电机35输出脉冲,来控制第一步进电机35调节距离x。Specifically, a first stepping motor 35 connected to the variable magnification group 31 may be provided for adjusting the distance x from the variable magnification group 31 to the front fixed group 30 in the imaging device. The system calculates the proportion that needs to be adjusted according to the calculated area ratio and the middle value of the preset range, and then calculates the value of x, and then calculates the number of pulses required by the first stepping motor 35 and steps to the first step. The motor 35 outputs pulses to control the first stepper motor 35 to adjust the distance x.

进一步的,还包括:Further, it also includes:

S201:调节所述摄像装置补偿组与变倍组之间的距离,以使所述摄像装置对焦。S201: Adjust the distance between the camera compensation group and the zoom group, so as to make the camera focus.

当通过上述调节步骤对摄像装置前固定组30与变倍组31之间的距离调节时,会导致摄像装置拍摄模糊,因此本步骤中对摄像装置变倍组31与补偿组32间的距离进行调节,使摄像装置对焦,拍摄图像画面清晰。When the distance between the fixed group 30 and the variable magnification group 31 before the camera device is adjusted by the above adjustment steps, it will cause the camera device to shoot blurred, so in this step, the distance between the camera device variable magnification group 31 and the compensation group 32 is adjusted. Adjust to make the camera focus, and the captured image is clear.

具体的,调节所述摄像装置中补偿组32到变倍组31的距离y,以使所述摄像装置对焦。可以将拉普拉斯算子作为评价函数,利用梯度下降算法最大化该评价函数,来调节补偿组32到变倍组31的距离y,以使摄像装置对焦清晰。Specifically, the distance y between the compensation group 32 and the zoom group 31 in the camera device is adjusted to make the camera device focus. The Laplacian operator may be used as an evaluation function, and the gradient descent algorithm may be used to maximize the evaluation function to adjust the distance y between the compensation group 32 and the variable magnification group 31, so that the camera device can focus clearly.

具体的,可设置与所述补偿组32连接的第二步进电机36,用于调节摄像装置中补偿组32到变倍组31的距离y。系统控制第二步进电机36,对补偿组位置进行调节。Specifically, a second stepper motor 36 connected to the compensation group 32 may be provided for adjusting the distance y between the compensation group 32 and the variable magnification group 31 in the imaging device. The system controls the second stepping motor 36 to adjust the position of the compensation group.

S202:调节所述摄像装置的光圈大小,以使拍摄的视频图像曝光正常。S202: Adjust the size of the aperture of the camera device, so that the exposure of the captured video image is normal.

经过上步骤变焦完成后,根据摄像装置实时拍摄的视频图像,将当前拍摄到的一帧图像转化为灰度图像,根据转化后的图像像素点的灰度值大小,调节光圈大小。具体的,当灰度值在0到60之间的像素点个数占总像素点个数的35%以上时,表明当前图像曝光不足,则加大摄像装置光圈,直至灰度值在0到60之间的像素点个数占总像素点个数小于35%;当灰度值在201到255之间的像素点个数占总像素点个数的35%以上时,表明当前图像曝光过度,此时减小光圈,直至灰度值在201到255之间的像素点个数占总像素点个数小于35%。这样使摄像装置后续拍摄的图像曝光正常。After the zooming in the previous step is completed, according to the video image captured by the camera device in real time, the currently captured frame of image is converted into a grayscale image, and the size of the aperture is adjusted according to the grayscale value of the converted image pixel. Specifically, when the number of pixels with a grayscale value between 0 and 60 accounts for more than 35% of the total number of pixels, it indicates that the current image is underexposed, and the aperture of the camera is increased until the grayscale value is between 0 and 60. The number of pixels between 60 and 35% of the total number of pixels; when the number of pixels with a gray value between 201 and 255 accounts for more than 35% of the total number of pixels, it indicates that the current image is overexposed , at this time, reduce the aperture until the number of pixels with a grayscale value between 201 and 255 accounts for less than 35% of the total number of pixels. In this way, the exposure of the subsequent image taken by the camera device is normal.

这样通过对摄像装置的光学参数进行调节,使摄像装置后续拍摄的视频图像中能够清晰反映目标车辆信息。In this way, by adjusting the optical parameters of the camera device, the target vehicle information can be clearly reflected in the subsequent video images captured by the camera device.

在本方法另一种优选实施方式中,在上述实施方式内容的基础上,请参考图4,还包括以下步骤:In another preferred implementation of this method, on the basis of the content of the above-mentioned implementation, please refer to Figure 4, and further include the following steps:

S40:若所提取的所述目标车辆图像占整个图像的面积比值位于所述预设范围内,判断所提取的所述目标车辆图像占整个图像的面积比值相对于上一次所提取的目标车辆图像占整个图像的面积比值的变化量是否大于阈值。S40: If the ratio of the area of the extracted target vehicle image to the entire image is within the preset range, determine that the ratio of the area of the extracted target vehicle image to the entire image is relative to the target vehicle image extracted last time Whether the change in the area ratio of the entire image is greater than the threshold.

若否,则执行步骤S41。If not, execute step S41.

S41:保存该帧图像。S41: Save the frame image.

若是,则执行步骤S42。If yes, execute step S42.

S42:保存该帧图像,根据所述面积比值调节所述摄像装置变倍组与前固定组之间的距离,以使在摄像装置拍摄视频中目标车辆图像占整个图像的面积比值位于所述预设范围的中间值。S42: Save the frame image, and adjust the distance between the zoom group of the camera device and the front fixed group according to the area ratio, so that the area ratio of the target vehicle image to the entire image in the video captured by the camera device is within the predetermined area ratio. Set the middle value of the range.

例如,预设范围为47%~53%,阈值为2.5%,根据计算得到当前所提取的目标车辆图像占整个图像的面积比值a,上一次所提取的目标车辆图像占整个图像的面积比值b,若该面积比值变化量|a-b|大于2.5%,表明目标车辆相对本车(即摄像装置所在车辆)在这一时间间隔内移动距离较大,则调节摄像装置变倍组与前固定组之间的距离x,使目标车辆图像占整个图像的面积比值位于47%~53%的中间值50%。For example, the preset range is 47% to 53%, and the threshold is 2.5%. According to the calculation, the area ratio a of the currently extracted target vehicle image to the entire image, and the area ratio b of the target vehicle image extracted last time to the entire image are obtained. , if the change of the area ratio |a-b| is greater than 2.5%, it indicates that the target vehicle has moved a relatively large distance in this time interval relative to the own vehicle (that is, the vehicle where the camera device is located), then adjust the distance between the zoom group of the camera device and the front fixed group The distance x between them makes the ratio of the area of the target vehicle image to the entire image to be 50%, which is the middle value of 47% to 53%.

在本步骤中根据面积比值调节完摄像装置变倍组与前固定组之间的距离之后,并进一步调节所述摄像装置补偿组与变倍组之间的距离,以使所述摄像装置对焦,并调节所述摄像装置的光圈大小,以使拍摄的视频图像曝光正常。具体调节方法可参考步骤S201、S202,此处不再赘述。In this step, after adjusting the distance between the camera device zoom group and the front fixed group according to the area ratio, and further adjusting the distance between the camera device compensation group and the zoom group, so that the camera device is focused, And adjust the aperture size of the camera device, so that the exposure of the captured video image is normal. For specific adjustment methods, refer to steps S201 and S202, which will not be repeated here.

进一步优选的,在上述各实施例描述的目标车辆追踪抓拍方法中,还包括:在到达预设时间间隔时间点时,若所述摄像装置的光学参数正在调节中,则待所述摄像装置的光学参数调节完成后,即刻从拍摄视频中获取图像,并以该获取时刻为起点计算下次获取图像的时间点。Further preferably, in the target vehicle tracking and capturing method described in each of the above embodiments, it further includes: when the preset time interval time point is reached, if the optical parameters of the camera device are being adjusted, wait for the camera device to After the adjustment of the optical parameters is completed, the image is acquired from the shooting video immediately, and the time point of the next image acquisition is calculated using the acquisition moment as the starting point.

在对目标车辆的追踪抓拍过程中,若在到达预设时间间隔时间点时,摄像装置的光学参数正在调节中,则等待摄像装置的光学参数调节完成后,再从拍摄视频中获取图像,这样能够保证每次获取图像的有效性,提高所抓拍图像的质量。In the process of tracking and capturing the target vehicle, if the optical parameters of the camera device are being adjusted when the preset time interval is reached, wait for the optical parameters of the camera device to be adjusted before acquiring images from the shooting video, thus It can ensure the validity of each captured image and improve the quality of captured images.

在拍摄视频中对目标车辆追踪抓拍完成后,将保存的图像上传。优选的,本实施例目标车辆追踪抓拍方法中,还包括:将获取的图像传输给用户的移动设备,移动设备接收到获取的能清晰反映目标车辆信息的车辆图像后,读取移动设备的定位信息以及时间信息并以文本文件记录,并将违法车辆图像及记录有定位信息和时间信息的文本文件存储在同一文件夹中,这样用户可以非常方便地获取到清晰反映违法车辆号牌、违法车辆外观及违法事实等信息的图像,将违法车辆图像上传或者举报。After the target vehicle is tracked and captured in the shooting video, the saved image is uploaded. Preferably, the method for tracking and capturing the target vehicle in this embodiment further includes: transmitting the acquired image to the mobile device of the user, and after the mobile device receives the acquired vehicle image that can clearly reflect the information of the target vehicle, read the location of the mobile device Information and time information are recorded in text files, and images of illegal vehicles and text files with location information and time information are stored in the same folder, so that users can easily obtain license plates that clearly reflect illegal vehicles, illegal vehicles Upload or report images of illegal vehicles.

相应的,请参考图5,本发明实施例还提供一种目标车辆追踪抓拍装置,包括:Correspondingly, please refer to FIG. 5, the embodiment of the present invention also provides a target vehicle tracking and capturing device, including:

获取模块50,用于在接收到下发的目标车辆追踪抓拍指令后,开始以预设时间间隔从摄像装置拍摄视频中获取当前帧图像,并从获取的该帧图像中提取目标车辆图像;The obtaining module 50 is used to start obtaining the current frame image from the video shot by the camera at a preset time interval after receiving the issued target vehicle tracking and capturing instruction, and extract the target vehicle image from the obtained frame image;

调节模块51,用于判断在该帧图像中目标车辆图像是否满足预设要求,若是,则保存该帧图像,若否,则调节摄像装置的光学参数,以使在所述摄像装置拍摄视频中目标车辆图像能满足所述预设要求,所述预设要求为在图像中目标车辆图像能清晰反映目标车辆信息。The adjustment module 51 is used to judge whether the target vehicle image in the frame image meets the preset requirements, if so, save the frame image, and if not, adjust the optical parameters of the camera device so that in the video captured by the camera device The image of the target vehicle can meet the preset requirement, and the preset requirement is that the image of the target vehicle in the image can clearly reflect the information of the target vehicle.

可以看出,本实施例提供的目标车辆追踪抓拍装置,在接收到下发的目标车辆追踪抓拍指令后,开始以预设时间间隔从摄像装置拍摄视频中获取当前帧图像,并从获取的该帧图像中提取目标车辆图像;对于每次获取的图像,判断在该帧图像中目标车辆图像是否满足预设要求,若是,则保存该帧图像,若否,则调节摄像装置的光学参数,以使在摄像装置拍摄视频中目标车辆图像能清晰反映目标车辆信息,从而实现从拍摄视频中能获取到能清晰反映目标车辆信息的图像。It can be seen that the target vehicle tracking and capturing device provided in this embodiment, after receiving the issued target vehicle tracking and capturing command, starts to acquire the current frame image from the video shot by the camera device at a preset time interval, and from the acquired Extract the target vehicle image in the frame image; for each acquired image, judge whether the target vehicle image in the frame image meets the preset requirements, if so, save the frame image, if not, adjust the optical parameters of the camera to The image of the target vehicle in the video captured by the camera device can clearly reflect the information of the target vehicle, so that an image that can clearly reflect the information of the target vehicle can be obtained from the captured video.

本实施例目标车辆追踪抓拍装置,获取模块50用于在接收到下发的目标车辆追踪抓拍指令后,开始以预设时间间隔从摄像装置拍摄视频中获取当前帧图像。In the target vehicle tracking and capturing device of this embodiment, the acquisition module 50 is configured to start acquiring the current frame image from the video captured by the camera device at a preset time interval after receiving the issued target vehicle tracking and capturing instruction.

比如,由用户车辆的摄像装置(比如行车记录仪)实时拍摄路况图像,拍摄的路况图像通过触摸显示屏显示给用户。当用户在触摸显示屏中观察到违法车辆时,用户可以通过在触摸显示屏中点击违法车辆,从而选中目标车辆,向本装置触发下发目标车辆追踪抓拍指令。本装置在接收到目标车辆追踪抓拍指令时,从摄像装置拍摄视频中获取当前帧图像,从该帧图像中提取目标车辆图像,并开始以预设时间间隔从拍摄视频中获取图像。For example, a camera device (such as a driving recorder) of the user's vehicle captures a road condition image in real time, and the captured road condition image is displayed to the user through a touch screen. When the user observes an illegal vehicle on the touch screen, the user can click on the illegal vehicle on the touch screen to select the target vehicle, and trigger the sending of the target vehicle tracking and capturing command to the device. When the device receives the target vehicle tracking and capturing instruction, it acquires the current frame image from the video shot by the camera device, extracts the target vehicle image from the frame image, and starts to acquire images from the shot video at preset time intervals.

因此,本实施例目标车辆追踪抓拍装置,当用户通过实时拍摄的路况图像观察到违法车辆时,选中目标车辆,开始对目标车辆进行追踪抓拍;在追踪过程中,以预设时间间隔从拍摄视频中抓拍图像,在每次获取图像后根据获取的当前帧图像对摄像装置的光学参数调节,通过调整使在摄像装置拍摄视频中能清晰反映目标车辆信息,使得能够从拍摄视频中获取到能清晰反映目标车辆信息的图像,实现对目标车辆的追踪抓拍。Therefore, the target vehicle tracking and capturing device of this embodiment, when the user observes an illegal vehicle through the road condition image captured in real time, selects the target vehicle and begins to track and capture the target vehicle; After each image is captured, the optical parameters of the camera device are adjusted according to the current frame image acquired. Through adjustment, the target vehicle information can be clearly reflected in the video shot by the camera device, so that it can be clearly obtained from the shot video. The image reflecting the information of the target vehicle realizes the tracking and capturing of the target vehicle.

在本目标车辆追踪抓拍装置的又一实施例中,在上述实施例内容的基础上,所述获取模块50还用于在到达预设时间间隔时间点时,若所述摄像装置的光学参数正在调节中,则待所述摄像装置的光学参数调节完成后,即刻从所述摄像装置拍摄视频中获取图像,并以该获取时刻为起点计算下次获取图像的时间点。这样能够保证每次获取图像的有效性,提高所抓拍图像的质量。In yet another embodiment of the target vehicle tracking and capturing device, on the basis of the content of the above embodiments, the acquisition module 50 is further configured to, if the optical parameters of the camera device are During the adjustment, after the adjustment of the optical parameters of the camera device is completed, an image is acquired from the video shot by the camera device immediately, and the time point of the next image acquisition is calculated using the acquisition time as a starting point. In this way, the validity of each captured image can be guaranteed, and the quality of the captured image can be improved.

另外,在本部分以上描述的目标车辆追踪抓拍装置中,所涉及的从图像中提取目标车辆图像的方法、以及根据拍摄图像调节摄像装置的光学参数,以使在拍摄视频中目标车辆图像能满足预设要求的方法,均可参考上一部分关于目标车辆追踪抓拍方法中的描述内容,在本部分装置的实施例中不再赘述。In addition, in the target vehicle tracking and capturing device described above in this part, the method involved in extracting the target vehicle image from the image, and adjusting the optical parameters of the camera device according to the captured image, so that the target vehicle image in the captured video can satisfy For the method of preset requirements, all can refer to the description in the previous part about the tracking and capturing method of the target vehicle, and will not be repeated in the embodiments of the device in this part.

进一步的,在上述各实施例内容的基础上,本目标车辆追踪抓拍装置设置有控制面板,请参考图6,所述控制面板设置有:触摸显示屏,用于显示视频图像,并在用户触摸时下发所述目标车辆追踪抓拍指令;图像调节按钮,用于在被触发时手动调节增大或者减小目标车辆图像在拍摄的图像中的面积比值。Further, on the basis of the contents of the above-mentioned embodiments, the target vehicle tracking and capturing device is provided with a control panel, please refer to FIG. 6, the control panel is provided with: a touch screen for displaying video images, Issue the target vehicle tracking and capturing command at any time; the image adjustment button is used to manually adjust to increase or decrease the area ratio of the target vehicle image in the captured image when triggered.

摄像装置拍摄到的路况图像通过触摸显示屏显示,用户发现违法车辆后,在显示画面中点击违法车辆,选中目标车辆,由此触发下发目标车辆追踪抓拍指令。The road condition image captured by the camera device is displayed on the touch screen. After the user finds an illegal vehicle, he clicks on the illegal vehicle on the display screen to select the target vehicle, which triggers the issuance of the target vehicle tracking and capture command.

在调节拍摄图像中目标车辆图像的面积比值大小时,用户可通过手动来调节画面。在控制面板上设置有“+”图像调节按钮和“-”图像调节按钮,通过触发“+”图像调节按钮来微调目标车辆图像所占的面积比值增大,通过“-”图像调节按钮来微调减小目标车辆图像所占的面积比值。When adjusting the area ratio of the target vehicle image in the captured image, the user can manually adjust the image. There are "+" image adjustment button and "-" image adjustment button on the control panel. By triggering the "+" image adjustment button to fine-tune the increase in the area ratio of the target vehicle image, use the "-" image adjustment button to fine-tune Reduce the ratio of the area occupied by the target vehicle image.

本实施例目标车辆追踪抓拍装置还包括通信模块,用于将获取的图像传输给用户的移动设备。The target vehicle tracking and capturing device in this embodiment further includes a communication module, configured to transmit the acquired image to the user's mobile device.

本装置通过通信模块将抓拍到的能清晰反映违法车辆信息的图像传输给用户的移动设备,移动设备接收到车辆图像后,读取移动设备的定位信息以及时间信息并以文本文件记录,并将违法车辆图像及记录有定位信息和时间信息的文本文件存储在同一文件夹中,这样用户可以非常方便地获取到清晰反映违法车辆号牌、违法车辆外观及违法事实等信息的图像,将违法车辆图像上传或者举报。The device transmits the captured images that can clearly reflect illegal vehicle information to the user's mobile device through the communication module. After receiving the vehicle image, the mobile device reads the location information and time information of the mobile device and records them in a text file. Illegal vehicle images and text files with location information and time information are stored in the same folder, so that users can easily obtain images that clearly reflect information such as illegal vehicle license plates, illegal vehicle appearance, and illegal facts. Upload or report images.

在具体实施时,通信模块可以是蓝牙通信模块,通过蓝牙通信方式将获取的图像传输给用户的移动设备。During specific implementation, the communication module may be a Bluetooth communication module, which transmits the acquired image to the user's mobile device through Bluetooth communication.

以上对本发明所提供的一种目标车辆追踪抓拍方法及装置进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method and device for tracking and capturing a target vehicle provided by the present invention have been described in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (10)

1. a kind of target vehicle follows the trail of grasp shoot method, it is characterised in that including:
After the target vehicle issued tracking candid photograph instruction is received, start to shoot video from camera device with prefixed time interval Middle acquisition current frame image, and the extraction target vehicle image from the two field picture of acquisition;
Judge whether target vehicle image meets preset requirement in the two field picture, if so, the two field picture is then preserved, if it is not, then The optical parametric of camera device is adjusted, so that target vehicle image can meet described default in the camera device shoots video It is required that, the preset requirement can clearly reflect target vehicle information for target vehicle image in the picture.
2. target vehicle according to claim 1 follows the trail of grasp shoot method, it is characterised in that also include:When reaching default Between interval time point when, if the optical parametric of the camera device is adjusted, treat the optical parametric of the camera device After the completion of regulation, obtain image from video is shot at once, and calculate by starting point of the acquisition moment acquisition next time image when Between point.
3. target vehicle according to claim 1 or 2 follows the trail of grasp shoot method, it is characterised in that the preset requirement includes The area ratio that the target vehicle image extracted accounts for whole image is located in preset range;
The optical parametric of the regulation camera device, so that target vehicle image can be met in the camera device shoots video The preset requirement includes:
The distance between the camera device zoom group and preceding fixed group are adjusted according to the area ratio, so that in the shooting Device shoots median of the area ratio positioned at the preset range that target vehicle image in video accounts for whole image;
The distance between the camera device compensation group and zoom group are adjusted, so that the camera device is focused;
The aperture size of the camera device is adjusted, so that the video image exposure shot is normal.
4. target vehicle according to claim 3 follows the trail of grasp shoot method, it is characterised in that also include:If the institute extracted State target vehicle image and account for the area ratio of whole image and be located in the preset range, judge the target vehicle that is extracted Image accounts for the area ratio that the area ratio of whole image accounts for whole image relative to the target vehicle image that the last time is extracted Variable quantity whether be more than threshold value;
If so, the distance between the camera device zoom group and preceding fixed group are then adjusted according to the area ratio, so that Camera device shoots median of the area ratio positioned at the preset range that target vehicle image in video accounts for whole image.
5. target vehicle according to claim 3 follows the trail of grasp shoot method, it is characterised in that
The first stepper motor is connected with the zoom group, first stepper motor is used to become according to input pulse regulation is described The distance between times group and described preceding fixed group;
The second stepper motor is connected with the compensation group, second stepper motor is used to adjust the compensation group and the change The distance between organize again.
6. target vehicle according to claim 1 follows the trail of grasp shoot method, it is characterised in that from extracting target from images vehicle Image includes:
The rectangle frame overlapped with image border is set in the picture;
The four edges of rectangle frame are moved in parallel to edge direction simultaneously, in the side first time contact target vehicle of the rectangle frame During the pixel of place, the side stops moving in parallel;
After the four edges of the rectangle frame stop moving in parallel, the mesh extracted is used as using the image in the rectangle frame of acquisition Mark vehicle image.
7. target vehicle according to claim 1 follows the trail of grasp shoot method, it is characterised in that also include:By the image of preservation The mobile device of user is transferred to, mobile device upon receiving the image, reads the location information and time letter of mobile device Cease and recorded with text, and image and record are had into the text files memory of location information and temporal information in identical file In folder.
8. a kind of target vehicle follows the trail of grasp shoot device, it is characterised in that including:
Acquisition module, for receiving after the target vehicle that issues follows the trail of and capture instruction, starts with prefixed time interval from taking the photograph Current frame image is obtained in video as device is shot, and the extraction target vehicle image from the two field picture of acquisition;
Adjustment module, for judging whether target vehicle image meets preset requirement in the two field picture, if so, then preserving the frame Image, if it is not, the optical parametric of camera device is then adjusted, so that the target vehicle image energy in the camera device shoots video The preset requirement is met, the preset requirement can clearly reflect target vehicle information for target vehicle image in the picture.
9. target vehicle according to claim 8 follows the trail of grasp shoot device, it is characterised in that the acquisition module is additionally operable to When reaching prefixed time interval time point, if the optical parametric of the camera device is adjusted, the camera device is treated Optical parametric regulation after the completion of, obtain image from video is shot at once, and calculating is obtained next time by starting point of the acquisition moment Take the time point of image.
10. target vehicle according to claim 8 or claim 9 follows the trail of grasp shoot device, it is characterised in that also including control panel, The control panel is provided with:
Touch display screen, for showing video image, and issues when user touches the target vehicle and follows the trail of and capture instruction;
Image adjustment button, for regulation to increase or reduced target vehicle image in the image of shooting manually when being triggered Area ratio.
CN201710523182.4A 2017-06-30 2017-06-30 A kind of target vehicle follows the trail of grasp shoot method and device Pending CN107170239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710523182.4A CN107170239A (en) 2017-06-30 2017-06-30 A kind of target vehicle follows the trail of grasp shoot method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710523182.4A CN107170239A (en) 2017-06-30 2017-06-30 A kind of target vehicle follows the trail of grasp shoot method and device

Publications (1)

Publication Number Publication Date
CN107170239A true CN107170239A (en) 2017-09-15

Family

ID=59827425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710523182.4A Pending CN107170239A (en) 2017-06-30 2017-06-30 A kind of target vehicle follows the trail of grasp shoot method and device

Country Status (1)

Country Link
CN (1) CN107170239A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493507A (en) * 2019-05-30 2019-11-22 福建知鱼科技有限公司 A kind of grasp shoot method
CN111028272A (en) * 2019-12-11 2020-04-17 北京百度网讯科技有限公司 Object tracking method and device
CN111063099A (en) * 2019-12-02 2020-04-24 合肥美的智能科技有限公司 Container monitoring method, system and device, container and computer readable storage medium
CN111198549A (en) * 2020-02-18 2020-05-26 陈文翔 Poultry breeding monitoring management system based on big data
CN112712708A (en) * 2020-12-28 2021-04-27 上海眼控科技股份有限公司 Information detection method, device, equipment and storage medium
CN112818954A (en) * 2021-03-17 2021-05-18 重庆紫光华山智安科技有限公司 Vehicle state identification method, device, equipment and medium
CN119207115A (en) * 2024-11-28 2024-12-27 南京乾创电子科技有限公司 Method and device for capturing trucks running red lights based on image recognition

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980384A (en) * 2006-09-27 2007-06-13 林进灯 Locking and marking device and method for space moving object
CN100449576C (en) * 2006-08-23 2009-01-07 王亚盛 Real-time image monitoring and genuine-fake identification system for vehicle with automatic color regulating and light filling license plate
CN101379825A (en) * 2006-01-31 2009-03-04 松下电器产业株式会社 Automatic tracking device and automatic tracking method
CN201667683U (en) * 2010-03-31 2010-12-08 福州开发区鸿发光电子技术有限公司 Large focal variation ratio automatic focusing all-in-one video camera
CN202171678U (en) * 2011-08-20 2012-03-21 福建福光数码科技有限公司 High-resolution zoom lens for intelligent traffic system
CN103312972A (en) * 2012-03-09 2013-09-18 宏达国际电子股份有限公司 Electronic device and focal length adjusting method thereof
CN104469227A (en) * 2013-09-22 2015-03-25 杭州海康威视系统技术有限公司 Vehicle behavior video recording method and device
CN105096596A (en) * 2015-07-03 2015-11-25 北京润光泰力科技发展有限公司 Traffic violation detecting method and system
CN105208377A (en) * 2015-09-14 2015-12-30 北京奇虎科技有限公司 Image processing method and device
CN205920598U (en) * 2016-08-26 2017-02-01 上海德督信息科技有限公司 Vehicular traffic violation intelligence supervisory equipment
CN206057668U (en) * 2016-09-06 2017-03-29 深圳银星精工科技发展有限公司 A kind of focal length high magnification fog transparent camera lens
CN106585530A (en) * 2016-11-18 2017-04-26 重庆泰奥豪骋科技有限公司 Vehicle-mounted snapshooting device and control method thereof
CN106664373A (en) * 2016-03-29 2017-05-10 深圳市红狐狸智能科技有限公司 An automatic zooming-based self-adaptive image tracking method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379825A (en) * 2006-01-31 2009-03-04 松下电器产业株式会社 Automatic tracking device and automatic tracking method
CN100449576C (en) * 2006-08-23 2009-01-07 王亚盛 Real-time image monitoring and genuine-fake identification system for vehicle with automatic color regulating and light filling license plate
CN1980384A (en) * 2006-09-27 2007-06-13 林进灯 Locking and marking device and method for space moving object
CN201667683U (en) * 2010-03-31 2010-12-08 福州开发区鸿发光电子技术有限公司 Large focal variation ratio automatic focusing all-in-one video camera
CN202171678U (en) * 2011-08-20 2012-03-21 福建福光数码科技有限公司 High-resolution zoom lens for intelligent traffic system
CN103312972A (en) * 2012-03-09 2013-09-18 宏达国际电子股份有限公司 Electronic device and focal length adjusting method thereof
CN104469227A (en) * 2013-09-22 2015-03-25 杭州海康威视系统技术有限公司 Vehicle behavior video recording method and device
CN105096596A (en) * 2015-07-03 2015-11-25 北京润光泰力科技发展有限公司 Traffic violation detecting method and system
CN105208377A (en) * 2015-09-14 2015-12-30 北京奇虎科技有限公司 Image processing method and device
CN106664373A (en) * 2016-03-29 2017-05-10 深圳市红狐狸智能科技有限公司 An automatic zooming-based self-adaptive image tracking method
CN205920598U (en) * 2016-08-26 2017-02-01 上海德督信息科技有限公司 Vehicular traffic violation intelligence supervisory equipment
CN206057668U (en) * 2016-09-06 2017-03-29 深圳银星精工科技发展有限公司 A kind of focal length high magnification fog transparent camera lens
CN106585530A (en) * 2016-11-18 2017-04-26 重庆泰奥豪骋科技有限公司 Vehicle-mounted snapshooting device and control method thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493507A (en) * 2019-05-30 2019-11-22 福建知鱼科技有限公司 A kind of grasp shoot method
CN111063099A (en) * 2019-12-02 2020-04-24 合肥美的智能科技有限公司 Container monitoring method, system and device, container and computer readable storage medium
CN111028272A (en) * 2019-12-11 2020-04-17 北京百度网讯科技有限公司 Object tracking method and device
CN111028272B (en) * 2019-12-11 2023-06-20 北京百度网讯科技有限公司 Object tracking method and device
CN111198549A (en) * 2020-02-18 2020-05-26 陈文翔 Poultry breeding monitoring management system based on big data
CN111198549B (en) * 2020-02-18 2020-11-06 湖南伟业动物营养集团股份有限公司 Poultry breeding monitoring management system based on big data
CN112712708A (en) * 2020-12-28 2021-04-27 上海眼控科技股份有限公司 Information detection method, device, equipment and storage medium
CN112818954A (en) * 2021-03-17 2021-05-18 重庆紫光华山智安科技有限公司 Vehicle state identification method, device, equipment and medium
CN112818954B (en) * 2021-03-17 2022-08-26 重庆紫光华山智安科技有限公司 Vehicle state identification method, device, equipment and medium
CN119207115A (en) * 2024-11-28 2024-12-27 南京乾创电子科技有限公司 Method and device for capturing trucks running red lights based on image recognition

Similar Documents

Publication Publication Date Title
CN107170239A (en) A kind of target vehicle follows the trail of grasp shoot method and device
US11790504B2 (en) Monitoring method and apparatus
KR102385280B1 (en) Camera system and method for contextually capturing the surrounding area of a vehicle
KR102162130B1 (en) Enforcement system of illegal parking using single camera
WO2016131310A1 (en) Method and apparatus for camera shooting
CN106781666A (en) A kind of control method and system of target parking stall
CN105632182A (en) Vehicle violation behavior proof method and system thereof
CN105679017A (en) Slight traffic accident assistant evidence collection method and system
CN103795909A (en) Shooting optimization device, image-pickup device and shooting optimization method
KR100820952B1 (en) Unmanned automatic parking control method using single camera and its system
CN104809876A (en) Illegal vehicle parking detection linkage capture system and integrated camera
KR102431215B1 (en) Camera system and method for capturing the surrounding area of a vehicle
KR100645007B1 (en) Illegal parking / stopping unmanned enforcement system and method using image detection technique
CN105376485B (en) Two-way real-time vehicle chassis image combining method based on Linear Array Realtime video camera
KR101080219B1 (en) System for regulating illegal parking
JP2010282390A (en) Passing vehicle imaging method and imaging device
WO2020237542A1 (en) Image processing method and apparatus
CN111225182A (en) Image acquisition equipment, method and device
CN104717428A (en) Surveillance camera and control method thereof
JP2017049879A (en) Violators specifying device and violators specifying system with the device
CN103986912A (en) Two-way real-time vehicle chassis image synthesis method based on civilian IPC
CN111260953A (en) In-road parking management method, device and system
CN111526475A (en) Target vehicle tracking method and device, electronic equipment and storage medium
KR20200101792A (en) The CCTV integrated control system using black box
CN111654620B (en) Shooting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170915

RJ01 Rejection of invention patent application after publication