WO2017080237A1 - Camera imaging method and camera device - Google Patents

Camera imaging method and camera device Download PDF

Info

Publication number
WO2017080237A1
WO2017080237A1 PCT/CN2016/089030 CN2016089030W WO2017080237A1 WO 2017080237 A1 WO2017080237 A1 WO 2017080237A1 CN 2016089030 W CN2016089030 W CN 2016089030W WO 2017080237 A1 WO2017080237 A1 WO 2017080237A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
scene
area
data
image
Prior art date
Application number
PCT/CN2016/089030
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
Application filed by 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017080237A1 publication Critical patent/WO2017080237A1/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/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Definitions

  • the embodiments of the present application relate to the field of electronic technologies, and in particular, to a camera imaging method and a camera device.
  • the camera in the smartphone can move the lens to different positions by using an Auto Focus (AF) algorithm to calculate the sharpness at the current position, and the position with the best definition as the final imaging position.
  • the lens is then placed in the imaging position for imaging.
  • the AF algorithm captures the sharpness of each region by dividing the image into multiple regions, but in reality each region may contain multiple scenes on the focus, which will affect the final definition calculation and can only be selected.
  • the image is imaged at the best position, and the image of the other focus is blurred, which makes the camera less effective.
  • the embodiment of the present application provides a camera imaging method and a camera device, which are used to solve the problem that the camera currently has an image blur through the AF algorithm and the imaging effect is poor.
  • an embodiment of the present application provides a camera imaging method, including:
  • the area images corresponding to each area are combined to obtain a target image of the target.
  • an embodiment of the present application provides a camera device, including:
  • An identification module configured to identify, from the collected data, each scene included in the target
  • a first acquiring module configured to acquire contour information corresponding to each scene
  • a dividing module configured to divide the target according to contour information of each scene
  • a second acquiring module configured to adjust a distance between the image sensor and the target, and obtain an imaging position with the best definition corresponding to each region
  • Extracting a module configured to extract an area image of the imaging position corresponding to each area
  • a merging module configured to merge the area images corresponding to each area to obtain a target image of the target.
  • embodiments of the present application provide a camera apparatus, including a memory, one or more processors, and one or more programs, wherein the one or more programs are executed by the one or more processors Performing the following operations: collecting data by the image sensor to be photographed; identifying each scene included in the target from the collected data; acquiring contour information corresponding to each scene; and according to contour information of each scene Performing area division on the target; adjusting a distance between the image sensor and the target, acquiring an imaging position with the best definition corresponding to each area; and extracting an area image of the imaging position corresponding to each area And merging the area images corresponding to each area to obtain a target image of the target.
  • embodiments of the present application provide a computer readable storage medium having computer executable instructions stored thereon, the computer executable instructions causing a camera device to perform an operation in response to execution, the operation
  • the method includes: collecting data of an object to be photographed by an image sensor; identifying each scene included in the object from the collected data; acquiring contour information corresponding to each scene; and performing the target according to contour information of each scene Dividing a region; adjusting a distance between the image sensor and the target, acquiring an image forming position corresponding to the sharpness corresponding to each region; extracting an image of the region at the imaging position corresponding to each region; The region images corresponding to the regions are merged to obtain a target image of the target.
  • the camera imaging method and the camera device of the embodiment of the present invention perform data collection on a target to be photographed, identify each scene included in the target from the collected data, and obtain contour information corresponding to each scene, according to each scene.
  • the contour information divides the target into regions, adjusts a distance between the lens and the target, acquires an image forming position with the best definition corresponding to each region, and extracts an image of the region at the imaging position corresponding to each region. And combining the area images corresponding to each area to obtain a target image of the target.
  • the region is divided by the scene contour, and the clearest region image in each region is taken out of the final image of the synthetic target, so that the final image is more clear and sharp, and the scene inside the target can be clearly presented.
  • FIG. 1 is a schematic flow chart of a camera imaging method according to Embodiment 1 of the present application.
  • FIG. 2 is a schematic flow chart of a camera imaging method according to Embodiment 2 of the present application.
  • FIG. 3 is a schematic structural diagram of a camera device according to Embodiment 3 of the present application.
  • FIG. 4 is a schematic structural diagram of a camera device according to Embodiment 4 of the present application.
  • FIG. 5 is a schematic structural diagram of still another embodiment of a camera device provided by the present application.
  • FIG. 6 is a schematic structural diagram of an embodiment of a computer program product for camera imaging provided by the present application.
  • FIG. 1 it is a schematic flowchart of a camera imaging method according to Embodiment 1 of the present application, and the camera imaging method includes:
  • Step 101 Perform data collection on an object to be photographed by an image sensor.
  • the camera icon can be clicked on the touch screen to generate an instruction to the smart phone, and after the smart phone detects the click operation, the camera can be started to perform the photographing mode.
  • the image sensor in the camera can perform data collection on the target to be photographed.
  • the user can point the camera of the camera to the target to be photographed, and the camera will collect data from the target.
  • Step 102 Identify each scene included in the target from the collected data.
  • Step 103 Obtain contour information corresponding to each scene.
  • the image signal processor After receiving the data collected by the image sensor, the image signal processor (Image Signal Processing, ISP for short) analyzes the collected data, and can identify each scene contained in the target from the target. After recognizing each scene, the camera can extract the contours of each scene through the ISP, and then obtain contour information corresponding to each scene.
  • ISP Image Signal Processing
  • Step 104 Perform area division on the target according to contour information of each scene.
  • the camera no longer divides the target to be imaged by vertically and horizontally dividing the data, but divides the position where each scene is located into one area. After acquiring the contour information of each scene, the camera can determine the location of each scene and the area covered, thereby completing the area division of the target to be photographed.
  • Step 105 Adjust a distance between the image sensor and the target, and obtain an imaging position with the best definition corresponding to each region.
  • the user can adjust the position between the image sensor and the target to be photographed to adjust the distance between the two.
  • the focal length between the camera and the target changes.
  • the corresponding sharpness of each area changes.
  • Step 106 Extract an area image on the imaging position corresponding to each area.
  • Step 107 Combine the area images corresponding to each area to obtain a target image of the target.
  • the camera can acquire an area image of each area at the imaging position with the best definition, and extract the area image corresponding to each area. Further, the camera combines the extracted region images corresponding to each region to obtain a target image of the target to be photographed.
  • the camera imaging method provided by the embodiment collects data of an object to be photographed by an image sensor, identifies each scene included in the object from the collected data, and acquires contour information corresponding to each scene, according to contour information of each scene. Divide the target into regions, adjust the distance between the image sensor and the target, obtain the optimal imaging position corresponding to each region, and extract the region image at the imaging position corresponding to each region, corresponding to each region. The area images are merged to obtain the target image of the target.
  • the target is divided into regions by the contour of the scene, and the clearest region image of each region is taken out of the final image of the composite target, so that the final image is more clear and sharp, and the scene inside the target can be clearly presented.
  • FIG. 2 is a schematic flowchart diagram of a camera imaging method according to Embodiment 2 of the present application, where the camera imaging method includes:
  • Step 201 Perform data collection on an object to be photographed by an image sensor.
  • the image sensor in the camera can perform data collection on the target to be photographed. Specifically, the user can point the camera of the camera to the target to be photographed, and the camera will collect data from the target.
  • Step 202 Perform binarization processing on the collected data according to the set threshold to generate matrix data.
  • the camera first sets the threshold used for binarization according to the Tuning parameter through the built-in ISP, and then uses the threshold to binarize the collected data to generate matrix data. Specifically, the camera compares the binarized data with a threshold table, and sets the binarized data greater than or equal to the threshold to 1 and will be smaller than The binarized data of the threshold is set to 0 to generate matrix data.
  • Step 203 Perform continuity identification on the matrix data and save area information of the continuous area.
  • the value is 1 and the top and bottom left and right coordinates of the coordinate with the value 1 and the pixel position of the upper left, lower right, upper right and lower right are searched, and the adjacent pixel points are found in the matrix data.
  • the value in all is 1, the position where these pixels are located is set as a continuous area, and the area information is saved.
  • Step 204 Filter out the area information corresponding to each scene included in the target.
  • the area information of each scene included in the target to be photographed may be filtered out, and the scenes in the middle target may be identified by the area information.
  • Step 205 Scan the area information of each scene to obtain the boundary value of each scene, and form the contour information of each scene.
  • Step 206 Perform area division on the target according to contour information of each scene.
  • the target After obtaining the contour information of each scene, the target can be divided according to the contour information, and each scene is an area.
  • Step 207 Adjust a distance between the image sensor and the target, and obtain an imaging position with the best definition corresponding to each region.
  • the user can adjust the distance between the camera and the target. After the distance changes, the corresponding sharpness of each area changes, so that the optimal resolution position corresponding to each area can be obtained. .
  • the high-frequency data of each region and the region weights are used for the calculation of the sharpness.
  • Step 208 Extract an area image of the imaging position corresponding to each area.
  • Step 209 Combine the area images corresponding to each area to obtain a target image of the target.
  • the embodiment further provides a program for executing the above method, the program is as follows:
  • the camera imaging method provided by the embodiment collects data of an object to be photographed by an image sensor, identifies each scene included in the object from the collected data, and acquires contour information corresponding to each scene, according to contour information of each scene. Divide the target into regions, adjust the distance between the image sensor and the target, obtain the optimal imaging position corresponding to each region, and extract the region image at the imaging position corresponding to each region, corresponding to each region. The area images are merged to obtain the target image of the target.
  • the target is divided into regions by the contour of the scene, and the clearest region image of each region is taken out of the final image of the synthetic target, so that the final imaging is more clear and sharp, and the scene inside the target can be clearly presented, and finally the focus is successful. The probability becomes larger, effectively reducing the probability of failure of focusing.
  • FIG. 3 is a schematic structural diagram of a camera device according to Embodiment 3 of the present application.
  • the device includes: an acquisition module 11, an identification module 12, a first acquisition module 13, a division module 14 a second acquisition module 15, an extraction module 16, and a merge module 17.
  • the acquisition module 11 is configured to perform data collection on a target to be photographed.
  • the identification module 12 is configured to identify each scene included in the target from the collected data.
  • the first obtaining module 13 is configured to acquire contour information corresponding to each scene.
  • the dividing module 14 is configured to divide the target into regions according to the contour information of each scene.
  • the second obtaining module 15 is configured to adjust a distance between the image sensor and the target, and obtain an imaging position with the best definition corresponding to each region.
  • the extracting module 16 is configured to extract an area image on the imaging position corresponding to each area.
  • the merging module 17 is configured to combine the area images corresponding to each area to obtain a target image of the target.
  • the function modules of the camera device provided in this embodiment can be used to execute the process of the camera imaging method shown in FIG. 1.
  • the specific working principle is not described again. For details, refer to the description of the method embodiment.
  • the camera device collects data of an object to be photographed by an image sensor, identifies each scene included in the object from the collected data, and acquires contour information corresponding to each scene, according to contour information of each scene.
  • the target is divided into regions, the distance between the image sensor and the target is adjusted, the optimal imaging position corresponding to each region is obtained, and the region image at the imaging position corresponding to each region is extracted, and each region corresponds to The area images are merged to obtain the target image of the target.
  • the target is divided into regions by the contour of the scene, and the clearest region image of each region is taken out of the final image of the composite target, so that the final image is more clear and sharp, and the scene inside the target can be clearly presented.
  • FIG. 6 it is a schematic structural diagram of a camera device according to Embodiment 4 of the present application.
  • the device includes the acquisition module 11 , the identification module 12 , the first acquisition module 13 , and the second acquisition module of the partition module 14 in the third embodiment. 15. Extract module 16 and merge module 17.
  • the optional implementation structure of the identification module 12 includes: a generating unit 121, an identifying unit 122, and a screening unit 123.
  • the generating unit 121 is configured to perform binarization processing on the collected data according to the set threshold to generate matrix data.
  • the identifying unit 122 is configured to perform continuity identification on the matrix data and save area information of the continuous area.
  • the filtering unit 123 is configured to filter out the area information corresponding to each scene included in the target.
  • the first acquiring module 13 scans the area information of each scene in a specific row to obtain a boundary value of each scene, and forms the contour information of each scene.
  • the generating unit 121 is specifically configured to compare the binarized data with the threshold, and set the binarized data greater than or equal to the threshold to 1 and to be smaller than Data setting after binarization of the threshold The matrix data is generated for 0.
  • the identifying unit is specifically configured to find all the second pixel points adjacent to the first pixel point in the matrix data to generate the continuous region; wherein the first pixel point is a value in the matrix data 1 corresponding pixel, the value of the second pixel in the matrix data is 1.
  • the function modules of the camera device provided in this embodiment can be used to perform the process of the camera imaging method shown in FIG. 1 and FIG. 2, and the specific working principle is not described again. For details, refer to the description of the method embodiment.
  • the camera device collects data of an object to be photographed by an image sensor, identifies each scene included in the object from the collected data, and acquires contour information corresponding to each scene, according to contour information of each scene.
  • the target is divided into regions, the distance between the image sensor and the target is adjusted, the optimal imaging position corresponding to each region is obtained, and the region image at the imaging position corresponding to each region is extracted, and each region corresponds to The area images are merged to obtain the target image of the target.
  • the target is divided into regions by the contour of the scene, and the clearest region image of each region is taken out of the final image of the composite target, so that the final image is more clear and sharp, and the scene inside the target can be clearly presented.
  • the probability of successful focus is increased, which effectively reduces the probability of failure of focus.
  • FIG. 5 is a schematic structural diagram of still another embodiment of a camera device provided by the present application.
  • the camera device of the embodiment of the present application includes a memory 61, one or more processors 62, and one or more programs 63.
  • the one or more programs 63 when executed by one or more processors 62, perform any of the above-described embodiments.
  • the camera device of the embodiment of the present invention collects data of a target to be photographed, identifies each scene included in the target from the collected data, acquires contour information corresponding to each scene, and compares the contour information of each scene.
  • the target is divided into regions, and the distance between the lens and the target is adjusted to obtain the best resolution imaging position corresponding to each region. And extracting the image of the area at the imaging position corresponding to each area, and combining the area images corresponding to each area to obtain a target image of the target.
  • the region is divided by the scene contour, and the clearest region image in each region is taken out of the final image of the synthetic target, so that the final image is more clear and sharp, and the scene inside the target can be clearly presented.
  • FIG. 6 is a schematic structural diagram of an embodiment of a computer program product for camera imaging provided by the present application.
  • the computer program product 71 for camera imaging of the embodiment of the present application may include a signal bearing medium 72.
  • Signal bearing medium 72 may include one or more instructions 73 that, when executed by, for example, a processor, may provide the functionality described above with respect to Figures 1-4.
  • the instructions 73 can include: one or more instructions for data acquisition by the image sensor of the object to be captured; for identifying one or more of the scenes included in the target from the collected data One or more instructions for acquiring contour information corresponding to each scene; one or more instructions for dividing the target according to contour information of each scene; for adjusting the image sensor and the a distance between the targets, one or more instructions for obtaining a sharpest imaged position corresponding to each region; one or more instructions for extracting an image of the region at the imaged position corresponding to each region; And one or more instructions for combining the region images corresponding to each region to obtain a target image of the target.
  • the camera device can perform one or more of the steps shown in FIG. 1 in response to instruction 73.
  • signal bearing medium 72 can include computer readable media 74 such as, but not limited to, a hard disk drive, a compact disk (CD), a digital versatile disk (DVD), a digital tape, a memory, and the like.
  • the signal bearing medium 72 can include a recordable medium 75 such as, but not limited to, a memory, a read/write (R/W) CD, an R/W DVD, and the like.
  • the signal bearing medium 72 can include a communication medium 76 such as, but not limited to, a digital and/or analog communication medium (eg, fiber optic cable, waveguide, wired communication link, wireless communication link, etc.).
  • computer program product 71 can One or more modules that are transmitted to the identification device of the multi-finger swipe gesture by the RF signal bearing medium 72, wherein the signal bearing medium 72 is transmitted by a wireless communication medium (eg, a wireless communication medium compliant with the IEEE 802.11 standard).
  • a wireless communication medium eg, a wireless communication medium compliant with the IEEE 802.11 standard.
  • the computer program product of the embodiment of the present invention acquires the position coordinates of the corresponding touch point when the touch operation on the screen of the terminal device is detected, and corrects the position coordinates of the touch point according to the preset correction rule, and the corrected The position coordinates of the touch point are used for report output.
  • the computer program product of the embodiment of the invention ensures that the user accurately triggers the corresponding operation by correcting the screen report point.

