WO2016029822A1 - Star trail shooting processing method and device - Google Patents

Star trail shooting processing method and device Download PDF

Info

Publication number
WO2016029822A1
WO2016029822A1 PCT/CN2015/087703 CN2015087703W WO2016029822A1 WO 2016029822 A1 WO2016029822 A1 WO 2016029822A1 CN 2015087703 W CN2015087703 W CN 2015087703W WO 2016029822 A1 WO2016029822 A1 WO 2016029822A1
Authority
WO
WIPO (PCT)
Prior art keywords
star
track
pixel point
pixel
shooting
Prior art date
Application number
PCT/CN2015/087703
Other languages
French (fr)
Chinese (zh)
Inventor
龙浩
崔小辉
苗雷
里强
Original Assignee
努比亚技术有限公司
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
Priority claimed from CN201410426049.3A external-priority patent/CN104333691B/en
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2016029822A1 publication Critical patent/WO2016029822A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • This paper relates to the field of satellite track processing technology, and in particular to a star track shooting processing method and device.
  • the technical problem to be solved by the present invention is to provide a shooting method and apparatus for solving the problem that the related art star track takes a long time and helps the photographer to shoot a complete star track image in a short time. .
  • a method for processing a star track photograph comprising the following steps:
  • the center of the star track of the current shooting is calculated according to any segment of the star track in the composite image
  • the step of calculating the center of the star track of the current shooting according to any segment of the star track in the composite image includes:
  • the step of extending each segment of the star-track arc in the composite image around the center of the circle to obtain a complete star-track rendering includes:
  • Each segment of the star track in the composite image is extended around the center of the star in the star track region.
  • the step of identifying the star track zone and the non-star track zone in the composite image includes:
  • the pixel point is a pixel point of the star track area, otherwise, the pixel point is determined to be a pixel point of the non-star track area.
  • the step of identifying the star track zone and the non-star track zone in the composite image includes:
  • the C step includes:
  • step C1 determining that the first pixel and the last pixel in each row are abrupt pixels, and The first pixel begins to perform step C2;
  • step C2 sequentially calculating an absolute value of a luminance difference between adjacent pixel points, and determining whether an absolute value of a luminance difference between the current pixel point and a subsequent adjacent pixel point exceeds a first preset threshold, and if so, Perform step C3;
  • the method further includes:
  • step S1 includes:
  • the user determines whether to enable the quick shooting mode and set the shooting time of the fast shooting mode according to actual needs.
  • step S2 includes:
  • the timer is turned on at the beginning of shooting
  • a photographing apparatus comprising a center determining unit and a processing unit, wherein:
  • the center determining unit is configured to: after the end of the star track shooting, calculate the center of the star track of the current shooting according to any segment of the star track in the composite image;
  • the processing unit is configured to: surround each segment of the star track arc in the composite image The center of the meta-calculation is extended to obtain a complete star-track rendering.
  • the center determining unit is configured to calculate the center of the star track of the current shooting according to any segment of the star track in the composite image as follows:
  • the processing unit is configured to extend each segment of the star-track arc in the composite image around the center of the circle to obtain a complete star-track rendering:
  • Each segment of the star track in the composite image is extended around the center of the star in the star track region.
  • the processing unit is configured to identify the star track zone and the non-star track zone in the composite image as follows:
  • the processing unit is configured to identify the star track zone and the non-star track zone in the composite image as follows:
  • the change of the brightness value in each row of pixels is found to be super a sudden pixel point of the first preset threshold
  • the processing unit is configured to: according to the obtained brightness value of each pixel point, find a sudden pixel point in which the change of the brightness value in each row of pixels exceeds the first preset threshold:
  • step C1 determining that the first pixel and the last pixel in each row are abrupt pixels, and performing step C2 from the first pixel;
  • step C2 sequentially calculating an absolute value of a luminance difference between adjacent pixel points, and determining whether an absolute value of a luminance difference between the current pixel point and a subsequent adjacent pixel point exceeds a first preset threshold, and if so, Perform step C3;
  • the device further includes a detecting unit and a control unit, wherein
  • the detecting unit is configured to: detect whether to enable the fast shooting mode when entering the star track shooting mode;
  • the control unit is configured to: when the detecting unit detects that the quick shooting mode is turned on, control the shooting device to end the star track shooting when the shooting is performed to a preset time.
  • the device further includes a setting unit, wherein
  • the setting unit is configured to: determine whether to enable the fast shooting mode according to actual needs, and set the shooting time of the fast shooting mode by setting the function button of the fast shooting mode to be turned on.
  • control unit is configured to control the photographing device to end the star track shooting when the detecting unit detects that the fast shooting mode is turned on when the detecting unit reaches a preset time as follows:
  • the timer When the quick shooting mode is turned on, the timer is turned on at the start of shooting, and it is judged whether the timer has reached the preset time, and the shooting is stopped when the timer counts up to the preset time.
  • a computer program comprising program instructions that, when executed by a computer, cause the computer to perform any of the above-described methods of star-tracking processing.
  • a method and device for processing a star track of the technical solution of the present invention can determine the center of the star track of the current shooting only according to the star track arc of any star track arc when shooting the star track, and then The star-track arcs in the composite image extend around the center of the circle to obtain a complete star-track rendering, thus enabling the photographer to capture a complete star-track image in a shorter period of time. And when each segment of the star-track arc in the composite image is extended around the center of the circle, the star-track region and the non-star-track region in the composite image may be distinguished, and the arcs of each segment of the star track are extended only in the star-track region. The resulting star-track renderings are more in line with the actual shooting results.
  • FIG. 1 is a schematic block diagram of a camera device according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for photographing according to an embodiment of the present invention.
  • FIG. 3 is a flow chart of step S201 of Figure 2;
  • FIG. 4 is a schematic diagram of an implementation method of step S201 in FIG. 2;
  • FIG. 5 is a flow chart of a method 1 for identifying a star track area and a non-star track area in the composite image in the embodiment shown in FIG. 2;
  • FIG. 6 is a flow chart of a second method for identifying a star track zone and a non-star track zone in the composite image in the embodiment shown in FIG. 2.
  • an embodiment of the present invention provides a photographing apparatus.
  • the photographing apparatus includes a detecting unit 101, a control unit 102, a center determining unit 103, and a processing unit 104.
  • the camera collects an image every preset time; determines whether the brightness of the pixel in the current image at the same position is greater than the brightness of the pixel in the image obtained in the past; if so, the The pixels in the same position in the image are replaced with the pixels in the current image, and the synthesis of the star track image is performed accordingly.
  • the star track in the complete star-track image is composed of multiple concentric circles around the same center.
  • the detecting unit 101 is configured to detect whether the fast shooting mode is turned on when entering the star track shooting mode.
  • the device further includes a setting unit (not shown), wherein the setting unit is configured to: determine whether to enable the fast shooting mode according to actual needs, and set the fast shooting mode by setting the quick shooting mode function entry to be turned on. filming time.
  • the control unit 102 is configured to: when the detecting unit 101 detects that the quick shooting mode is turned on, control the shooting device to end the star track shooting when the shooting is performed to a preset time.
  • control unit 102 can implement control of the shooting time by a timer. At this time, the control unit 102 is further configured to: when the fast shooting mode is turned on, turn on the timer at the start of shooting, and determine whether the timing of the timer reaches a preset time, and set to: the timing of the timer is reached. Shooting stops at a preset time.
  • the center determining unit 103 is configured to: after the end of the star track shooting, calculate the center of the star track of the current shooting according to any of the star track arcs in the composite image.
  • the method for determining, by the processing unit 104, the center of the star track of the current shooting according to the star track in the composite image is as shown in FIG. 4, and the details are as follows:
  • the processing unit 104 is configured to: extend each segment of the star track arc in the center of the circle calculated by the calculating unit to obtain a complete star track rendering.
  • the processing unit 104 extends the segment of the star track in the composite image to obtain a complete star track rendering image, and is further configured to: identify the star track region and the non-star track region in the composite image, and Each segment of the star track in the composite image is extended around the center of the star in the star track region.
  • the processing unit 104 can identify the star track zone and the non-star track zone by two methods.
  • Obtaining a range of brightness values of the pixels in the star track area and scanning the pixels in the star track image row by row, obtaining brightness values of each pixel point, and determining whether the brightness value of each pixel point is in the Within the range of the brightness value, and configured to: determine that the pixel point is a pixel point of the star track area when it is determined that the size of the brightness value of each pixel point is within the brightness value range; otherwise, determining the Pixels are pixels of a non-star track area.
  • the processing unit 104 is further configured to: determine, by performing the following steps, a pixel point in the non-star-track region of the captured star-track image: A, obtain a range of brightness values of the pixel points of the star-track region; B, and the star track The pixel points in the image are scanned row by row to obtain the brightness value of each pixel point; C. According to the obtained brightness value of each pixel point, the mutation of the brightness value in each row of pixel points exceeds the first preset threshold value.
  • D determining that the magnitude of the luminance value between adjacent abrupt pixel points of each row exceeds the number of pixels of the luminance value range and all pixel points between the adjacent abrupt pixel points Whether the percentage of the quantity is greater than a preset second threshold value, and if so, determining that the pixel point between the adjacent abrupt pixel points is a pixel point of the non-star-track area, otherwise determining the adjacent mutant image
  • the pixel between the prime points is the pixel of the star track area.
  • pixels A1-A100 there are 100 pixels between pixels A1-A100, and the brightness value of 10 pixels (A5, A12, A15, ...) exceeds the brightness value range, the percentage is 10%, which is less than the second threshold, then A1 is judged.
  • -A100 is the star track area;
  • B1-B100 There are 100 pixels between the pixels B1-B100, and the brightness value of 70 pixels exceeds the brightness value range, and the percentage is 70%. If the value is greater than the second threshold, it is judged that B1-B100 is a non-star track area.
  • the processing unit 104 is further configured to: according to the obtained brightness value of each pixel point, find a sudden pixel point in which the change of the brightness value in each row of pixels exceeds the first preset threshold. : C1, determining that the first pixel and the last pixel in each row are abrupt pixels, and performing step C2 from the first pixel; C2, sequentially calculating brightness between adjacent pixels An absolute value of the difference, and determining whether an absolute value of a luminance difference between the current pixel point and a subsequent adjacent pixel point exceeds a first preset threshold, and if yes, performing step C3; C3, sequentially calculating the current pixel point and The absolute value of the brightness difference of the subsequent pixel points, and determines whether the current pixel point is the last pixel point, and if so, stops the calculation, if otherwise, until another pixel point whose absolute value of the brightness difference is less than the first preset threshold value is found And determining whether the number of N pixel points spaced between the other pixel point and the current
  • a row of pixels C1-C100 determine C1, C100 as abrupt pixel points
  • the processing unit 104 when it extends the star track in the composite image around the center of the star track, it may extend from one end of the arc or simultaneously from both ends of the arc. Extend; you can also copy the arc of the segment of the star track first, and then repeatedly paste the arc on the circumference of the segment of the star track to make it more realistic.
  • the processing unit 104 may also scan the pixels in the star track image row by row and read the brightness values of the pixels with the same distance.
  • the first preset threshold, the second preset threshold, and the range of brightness values of the satellite track pixels can be obtained based on experimental data.
  • the range of brightness values of the pixels in the star track area can also be obtained by statistically counting the brightness values of the pixels in the first row of the star track image during scanning.
  • the device can also set a display unit, which is set to: display a complete star track rendering.
  • the photographing device of the embodiment can turn on the fast shooting mode when performing the star track shooting, and when the fast shooting mode is turned on, the shooting can be stopped only by shooting the preset time, and then the composite image when the shooting is stopped is acquired. Determining the center of the star track of the current shooting according to the star track arc in the composite image, and then extending the arc of each star track in the composite image around the center of the circle to obtain a complete star track rendering image, thereby enabling The photographer takes a complete star track image in a short period of time.
  • the star-track region and the non-star-track region in the composite image may be distinguished, and the arcs of each segment of the star track are extended only in the star-track region.
  • the resulting star-track renderings are more in line with the actual shooting results.
  • an embodiment of the present invention provides a shooting method.
  • the method process includes:
  • the steps include:
  • the star track area and the non-star track area in the composite image may also be identified; and each segment of the star track in the composite image is extended around the center of the star track area.
  • identifying the star-track region and the non-star-track region in the composite image can be implemented in two ways.
  • method one includes:
  • S402. Perform a row-by-row scan on the pixel points in the image of the star track to obtain a brightness value of each pixel point.
  • Method 2 includes:
  • pixels A1-A100 there are 100 pixels between pixels A1-A100, and the brightness value of 10 pixels (A5, A12, A15, ...) exceeds the brightness value range, the percentage is 10%, which is less than the second threshold, then A1 is judged.
  • -A100 is the star track area;
  • B1-B100 There are 100 pixels between pixels B1-B100, and 70 of them have brightness values exceeding The brightness value range, the percentage is 70%, and is greater than the second threshold, then it is determined that B1-B100 is a non-satellite track area.
  • step C includes the following steps C1-C3.
  • step C1 determining that the first pixel and the last pixel in each row are abrupt pixels, and performing step C2 from the first pixel;
  • step C2 sequentially calculating an absolute value of a luminance difference between adjacent pixel points, and determining whether an absolute value of a luminance difference between the current pixel point and a subsequent adjacent pixel point exceeds a first preset threshold, and if so, Perform step C3;
  • a row of pixels C1-C100 determine C1, C100 as abrupt pixel points
  • the embodiment may further include the following steps:
  • the fast shooting mode function entry can be turned on by setting, and the user determines whether to enable the fast shooting mode according to actual needs, and set the shooting time of the fast shooting mode.
  • the step includes:
  • the timer is turned on at the beginning of shooting
  • the related art utilizes a digital camera (especially a mobile terminal) to take a star track
  • multiple images are taken in a long time multiple exposure mode, and the current captured image and the previous image are taken during the shooting process.
  • the synthesis process is performed so that when the shooting is completed, the synthesized star track image can be directly obtained. Therefore, when the shooting is stopped in this embodiment, the current composite image is acquired as the image after the last image captured and the previous image (ie, the previous composite image).
  • the fast shooting mode can be turned on when the star track is taken, and when the fast shooting mode is turned on, the shooting can be stopped only by shooting the preset time, and then the composite image when the shooting is stopped is acquired. Determining the center of the star track of the current shooting according to the star track arc in the composite image, and then extending the arc of each star track in the composite image around the center of the circle to obtain a complete star track rendering image, thereby enabling The photographer takes a complete star track image in a short period of time.
  • the star-track region and the non-star-track region in the composite image may be distinguished, and the arcs of each segment of the star track are extended only in the star-track region.
  • the resulting star-track renderings are more in line with the actual shooting results.
  • the embodiment of the invention also discloses a computer program, comprising program instructions, which when executed by a computer, enable the computer to execute any of the above-mentioned star track shooting processing methods.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • a method and device for processing a star track of the technical solution of the present invention can determine the center of the star track of the current shooting only according to the star track arc of any star track arc when shooting the star track, and then The star-track arcs in the composite image extend around the center of the circle to obtain a complete star-track rendering, thus enabling the photographer to capture a complete star-track image in a shorter period of time. And when each segment of the star-track arc in the composite image is extended around the center of the circle, the star-track region and the non-star-track region in the composite image may be distinguished, and the arcs of each segment of the star track are extended only in the star-track region. The resulting star-track renderings are more in line with the actual shooting results. Therefore, the present invention has strong industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)

