WO2019037038A1 - Image processing method and device, and server - Google Patents
Image processing method and device, and server Download PDFInfo
- Publication number
- WO2019037038A1 WO2019037038A1 PCT/CN2017/098854 CN2017098854W WO2019037038A1 WO 2019037038 A1 WO2019037038 A1 WO 2019037038A1 CN 2017098854 W CN2017098854 W CN 2017098854W WO 2019037038 A1 WO2019037038 A1 WO 2019037038A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- target
- dimensional model
- location
- information
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 33
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000001454 recorded image Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/77—Retouching; Inpainting; Scratch removal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/587—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/682—Vibration or motion blur correction
- H04N23/683—Vibration or motion blur correction performed by a processor, e.g. controlling the readout of an image memory
Definitions
- the present disclosure relates to the field of image processing, and in particular, to an image processing method, apparatus, and server.
- the present disclosure provides an image processing method, apparatus, and server for improving the sharpness of an image.
- an image processing method applied to a server, the method comprising:
- the image after the image replacement is transmitted to the terminal.
- an image processing method which is applied to a terminal, the method comprising:
- an image processing apparatus which is applied to a server, the apparatus comprising:
- a first determining module configured to determine a target sub-image included in a target image sent by the terminal
- a second determining module configured to determine, from the three-dimensional model library, a target three-dimensional model that matches a target object corresponding to the target sub-image
- a replacement module configured to perform image replacement on the target sub-image in the target image based on the target three-dimensional model
- the first sending module is configured to send the image after the image replacement to the terminal.
- an image processing apparatus which is applied to a terminal, the apparatus comprising:
- a first determining module configured to determine a target sub-image included in the target image
- a second determining module configured to determine, from the three-dimensional model library, a target three-dimensional model that matches a target object corresponding to the target sub-image
- the replacement module is configured to perform image replacement on the target sub-image in the target image based on the target three-dimensional model.
- a computer program product comprises a computer program executable by a programmable device, the computer program having code for performing the method of any of the first or second aspect when executed by the programmable device section.
- a non-transitory computer readable storage medium comprising one or more programs for performing The method of any of the first aspect or the second aspect.
- a server including:
- Non-transitory computer readable storage medium
- a terminal including:
- Non-transitory computer readable storage medium
- the server may find a matching target three-dimensional model from the three-dimensional model library, and then perform image replacement on the target sub-image in the target image based on the target three-dimensional model, thereby
- the target sub-image that may be blurred in the image is replaced with a clear image, and the target image after the image replacement is sent to the terminal, and the terminal can obtain a clear image, and the image processing capability of the server is strong.
- FIG. 1 is a flowchart of an image processing method according to an exemplary embodiment
- FIG. 2 is a schematic diagram of a location range, according to an exemplary embodiment
- FIG. 3 is a schematic diagram of a shooting target image, according to an exemplary embodiment
- FIG. 4 is a flowchart of an image processing method according to an exemplary embodiment
- FIG. 5 is a block diagram of an image processing apparatus according to an exemplary embodiment
- FIG. 6 is a block diagram of an image processing apparatus according to an exemplary embodiment.
- FIG. 1 is a flowchart of an image processing method according to an exemplary embodiment. As shown in FIG. 1, the image processing method can be applied to a server, and includes the following steps.
- Step S11 Determine a target sub-image included in the target image transmitted by the terminal.
- Step S12 Determine a target three-dimensional model that matches the target object corresponding to the target sub-image from the three-dimensional model library.
- Step S13 Perform image replacement on the target sub-image in the target image based on the target three-dimensional model.
- Step S14 transmitting the image after the image replacement to the terminal.
- the server may be a cloud device, and the terminal may implement image transmission with the cloud device through the network; or the server may be another device different from the terminal, and the terminal may be connected by wire or wirelessly. The other device is connected, thereby implementing image transfer, and the like. Any device that can receive the target image of the transmission of the terminal and process the target image may be the server in the embodiment of the present disclosure.
- the target image may be a certain frame image in a frame preview image acquired by the terminal when shooting by the camera, or the target image may also be an image stored in the terminal, etc. This is not limited.
- the target sub image may be a partial image corresponding to the subject in the target image when the target image is captured.
- the 3D model library can be a pre-built database, and the 3D model library can contain three-dimensional models of landmark buildings, places of interest, objects, and the like.
- the 3D model library can be stored in the server's own memory or it can be stored in another device that can communicate with the server.
- the server may parse the target image to determine the target sub-image included in the target image.
- the same target image may include one or more target sub-images. This is not limited.
- a target three-dimensional model matching the target object corresponding to the target sub-image can be found from the three-dimensional model library.
- the target image includes the sub-image corresponding to the target object “Zhaozhou Bridge”, and then the three-dimensional model library can be obtained from the three-dimensional model library. Match the three-dimensional model of "Zhaozhou Bridge".
- the location information of the target image may also be obtained, where the location information may be used to indicate a geographic location when the target image is collected; and then the location range including the location corresponding to the location information is determined according to the location information, and then the location range included in the location range is determined.
- the identification object may be an object corresponding to the three-dimensional model in the three-dimensional model library, and then the target three-dimensional model may be determined in the three-dimensional model set corresponding to all the identification objects.
- the location information may be used to indicate the geographic location when the target image is acquired.
- the manner of acquiring the location information of the target image is not limited in the embodiment of the present disclosure.
- the manner of acquiring the location information may be different according to the target image.
- the target image may be a certain frame image in the continuous preview image acquired by the terminal at the time of shooting, and the location information of the acquired target image may be the location information of the current terminal sent by the terminal (for example, the GPS through the terminal (Global Positioning System) , Global Positioning System module to get, etc.); or, the target image may be stored in the terminal
- the image information of the target image may include location information at the time of shooting, and the server may directly obtain the location information from the information carried by the target image.
- the location range may be determined according to the location information.
- the manner of determining the location range is not limited in this embodiment, as long as it is a location range that determines the geographic location corresponding to the location information.
- the geographic location corresponding to the location information may be directly centered, and the radius is a set value (for example, 500 meters, etc.), and the obtained circular area is the required position range.
- the location information may be combined with other parameters to determine the location range. The manner in which the location range is determined will be described below.
- the height information of the target image may also be acquired, and the height information may be used to indicate the altitude when the target image is collected, and then the location range may be determined according to the location information and the height information.
- the target image may be a certain frame image in the continuous preview image acquired by the terminal at the time of shooting, and the height information of the acquired target image may be the height information of the altitude at which the current terminal is sent by the terminal (for example, can be obtained by the altitude meter of the terminal).
- the target image may be an image stored in the terminal, and the image information of the target image may include height information at the time of shooting, and the server may directly obtain the height information from the information carried by the target image.
- the position range determined by the position information can be adjusted by the height information. For example, when the altitude is 0, the position range is a circle centered on the position indicated by the position information, and R is a circular area of the radius. For every 10 meters of elevation, the radius of the position range is increased by R1, and so on. In this way, the determined range of positions is more accurate, avoiding missing objects that the target image may capture, and the image processing capability of the server is strong.
- the focus distance of the target image can also be obtained, and then the location information can be Focus distance to determine the position range.
- the target image may be a certain frame image in the continuous preview image acquired by the terminal at the time of shooting, and the focus distance of the target image may be the focus distance set by the current shooting sent by the terminal; or the target image may be stored in the terminal.
- An image of the target image may include a focus distance at the time of shooting, and the server may directly obtain a focus distance from the information carried by the target image.
- the location range may be a circular area formed by the geographic location corresponding to the location information, and the focal length f is a radius; or A margin x can be set, and the position range can be a circle centered on the geographic location corresponding to the position information, a circle having a radius of fx and a circle having a radius of f+x, and the like.
- the position range can also be determined by the position information, the height information, and the focus distance.
- the position range can be determined first by the above-mentioned position information and the focus distance to determine the position range, and then the height information is used to determine the position range. Adjust the range of locations, and so on.
- all the identification objects corresponding to the three-dimensional model included in the location range can be found on the map. For example, if the determined location range is as shown in FIG. 2, then all the identification objects corresponding to the three-dimensional model included in the three-dimensional model library included in the location range may be determined, for example, “Leshan Dafoshan Gate”, “Big Buddha”, “ The three-dimensional model set may include the three-dimensional model of all the above-mentioned identification objects, such as Haishidong, Tianwangdian, Daxiongdian and Moruotang.
- the target sub-image may be compared in each three-dimensional model corresponding to all the identification objects, thereby obtaining a matching target three-dimensional model. It can be seen that the position information can be used to accurately find the comparison of the target sub-images.
- the scope can further quickly find the three-dimensional model matched by the target object corresponding to the target sub-image, improve the response speed of the server, and improve the image processing capability of the server.
- the target sub-image in the target image may be replaced by the target three-dimensional model, and then the target image after the image replacement is sent back to the terminal, and the user of the terminal can directly see through the server.
- the target image after the image is replaced.
- information indicating that the matching fails may be sent to the terminal, and the terminal may directly display an image that cannot be processed.
- the image replacement may be performed by first intercepting the target three-dimensional model to obtain a two-dimensional image that matches the target sub-image, and then replacing the target sub-image with the two-dimensional image in the target image.
- the target sub-image can be compared with the target three-dimensional model, and the target three-dimensional model is taken out, and the angle of the target sub-image is captured, the position of the target object is captured, and the target sub-image is A two-dimensional image in which the parameters such as the size of the target image are the same, and the intercepted two-dimensional image completely replaces the target sub-image in the target image.
- the target sub-image is A two-dimensional image in which the parameters such as the size of the target image are the same, and the intercepted two-dimensional image completely replaces the target sub-image in the target image.
- the finder frame when the target image is photographed, the finder frame is directed to a part of the middle of the "Eiffel Tower", and therefore, the target sub-image in the target image is an image formed by the "Eiffel Tower" in the middle portion. Then, after finding the 3D model of the target (ie, the 3D model of the Eiffel Tower), the angle of the target image, the size of the imaged sub-image of the image, etc., can be imaged according to the "Eiffel Tower", and the "Eiffel Tower”
- the three-dimensional model intercepts, extracts a two-dimensional image that matches the target sub-image, and then replaces the target sub-image in the target image with the intercepted two-dimensional image.
- the target three-dimensional model can be a three-dimensional model previously constructed by a computer, the two-dimensional image intercepted from the target three-dimensional model is a higher-definition image, regardless of the user of the terminal. Zooming in, as long as the target 3D model is fine enough, the image of the target object in the processed target image is always in an extremely clear state, and the zoom is no longer limited by the terminal capability. On the other hand, image blurring caused by hand shake or slow shutter speed can also be solved. By replacing the target sub-image which may be relatively blurred in the original target image by using the intercepted high-resolution two-dimensional image, the clarity of the subject in the target image can be improved, and the image processing capability of the server is strong.
- the image parameters of the two-dimensional image may also be set according to the image parameters of the target image.
- Image parameters may include brightness, contrast, color temperature, color values, and the like of the image.
- the image parameters of the target image may be directly sent by the terminal, or may be obtained from the image information carried by the target image, which is not limited by the embodiment of the present disclosure.
- the image parameters of the two-dimensional image intercepted from the target three-dimensional model may be set to the same or similar parameters, so that the target image after the image replacement is more matched, and the image processing capability of the server is better. Strong.
- the server stores another location range determined according to another image, determining a geographic location corresponding to the location information of the target image, and a distance between the geographic location corresponding to the location information of the other image exceeds a preset. a distance threshold; when the distance exceeds the preset distance threshold, determining a location range corresponding to the target image according to the location information of the target image, and updating the location range stored by the server; when the distance does not exceed the preset distance threshold, the other is The position range is determined as the position range.
- the preset distance threshold may be a preset value for determining whether to re-determine the location range.
- the embodiment of the present disclosure is not limited.
- the preset distance threshold may be set to 10 meters. , 15 meters, and so on.
- the target image is a frame image of a frame preview image acquired by the terminal when shooting through the camera, and the terminal can send each frame image collected to the server in real time, and the server processes each frame image. Send it back to the terminal.
- the position information of many consecutive frames may be the same or little change, and the server does not have to have bits for each frame of the image.
- the information is calculated by the location range. Therefore, the server can record the location range determined last time according to another image.
- the location range can be recalculated and the location recorded by the server can be updated. range. In this way, the accuracy of the location range can be ensured, the calculation amount of the server can be reduced, and the image processing speed of the server can be improved.
- the feature information of the target object may be acquired, where the feature information includes at least one of historical information, geographic information, and travel information; and the feature information is sent to the terminal.
- the server can get the information of "Eiffel Tower” from the network, such as historical information, fare information, best photo location information, nearby restaurant information, etc., and send this information.
- the terminal can be directly displayed on the screen, which improves the user experience and improves the information processing capability of the server.
- FIG. 4 is a flowchart of an image processing method according to an exemplary embodiment. As shown in FIG. 4, the image processing method may be applied to a terminal, including the following steps.
- Step S41 Determine a target sub-image included in the target image.
- Step S42 Determine a target three-dimensional model that matches the target object corresponding to the target sub-image from the three-dimensional model library.
- Step S43 Perform image replacement on the target sub-image in the target image based on the target three-dimensional model.
- the image processing method executed by the server side described above may also be executed by the terminal, and then the three-dimensional model library may be stored in the terminal, or may be stored in another device connected to the terminal, and the terminal does not need to target the image to be processed. Send it to the server and directly perform the steps of searching and replacing the target 3D model.
- the image processing method on the terminal side refer to the description of the corresponding part on the server side, and details are not described herein.
- FIG. 5 is a block diagram of an image processing apparatus 500 according to an exemplary embodiment, where the apparatus 500 can be applied.
- the server, the device 500 can include:
- the first determining module 501 is configured to determine a target sub-image included in the target image sent by the terminal;
- the second determining module 502 is configured to determine, from the three-dimensional model library, a target three-dimensional model that matches the target object corresponding to the target sub-image;
- the replacement module 503 is configured to perform image replacement on the target sub-image in the target image based on the target three-dimensional model
- the first sending module 504 is configured to send the image after the image replacement to the terminal.
- the apparatus 500 further includes:
- a first acquiring module configured to acquire location information of the target image, where the location information is used to indicate a geographic location when the target image is collected;
- a third determining module configured to determine a location range according to the location information, where the location range includes a location indicated by the location information;
- a fourth determining module configured to determine all the identification objects included in the location range, where the identification object is an object corresponding to the three-dimensional model in the three-dimensional model library;
- the second determining module includes 502:
- the first determining submodule is configured to determine the target three-dimensional model in the three-dimensional model set corresponding to all the identification objects.
- the apparatus 500 further includes:
- a second acquiring module configured to acquire height information of the target image, where the height information is used to indicate an altitude when the target image is collected;
- the third determining module includes:
- the second determining submodule is configured to determine the location range according to the location information and the altitude information.
- the apparatus 500 further includes:
- a third obtaining module configured to acquire a focusing distance of the target image
- the third determining module further includes:
- the third determining submodule is configured to determine the location range according to the location information and the focus distance.
- the server stores another location range determined according to another image
- the apparatus 500 further includes:
- a fifth determining module configured to determine whether a geographic location corresponding to the location information of the target image, and a distance between the geographic location corresponding to the location information of the other image exceeds a preset distance threshold
- the third determining module further includes:
- a fourth determining submodule configured to determine a location range corresponding to the target image according to the location information of the target image when the distance exceeds the preset distance threshold
- An update module configured to update a range of locations stored by the server
- the fifth determining submodule is configured to determine the other location range as the location range when the distance does not exceed the preset distance threshold.
- the replacement module 503 includes:
- An intercepting module configured to intercept the target three-dimensional model to obtain a two-dimensional image that matches the target sub-image
- the replacement sub-module is configured to replace the target sub-image with the two-dimensional image in the target image.
- the apparatus 500 further includes:
- the setting module is configured to set the image parameters of the two-dimensional image according to the image parameters of the target image after the target three-dimensional model is intercepted to obtain a two-dimensional image that matches the target sub-image.
- the apparatus 500 further includes:
- a fourth acquiring module configured to acquire feature information of the target object, where the feature information includes at least one of historical information, geographic information, and travel information;
- the second sending module is configured to send the feature information to the terminal.
- FIG. 6 is a block diagram of an image processing apparatus 600 according to an exemplary embodiment, where the apparatus 600 can be applied to Terminal, the device 600 can include:
- a first determining module 601 configured to determine a target sub-image included in the target image
- the second determining module 602 is configured to determine, from the three-dimensional model library, a target three-dimensional model that matches the target object corresponding to the target sub-image;
- the replacement module 603 is configured to perform image replacement on the target sub-image in the target image based on the target three-dimensional model.
- the disclosed apparatus and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the modules or units is only a logical function division.
- there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
- the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- a computer readable storage medium including a number of instructions to make a computer device (can be a A human computer, server, or network device, or the like, or a processor, performs all or part of the steps of the methods described in various embodiments of the present application.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a disk or an optical disk, and the like, which can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Geometry (AREA)
- Software Systems (AREA)
- Computer Graphics (AREA)
- Library & Information Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present disclosure relates to an image processing method and device, and a server, for use in improving the definition of an image. The method comprises: determining a target sub-image comprised in a target image sent by a terminal; determining a target three-dimensional model that matches a target object corresponding to the target sub-image from a three-dimensional model library; replacing the target sub-image in the target image according to the target three-dimensional model; and sending the target image after image replacement, to the terminal.
Description
本公开涉及图像处理领域,具体涉及一种图像处理方法、装置及服务器。The present disclosure relates to the field of image processing, and in particular, to an image processing method, apparatus, and server.
人们在使用相机或手机等设备拍照或者浏览照片时,常常会碰到因各种原因造成的图像模糊现象。比如拍照时对图像进行了放大,放大的图像可能会因数码变焦造成分辨率降低,从而导致图像模糊;或者,比如拍照时因手的抖动或者光线较暗快门较慢造成的拍出的图像较为模糊。When people take pictures or browse photos using devices such as cameras or mobile phones, they often encounter image blurring caused by various reasons. For example, when the image is taken, the image is enlarged, and the enlarged image may cause a decrease in resolution due to digital zoom, thereby causing the image to be blurred; or, for example, the image taken during the photographing due to the shaking of the hand or the slower shutter speed. blurry.
目前,可以将光学变焦、光学防抖、大光圈等等硬件技术应用到相机或手机上,这些硬件技术能够在一定程度上提升拍摄出的图像的清晰度,防止图像模糊。At present, hardware technologies such as optical zoom, optical image stabilization, and large aperture can be applied to cameras or mobile phones. These hardware technologies can improve the sharpness of captured images to a certain extent and prevent image blur.
然而,对于拍摄经验的不足的非专业的拍摄人员而言,借助上述硬件技术可能也无法拍出较为清晰的图像,或者,在某些场景下,比如光线较暗的环境下,拍摄的照片可能仍然较为模糊。However, for non-professional photographers with insufficient shooting experience, it may not be possible to take clearer images with the above hardware technology, or in some scenes, such as in low light conditions, the photos may be taken. Still blurry.
发明内容Summary of the invention
为克服相关技术中存在的问题,本公开提供一种图像处理方法、装置及服务器,用于提高图像的清晰度。In order to overcome the problems in the related art, the present disclosure provides an image processing method, apparatus, and server for improving the sharpness of an image.
根据本公开实施例的第一方面,提供一种图像处理方法,应用于服务器,所述方法包括:According to a first aspect of the embodiments of the present disclosure, there is provided an image processing method, applied to a server, the method comprising:
确定终端发送的目标图像中包括的目标子图像;Determining a target sub-image included in the target image transmitted by the terminal;
从三维模型库中确定与所述目标子图像对应的目标对象相匹配的目标三维模型;Determining, from the three-dimensional model library, a target three-dimensional model that matches the target object corresponding to the target sub-image;
基于所述目标三维模型,在所述目标图像中对所述目标子图像进行图像替换;
Performing image replacement on the target sub-image in the target image based on the target three-dimensional model;
向所述终端发送经图像替换后的目标图像。The image after the image replacement is transmitted to the terminal.
根据本公开实施例的第二方面,提供一种图像处理方法,应用于终端,所述方法包括:According to a second aspect of the embodiments of the present disclosure, there is provided an image processing method, which is applied to a terminal, the method comprising:
确定目标图像中包括的目标子图像;Determining a target sub-image included in the target image;
从三维模型库中确定与所述目标子图像对应的目标对象相匹配的目标三维模型;Determining, from the three-dimensional model library, a target three-dimensional model that matches the target object corresponding to the target sub-image;
基于所述目标三维模型,在所述目标图像中对所述目标子图像进行图像替换。Image replacement of the target sub-image in the target image based on the target three-dimensional model.
根据本公开实施例的第三方面,提供一种图像处理装置,应用于服务器,所述装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided an image processing apparatus, which is applied to a server, the apparatus comprising:
第一确定模块,被配置为确定终端发送的目标图像中包括的目标子图像;a first determining module configured to determine a target sub-image included in a target image sent by the terminal;
第二确定模块,被配置为从三维模型库中确定与所述目标子图像对应的目标对象相匹配的目标三维模型;a second determining module configured to determine, from the three-dimensional model library, a target three-dimensional model that matches a target object corresponding to the target sub-image;
替换模块,被配置为基于所述目标三维模型,在所述目标图像中对所述目标子图像进行图像替换;a replacement module configured to perform image replacement on the target sub-image in the target image based on the target three-dimensional model;
第一发送模块,被配置为向所述终端发送经图像替换后的目标图像。The first sending module is configured to send the image after the image replacement to the terminal.
根据本公开实施例的第四方面,提供一种图像处理装置,应用于终端,所述装置包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided an image processing apparatus, which is applied to a terminal, the apparatus comprising:
第一确定模块,被配置为确定目标图像中包括的目标子图像;a first determining module configured to determine a target sub-image included in the target image;
第二确定模块,被配置为从三维模型库中确定与所述目标子图像对应的目标对象相匹配的目标三维模型;a second determining module configured to determine, from the three-dimensional model library, a target three-dimensional model that matches a target object corresponding to the target sub-image;
替换模块,被配置为基于所述目标三维模型,在所述目标图像中对所述目标子图像进行图像替换。The replacement module is configured to perform image replacement on the target sub-image in the target image based on the target three-dimensional model.
根据本公开实施例的第五方面,提供一种计算机程序产品,所述计算
机程序产品包含能够由可编程的装置执行的计算机程序,所述计算机程序具有当由所述可编程的装置执行时用于执行第一方面或第二方面中任一项所述的方法的代码部分。According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, the calculation
The program product comprises a computer program executable by a programmable device, the computer program having code for performing the method of any of the first or second aspect when executed by the programmable device section.
根据本公开实施例的第六方面,提供一种非临时性计算机可读存储介质,所述非临时性计算机可读存储介质中包括一个或多个程序,所述一个或多个程序用于执行第一方面或第二方面中任一项所述的方法。According to a sixth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium comprising one or more programs for performing The method of any of the first aspect or the second aspect.
根据本公开实施例的第七方面,提供一种服务器,包括:According to a seventh aspect of the embodiments of the present disclosure, a server is provided, including:
非临时性计算机可读存储介质;以及Non-transitory computer readable storage medium;
一个或者多个处理器,用于执行所述非临时性计算机可读存储介质中的程序;所述非临时性计算机可读存储介质中存储有用于执行第一方面任一项所述的方法的指令。One or more processors for executing the program in the non-transitory computer readable storage medium; the non-transitory computer readable storage medium storing the method for performing the method of any of the first aspects instruction.
根据本公开实施例的第八方面,提供一种终端,包括:According to an eighth aspect of the embodiments of the present disclosure, a terminal is provided, including:
非临时性计算机可读存储介质;以及Non-transitory computer readable storage medium;
一个或者多个处理器,用于执行所述非临时性计算机可读存储介质中的程序;所述非临时性计算机可读存储介质中存储有用于执行第二方面所述的方法的指令。One or more processors for executing the program in the non-transitory computer readable storage medium; the non-transitory computer readable storage medium storing instructions for performing the method of the second aspect.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开中,服务器在接收到终端发送的目标图像后,可以从三维模型库中找出匹配的目标三维模型,然后基于目标三维模型对目标图像中的目标子图像进行图像替换,进而将原目标图像中可能比较模糊的目标子图像替换为清晰的图像,将进行图像替换后的目标图像再发给终端,终端便能得到较为清晰的图像,服务器的图像处理能力较强。In the present disclosure, after receiving the target image sent by the terminal, the server may find a matching target three-dimensional model from the three-dimensional model library, and then perform image replacement on the target sub-image in the target image based on the target three-dimensional model, thereby The target sub-image that may be blurred in the image is replaced with a clear image, and the target image after the image replacement is sent to the terminal, and the terminal can obtain a clear image, and the image processing capability of the server is strong.
图1是根据一示例性实施例示出的一种图像处理方法的流程图;FIG. 1 is a flowchart of an image processing method according to an exemplary embodiment;
图2是根据一示例性实施例示出的位置范围示意图;
2 is a schematic diagram of a location range, according to an exemplary embodiment;
图3是根据一示例性实施例示出的拍摄目标图像的示意图;FIG. 3 is a schematic diagram of a shooting target image, according to an exemplary embodiment; FIG.
图4是根据一示例性实施例示出的一种图像处理方法的流程图;FIG. 4 is a flowchart of an image processing method according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种图像处理装置的框图;FIG. 5 is a block diagram of an image processing apparatus according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种图像处理装置的框图。FIG. 6 is a block diagram of an image processing apparatus according to an exemplary embodiment.
以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。The specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are not to be construed
图1是根据一示例性实施例示出的一种图像处理方法的流程图,如图1所示,该图像处理方法可以应用于服务器中,包括以下步骤。FIG. 1 is a flowchart of an image processing method according to an exemplary embodiment. As shown in FIG. 1, the image processing method can be applied to a server, and includes the following steps.
步骤S11:确定终端发送的目标图像中包括的目标子图像。Step S11: Determine a target sub-image included in the target image transmitted by the terminal.
步骤S12:从三维模型库中确定与目标子图像对应的目标对象相匹配的目标三维模型。Step S12: Determine a target three-dimensional model that matches the target object corresponding to the target sub-image from the three-dimensional model library.
步骤S13:基于目标三维模型,在目标图像中对目标子图像进行图像替换。Step S13: Perform image replacement on the target sub-image in the target image based on the target three-dimensional model.
步骤S14:向终端发送经图像替换后的目标图像。Step S14: transmitting the image after the image replacement to the terminal.
本公开实施例中,服务器可以是一云端设备,那么终端可以通过网络实现与云端设备的图像互传;或者服务器也可以是与终端不同的另一设备,那么终端可以通过有线或无线的方式与该另一设备连接,进而实现图像的互传,等等。只要是能够接收终端的发送的目标图像,并对目标图像进行处理的设备均可以是本公开实施例中的服务器。In the embodiment of the present disclosure, the server may be a cloud device, and the terminal may implement image transmission with the cloud device through the network; or the server may be another device different from the terminal, and the terminal may be connected by wire or wirelessly. The other device is connected, thereby implementing image transfer, and the like. Any device that can receive the target image of the transmission of the terminal and process the target image may be the server in the embodiment of the present disclosure.
目标图像可以是终端通过摄像头进行拍摄时采集到的一帧帧预览图像中的某一帧图像,或者,目标图像也可以是存储在终端中的某一张图像,等等,本公开实施例对此不作限定。目标子图像可以是拍摄目标图像时针对的被拍摄对象在该目标图像中对应的部分图像。
The target image may be a certain frame image in a frame preview image acquired by the terminal when shooting by the camera, or the target image may also be an image stored in the terminal, etc. This is not limited. The target sub image may be a partial image corresponding to the subject in the target image when the target image is captured.
三维模型库可以是预先建立的数据库,三维模型库中可以包含有世界各地的标识性的建筑、名胜古迹、物体,等等对象的三维模型。三维模型库可以存储在服务器自身的存储器中,或者也可以存储在另一能够与服务器通信的设备中。The 3D model library can be a pre-built database, and the 3D model library can contain three-dimensional models of landmark buildings, places of interest, objects, and the like. The 3D model library can be stored in the server's own memory or it can be stored in another device that can communicate with the server.
服务器在接收到终端发送的目标图像后,可以对目标图像进行解析,进而确定出目标图像包括的目标子图像,当然,同一目标图像中可能包括一个或多个目标子图像,本公开实施例对此不作限定。然后可以从三维模型库中找出与目标子图像所对应的目标对象相匹配的目标三维模型,例如,目标图像中包括目标对象“赵州桥”所对应的子图像,那么可以从三维模型库中匹配地找出“赵州桥”的三维模型。After receiving the target image sent by the terminal, the server may parse the target image to determine the target sub-image included in the target image. Of course, the same target image may include one or more target sub-images. This is not limited. Then, a target three-dimensional model matching the target object corresponding to the target sub-image can be found from the three-dimensional model library. For example, the target image includes the sub-image corresponding to the target object “Zhaozhou Bridge”, and then the three-dimensional model library can be obtained from the three-dimensional model library. Match the three-dimensional model of "Zhaozhou Bridge".
从三维模型库中确定与目标子图像对应的目标对象相匹配的目标三维模型,可以直接用目标子图像在整个三维模型库中去匹配,找出目标三维模型,或者也可以先确定一个范围相对小的三维模型集合,用目标子图像在三维模型集合中去匹配,找出目标三维模型。Determining the target 3D model matching the target object corresponding to the target sub-image from the 3D model library, directly matching the target sub-image in the entire 3D model library to find the target 3D model, or first determining a range relative A small set of 3D models is used to match the target sub-images in the 3D model set to find the target 3D model.
可选的,还可以获取目标图像的位置信息,位置信息可以用于指示采集目标图像时的地理位置;然后根据位置信息确定包括该位置信息对应的位置的位置范围,再确定位置范围内包括的全部的标识对象,标识对象可以是在三维模型库中对应有三维模型的对象,那么目标三维模型可以在全部的标识对象对应的三维模型集合中来确定。Optionally, the location information of the target image may also be obtained, where the location information may be used to indicate a geographic location when the target image is collected; and then the location range including the location corresponding to the location information is determined according to the location information, and then the location range included in the location range is determined. For all the identification objects, the identification object may be an object corresponding to the three-dimensional model in the three-dimensional model library, and then the target three-dimensional model may be determined in the three-dimensional model set corresponding to all the identification objects.
位置信息可以用来指示采集目标图像时的地理位置,对于获取目标图像的位置信息的方式,本公开实施例不作限定,根据目标图像的不同,获取位置信息的方式可能不同。目标图像可能是终端在拍摄时采集的连续预览图像中的某一帧图像,那么获取目标图像的位置信息可以是终端发送的当前终端所处的位置信息(比如可以通过终端的GPS(Global Positioning System,全球定位系统)模块来获取,等等);或者,目标图像可能是存储在终端中的
一张图像,目标图像的图像信息中可以包括拍摄时的位置信息,服务器直接从目标图像携带的信息中获取位置信息即可。The location information may be used to indicate the geographic location when the target image is acquired. The manner of acquiring the location information of the target image is not limited in the embodiment of the present disclosure. The manner of acquiring the location information may be different according to the target image. The target image may be a certain frame image in the continuous preview image acquired by the terminal at the time of shooting, and the location information of the acquired target image may be the location information of the current terminal sent by the terminal (for example, the GPS through the terminal (Global Positioning System) , Global Positioning System module to get, etc.); or, the target image may be stored in the terminal
For an image, the image information of the target image may include location information at the time of shooting, and the server may directly obtain the location information from the information carried by the target image.
获取了目标图像的位置信息后,可以根据位置信息确定位置范围,对于确定位置范围的方式本公开实施例不作限定,只要是确定包括位置信息所对应的地理位置的一个位置范围即可。例如,可以直接以位置信息所对应的地理位置为圆心,半径为一设定值(比如500米,等等),得到的圆形区域即为所需的位置范围。或者,还可以用位置信息与其他参数相结合来确定位置范围,以下将对结合确定位置范围的方式进行说明。After the location information of the target image is obtained, the location range may be determined according to the location information. The manner of determining the location range is not limited in this embodiment, as long as it is a location range that determines the geographic location corresponding to the location information. For example, the geographic location corresponding to the location information may be directly centered, and the radius is a set value (for example, 500 meters, etc.), and the obtained circular area is the required position range. Alternatively, the location information may be combined with other parameters to determine the location range. The manner in which the location range is determined will be described below.
可选的,还可以获取目标图像的高度信息,高度信息可以用于指示采集目标图像时的海拔高度,那么可以根据述位置信息及高度信息来确定位置范围。Optionally, the height information of the target image may also be acquired, and the height information may be used to indicate the altitude when the target image is collected, and then the location range may be determined according to the location information and the height information.
根据目标图像的不同,获取高度信息的方式可能不同。目标图像可能是终端在拍摄时采集的连续预览图像中的某一帧图像,那么获取目标图像的高度信息可以是终端发送的当前终端所处海拔高度的高度信息(比如可以通过终端的海拔仪获取);或者,目标图像可能是存储在终端中的一张图像,目标图像的图像信息中可以包括拍摄时的高度信息,服务器直接从目标图像携带的信息中获取高度信息即可。Depending on the target image, the way to get height information may vary. The target image may be a certain frame image in the continuous preview image acquired by the terminal at the time of shooting, and the height information of the acquired target image may be the height information of the altitude at which the current terminal is sent by the terminal (for example, can be obtained by the altitude meter of the terminal). Or; the target image may be an image stored in the terminal, and the image information of the target image may include height information at the time of shooting, and the server may directly obtain the height information from the information carried by the target image.
在实际应用中,拍摄者所处的海拔高度不同,能够拍摄的景物的远近可能不同,通常,所处的位置越高,能看到更远的景物,能够拍摄的范围也更大,因此,可以通过高度信息来对位置信息确定的位置范围进行调整。例如,可以设定海拔高度为0时,位置范围为以位置信息所指示的位置为圆心,R为半径的圆形区域,海拔每上升10米,位置范围的半径增加R1,等等。这样,确定出的位置范围更加准确,避免遗漏目标图像可能拍到的对象,服务器的图像处理能力较强。In practical applications, the altitude of the photographer is different, and the distance of the scene that can be photographed may be different. Generally, the higher the position, the more distant the scene can be seen, and the range of shooting can be larger. Therefore, The position range determined by the position information can be adjusted by the height information. For example, when the altitude is 0, the position range is a circle centered on the position indicated by the position information, and R is a circular area of the radius. For every 10 meters of elevation, the radius of the position range is increased by R1, and so on. In this way, the determined range of positions is more accurate, avoiding missing objects that the target image may capture, and the image processing capability of the server is strong.
可选的,还可以获取目标图像的对焦距离,那么可以根据述位置信息及
对焦距离,确定位置范围。Optionally, the focus distance of the target image can also be obtained, and then the location information can be
Focus distance to determine the position range.
根据目标图像的不同,获取对焦距离的方式可能也不同。目标图像可能是终端在拍摄时采集的连续预览图像中的某一帧图像,那么获取目标图像的对焦距离可以是终端发送的当前拍摄所设置的对焦距离;或者,目标图像可能是存储在终端中的一张图像,目标图像的图像信息中可以包括拍摄时的对焦距离,服务器直接从目标图像携带的信息中获取对焦距离即可。Depending on the target image, the way to get the focus distance may be different. The target image may be a certain frame image in the continuous preview image acquired by the terminal at the time of shooting, and the focus distance of the target image may be the focus distance set by the current shooting sent by the terminal; or the target image may be stored in the terminal. An image of the target image may include a focus distance at the time of shooting, and the server may directly obtain a focus distance from the information carried by the target image.
对于根据位置信息及对焦距离确定位置范围的方式,本公开实施例不作限定,例如,位置范围可以是以位置信息对应的地理位置为圆心,对焦距离f为半径所形成的圆形区域;或者例如,可以设置一个余量x,位置范围可以是以位置信息对应的地理位置为圆心,半径为f-x的圆与半径为f+x的圆构成的圆环区域,等等。通过以上方式可以确定出相对较小且能够较为准确地表征目标图像所对应的拍摄对象可能在的范围,进而减少在下个步骤中可能与目标子图像进行比对的三维模型的数量,减小了服务器的数据处理量,提高了服务器图像处理的速度。For the manner of determining the location range according to the location information and the focus distance, the embodiment of the present disclosure is not limited. For example, the location range may be a circular area formed by the geographic location corresponding to the location information, and the focal length f is a radius; or A margin x can be set, and the position range can be a circle centered on the geographic location corresponding to the position information, a circle having a radius of fx and a circle having a radius of f+x, and the like. By the above manner, it is possible to determine a relatively small and relatively accurate representation of the range of possible subjects corresponding to the target image, thereby reducing the number of three-dimensional models that may be compared with the target sub-image in the next step, and reducing the number of models. The amount of data processed by the server improves the speed of server image processing.
当然,也可以通过位置信息、高度信息、以及对焦距离共同来确定位置范围,例如,可以先通过上述的位置信息与对焦距离确定位置范围的方式先确定一个位置范围,再通过高度信息来对确定出的位置范围进行调整,等等。Of course, the position range can also be determined by the position information, the height information, and the focus distance. For example, the position range can be determined first by the above-mentioned position information and the focus distance to determine the position range, and then the height information is used to determine the position range. Adjust the range of locations, and so on.
在确定位置范围后,可以在地图上找出该位置范围内所包含的全部的对应有三维模型的标识对象。例如,确定出的位置范围如图2所示,那么可以确定该位置范围内包括的在三维模型库中对应有三维模型的全部标识对象,比如包括“乐山大佛山门”、“大佛”、“海师洞”、“天王殿”、“大雄殿”、“沫若堂”,三维模型集合则可以包括上述全部标识对象的三维模型。After determining the location range, all the identification objects corresponding to the three-dimensional model included in the location range can be found on the map. For example, if the determined location range is as shown in FIG. 2, then all the identification objects corresponding to the three-dimensional model included in the three-dimensional model library included in the location range may be determined, for example, “Leshan Dafoshan Gate”, “Big Buddha”, “ The three-dimensional model set may include the three-dimensional model of all the above-mentioned identification objects, such as Haishidong, Tianwangdian, Daxiongdian and Moruotang.
在确定与目标子图像对应的目标对象所匹配的目标三维模型时,可以用目标子图像在全部标识对象对应的各个三维模型中做比对,进而得出匹配的目标三维模型。可见,通过位置信息可以较为准确地找出目标子图像的比对
的范围,进而可以较为快捷地找出目标子图像对应的目标对象所匹配的三维模型,提高了服务器的响应速度,也提升了服务器的图像处理能力。When the target three-dimensional model matched by the target object corresponding to the target sub-image is determined, the target sub-image may be compared in each three-dimensional model corresponding to all the identification objects, thereby obtaining a matching target three-dimensional model. It can be seen that the position information can be used to accurately find the comparison of the target sub-images.
The scope can further quickly find the three-dimensional model matched by the target object corresponding to the target sub-image, improve the response speed of the server, and improve the image processing capability of the server.
在确定出目标三维模型后,可以基于目标三维模型对目标图像中的目标子图像进行图像替换,然后将进行图像替换后的目标图像发回给终端,终端的用户便能直接看到经服务器进行图像替换后的目标图像。当然,如果未找到匹配的目标三维模型,可以向终端发送指示匹配失败的信息,终端可以直接显示无法处理的图像。After the target three-dimensional model is determined, the target sub-image in the target image may be replaced by the target three-dimensional model, and then the target image after the image replacement is sent back to the terminal, and the user of the terminal can directly see through the server. The target image after the image is replaced. Of course, if a matching target three-dimensional model is not found, information indicating that the matching fails may be sent to the terminal, and the terminal may directly display an image that cannot be processed.
可选的,图像替换的方式可以是先对目标三维模型进行截取,以得到与目标子图像匹配的二维图像,然后在目标图像中,用二维图像替换目标子图像。Optionally, the image replacement may be performed by first intercepting the target three-dimensional model to obtain a two-dimensional image that matches the target sub-image, and then replacing the target sub-image with the two-dimensional image in the target image.
也就是说,在找出目标三维模型后,可以用目标子图像与目标三维模型进行比对,通过目标三维模型,截取出与目标子图像拍摄角度、拍摄的目标对象的部位、目标子图像在目标图像中的大小等参数均相同的一个二维图像,再用截取的二维图像在目标图像中完全替换目标子图像。当然,在进行图像替换时,可以只对目标子图像的细节进行替换,而保留原有的拍摄效果,比如阳光反射,雨雾等等。That is to say, after the target three-dimensional model is found, the target sub-image can be compared with the target three-dimensional model, and the target three-dimensional model is taken out, and the angle of the target sub-image is captured, the position of the target object is captured, and the target sub-image is A two-dimensional image in which the parameters such as the size of the target image are the same, and the intercepted two-dimensional image completely replaces the target sub-image in the target image. Of course, when performing image replacement, it is possible to replace only the details of the target sub-image, while retaining the original shooting effects, such as sunlight reflection, rain and fog, and the like.
例如,请参见图3,目标图像在拍摄取景时,取景框所针对的是“埃菲尔铁塔”中间的一部分,因此,目标图像中的目标子图像是中间部分的“埃菲尔铁塔”所成的图像,那么在找出目标三维模型(即“埃菲尔铁塔”的三维模型)后,可以按照“埃菲尔铁塔”成像在目标图像中的角度、部位、成像的目标子图像的大小等等参数,对“埃菲尔铁塔”的三维模型进行截取,截取出与目标子图像匹配的二维图像,然后用截取的二维图像替换目标图像中的目标子图像。For example, referring to FIG. 3, when the target image is photographed, the finder frame is directed to a part of the middle of the "Eiffel Tower", and therefore, the target sub-image in the target image is an image formed by the "Eiffel Tower" in the middle portion. Then, after finding the 3D model of the target (ie, the 3D model of the Eiffel Tower), the angle of the target image, the size of the imaged sub-image of the image, etc., can be imaged according to the "Eiffel Tower", and the "Eiffel Tower" The three-dimensional model intercepts, extracts a two-dimensional image that matches the target sub-image, and then replaces the target sub-image in the target image with the intercepted two-dimensional image.
由于目标三维模型可以是预先用计算机构建出的三维模型,因此从目标三维模型截取的二维图像为清晰度较高的图像,不管终端的用户对图像如何
放大,只要目标三维模型够精细,处理后的目标图像中的目标对象的图像始终保持极致清晰的状态,变焦不再受限于终端能力。另一方面,因手抖或快门慢造成的图像模糊也可得到解决。利用截取的清晰度较高的二维图像替换原目标图像中可能相对模糊的目标子图像,可以提升目标图像中主体的清晰度,服务器的图像处理能力较强。Since the target three-dimensional model can be a three-dimensional model previously constructed by a computer, the two-dimensional image intercepted from the target three-dimensional model is a higher-definition image, regardless of the user of the terminal.
Zooming in, as long as the target 3D model is fine enough, the image of the target object in the processed target image is always in an extremely clear state, and the zoom is no longer limited by the terminal capability. On the other hand, image blurring caused by hand shake or slow shutter speed can also be solved. By replacing the target sub-image which may be relatively blurred in the original target image by using the intercepted high-resolution two-dimensional image, the clarity of the subject in the target image can be improved, and the image processing capability of the server is strong.
可选的,在对目标三维模型进行截取,以得到与目标子图像匹配的二维图像之后,还可以按照目标图像的图像参数,设置二维图像的图像参数。Optionally, after the target three-dimensional model is intercepted to obtain a two-dimensional image that matches the target sub-image, the image parameters of the two-dimensional image may also be set according to the image parameters of the target image.
图像参数可以包括图像的亮度、对比度、色温、颜色值,等等。目标图像的图像参数可以是由终端直接发送的,也可以是从目标图像携带的图像信息中获取的,本公开实施例对此不作限定。Image parameters may include brightness, contrast, color temperature, color values, and the like of the image. The image parameters of the target image may be directly sent by the terminal, or may be obtained from the image information carried by the target image, which is not limited by the embodiment of the present disclosure.
在获取目标图像的图像参数后,可以将从目标三维模型截取的二维图像的图像参数设置成相同或相近的参数,这样可以使得进行图像替换后的目标图像更加匹配,服务器的图像处理能力较强。After obtaining the image parameters of the target image, the image parameters of the two-dimensional image intercepted from the target three-dimensional model may be set to the same or similar parameters, so that the target image after the image replacement is more matched, and the image processing capability of the server is better. Strong.
可选的,服务器存储有根据另一图像确定的另一位置范围,确定目标图像的位置信息所对应的地理位置,与另一图像的位置信息所对应的地理位置之间的距离是否超过预设距离阈值;在距离超过预设距离阈值时,根据目标图像的位置信息,确定与目标图像对应的位置范围,及,更新服务器存储的位置范围;在距离未超过预设距离阈值时,将另一位置范围确定为位置范围。Optionally, the server stores another location range determined according to another image, determining a geographic location corresponding to the location information of the target image, and a distance between the geographic location corresponding to the location information of the other image exceeds a preset. a distance threshold; when the distance exceeds the preset distance threshold, determining a location range corresponding to the target image according to the location information of the target image, and updating the location range stored by the server; when the distance does not exceed the preset distance threshold, the other is The position range is determined as the position range.
预设距离阈值可以是预先设定的用来判断是否要重新确定位置范围的值,对于预设距离阈值究竟是多少,本公开实施例不作限定,例如,可以将预设距离阈值设为10米、15米,等等。The preset distance threshold may be a preset value for determining whether to re-determine the location range. For the preset distance threshold, the embodiment of the present disclosure is not limited. For example, the preset distance threshold may be set to 10 meters. , 15 meters, and so on.
针对目标图像是终端通过摄像头进行拍摄时采集到的一帧帧预览图像中的某一帧图像的情况,终端可以实时地将采集的每一帧图像发送给服务器,服务器对每一帧图像处理后再发回给终端。这种情况下,可能连续的很多帧图像的位置信息是相同或者变化不大的,服务器不必针对每帧图像的位
置信息都进行位置范围的计算,因此,服务器可以记录有上一次根据另一图像确定的位置范围,如果接收到的图像与记录的图像拍摄地理位置之间的距离没超过预设距离阈值,可以直接使用存储的位置范围来找目标三维模型;反之,如果接收到的图像与记录的图像拍摄地理位置之间的距离超过了预设距离阈值,可以再重新计算位置范围,并更新服务器记录的位置范围。这样,既能保证位置范围的准确性,也能减少服务器的计算量,提高了服务器的图像处理速度。The target image is a frame image of a frame preview image acquired by the terminal when shooting through the camera, and the terminal can send each frame image collected to the server in real time, and the server processes each frame image. Send it back to the terminal. In this case, the position information of many consecutive frames may be the same or little change, and the server does not have to have bits for each frame of the image.
The information is calculated by the location range. Therefore, the server can record the location range determined last time according to another image. If the distance between the received image and the recorded image capturing geographic location does not exceed the preset distance threshold, Directly use the stored location range to find the target 3D model; conversely, if the distance between the received image and the recorded image capture location exceeds the preset distance threshold, the location range can be recalculated and the location recorded by the server can be updated. range. In this way, the accuracy of the location range can be ensured, the calculation amount of the server can be reduced, and the image processing speed of the server can be improved.
可选的,还可以获取目标对象的特征信息,特征信息包括历史信息、地理信息、及旅游信息中的至少一者;向终端发送特征信息。Optionally, the feature information of the target object may be acquired, where the feature information includes at least one of historical information, geographic information, and travel information; and the feature information is sent to the terminal.
例如,目标对象是“埃菲尔铁塔”,那么服务器可以从网络中获取“埃菲尔铁塔”的信息,比如,历史信息、票价信息、最佳拍照位置信息、附近餐厅信息、等等,将这些信息发送给终端,终端可以直接显示到屏幕上,提升了用户体验,也提高了服务器的信息处理能力。For example, if the target object is "Eiffel Tower", then the server can get the information of "Eiffel Tower" from the network, such as historical information, fare information, best photo location information, nearby restaurant information, etc., and send this information. To the terminal, the terminal can be directly displayed on the screen, which improves the user experience and improves the information processing capability of the server.
图4是根据一示例性实施例示出的一种图像处理方法的流程图,如图4所示,该图像处理方法可以应用于终端中,包括以下步骤。FIG. 4 is a flowchart of an image processing method according to an exemplary embodiment. As shown in FIG. 4, the image processing method may be applied to a terminal, including the following steps.
步骤S41:确定目标图像中包括的目标子图像。Step S41: Determine a target sub-image included in the target image.
步骤S42:从三维模型库中确定与目标子图像对应的目标对象相匹配的目标三维模型。Step S42: Determine a target three-dimensional model that matches the target object corresponding to the target sub-image from the three-dimensional model library.
步骤S43:基于目标三维模型,在目标图像中对目标子图像进行图像替换。Step S43: Perform image replacement on the target sub-image in the target image based on the target three-dimensional model.
也就是说,上述服务器侧执行的图像处理方法也可以由终端来执行,那么三维模型库可以存储在终端中,或者也可以存储在与终端连接的另一设备中,终端无需将要处理的目标图像发送给服务器,直接进行目标三维模型的查找、图像替换等步骤即可。对于终端侧的图像处理方法具体的实现方式请参见上述服务器侧相应部分的描述,在此不再赘述。
That is to say, the image processing method executed by the server side described above may also be executed by the terminal, and then the three-dimensional model library may be stored in the terminal, or may be stored in another device connected to the terminal, and the terminal does not need to target the image to be processed. Send it to the server and directly perform the steps of searching and replacing the target 3D model. For the specific implementation of the image processing method on the terminal side, refer to the description of the corresponding part on the server side, and details are not described herein.
基于同一发明构思,本公开实施例提供一种图像处理装置,如图5所示,图5是根据一示例性实施例示出的一种图像处理装置500的框图,其中,该装置500可以应用于服务器,该装置500可以包括:Based on the same inventive concept, an embodiment of the present disclosure provides an image processing apparatus. As shown in FIG. 5, FIG. 5 is a block diagram of an image processing apparatus 500 according to an exemplary embodiment, where the apparatus 500 can be applied. The server, the device 500 can include:
第一确定模块501,被配置为确定终端发送的目标图像中包括的目标子图像;The first determining module 501 is configured to determine a target sub-image included in the target image sent by the terminal;
第二确定模块502,被配置为从三维模型库中确定与目标子图像对应的目标对象相匹配的目标三维模型;The second determining module 502 is configured to determine, from the three-dimensional model library, a target three-dimensional model that matches the target object corresponding to the target sub-image;
替换模块503,被配置为基于目标三维模型,在目标图像中对目标子图像进行图像替换;The replacement module 503 is configured to perform image replacement on the target sub-image in the target image based on the target three-dimensional model;
第一发送模块504,被配置为向终端发送经图像替换后的目标图像。The first sending module 504 is configured to send the image after the image replacement to the terminal.
可选的,装置500还包括:Optionally, the apparatus 500 further includes:
第一获取模块,被配置为获取目标图像的位置信息,位置信息用于指示采集目标图像时的地理位置;a first acquiring module configured to acquire location information of the target image, where the location information is used to indicate a geographic location when the target image is collected;
第三确定模块,被配置为根据位置信息,确定位置范围,位置范围包括位置信息所指示的位置;a third determining module, configured to determine a location range according to the location information, where the location range includes a location indicated by the location information;
第四确定模块,被配置为确定位置范围内包括的全部的标识对象,标识对象为在三维模型库中对应有三维模型的对象;a fourth determining module configured to determine all the identification objects included in the location range, where the identification object is an object corresponding to the three-dimensional model in the three-dimensional model library;
第二确定模块包括502:The second determining module includes 502:
第一确定子模块,被配置为在全部的标识对象对应的三维模型集合中,确定目标三维模型。The first determining submodule is configured to determine the target three-dimensional model in the three-dimensional model set corresponding to all the identification objects.
可选的,装置500还包括:Optionally, the apparatus 500 further includes:
第二获取模块,被配置为获取目标图像的高度信息,高度信息用于指示采集目标图像时的海拔高度;a second acquiring module configured to acquire height information of the target image, where the height information is used to indicate an altitude when the target image is collected;
第三确定模块包括:The third determining module includes:
第二确定子模块,被配置为根据述位置信息及高度信息,确定位置范围。
The second determining submodule is configured to determine the location range according to the location information and the altitude information.
可选的,装置500还包括:Optionally, the apparatus 500 further includes:
第三获取模块,被配置为获取目标图像的对焦距离;a third obtaining module configured to acquire a focusing distance of the target image;
第三确定模块还包括:The third determining module further includes:
第三确定子模块,被配置为根据述位置信息及对焦距离,确定位置范围。The third determining submodule is configured to determine the location range according to the location information and the focus distance.
可选的,服务器存储有根据另一图像确定的另一位置范围,装置500还包括:Optionally, the server stores another location range determined according to another image, and the apparatus 500 further includes:
第五确定模块,被配置为确定目标图像的位置信息所对应的地理位置,与另一图像的位置信息所对应的地理位置之间的距离是否超过预设距离阈值;a fifth determining module, configured to determine whether a geographic location corresponding to the location information of the target image, and a distance between the geographic location corresponding to the location information of the other image exceeds a preset distance threshold;
第三确定模块还包括:The third determining module further includes:
第四确定子模块,被配置为在距离超过预设距离阈值时,根据目标图像的位置信息,确定与目标图像对应的位置范围;及,a fourth determining submodule configured to determine a location range corresponding to the target image according to the location information of the target image when the distance exceeds the preset distance threshold; and
更新模块,被配置为更新服务器存储的位置范围;An update module configured to update a range of locations stored by the server;
第五确定子模块,被配置为在距离未超过预设距离阈值时,将另一位置范围确定为位置范围。The fifth determining submodule is configured to determine the other location range as the location range when the distance does not exceed the preset distance threshold.
可选的,替换模块503包括:Optionally, the replacement module 503 includes:
截取模块,被配置为对目标三维模型进行截取,以得到与目标子图像匹配的二维图像;An intercepting module configured to intercept the target three-dimensional model to obtain a two-dimensional image that matches the target sub-image;
替换子模块,被配置为在目标图像中,用二维图像替换目标子图像。The replacement sub-module is configured to replace the target sub-image with the two-dimensional image in the target image.
可选的,装置500还包括:Optionally, the apparatus 500 further includes:
设置模块,被配置为在对目标三维模型进行截取,以得到与目标子图像匹配的二维图像之后,按照目标图像的图像参数,设置二维图像的图像参数。The setting module is configured to set the image parameters of the two-dimensional image according to the image parameters of the target image after the target three-dimensional model is intercepted to obtain a two-dimensional image that matches the target sub-image.
可选的,装置500还包括:Optionally, the apparatus 500 further includes:
第四获取模块,被配置为获取目标对象的特征信息,特征信息包括历史信息、地理信息、及旅游信息中的至少一者;
a fourth acquiring module, configured to acquire feature information of the target object, where the feature information includes at least one of historical information, geographic information, and travel information;
第二发送模块,被配置为向终端发送特征信息。The second sending module is configured to send the feature information to the terminal.
基于同一发明构思,本公开实施例提供一种图像处理装置,如图6所示,图6是根据一示例性实施例示出的一种图像处理装置600的框图,其中,该装置600可以应用于终端,该装置600可以包括:Based on the same inventive concept, an embodiment of the present disclosure provides an image processing apparatus. As shown in FIG. 6, FIG. 6 is a block diagram of an image processing apparatus 600 according to an exemplary embodiment, where the apparatus 600 can be applied to Terminal, the device 600 can include:
第一确定模块601,被配置为确定目标图像中包括的目标子图像;a first determining module 601 configured to determine a target sub-image included in the target image;
第二确定模块602,被配置为从三维模型库中确定与目标子图像对应的目标对象相匹配的目标三维模型;The second determining module 602 is configured to determine, from the three-dimensional model library, a target three-dimensional model that matches the target object corresponding to the target sub-image;
替换模块603,被配置为基于目标三维模型,在目标图像中对目标子图像进行图像替换。The replacement module 603 is configured to perform image replacement on the target sub-image in the target image based on the target three-dimensional model.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment relating to the method, and will not be explained in detail herein.
在本公开所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the embodiments provided by the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。The functional modules in the various embodiments of the present application may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个
人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. , including a number of instructions to make a computer device (can be a
A human computer, server, or network device, or the like, or a processor, performs all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a disk or an optical disk, and the like, which can store program codes. .
以上所述,以上实施例仅用以对本公开的技术方案进行了详细介绍,但以上实施例的说明只是用于帮助理解本公开的方法及其核心思想,不应理解为对本公开的限制。本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本公开的保护范围之内。
The above embodiments are only used to describe the technical solutions of the present disclosure in detail, but the description of the above embodiments is only for helping to understand the method of the present disclosure and its core ideas, and should not be construed as limiting the disclosure. Those skilled in the art will be able to devise changes or substitutions that are conceivable within the scope of the present disclosure.
Claims (22)
- 一种图像处理方法,其特征在于,应用于服务器,所述方法包括:An image processing method is applied to a server, the method comprising:确定终端发送的目标图像中包括的目标子图像;Determining a target sub-image included in the target image transmitted by the terminal;从三维模型库中确定与所述目标子图像对应的目标对象相匹配的目标三维模型;Determining, from the three-dimensional model library, a target three-dimensional model that matches the target object corresponding to the target sub-image;基于所述目标三维模型,在所述目标图像中对所述目标子图像进行图像替换;Performing image replacement on the target sub-image in the target image based on the target three-dimensional model;向所述终端发送经图像替换后的目标图像。The image after the image replacement is transmitted to the terminal.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:获取所述目标图像的位置信息,所述位置信息用于指示采集所述目标图像时的地理位置;Obtaining location information of the target image, where the location information is used to indicate a geographic location when the target image is collected;根据所述位置信息,确定位置范围,所述位置范围包括所述位置信息所指示的位置;Determining a location range according to the location information, where the location range includes a location indicated by the location information;确定所述位置范围内包括的全部的标识对象,所述标识对象为在所述三维模型库中对应有三维模型的对象;Determining all of the identification objects included in the location range, the identification object being an object corresponding to the three-dimensional model in the three-dimensional model library;从三维模型库中确定与所述目标子图像对应的目标对象相匹配的目标三维模型,包括:Determining, from the three-dimensional model library, a target three-dimensional model that matches the target object corresponding to the target sub-image, including:在所述全部的标识对象对应的三维模型集合中,确定所述目标三维模型。The target three-dimensional model is determined in the three-dimensional model set corresponding to all the identification objects.
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:获取所述目标图像的高度信息,所述高度信息用于指示采集所述目标图像时的海拔高度;Obtaining height information of the target image, where the height information is used to indicate an altitude when the target image is acquired;根据所述位置信息,确定位置范围,包括:Determining the location range according to the location information, including:根据述位置信息及所述高度信息,确定所述位置范围。 The location range is determined based on the location information and the height information.
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:获取所述目标图像的对焦距离;Obtaining a focus distance of the target image;根据所述位置信息,确定位置范围,包括:Determining the location range according to the location information, including:根据述位置信息及所述对焦距离,确定所述位置范围。The position range is determined based on the position information and the focus distance.
- 根据权要求2所述的方法,其特征在于,所述服务器存储有根据另一图像确定的另一位置范围,所述方法还包括:The method of claim 2, wherein the server stores another location range determined according to another image, the method further comprising:确定所述目标图像的位置信息所对应的地理位置,与所述另一图像的位置信息所对应的地理位置之间的距离是否超过预设距离阈值;Determining, by the geographic location corresponding to the location information of the target image, whether the distance between the geographic location corresponding to the location information of the another image exceeds a preset distance threshold;根据所述位置信息,确定位置范围,包括:Determining the location range according to the location information, including:在所述距离超过所述预设距离阈值时,根据所述目标图像的位置信息,确定与所述目标图像对应的位置范围,及,更新所述服务器存储的位置范围;And determining, according to the location information of the target image, a location range corresponding to the target image, and updating a location range stored by the server, when the distance exceeds the preset distance threshold;在所述距离未超过所述预设距离阈值时,将所述另一位置范围确定为所述位置范围。The other location range is determined as the location range when the distance does not exceed the preset distance threshold.
- 根据权要求1所述的方法,其特征在于,基于所述目标三维模型,在所述目标图像中对所述目标子图像进行图像替换,包括:The method according to claim 1, wherein image replacement of the target sub-image in the target image based on the target three-dimensional model comprises:对所述目标三维模型进行截取,以得到与所述目标子图像匹配的二维图像;Intercepting the target three-dimensional model to obtain a two-dimensional image that matches the target sub-image;在所述目标图像中,用所述二维图像替换所述目标子图像。In the target image, the target sub-image is replaced with the two-dimensional image.
- 根据权要求6所述的方法,其特征在于,在对所述目标三维模型进行截取,以得到与所述目标子图像匹配的二维图像之后,还包括:The method according to claim 6, wherein after the intercepting the target three-dimensional model to obtain a two-dimensional image that matches the target sub-image, the method further comprises:按照所述目标图像的图像参数,设置所述二维图像的图像参数。An image parameter of the two-dimensional image is set according to an image parameter of the target image.
- 根据权要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:获取所述目标对象的特征信息,所述特征信息包括历史信息、地理信息、及旅游信息中的至少一者;Obtaining feature information of the target object, the feature information including at least one of historical information, geographic information, and travel information;向所述终端发送所述特征信息。 Sending the feature information to the terminal.
- 一种图像处理方法,其特征在于,应用于终端,所述方法包括:An image processing method is applied to a terminal, the method comprising:确定目标图像中包括的目标子图像;Determining a target sub-image included in the target image;从三维模型库中确定与所述目标子图像对应的目标对象相匹配的目标三维模型;Determining, from the three-dimensional model library, a target three-dimensional model that matches the target object corresponding to the target sub-image;基于所述目标三维模型,在所述目标图像中对所述目标子图像进行图像替换。Image replacement of the target sub-image in the target image based on the target three-dimensional model.
- 一种图像处理装置,其特征在于,应用于服务器,所述装置包括:An image processing apparatus is applied to a server, the apparatus comprising:第一确定模块,被配置为确定终端发送的目标图像中包括的目标子图像;a first determining module configured to determine a target sub-image included in a target image sent by the terminal;第二确定模块,被配置为从三维模型库中确定与所述目标子图像对应的目标对象相匹配的目标三维模型;a second determining module configured to determine, from the three-dimensional model library, a target three-dimensional model that matches a target object corresponding to the target sub-image;替换模块,被配置为基于所述目标三维模型,在所述目标图像中对所述目标子图像进行图像替换;a replacement module configured to perform image replacement on the target sub-image in the target image based on the target three-dimensional model;第一发送模块,被配置为向所述终端发送经图像替换后的目标图像。The first sending module is configured to send the image after the image replacement to the terminal.
- 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:第一获取模块,被配置为获取所述目标图像的位置信息,所述位置信息用于指示采集所述目标图像时的地理位置;a first acquiring module, configured to acquire location information of the target image, where the location information is used to indicate a geographic location when the target image is collected;第三确定模块,被配置为根据所述位置信息,确定位置范围,所述位置范围包括所述位置信息所指示的位置;a third determining module, configured to determine a location range according to the location information, where the location range includes a location indicated by the location information;第四确定模块,被配置为确定所述位置范围内包括的全部的标识对象,所述标识对象为在所述三维模型库中对应有三维模型的对象;a fourth determining module, configured to determine all the identifier objects included in the location range, where the identifier object is an object corresponding to the three-dimensional model in the three-dimensional model library;所述第二确定模块包括:The second determining module includes:第一确定子模块,被配置为在所述全部的标识对象对应的三维模型集合中,确定所述目标三维模型。 The first determining submodule is configured to determine the target three-dimensional model in the three-dimensional model set corresponding to all the identification objects.
- 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises:第二获取模块,被配置为获取所述目标图像的高度信息,所述高度信息用于指示采集所述目标图像时的海拔高度;a second acquiring module, configured to acquire height information of the target image, where the height information is used to indicate an altitude when the target image is acquired;所述第三确定模块包括:The third determining module includes:第二确定子模块,被配置为根据述位置信息及所述高度信息,确定所述位置范围。The second determining submodule is configured to determine the location range according to the location information and the altitude information.
- 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises:第三获取模块,被配置为获取所述目标图像的对焦距离;a third acquiring module configured to acquire a focus distance of the target image;所述第三确定模块还包括:The third determining module further includes:第三确定子模块,被配置为根据述位置信息及所述对焦距离,确定所述位置范围。The third determining submodule is configured to determine the location range according to the location information and the focus distance.
- 根据权利要求11所述的装置,其特征在于,所述服务器存储有根据另一图像确定的另一位置范围,所述装置还包括:The device according to claim 11, wherein the server stores another location range determined according to another image, the device further comprising:第五确定模块,被配置为确定所述目标图像的位置信息所对应的地理位置,与所述另一图像的位置信息所对应的地理位置之间的距离是否超过预设距离阈值;a fifth determining module, configured to determine whether a geographic location corresponding to the location information of the target image, and a distance between the geographic location corresponding to the location information of the another image exceeds a preset distance threshold;所述第三确定模块还包括:The third determining module further includes:第四确定子模块,被配置为在所述距离超过所述预设距离阈值时,根据所述目标图像的位置信息,确定与所述目标图像对应的位置范围;及,a fourth determining submodule configured to determine, according to the location information of the target image, a location range corresponding to the target image when the distance exceeds the preset distance threshold; and更新模块,被配置为更新所述服务器存储的位置范围;An update module configured to update a range of locations stored by the server;第五确定子模块,被配置为在所述距离未超过所述预设距离阈值时,将所述另一位置范围确定为所述位置范围。And a fifth determining submodule configured to determine the another location range as the location range when the distance does not exceed the preset distance threshold.
- 根据权利要求10所述的装置,其特征在于,所述替换模块包括:The device according to claim 10, wherein the replacement module comprises:截取模块,被配置为对所述目标三维模型进行截取,以得到与所述目标子图像匹配的二维图像; An intercepting module configured to intercept the target three-dimensional model to obtain a two-dimensional image that matches the target sub-image;替换子模块,被配置为在所述目标图像中,用所述二维图像替换所述目标子图像。A replacement sub-module configured to replace the target sub-image with the two-dimensional image in the target image.
- 根据权利要求15所述的装置,其特征在于,所述装置还包括:The device according to claim 15, wherein the device further comprises:设置模块,被配置为在对所述目标三维模型进行截取,以得到与所述目标子图像匹配的二维图像之后,按照所述目标图像的图像参数,设置所述二维图像的图像参数。And a setting module configured to set image parameters of the two-dimensional image according to image parameters of the target image after intercepting the target three-dimensional model to obtain a two-dimensional image that matches the target sub-image.
- 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:第四获取模块,被配置为获取所述目标对象的特征信息,所述特征信息包括历史信息、地理信息、及旅游信息中的至少一者;a fourth acquiring module, configured to acquire feature information of the target object, where the feature information includes at least one of historical information, geographic information, and travel information;第二发送模块,被配置为向所述终端发送所述特征信息。The second sending module is configured to send the feature information to the terminal.
- 一种图像处理装置,其特征在于,应用于终端,所述装置包括:An image processing apparatus is applied to a terminal, the apparatus comprising:第一确定模块,被配置为确定目标图像中包括的目标子图像;a first determining module configured to determine a target sub-image included in the target image;第二确定模块,被配置为从三维模型库中确定与所述目标子图像对应的目标对象相匹配的目标三维模型;a second determining module configured to determine, from the three-dimensional model library, a target three-dimensional model that matches a target object corresponding to the target sub-image;替换模块,被配置为基于所述目标三维模型,在所述目标图像中对所述目标子图像进行图像替换。The replacement module is configured to perform image replacement on the target sub-image in the target image based on the target three-dimensional model.
- 一种计算机程序产品,其特征在于,所述计算机程序产品包含能够由可编程的装置执行的计算机程序,所述计算机程序具有当由所述可编程的装置执行时用于执行权利要求1至9中任一项所述的方法的代码部分。A computer program product, comprising: a computer program executable by a programmable device, the computer program having instructions for performing claims 1 to 9 when executed by the programmable device The code portion of the method of any of the preceding claims.
- 一种非临时性计算机可读存储介质,其特征在于,所述非临时性计算机可读存储介质中包括一个或多个程序,所述一个或多个程序用于执行权利要求1至9中任一项所述的方法。A non-transitory computer readable storage medium, characterized in that the non-transitory computer readable storage medium comprises one or more programs for performing any of claims 1 to 9. One of the methods described.
- 一种服务器,其特征在于,包括:A server, comprising:非临时性计算机可读存储介质;以及Non-transitory computer readable storage medium;一个或者多个处理器,用于执行所述非临时性计算机可读存储介质中 的程序;所述非临时性计算机可读存储介质中存储有用于执行如权利要求1-8任一项所述的方法的指令。One or more processors for executing the non-transitory computer readable storage medium The program of the non-transitory computer readable storage medium storing instructions for performing the method of any of claims 1-8.
- 一种终端,其特征在于,包括:A terminal, comprising:非临时性计算机可读存储介质;以及Non-transitory computer readable storage medium;一个或者多个处理器,用于执行所述非临时性计算机可读存储介质中的程序;所述非临时性计算机可读存储介质中存储有用于执行如权利要求9所述的方法的指令。 One or more processors for executing the program in the non-transitory computer readable storage medium; the non-transitory computer readable storage medium storing instructions for performing the method of claim 9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201780001596.9A CN107690673B (en) | 2017-08-24 | 2017-08-24 | Image processing method and device and server |
PCT/CN2017/098854 WO2019037038A1 (en) | 2017-08-24 | 2017-08-24 | Image processing method and device, and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/098854 WO2019037038A1 (en) | 2017-08-24 | 2017-08-24 | Image processing method and device, and server |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019037038A1 true WO2019037038A1 (en) | 2019-02-28 |
Family
ID=61154076
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/098854 WO2019037038A1 (en) | 2017-08-24 | 2017-08-24 | Image processing method and device, and server |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107690673B (en) |
WO (1) | WO2019037038A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110648396A (en) * | 2019-09-17 | 2020-01-03 | 西安万像电子科技有限公司 | Image processing method, device and system |
CN113998344A (en) * | 2020-07-28 | 2022-02-01 | 北京四维图新科技股份有限公司 | Express delivery box recovery method, system, server, terminal and storage medium |
CN115457202A (en) * | 2022-09-07 | 2022-12-09 | 北京四维远见信息技术有限公司 | Method and device for updating three-dimensional model and storage medium |
CN117935154A (en) * | 2024-01-24 | 2024-04-26 | 珩星电子(连云港)股份有限公司 | Automatic transport method and system for initiating explosive devices, electronic equipment and readable storage medium |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109005382A (en) * | 2018-06-27 | 2018-12-14 | 深圳市轱辘汽车维修技术有限公司 | A kind of video acquisition management method and server |
CN109492607B (en) * | 2018-11-27 | 2021-07-09 | Oppo广东移动通信有限公司 | Information pushing method, information pushing device and terminal equipment |
CN112784621B (en) * | 2019-10-22 | 2024-06-18 | 华为技术有限公司 | Image display method and device |
CN110913140B (en) * | 2019-11-28 | 2021-05-28 | 维沃移动通信有限公司 | Shooting information prompting method and electronic equipment |
CN111556278B (en) * | 2020-05-21 | 2022-02-01 | 腾讯科技(深圳)有限公司 | Video processing method, video display device and storage medium |
CN115002333B (en) * | 2021-03-02 | 2023-09-26 | 华为技术有限公司 | Image processing method and related device |
CN114677468B (en) * | 2022-05-27 | 2022-09-20 | 深圳思谋信息科技有限公司 | Model correction method, device, equipment and storage medium based on reverse modeling |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007280046A (en) * | 2006-04-06 | 2007-10-25 | Canon Inc | Image processor and its control method, and program |
CN102547090A (en) * | 2010-11-24 | 2012-07-04 | 三星电子株式会社 | Digital photographing apparatus and methods of providing pictures thereof |
CN103561264A (en) * | 2013-11-07 | 2014-02-05 | 北京大学 | Media decoding method based on cloud computing and decoder |
CN104618627A (en) * | 2014-12-31 | 2015-05-13 | 小米科技有限责任公司 | Video processing method and device |
CN106060249A (en) * | 2016-05-19 | 2016-10-26 | 维沃移动通信有限公司 | Shooting anti-shaking method and mobile terminal |
CN106096043A (en) * | 2016-06-24 | 2016-11-09 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11306318A (en) * | 1998-04-16 | 1999-11-05 | Image Joho Kagaku Kenkyusho | Face replacing editor |
CN101482968B (en) * | 2008-01-07 | 2013-01-23 | 日电(中国)有限公司 | Image processing method and equipment |
CN102831580B (en) * | 2012-07-17 | 2015-04-08 | 西安电子科技大学 | Method for restoring image shot by cell phone based on motion detection |
-
2017
- 2017-08-24 CN CN201780001596.9A patent/CN107690673B/en active Active
- 2017-08-24 WO PCT/CN2017/098854 patent/WO2019037038A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007280046A (en) * | 2006-04-06 | 2007-10-25 | Canon Inc | Image processor and its control method, and program |
CN102547090A (en) * | 2010-11-24 | 2012-07-04 | 三星电子株式会社 | Digital photographing apparatus and methods of providing pictures thereof |
CN103561264A (en) * | 2013-11-07 | 2014-02-05 | 北京大学 | Media decoding method based on cloud computing and decoder |
CN104618627A (en) * | 2014-12-31 | 2015-05-13 | 小米科技有限责任公司 | Video processing method and device |
CN106060249A (en) * | 2016-05-19 | 2016-10-26 | 维沃移动通信有限公司 | Shooting anti-shaking method and mobile terminal |
CN106096043A (en) * | 2016-06-24 | 2016-11-09 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110648396A (en) * | 2019-09-17 | 2020-01-03 | 西安万像电子科技有限公司 | Image processing method, device and system |
CN113998344A (en) * | 2020-07-28 | 2022-02-01 | 北京四维图新科技股份有限公司 | Express delivery box recovery method, system, server, terminal and storage medium |
CN113998344B (en) * | 2020-07-28 | 2023-06-27 | 北京四维图新科技股份有限公司 | Express box recycling method, system, server, terminal and storage medium |
CN115457202A (en) * | 2022-09-07 | 2022-12-09 | 北京四维远见信息技术有限公司 | Method and device for updating three-dimensional model and storage medium |
CN117935154A (en) * | 2024-01-24 | 2024-04-26 | 珩星电子(连云港)股份有限公司 | Automatic transport method and system for initiating explosive devices, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107690673A (en) | 2018-02-13 |
CN107690673B (en) | 2021-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019037038A1 (en) | Image processing method and device, and server | |
US10540806B2 (en) | Systems and methods for depth-assisted perspective distortion correction | |
CN109064545B (en) | Method and device for data acquisition and model generation of house | |
WO2018201809A1 (en) | Double cameras-based image processing device and method | |
CN110536057B (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
US9591237B2 (en) | Automated generation of panning shots | |
US9313419B2 (en) | Image processing apparatus and image pickup apparatus where image processing is applied using an acquired depth map | |
US9159169B2 (en) | Image display apparatus, imaging apparatus, image display method, control method for imaging apparatus, and program | |
JP5740884B2 (en) | AR navigation for repeated shooting and system, method and program for difference extraction | |
CN109905604B (en) | Focusing method and device, shooting equipment and aircraft | |
CN113129241B (en) | Image processing method and device, computer readable medium and electronic equipment | |
CN109474780B (en) | Method and device for image processing | |
CN111932587B (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
CN113875219B (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
CN108234865A (en) | Image processing method, device, computer readable storage medium and electronic equipment | |
CN113391644B (en) | Unmanned aerial vehicle shooting distance semi-automatic optimization method based on image information entropy | |
CN112770042A (en) | Image processing method and device, computer readable medium, wireless communication terminal | |
GB2537886A (en) | An image acquisition technique | |
CN105467741A (en) | Panoramic shooting method and terminal | |
CN112532856B (en) | Shooting method, device and system | |
KR102076635B1 (en) | Apparatus and method for generating panorama image for scattered fixed cameras | |
CN116456191A (en) | Image generation method, device, equipment and computer readable storage medium | |
US10721419B2 (en) | Ortho-selfie distortion correction using multiple image sensors to synthesize a virtual image | |
Sindelar et al. | Space-variant image deblurring on smartphones using inertial sensors | |
WO2022000974A1 (en) | Infrared image processing method, apparatus and device, and storage medium |
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: 17922329 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.09.2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17922329 Country of ref document: EP Kind code of ref document: A1 |