Abstract

Provided in embodiments of the present application are a camera imaging method and camera device. An image sensor collects data of a shooting target, identifies all objects included in the target from the collected data, acquires profile information corresponding to each object, divides the target into regions according to the profile information of each object, adjusts the distance between the image sensor and the target to acquire an imaging position corresponding to each region at which the sharpness is highest, extracts a regional image on the imaging position corresponding to each region, and merges the regional images corresponding to each region to obtain a target image of the target. The embodiment of the present application divides the target into regions by the profiles of the objects and extracts the most clear regional image of each region to synthesize a final image of the target, such that the final image is clearer and sharper, and the objects inside the target can all be presented clearly.

Description

相机成像方法及相机装置Camera imaging method and camera device
本专利申请要求申请日为2015年11月15日、申请号为2015107863548的中国专利申请的优先权,并将上述专利申请以引用的方式全文引入本文中。The present application claims priority to Chinese Patent Application No. 2015.
技术领域Technical field
本申请实施例涉及电子技术领域,尤其涉及一种相机成像方法及相机装置。The embodiments of the present application relate to the field of electronic technologies, and in particular, to a camera imaging method and a camera device.
背景技术Background technique
目前智能手机逐渐融入到了人们日常生活之中,不但成为日常通讯设备,也成为日常易于携带的娱乐设备。智能手机中相机的配置越来越高,基于智能手机的便携性,用户越来越喜欢用智能手机上的相机进行拍照。At present, smart phones are gradually integrated into people's daily lives, which not only become daily communication devices, but also become everyday easy-to-carry entertainment devices. The configuration of cameras in smartphones is getting higher and higher. Based on the portability of smartphones, users are more and more fond of taking pictures with cameras on smartphones.
一般,智能手机中的相机可以通过自动对焦(Automatic Focus,简称AF)算法将镜头移动到不同位置上,从而计算得到当前位置上的清晰度,将清晰度最好的位置作为最终的成像位置,然后将镜头放到该成像位置上进行成像。而AF算法通过将图像纵横分成多个区域,获取各区域的清晰度,但实际上每个区域中可能包含多个焦点上的景物,会对最终清晰度的计算产生影响,而且只能选取的清晰度最好的位置上成像,而其它焦点上的景物图像会变模糊,这样就会使得相机的成像效果较差。Generally, the camera in the smartphone can move the lens to different positions by using an Auto Focus (AF) algorithm to calculate the sharpness at the current position, and the position with the best definition as the final imaging position. The lens is then placed in the imaging position for imaging. The AF algorithm captures the sharpness of each region by dividing the image into multiple regions, but in reality each region may contain multiple scenes on the focus, which will affect the final definition calculation and can only be selected. The image is imaged at the best position, and the image of the other focus is blurred, which makes the camera less effective.
发明内容Summary of the invention
本申请实施例提供一种相机成像方法及相机装置,用于解决相机当前通过AF算法进行成像存在的景物图像模糊,成像效果较差的问题。The embodiment of the present application provides a camera imaging method and a camera device, which are used to solve the problem that the camera currently has an image blur through the AF algorithm and the imaging effect is poor.
为了实现上述目的,本申请实施例提供了一种相机成像方法,包括:In order to achieve the above object, an embodiment of the present application provides a camera imaging method, including:
通过图像传感器对待拍摄的目标进行数据采集; Data acquisition by the image sensor to be photographed;
从所采集的数据中识别出所述目标中所包含的各景物;Identifying each scene contained in the target from the collected data;
获取各景物对应的轮廓信息;Obtaining contour information corresponding to each scene;
根据各景物的轮廓信息对所述目标进行区域划分;Dividing the target according to the contour information of each scene;
调整所述图像传感器与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置;Adjusting a distance between the image sensor and the target, and obtaining an imaging position with the best definition corresponding to each region;
抽取每个区域所对应的所述成像位置上的区域图像;Extracting an image of the area on the imaging position corresponding to each area;
将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。The area images corresponding to each area are combined to obtain a target image of the target.
为了实现上述目的,本申请实施例提供了一种相机装置,包括:In order to achieve the above object, an embodiment of the present application provides a camera device, including:
采集模块,用于对待拍摄的目标进行数据采集;An acquisition module for data collection of a target to be photographed;
识别模块,用于从所采集的数据中识别出所述目标中所包含的各景物;An identification module, configured to identify, from the collected data, each scene included in the target;
第一获取模块,用于获取各景物对应的轮廓信息;a first acquiring module, configured to acquire contour information corresponding to each scene;
划分模块,用于根据各景物的轮廓信息对所述目标进行区域划分;a dividing module, configured to divide the target according to contour information of each scene;
第二获取模块,用于调整所述图像传感器与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置;a second acquiring module, configured to adjust a distance between the image sensor and the target, and obtain an imaging position with the best definition corresponding to each region;
抽取模块,用于抽取每个区域所对应的所述成像位置上的区域图像;Extracting a module, configured to extract an area image of the imaging position corresponding to each area;
合并模块,用于将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。And a merging module, configured to merge the area images corresponding to each area to obtain a target image of the target.
另一方面,本申请实施例提供一种相机装置,包括存储器、一个或多个处理器以及一个或多个程序,其中,所述一个或多个程序在由所述一个或多个处理器执行时执行下述操作:通过图像传感器对待拍摄的目标进行数据采集;从所采集的数据中识别出所述目标中所包含的各景物;获取各景物对应的轮廓信息;根据各景物的轮廓信息对所述目标进行区域划分;调整所述图像传感器与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置;抽取每个区域所对应的所述成像位置上的区域图像;将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。 In another aspect, embodiments of the present application provide a camera apparatus, including a memory, one or more processors, and one or more programs, wherein the one or more programs are executed by the one or more processors Performing the following operations: collecting data by the image sensor to be photographed; identifying each scene included in the target from the collected data; acquiring contour information corresponding to each scene; and according to contour information of each scene Performing area division on the target; adjusting a distance between the image sensor and the target, acquiring an imaging position with the best definition corresponding to each area; and extracting an area image of the imaging position corresponding to each area And merging the area images corresponding to each area to obtain a target image of the target.
另一方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机可执行指令,所述计算机可执行指令响应于执行使得相机装置执行操作,所述操作包括:通过图像传感器对待拍摄的目标进行数据采集;从所采集的数据中识别出所述目标中所包含的各景物;获取各景物对应的轮廓信息;根据各景物的轮廓信息对所述目标进行区域划分;调整所述图像传感器与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置;抽取每个区域所对应的所述成像位置上的区域图像;将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。In another aspect, embodiments of the present application provide a computer readable storage medium having computer executable instructions stored thereon, the computer executable instructions causing a camera device to perform an operation in response to execution, the operation The method includes: collecting data of an object to be photographed by an image sensor; identifying each scene included in the object from the collected data; acquiring contour information corresponding to each scene; and performing the target according to contour information of each scene Dividing a region; adjusting a distance between the image sensor and the target, acquiring an image forming position corresponding to the sharpness corresponding to each region; extracting an image of the region at the imaging position corresponding to each region; The region images corresponding to the regions are merged to obtain a target image of the target.
本申请实施例的相机成像方法及相机装置,对待拍摄的目标进行数据采集,从所采集的数据中识别出所述目标中所包含的各景物,获取各景物对应的轮廓信息,根据各景物的轮廓信息对所述目标进行区域划分,调整镜头与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置,抽取每个区域所对应的所述成像位置上的区域图像,将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。本申请实施例通过景物轮廓进行区域划分,将每个区域中最清晰的区域图像取出合成目标的最终图像,使得最终成像更加清晰锐利,且目标内部的景物都可清晰呈现。The camera imaging method and the camera device of the embodiment of the present invention perform data collection on a target to be photographed, identify each scene included in the target from the collected data, and obtain contour information corresponding to each scene, according to each scene. The contour information divides the target into regions, adjusts a distance between the lens and the target, acquires an image forming position with the best definition corresponding to each region, and extracts an image of the region at the imaging position corresponding to each region. And combining the area images corresponding to each area to obtain a target image of the target. In the embodiment of the present application, the region is divided by the scene contour, and the clearest region image in each region is taken out of the final image of the synthetic target, so that the final image is more clear and sharp, and the scene inside the target can be clearly presented.
附图说明DRAWINGS
图1为本申请实施例一的相机成像方法的流程示意图;1 is a schematic flow chart of a camera imaging method according to Embodiment 1 of the present application;
图2为本申请实施例二的相机成像方法的流程示意图;2 is a schematic flow chart of a camera imaging method according to Embodiment 2 of the present application;
图3为本申请实施例三的相机装置的结构示意图;3 is a schematic structural diagram of a camera device according to Embodiment 3 of the present application;
图4为本申请实施例四的相机装置的结构示意图;4 is a schematic structural diagram of a camera device according to Embodiment 4 of the present application;
图5为本申请提供的相机装置又一个实施例的结构示意图;FIG. 5 is a schematic structural diagram of still another embodiment of a camera device provided by the present application; FIG.
图6为本申请提供的用于相机成像的计算机程序产品一个实施例的结构示意图。FIG. 6 is a schematic structural diagram of an embodiment of a computer program product for camera imaging provided by the present application.
具体实施方式detailed description
下面结合附图对本申请实施例提供的相机成像方法及相机装置 进行详细描述。The camera imaging method and the camera device provided by the embodiments of the present application are described below with reference to the accompanying drawings. Carry out a detailed description.
实施例一Embodiment 1
如图1所示,其为本申请实施例一的相机成像方法的流程示意图,该相机成像方法包括:As shown in FIG. 1 , it is a schematic flowchart of a camera imaging method according to Embodiment 1 of the present application, and the camera imaging method includes:
步骤101、通过图像传感器对待拍摄的目标进行数据采集。Step 101: Perform data collection on an object to be photographed by an image sensor.
具体地,在用户试图拍照时可以通过点击触摸屏上的相机图标向智能手机发生指令,智能手机探测到该点击操作后,就可以启动相机进行拍照模式。本实施例中,相机中的图像传感器可以对待拍摄的目标进行数据采集,具体地,用户可以将相机的摄像头对准待拍摄的目标,摄像头就会对待拍摄目标进行数据采集。Specifically, when the user attempts to take a photo, the camera icon can be clicked on the touch screen to generate an instruction to the smart phone, and after the smart phone detects the click operation, the camera can be started to perform the photographing mode. In this embodiment, the image sensor in the camera can perform data collection on the target to be photographed. Specifically, the user can point the camera of the camera to the target to be photographed, and the camera will collect data from the target.
步骤102、从所采集的数据中识别出所述目标中所包含的各景物。Step 102: Identify each scene included in the target from the collected data.
步骤103、获取各景物对应的轮廓信息。Step 103: Obtain contour information corresponding to each scene.
相机中的图形信号处理器(Image Signal Processing,简称ISP)接收到图像传感器采集的数据后,对采集的数据进行分析,可以从目标中识别出该目标中所包含的各景物。在识别出各景物后,相机可以通过ISP对各景物的轮廓进行抽取,进而得到各景物对应的轮廓信息。After receiving the data collected by the image sensor, the image signal processor (Image Signal Processing, ISP for short) analyzes the collected data, and can identify each scene contained in the target from the target. After recognizing each scene, the camera can extract the contours of each scene through the ISP, and then obtain contour information corresponding to each scene.
步骤104、根据各景物的轮廓信息对所述目标进行区域划分。Step 104: Perform area division on the target according to contour information of each scene.
本实施例中,相机不再通过将数据进行纵横切分的方式对待拍摄目标进行区域划分,而是将每个景物所处的位置划分为一个区域。相机在获取到各景物的轮廓信息后,能够确定出每个景物所处的位置以及所覆盖的区域,进而完成对待拍摄目标的区域划分。In this embodiment, the camera no longer divides the target to be imaged by vertically and horizontally dividing the data, but divides the position where each scene is located into one area. After acquiring the contour information of each scene, the camera can determine the location of each scene and the area covered, thereby completing the area division of the target to be photographed.
步骤105、调整所述图像传感器与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置。Step 105: Adjust a distance between the image sensor and the target, and obtain an imaging position with the best definition corresponding to each region.
在完成区域划分后,用户可以调整图像传感器即摄像头与待拍摄目标之间的位置,以调整两者之间的距离,每当距离发生变化后,摄像头与目标之间的焦距就会发生变化,这样每个区域对应的清晰度就会发生变化,通过不断调整目标与摄像头之间的距离,可以获取到每个区域对应的清晰度最佳的成像位置,在该清晰度最佳的成像位置上,每个区域成像效果是最佳的。 After the area division is completed, the user can adjust the position between the image sensor and the target to be photographed to adjust the distance between the two. When the distance changes, the focal length between the camera and the target changes. In this way, the corresponding sharpness of each area changes. By continuously adjusting the distance between the target and the camera, the image center with the best definition corresponding to each area can be obtained, and the image forming position with the best definition is obtained. The imaging effect of each area is optimal.
步骤106、抽取每个区域所对应的所述成像位置上的区域图像。Step 106: Extract an area image on the imaging position corresponding to each area.
步骤107、将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。Step 107: Combine the area images corresponding to each area to obtain a target image of the target.
通过多次调整摄像头和目标之间的距离,相机就可以获取到每个区域在清晰度最佳的成像位置上的区域图像,对每个区域对应的区域图像进行抽取。进一步地,相机将抽取出的每个区域所对应的区域图像进行合并,就可以得到待拍摄目标的目标图像。By adjusting the distance between the camera and the target multiple times, the camera can acquire an area image of each area at the imaging position with the best definition, and extract the area image corresponding to each area. Further, the camera combines the extracted region images corresponding to each region to obtain a target image of the target to be photographed.
本实施例提供的相机成像方法,通过图像传感器对待拍摄的目标进行数据采集,从所采集的数据中识别出目标中所包含的各景物,获取各景物对应的轮廓信息,根据各景物的轮廓信息对目标进行区域划分,调整图像传感器与目标之间的距离,获取每个区域对应的清晰度最佳的成像位置,抽取每个区域所对应的成像位置上的区域图像,将每个区域所对应的区域图像进行合并,得到目标的目标图像。本实施例通过景物轮廓对目标进行区域划分,将每个区域的最清晰的区域图像取出合成目标的最终图像,使得最终成像更加清晰锐利,且目标内部的景物都可清晰呈现。The camera imaging method provided by the embodiment collects data of an object to be photographed by an image sensor, identifies each scene included in the object from the collected data, and acquires contour information corresponding to each scene, according to contour information of each scene. Divide the target into regions, adjust the distance between the image sensor and the target, obtain the optimal imaging position corresponding to each region, and extract the region image at the imaging position corresponding to each region, corresponding to each region. The area images are merged to obtain the target image of the target. In this embodiment, the target is divided into regions by the contour of the scene, and the clearest region image of each region is taken out of the final image of the composite target, so that the final image is more clear and sharp, and the scene inside the target can be clearly presented.
实施例二 Embodiment 2
如图2所示,其为本申请实施例二的相机成像方法的流程示意图,该相机成像方法包括:FIG. 2 is a schematic flowchart diagram of a camera imaging method according to Embodiment 2 of the present application, where the camera imaging method includes:
步骤201、通过图像传感器对待拍摄的目标进行数据采集。Step 201: Perform data collection on an object to be photographed by an image sensor.
本实施例中,相机中的图像传感器可以对待拍摄的目标进行数据采集,具体地,用户可以将相机的摄像头对准待拍摄的目标,摄像头就会对待拍摄目标进行数据采集。In this embodiment, the image sensor in the camera can perform data collection on the target to be photographed. Specifically, the user can point the camera of the camera to the target to be photographed, and the camera will collect data from the target.
步骤202、根据设定的阈值对所采集的数据进行二值化处理,生成矩阵数据。Step 202: Perform binarization processing on the collected data according to the set threshold to generate matrix data.
相机通过内置的ISP首先根据调整(Tuning)参数设定二值化使用的阈值,然后使用该阈值对所采集的数据进行二值化处理,以生成矩阵数据。具体地,相机将二值化处理后的数据与阈值表进行比较,通过将大于或者等于阈值的二值化处理后的数据设置为1以及将小于 所述阈值的二值化处理后的数据设置为0生成矩阵数据。The camera first sets the threshold used for binarization according to the Tuning parameter through the built-in ISP, and then uses the threshold to binarize the collected data to generate matrix data. Specifically, the camera compares the binarized data with a threshold table, and sets the binarized data greater than or equal to the threshold to 1 and will be smaller than The binarized data of the threshold is set to 0 to generate matrix data.
步骤203、对所述矩阵数据进行连续性识别并保存连续区域的区域信息。Step 203: Perform continuity identification on the matrix data and save area information of the continuous area.
查找与所述矩阵数据中的第一像素点相邻的所有第二像素点生成所述连续区域;其中第一像素点为所述矩阵数据中数值为1所对应的像素点,所述第二像素点在所述矩阵数据中的数值为1。Searching for all the second pixels adjacent to the first pixel in the matrix data to generate the continuous region; wherein the first pixel is a pixel corresponding to a value of 1 in the matrix data, the second The value of the pixel in the matrix data is 1.
也就是说,在矩阵数据中将数值为1且与该数值为1的坐标的上下左右,及左上左下右上右下相邻的像素点位置查找,当查找出的相邻的像素点在矩阵数据中的数值均为1时,将这些像素点所在的位置设定为连续区域,并且保存该区域信息。That is to say, in the matrix data, the value is 1 and the top and bottom left and right coordinates of the coordinate with the value 1 and the pixel position of the upper left, lower right, upper right and lower right are searched, and the adjacent pixel points are found in the matrix data. When the value in all is 1, the position where these pixels are located is set as a continuous area, and the area information is saved.
步骤204、筛选出所述目标所包含的各景物相应的所述区域信息。Step 204: Filter out the area information corresponding to each scene included in the target.
进一步地,在获取到所有的连续区域对应的区域信息后,可以从中筛选去待拍摄目标所包含的各景物的区域信息,通过该区域信息就可以识别中目标中的各景物。Further, after acquiring the area information corresponding to all the continuous areas, the area information of each scene included in the target to be photographed may be filtered out, and the scenes in the middle target may be identified by the area information.
步骤205、行列扫描各景物的所述区域信息得到各景物的边界值,形成各景物的所述轮廓信息。Step 205: Scan the area information of each scene to obtain the boundary value of each scene, and form the contour information of each scene.
步骤206、根据各景物的轮廓信息对所述目标进行区域划分。Step 206: Perform area division on the target according to contour information of each scene.
在获取到各景物的轮廓信息后,根据轮廓信息就可以对目标进行区域划分,每个景物为一个区域。After obtaining the contour information of each scene, the target can be divided according to the contour information, and each scene is an area.
步骤207、调整所述图像传感器与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置。Step 207: Adjust a distance between the image sensor and the target, and obtain an imaging position with the best definition corresponding to each region.
用户可以通过不断移动摄像头,以调整摄像头与目标之间的距离,在距离变化后每个区域对应的清晰度就会发生了变化,从而能获取到每个区域对应的清晰度最佳的成像位置。本实施例中,在获取对目标的各景物进行轮廓划分成区域后,使用每个区域的高频数据与区域权重进行清晰度的计算。By constantly moving the camera, the user can adjust the distance between the camera and the target. After the distance changes, the corresponding sharpness of each area changes, so that the optimal resolution position corresponding to each area can be obtained. . In this embodiment, after the contours of the respective objects of the target are obtained and divided into regions, the high-frequency data of each region and the region weights are used for the calculation of the sharpness.
步骤208、抽取每个区域所对应的所述成像位置上的区域图像。Step 208: Extract an area image of the imaging position corresponding to each area.
步骤209、将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。 Step 209: Combine the area images corresponding to each area to obtain a target image of the target.
为了清楚地描述本实施例,本实施例还提供一种用于执行上述方法的程序,程序如下:In order to clearly describe the embodiment, the embodiment further provides a program for executing the above method, the program is as follows:
Figure PCTCN2016089030-appb-000001
Figure PCTCN2016089030-appb-000001
Figure PCTCN2016089030-appb-000002
Figure PCTCN2016089030-appb-000002
Figure PCTCN2016089030-appb-000003
Figure PCTCN2016089030-appb-000003
本实施例提供的相机成像方法,通过图像传感器对待拍摄的目标进行数据采集,从所采集的数据中识别出目标中所包含的各景物,获取各景物对应的轮廓信息,根据各景物的轮廓信息对目标进行区域划分,调整图像传感器与目标之间的距离,获取每个区域对应的清晰度最佳的成像位置,抽取每个区域所对应的成像位置上的区域图像,将每个区域所对应的区域图像进行合并,得到目标的目标图像。本实施例通过景物轮廓对目标进行区域划分,将每个区域的最清晰的区域图像取出合成目标的最终图像,使得最终成像更加清晰锐利,且目标内部的景物都可清晰呈现,最终对焦成功的概率变大,有效降低了对焦的失败概率。The camera imaging method provided by the embodiment collects data of an object to be photographed by an image sensor, identifies each scene included in the object from the collected data, and acquires contour information corresponding to each scene, according to contour information of each scene. Divide the target into regions, adjust the distance between the image sensor and the target, obtain the optimal imaging position corresponding to each region, and extract the region image at the imaging position corresponding to each region, corresponding to each region. The area images are merged to obtain the target image of the target. In this embodiment, the target is divided into regions by the contour of the scene, and the clearest region image of each region is taken out of the final image of the synthetic target, so that the final imaging is more clear and sharp, and the scene inside the target can be clearly presented, and finally the focus is successful. The probability becomes larger, effectively reducing the probability of failure of focusing.
实施例三Embodiment 3
如图3所示,其为本申请实施例三的相机装置的结构示意图。该装置包括:采集模块11、识别模块12、第一获取模块13、划分模块14第二获取模块15、抽取模块16以及合并模块17。FIG. 3 is a schematic structural diagram of a camera device according to Embodiment 3 of the present application. The device includes: an acquisition module 11, an identification module 12, a first acquisition module 13, a division module 14 a second acquisition module 15, an extraction module 16, and a merge module 17.
具体地,采集模块11,用于对待拍摄的目标进行数据采集。Specifically, the acquisition module 11 is configured to perform data collection on a target to be photographed.
识别模块12,用于从所采集的数据中识别出所述目标中所包含的各景物。The identification module 12 is configured to identify each scene included in the target from the collected data.
第一获取模块13,用于获取各景物对应的轮廓信息。The first obtaining module 13 is configured to acquire contour information corresponding to each scene.
划分模块14,用于根据各景物的轮廓信息对所述目标进行区域划分。The dividing module 14 is configured to divide the target into regions according to the contour information of each scene.
第二获取模块15,用于调整所述图像传感器与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置。The second obtaining module 15 is configured to adjust a distance between the image sensor and the target, and obtain an imaging position with the best definition corresponding to each region.
抽取模块16,用于抽取每个区域所对应的所述成像位置上的区域图像。The extracting module 16 is configured to extract an area image on the imaging position corresponding to each area.
合并模块17,用于将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。 The merging module 17 is configured to combine the area images corresponding to each area to obtain a target image of the target.
本实施例提供的相机装置的各功能模块可用于执行图1所示的相机成像方法的流程,其具体工作原理不再赘述,详见方法实施例的描述。The function modules of the camera device provided in this embodiment can be used to execute the process of the camera imaging method shown in FIG. 1. The specific working principle is not described again. For details, refer to the description of the method embodiment.
本实施例提供的相机装置,通过图像传感器对待拍摄的目标进行数据采集,从所采集的数据中识别出目标中所包含的各景物,获取各景物对应的轮廓信息,根据各景物的轮廓信息对目标进行区域划分,调整图像传感器与目标之间的距离,获取每个区域对应的清晰度最佳的成像位置,抽取每个区域所对应的成像位置上的区域图像,将每个区域所对应的区域图像进行合并,得到目标的目标图像。本实施例通过景物轮廓对目标进行区域划分,将每个区域的最清晰的区域图像取出合成目标的最终图像,使得最终成像更加清晰锐利,且目标内部的景物都可清晰呈现。The camera device provided by the embodiment collects data of an object to be photographed by an image sensor, identifies each scene included in the object from the collected data, and acquires contour information corresponding to each scene, according to contour information of each scene. The target is divided into regions, the distance between the image sensor and the target is adjusted, the optimal imaging position corresponding to each region is obtained, and the region image at the imaging position corresponding to each region is extracted, and each region corresponds to The area images are merged to obtain the target image of the target. In this embodiment, the target is divided into regions by the contour of the scene, and the clearest region image of each region is taken out of the final image of the composite target, so that the final image is more clear and sharp, and the scene inside the target can be clearly presented.
实施例四Embodiment 4
如图6所示,其为本申请实施例四的相机装置的结构示意图,该装置包括上述实施例三中的采集模块11、识别模块12、第一获取模块13、划分模块14第二获取模块15、抽取模块16以及合并模块17。As shown in FIG. 6 , it is a schematic structural diagram of a camera device according to Embodiment 4 of the present application. The device includes the acquisition module 11 , the identification module 12 , the first acquisition module 13 , and the second acquisition module of the partition module 14 in the third embodiment. 15. Extract module 16 and merge module 17.
其中,所述识别模块12一种可选的实现结构包括:生成单元121、识别单元122和筛选单元123。The optional implementation structure of the identification module 12 includes: a generating unit 121, an identifying unit 122, and a screening unit 123.
具体地,生成单元121,用于根据设定的阈值对所采集的数据进行二值化处理,生成矩阵数据。Specifically, the generating unit 121 is configured to perform binarization processing on the collected data according to the set threshold to generate matrix data.
识别单元122,用于对所述矩阵数据进行连续性识别并保存连续区域的区域信息。The identifying unit 122 is configured to perform continuity identification on the matrix data and save area information of the continuous area.
筛选单元123,用于筛选出所述目标所包含的各景物相应的所述区域信息。The filtering unit 123 is configured to filter out the area information corresponding to each scene included in the target.
进一步地,所述第一获取模块13,具体行列扫描各景物的所述区域信息得到各景物的边界值,形成各景物的所述轮廓信息。Further, the first acquiring module 13 scans the area information of each scene in a specific row to obtain a boundary value of each scene, and forms the contour information of each scene.
进一步地,所述生成单元121,具体用于将二值化处理后的数据与所述阈值进行比较,以及通过将大于或者等于所述阈值的二值化处理后的数据设置为1以及将小于所述阈值的二值化处理后的数据设置 为0生成所述矩阵数据。Further, the generating unit 121 is specifically configured to compare the binarized data with the threshold, and set the binarized data greater than or equal to the threshold to 1 and to be smaller than Data setting after binarization of the threshold The matrix data is generated for 0.
进一步地,所述识别单元,具体用于查找与所述矩阵数据中的第一像素点相邻的所有第二像素点生成所述连续区域;其中第一像素点为所述矩阵数据中数值为1所对应的像素点,所述第二像素点在所述矩阵数据中的数值为1。Further, the identifying unit is specifically configured to find all the second pixel points adjacent to the first pixel point in the matrix data to generate the continuous region; wherein the first pixel point is a value in the matrix data 1 corresponding pixel, the value of the second pixel in the matrix data is 1.
本实施例提供的相机装置的各功能模块可用于执行图1和图2所示的相机成像方法的流程,其具体工作原理不再赘述,详见方法实施例的描述。The function modules of the camera device provided in this embodiment can be used to perform the process of the camera imaging method shown in FIG. 1 and FIG. 2, and the specific working principle is not described again. For details, refer to the description of the method embodiment.
本实施例提供的相机装置,通过图像传感器对待拍摄的目标进行数据采集,从所采集的数据中识别出目标中所包含的各景物,获取各景物对应的轮廓信息,根据各景物的轮廓信息对目标进行区域划分,调整图像传感器与目标之间的距离,获取每个区域对应的清晰度最佳的成像位置,抽取每个区域所对应的成像位置上的区域图像,将每个区域所对应的区域图像进行合并,得到目标的目标图像。本实施例通过景物轮廓对目标进行区域划分,将每个区域的最清晰的区域图像取出合成目标的最终图像,使得最终成像更加清晰锐利,且目标内部的景物都可清晰呈现。最终对焦成功的概率变大,有效降低了对焦的失败概率。The camera device provided by the embodiment collects data of an object to be photographed by an image sensor, identifies each scene included in the object from the collected data, and acquires contour information corresponding to each scene, according to contour information of each scene. The target is divided into regions, the distance between the image sensor and the target is adjusted, the optimal imaging position corresponding to each region is obtained, and the region image at the imaging position corresponding to each region is extracted, and each region corresponds to The area images are merged to obtain the target image of the target. In this embodiment, the target is divided into regions by the contour of the scene, and the clearest region image of each region is taken out of the final image of the composite target, so that the final image is more clear and sharp, and the scene inside the target can be clearly presented. The probability of successful focus is increased, which effectively reduces the probability of failure of focus.
实施例五Embodiment 5
图5为本申请提供的相机装置又一个实施例的结构示意图。如图5所示,本申请实施例的相机装置包括:存储器61、一个或多个处理器62以及一个或多个程序63。FIG. 5 is a schematic structural diagram of still another embodiment of a camera device provided by the present application. As shown in FIG. 5, the camera device of the embodiment of the present application includes a memory 61, one or more processors 62, and one or more programs 63.
其中,所述一个或多个程序63在由一个或多个处理器62执行时执行上述实施例中的任意一种方法。The one or more programs 63, when executed by one or more processors 62, perform any of the above-described embodiments.
本申请实施例的相机装置,对待拍摄的目标进行数据采集,从所采集的数据中识别出所述目标中所包含的各景物,获取各景物对应的轮廓信息,根据各景物的轮廓信息对所述目标进行区域划分,调整镜头与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位 置,抽取每个区域所对应的所述成像位置上的区域图像,将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。本申请实施例通过景物轮廓进行区域划分,将每个区域中最清晰的区域图像取出合成目标的最终图像,使得最终成像更加清晰锐利,且目标内部的景物都可清晰呈现。The camera device of the embodiment of the present invention collects data of a target to be photographed, identifies each scene included in the target from the collected data, acquires contour information corresponding to each scene, and compares the contour information of each scene. The target is divided into regions, and the distance between the lens and the target is adjusted to obtain the best resolution imaging position corresponding to each region. And extracting the image of the area at the imaging position corresponding to each area, and combining the area images corresponding to each area to obtain a target image of the target. In the embodiment of the present application, the region is divided by the scene contour, and the clearest region image in each region is taken out of the final image of the synthetic target, so that the final image is more clear and sharp, and the scene inside the target can be clearly presented.
实施例六Embodiment 6
图6为本申请提供的用于相机成像的计算机程序产品一个实施例的结构示意图。如图6所示,本申请实施例的用于相机成像的计算机程序产品71,可以包括信号承载介质72。信号承载介质72可以包括一个或更多个指令73,该指令73在由例如处理器执行时,处理器可以提供以上针对图1-4描述的功能。例如,指令73可以包括:用于通过图像传感器对待拍摄的目标进行数据采集的一个或多个指令;用于从所采集的数据中识别出所述目标中所包含的各景物的一个或多个指令;用于获取各景物对应的轮廓信息的一个或多个指令;用于根据各景物的轮廓信息对所述目标进行区域划分的一个或多个指令;用于调整所述图像传感器与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置的一个或多个指令;用于抽取每个区域所对应的所述成像位置上的区域图像的一个或多个指令;以及用于将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像的一个或多个指令。因此,例如,参照图3,相机装置可以响应于指令73来进行图1中所示的步骤中的一个或更多个。FIG. 6 is a schematic structural diagram of an embodiment of a computer program product for camera imaging provided by the present application. As shown in FIG. 6, the computer program product 71 for camera imaging of the embodiment of the present application may include a signal bearing medium 72. Signal bearing medium 72 may include one or more instructions 73 that, when executed by, for example, a processor, may provide the functionality described above with respect to Figures 1-4. For example, the instructions 73 can include: one or more instructions for data acquisition by the image sensor of the object to be captured; for identifying one or more of the scenes included in the target from the collected data One or more instructions for acquiring contour information corresponding to each scene; one or more instructions for dividing the target according to contour information of each scene; for adjusting the image sensor and the a distance between the targets, one or more instructions for obtaining a sharpest imaged position corresponding to each region; one or more instructions for extracting an image of the region at the imaged position corresponding to each region; And one or more instructions for combining the region images corresponding to each region to obtain a target image of the target. Thus, for example, referring to FIG. 3, the camera device can perform one or more of the steps shown in FIG. 1 in response to instruction 73.
在一些实现中,信号承载介质72可以包括计算机可读介质74,诸如但不限于硬盘驱动器、压缩盘(CD)、数字通用盘(DVD)、数字带、存储器等。在一些实现中,信号承载介质72可以包括可记录介质75,诸如但不限于存储器、读/写(R/W)CD、R/W DVD等。在一些实现中,信号承载介质72可以包括通信介质76,诸如但不限于数字和/或模拟通信介质(例如,光纤线缆、波导、有线通信链路、无线通信链路等)。因此,例如,计算机程序产品71可 以通过RF信号承载介质72传送给多指滑动手势的识别装置的一个或多个模块,其中,信号承载介质72由无线通信介质(例如,符合IEEE 802.11标准的无线通信介质)传送。In some implementations, signal bearing medium 72 can include computer readable media 74 such as, but not limited to, a hard disk drive, a compact disk (CD), a digital versatile disk (DVD), a digital tape, a memory, and the like. In some implementations, the signal bearing medium 72 can include a recordable medium 75 such as, but not limited to, a memory, a read/write (R/W) CD, an R/W DVD, and the like. In some implementations, the signal bearing medium 72 can include a communication medium 76 such as, but not limited to, a digital and/or analog communication medium (eg, fiber optic cable, waveguide, wired communication link, wireless communication link, etc.). Thus, for example, computer program product 71 can One or more modules that are transmitted to the identification device of the multi-finger swipe gesture by the RF signal bearing medium 72, wherein the signal bearing medium 72 is transmitted by a wireless communication medium (eg, a wireless communication medium compliant with the IEEE 802.11 standard).
本申请实施例的计算机程序产品,当检测到对终端设备的屏幕的触摸操作时,获取对应的触摸点的位置坐标,根据预设的校正规则对触摸点的位置坐标进行校正,将校正后的触摸点的位置坐标进行报点输出。本发明实施例的计算机程序产品,通过对屏幕报点进行校正,保证了用户准确触发相应的操作。The computer program product of the embodiment of the present invention acquires the position coordinates of the corresponding touch point when the touch operation on the screen of the terminal device is detected, and corrects the position coordinates of the touch point according to the preset correction rule, and the corrected The position coordinates of the touch point are used for report output. The computer program product of the embodiment of the invention ensures that the user accurately triggers the corresponding operation by correcting the screen report point.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present application. range.