Abstract

A star trail shooting processing method and device. The method comprises: after star trail shooting is completed, calculating a centre of a circle of a star trail shot this time according to any section of a star trail arc in a synthetic image; and extending, around the centre of a circle, each section of the star trail arc in the synthetic image to acquire a complete star trail effect picture. By means of the method and device in the technical solution of the present invention, a photographer can shoot a complete star trail image in a relatively short time, thereby shortening the shooting time.

Description

一种星轨拍摄处理方法及装置Star track shooting processing method and device 技术领域Technical field
本文涉及星轨拍摄处理技术领域,尤其涉及一种星轨拍摄处理方法及装置。This paper relates to the field of satellite track processing technology, and in particular to a star track shooting processing method and device.
背景技术Background technique
随着数字成像技术的发展,拍摄者可以实现对各种场景的拍摄,其中星轨图像更是摄影爱好者必拍的夜景图。但是,在拍摄星轨时,如果要拍摄到完整的星轨图片,则需要长时间进行拍摄,而对于大部分的拍摄者,特别是业余拍摄者,难以抽出专门的时间进行星轨拍摄。因此,有必要提供一种拍摄方法及装置,以帮助拍摄者在较短的时间内拍摄出完整的星轨图像。With the development of digital imaging technology, photographers can shoot a variety of scenes, and the star track image is a night view of the photographer. However, when shooting a star track, if you want to capture a complete star track picture, it takes a long time to shoot, and for most photographers, especially amateur photographers, it is difficult to take special time for star track shooting. Therefore, it is necessary to provide a shooting method and apparatus to help the photographer to take a complete star-track image in a short period of time.
发明内容Summary of the invention
有鉴于此,本发明要解决的技术问题是提供一种拍摄方法及装置,以解决相关技术星轨拍摄耗时较长,帮助拍摄者在较短的时间内拍摄出完整的星轨图像的问题。In view of this, the technical problem to be solved by the present invention is to provide a shooting method and apparatus for solving the problem that the related art star track takes a long time and helps the photographer to shoot a complete star track image in a short time. .
本发明解决上述技术问题,所采用的技术方案如下:The present invention solves the above technical problems, and the technical solutions adopted are as follows:
一种星轨拍摄处理方法,包括如下步骤:A method for processing a star track photograph, comprising the following steps:
星轨拍摄结束后,根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心;After the star track is finished, the center of the star track of the current shooting is calculated according to any segment of the star track in the composite image;
将所述合成图像中各段星轨弧线围绕所述圆心进行延伸,获取完整的星轨效果图。Extending each segment of the star-track arc in the composite image around the center of the circle to obtain a complete star-track rendering.
可选地,所述星轨拍摄结束后,根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心的步骤包括:Optionally, after the star track is finished, the step of calculating the center of the star track of the current shooting according to any segment of the star track in the composite image includes:
提取所述任一段星轨弧线上的两点;Extracting two points on the arc of any of the segments of the star;
计算以所述两点为端点的直线的中点,并确认通过所述中点且垂直于所 述直线的垂线;Calculating the midpoint of the line with the two points as the endpoint, and confirming through the midpoint and perpendicular to the The vertical line of the line;
确定所述垂线与所述任一段星轨弧线的交点;Determining an intersection of the perpendicular to the arc of any of the segments;
将所述两点与圆心位于所述垂线上的圆周进行匹配,查找通过所述两点及所述交点的圆周,并确定所述圆周为所述任一段星轨弧线的轨迹,所述圆周的圆心为本次拍摄的星轨的圆心。Matching the two points with a circumference on which the center of the circle is located, finding a circle passing through the two points and the intersection, and determining that the circumference is a trajectory of any of the segments of the star track, The center of the circle is the center of the star track for this shot.
可选地,所述将所述合成图像中各段星轨弧线围绕所述圆心进行延伸,获取完整的星轨效果图的步骤包括:Optionally, the step of extending each segment of the star-track arc in the composite image around the center of the circle to obtain a complete star-track rendering includes:
识别所述合成图像中的星轨区与非星轨区;Identifying a star track zone and a non-star track zone in the composite image;
将所述合成图像中各段星轨弧线围绕所述圆心在星轨区进行延伸。Each segment of the star track in the composite image is extended around the center of the star in the star track region.
可选地,所述识别所述合成图像中的星轨区与非星轨区的步骤包括:Optionally, the step of identifying the star track zone and the non-star track zone in the composite image includes:
获取星轨区像素点的亮度值范围;Obtain a range of luminance values of pixels in the star track area;
对所述星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;Performing a row-by-row scan on the pixel points in the star-track image to obtain a brightness value of each pixel point;
判断每个像素点的亮度值的大小是否在所述亮度值范围之内;Determining whether the magnitude of the luminance value of each pixel is within the range of the luminance value;
若是,则确定所述像素点为星轨区域的像素点,否则,确定所述像素点为非星轨区域的像素点。If yes, it is determined that the pixel point is a pixel point of the star track area, otherwise, the pixel point is determined to be a pixel point of the non-star track area.
可选地,所述识别所述合成图像中的星轨区与非星轨区的步骤包括:Optionally, the step of identifying the star track zone and the non-star track zone in the composite image includes:
A、获取星轨区像素点的亮度值范围;A. Obtain a range of brightness values of pixels in the star track area;
B、对所述星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;B. Scan the pixels in the star track image row by row to obtain the brightness value of each pixel point;
C、根据获取的各像素点的亮度值,查找每一排像素点中亮度值的变化超出第一预设阀值的突变像素点;C. Find, according to the obtained brightness value of each pixel point, a sudden pixel point in which the change of the brightness value in each row of pixels exceeds the first preset threshold;
D、判断每一排的相邻的突变像素点之间的亮度值的大小超出所述亮度值范围的像素点的数量与所述相邻的突变像素点之间的所有像素点的数量的百分比是否大于预设的第二阀值,若是,判断所述相邻的突变像素点之间的像素点为非星轨区域的像素点,否则判断所述相邻的突变像素点之间的像素点为星轨区域的像素点。D. determining that the size of the luminance value between adjacent abrupt pixel points of each row exceeds the number of pixels of the luminance value range and the percentage of the number of all pixel points between the adjacent abrupt pixel points Whether it is greater than a preset second threshold, if yes, determining that a pixel point between the adjacent abrupt pixel points is a pixel point of a non-star-track region, otherwise determining a pixel point between the adjacent abrupt pixel points The pixel point of the star track area.
可选地,所述C步骤包括:Optionally, the C step includes:
C1、确定每一排中的第一个像素点及最后一个像素点为突变像素,并从 所述第一个像素点开始执行步骤C2;C1, determining that the first pixel and the last pixel in each row are abrupt pixels, and The first pixel begins to perform step C2;
C2、依次计算相邻的像素点之间的亮度差的绝对值,并判断该当前像素点与其后相邻像素点之间的亮度差的绝对值是否超过第一预设阀值,若是,则执行步骤C3;C2, sequentially calculating an absolute value of a luminance difference between adjacent pixel points, and determining whether an absolute value of a luminance difference between the current pixel point and a subsequent adjacent pixel point exceeds a first preset threshold, and if so, Perform step C3;
C3、依次计算该当前像素点与其后像素点的亮度差的绝对值,并判断当前像素点是否为该最后一个像素点,若是则停止计算,若否则直到找出亮度差绝对值小于该第一预设阀值的另一像素点,并且判断该另一像素点和当前像素点之间间隔的N个像素点的数量是否大于第三预设阈值,若是,确定该当前像素点和另一像素点为突变像素点,并以另一像素点作为突变像素点开始继续执行步骤C2。C3. Calculate the absolute value of the brightness difference between the current pixel point and the subsequent pixel point in turn, and determine whether the current pixel point is the last pixel point, and if so, stop the calculation, if otherwise, until the absolute value of the brightness difference is less than the first Presetting another pixel point of the threshold, and determining whether the number of N pixel points spaced between the other pixel point and the current pixel point is greater than a third predetermined threshold, and if so, determining the current pixel point and another pixel The point is the abrupt pixel point, and step C2 is continued with another pixel point as the abrupt pixel point.
可选地,所述星轨拍摄结束后,根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心的步骤之前,该方法还包括:Optionally, after the step of shooting the star track, calculating the center of the star track of the current shooting according to any segment of the star track in the composite image, the method further includes:
S1、当进入星轨拍摄模式时,检测是否开启快速拍摄模式;S1, when entering the star track shooting mode, detecting whether the fast shooting mode is turned on;
S2、若开启了快速拍摄模式,则在拍摄进行到预设的时间时停止拍摄;S2. If the fast shooting mode is turned on, the shooting is stopped when the shooting is performed to a preset time;
S3、获取当前的合成图像。S3. Acquire a current composite image.
可选地,所述步骤S1包括:Optionally, the step S1 includes:
通过设置开启快速拍摄模式功能入口,由用户根据实际需要确定是否开启快速拍摄模式,并设置快速拍摄模式的拍摄时间。By setting the function of the quick shooting mode to be turned on, the user determines whether to enable the quick shooting mode and set the shooting time of the fast shooting mode according to actual needs.
可选地,所述步骤S2包括:Optionally, the step S2 includes:
若开启了快速拍摄模式,则在拍摄开始时打开计时器;If the quick shooting mode is turned on, the timer is turned on at the beginning of shooting;
判断该计时器的计时是否达到预设的时间;Determining whether the timing of the timer reaches a preset time;
若达到预设的时间则停止拍摄。Shooting stops if the preset time is reached.
一种拍摄装置,所述装置包括圆心确定单元和处理单元,其中:A photographing apparatus comprising a center determining unit and a processing unit, wherein:
所述圆心确定单元设置成:星轨拍摄结束后,根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心;The center determining unit is configured to: after the end of the star track shooting, calculate the center of the star track of the current shooting according to any segment of the star track in the composite image;
所述处理单元设置成:将所述合成图像中各段星轨弧线围绕所述计算单 元计算的圆心进行延伸获取完整的星轨效果图。The processing unit is configured to: surround each segment of the star track arc in the composite image The center of the meta-calculation is extended to obtain a complete star-track rendering.
可选地,所述圆心确定单元设置成按照如下方式根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心:Optionally, the center determining unit is configured to calculate the center of the star track of the current shooting according to any segment of the star track in the composite image as follows:
提取所述任一段星轨弧线上的两点;Extracting two points on the arc of any of the segments of the star;
计算以所述两点为端点的直线的中点,并确认通过所述中点且垂直于所述直线的垂线;Calculating a midpoint of a straight line ending at the two points, and confirming a perpendicular line passing through the midpoint and perpendicular to the straight line;
确定所述垂线与所述任一段星轨弧线的交点;Determining an intersection of the perpendicular to the arc of any of the segments;
将所述两点与圆心位于所述垂线上的圆周进行匹配,查找通过所述两点及所述交点的圆周,并确定所述圆周为所述任一段星轨弧线的轨迹,所述圆周的圆心为本次拍摄的星轨的圆心。Matching the two points with a circumference on which the center of the circle is located, finding a circle passing through the two points and the intersection, and determining that the circumference is a trajectory of any of the segments of the star track, The center of the circle is the center of the star track for this shot.
可选地,所述处理单元设置成按照如下方式将所述合成图像中各段星轨弧线围绕所述圆心进行延伸,获取完整的星轨效果图:Optionally, the processing unit is configured to extend each segment of the star-track arc in the composite image around the center of the circle to obtain a complete star-track rendering:
识别所述合成图像中的星轨区与非星轨区;Identifying a star track zone and a non-star track zone in the composite image;
将所述合成图像中各段星轨弧线围绕所述圆心在星轨区进行延伸。Each segment of the star track in the composite image is extended around the center of the star in the star track region.
可选地,所述处理单元设置成按照如下方式识别所述合成图像中的星轨区与非星轨区:Optionally, the processing unit is configured to identify the star track zone and the non-star track zone in the composite image as follows:
获取星轨区像素点的亮度值范围;Obtain a range of luminance values of pixels in the star track area;
对所述星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;Performing a row-by-row scan on the pixel points in the star-track image to obtain a brightness value of each pixel point;
判断每个像素点的亮度值的大小是否在所述亮度值范围之内;Determining whether the magnitude of the luminance value of each pixel is within the range of the luminance value;
在判断出每个像素点的亮度值的大小在所述亮度值范围之内时,确定所述像素点为星轨区域的像素点,否则,确定所述像素点为非星轨区域的像素点。When it is determined that the size of the brightness value of each pixel is within the range of the brightness value, determining that the pixel point is a pixel point of the star track area, otherwise, determining that the pixel point is a pixel point of the non-star track area .
可选地,所述处理单元设置成按照如下方式识别所述合成图像中的星轨区与非星轨区:Optionally, the processing unit is configured to identify the star track zone and the non-star track zone in the composite image as follows:
A、获取星轨区像素点的亮度值范围;A. Obtain a range of brightness values of pixels in the star track area;
B、对所述星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;B. Scan the pixels in the star track image row by row to obtain the brightness value of each pixel point;
C、根据获取的各像素点的亮度值,查找每一排像素点中亮度值的变化超 出第一预设阀值的突变像素点;C. According to the obtained brightness value of each pixel, the change of the brightness value in each row of pixels is found to be super a sudden pixel point of the first preset threshold;
D、判断每一排的相邻的突变像素点之间的亮度值的大小超出所述亮度值范围的像素点的数量与所述相邻的突变像素点之间的所有像素点的数量的百分比是否大于预设的第二阀值,若是,判断所述相邻的突变像素点之间的像素点为非星轨区域的像素点,否则判断所述相邻的突变像素点之间的像素点为星轨区域的像素点。D. determining that the size of the luminance value between adjacent abrupt pixel points of each row exceeds the number of pixels of the luminance value range and the percentage of the number of all pixel points between the adjacent abrupt pixel points Whether it is greater than a preset second threshold, if yes, determining that a pixel point between the adjacent abrupt pixel points is a pixel point of a non-star-track region, otherwise determining a pixel point between the adjacent abrupt pixel points The pixel point of the star track area.
可选地,所述处理单元设置成按照如下方式根据获取的各像素点的亮度值,查找每一排像素点中亮度值的变化超出第一预设阀值的突变像素点:Optionally, the processing unit is configured to: according to the obtained brightness value of each pixel point, find a sudden pixel point in which the change of the brightness value in each row of pixels exceeds the first preset threshold:
C1、确定每一排中的第一个像素点及最后一个像素点为突变像素,并从所述第一个像素点开始执行步骤C2;C1, determining that the first pixel and the last pixel in each row are abrupt pixels, and performing step C2 from the first pixel;
C2、依次计算相邻的像素点之间的亮度差的绝对值,并判断该当前像素点与其后相邻像素点之间的亮度差的绝对值是否超过第一预设阀值,若是,则执行步骤C3;C2, sequentially calculating an absolute value of a luminance difference between adjacent pixel points, and determining whether an absolute value of a luminance difference between the current pixel point and a subsequent adjacent pixel point exceeds a first preset threshold, and if so, Perform step C3;
C3、依次计算该当前像素点与其后像素点的亮度差的绝对值,并判断当前像素点是否为该最后一个像素点,若是则停止计算,若否则直到找出亮度差绝对值小于该第一预设阀值的另一像素点,并且判断该另一像素点和当前像素点之间间隔的N个像素点的数量是否大于第三预设阈值,若是,确定该当前像素点和另一像素点为突变像素点,并以另一像素点作为突变像素点开始继续执行步骤C2。C3. Calculate the absolute value of the brightness difference between the current pixel point and the subsequent pixel point in turn, and determine whether the current pixel point is the last pixel point, and if so, stop the calculation, if otherwise, until the absolute value of the brightness difference is less than the first Presetting another pixel point of the threshold, and determining whether the number of N pixel points spaced between the other pixel point and the current pixel point is greater than a third predetermined threshold, and if so, determining the current pixel point and another pixel The point is the abrupt pixel point, and step C2 is continued with another pixel point as the abrupt pixel point.
可选地,该装置还包括检测单元和控制单元,其中Optionally, the device further includes a detecting unit and a control unit, wherein
所述检测单元设置成:在进入星轨拍摄模式时,检测是否开启快速拍摄模式;The detecting unit is configured to: detect whether to enable the fast shooting mode when entering the star track shooting mode;
所述控制单元设置成:在该检测单元检测到开启了快速拍摄模式时,在拍摄进行到预设的时间时控制该拍摄装置结束星轨拍摄。The control unit is configured to: when the detecting unit detects that the quick shooting mode is turned on, control the shooting device to end the star track shooting when the shooting is performed to a preset time.
可选地,该装置还包括设置单元,其中Optionally, the device further includes a setting unit, wherein
所述设置单元设置成:通过设置开启快速拍摄模式功能入口,由用户根据实际需要确定是否开启快速拍摄模式,并设置快速拍摄模式的拍摄时间。 The setting unit is configured to: determine whether to enable the fast shooting mode according to actual needs, and set the shooting time of the fast shooting mode by setting the function button of the fast shooting mode to be turned on.
可选地,所述控制单元设置成按照如下方式在该检测单元检测到开启了快速拍摄模式时,在拍摄进行到预设的时间时控制该拍摄装置结束星轨拍摄:Optionally, the control unit is configured to control the photographing device to end the star track shooting when the detecting unit detects that the fast shooting mode is turned on when the detecting unit reaches a preset time as follows:
在开启了快速拍摄模式时,在拍摄开始时打开计时器,并判断该计时器的计时是否达到预设的时间,在计时器的计时达到预设的时间时停止拍摄。When the quick shooting mode is turned on, the timer is turned on at the start of shooting, and it is judged whether the timer has reached the preset time, and the shooting is stopped when the timer counts up to the preset time.
一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的星轨拍摄处理方法。A computer program comprising program instructions that, when executed by a computer, cause the computer to perform any of the above-described methods of star-tracking processing.
一种载有所述的计算机程序的载体。A carrier carrying the computer program as described.
本发明技术方案的一种星轨拍摄处理方法及装置,能够在进行星轨拍摄时仅根据拍摄获取任一段星轨弧线的星轨弧线确定本次拍摄的星轨的圆心,然后将该合成图像中各段星轨弧线围绕该圆心进行延伸,便可获取完整的星轨效果图,因此能够使拍摄者在较短的时间内拍摄出完整的星轨图像。并且在将该合成图像中各段星轨弧线围绕该圆心进行延伸时,还可以对合成图像中的星轨区和非星轨区进行区分,并且仅在星轨区对各段星轨弧线进行延伸,使得最终获得的星轨效果图更加符合实际拍摄的效果。A method and device for processing a star track of the technical solution of the present invention can determine the center of the star track of the current shooting only according to the star track arc of any star track arc when shooting the star track, and then The star-track arcs in the composite image extend around the center of the circle to obtain a complete star-track rendering, thus enabling the photographer to capture a complete star-track image in a shorter period of time. And when each segment of the star-track arc in the composite image is extended around the center of the circle, the star-track region and the non-star-track region in the composite image may be distinguished, and the arcs of each segment of the star track are extended only in the star-track region. The resulting star-track renderings are more in line with the actual shooting results.
附图概述BRIEF abstract
图1为本发明实施例提供的一种拍摄装置的模块示意图;1 is a schematic block diagram of a camera device according to an embodiment of the present invention;
图2为本发明实施例提供的一种拍摄方法的方法流程图;2 is a flowchart of a method for photographing according to an embodiment of the present invention;
图3为图2中步骤S201的流程图;Figure 3 is a flow chart of step S201 of Figure 2;
图4为图2中步骤S201的实现方法示意图;4 is a schematic diagram of an implementation method of step S201 in FIG. 2;
图5为图2所示实施例中识别该合成图像中的星轨区与非星轨区的方法一的流程图;5 is a flow chart of a method 1 for identifying a star track area and a non-star track area in the composite image in the embodiment shown in FIG. 2;
图6为图2所示实施例中识别该合成图像中的星轨区与非星轨区的方法二的流程图。 6 is a flow chart of a second method for identifying a star track zone and a non-star track zone in the composite image in the embodiment shown in FIG. 2.
本发明的较佳实施方式Preferred embodiment of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
以下结合附图和实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
请参阅图1,本发明实施例提供了一种拍摄装置。该拍摄装置包括:检测单元101、控制单元102、圆心确定单元103及处理单元104。Referring to FIG. 1 , an embodiment of the present invention provides a photographing apparatus. The photographing apparatus includes a detecting unit 101, a control unit 102, a center determining unit 103, and a processing unit 104.
实际应用中,星轨拍摄开始后,摄像头每隔预设时间采集一张图像;判断同一位置当前的图像中的像素的亮度是否大于过去获得的图像中的像素的亮度;若是,则该将过去的图像中同一位置的像素替换为当前的图像中的像素,据此进行星轨图像的合成。而完整的星轨图像中的星轨是由多个绕同一圆心的同心圆构成。In practical applications, after the start of the star track shooting, the camera collects an image every preset time; determines whether the brightness of the pixel in the current image at the same position is greater than the brightness of the pixel in the image obtained in the past; if so, the The pixels in the same position in the image are replaced with the pixels in the current image, and the synthesis of the star track image is performed accordingly. The star track in the complete star-track image is composed of multiple concentric circles around the same center.
检测单元101,设置成:在进入星轨拍摄模式时,检测是否开启快速拍摄模式。The detecting unit 101 is configured to detect whether the fast shooting mode is turned on when entering the star track shooting mode.
该装置还包括设置单元(图中未示出),其中,所述设置单元设置成:通过设置开启快速拍摄模式功能入口,由用户根据实际需要确定是否开启快速拍摄模式,并设置快速拍摄模式的拍摄时间。The device further includes a setting unit (not shown), wherein the setting unit is configured to: determine whether to enable the fast shooting mode according to actual needs, and set the fast shooting mode by setting the quick shooting mode function entry to be turned on. filming time.
控制单元102,设置成:在该检测单元101检测到开启了快速拍摄模式时,在拍摄进行到预设的时间时控制该拍摄装置结束星轨拍摄。The control unit 102 is configured to: when the detecting unit 101 detects that the quick shooting mode is turned on, control the shooting device to end the star track shooting when the shooting is performed to a preset time.
可选地,控制单元102可通过计时器实现对拍摄时间的控制。此时控制单元102,还设置成:在开启了快速拍摄模式时,在拍摄开始时打开计时器,并判断该计时器的计时是否达到预设的时间,以及设置成:在计时器的计时达到预设的时间时停止拍摄。Alternatively, the control unit 102 can implement control of the shooting time by a timer. At this time, the control unit 102 is further configured to: when the fast shooting mode is turned on, turn on the timer at the start of shooting, and determine whether the timing of the timer reaches a preset time, and set to: the timing of the timer is reached. Shooting stops at a preset time.
圆心确定单元103,设置成:在星轨拍摄结束后,根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心。The center determining unit 103 is configured to: after the end of the star track shooting, calculate the center of the star track of the current shooting according to any of the star track arcs in the composite image.
可选地,处理单元104根据该合成图像中的星轨弧线确定本次拍摄的星轨的圆心的方法如图4所示,具体如下: Optionally, the method for determining, by the processing unit 104, the center of the star track of the current shooting according to the star track in the composite image is as shown in FIG. 4, and the details are as follows:
提取所述任一段星轨弧线上的两点A和B,计算以所述两点A和B为端点的直线a的中点C,并确认通过所述中点C且垂直于所述直线的垂线b,以及设置成:确定所述垂线b与所述任一段星轨弧线的交点D,将所述两点A和B与圆心位于所述垂线上的圆周进行匹配,查找通过所述两点A和B及所述交点D的圆周,并确定所述圆周为所述任一段星轨弧线的轨迹,所述圆周的圆心E为本次拍摄的星轨的圆心。Extracting two points A and B on the arc of any one of the segments, calculating a midpoint C of the straight line a with the two points A and B as end points, and confirming through the midpoint C and perpendicular to the straight line a vertical line b, and is set to: determine an intersection D of the perpendicular line b and the arc of any one of the segments, and match the two points A and B with a circle whose center is located on the vertical line, and find Through the two points A and B and the circumference of the intersection D, and determining that the circumference is the trajectory of any of the segments of the star track, the center E of the circumference is the center of the star track of the current shooting.
处理单元104,设置成:将所述合成图像中各段星轨弧线围绕所述计算单元计算的圆心进行延伸获取完整的星轨效果图。The processing unit 104 is configured to: extend each segment of the star track arc in the center of the circle calculated by the calculating unit to obtain a complete star track rendering.
可选地,处理单元104将该合成图像中各段星轨弧线围绕该圆心进行延伸获取完整的星轨效果图时,还设置成:识别该合成图像中的星轨区与非星轨区,并将该合成图像中各段星轨弧线围绕该圆心在星轨区进行延伸。Optionally, the processing unit 104 extends the segment of the star track in the composite image to obtain a complete star track rendering image, and is further configured to: identify the star track region and the non-star track region in the composite image, and Each segment of the star track in the composite image is extended around the center of the star in the star track region.
实际应用中,处理单元104可以通过两种方法对星轨区与非星轨区进行识别。In practical applications, the processing unit 104 can identify the star track zone and the non-star track zone by two methods.
方法一、method one,
获取星轨区像素点的亮度值范围,以及对所述星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值,并判断每个像素点的亮度值的大小是否在所述亮度值范围之内,以及设置成:在判断出每个像素点的亮度值的大小在所述亮度值范围之内时,确定所述像素点为星轨区域的像素点,否则,确定所述像素点为非星轨区域的像素点。Obtaining a range of brightness values of the pixels in the star track area, and scanning the pixels in the star track image row by row, obtaining brightness values of each pixel point, and determining whether the brightness value of each pixel point is in the Within the range of the brightness value, and configured to: determine that the pixel point is a pixel point of the star track area when it is determined that the size of the brightness value of each pixel point is within the brightness value range; otherwise, determining the Pixels are pixels of a non-star track area.
方法二、Method Two,
处理单元104处理单元,还设置成:通过执行如下步骤确定拍摄的星轨图像中位于非星轨区域的像素点:A、获取星轨区像素点的亮度值范围;B、对所述星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;C、根据获取的各像素点的亮度值,查找每一排像素点中亮度值的变化超出第一预设阀值的突变像素点;D、判断每一排的相邻的突变像素点之间的亮度值的大小超出所述亮度值范围的像素点的数量与所述相邻的突变像素点之间的所有像素点的数量的百分比是否大于预设的第二阀值,若是,判断所述相邻的突变像素点之间的像素点为非星轨区域的像素点,否则判断所述相邻的突变像 素点之间的像素点为星轨区域的像素点。The processing unit 104 is further configured to: determine, by performing the following steps, a pixel point in the non-star-track region of the captured star-track image: A, obtain a range of brightness values of the pixel points of the star-track region; B, and the star track The pixel points in the image are scanned row by row to obtain the brightness value of each pixel point; C. According to the obtained brightness value of each pixel point, the mutation of the brightness value in each row of pixel points exceeds the first preset threshold value. a pixel; D, determining that the magnitude of the luminance value between adjacent abrupt pixel points of each row exceeds the number of pixels of the luminance value range and all pixel points between the adjacent abrupt pixel points Whether the percentage of the quantity is greater than a preset second threshold value, and if so, determining that the pixel point between the adjacent abrupt pixel points is a pixel point of the non-star-track area, otherwise determining the adjacent mutant image The pixel between the prime points is the pixel of the star track area.
如:像素A1-A100,之间有100个像素,其中有10个像素(A5、A12、A15……)的亮度值大小超出亮度值范围,百分比为10%,小于第二阈值,则判断A1-A100为星轨区;For example, there are 100 pixels between pixels A1-A100, and the brightness value of 10 pixels (A5, A12, A15, ...) exceeds the brightness value range, the percentage is 10%, which is less than the second threshold, then A1 is judged. -A100 is the star track area;
像素B1-B100,之间有100个像素,其中有70个像素的亮度值大小超出亮度值范围,百分比为70%,大于第二阈值,则判断B1-B100为非星轨区。There are 100 pixels between the pixels B1-B100, and the brightness value of 70 pixels exceeds the brightness value range, and the percentage is 70%. If the value is greater than the second threshold, it is judged that B1-B100 is a non-star track area.
在执行C步骤时,处理单元104还设置成:通过执行如下步骤实现根据获取的各像素点的亮度值,查找每一排像素点中亮度值的变化超出第一预设阀值的突变像素点:C1、确定每一排中的第一个像素点及最后一个像素点为突变像素,并从所述第一个像素点开始执行步骤C2;C2、依次计算相邻的像素点之间的亮度差的绝对值,并判断该当前像素点与其后相邻像素点之间的亮度差的绝对值是否超过第一预设阀值,若是,则执行步骤C3;C3、依次计算该当前像素点与其后像素点的亮度差的绝对值,并判断当前像素点是否为该最后一个像素点,若是则停止计算,若否则直到找出亮度差绝对值小于该第一预设阀值的另一像素点,并且判断该另一像素点和当前像素点之间间隔的N个像素点的数量是否大于第三预设阈值,若是,确定该当前像素点和另一像素点为突变像素点,并以另一像素点作为突变像素点开始继续执行步骤C2。When the step C is performed, the processing unit 104 is further configured to: according to the obtained brightness value of each pixel point, find a sudden pixel point in which the change of the brightness value in each row of pixels exceeds the first preset threshold. : C1, determining that the first pixel and the last pixel in each row are abrupt pixels, and performing step C2 from the first pixel; C2, sequentially calculating brightness between adjacent pixels An absolute value of the difference, and determining whether an absolute value of a luminance difference between the current pixel point and a subsequent adjacent pixel point exceeds a first preset threshold, and if yes, performing step C3; C3, sequentially calculating the current pixel point and The absolute value of the brightness difference of the subsequent pixel points, and determines whether the current pixel point is the last pixel point, and if so, stops the calculation, if otherwise, until another pixel point whose absolute value of the brightness difference is less than the first preset threshold value is found And determining whether the number of N pixel points spaced between the other pixel point and the current pixel point is greater than a third predetermined threshold, and if so, determining that the current pixel point and another pixel point are abrupt pixels And another pixel to pixel as a mutation execution continues in step C2.
如:一排像素C1-C100,确定C1、C100为突变像素点,For example, a row of pixels C1-C100, determine C1, C100 as abrupt pixel points,
从C1开始依次计算C1和C2之间的亮度差的绝对值,C2和C3之间的亮度差的绝对值……并计算上述亮度差的绝对值是否超过第一预设阀值,例如C11和C12之间的亮度差的绝对值超过第一预设阀值,Calculate the absolute value of the luminance difference between C1 and C2, the absolute value of the luminance difference between C2 and C3, and calculate whether the absolute value of the above luminance difference exceeds the first preset threshold, such as C11 and The absolute value of the difference in luminance between C12 exceeds the first preset threshold.
依次计算C11和C12、C11和C13、C11和C14……之间亮度差的绝对值,并计算上述亮度差的绝对值是否小于第一预设阀值,例如C11和C36之间亮度差的绝对值小于第一预设阀值,且C11和C36之间间隔25个像素,大于第三预设阈值,则确定C11和C36为突变像素点。Calculate the absolute value of the luminance difference between C11 and C12, C11 and C13, C11 and C14... in order, and calculate whether the absolute value of the above luminance difference is smaller than the first preset threshold, for example, the absolute difference between the luminance difference between C11 and C36 The value is less than the first preset threshold, and the interval between C11 and C36 is 25 pixels, which is greater than the third preset threshold, and it is determined that C11 and C36 are abrupt pixel points.
可选地,在处理单元104将该合成图像中的星轨弧线围绕该圆心在星轨区进行延伸时,可以从该弧线的一端进行延伸或者从该弧线的两端同时进行 延伸;也可以首先复制该段星轨的弧线,然后在该段星轨弧线所在的圆周上将该弧线重复粘贴,以使其更加符合实际的拍摄效果。Optionally, when the processing unit 104 extends the star track in the composite image around the center of the star track, it may extend from one end of the arc or simultaneously from both ends of the arc. Extend; you can also copy the arc of the segment of the star track first, and then repeatedly paste the arc on the circumference of the segment of the star track to make it more realistic.
实际应用中,处理单元104还可以对该星轨图像中的像素点进行逐排扫描,并读取间隔距离相同的像素点的亮度值。第一预设阀值、第二预设阀值及星轨区像素点的亮度值范围,可以根据实验数据获取。其中星轨区像素点的亮度值范围,还可以在扫描时,通过对星轨图像中第1排的像素点的亮度值进行统计计数获取。In practical applications, the processing unit 104 may also scan the pixels in the star track image row by row and read the brightness values of the pixels with the same distance. The first preset threshold, the second preset threshold, and the range of brightness values of the satellite track pixels can be obtained based on experimental data. The range of brightness values of the pixels in the star track area can also be obtained by statistically counting the brightness values of the pixels in the first row of the star track image during scanning.
实际应用中,该装置还可以设置显示单元,设置成:显示完整的星轨效果图。In practical applications, the device can also set a display unit, which is set to: display a complete star track rendering.
本实施例的一种拍摄装置,能够在进行星轨拍摄时开启快速拍摄模式,并在开启了快速拍摄模式时,仅需拍摄预设的时间就可停止拍摄,然后获取停止拍摄时的合成图像,根据该合成图像中的星轨弧线确定本次拍摄的星轨的圆心,然后将该合成图像中各段星轨弧线围绕该圆心进行延伸,便可获取完整的星轨效果图,因此能够使拍摄者在较短的时间内拍摄出完整的星轨图像。并且在将该合成图像中各段星轨弧线围绕该圆心进行延伸时,还可以对合成图像中的星轨区和非星轨区进行区分,并且仅在星轨区对各段星轨弧线进行延伸,使得最终获得的星轨效果图更加符合实际拍摄的效果。The photographing device of the embodiment can turn on the fast shooting mode when performing the star track shooting, and when the fast shooting mode is turned on, the shooting can be stopped only by shooting the preset time, and then the composite image when the shooting is stopped is acquired. Determining the center of the star track of the current shooting according to the star track arc in the composite image, and then extending the arc of each star track in the composite image around the center of the circle to obtain a complete star track rendering image, thereby enabling The photographer takes a complete star track image in a short period of time. And when each segment of the star-track arc in the composite image is extended around the center of the circle, the star-track region and the non-star-track region in the composite image may be distinguished, and the arcs of each segment of the star track are extended only in the star-track region. The resulting star-track renderings are more in line with the actual shooting results.
在上述装置实施例的基础上,本发明实施例提供了一种拍摄方法,请参阅图2,方法流程包括:On the basis of the foregoing device embodiments, an embodiment of the present invention provides a shooting method. Referring to FIG. 2, the method process includes:
S201、星轨拍摄结束后,根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心。S201. After the star track is finished, the center of the star track of the current shooting is calculated according to any segment of the star track in the composite image.
请参阅图3和图4,该步骤包括:Please refer to FIG. 3 and FIG. 4, the steps include:
S2011、提取该任一段星轨弧线上的两点A和B;S2011, extracting two points A and B on the arc of any one of the star tracks;
S2012、计算以该两点A和B为端点的直线a的中点C,并确认通过该中点C且垂直于该直线的垂线b;S2012, calculating a midpoint C of the straight line a with the two points A and B as the end points, and confirming the perpendicular line b passing through the midpoint C and perpendicular to the straight line;
S2013、确定该垂线b与该任一段星轨弧线的交点D;S2013, determining an intersection D of the perpendicular line b and the arc of any one of the segments;
S2014、将该两点A和B与圆心位于该垂线上的圆周进行匹配,查找通过 该两点A和B及该交点D的圆周,并确定该圆周为该任一段星轨弧线的轨迹,该圆周的圆心E为本次拍摄的星轨的圆心。S2014, matching the two points A and B with the circumference of the center line on the vertical line, and searching for The two points A and B and the circumference of the intersection point D, and determine that the circumference is the trajectory of the arc of any of the segments, the center E of the circumference is the center of the star track of the current shot.
S202、将该合成图像中各段星轨弧线围绕该圆心进行延伸,获取完整的星轨效果图。S202. Extend each segment of the star track arc in the composite image around the center of the circle to obtain a complete star track rendering.
在执行该步骤时,还可识别该合成图像中的星轨区与非星轨区;将该合成图像中各段星轨弧线围绕该圆心在星轨区进行延伸。When performing this step, the star track area and the non-star track area in the composite image may also be identified; and each segment of the star track in the composite image is extended around the center of the star track area.
可选地,识别该合成图像中的星轨区与非星轨区可通过两种方法实现。Alternatively, identifying the star-track region and the non-star-track region in the composite image can be implemented in two ways.
请参阅图5,方法一包括:Referring to Figure 5, method one includes:
S401、获取星轨区像素点的亮度值范围;S401. Acquire a range of brightness values of pixels in the star track area;
S402、对该星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;S402. Perform a row-by-row scan on the pixel points in the image of the star track to obtain a brightness value of each pixel point.
S403、判断每个像素点的亮度值的大小是否在该亮度值范围之内;S403. Determine whether a size of the brightness value of each pixel is within the brightness value range.
S405、若是,则确定该像素点为星轨区域的像素点,否则,确定该像素点为非星轨区域的像素点。S405. If yes, determine that the pixel point is a pixel point of the star track area, otherwise, determine that the pixel point is a pixel point of the non-star track area.
请参阅图6,方法二包括:Please refer to Figure 6. Method 2 includes:
A、获取星轨区像素点的亮度值范围;A. Obtain a range of brightness values of pixels in the star track area;
B、对该星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;B. scanning the pixels in the star track image row by row to obtain the brightness value of each pixel point;
C、根据获取的各像素点的亮度值,查找每一排像素点中亮度值的变化超出第一预设阀值的突变像素点;C. Find, according to the obtained brightness value of each pixel point, a sudden pixel point in which the change of the brightness value in each row of pixels exceeds the first preset threshold;
D、判断每一排的相邻的突变像素点之间的亮度值的大小超出该亮度值范围的像素点的数量与该相邻的突变像素点之间的所有像素点的数量的百分比是否大于预设的第二阀值,若是,判断该相邻的突变像素点之间的像素点为非星轨区域的像素点,否则判断该相邻的突变像素点之间的像素点为星轨区域的像素点。D. determining whether the brightness value between adjacent abrupt pixel points of each row exceeds the range of the pixel value of the brightness value range and the percentage of the number of all pixel points between the adjacent abrupt pixel points is greater than a preset second threshold value, if yes, determining that the pixel point between the adjacent abrupt pixel points is a pixel point of the non-satellite track area, otherwise determining that the pixel point between the adjacent abrupt pixel points is a star track area Pixels.
如:像素A1-A100,之间有100个像素,其中有10个像素(A5、A12、A15……)的亮度值大小超出亮度值范围,百分比为10%,小于第二阈值,则判断A1-A100为星轨区;For example, there are 100 pixels between pixels A1-A100, and the brightness value of 10 pixels (A5, A12, A15, ...) exceeds the brightness value range, the percentage is 10%, which is less than the second threshold, then A1 is judged. -A100 is the star track area;
像素B1-B100,之间有100个像素,其中有70个像素的亮度值大小超出 亮度值范围,百分比为70%,大于第二阈值,则判断B1-B100为非星轨区。There are 100 pixels between pixels B1-B100, and 70 of them have brightness values exceeding The brightness value range, the percentage is 70%, and is greater than the second threshold, then it is determined that B1-B100 is a non-satellite track area.
实际应用中,步骤C的实现方法包括如下步骤C1-C3。In practical applications, the implementation method of step C includes the following steps C1-C3.
C1、确定每一排中的第一个像素点及最后一个像素点为突变像素,并从该第一个像素点开始执行步骤C2;C1, determining that the first pixel and the last pixel in each row are abrupt pixels, and performing step C2 from the first pixel;
C2、依次计算相邻的像素点之间的亮度差的绝对值,并判断该当前像素点与其后相邻像素点之间的亮度差的绝对值是否超过第一预设阀值,若是,则执行步骤C3;C2, sequentially calculating an absolute value of a luminance difference between adjacent pixel points, and determining whether an absolute value of a luminance difference between the current pixel point and a subsequent adjacent pixel point exceeds a first preset threshold, and if so, Perform step C3;
C3、依次计算该当前像素点与其后像素点的亮度差的绝对值,并判断当前像素点是否为该最后一个像素点,若是则停止计算,若否则直到找出亮度差绝对值小于该第一预设阀值的另一像素点,并且判断该另一像素点和当前像素点之间间隔的N个像素点的数量是否大于第三预设阈值,若是,确定该当前像素点和另一像素点为突变像素点,并以另一像素点作为突变像素点开始继续执行步骤C2。C3. Calculate the absolute value of the brightness difference between the current pixel point and the subsequent pixel point in turn, and determine whether the current pixel point is the last pixel point, and if so, stop the calculation, if otherwise, until the absolute value of the brightness difference is less than the first Presetting another pixel point of the threshold, and determining whether the number of N pixel points spaced between the other pixel point and the current pixel point is greater than a third predetermined threshold, and if so, determining the current pixel point and another pixel The point is the abrupt pixel point, and step C2 is continued with another pixel point as the abrupt pixel point.
如:一排像素C1-C100,确定C1、C100为突变像素点,For example, a row of pixels C1-C100, determine C1, C100 as abrupt pixel points,
从C1开始依次计算C1和C2之间的亮度差的绝对值,C2和C3之间的亮度差的绝对值……并计算上述亮度差的绝对值是否超过第一预设阀值,例如C11和C12之间的亮度差的绝对值超过第一预设阀值,Calculate the absolute value of the luminance difference between C1 and C2, the absolute value of the luminance difference between C2 and C3, and calculate whether the absolute value of the above luminance difference exceeds the first preset threshold, such as C11 and The absolute value of the difference in luminance between C12 exceeds the first preset threshold.
依次计算C11和C12、C11和C13、C11和C14……之间亮度差的绝对值,并计算上述亮度差的绝对值是否小于第一预设阀值,例如C11和C36之间亮度差的绝对值小于第一预设阀值,且C11和C36之间间隔25个像素,大于第三预设阈值,则确定C11和C36为突变像素点。Calculate the absolute value of the luminance difference between C11 and C12, C11 and C13, C11 and C14... in order, and calculate whether the absolute value of the above luminance difference is smaller than the first preset threshold, for example, the absolute difference between the luminance difference between C11 and C36 The value is less than the first preset threshold, and the interval between C11 and C36 is 25 pixels, which is greater than the third preset threshold, and it is determined that C11 and C36 are abrupt pixel points.
实际应用中,本实施例在执行步骤S201之前,还可包括如下步骤:In an actual application, before performing step S201, the embodiment may further include the following steps:
S1、当进入星轨拍摄模式时,检测是否开启快速拍摄模式。S1. When entering the star track shooting mode, it is detected whether the fast shooting mode is turned on.
可选地,可以通过设置开启快速拍摄模式功能入口,由用户根据实际需要确定是否开启快速拍摄模式,并设置快速拍摄模式的拍摄时间。Optionally, the fast shooting mode function entry can be turned on by setting, and the user determines whether to enable the fast shooting mode according to actual needs, and set the shooting time of the fast shooting mode.
S2、若开启了快速拍摄模式,则在拍摄进行到预设的时间时停止拍摄。S2. If the quick shooting mode is turned on, shooting stops when the shooting progresses to the preset time.
可选地,该步骤包括: Optionally, the step includes:
若开启了快速拍摄模式,则在拍摄开始时打开计时器;If the quick shooting mode is turned on, the timer is turned on at the beginning of shooting;
判断该计时器的计时是否达到预设的时间;Determining whether the timing of the timer reaches a preset time;
若达到预设的时间则停止拍摄。Shooting stops if the preset time is reached.
S3、获取当前的合成图像。S3. Acquire a current composite image.
需要说明的是,相关技术利用数字相机(特别是移动终端)拍摄星轨时,多采用长时间多次曝光的形式拍摄多张图像,并在拍摄过程中将当前拍摄的图像与前一张图像进行合成处理,这样当拍摄完成时,便能够直接获取合成后的星轨图像。因此本实施例拍摄停止时,获取当前的合成图便是拍摄的最后一张图像与前一张图像(即上一张合成图)合成处理后的图像。It should be noted that when the related art utilizes a digital camera (especially a mobile terminal) to take a star track, multiple images are taken in a long time multiple exposure mode, and the current captured image and the previous image are taken during the shooting process. The synthesis process is performed so that when the shooting is completed, the synthesized star track image can be directly obtained. Therefore, when the shooting is stopped in this embodiment, the current composite image is acquired as the image after the last image captured and the previous image (ie, the previous composite image).
本实施例的一种拍摄方法,能够在进行星轨拍摄时开启快速拍摄模式,并在开启了快速拍摄模式时,仅需拍摄预设的时间就可停止拍摄,然后获取停止拍摄时的合成图像,根据该合成图像中的星轨弧线确定本次拍摄的星轨的圆心,然后将该合成图像中各段星轨弧线围绕该圆心进行延伸,便可获取完整的星轨效果图,因此能够使拍摄者在较短的时间内拍摄出完整的星轨图像。并且在将该合成图像中各段星轨弧线围绕该圆心进行延伸时,还可以对合成图像中的星轨区和非星轨区进行区分,并且仅在星轨区对各段星轨弧线进行延伸,使得最终获得的星轨效果图更加符合实际拍摄的效果。In the shooting method of the embodiment, the fast shooting mode can be turned on when the star track is taken, and when the fast shooting mode is turned on, the shooting can be stopped only by shooting the preset time, and then the composite image when the shooting is stopped is acquired. Determining the center of the star track of the current shooting according to the star track arc in the composite image, and then extending the arc of each star track in the composite image around the center of the circle to obtain a complete star track rendering image, thereby enabling The photographer takes a complete star track image in a short period of time. And when each segment of the star-track arc in the composite image is extended around the center of the circle, the star-track region and the non-star-track region in the composite image may be distinguished, and the arcs of each segment of the star track are extended only in the star-track region. The resulting star-track renderings are more in line with the actual shooting results.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的星轨拍摄处理方法。The embodiment of the invention also discloses a computer program, comprising program instructions, which when executed by a computer, enable the computer to execute any of the above-mentioned star track shooting processing methods.
本发明实施例还公开了一种载有所述的计算机程序的载体。The embodiment of the invention also discloses a carrier carrying the computer program.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
以上参照附图说明了本发明的优选实施例,并非因此局限本发明的权利范围。本领域技术人员不脱离本发明的范围和实质内所作的任何修改、等同替换和改进,均应在本发明的权利范围之内。The preferred embodiments of the present invention have been described above with reference to the drawings, and are not intended to limit the scope of the invention. Any modifications, equivalent substitutions and improvements made by those skilled in the art without departing from the scope and spirit of the invention are intended to be included within the scope of the invention.
工业实用性 Industrial applicability
本发明技术方案的一种星轨拍摄处理方法及装置,能够在进行星轨拍摄时仅根据拍摄获取任一段星轨弧线的星轨弧线确定本次拍摄的星轨的圆心,然后将该合成图像中各段星轨弧线围绕该圆心进行延伸,便可获取完整的星轨效果图,因此能够使拍摄者在较短的时间内拍摄出完整的星轨图像。并且在将该合成图像中各段星轨弧线围绕该圆心进行延伸时,还可以对合成图像中的星轨区和非星轨区进行区分,并且仅在星轨区对各段星轨弧线进行延伸,使得最终获得的星轨效果图更加符合实际拍摄的效果。因此本发明具有很强的工业实用性。 A method and device for processing a star track of the technical solution of the present invention can determine the center of the star track of the current shooting only according to the star track arc of any star track arc when shooting the star track, and then The star-track arcs in the composite image extend around the center of the circle to obtain a complete star-track rendering, thus enabling the photographer to capture a complete star-track image in a shorter period of time. And when each segment of the star-track arc in the composite image is extended around the center of the circle, the star-track region and the non-star-track region in the composite image may be distinguished, and the arcs of each segment of the star track are extended only in the star-track region. The resulting star-track renderings are more in line with the actual shooting results. Therefore, the present invention has strong industrial applicability.

