WO2017114252A1 - 一种采集静态图像的方法及装置 - Google Patents

一种采集静态图像的方法及装置 Download PDF

Info

Publication number
WO2017114252A1
WO2017114252A1 PCT/CN2016/111248 CN2016111248W WO2017114252A1 WO 2017114252 A1 WO2017114252 A1 WO 2017114252A1 CN 2016111248 W CN2016111248 W CN 2016111248W WO 2017114252 A1 WO2017114252 A1 WO 2017114252A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
image acquisition
scanning
imaging device
acquisition unit
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.)
Ceased
Application number
PCT/CN2016/111248
Other languages
English (en)
French (fr)
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.)
Beijing Asu Tech Co Ltd
Qingdao Haier Co Ltd
Original Assignee
Beijing Asu Tech Co Ltd
Qingdao Haier Co Ltd
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 Beijing Asu Tech Co Ltd, Qingdao Haier Co Ltd filed Critical Beijing Asu Tech Co Ltd
Publication of WO2017114252A1 publication Critical patent/WO2017114252A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
    • H04N1/00249Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a photographic apparatus, e.g. a photographic printer or a projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/04Scanning arrangements, i.e. arrangements for the displacement of active reading or reproducing elements relative to the original or reproducing medium, or vice versa
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for acquiring a static image.
  • scanning imaging equipment is also widely available, and it is widely used by more and more people because of its wide use.
  • scanning imaging equipment has been widely used in business office, video teaching, home theater. , cinema, etc.
  • Scanning imaging devices can be divided into various categories from different angles, for example, scanning imaging devices can be classified into laser scanning imaging devices, infrared scanning imaging devices, electronic scanning imaging devices, and the like according to scanning sources.
  • the user may need to perform image acquisition on the scanned image of the scanning imaging device.
  • the scanned image of the scanning imaging device is scanned by the scanning imaging device in a scanning cycle by point-by-point scanning, and Generally, the exposure time of the image capturing device is less than the above-mentioned scanning period. Therefore, the scanning imaging device can only scan a part of the completed image during the above exposure time, and the image capturing device is difficult to collect when acquiring the scanned image of the scanning imaging device. To the full image.
  • the embodiment of the invention discloses a method and a device for acquiring a static image, so as to easily collect a complete image of the scanned image of the scanning imaging device.
  • an embodiment of the present invention discloses a method for collecting a static image, including the steps of:
  • the preset image acquisition rule is used to specify an image acquisition triggering time of the image capturing unit in each scanning period to ensure that the collected N images contain all the contents of one scanned image of the scanning imaging device;
  • Image synthesis is performed on the acquired N images to obtain a complete image of the scanned image for the scanning imaging device.
  • determining the number N of scanning cycles required to acquire a complete image includes:
  • the number of scan cycles required to acquire a complete image is N.
  • the calling image acquisition unit collects images according to a preset image collection rule, including:
  • the image acquisition unit is triggered to transmit an image according to a preset image acquisition rule by transmitting an optical LED blinking manner.
  • the calling image acquisition unit collects images according to a preset image collection rule, including:
  • the image acquisition unit When the earliest image acquisition triggering moment is reached in the determined image acquisition triggering time, the image acquisition unit is called to perform image acquisition, and the obtained time interval is sent to the image acquisition unit, so that the image acquisition unit follows the above The acquired time interval is used for image acquisition.
  • the calling image acquisition unit collects images according to a preset image collection rule, including:
  • the image acquisition unit is called to perform image acquisition when the determined image acquisition trigger time is reached.
  • the image is synthesized by using the acquired N images to obtain a complete image of the scanned image of the scanning imaging device, including:
  • image synthesis is performed on the acquired N images to obtain a complete image of the scanned image for the scanning imaging device.
  • an embodiment of the present invention discloses an apparatus for collecting a static image, including:
  • a hardware parameter obtaining module configured to obtain a scan period T 0 of scanning a frame scan image by the scan imaging device and an exposure time T exp of the image acquisition unit;
  • a scan cycle number determining module configured to determine, according to the numerical relationship between the scan cycle T 0 and the exposure time T exp , the number of scan cycles N required to acquire a complete image
  • An image acquisition module configured to invoke an image acquisition unit to acquire an image according to a preset image acquisition rule, wherein the image acquisition unit collects only one image in each scan cycle of the N scan cycles of the scan imaging device
  • the preset image acquisition rule is used to specify an image acquisition triggering time of the image capturing unit in each scanning period to ensure that the collected N images comprise a scanned image of the scanning imaging device. All content;
  • An image synthesizing module is configured to perform image synthesis on the acquired N images to obtain a complete image of the scanned image of the scanning imaging device.
  • the scanning cycle number determining module is specifically configured to:
  • the number of scan cycles required to acquire a complete image is N.
  • the image acquisition module is specifically configured to:
  • the image acquisition unit is triggered to transmit an image according to a preset image acquisition rule by transmitting an optical LED blinking manner.
  • the image acquisition module includes:
  • a first triggering time determining sub-module configured to determine, according to a preset image capturing rule, an image capturing triggering time corresponding to each scanning period of the N scanning periods of the scanning imaging device;
  • a first image collection sub-module configured to call an image acquisition unit to perform image acquisition when the earliest image acquisition trigger time is reached in the determined image acquisition trigger time, and send the obtained time interval to the image acquisition unit,
  • the image acquisition unit is caused to perform image acquisition in accordance with the time interval obtained as described above.
  • the image acquisition module includes:
  • a second triggering time determining sub-module configured to determine, according to a preset image capturing rule, an image capturing triggering time corresponding to each scanning period of the N scanning periods of the scanning imaging device;
  • the second image collection sub-module is configured to invoke the image acquisition unit to perform image acquisition when the determined image acquisition trigger time is reached.
  • the image synthesizing module comprises:
  • a region determining sub-module configured to determine an area of the scanned content in the collected N images
  • the image synthesizing sub-module is configured to perform image synthesizing on the collected N images according to the determined position of the region where the scanning content is located in the image, to obtain a complete image of the scanned image for the scanning imaging device.
  • the scan imaging device obtains the scan period T 0 of scanning a frame scan image and the exposure time T exp of the image acquisition unit, according to the scan period T 0 and the exposure time T
  • the numerical relationship between exp determines the number of scan cycles N required to acquire a complete image, and then calls the image acquisition unit to acquire N images according to preset image acquisition rules, and performs image synthesis on the acquired N images.
  • a complete image of the scanned image for the scanning imaging device is obtained.
  • image capturing is performed in multiple scanning periods of the scanning imaging device. In this way, it is ensured that the respective parts of the scanned image can be acquired, and therefore, a complete image of the scanned image of the scanning imaging apparatus can be easily acquired by means of image synthesis.
  • FIG. 1 is a schematic flowchart diagram of a method for collecting a static image according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart diagram of another method for collecting a static image according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of another method for collecting a static image according to an embodiment of the present invention.
  • FIG. 4(a) is a schematic diagram of a pulse according to an embodiment of the present invention.
  • FIG. 4(b) is a schematic diagram of another pulse according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart diagram of another method for collecting a static image according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus for collecting a static image according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another apparatus for collecting a static image according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another apparatus for collecting a static image according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of another apparatus for collecting a static image according to an embodiment of the present invention.
  • the embodiment of the invention provides a method and a device for acquiring a static image, which are applied to a scanning imaging device. Specifically, when the scanning imaging device acquires a static image, obtaining a scanning period in which the scanning imaging device scans one frame of the scanned image T 0 and the exposure time T exp of the image acquisition unit, according to the numerical relationship between the scan period T 0 and the exposure time T exp , determine the number of scan cycles N required to acquire a complete image, and call the image acquisition unit to follow Acquiring an image by a preset image acquisition rule, wherein the image acquisition unit collects only one image in each scan cycle of the N scan periods of the scan imaging device, and the preset image acquisition rule is used for Determining an image acquisition triggering time of the image capturing unit in each scanning period to ensure that the collected N images contain all the contents of one scanned image of the scanning imaging device, and performing N images acquired Image synthesis yields a complete image of the scanned image for the scanning imaging device.
  • FIG. 1 is a schematic flowchart of a method for collecting a static image according to an embodiment of the present invention, including the following steps:
  • S1 Obtain a scanning period T 0 in which the scanning imaging apparatus scans one frame of the scanned image and an exposure time T exp of the image capturing unit.
  • the scanning imaging device may be a laser scanning imaging device, an infrared scanning imaging device, an electronic scanning imaging device, or a laser-based MEMS (Micro-Electro-Mechanical System) space. Scanning projection apparatus and the like, the present invention does not further define a scanning imaging apparatus.
  • the scanning period T 0 of the scanning imaging apparatus for scanning a frame of scanned image is generally determined by the hardware parameters of the scanning imaging apparatus, such as the refresh rate of the scanned image and the resolution of the projected image. Wait.
  • the exposure time T exp of the image acquisition unit is generally determined by the ambient light of the image acquisition unit and the hardware parameters of the image acquisition unit, wherein the ambient light is the ambient light of the application scene in which the image acquisition unit is located, in the image acquisition unit.
  • the relevant information of the ambient light can be obtained by the photosensitive sensor and converted into an electrical signal, and the image acquisition unit adjusts the exposure time according to the electrical signal;
  • the hardware parameters of the image acquisition unit can be the shutter speed, the photosensitivity of the photosensitive sensor, etc. This application does not limit the specific form of the hardware parameters of the image acquisition unit.
  • S2 Determine the number N of scanning cycles required to acquire a complete image according to the numerical relationship between the scanning period T 0 and the exposure time T exp .
  • the number of scan cycles required to acquire a complete image is N.
  • the number N of scanning cycles determined by the above relationship is a positive integer.
  • the scan period T 0 is 0.5 seconds
  • the number is 2.
  • the scanning period T 0 is 0.8 seconds
  • the number of scan cycles is three.
  • the image acquisition unit is called to acquire an image according to a preset image collection rule.
  • the image acquisition unit collects only one image in each scan period of the N scan periods of the scan imaging device, and the preset image acquisition rule is used to specify the image acquisition unit in each
  • the image acquisition trigger time during the scan period ensures that the acquired N images contain all of the contents of one scanned image of the scanned imaging device.
  • the image capturing unit may be a camera, a camera, a camera, etc., and the present application does not limit the specific expression of the image collecting unit.
  • the image acquisition unit may be part of the above-described scanning imaging device.
  • the connection between the image acquisition unit and the main control unit of the scanning imaging device or the like can be realized by wire.
  • the scanning imaging device can trigger the call of the image acquisition unit by transmitting an electrical signal.
  • the specific implementation process is that a data line is first connected between the image capturing unit and the scanning imaging device, and then the scanning state of the scanning imaging device is indicated by the data signal corresponding to the data line.
  • the data line corresponds to The data signal can be configured by a register inside the scanning imaging device.
  • the image collecting unit performs image acquisition, in the N scanning periods of the scanning imaging device. Only one image is acquired during each scan period to ensure that the acquired N images contain all of the contents of one scanned image of the scanning imaging device.
  • the image acquisition unit may not be part of the above-described scanning imaging device, but an external device connected to the scanning imaging device via a wireless local area network, Bluetooth or the like.
  • the scanning imaging device can trigger the calling of the camera by sending an optical LED to blink, and the specific implementation process is: first, between the image capturing unit and the scanning imaging device.
  • the way to connect establishes a communication connection.
  • wireless connection such as: Bluetooth pairing connection, IoT connection, Wifi wireless signal connection, and so on.
  • the scanning imaging device uses the LED light as a driving signal.
  • the LED light is turned on, and the image capturing unit recognizes the driving signal and starts the camera, in the scanning mode. Only one image is acquired in each of the N scanning periods of the imaging device to ensure that the acquired N images contain all the contents of one scanned image of the scanning imaging device, and of course, can be used as a driving signal.
  • carriers such as laser, sound, infrared, etc., which are not limited in this application.
  • S4 Perform image synthesis on the acquired N images to obtain a complete image of the scanned image for the scanning imaging device.
  • image synthesis is performed on a total of N images acquired by the image acquisition unit in each scan period of the N scanning periods of the scanning imaging device in S3, to obtain a complete image of the scanned image for the scanning imaging device. image.
  • the scanning imaging device obtains the scan period T 0 of scanning a frame scan image and the exposure time T exp of the image acquisition unit, according to the scan period T 0 and The numerical relationship between the exposure times T exp determines the number of scan cycles N required to acquire a complete image, and then calls the image acquisition unit to acquire N images according to preset image acquisition rules, and performs N images acquired. Image synthesis, which in turn results in a complete image of the scanned image for the scanning imaging device.
  • image capturing is performed in multiple scanning periods of the scanning imaging device. In this way, it is ensured that the respective parts of the scanned image can be acquired, and therefore, a complete image of the scanned image of the scanning imaging apparatus can be easily acquired by means of image synthesis.
  • the image acquisition unit can actively perform image acquisition when determining the image acquisition time of each cycle, or can be determined by the scanning imaging device. At the time of the image acquisition time of the cycle, the image acquisition unit is called to transmit the image by transmitting the call signal.
  • the above two methods are respectively described by using two embodiments of FIG. 2 and FIG. 3.
  • FIG. 2 is a schematic flowchart of another method for collecting a static image according to an embodiment of the present invention.
  • the image capturing unit is called to collect an image according to a preset image capturing rule ( S3), including:
  • S31 Determine an image acquisition triggering time corresponding to each scanning period of the N scanning periods of the scanning imaging device according to a preset image capturing rule.
  • each scan of the determined N scan cycles is determined.
  • the image acquisition trigger time corresponding to the period needs to ensure that the images acquired in N cycles can contain each part of a complete image.
  • the image acquisition unit needs a certain delay after determining that the image acquisition triggering time is reached, and when the image acquisition is actually started, the delay is determined by hardware factors such as an image acquisition unit.
  • the above-described delay information can be considered together when determining the image acquisition trigger timing for each scanning period.
  • scanning period assuming a scanning type image forming apparatus scans a scanned image T 0 of 0.8 second, the exposure time of the image acquisition unit T exp 0.3 second, S2 of the number may be determined scanning period 3, the calculation can be obtained, it is necessary to start
  • the 3 image acquisition units complete 3 exposures to obtain 3 images, and only 1 exposure image is taken in each scanning cycle to obtain 1 image. If it is required to be 1/3 of the second scanning period, the image acquisition unit performs an image.
  • the image acquisition trigger time corresponding to the second scan period is: the time corresponding to the 1/3 position of the second scan period -
  • the above delay may determine that the image acquisition triggering time corresponding to the third scanning period is: the time corresponding to the 1/3 position of the third scanning period - the above delay.
  • the calculation method of the image acquisition departure time corresponding to the first scanning period is not limited, and specifically, the calculation may be performed according to other methods.
  • the scanning imaging device performs a difference between the adjacent image sampling triggering times determined in S31, and obtains a time interval between two adjacent image capturing triggering moments in the image capturing triggering time.
  • the image acquisition unit needs to have a timing function.
  • the scanning imaging device calls the image acquisition unit to start the camera exposure photographing, and while the start command is executed, the scan imaging device transmits the first time interval to the image acquisition unit, and the image acquisition unit
  • the timing is started, when the image acquisition unit counts the time interval between the first image acquisition and the second image acquisition, the image acquisition unit starts the second image acquisition, restarts the timing from zero, and then proceeds accordingly. Subsequent image acquisition, obtaining N images.
  • the scan imaging device calculates the time interval between the two image acquisition triggering moments
  • the time interval data is sent to the image acquisition unit, and the image acquisition unit controls the image collection.
  • FIG. 3 is a schematic flowchart of another method for collecting a static image according to an embodiment of the present invention.
  • the image capturing unit is called to collect an image according to a preset image capturing rule ( S3), including:
  • S34 Determine an image acquisition triggering time corresponding to each scanning period of the N scanning periods of the scanning imaging device according to a preset image capturing rule.
  • the signal transmission between the hardware units requires transmission time.
  • the image acquisition unit usually has a certain startup delay after receiving the trigger signal and before starting to acquire the image. Therefore, when determining the image acquisition triggering time corresponding to each scanning period in the N scanning periods of the scanning imaging apparatus, the overall delay composed of the above information of the transmission time and the startup delay should be considered. Specifically, the overall delay is generally determined by factors such as the scanning period T 0 of the scanning imaging device and the exposure time T exp of the image capturing unit and the environment in which the image capturing unit is located.
  • the scan imaging device does not need to transmit the image acquisition trigger time corresponding to each scan cycle in the N scan cycles obtained in S34 to the image acquisition unit, but monitors each image acquisition determined to reach S34.
  • the scanning imaging device calls the image acquisition unit, activates the camera, and collects the corresponding image.
  • the image acquisition unit may be integrated with the scanning imaging device, or may not be integrated with the scanning imaging device.
  • the device may be The image acquisition unit is started to acquire an image by transmitting a signal through the data line; in the case that the image acquisition unit is not integrated with the scanning imaging device, the device can start the image acquisition unit to acquire an image by lighting the indicator light.
  • the image acquisition unit can be called up by the data line and the register.
  • a hardware connection is defined between the processor of the scanning imaging device and the image acquisition unit, and the transmission signal of the hardware connection is represented by PARTIAL_INT, wherein PARTIAL_INT is used to indicate a frame of scanned image inside the scanning imaging device. Scan status.
  • a new set of registers can be defined to configure the PARTIAL_INT signal.
  • FIG. 4(a) a schematic diagram of a signal pulse is shown, in which the image acquisition trigger timing corresponding to three scan periods is determined according to T D_INT .
  • REG_NEW_5 bit0 to 15, set the indicator output pulse width W PULSE .
  • the scan imaging apparatus scans a scan image T 0 of 0.5 seconds, and the exposure time T exp of the image acquisition unit is 0.3 seconds.
  • the number of scan cycles can be determined to be 2, which can be obtained by calculation, and needs to be started twice.
  • the image acquisition unit completes two exposure photographs to obtain two images, and only one exposure photograph is taken in each scan period to obtain one image, and the first image capture trigger timing is the scan start time of the scan image forming apparatus in the first scan period.
  • -T D_IND that is, the first exposure photographing is when the first image capturing triggering moment comes, the scanning imaging device starts the image collecting unit to perform image capturing; the second image capturing triggering moment is the scanning imaging device second.
  • the scanning period scan image 1/2 position corresponds to the time -T D_IND .
  • FIG. 4(b) provides another schematic diagram of signal pulses, which shows the determination of the image acquisition trigger timing corresponding to two scanning periods according to TD_IND.
  • the scanning imaging device calls the image acquisition unit to perform image collection when the image capturing time corresponding to each scanning week is monitored, and the image capturing unit does not need to have timing and other functions, and the image capturing unit is required. Lower.
  • FIG. 5 is a schematic flowchart of another method for collecting a static image according to an embodiment of the present invention. Compared with the embodiment shown in FIG. 1 , in this embodiment, image synthesis is performed on the collected N images, and the target is obtained.
  • the acquisition time of each image corresponds to a specific time in one scanning cycle, and the scanning content corresponding to different moments in each scanning cycle is located in different regions of the scanned image, and therefore, according to the collected
  • the correspondence between the acquisition time and the scan period of the N images is obtained, and the area where the scanned content is located in the N images is obtained.
  • the method for determining the image region to be collected is not limited.
  • the image region determined by the image may be first named as the number of scan cycles of the image corresponding scanning imaging device when the image is acquired during image acquisition. This way it is easy to determine where the captured image is located in n/N.
  • S42 Perform image synthesis on the collected N images according to the determined position of the region where the scan content is located in the image, to obtain a complete image of the scanned image for the scan imaging device.
  • each picture is in the area where the scanned image content is located, and may be based on every two adjacent The corresponding image overlapping area of the area is covered to obtain a new image, and the remaining N-1 images are finally superimposed into a complete image according to the rule.
  • the already named images are superimposed and covered in the order of arrival from small to obtain a final complete image containing all the contents of the N images.
  • the image forming process can accurately know the region where each image is located and synthesize it into a complete image, which effectively reduces the algorithm complexity of image synthesis.
  • FIG. 6 is a schematic structural diagram of an apparatus for collecting a static image according to an embodiment of the present invention, which corresponds to the method flowchart shown in FIG. 1 , and includes a hardware parameter obtaining module 1 , a scanning period number determining module 2 , and an image collecting module 3 .
  • the hardware parameter obtaining module 1 is configured to obtain a scan period T 0 of scanning a frame scan image by the scan imaging device and an exposure time T exp of the image acquisition unit;
  • the scan cycle number determining module 2 is configured to determine, according to the numerical relationship between the scan cycle T 0 and the exposure time T exp , the number of scan cycles N required to acquire a complete image;
  • the image acquisition module 3 is configured to invoke the image acquisition unit to acquire an image according to a preset image collection rule.
  • the image acquisition unit collects only one image in each scan period of the N scan periods of the scan imaging device, and the preset image acquisition rule is used to specify the image acquisition unit in each
  • the image acquisition trigger time during the scan period ensures that the acquired N images contain all of the contents of one scanned image of the scanned imaging device.
  • the image synthesizing module 4 is configured to perform image synthesis on the acquired N images to obtain a complete image of the scanned image of the scanning imaging device.
  • the scanning imaging device obtains the scan period T 0 of scanning a frame scan image and the exposure time T exp of the image acquisition unit, according to the scan period T 0 and The numerical relationship between the exposure times T exp determines the number of scan cycles N required to acquire a complete image, and then calls the image acquisition unit to acquire N images according to preset image acquisition rules, and performs N images acquired. Image synthesis, which in turn results in a complete image of the scanned image for the scanning imaging device.
  • image capturing is performed in multiple scanning periods of the scanning imaging device. In this way, it is ensured that the respective parts of the scanned image can be acquired, and therefore, a complete image of the scanned image of the scanning imaging apparatus can be easily acquired by means of image synthesis.
  • FIG. 7 is a schematic structural diagram of another apparatus for collecting a static image according to an embodiment of the present invention, and the implementation shown in FIG.
  • the image acquisition module 3 includes:
  • the first triggering time determination sub-module 31 is configured to determine an image acquisition triggering time corresponding to each scanning period of the N scanning periods of the scanning imaging device according to a preset image capturing rule.
  • the time interval obtaining sub-module 32 is configured to obtain a time interval between two adjacent image acquisition triggering moments in the determined image acquisition triggering time.
  • the first image acquisition sub-module 33 is configured to call the image acquisition unit to perform image collection when the earliest image acquisition trigger time is reached in the determined image acquisition trigger time, and send the obtained time interval to the image acquisition unit. So that the image acquisition unit performs image acquisition at the time interval obtained as described above.
  • the scan imaging device calculates the time interval between the two image acquisition triggering moments
  • the time interval data is sent to the image acquisition unit, and the image acquisition unit controls the image collection.
  • FIG. 8 is a schematic structural diagram of another apparatus for collecting a static image according to an embodiment of the present invention.
  • the image acquisition module 3 includes:
  • the second triggering time determining sub-module 34 is configured to determine an image capturing triggering time corresponding to each scanning period of the N scanning periods of the scanning imaging device according to a preset image capturing rule.
  • the second image collection sub-module 35 is configured to invoke the image acquisition unit to perform image acquisition when the determined image acquisition trigger time is reached.
  • the scanning imaging device calls the image acquisition unit to perform image acquisition when monitoring the image acquisition time corresponding to each scanning week, and the image acquisition unit does not need to have timing and other functions, and the image acquisition unit The requirements are lower.
  • FIG. 9 is a schematic structural diagram of another apparatus for collecting a static image according to an embodiment of the present invention.
  • the image synthesizing module 4 includes:
  • the area determining sub-module 41 is configured to determine an area where the scanned content in the collected N images is located.
  • the image synthesizing sub-module 42 is configured to perform image synthesis on the collected N images according to the determined position of the region where the scanning content is located in the image, to obtain a complete image of the scanned image for the scanning imaging device.
  • the region where each image is located can be accurately obtained in the image synthesis process, and is synthesized into a complete image, which effectively reduces the algorithm complexity of the image synthesis.
  • the description is relatively simple, and the relevant parts can be referred to the corresponding parts in the method embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Input (AREA)