Claims (10)

  1. 一种相机成像方法,其特征在于,包括:A camera imaging method, comprising:
    通过图像传感器对待拍摄的目标进行数据采集;Data acquisition by the image sensor to be photographed;
    从所采集的数据中识别出所述目标中所包含的各景物;Identifying each scene contained in the target from the collected data;
    获取各景物对应的轮廓信息;Obtaining contour information corresponding to each scene;
    根据各景物的轮廓信息对所述目标进行区域划分;Dividing the target according to the contour information of each scene;
    调整所述图像传感器与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置;Adjusting a distance between the image sensor and the target, and obtaining an imaging position with the best definition corresponding to each region;
    抽取每个区域所对应的所述成像位置上的区域图像;Extracting an image of the area on the imaging position corresponding to each area;
    将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。The area images corresponding to each area are combined to obtain a target image of the target.
  2. 根据权利要求1所述的相机成像方法,其特征在于,所述从所采集的数据中获取所述目标中所包含的各景物,包括:The camera imaging method according to claim 1, wherein the acquiring the scenes included in the target from the collected data comprises:
    根据设定的阈值对所采集的数据进行二值化处理,生成矩阵数据;Performing binarization processing on the collected data according to the set threshold to generate matrix data;
    对所述矩阵数据进行连续性识别并保存连续区域的区域信息;Performing continuity identification on the matrix data and storing area information of the continuous area;
    筛选出所述目标所包含的各景物相应的所述区域信息。The region information corresponding to each scene included in the target is filtered out.
  3. 根据权利要求2所述的相机成像方法,其特征在于,所述获取各景物对应的轮廓信息,包括:The camera imaging method according to claim 2, wherein the acquiring contour information corresponding to each scene comprises:
    行列扫描各景物的所述区域信息得到各景物的边界值,形成各景物的所述轮廓信息。The region information of each scene is scanned to obtain the boundary value of each scene, and the contour information of each scene is formed.
  4. 根据权利要求3所述的相机成像方法,其特征在于,所述根据设定的阈值对所采集的数据进行二值化处理,生成矩阵数据,包括:The camera imaging method according to claim 3, wherein the binarizing the collected data according to the set threshold to generate matrix data comprises:
    将二值化处理后的数据与所述阈值进行比较;Comparing the binarized data with the threshold;
    通过将大于或者等于所述阈值的二值化处理后的数据设置为1以及将小于所述阈值的二值化处理后的数据设置为0生成所述矩阵数据。The matrix data is generated by setting the binarized data greater than or equal to the threshold to 1 and the binarized data less than the threshold to 0.
  5. 根据权利要求4所述的相机成像方法,其特征在于,所述对所述矩阵数据进行连续性识别并保存连续区域的区域信息,包括:The camera imaging method according to claim 4, wherein the continuously identifying the matrix data and storing the area information of the continuous area comprises:
    查找与所述矩阵数据中的第一像素点相邻的所有第二像素点生成 所述连续区域;其中第一像素点为所述矩阵数据中数值为1所对应的像素点,所述第二像素点在所述矩阵数据中的数值为1。Finding all second pixel points generated adjacent to the first pixel in the matrix data The continuous area; wherein the first pixel point is a pixel point corresponding to a value of 1 in the matrix data, and the value of the second pixel point in the matrix data is 1.
  6. 一种相机装置,其特征在于,包括:A camera device, comprising:
    采集模块,用于对待拍摄的目标进行数据采集;An acquisition module for data collection of a target to be photographed;
    识别模块,用于从所采集的数据中识别出所述目标中所包含的各景物;An identification module, configured to identify, from the collected data, each scene included in the target;
    第一获取模块,用于获取各景物对应的轮廓信息;a first acquiring module, configured to acquire contour information corresponding to each scene;
    划分模块,用于根据各景物的轮廓信息对所述目标进行区域划分;a dividing module, configured to divide the target according to contour information of each scene;
    第二获取模块,用于调整所述图像传感器与所述目标之间的距离,获取每个区域对应的清晰度最佳的成像位置;a second acquiring module, configured to adjust a distance between the image sensor and the target, and obtain an imaging position with the best definition corresponding to each region;
    抽取模块,用于抽取每个区域所对应的所述成像位置上的区域图像;Extracting a module, configured to extract an area image of the imaging position corresponding to each area;
    合并模块,用于将每个区域所对应的所述区域图像进行合并,得到所述目标的目标图像。And a merging module, configured to merge the area images corresponding to each area to obtain a target image of the target.
  7. 根据权利要求6所述的相机装置,其特征在于,所述识别模块,包括:The camera device according to claim 6, wherein the identification module comprises:
    生成单元,用于根据设定的阈值对所采集的数据进行二值化处理,生成矩阵数据;a generating unit, configured to perform binarization processing on the collected data according to the set threshold, to generate matrix data;
    识别单元,用于对所述矩阵数据进行连续性识别并保存连续区域的区域信息;a recognition unit, configured to continuously identify the matrix data and save area information of the continuous area;
    筛选单元,用于筛选出所述目标所包含的各景物相应的所述区域信息。a screening unit, configured to filter out the area information corresponding to each scene included in the target.
  8. 根据权利要求7所述的相机装置,其特征在于,所述第一获取模块,具体行列扫描各景物的所述区域信息得到各景物的边界值,形成各景物的所述轮廓信息。The camera apparatus according to claim 7, wherein the first acquisition module scans the area information of each scene in a specific row to obtain boundary values of the scenes, and forms the contour information of each scene.
  9. 根据权利要求8所述的相机装置,其特征在于,所述生成单元,具体用于将二值化处理后的数据与所述阈值进行比较,以及通过将大于或者等于所述阈值的二值化处理后的数据设置为1以及将小于所述阈值的二值化处理后的数据设置为0生成所述矩阵数据。 The camera device according to claim 8, wherein the generating unit is specifically configured to compare the binarized data with the threshold and to binarize the threshold greater than or equal to the threshold The processed data is set to 1 and the binarized data smaller than the threshold is set to 0 to generate the matrix data.
  10. 根据权利要求9所述的相机装置,其特征在于,所述识别单元,具体用于查找与所述矩阵数据中的第一像素点相邻的所有第二像素点生成所述连续区域;其中第一像素点为所述矩阵数据中数值为1所对应的像素点,所述第二像素点在所述矩阵数据中的数值为1。 The camera device according to claim 9, wherein the identification unit is configured to search for all the second pixels adjacent to the first pixel in the matrix data to generate the continuous region; One pixel is a pixel corresponding to a value of 1 in the matrix data, and the value of the second pixel in the matrix data is 1.