Claims (20)

  1. 一种星轨拍摄处理方法,包括如下步骤:A method for processing a star track photograph, comprising the following steps:
    星轨拍摄结束后,根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心;After the star track is finished, the center of the star track of the current shooting is calculated according to any segment of the star track in the composite image;
    将所述合成图像中各段星轨弧线围绕所述圆心进行延伸,获取完整的星轨效果图。Extending each segment of the star-track arc in the composite image around the center of the circle to obtain a complete star-track rendering.
  2. 根据权利要求1所述的星轨拍摄处理方法,其中,所述星轨拍摄结束后,根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心的步骤包括:The method of processing a star-tracking method according to claim 1, wherein, after the star-tracking is completed, the step of calculating a center of the star-track of the current shooting according to any one of the star-track arcs in the composite image comprises:
    提取所述任一段星轨弧线上的两点;Extracting two points on the arc of any of the segments of the star;
    计算以所述两点为端点的直线的中点,并确认通过所述中点且垂直于所述直线的垂线;Calculating a midpoint of a straight line ending at the two points, and confirming a perpendicular line passing through the midpoint and perpendicular to the straight line;
    确定所述垂线与所述任一段星轨弧线的交点;Determining an intersection of the perpendicular to the arc of any of the segments;
    将所述两点与圆心位于所述垂线上的圆周进行匹配,查找通过所述两点及所述交点的圆周,并确定所述圆周为所述任一段星轨弧线的轨迹,所述圆周的圆心为本次拍摄的星轨的圆心。Matching the two points with a circumference on which the center of the circle is located, finding a circle passing through the two points and the intersection, and determining that the circumference is a trajectory of any of the segments of the star track, The center of the circle is the center of the star track for this shot.
  3. 根据权利要求1或2所述的星轨拍摄处理方法,其中,所述将所述合成图像中各段星轨弧线围绕所述圆心进行延伸,获取完整的星轨效果图的步骤包括:The method for processing a star-tracking method according to claim 1 or 2, wherein the step of extending each segment of the star-track arc in the composite image around the center of the circle to obtain a complete star-track effect map comprises:
    识别所述合成图像中的星轨区与非星轨区;Identifying a star track zone and a non-star track zone in the composite image;
    将所述合成图像中各段星轨弧线围绕所述圆心在星轨区进行延伸。Each segment of the star track in the composite image is extended around the center of the star in the star track region.
  4. 根据权利要求3所述的星轨拍摄处理方法,其中,所述识别所述合成图像中的星轨区与非星轨区的步骤包括:The satellite track photographing processing method according to claim 3, wherein said step of identifying a star track area and a non-star track area in said composite image comprises:
    获取星轨区像素点的亮度值范围; Obtain a range of luminance values of pixels in the star track area;
    对所述星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;Performing a row-by-row scan on the pixel points in the star-track image to obtain a brightness value of each pixel point;
    判断每个像素点的亮度值的大小是否在所述亮度值范围之内;Determining whether the magnitude of the luminance value of each pixel is within the range of the luminance value;
    若是,则确定所述像素点为星轨区域的像素点,否则,确定所述像素点为非星轨区域的像素点。If yes, it is determined that the pixel point is a pixel point of the star track area, otherwise, the pixel point is determined to be a pixel point of the non-star track area.
  5. 根据权利要求3所述的星轨拍摄处理方法,其中,所述识别所述合成图像中的星轨区与非星轨区的步骤包括:The satellite track photographing processing method according to claim 3, wherein said step of identifying a star track area and a non-star track area in said composite image comprises:
    A、获取星轨区像素点的亮度值范围;A. Obtain a range of brightness values of pixels in the star track area;
    B、对所述星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;B. Scan the pixels in the star track image row by row to obtain the brightness value of each pixel point;
    C、根据获取的各像素点的亮度值,查找每一排像素点中亮度值的变化超出第一预设阀值的突变像素点;C. Find, according to the obtained brightness value of each pixel point, a sudden pixel point in which the change of the brightness value in each row of pixels exceeds the first preset threshold;
    D、判断每一排的相邻的突变像素点之间的亮度值的大小超出所述亮度值范围的像素点的数量与所述相邻的突变像素点之间的所有像素点的数量的百分比是否大于预设的第二阀值,若是,判断所述相邻的突变像素点之间的像素点为非星轨区域的像素点,否则判断所述相邻的突变像素点之间的像素点为星轨区域的像素点。D. determining that the size of the luminance value between adjacent abrupt pixel points of each row exceeds the number of pixels of the luminance value range and the percentage of the number of all pixel points between the adjacent abrupt pixel points Whether it is greater than a preset second threshold, if yes, determining that a pixel point between the adjacent abrupt pixel points is a pixel point of a non-star-track region, otherwise determining a pixel point between the adjacent abrupt pixel points The pixel point of the star track area.
  6. 根据权利要求5所述的星轨拍摄处理方法,其中,所述C步骤包括:The method of processing a star-tracking method according to claim 5, wherein said C step comprises:
    C1、确定每一排中的第一个像素点及最后一个像素点为突变像素,并从所述第一个像素点开始执行步骤C2;C1, determining that the first pixel and the last pixel in each row are abrupt pixels, and performing step C2 from the first pixel;
    C2、依次计算相邻的像素点之间的亮度差的绝对值,并判断该当前像素点与其后相邻像素点之间的亮度差的绝对值是否超过第一预设阀值,若是,则执行步骤C3;C2, sequentially calculating an absolute value of a luminance difference between adjacent pixel points, and determining whether an absolute value of a luminance difference between the current pixel point and a subsequent adjacent pixel point exceeds a first preset threshold, and if so, Perform step C3;
    C3、依次计算该当前像素点与其后像素点的亮度差的绝对值,并判断当前像素点是否为该最后一个像素点,若是则停止计算,若否则直到找出亮度差绝对值小于该第一预设阀值的另一像素点,并且判断该另一像素点和当前像素点之间间隔的N个像素点的数量是否大于第三预设阈值,若是,确定该 当前像素点和另一像素点为突变像素点,并以另一像素点作为突变像素点开始继续执行步骤C2。C3. Calculate the absolute value of the brightness difference between the current pixel point and the subsequent pixel point in turn, and determine whether the current pixel point is the last pixel point, and if so, stop the calculation, if otherwise, until the absolute value of the brightness difference is less than the first Presetting another pixel point of the threshold, and determining whether the number of N pixel points spaced between the other pixel point and the current pixel point is greater than a third predetermined threshold, and if so, determining the The current pixel point and the other pixel point are abrupt pixel points, and step C2 is continued with another pixel point as the abrupt pixel point.
  7. 根据权利要求1所述的星轨拍摄处理方法,所述星轨拍摄结束后,根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心的步骤之前,该方法还包括:The method of processing a star-tracking method according to claim 1, wherein after the step of shooting the star track, the step of calculating the center of the star track of the current shooting according to any of the star-track arcs in the composite image, the method further comprises:
    S1、当进入星轨拍摄模式时,检测是否开启快速拍摄模式;S1, when entering the star track shooting mode, detecting whether the fast shooting mode is turned on;
    S2、若开启了快速拍摄模式,则在拍摄进行到预设的时间时停止拍摄;S2. If the fast shooting mode is turned on, the shooting is stopped when the shooting is performed to a preset time;
    S3、获取当前的合成图像。S3. Acquire a current composite image.
  8. 根据权利要求7所述的星轨拍摄处理方法,其中,所述步骤S1包括:The method of processing a star-tracking process according to claim 7, wherein said step S1 comprises:
    通过设置开启快速拍摄模式功能入口,由用户根据实际需要确定是否开启快速拍摄模式,并设置快速拍摄模式的拍摄时间。By setting the function of the quick shooting mode to be turned on, the user determines whether to enable the quick shooting mode and set the shooting time of the fast shooting mode according to actual needs.
  9. 根据权利要求7所述的星轨拍摄处理方法,其中,所述步骤S2包括:The method of claim 7, wherein the step S2 comprises:
    若开启了快速拍摄模式,则在拍摄开始时打开计时器;If the quick shooting mode is turned on, the timer is turned on at the beginning of shooting;
    判断该计时器的计时是否达到预设的时间;Determining whether the timing of the timer reaches a preset time;
    若达到预设的时间则停止拍摄。Shooting stops if the preset time is reached.
  10. 一种拍摄装置,所述装置包括圆心确定单元和处理单元,其中:A photographing apparatus comprising a center determining unit and a processing unit, wherein:
    所述圆心确定单元设置成:星轨拍摄结束后,根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心;The center determining unit is configured to: after the end of the star track shooting, calculate the center of the star track of the current shooting according to any segment of the star track in the composite image;
    所述处理单元设置成:将所述合成图像中各段星轨弧线围绕所述计算单元计算的圆心进行延伸获取完整的星轨效果图。The processing unit is configured to: extend each segment of the star track arc in the center of the circle calculated by the calculating unit to obtain a complete star track rendering.
  11. 根据权利要求10所述的拍摄装置,其中,所述圆心确定单元设置成 按照如下方式根据合成图像中的任一段星轨弧线计算本次拍摄的星轨的圆心:The photographing apparatus according to claim 10, wherein the center determining unit is set to Calculate the center of the star track of this shot based on any of the star-track arcs in the composite image as follows:
    提取所述任一段星轨弧线上的两点;Extracting two points on the arc of any of the segments of the star;
    计算以所述两点为端点的直线的中点,并确认通过所述中点且垂直于所述直线的垂线;Calculating a midpoint of a straight line ending at the two points, and confirming a perpendicular line passing through the midpoint and perpendicular to the straight line;
    确定所述垂线与所述任一段星轨弧线的交点;Determining an intersection of the perpendicular to the arc of any of the segments;
    将所述两点与圆心位于所述垂线上的圆周进行匹配,查找通过所述两点及所述交点的圆周,并确定所述圆周为所述任一段星轨弧线的轨迹,所述圆周的圆心为本次拍摄的星轨的圆心。Matching the two points with a circumference on which the center of the circle is located, finding a circle passing through the two points and the intersection, and determining that the circumference is a trajectory of any of the segments of the star track, The center of the circle is the center of the star track for this shot.
  12. 根据权利要求10或11所述的拍摄装置,其中,所述处理单元设置成按照如下方式将所述合成图像中各段星轨弧线围绕所述圆心进行延伸,获取完整的星轨效果图:The photographing apparatus according to claim 10 or 11, wherein the processing unit is configured to extend each segment of the star-track arc in the composite image around the center of the circle to obtain a complete star-track effect map as follows:
    识别所述合成图像中的星轨区与非星轨区;Identifying a star track zone and a non-star track zone in the composite image;
    将所述合成图像中各段星轨弧线围绕所述圆心在星轨区进行延伸。Each segment of the star track in the composite image is extended around the center of the star in the star track region.
  13. 根据权利要求12所述的拍摄装置,其中,所述处理单元设置成按照如下方式识别所述合成图像中的星轨区与非星轨区:The photographing apparatus according to claim 12, wherein said processing unit is configured to identify a star track area and a non-star track area in said composite image as follows:
    获取星轨区像素点的亮度值范围;Obtain a range of luminance values of pixels in the star track area;
    对所述星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;Performing a row-by-row scan on the pixel points in the star-track image to obtain a brightness value of each pixel point;
    判断每个像素点的亮度值的大小是否在所述亮度值范围之内;Determining whether the magnitude of the luminance value of each pixel is within the range of the luminance value;
    在判断出每个像素点的亮度值的大小在所述亮度值范围之内时,确定所述像素点为星轨区域的像素点,否则,确定所述像素点为非星轨区域的像素点。When it is determined that the size of the brightness value of each pixel is within the range of the brightness value, determining that the pixel point is a pixel point of the star track area, otherwise, determining that the pixel point is a pixel point of the non-star track area .
  14. 根据权利要求12所述的拍摄装置,其中,所述处理单元设置成按照如下方式识别所述合成图像中的星轨区与非星轨区: The photographing apparatus according to claim 12, wherein said processing unit is configured to identify a star track area and a non-star track area in said composite image as follows:
    A、获取星轨区像素点的亮度值范围;A. Obtain a range of brightness values of pixels in the star track area;
    B、对所述星轨图像中的像素点进行逐排扫描,获取各像素点的亮度值;B. Scan the pixels in the star track image row by row to obtain the brightness value of each pixel point;
    C、根据获取的各像素点的亮度值,查找每一排像素点中亮度值的变化超出第一预设阀值的突变像素点;C. Find, according to the obtained brightness value of each pixel point, a sudden pixel point in which the change of the brightness value in each row of pixels exceeds the first preset threshold;
    D、判断每一排的相邻的突变像素点之间的亮度值的大小超出所述亮度值范围的像素点的数量与所述相邻的突变像素点之间的所有像素点的数量的百分比是否大于预设的第二阀值,若是,判断所述相邻的突变像素点之间的像素点为非星轨区域的像素点,否则判断所述相邻的突变像素点之间的像素点为星轨区域的像素点。D. determining that the size of the luminance value between adjacent abrupt pixel points of each row exceeds the number of pixels of the luminance value range and the percentage of the number of all pixel points between the adjacent abrupt pixel points Whether it is greater than a preset second threshold, if yes, determining that a pixel point between the adjacent abrupt pixel points is a pixel point of a non-star-track region, otherwise determining a pixel point between the adjacent abrupt pixel points The pixel point of the star track area.
  15. 根据权利要求14所述的拍摄装置,其中,所述处理单元设置成按照如下方式根据获取的各像素点的亮度值,查找每一排像素点中亮度值的变化超出第一预设阀值的突变像素点:The photographing apparatus according to claim 14, wherein the processing unit is configured to search for the change of the brightness value in each row of pixels beyond the first preset threshold according to the acquired brightness values of the respective pixel points as follows. Mutated pixel points:
    C1、确定每一排中的第一个像素点及最后一个像素点为突变像素,并从所述第一个像素点开始执行步骤C2;C1, determining that the first pixel and the last pixel in each row are abrupt pixels, and performing step C2 from the first pixel;
    C2、依次计算相邻的像素点之间的亮度差的绝对值,并判断该当前像素点与其后相邻像素点之间的亮度差的绝对值是否超过第一预设阀值,若是,则执行步骤C3;C2, sequentially calculating an absolute value of a luminance difference between adjacent pixel points, and determining whether an absolute value of a luminance difference between the current pixel point and a subsequent adjacent pixel point exceeds a first preset threshold, and if so, Perform step C3;
    C3、依次计算该当前像素点与其后像素点的亮度差的绝对值,并判断当前像素点是否为该最后一个像素点,若是则停止计算,若否则直到找出亮度差绝对值小于该第一预设阀值的另一像素点,并且判断该另一像素点和当前像素点之间间隔的N个像素点的数量是否大于第三预设阈值,若是,确定该当前像素点和另一像素点为突变像素点,并以另一像素点作为突变像素点开始继续执行步骤C2。C3. Calculate the absolute value of the brightness difference between the current pixel point and the subsequent pixel point in turn, and determine whether the current pixel point is the last pixel point, and if so, stop the calculation, if otherwise, until the absolute value of the brightness difference is less than the first Presetting another pixel point of the threshold, and determining whether the number of N pixel points spaced between the other pixel point and the current pixel point is greater than a third predetermined threshold, and if so, determining the current pixel point and another pixel The point is the abrupt pixel point, and step C2 is continued with another pixel point as the abrupt pixel point.
  16. 根据权利要求10所述的拍摄装置,该装置还包括检测单元和控制单元,其中The photographing apparatus according to claim 10, further comprising a detecting unit and a control unit, wherein
    所述检测单元设置成:在进入星轨拍摄模式时,检测是否开启快速拍摄 模式;The detecting unit is configured to detect whether to enable fast shooting when entering the star track shooting mode mode;
    所述控制单元设置成:在该检测单元检测到开启了快速拍摄模式时,在拍摄进行到预设的时间时控制该拍摄装置结束星轨拍摄。The control unit is configured to: when the detecting unit detects that the quick shooting mode is turned on, control the shooting device to end the star track shooting when the shooting is performed to a preset time.
  17. 根据权利要求16所述的拍摄装置,该装置还包括设置单元,其中The photographing apparatus according to claim 16, further comprising a setting unit, wherein
    所述设置单元设置成:通过设置开启快速拍摄模式功能入口,由用户根据实际需要确定是否开启快速拍摄模式,并设置快速拍摄模式的拍摄时间。The setting unit is configured to: determine whether to enable the fast shooting mode according to actual needs, and set the shooting time of the fast shooting mode by setting the function button of the fast shooting mode to be turned on.
  18. 根据权利要求16所述的拍摄装置,其中,所述控制单元设置成按照如下方式在该检测单元检测到开启了快速拍摄模式时,在拍摄进行到预设的时间时控制该拍摄装置结束星轨拍摄:The photographing apparatus according to claim 16, wherein the control unit is configured to control the photographing device to end the star track when the photographing is performed to a preset time when the detecting unit detects that the quick shooting mode is turned on as follows Shooting:
    在开启了快速拍摄模式时,在拍摄开始时打开计时器,并判断该计时器的计时是否达到预设的时间,在计时器的计时达到预设的时间时停止拍摄。When the quick shooting mode is turned on, the timer is turned on at the start of shooting, and it is judged whether the timer has reached the preset time, and the shooting is stopped when the timer counts up to the preset time.
  19. 一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行如权利要求1-9中任一项所述的星轨拍摄处理方法。A computer program comprising program instructions which, when executed by a computer, cause the computer to perform the star-tracking processing method of any one of claims 1-9.
  20. 一种载有如权利要求19所述的计算机程序的载体。 A carrier carrying the computer program of claim 19.