Abstract

本发明实施例公开了一种采集静态图像的方法及装置,应用于扫描式成像设备,所述方法包括:获得所述扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp;根据所述扫描周期T0和所述曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N;调用图像采集单元按照预设的图像采集规则采集图像;对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。应用本发明实施例提供的方案采集图像,能够容易的采集到扫描式成像设备的扫描图像的完整图像。

Description

一种采集静态图像的方法及装置
本申请要求了申请日为2015年12月31日,申请号为201511031778.X,发明名称为“一种采集静态图像的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及图像处理技术领域,特别涉及一种采集静态图像的方法及装置。
背景技术
随着电子技术的迅速发展,扫描式成像设备也随处可见,因其用途广泛被越来越多的人们所关注和喜爱,目前,扫描式成像设备已广泛应用于商务办公、视频教学、家庭影院、电影院等。从不同的角度扫描式成像设备可以被划分为多种类别,例如,按照扫描源可以将扫描式成像设备划分为:激光扫描式成像设备、红外线扫描式成像设备、电子扫描式成像设备等等。
实际应用中,用户可能会需要对扫描式成像设备的扫描图像进行图像采集,然而,扫描式成像设备的扫描图像是扫描式成像设备在一个扫描周期内以逐点扫描的方式成像的,又由于通常情况下图像采集设备的曝光时间小于上述的扫描周期,所以,在上述曝光时间内扫描式成像设备仅能扫描完成图像的一部分,进而图像采集设备采集扫描式成像设备的扫描图像时,难以采集到完整的图像。
发明内容
本发明实施例公开了一种采集静态图像的方法及装置,以容易的采集到扫描式成像设备的扫描图像的完整图像。
为了达到上述目的,本发明实施例公开了一种采集静态图像的方法,包括步骤:
获得所述扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp
根据所述扫描周期T0和所述曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N;
调用图像采集单元按照预设的图像采集规则采集图像,其中,所述图像采集单元在所述扫描式成像设备的N个扫描周期的每一扫描周期内仅采集一幅图像,所述预设的图像采集规则用于规定所述图像采集单元在每一扫描周期内的图像采集触发时刻,以保证所采集的N张图像包含所述扫描式成像设备的一幅扫描图像的所有内容;
对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
较佳的,所述根据所述扫描周期T0和所述曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N,包括:
根据所述扫描周期T0和所述曝光时间Texp,按照以下关系式,
T0/N≤Texp<T0/(N-1),
确定采集一幅完整图像所需的扫描周期数为N。
较佳的,所述调用图像采集单元按照预设的图像采集规则采集图像,包括:
通过发送电气信号的方式触发调用图像采集单元按照预设的图像采集规则采集图像;或
通过发送光学LED闪烁的方式触发调用图像采集单元按照预设的图像采集规则采集图像。
较佳的,所述调用图像采集单元按照预设的图像采集规则采集图像,包括:
根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻;
获得所确定的图像采集触发时刻中相邻的两个图像采集触发时刻之间的时间间隔;
在到达所确定的图像采集触发时刻中最早的图像采集触发时刻时,调用图像采集单元进行图像采集,并向所述图像采集单元发送上述所获得的时间间隔,以使得所述图像采集单元按照上述所获得的时间间隔进行图像采集。
较佳的,所述调用图像采集单元按照预设的图像采集规则采集图像,包括:
根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻;
在到达所确定的每一图像采集触发时刻时,调用所述图像采集单元进行图像采集。
较佳的,所述对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像,包括:
确定所采集的N张图像中的扫描内容所在区域;
根据所确定的扫描内容所在区域在图像中的位置,对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
为了达到上述目的,本发明实施例公开了一种采集静态图像的装置,包括:
硬件参数获得模块,用于获得所述扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp
扫描周期数确定模块,用于根据所述扫描周期T0和所述曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N;
图像采集模块,用于调用图像采集单元按照预设的图像采集规则采集图像,其中,所述图像采集单元在所述扫描式成像设备的N个扫描周期的每一扫描周期内仅采集一幅图像,所述预设的图像采集规则用于规定所述图像采集单元在每一扫描周期内的图像采集触发时刻,以保证所采集的N张图像包含所述扫描式成像设备的一幅扫描图像的所有内容;
图像合成模块,用于对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
较佳的,所述扫描周期数确定模块,具体用于:
根据所述扫描周期T0和所述曝光时间Texp,按照以下关系式,
T0/N≤Texp<T0/(N-1),
确定采集一幅完整图像所需的扫描周期数为N。
较佳的,所述图像采集模块,具体用于:
通过发送电气信号的方式触发调用图像采集单元按照预设的图像采集规则采集图像;或
通过发送光学LED闪烁的方式触发调用图像采集单元按照预设的图像采集规则采集图像。
较佳的,所述图像采集模块,包括:
第一触发时刻确定子模块,用于根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻;
时间间隔获得子模块,用于获得所确定的图像采集触发时刻中相邻的两个图像采集触发时刻之间的时间间隔;
第一图像采集子模块,用于在到达所确定的图像采集触发时刻中最早的图像采集触发时刻时,调用图像采集单元进行图像采集,并向所述图像采集单元发送上述所获得的时间间隔,以使得所述图像采集单元按照上述所获得的时间间隔进行图像采集。
较佳的,所述图像采集模块,包括:
第二触发时刻确定子模块,用于根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻;
第二图像采集子模块,用于在到达所确定的每一图像采集触发时刻时,调用所述图像采集单元进行图像采集。
较佳的,所述图像合成模块,包括:
区域确定子模块,用于确定所采集的N张图像中的扫描内容所在区域;
图像合成子模块,用于根据所确定的扫描内容所在区域在图像中的位置,对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
本发明实施例提供的方案中,扫描式成像设备获得所述扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp后,根据扫描周期T0和曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N,然后,调用图像采集单元按照预设的图像采集规则采集N张图像,并对所采集的N张图像进行图像合成,进而得到针对扫描式成像设备的扫描图像的一幅完整图像。虽然图像采集单元的一个曝光周期内仅仅能采集到上述扫描式成像设备的扫描图像的一部分,但是本发明实施例提供的方案中,通过在扫描式成像设备的多个扫描周期内进行图像采集的方式,保证能够采集到扫描图像的各个部分,因此,能够通过图像合成的方式容易的采集到扫描式成像设备的扫描图像的完整图像。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种采集静态图像的方法的流程示意图。
图2为本发明实施例提供的另一种采集静态图像的方法的流程示意图。
图3为本发明实施例提供的另一种采集静态图像的方法的流程示意图。
图4(a)为本发明实施例提供的一种脉冲示意图。
图4(b)为本发明实施例提供的另一种脉冲示意图。
图5为本发明实施例提供的另一种采集静态图像的方法的流程示意图。
图6为本发明实施例提供的一种采集静态图像的装置的结构示意图。
图7为本发明实施例提供的另一种采集静态图像的装置的结构示意图。
图8为本发明实施例提供的另一种采集静态图像的装置的结构示意图。
图9为本发明实施例提供的另一种采集静态图像的装置的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明实施例提供了一种采集静态图像的方法及装置,应用于扫描式成像设备,具体的,扫描式成像设备采集静态图像时,获得所述扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp,根据所述扫描周期T0和所述曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N,调用图像采集单元按照预设的图像采集规则采集图像,其中,所述图像采集单元在所述扫描式成像设备的N个扫描周期的每一扫描周期内仅采集一幅图像,所述预设的图像采集规则用于规定所述图像采集单元在每一扫描周期内的图像采集触发时刻,以保证所采集的N张图像包含所述扫描式成像设备的一幅扫描图像的所有内容,对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
下面通过具体实施例,对本发明进行详细说明。
图1为本发明实施例提供的一种采集静态图像的方法的流程示意图,包括如下步骤:
S1:获得扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp
不难理解的是,扫描式成像设备可以是激光扫描式成像设备、红外线扫描式成像设备、电子扫描式成像设备、还可以是基于激光的MEMS(Micro-Electro-Mechanical System,微机电系统)空间扫描投影设备等等,本发明并不对扫描式成像设备做进一步限定。
本领域内的技术人员可以理解的是,扫描式成像设备扫描一帧扫描图像的扫描周期T0一般是由扫描式成像设备的硬件参数决定的,诸如扫描图像的刷新率、投射图像的分辨率等。
图像采集单元的曝光时间Texp一般是由图像采集单元所处的环境光线以及图像采集单元的硬件参数共同决定的,其中,环境光线为图像采集单元所处应用场景的环境光线,在图像采集单元可通过光敏传感器获得环境光线的相关信息,并将其转化为电信号,图像采集单元再根据该电信号调整曝光时间;上述图像采集单元的硬件参数,可以是快门速度、光敏传感器的光敏度等,本申请并不对图像采集单元的硬件参数的具体形式进行限定。
S2:根据所述扫描周期T0和所述曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N。
在本申请的一种具体实现方式中,可以根据所述扫描周期T0和所述曝光时间Texp,按照以下关系式,
T0/N≤Texp<T0/(N-1),
确定采集一幅完整图像所需的扫描周期数为N。
值得强调的是上述关系式所确定的扫描周期数N为正整数。例如,所述扫描周期T0为0.5秒,所述曝光时间Texp为0.3秒,由于0.5/2<0.3<0.5,所以这种情况下上述关系式中N=2,即所确定的扫描周期数为2。再如,所述扫描周期T0为0.8秒,所述曝光时间Texp为0.3秒,由于0.8/3<0.3<0.8/2,所以这种情况下上述关系式中N=3,即所确定的扫描周期数为3。
S3:调用图像采集单元按照预设的图像采集规则采集图像。
其中,所述图像采集单元在所述扫描式成像设备的N个扫描周期的每一扫描周期内仅采集一幅图像,所述预设的图像采集规则用于规定所述图像采集单元在每一扫描周期内的图像采集触发时刻,以保证所采集的N张图像包含所述扫描式成像设备的一幅扫描图像的所有内容。
具体的,上述图像采集单元可以是摄像头、照相机、摄像机等等,本申请并不对图像采集单元的具体表现形式进行限定。
可以理解的,图像采集单元可以是上述扫描式成像设备的一部分,这种情况下,可以通过有线方式实现图像采集单元与扫描式成像设备的主控单元等部分之间的连接。鉴于此,在本申请的一种具体实现方式中,扫描式成像设备可以通过发送电气信号的方式触发调用图像采集单元。具体实现过程为,先在图像采集单元与扫描式成像设备之间用数据线连接,然后通过该数据线对应的数据信号来指征扫描式成像设备的扫描状态,具体的,该数据线对应的数据信号可以由扫描式成像设备内部的寄存器进行配置,当扫描式成像设备每一扫描周期内的图像采集触发时刻到来时,图像采集单元进行采集图像,在扫描式成像设备的N个扫描周期中的每一扫描周期内仅采集一幅图像,以保证所采集的N张图像包含所述扫描式成像设备的一幅扫描图像的所有内容。
当然,图像采集单元也可以不是上述扫描式成像设备的一部分,而是通过无线局域网、蓝牙等与扫描式成像设备连接的外部设备。具体的,当图像采集单元不在扫描式成像设备上时,扫描式成像设备可以通过发送光学LED闪烁等方式触发调用摄像头,具体实现过程为,先在图像采集单元与扫描式成像设备之间通过无线连接的方式建立通信连接,无线连接的形式有很多,例如:蓝牙配对连接,物联网连接,Wifi无线信号连接等等。扫描式成像设备以点亮LED灯作为驱动信号,当扫描式成像设备每一扫描周期内的图像采集触发时刻到来时,点亮LED灯,图像采集单元识别到驱动信号后启动摄像头,在扫描式成像设备的N个扫描周期中的每一扫描周期内仅采集一幅图像,以保证所采集的N张图像包含所述扫描式成像设备的一幅扫描图像的所有内容,当然,可以作为驱动信号的载体有很多,诸如:激光、声音、红外线等,本申请并不对此进行限定。
S4:对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
具体的,将S3中扫描式成像设备的N个扫描周期的每一扫描周期中图像采集单元所采集的共N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
由以上可见,本实施例提供的方案中,扫描式成像设备获得所述扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp后,根据扫描周期T0和曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N,然后,调用图像采集单元按照预设的图像采集规则采集N张图像,并对所采集的N张图像进行图像合成,进而得到针对扫描式成像设备的扫描图像的一幅完整图像。虽然图像采集单元的一个曝光周期内仅仅能采集到上述扫描式成像设备的扫描图像的一部分,但是本发明实施例提供的方案中,通过在扫描式成像设备的多个扫描周期内进行图像采集的方式,保证能够采集到扫描图像的各个部分,因此,能够通过图像合成的方式容易的采集到扫描式成像设备的扫描图像的完整图像。
本领域内的技术人员可以理解的是,S2计算得到扫描周期数之后,可以由图像采集单元在确定到达各个周期的图像采集时刻时主动进行图像采集,还可以是扫描式成像设备判断得达到各个周期的图像采集时刻时,通过发送调用信号的方式调用图像采集单元进行图像采集,下面通过图2和图3两个实施例对上述两种分别进行说明。
图2为本发明实施例提供的另一种采集静态图像的方法的流程示意图,与图1所示实施例相比,本实施例中,调用图像采集单元按照预设的图像采集规则采集图像(S3),包括:
S31:根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻。
由于在一个扫描周期内图像采集单元仅仅能够采集到扫描图像的一部分,所以,为保证应用本发明实施例提供的方案能够获得完整的扫描图像,所确定出的上述N个扫描周期中每一扫描周期对应的图像采集触发时刻需保证N个周期内所采集到的图像能够包含一幅完整图像中的各个部分。
本领域内的技术人员可以理解的是,图像采集单元在确定达到图像采集触发时刻后至真正开始进行图像采集时,需要一定的时延,该时延是由图像采集单元等硬件因素决定的,鉴于此,在确定各个扫描周期的图像采集触发时刻时,可以一并考虑上述的时延信息。
例如:假定扫描式成像设备扫描一帧扫描图像的扫描周期T0为0.8秒,图像采集单元的曝光时间Texp为0.3秒,根据S2可确定扫描周期数为3,经计算可以得到,需要启动3 次图像采集单元完成3次曝光拍照得到3张图像,每个扫描周期内只完成1次曝光拍照得到1张图像,若要求在第二个扫描周期的1/3时,图像采集单元进行图像采集,第三个扫描周围的2/3时,图像采集单元进行图像采集,则可以确定第二个扫描周期对应的图像采集触发时刻为:第二个扫描周期的1/3位置对应的时刻-上述时延,可以确定第三个扫描周期对应的图像采集触发时刻为:第三个扫描周期的1/3位置对应的时刻-上述时延。本实例中并未限定第一个扫描周期对应的图像采集出发时刻的计算方式,具体的,可以根据其他方式进行计算。
S32:获得所确定的图像采集触发时刻中相邻的两个图像采集触发时刻之间的时间间隔。
具体的,扫描式成像设备将在S31中确定的相邻的图像采样触发时刻作差,得到图像采集触发时刻中相邻的两个图像采集触发时刻之间的时间间隔。
S33:在到达所确定的图像采集触发时刻中最早的图像采集触发时刻时,调用图像采集单元进行图像采集,并向所述图像采集单元发送上述所获得的时间间隔,以使得所述图像采集单元按照上述所获得的时间间隔进行图像采集。
需要说明的是,本实施例中,图像采集单元需具有计时功能。
实际应用中,将S32中获得的图像采集触发时刻中相邻的两个图像采集触发时刻之间的时间间隔传送给图像采集单元后,当图像采集单元在扫描式成像设备的第1个扫描周期对应的图像采集触发时刻到来时,扫描式成像设备调用图像采集单元,启动摄像头曝光拍照,在执行启动命令的同时,扫描式成像设备将第1个时间间隔传送给图像采集单元,同时图像采集单元开始计时,当图像采集单元计时达到第1次图像采集与第2次图像采集之间的时间间隔时,图像采集单元开始进行第2次图像采集,并从零重新开始计时,然后,依此进行后续图像采集,获得N张图像。
由以上可见,本实施例中,扫描式成像设备计算得到相邻的两个图像采集触发时刻之间的时间间隔后,将这些时间间隔数据发送给图像采集单元,由图像采集单元控制进行图像采集,获得N张图像,可以有效减轻图像采集过程中扫描式成像设备的工作压力。
图3为本发明实施例提供的另一种采集静态图像的方法的流程示意图,与图1所示实施例相比,本实施例中,调用图像采集单元按照预设的图像采集规则采集图像(S3),包括:
S34:根据预设图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻。
本领域内的技术人员可以理解的是,硬件单元之间的信号传输需要传输时间,另外,由于硬件的特性,图像采集单元接收到触发信号之后到开始采集图像之前通常会存在一定的启 动延时,因此,在确定扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻时,需考虑由上述传输时间和启动延时等信息组成的整体延时。具体的,上述整体时延一般由扫描式成像设备的扫描周期T0和图像采集单元的曝光时间Texp以及图像采集单元所处环境等因素共同决定。进一步的,假设理想状态下,想让图像采集单元在时刻Tn进行图像采集,则为保证图像采集单元能够在时刻Tn开始采集图像,可以确定时刻Tn对应的图像采集触发时刻为Tn-上述整体时延。
S35:在到达所确定的每一图像采集触发时刻时,调用所述图像采集单元进行图像采集。
本实施例中,扫描式成像设备无需将S34中获得的N个扫描周期中每个扫描周期对应的图像采集触发时刻传送给图像采集单元,而是在监测到达到S34确定出的每一图像采集触发时刻时,扫描式成像设备调用图像采集单元,启动摄像头,采集对应的图像。
由前述描述得知,图像采集单元可以是与扫描式成像设备一体的,还可以不是与扫描式成像设备一体的,具体的,在图像采集单元与扫描式成像设备一体的情况下,该设备可以通过数据线传输信号的方式,启动图像采集单元采集图像;在图像采集单元不与扫描式成像设备一体的情况下,该设备可以通过点亮指示灯的方式启动图像采集单元采集图像。
需要说明的是,本申请只是以上述为例进行说明,实际应用中,扫描式成像设备调用图像采集单元采集图像的具体方式并不仅限于此。
下面通过具体实例对本实施例进行详细说明。
1)、对于图像采集单元与扫描式成像设备一体的情况
可以通过数据线以及寄存器相配合实现调用图像采集单元。具体的,在扫描式成像设备的处理器与图像采集单元之间定义一条硬件连接,以PARTIAL_INT来表示上述硬件连接的传输信号,其中,PARTIAL_INT用来指征扫描式成像设备内部一帧扫描图像的扫描状态。
在扫描式成像设备内部,可以新定义一套寄存器来配置PARTIAL_INT信号。
具体的,可以定义如下几个寄存器:
REG_NEW_1:bit0=0/1,使能部分场同步信号PARTIAL_INT;
REG_NEW_1:bit1=0/1,配置重复自动装载;
REG_NEW_1:bit2=0/1,使能驱动指示灯信号;
REG_NEW_2:bit0~7,N=1,2,3,4,5〃〃〃N表示每1/N帧阈值触发中断;
REG_NEW_3:bit0~15,设置输出PARTIAL_INT的时延,1bit=TD_INT
具体的,参见图4(a),提供了一种信号脉冲示意图,该示意图中显示了根据TD_INT确定三个扫描周期对应的图像采集触发时刻的情况。
2)、对于图像采集单元与扫描式成像设备一体的情况
在上述1)的基础上,还可以定义如下两个寄存器:
REG_NEW_4:bit0~15,设置指示灯输出脉冲延时1bit=TD_IND
REG_NEW_5:bit0~15,设置指示灯输出脉冲宽度WPULSE
假定扫描式成像设备扫描一帧扫描图像的扫描周期T0为0.5秒,图像采集单元的曝光时间Texp为0.3秒,根据S2可确定扫描周期数为2,经计算可以得到,需要启动2次图像采集单元完成2次曝光拍照得到2张图像,每个扫描周期内只完成1次曝光拍照得到1张图像,第1次图像采集触发时刻为扫描式成像设备第1个扫描周期扫描图像开始时刻-TD_IND,即第1次曝光拍照是在所述第1次图像采集触发时刻到来时上述扫描式成像设备启动图像采集单元进行图像采集;第2次图像采集触发时刻为扫描式成像设备第2个扫描周期扫描图像1/2位置对应时刻-TD_IND
具体的,参见图4(b),图4(b)提供了另一种信号脉冲示意图,该示意图中显示了根据TD_IND确定两个扫描周期对应的图像采集触发时刻的情况。
本实施例提供的方案中,扫描式成像设备在监测到每一扫描周对应的图像采集时刻时,才调用图像采集单元进行图像采集,图像采集单元无需具有计时等功能,对图像采集单元的要求较低。
图5为本发明实施例提供的另一种采集静态图像的方法的流程示意图,与图1所示实施例相比,本实施例中,对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像(S4),包括:
S41:确定所采集的N张图像中的扫描内容所在区域。
由前述描述可以看出,每一张图像的采集时刻对应于一个扫描周期中的特定时刻,而每一扫描周期中不同的时刻对应的扫描内容位于扫描图像的不同区域,因此,可以根据所采集的N张图像的采集时刻与扫描周期之间的对应关系,得到这N张图像中扫描内容所在的区域。
本发明对确定采集的图像区域方式不作限定,除上述方式外,确定采集的图像区域还可以先通过在图像采集时所获图像时将其命名为图像对应扫描式成像设备的扫描周期数n,这种方式很容易就可以确定采集图像的所处区域为n/N。
S42:根据所确定的扫描内容所在区域在图像中的位置,对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
具体为,经过S41确定每张图片在扫描图像内容所处的区域后,可以根据每两个相邻 区域采集的对应的图像重叠区域进行覆盖,得到1张新的图像,依次按照此规则将余下的N-1张图像最终叠加为一幅完整的图像。
对应的,还可以根据S41的另一种确定采集的图像区域方式,将已经命名好的图像按从小到达的顺序进行叠加覆盖,得到最终的包含N张图像全部内容的一幅完整图像。
应用本实施例提供的方案,图像合成过程中能够准确的获知各图像所处区域,并将其合成为一幅完整的图像,有效的降低了图像合成的算法复杂度。
图6为本发明实施例提供的一种采集静态图像的装置的结构示意图,与图1所示的方法流程图对应,包括硬件参数获得模块1、扫描周期数确定模块2、图像采集模块3、图像合成模块4。
其中,硬件参数获得模块1,用于获得所述扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp
扫描周期数确定模块2,用于根据所述扫描周期T0和所述曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N;
图像采集模块3,用于调用图像采集单元按照预设的图像采集规则采集图像。
其中,所述图像采集单元在所述扫描式成像设备的N个扫描周期的每一扫描周期内仅采集一幅图像,所述预设的图像采集规则用于规定所述图像采集单元在每一扫描周期内的图像采集触发时刻,以保证所采集的N张图像包含所述扫描式成像设备的一幅扫描图像的所有内容。
图像合成模块4,用于对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
由以上可见,本实施例提供的方案中,扫描式成像设备获得所述扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp后,根据扫描周期T0和曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N,然后,调用图像采集单元按照预设的图像采集规则采集N张图像,并对所采集的N张图像进行图像合成,进而得到针对扫描式成像设备的扫描图像的一幅完整图像。虽然图像采集单元的一个曝光周期内仅仅能采集到上述扫描式成像设备的扫描图像的一部分,但是本发明实施例提供的方案中,通过在扫描式成像设备的多个扫描周期内进行图像采集的方式,保证能够采集到扫描图像的各个部分,因此,能够通过图像合成的方式容易的采集到扫描式成像设备的扫描图像的完整图像。
图7为本发明实施例提供的另一种采集静态图像的装置的结构示意图,与图6所示实施 例相比,本实施例中,图像采集模块3,包括:
第一触发时刻确定子模块31,用于根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻。
时间间隔获得子模块32,用于获得所确定的图像采集触发时刻中相邻的两个图像采集触发时刻之间的时间间隔。
第一图像采集子模块33,用于在到达所确定的图像采集触发时刻中最早的图像采集触发时刻时,调用图像采集单元进行图像采集,并向所述图像采集单元发送上述所获得的时间间隔,以使得所述图像采集单元按照上述所获得的时间间隔进行图像采集。
由以上可见,本实施例中,扫描式成像设备计算得到相邻的两个图像采集触发时刻之间的时间间隔后,将这些时间间隔数据发送给图像采集单元,由图像采集单元控制进行图像采集,获得N张图像,可以有效减轻图像采集过程中扫描式成像设备的工作压力。
图8为本发明实施例提供的另一种采集静态图像的装置的结构示意图,与图6所示实施例相比,本实施例中,图像采集模块3,包括:
第二触发时刻确定子模块34,用于根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻。
第二图像采集子模块35,用于在到达所确定的每一图像采集触发时刻时,调用所述图像采集单元进行图像采集。
本实施例提供的方案中,扫描式成像设备在监测到达到每一扫描周对应的图像采集时刻时,才调用图像采集单元进行图像采集,图像采集单元无需具有计时等功能,对图像采集单元的要求较低。
图9为本发明实施例提供的另一种采集静态图像的装置的结构示意图,与图5所示实施例相比,本实施例中,图像合成模块4,包括:
区域确定子模块41,用于确定所采集的N张图像中的扫描内容所在区域。
图像合成子模块42,用于根据所确定的扫描内容所在区域在图像中的位置,对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
本实施例提供的方案中,图像合成过程中能够准确的获知各图像所处区域,并将其合成为一幅完整的图像,有效的降低了图像合成的算法复杂度。
对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处请参见方法实施例中的对应部分说明即可。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者 操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。

