CN104159000A - Scanned image acquiring method and device - Google Patents
Scanned image acquiring method and device Download PDFInfo
- Publication number
- CN104159000A CN104159000A CN201410414970.6A CN201410414970A CN104159000A CN 104159000 A CN104159000 A CN 104159000A CN 201410414970 A CN201410414970 A CN 201410414970A CN 104159000 A CN104159000 A CN 104159000A
- Authority
- CN
- China
- Prior art keywords
- camera
- scanning
- distance
- mobile terminal
- scanning target
- 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.)
- Granted
Links
Landscapes
- Studio Devices (AREA)
Abstract
本发明实施例公开了一种扫描图像获取方法及装置,该方法包括:检测作用于移动终端的指令;若检测到预设的扫描指令,则获取所述移动终端的摄像头与所述扫描目标物之间的距离;根据所述距离计算所述摄像头的拍摄参数;启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄,以获取与所述扫描目标物等比例的扫描图像。本发明实施例的技术方案能通过移动终端获得与扫描目标物等比例的扫描图像,能减少用户对扫描仪或复印机的依赖。
The embodiment of the present invention discloses a scanning image acquisition method and device. The method includes: detecting an instruction acting on a mobile terminal; if a preset scanning instruction is detected, obtaining Calculate the shooting parameters of the camera according to the distance; start the camera and control the camera to shoot the scanning target according to the shooting parameters, so as to obtain the same proportion as the scanning target scanned image. The technical solution of the embodiment of the present invention can obtain a scanned image with the same proportion as the scanned object through the mobile terminal, and can reduce the user's dependence on the scanner or copier.
Description
技术领域technical field
本发明涉及计算机应用技术领域,具体涉及一种扫描图像获取方法及装置。The invention relates to the field of computer application technology, in particular to a scanning image acquisition method and device.
背景技术Background technique
在当今社会中,往往需要办很多证件或文件,例如身份证、工作证、学生证、学历证、学位证书、职称证书、和技能证书等,以及各种合同、协议、标书和证明文件等。当外出办事需要一些证件或文件原始大小的扫描件时,如果此时没有复印机或扫描仪,将为给人们生活带来极大不便。In today's society, many certificates or documents are often required, such as ID cards, work permits, student certificates, academic certificates, degree certificates, professional title certificates, and skill certificates, as well as various contracts, agreements, tenders, and certification documents. When you need to scan copies of some certificates or documents in the original size when going out to do errands, if there is no copier or scanner at this time, it will bring great inconvenience to people's lives.
而用户随身携带的手机、相机、平板电脑等移动终端虽然具有拍照功能,但是一般通过移动终端的摄像头直接拍摄的图像都很难是按原始数据大小成像的图像,不能满足扫描件的要求。Although mobile terminals such as mobile phones, cameras, and tablet computers carried by users have the function of taking pictures, generally the images directly captured by the cameras of the mobile terminals are difficult to be imaged according to the size of the original data, which cannot meet the requirements of scanned documents.
发明内容Contents of the invention
有鉴于此,本发明实施例提供一种扫描图像获取方法及装置,以通过移动终端获得与扫描目标物等比例的扫描图像。In view of this, an embodiment of the present invention provides a scanned image acquisition method and device, so as to obtain a scanned image in proportion to the scanned object through a mobile terminal.
第一方面,本发明实施例提供了一种扫描图像获取方法,包括:In a first aspect, an embodiment of the present invention provides a scanning image acquisition method, including:
检测作用于移动终端的指令;Detect commands acting on the mobile terminal;
若检测到预设的扫描指令,则获取所述移动终端的摄像头与所述扫描目标物之间的距离;If a preset scanning instruction is detected, then obtain the distance between the camera of the mobile terminal and the scanning target;
根据所述距离计算所述摄像头的拍摄参数;calculating shooting parameters of the camera according to the distance;
启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄,以获取与所述扫描目标物等比例的扫描图像。Starting the camera and controlling the camera to take pictures of the scanning target according to the shooting parameters, so as to obtain a scanning image in proportion to the scanning target.
第二方面,本发明实施例还提供了一种扫描图像获取装置,包括:In the second aspect, the embodiment of the present invention also provides a scanning image acquisition device, including:
指令检测单元,用于检测作用于移动终端的指令;An instruction detection unit, configured to detect instructions acting on the mobile terminal;
距离获取单元,用于若检测到预设的扫描指令,则获取所述移动终端的摄像头与所述扫描目标物之间的距离;a distance acquiring unit, configured to acquire the distance between the camera of the mobile terminal and the scanning target if a preset scanning instruction is detected;
拍摄参数计算单元,用于根据所述距离计算所述摄像头的拍摄参数;A shooting parameter calculation unit, configured to calculate the shooting parameters of the camera according to the distance;
拍摄单元,用于启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄,以获取与所述扫描目标物等比例的扫描图像。The photographing unit is configured to start the camera and control the camera to photograph the scanning target according to the photographing parameters, so as to acquire a scanning image in proportion to the scanning target.
本发明实施例的技术方案通过检测作用于移动终端的指令,若检测到预设的扫描指令,则获取所述移动终端的摄像头与所述扫描目标物之间的距离,根据所述距离计算所述摄像头的拍摄参数,然后启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄,能通过移动终端获得与扫描目标物等比例的扫描图像,能减少用户对扫描仪或复印机的依赖。The technical solution of the embodiment of the present invention detects the instruction acting on the mobile terminal. If the preset scanning instruction is detected, the distance between the camera of the mobile terminal and the scanning target is obtained, and the distance between the scanning target is calculated according to the distance. The shooting parameters of the camera, and then start the camera and control the camera to shoot the scanning target according to the shooting parameters, and the scanning image in proportion to the scanning target can be obtained through the mobile terminal, which can reduce the user's need for scanning. instruments or copiers.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据本发明实施例的内容和这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to the content of the embodiment of the present invention and these drawings without any creative effort.
图1是本发明实施例一所述的扫描图像获取方法流程图;FIG. 1 is a flow chart of the scanning image acquisition method according to Embodiment 1 of the present invention;
图2是本发明实施例二所述的扫描图像获取方法流程图;Fig. 2 is a flow chart of the scanning image acquisition method described in Embodiment 2 of the present invention;
图3是本发明实施例三所述的扫描图像获取装置的结构框图;FIG. 3 is a structural block diagram of the scanning image acquisition device described in Embodiment 3 of the present invention;
图4是本发明实施例四所述的扫描图像获取装置的结构框图。Fig. 4 is a structural block diagram of a scanning image acquisition device according to Embodiment 4 of the present invention.
具体实施方式Detailed ways
为使本发明解决的技术问题、采用的技术方案和达到的技术效果更加清楚,下面将结合附图对本发明实施例的技术方案作进一步的详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the technical problems solved by the present invention, the technical solutions adopted and the technical effects achieved clearer, the technical solutions of the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only the technical solutions of the present invention. Some, but not all, embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and through specific implementation methods.
实施例一Embodiment one
图1是本发明实施例一提供的扫描图像获取方法流程图,本实施例可适用于使用移动终端中的摄像头拍摄出与扫描目标物等比例的扫描图像的情况,该方法可以由配置在移动终端中的扫描图像获取装置来执行,如图1所示,本实施例所述的扫描图像获取方法包括:Fig. 1 is a flow chart of the scanning image acquisition method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where the camera in the mobile terminal is used to capture a scanning image that is equal in proportion to the scanning target. This method can be configured in a mobile The scan image acquisition device in the terminal is executed, as shown in Figure 1, the scan image acquisition method described in this embodiment includes:
S101、检测作用于移动终端的指令。S101. Detect an instruction acting on a mobile terminal.
本实施例所述的指令包括用户通过操作所述移动终端的物理按键发出的指令、语音指令、手势指令、对所述移动终端的触摸屏发出的触发信号指令等。The instructions described in this embodiment include instructions sent by the user by operating physical buttons of the mobile terminal, voice instructions, gesture instructions, trigger signal instructions sent to the touch screen of the mobile terminal, and the like.
S102、若检测到预设的扫描指令,则获取所述移动终端的摄像头与所述扫描目标物之间的距离。S102. If a preset scanning instruction is detected, acquire a distance between the camera of the mobile terminal and the scanning target.
获取所述移动终端的摄像头与所述扫描目标物之间的距离可通过在所述移动终端上安装一个测距仪(例如接近传感器、红外距仪、超声波距仪、激光距仪等)来进行测量获取,若所述测距仪与所述摄像头在与所述移动终端的屏幕所在平面平行的平面,则通过所述测距仪直接获取的距离即为所述移动终端的摄像头与所述扫描目标物之间的距离,否则,可首先获取所述测距仪与所述扫描目标物之间的距离,然后根据所述测距仪与所述摄像头分别与所述移动终端的屏幕所在平面的距离差(即所述测距仪与所述摄像头相对于移动终端的屏幕所在平面的垂线方向的距离差),根据所述距离和所述距离差计算所述摄像头与所述扫描目标物之间的距离。Obtaining the distance between the camera of the mobile terminal and the scanning target can be carried out by installing a range finder (such as a proximity sensor, an infrared range meter, an ultrasonic range meter, a laser range meter, etc.) on the mobile terminal Measurement and acquisition, if the rangefinder and the camera are on a plane parallel to the plane where the screen of the mobile terminal is located, then the distance directly obtained by the rangefinder is the distance between the camera of the mobile terminal and the scanning distance. Otherwise, the distance between the rangefinder and the scanning target can be obtained first, and then according to the distance between the rangefinder and the camera and the plane where the screen of the mobile terminal is located Distance difference (that is, the distance difference between the rangefinder and the camera relative to the vertical direction of the plane where the screen of the mobile terminal is located), the distance between the camera and the scanning target is calculated according to the distance and the distance difference distance between.
S103、根据所述距离计算所述摄像头的拍摄参数。S103. Calculate shooting parameters of the camera according to the distance.
本操作的目的是为了根据所述距离计算所述摄像头的拍摄参数,以对所述摄像头进行参数设置,使所述摄像头能拍摄出等比例的图像。The purpose of this operation is to calculate the shooting parameters of the camera according to the distance, so as to set the parameters of the camera so that the camera can shoot images of equal proportions.
摄像头的参数包括焦距、视场角、光圈等。Camera parameters include focal length, field of view, aperture, etc.
焦距是摄像头的镜头和感光元件之间的距离,通过改变镜头的焦距,可以改变镜头的放大倍数,改变拍摄图像的大小。当物体与镜头的距离很远的时候,可以通过以下公式表达:The focal length is the distance between the lens of the camera and the photosensitive element. By changing the focal length of the lens, the magnification of the lens can be changed and the size of the captured image can be changed. When the distance between the object and the lens is very far, it can be expressed by the following formula:
镜头的放大倍数≈焦距/物距Lens magnification ≈ focal length/object distance
增加镜头的焦距,放大倍数增大了,可以将远景拉近,画面的范围小了,远景的细节拍得更清楚了,如果减小镜头的焦距,放大倍数减小了,画面的范围扩大了,能拍摄到更大的场景。Increasing the focal length of the lens will increase the magnification, which can bring the distant view closer. The range of the picture will be smaller, and the details of the distant view will be captured more clearly. If the focal length of the lens is reduced, the magnification will decrease, and the scope of the picture will expand. , to capture larger scenes.
作为优选,根据所述距离计算所述摄像头的拍摄参数的操作可具体包括:根据所述距离计算所述摄像头的焦距,以使所述焦距等于所述摄像头与所述扫描目标物之间的距离。Preferably, the operation of calculating the shooting parameters of the camera according to the distance may specifically include: calculating the focal length of the camera according to the distance, so that the focal length is equal to the distance between the camera and the scanning target .
因此,为了获得等比例的拍摄图像,即放大倍数等于1,则使所述摄像头的焦距等于所述摄像头与所述扫描目标物之间的距离。Therefore, in order to obtain a photographed image of equal proportions, that is, the magnification factor is equal to 1, the focal length of the camera is set to be equal to the distance between the camera and the scanning target.
在工程实际中,常用水平视场角反映画面的拍摄范围,焦距越大,视场角越小,在感光元件上形成的画面范围越小;反之,焦距越小,视场角越大,在感光元件上形成的画面范围越大。In engineering practice, the horizontal field of view is often used to reflect the shooting range of the picture. The larger the focal length, the smaller the field of view, and the smaller the picture range formed on the photosensitive element; conversely, the smaller the focal length, the larger the field of view. The larger the image area formed on the photosensitive element.
光圈安装在镜头的后部,光圈开得越大,通过镜头的光量就越大,拍摄的图像的清晰度越高;光圈开得越小,通过镜头的光量就越小,图像的清晰度越低。The aperture is installed at the rear of the lens. The larger the aperture, the greater the amount of light passing through the lens, and the higher the clarity of the captured image; the smaller the aperture, the smaller the amount of light passing through the lens, and the higher the clarity of the image. Low.
当获取到所述移动终端的摄像头与所述扫描目标物之间的距离后,可以直接根据该距离和摄像头的视场角来计算出当前取景的实际大小。After the distance between the camera of the mobile terminal and the scanning target is obtained, the actual size of the current scene can be calculated directly according to the distance and the field of view of the camera.
S104、启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄,以获取与所述扫描目标物等比例的扫描图像。S104. Start the camera and control the camera to take pictures of the scanning target according to the shooting parameters, so as to acquire a scanning image in proportion to the scanning target.
本实施例为了确保扫描目标物进行拍摄时无变形,要求所述摄像头与所述扫描目标物平行,保持所述摄像头与所述扫描目标物平行可采用多种方式。例如:In this embodiment, in order to ensure that the scanning target is not deformed when shooting, the camera is required to be parallel to the scanning target, and various ways can be used to keep the camera parallel to the scanning target. For example:
方式一、由用户手动进行调整;Method 1. Manually adjust by the user;
方式二、通过所述移动终端上的预设数目的测距仪获取测距仪到所述扫描目标物之间的距离;若所述预设数目的测距仪所获取的距离相等,则根据该相等的距离获取所述移动终端的摄像头与所述扫描目标物之间的距离;否则提示用户将所述移动终端调整到与所述扫描目标物平行的状态,并重复执行以上操作。Method 2: Obtain the distance between the range finder and the scanning target through the preset number of range finders on the mobile terminal; if the distances obtained by the preset number of range finders are equal, then according to The equal distance obtains the distance between the camera of the mobile terminal and the scanning target; otherwise, the user is prompted to adjust the mobile terminal to a state parallel to the scanning target, and repeat the above operations.
即,若所述预设数目的测距仪所获取的距离不相等,则说明所述摄像头与所述扫描目标物不平行,需要对移动终端进行调整,例如提示用户将所述移动终端调整到与所述扫描目标物平行的状态,并重新执行上述获取距离、判断是否相等的步骤。That is, if the distances acquired by the preset number of range finders are not equal, it means that the camera is not parallel to the scanning target, and the mobile terminal needs to be adjusted, for example, the user is prompted to adjust the mobile terminal to parallel to the scanning target, and re-execute the steps of obtaining the distance and judging whether they are equal.
因为不在一条直线上的三点决定一个平面,若所述预设数目的测距仪不在同一直线上,则当测距仪的数目为3或3以上时,若各测距仪到所述扫描目标物之间的距离均相等,则一定说明移动终端的显示屏与所述扫描目标物平行。因此,作为优选,所述预设数目大于或等于3,进一步优选为3。Because three points that are not on a straight line determine a plane, if the preset number of rangefinders are not on the same straight line, when the number of rangefinders is 3 or more, if each rangefinder arrives at the scanning If the distances between the targets are all equal, it must mean that the display screen of the mobile terminal is parallel to the scanning targets. Therefore, preferably, the preset number is greater than or equal to 3, more preferably 3.
方式三、所述移动终端的摄像头为可旋转摄像头,在启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄之前,利用传感器自动调整所述可旋转摄像头的方向,以使所述可旋转摄像头与所述扫描目标物平行。Method 3. The camera of the mobile terminal is a rotatable camera. Before starting the camera and controlling the camera to take pictures of the scanning target according to the shooting parameters, a sensor is used to automatically adjust the direction of the rotatable camera. , so that the rotatable camera is parallel to the scanning object.
本领域的技术人员需要明确的是,以上保持所述摄像头与所述扫描目标物平行的三种方式仅作为示例,并不限制本实施例的技术方案,上述方案的任何变形均包括在本实施例的技术方案的保护范围之内。It should be clear to those skilled in the art that the above three ways of keeping the camera parallel to the scanning target are only examples and do not limit the technical solution of this embodiment. Any modification of the above solutions is included in this embodiment Within the scope of protection of the technical solutions of the example.
本实施例的技术方案通过检测作用于移动终端的指令,若检测到预设的扫描指令,则获取所述移动终端的摄像头与所述扫描目标物之间的距离,根据所述距离计算所述摄像头的拍摄参数,然后启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄,能通过移动终端获得与扫描目标物等比例的扫描图像,能减少用户对扫描仪或复印机的依赖。The technical solution of this embodiment detects the instruction acting on the mobile terminal. If a preset scanning instruction is detected, the distance between the camera of the mobile terminal and the scanning target is obtained, and the distance is calculated according to the distance. The shooting parameters of the camera, and then start the camera and control the camera to take pictures of the scanning target according to the shooting parameters, and can obtain a scanning image in proportion to the scanning target through the mobile terminal, which can reduce the user's need for scanners. or copier dependencies.
实施例二Embodiment two
本实施例以所述移动终端的摄像头为可旋转摄像头为例说明本实施例的技术方案,图2是本实施例所述的扫描图像获取方法流程图,如图2所示,本实施例所述的扫描图像获取方法包括:This embodiment takes the camera of the mobile terminal as an example to illustrate the technical solution of this embodiment. FIG. 2 is a flow chart of the scan image acquisition method described in this embodiment. As shown in FIG. 2 , the embodiment described in this embodiment The scanning image acquisition method described includes:
S201、检测作用于移动终端的指令。S201. Detect an instruction acting on a mobile terminal.
S202、若检测到预设的扫描指令,则获取所述移动终端的摄像头与所述扫描目标物之间的距离。S202. Obtain the distance between the camera of the mobile terminal and the scanning target if a preset scanning instruction is detected.
S203、根据所述距离计算所述摄像头的拍摄参数。S203. Calculate shooting parameters of the camera according to the distance.
S204、利用传感器自动调整所述可旋转摄像头的方向,以使所述可旋转摄像头与所述扫描目标物平行。S204. Using a sensor to automatically adjust the direction of the rotatable camera so that the rotatable camera is parallel to the scanning target.
本实施例所述移动终端的摄像头为可旋转摄像头,利用传感器自动调整所述可旋转摄像头的方向,以使所述可旋转摄像头与所述扫描目标物平行。The camera of the mobile terminal in this embodiment is a rotatable camera, and a sensor is used to automatically adjust the direction of the rotatable camera so that the rotatable camera is parallel to the scanning target.
例如,将所述扫描目标物水平放置,所述摄像头自带的传感器能自动调整所述摄像头的方向,使摄像头保持水平状态。此时,所述扫描目标物与所述摄像头均处于水平状态,因此两者是平行的,因此,能确保扫描目标物进行拍摄时无变形。For example, if the scanning target is placed horizontally, the sensor attached to the camera can automatically adjust the direction of the camera to keep the camera in a horizontal state. At this time, the scanning target and the camera are both in a horizontal state, so they are parallel to each other, so that no deformation can be ensured when the scanning target is photographed.
S205、启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄。S205. Start the camera and control the camera to take pictures of the scanning target according to the shooting parameters.
本实施例在实施例一的基础之上,以所述移动终端的摄像头为可旋转摄像头为例,利用传感器自动调整所述可旋转摄像头的方向,以使所述可旋转摄像头与所述扫描目标物平行,以确保扫描目标物进行拍摄时无变形,从而获取与所述扫描目标物等比例的扫描图像。In this embodiment, on the basis of Embodiment 1, taking the camera of the mobile terminal as an example of a rotatable camera, a sensor is used to automatically adjust the direction of the rotatable camera so that the rotatable camera is aligned with the scanning target The object is parallel to ensure that the scanned object is not deformed when shooting, so as to obtain a scanned image with the same proportion as the scanned object.
实施例三Embodiment three
图3是本发明实施例三所述的扫描图像获取装置的结构框图,如图3所示,本实施例所述的扫描图像获取装置包括:Fig. 3 is a structural block diagram of the scanning image acquisition device described in Embodiment 3 of the present invention. As shown in Fig. 3, the scanning image acquisition device described in this embodiment includes:
指令检测单元301,用于检测作用于移动终端的指令;An instruction detection unit 301, configured to detect instructions acting on the mobile terminal;
距离获取单元302,用于若检测到预设的扫描指令,则获取所述移动终端的摄像头与所述扫描目标物之间的距离;A distance acquiring unit 302, configured to acquire the distance between the camera of the mobile terminal and the scanning target if a preset scanning instruction is detected;
拍摄参数计算单元303,用于根据所述距离计算所述摄像头的拍摄参数;A shooting parameter calculation unit 303, configured to calculate the shooting parameters of the camera according to the distance;
拍摄单元304,用于启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄,以获取与所述扫描目标物等比例的扫描图像。The photographing unit 304 is configured to start the camera and control the camera to photograph the scanning target according to the photographing parameters, so as to acquire a scanning image in equal proportion to the scanning target.
进一步地,所述距离获取单元302具体用于:Further, the distance acquiring unit 302 is specifically configured to:
通过所述移动终端上的预设数目的测距仪获取测距仪到所述扫描目标物之间的距离;Obtaining the distance between the rangefinder and the scanning target through a preset number of rangefinders on the mobile terminal;
若所述预设数目的测距仪所获取的距离相等,则根据该相等的距离获取所述移动终端的摄像头与所述扫描目标物之间的距离;If the distances obtained by the preset number of range finders are equal, then obtain the distance between the camera of the mobile terminal and the scanning target according to the equal distance;
否则提示用户将所述移动终端调整到与所述扫描目标物平行的状态,并重复执行以上操作。Otherwise, prompt the user to adjust the mobile terminal to a state parallel to the scanning target, and repeat the above operations.
进一步地,所述预设数目等于3。Further, the preset number is equal to three.
进一步地,所述拍摄参数计算单元303具体用于:根据所述距离计算所述摄像头的焦距,以使所述焦距等于所述摄像头与所述扫描目标物之间的距离,从而实现等比例拍摄。Further, the shooting parameter calculation unit 303 is specifically configured to: calculate the focal length of the camera according to the distance, so that the focal length is equal to the distance between the camera and the scanning target, so as to achieve equal-scale shooting .
本实施例提供的扫描图像获取装置可执行本发明实施例一所提供的扫描图像获取方法,具备执行方法相应的功能模块和有益效果。The scan image acquisition device provided in this embodiment can execute the scan image acquisition method provided in Embodiment 1 of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
实施例四Embodiment four
本实施例以所述移动终端的摄像头为可旋转摄像头为例,说明本实施例的技术方案,图4是本实施例所述的扫描图像获取装置的结构框图,如图4所示,本实施例所述的扫描图像获取装置包括:In this embodiment, the camera of the mobile terminal is a rotatable camera as an example to illustrate the technical solution of this embodiment. FIG. 4 is a structural block diagram of the scanning image acquisition device described in this embodiment. As shown in FIG. The scanning image acquisition device described in the example includes:
指令检测单元401,用于检测作用于移动终端的指令;An instruction detection unit 401, configured to detect instructions acting on the mobile terminal;
距离获取单元402,用于若检测到预设的扫描指令,则获取所述移动终端的摄像头与所述扫描目标物之间的距离;A distance obtaining unit 402, configured to obtain the distance between the camera of the mobile terminal and the scanning target if a preset scanning instruction is detected;
拍摄参数计算单元403,用于根据所述距离计算所述摄像头的拍摄参数;A shooting parameter calculation unit 403, configured to calculate the shooting parameters of the camera according to the distance;
平行调整单元404,用于在启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄之前,利用传感器自动调整所述可旋转摄像头的方向,以使所述可旋转摄像头与所述扫描目标物平行;The parallel adjustment unit 404 is configured to use a sensor to automatically adjust the direction of the rotatable camera so that the rotatable The camera is parallel to the scanning target;
拍摄单元405,用于启动所述摄像头并控制所述摄像头根据所述拍摄参数对所述扫描目标物进行拍摄,以获取与所述扫描目标物等比例的扫描图像。The photographing unit 405 is configured to start the camera and control the camera to photograph the scanning target according to the photographing parameters, so as to obtain a scanning image in equal proportion to the scanning target.
进一步地,所述拍摄参数计算单元403具体用于:根据所述距离计算所述摄像头的焦距,以使所述焦距等于所述摄像头与所述扫描目标物之间的距离。Further, the shooting parameter calculation unit 403 is specifically configured to: calculate the focal length of the camera according to the distance, so that the focal length is equal to the distance between the camera and the scanning target.
本实施例提供的扫描图像获取装置可执行本发明实施例一和本发明实施例二所提供的扫描图像获取方法,具备执行方法相应的功能模块和有益效果。The scan image acquisition device provided in this embodiment can execute the scan image acquisition methods provided in Embodiment 1 and Embodiment 2 of the present invention, and has corresponding functional modules and beneficial effects for executing the methods.
以上实施例提供的技术方案中的全部或部分内容可以通过软件编程实现,其软件程序存储在可读取的存储介质中,存储介质例如:计算机中的硬盘、光盘或软盘。All or part of the technical solutions provided by the above embodiments can be realized by software programming, and the software program is stored in a readable storage medium, such as a hard disk, an optical disk or a floppy disk in a computer.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410414970.6A CN104159000B (en) | 2014-08-21 | 2014-08-21 | A kind of scan image acquisition methods and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410414970.6A CN104159000B (en) | 2014-08-21 | 2014-08-21 | A kind of scan image acquisition methods and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104159000A true CN104159000A (en) | 2014-11-19 |
CN104159000B CN104159000B (en) | 2018-09-04 |
Family
ID=51884400
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410414970.6A Expired - Fee Related CN104159000B (en) | 2014-08-21 | 2014-08-21 | A kind of scan image acquisition methods and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104159000B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104850835A (en) * | 2015-05-13 | 2015-08-19 | 杭州朗和科技有限公司 | Scanning method and scanning terminal |
CN105611151A (en) * | 2015-12-17 | 2016-05-25 | 深圳市金立通信设备有限公司 | Terminal control method and terminal |
CN106331463A (en) * | 2015-06-26 | 2017-01-11 | 小米科技有限责任公司 | Camera focal length amplifying method and device |
CN106454068A (en) * | 2016-08-30 | 2017-02-22 | 广东小天才科技有限公司 | Method and device for quickly acquiring effective image |
CN106899800A (en) * | 2016-06-28 | 2017-06-27 | 阿里巴巴集团控股有限公司 | Method, device and mobile terminal device that camera is focused |
CN108282395A (en) * | 2015-04-30 | 2018-07-13 | 广东欧珀移动通信有限公司 | Method for message interaction and relevant apparatus and communication system and medium product |
CN108282596A (en) * | 2018-03-02 | 2018-07-13 | 合肥京东方光电科技有限公司 | Scan screen and scanning device |
CN108650431A (en) * | 2018-05-14 | 2018-10-12 | 联想(北京)有限公司 | A kind of filming control method, device and electronic equipment |
CN110213456A (en) * | 2019-06-10 | 2019-09-06 | Oppo广东移动通信有限公司 | Scanned document correction method, electronic device and computer-readable storage medium |
CN110996030A (en) * | 2019-12-20 | 2020-04-10 | Tcl移动通信科技(宁波)有限公司 | Video generation method and device, storage medium and terminal equipment |
CN115314622A (en) * | 2022-08-10 | 2022-11-08 | 广州市腾畅交通科技有限公司 | A vehicle identification code image acquisition method, system and readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1739284A (en) * | 2003-01-15 | 2006-02-22 | 西门子公司 | Mobile Phones with Scan Assist |
CN1941960A (en) * | 2005-09-28 | 2007-04-04 | 宋柏君 | Embedded scanning cell phone |
CN101014097A (en) * | 2006-10-17 | 2007-08-08 | 马涛 | Active infrared tracking system |
CN101222564A (en) * | 2007-01-13 | 2008-07-16 | 海尔集团公司 | Mobile terminal with scanning function |
CN101610359A (en) * | 2008-06-17 | 2009-12-23 | 华晶科技股份有限公司 | Digital photographing apparatus and control method thereof |
CN102158625A (en) * | 2011-03-02 | 2011-08-17 | 朱杰 | Portable scanning device and processing method |
CN102831106A (en) * | 2012-08-27 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Electronic document generation method of mobile terminal and mobile terminal |
CN103246130A (en) * | 2013-04-16 | 2013-08-14 | 广东欧珀移动通信有限公司 | Focusing method and device |
-
2014
- 2014-08-21 CN CN201410414970.6A patent/CN104159000B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1739284A (en) * | 2003-01-15 | 2006-02-22 | 西门子公司 | Mobile Phones with Scan Assist |
CN1941960A (en) * | 2005-09-28 | 2007-04-04 | 宋柏君 | Embedded scanning cell phone |
CN101014097A (en) * | 2006-10-17 | 2007-08-08 | 马涛 | Active infrared tracking system |
CN101222564A (en) * | 2007-01-13 | 2008-07-16 | 海尔集团公司 | Mobile terminal with scanning function |
CN101610359A (en) * | 2008-06-17 | 2009-12-23 | 华晶科技股份有限公司 | Digital photographing apparatus and control method thereof |
CN102158625A (en) * | 2011-03-02 | 2011-08-17 | 朱杰 | Portable scanning device and processing method |
CN102831106A (en) * | 2012-08-27 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Electronic document generation method of mobile terminal and mobile terminal |
CN103246130A (en) * | 2013-04-16 | 2013-08-14 | 广东欧珀移动通信有限公司 | Focusing method and device |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108282395B (en) * | 2015-04-30 | 2020-12-22 | Oppo广东移动通信有限公司 | Message interaction method and related device, communication system and computer storage medium |
CN108282395A (en) * | 2015-04-30 | 2018-07-13 | 广东欧珀移动通信有限公司 | Method for message interaction and relevant apparatus and communication system and medium product |
CN104850835A (en) * | 2015-05-13 | 2015-08-19 | 杭州朗和科技有限公司 | Scanning method and scanning terminal |
CN106331463B (en) * | 2015-06-26 | 2019-05-14 | 小米科技有限责任公司 | Camera focal length amplification method and device |
CN106331463A (en) * | 2015-06-26 | 2017-01-11 | 小米科技有限责任公司 | Camera focal length amplifying method and device |
CN105611151A (en) * | 2015-12-17 | 2016-05-25 | 深圳市金立通信设备有限公司 | Terminal control method and terminal |
CN106899800A (en) * | 2016-06-28 | 2017-06-27 | 阿里巴巴集团控股有限公司 | Method, device and mobile terminal device that camera is focused |
CN106899800B (en) * | 2016-06-28 | 2020-02-14 | 阿里巴巴集团控股有限公司 | Camera focusing method and device and mobile terminal equipment |
CN106454068B (en) * | 2016-08-30 | 2019-08-16 | 广东小天才科技有限公司 | A method and device for quickly obtaining effective images |
CN106454068A (en) * | 2016-08-30 | 2017-02-22 | 广东小天才科技有限公司 | Method and device for quickly acquiring effective image |
CN108282596A (en) * | 2018-03-02 | 2018-07-13 | 合肥京东方光电科技有限公司 | Scan screen and scanning device |
CN108282596B (en) * | 2018-03-02 | 2020-06-02 | 合肥京东方光电科技有限公司 | Scanning screen and scanning equipment |
CN108650431A (en) * | 2018-05-14 | 2018-10-12 | 联想(北京)有限公司 | A kind of filming control method, device and electronic equipment |
CN110213456A (en) * | 2019-06-10 | 2019-09-06 | Oppo广东移动通信有限公司 | Scanned document correction method, electronic device and computer-readable storage medium |
CN110213456B (en) * | 2019-06-10 | 2021-07-27 | Oppo广东移动通信有限公司 | Scanned document correction method, electronic device and computer-readable storage medium |
CN110996030A (en) * | 2019-12-20 | 2020-04-10 | Tcl移动通信科技(宁波)有限公司 | Video generation method and device, storage medium and terminal equipment |
CN115314622A (en) * | 2022-08-10 | 2022-11-08 | 广州市腾畅交通科技有限公司 | A vehicle identification code image acquisition method, system and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104159000B (en) | 2018-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104159000B (en) | A kind of scan image acquisition methods and device | |
KR102143456B1 (en) | Depth information acquisition method and apparatus, and image collection device | |
WO2020088133A1 (en) | Image processing method and apparatus, electronic device and computer-readable storage medium | |
KR101678483B1 (en) | Auto-focusing method, auto-focusing device, program and recording medium | |
US9900500B2 (en) | Method and apparatus for auto-focusing of an photographing device | |
CN105227838B (en) | A kind of image processing method and mobile terminal | |
CN105827933A (en) | Imaging method and device and mobile terminal | |
KR20170020736A (en) | Method, apparatus and terminal device for determining spatial parameters by image | |
CN105915803B (en) | Photographing method and system based on sensor | |
CN105827980B (en) | Focusing control method and device, imaging control method and device and electronic device | |
JP6448674B2 (en) | A portable information processing apparatus having a camera function for performing guide display for capturing an image capable of character recognition, a display control method thereof, and a program | |
US9774833B2 (en) | Projector auto-focus correction with the aid of a camera | |
CN105635570A (en) | Shooting preview method and system | |
CN106170064A (en) | Camera focusing method, system and electronic equipment | |
CN105847660A (en) | Dynamic zoom method, device and intelligent device | |
US20140354784A1 (en) | Shooting method for three dimensional modeling and electronic device supporting the same | |
CN103034042A (en) | Panoramic shooting method and device | |
CN105847663A (en) | Adjusting method and adjusting device for displayed image on shooting device | |
CN104601883B (en) | A kind of method and device of image taking | |
CN104994288A (en) | Shooting method and user terminal | |
CN105007410A (en) | Large viewing angle camera control method and user terminal | |
JP2015062052A (en) | Imaging apparatus and imaging method | |
CN104935815B (en) | Method, device and the camera and mobile terminal taken pictures | |
JP6645711B2 (en) | Image processing apparatus, image processing method, and program | |
JP6483661B2 (en) | Imaging control apparatus, imaging control method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180904 |
|
CF01 | Termination of patent right due to non-payment of annual fee |