PCT/CN2015/087703 2014-08-26 2015-08-20 Star trail shooting processing method and device WO2016029822A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201410426049.3A CN104333691B (en) 2014-08-26 2014-08-26 A kind of star rail photographing process method and device
CN201410426049.3 2014-08-26
CN201510487280 2015-08-10
CN201510487280.8 2015-08-10

Publications (1)

Publication Number Publication Date
WO2016029822A1 true WO2016029822A1 (en) 2016-03-03

Family

ID=55398753

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/087703 WO2016029822A1 (en) 2014-08-26 2015-08-20 Star trail shooting processing method and device

Country Status (1)

Country Link
WO (1) WO2016029822A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101617530A (en) * 2007-12-21 2009-12-30 索尼株式会社 Image processing equipment, dynamic menu reproducer and processing method and program
US20120257071A1 (en) * 2011-04-06 2012-10-11 Prentice Wayne E Digital camera having variable duration burst mode
CN103905730A (en) * 2014-03-24 2014-07-02 深圳市中兴移动通信有限公司 Shooting method of mobile terminal and mobile terminal
CN103942754A (en) * 2013-01-18 2014-07-23 深圳市腾讯计算机系统有限公司 Panoramic image completion method and device
CN104333691A (en) * 2014-08-26 2015-02-04 深圳市中兴移动通信有限公司 A star trail photographing processing method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101617530A (en) * 2007-12-21 2009-12-30 索尼株式会社 Image processing equipment, dynamic menu reproducer and processing method and program
US20120257071A1 (en) * 2011-04-06 2012-10-11 Prentice Wayne E Digital camera having variable duration burst mode
CN103942754A (en) * 2013-01-18 2014-07-23 深圳市腾讯计算机系统有限公司 Panoramic image completion method and device
CN103905730A (en) * 2014-03-24 2014-07-02 深圳市中兴移动通信有限公司 Shooting method of mobile terminal and mobile terminal
CN104333691A (en) * 2014-08-26 2015-02-04 深圳市中兴移动通信有限公司 A star trail photographing processing method and apparatus