Claims (12)

  1. 一种采集静态图像的方法,应用于扫描式成像设备,其特征在于,所述扫描式成像设备的扫描图像为静态图像,所述方法包括步骤:
    获得所述扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp
    根据所述扫描周期T0和所述曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N;
    调用图像采集单元按照预设的图像采集规则采集图像,其中,所述图像采集单元在所述扫描式成像设备的N个扫描周期的每一扫描周期内仅采集一幅图像,所述预设的图像采集规则用于规定所述图像采集单元在每一扫描周期内的图像采集触发时刻,以保证所采集的N张图像包含所述扫描式成像设备的一幅扫描图像的所有内容;
    对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述扫描周期T0和所述曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N,包括:
    根据所述扫描周期T0和所述曝光时间Texp,按照以下关系式,
    T0/N≤Texp<T0/(N-1),
    确定采集一幅完整图像所需的扫描周期数为N。
  3. 根据权利要求1或2所述的方法,其特征在于,所述调用图像采集单元按照预设的图像采集规则采集图像,包括:
    通过发送电气信号的方式触发调用图像采集单元按照预设的图像采集规则采集图像;或
    通过发送光学LED闪烁的方式触发调用图像采集单元按照预设的图像采集规则采集图像。
  4. 根据权利要求1或2所述方法,其特征在于,所述调用图像采集单元按照预设的图像采集规则采集图像,包括:
    根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻;
    获得所确定的图像采集触发时刻中相邻的两个图像采集触发时刻之间的时间间隔;
    在到达所确定的图像采集触发时刻中最早的图像采集触发时刻时,调用图像采集单元进 行图像采集,并向所述图像采集单元发送上述所获得的时间间隔,以使得所述图像采集单元按照上述所获得的时间间隔进行图像采集。
  5. 根据权利要求1或2所述方法,其特征在于,所述调用图像采集单元按照预设的图像采集规则采集图像,包括:
    根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻;
    在到达所确定的每一图像采集触发时刻时,调用所述图像采集单元进行图像采集。
  6. 根据权利要求1所述的方法,其特征在于,所述对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像,包括:
    确定所采集的N张图像中的扫描内容所在区域;
    根据所确定的扫描内容所在区域在图像中的位置,对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
  7. 一种采集静态图像的装置,应用于扫描式成像设备,其特征在于,所述扫描式成像设备的扫描图像为静态图像,所述装置包括:
    硬件参数获得模块,用于获得所述扫描式成像设备扫描一帧扫描图像的扫描周期T0和图像采集单元的曝光时间Texp
    扫描周期数确定模块,用于根据所述扫描周期T0和所述曝光时间Texp之间的数值关系,确定采集一幅完整图像需要的扫描周期数N;
    图像采集模块,用于调用图像采集单元按照预设的图像采集规则采集图像,其中,所述图像采集单元在所述扫描式成像设备的N个扫描周期的每一扫描周期内仅采集一幅图像,所述预设的图像采集规则用于规定所述图像采集单元在每一扫描周期内的图像采集触发时刻,以保证所采集的N张图像包含所述扫描式成像设备的一幅扫描图像的所有内容;
    图像合成模块,用于对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
  8. 根据权利要求7所述的装置,其特征在于,所述扫描周期数确定模块,具体用于:
    根据所述扫描周期T0和所述曝光时间Texp,按照以下关系式,
    T0/N≤Texp<T0/(N-1),
    确定采集一幅完整图像所需的扫描周期数为N。
  9. 根据权利要求7或8所述的装置,其特征在于,所述图像采集模块,具体用于:
    通过发送电气信号的方式触发调用图像采集单元按照预设的图像采集规则采集图像;或
    通过发送光学LED闪烁的方式触发调用图像采集单元按照预设的图像采集规则采集图像。
  10. 根据权利要求7或8所述装置,其特征在于,所述图像采集模块,包括:第一触发时刻确定子模块,用于根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻;
    时间间隔获得子模块,用于获得所确定的图像采集触发时刻中相邻的两个图像采集触发时刻之间的时间间隔;
    第一图像采集子模块,用于在到达所确定的图像采集触发时刻中最早的图像采集触发时刻时,调用图像采集单元进行图像采集,并向所述图像采集单元发送上述所获得的时间间隔,以使得所述图像采集单元按照上述所获得的时间间隔进行图像采集。
  11. 根据权利要求7或8所述装置,其特征在于,所述图像采集模块,包括:
    第二触发时刻确定子模块,用于根据预设的图像采集规则,确定所述扫描式成像设备的N个扫描周期中每一扫描周期对应的图像采集触发时刻;
    第二图像采集子模块,用于在到达所确定的每一图像采集触发时刻时,调用所述图像采集单元进行图像采集。
  12. 根据权利要求7所述的装置,其特征在于,所述图像合成模块,包括:
    区域确定子模块,用于确定所采集的N张图像中的扫描内容所在区域;
    图像合成子模块,用于根据所确定的扫描内容所在区域在图像中的位置,对所采集的N张图像进行图像合成,得到针对所述扫描式成像设备的扫描图像的一幅完整图像。