PCT/CN2016/089030 2015-11-15 2016-07-07 Camera imaging method and camera device WO2017080237A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510786354.8 2015-11-15
CN201510786354.8A CN105898135A (en) 2015-11-15 2015-11-15 Camera imaging method and camera device

Publications (1)

Publication Number Publication Date
WO2017080237A1 true WO2017080237A1 (en) 2017-05-18

Family

ID=57002074

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089030 WO2017080237A1 (en) 2015-11-15 2016-07-07 Camera imaging method and camera device

Country Status (2)

Country Link
CN (1) CN105898135A (en)
WO (1) WO2017080237A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112585941A (en) * 2019-12-30 2021-03-30 深圳市大疆创新科技有限公司 Focusing method and device, shooting equipment, movable platform and storage medium
CN117253195A (en) * 2023-11-13 2023-12-19 广东申立信息工程股份有限公司 IPC safety monitoring method, monitoring system, computer equipment and readable storage medium

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107872614A (en) * 2016-09-27 2018-04-03 中兴通讯股份有限公司 A kind of image pickup method and filming apparatus
CN108076278B (en) * 2016-11-10 2021-03-19 斑马智行网络(香港)有限公司 Automatic focusing method and device and electronic equipment
CN107659985B (en) * 2017-08-09 2021-03-09 Oppo广东移动通信有限公司 Method and device for reducing power consumption of mobile terminal, storage medium and mobile terminal
CN110596131B (en) * 2018-05-25 2022-06-17 翌视智能科技(上海)有限公司 Sheet glass edge flaw detection method based on image acquisition
CN110830709A (en) * 2018-08-14 2020-02-21 Oppo广东移动通信有限公司 Image processing method and device, terminal device and computer readable storage medium
CN109618092B (en) * 2018-12-03 2020-11-06 广州图匠数据科技有限公司 Splicing photographing method and system and storage medium
CN110046596B (en) * 2019-04-23 2021-06-15 王雪燕 Image modularization processing and multi-image module custom combination method, mobile terminal and readable storage medium
CN110636220A (en) * 2019-09-20 2019-12-31 Tcl移动通信科技(宁波)有限公司 Image focusing method and device, mobile terminal and storage medium
CN112702538A (en) * 2021-01-13 2021-04-23 上海臻面智能信息科技有限公司 Depth camera and imaging method thereof
CN115696019A (en) * 2021-07-30 2023-02-03 哲库科技(上海)有限公司 Image processing method, image processing device, computer equipment and storage medium
CN113674638A (en) * 2021-08-26 2021-11-19 西安热工研究院有限公司 System and method for adjusting working distance between LCD (liquid crystal display) spliced screen and RGB (red, green and blue) camera
CN117115636A (en) * 2023-09-12 2023-11-24 奥谱天成(厦门)光电有限公司 Algae and plankton analysis method, analyzer, medium and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402191A (en) * 2002-09-19 2003-03-12 上海交通大学 Multiple focussing image fusion method based on block dividing
US20070188652A1 (en) * 2006-02-13 2007-08-16 Casio Computer Co., Ltd. Image capturing apparatus, image composing method and storage medium
CN101426093A (en) * 2007-10-29 2009-05-06 株式会社理光 Image processing device, image processing method, and computer program product
US20120069235A1 (en) * 2010-09-20 2012-03-22 Canon Kabushiki Kaisha Image capture with focus adjustment
CN103186894A (en) * 2013-03-22 2013-07-03 南京信息工程大学 Multi-focus image fusion method for self-adaptive partitioning
CN104184935A (en) * 2013-05-27 2014-12-03 鸿富锦精密工业(深圳)有限公司 Image shooting device and method
CN104270560A (en) * 2014-07-31 2015-01-07 三星电子(中国)研发中心 Multi-point focusing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914687A (en) * 2014-03-14 2014-07-09 常州大学 Rectangular-target identification method based on multiple channels and multiple threshold values
CN104869316B (en) * 2015-05-29 2018-07-03 北京京东尚科信息技术有限公司 The image capture method and device of a kind of multiple target

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402191A (en) * 2002-09-19 2003-03-12 上海交通大学 Multiple focussing image fusion method based on block dividing
US20070188652A1 (en) * 2006-02-13 2007-08-16 Casio Computer Co., Ltd. Image capturing apparatus, image composing method and storage medium
CN101426093A (en) * 2007-10-29 2009-05-06 株式会社理光 Image processing device, image processing method, and computer program product
US20120069235A1 (en) * 2010-09-20 2012-03-22 Canon Kabushiki Kaisha Image capture with focus adjustment
CN103186894A (en) * 2013-03-22 2013-07-03 南京信息工程大学 Multi-focus image fusion method for self-adaptive partitioning
CN104184935A (en) * 2013-05-27 2014-12-03 鸿富锦精密工业(深圳)有限公司 Image shooting device and method
CN104270560A (en) * 2014-07-31 2015-01-07 三星电子(中国)研发中心 Multi-point focusing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112585941A (en) * 2019-12-30 2021-03-30 深圳市大疆创新科技有限公司 Focusing method and device, shooting equipment, movable platform and storage medium
CN117253195A (en) * 2023-11-13 2023-12-19 广东申立信息工程股份有限公司 IPC safety monitoring method, monitoring system, computer equipment and readable storage medium
CN117253195B (en) * 2023-11-13 2024-02-27 广东申立信息工程股份有限公司 IPC safety monitoring method, monitoring system, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN105898135A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
WO2017080237A1 (en) Camera imaging method and camera device
EP2768214A2 (en) Method of tracking object using camera and camera system for object tracking
US9792698B2 (en) Image refocusing
KR101809543B1 (en) Method for recognizing contectless fingerprint and electronic apparatus for performing the same.
KR20140013407A (en) Apparatus and method for tracking object
JP5825172B2 (en) Image determination apparatus, image determination method, and computer program for image determination
JP2010045613A (en) Image identifying method and imaging device
US10455163B2 (en) Image processing apparatus that generates a combined image, control method, and storage medium
JP6157165B2 (en) Gaze detection device and imaging device
CN110365897B (en) Image correction method and device, electronic equipment and computer readable storage medium
US9995905B2 (en) Method for creating a camera capture effect from user space in a camera capture system
US9706121B2 (en) Image processing apparatus and image processing method
JP6320053B2 (en) Image processing apparatus, image processing method, and computer program
US10373329B2 (en) Information processing apparatus, information processing method and storage medium for determining an image to be subjected to a character recognition processing
CN111669492A (en) Method for processing shot digital image by terminal and terminal
US20130293741A1 (en) Image processing apparatus, image capturing apparatus, and storage medium storing image processing program
CN109598195B (en) Method and device for processing clear face image based on monitoring video
JP2009159525A (en) Imaging apparatus and image synthesis program
JP2010200270A (en) Image processing device, camera, and program
CN115334241B (en) Focusing control method, device, storage medium and image pickup apparatus
KR102628714B1 (en) Photography system for surpporting to picture for mobile terminal and method thereof
JP5853369B2 (en) Image processing apparatus, image processing method, and program
JP2018061292A (en) Image processing apparatus, image processing method, and program
JP5928024B2 (en) Image processing apparatus, image processing method, and program
KR101652116B1 (en) Apparatus and method for detecting subject area and movement

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

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

Country of ref document: EP

Kind code of ref document: A1