Similar Documents

Publication Publication Date Title
US10495756B2 (en) Multi-camera laser scanner
US20190208125A1 (en) Depth Map Calculation in a Stereo Camera System
WO2015180686A1 (en) Image acquisition device, image acquisition method and terminal
US11838697B2 (en) Ultra-short-throw picture and screen alignment method and apparatus, and storage medium
JP5446794B2 (en) Imaging apparatus, data processing method, and program
US10306210B2 (en) Image processing apparatus and image capturing apparatus
CN107135330B (en) Method and device for video frame synchronization
US10692262B2 (en) Apparatus and method for processing information of multiple cameras
US10142541B2 (en) Image processing apparatus, imaging apparatus, and control method of image processing apparatus
JP2011182397A (en) Method and apparatus for calculating shift length
CN107787463A (en) The capture of optimization focusing storehouse
WO2016031573A1 (en) Image-processing device, image-processing method, program, and recording medium
CN100525475C (en) Method of detecting image definition
CN110769225B (en) Projection area obtaining method based on curtain and projection device
WO2016192467A1 (en) Method and device for playing videos
WO2016029822A1 (en) Star trail shooting processing method and device
CN111885371A (en) Image occlusion detection method and device, electronic equipment and computer readable medium
CN111279352B (en) Three-dimensional information acquisition system through pitching exercise and camera parameter calculation method
JP5484129B2 (en) Imaging device
WO2016026455A1 (en) Method and device for automatically optimizing star trail photography result
JP2017192114A5 (en)
US20160261789A1 (en) Method for independently determining exposure and focus settings of a digital camera
CN107431756B (en) Method and apparatus for automatic image frame processing possibility detection
WO2020146965A1 (en) Image refocusing control method and system
CN104333691B (en) A kind of star rail photographing process method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15836663

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19/07/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15836663

Country of ref document: EP

Kind code of ref document: A1