PCT/CN2016/111248 2015-12-31 2016-12-21 一种采集静态图像的方法及装置 Ceased WO2017114252A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511031778.XA CN106612382B (zh) 2015-12-31 2015-12-31 一种采集静态图像的方法及装置
CN201511031778.X 2015-12-31

Publications (1)

Publication Number Publication Date
WO2017114252A1 true WO2017114252A1 (zh) 2017-07-06

Family

ID=58614540

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/111248 Ceased WO2017114252A1 (zh) 2015-12-31 2016-12-21 一种采集静态图像的方法及装置

Country Status (2)

Country Link
CN (1) CN106612382B (zh)
WO (1) WO2017114252A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225542A (zh) * 2022-07-20 2022-10-21 北京京东乾石科技有限公司 视频信息处理方法、装置、电子设备和存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093186B (zh) * 2017-12-26 2020-04-10 上海奕瑞光电子科技股份有限公司 基于慢速清空方式的自动曝光控制方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008228190A (ja) * 2007-03-15 2008-09-25 Sharp Corp 原稿読取装置およびそれを備えた画像形成装置
CN103118230A (zh) * 2013-02-28 2013-05-22 腾讯科技(深圳)有限公司 一种全景图像采集方法、装置以及系统
CN103179331A (zh) * 2013-04-18 2013-06-26 华中科技大学 一种快速成像的扫描采样和图像处理方法
CN104469112A (zh) * 2014-12-01 2015-03-25 大族激光科技产业集团股份有限公司 大视场的成像方法及装置
CN104469077A (zh) * 2014-12-03 2015-03-25 北京彩艺世纪科技有限公司 扫描仪及扫描方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB703915A (en) * 1950-09-21 1954-02-10 British Broadcasting Corp Improvements in and relating to the recording of television pictures upon cinematograph film
GB859895A (en) * 1958-03-20 1961-01-25 Rank Cintel Ltd Improvements in or relating to apparatus for photographic printing
JP4378599B2 (ja) * 2003-07-04 2009-12-09 ソニー株式会社 撮像装置及びその制御方法
JP4636979B2 (ja) * 2005-09-09 2011-02-23 キヤノン株式会社 撮像装置及びその制御方法
JP4890054B2 (ja) * 2006-03-03 2012-03-07 株式会社リコー 画像形成装置および相反則不軌を低減させた画像形成方法
JP5543254B2 (ja) * 2010-03-31 2014-07-09 株式会社トプコン レーザ走査型撮影装置
CN103091778B (zh) * 2013-01-25 2014-12-31 中国科学院半导体研究所 双全息曝光制备量子级联激光器掩埋双周期光栅方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008228190A (ja) * 2007-03-15 2008-09-25 Sharp Corp 原稿読取装置およびそれを備えた画像形成装置
CN103118230A (zh) * 2013-02-28 2013-05-22 腾讯科技(深圳)有限公司 一种全景图像采集方法、装置以及系统
CN103179331A (zh) * 2013-04-18 2013-06-26 华中科技大学 一种快速成像的扫描采样和图像处理方法
CN104469112A (zh) * 2014-12-01 2015-03-25 大族激光科技产业集团股份有限公司 大视场的成像方法及装置
CN104469077A (zh) * 2014-12-03 2015-03-25 北京彩艺世纪科技有限公司 扫描仪及扫描方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225542A (zh) * 2022-07-20 2022-10-21 北京京东乾石科技有限公司 视频信息处理方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN106612382B (zh) 2023-06-30
CN106612382A (zh) 2017-05-03

Similar Documents

Publication Publication Date Title
US10958820B2 (en) Intelligent interface for interchangeable sensors
RU2634907C2 (ru) Метод и устройство для получения фотографии
EP2461592B1 (en) A timing solution for projector camera devices and systems
US20090278965A1 (en) High-speed photographing apparatus using plural cameras
JP2018011327A (ja) 電子機器および表示方法
JP2015115839A5 (zh)
US10447919B2 (en) Imaging device, external device, imaging system, imaging method, operating method, and computer-readable recording medium
WO2016115805A1 (zh) 拍摄方法、拍摄装置、移动终端及计算机存储介质
JP7731702B2 (ja) 情報処理装置、情報処理方法およびプログラム
CN108063909A (zh) 视频会议系统、图像跟踪采集方法及装置
CN103985157A (zh) 一种结构光三维扫描方法及系统
JP2016012846A (ja) 撮像装置、その制御方法、および制御プログラム
WO2015192579A1 (zh) 污垢检测方法及装置
RU2635873C2 (ru) Способ и устройство для отображения информации кадрирования
US20070013807A1 (en) Digital camera
JP5397078B2 (ja) 撮像装置
JP2014175723A (ja) 撮像画像表示装置、撮像システム、撮像画像表示方法およびプログラム
WO2017114252A1 (zh) 一种采集静态图像的方法及装置
CN103139457B (zh) 一种图像获得控制方法及电子设备
CN107667522B (zh) 形成活动图像的方法和装置
JP2013162348A (ja) 撮像装置
US10686991B2 (en) Techniques for improving photograph quality for fouled lens or sensor situations
JP2023063765A (ja) 画像処理装置、画像処理方法、画像処理システム、およびプログラム
JP2017017444A (ja) 撮像装置およびその制御方法、プログラムならびにシステム
CN109218596B (zh) 动态拍照方法、装置及终端

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: 16881041

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16881041

Country of ref document: EP

Kind code of ref document: A1