WO2023029113A1 - Image splicing method, terminal device, and computer-readable storage medium - Google Patents

Image splicing method, terminal device, and computer-readable storage medium Download PDF

Info

Publication number
WO2023029113A1
WO2023029113A1 PCT/CN2021/119198 CN2021119198W WO2023029113A1 WO 2023029113 A1 WO2023029113 A1 WO 2023029113A1 CN 2021119198 W CN2021119198 W CN 2021119198W WO 2023029113 A1 WO2023029113 A1 WO 2023029113A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
image area
area
matching
relative displacement
Prior art date
Application number
PCT/CN2021/119198
Other languages
French (fr)
Chinese (zh)
Inventor
华杰
Original Assignee
广东艾檬电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东艾檬电子科技有限公司 filed Critical 广东艾檬电子科技有限公司
Publication of WO2023029113A1 publication Critical patent/WO2023029113A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries

Definitions

  • the present application relates to the technical field of image processing, and in particular to an image stitching method, a terminal device, and a computer-readable storage medium.
  • the process of image stitching mostly includes: matching the two images to be stitched, obtaining the matching degree and relative displacement, and when the matching degree of the two images reaches the preset matching degree, splicing according to the relative displacement .
  • the two images to be stitched are often matched based on templates or feature points, and the obtained matching results are usually not accurate enough, and the stitching effect is not good.
  • Embodiments of the present application provide an image stitching method, a terminal device, and a computer-readable storage medium, which can improve the accuracy of image stitching and improve the effect of image stitching.
  • the first aspect of the embodiment of the present application provides an image stitching method, including:
  • the first matching degree is less than or equal to the matching degree threshold, adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area, and continue to execute the Describe the step of matching the first image area and the second image area to obtain a first matching degree, until the number of matching times is greater than the number threshold or the first matching degree is greater than the matching degree threshold, and a matching result is obtained; wherein, The first image area after adjustment is smaller than the first image area before adjustment, the second image area after adjustment is smaller than the second image area before adjustment, and the first image area for matching is the same size as the second image area;
  • the adjusting of the first image area and the second image area respectively obtains a new first image area and a new second image area, including:
  • determining the first image of the first image and the second image Relative displacement including:
  • a first relative displacement between the first image and the second image is determined according to the second relative displacement and, the first region and the number of the first regions.
  • the adjusting of the first image area and the second image area respectively obtains a new first image area and a new second image area, including:
  • determining the first image of the first image and the second image Relative displacement including:
  • the second relative displacement is used as a first relative displacement between the first image and the second image.
  • the method further includes:
  • the matching result indicates a matching failure, acquiring a third relative displacement between a third image and the first image; the third image is an image successfully matched with the first image;
  • the determining the first image area of the first image and the second image area of the second image includes:
  • determining the first image the first image area and the second image area of the second image comprising:
  • a first image area of the compressed first image and a second image area of the compressed second image are determined.
  • the stitching the first image and the second image according to the first relative displacement includes:
  • Smoothing is performed on the image to be processed to obtain a target spliced image.
  • the second aspect of the embodiment of the present application provides a terminal device, including:
  • an acquiring unit acquiring a first image and a second image, and determining a first image area of the first image and a second image area of the second image;
  • a matching unit configured to match the first image area and the second image area to obtain a first matching degree
  • An adjustment unit configured to adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area if the first matching degree is less than or equal to a matching degree threshold , and continue to execute the step of matching the first image area and the second image area to obtain the first matching degree until the number of matching times is greater than the number threshold or the first matching degree is greater than the matching degree threshold, obtaining Matching result; wherein, the first image area after adjustment is smaller than the first image area before adjustment, the second image area after adjustment is smaller than the second image area before adjustment, and the first image area and the second image area for matching are the same size;
  • a determining unit configured to determine a first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area if the matching result is successful
  • a stitching unit configured to stitch the first image and the second image according to the first relative displacement.
  • the third aspect of the embodiment of the present application provides a terminal device, which may include:
  • the processor invokes the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method described in the first aspect of the embodiment of the present application .
  • the fourth aspect of the embodiment of the present application provides a computer-readable storage medium, on which executable program code is stored.
  • executable program code When the executable program code is executed by a processor, the method as described in the first aspect of the embodiment of the present application is implemented. .
  • the fifth aspect of the embodiment of the present application discloses a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer is made to execute any one of the methods disclosed in the first aspect of the embodiment of the present application.
  • the sixth aspect of the embodiment of the present application discloses an application distribution platform.
  • the application distribution platform is used to distribute computer program products, wherein, when the computer program product runs on a computer, the computer executes the application disclosed in the first aspect of the embodiment of the present application. any of the described methods.
  • Two image areas are matched to obtain the first matching degree; then, when the first matching degree is less than or equal to the matching degree threshold, the first image area and the second image area are respectively adjusted to obtain a new first image area and a new second image area.
  • Two image areas and continue to perform the step of matching the first image area and the second image area to obtain the first matching degree, until the number of matching times is greater than the number threshold or the first matching degree is greater than the matching degree threshold, and the matching result is obtained; finally, When the matching result is a successful match, determine the first relative displacement of the first image and the second image according to the successfully matched first image area and the second image area, and stitch the first image and the second image according to the first relative displacement. image.
  • the first matching degree between the first image area and the second image area is small, the first matching can be further corrected by adjusting the matching area between the first image area and the second image area one or more times. The accuracy of image stitching can be improved, and the effect of image stitching can be further improved.
  • FIG. 1 is a schematic diagram of a scene disclosed in an embodiment of the present application.
  • FIG. 2 is a schematic flow diagram of an image stitching method disclosed in an embodiment of the present application.
  • FIG. 3A is a schematic flowchart of another image stitching method disclosed in the embodiment of the present application.
  • Fig. 3B is a schematic diagram of acquiring a new first image area and a new second image area disclosed in the embodiment of the present application;
  • Fig. 3C is another schematic diagram of obtaining a new first image area and a new second image area disclosed in the embodiment of the present application;
  • FIG. 4 is a structural block diagram of a terminal device disclosed in an embodiment of the present application.
  • FIG. 5 is a block diagram of a partial structure of a scanning pen related to a terminal device disclosed in an embodiment of the present application
  • Fig. 6 is another structural block diagram of a terminal device disclosed in an embodiment of the present application.
  • Embodiments of the present application provide an image stitching method, a terminal device, and a computer-readable storage medium, which can improve image matching accuracy and image stitching effects.
  • terminal devices involved in the embodiments of the present application may include general handheld screen electronic terminal devices, such as scanning pens, smart phones, portable terminals, terminals, personal digital assistants (Personal Digital Assistant, PDA), portable Multimedia player (Personal Media Player, PMP) device, notebook computer, notebook (Note Pad), wireless broadband (Wireless Broadband, Wibro) terminal, tablet computer (Personal Computer, PC), smart PC, sales terminal (Point of Sales, POS) and on-board computer, etc.
  • PDA Personal Digital Assistant
  • PMP portable Multimedia player
  • notebook computer notebook (Note Pad)
  • wireless broadband Wireless Broadband, Wibro
  • tablet computer Personal Computer
  • PC Personal Computer
  • smart PC smart PC
  • sales terminal Point of Sales, POS
  • on-board computer etc.
  • Terminal devices may also include wearable devices.
  • a wearable device is a portable electronic device that can be worn directly on the user, or integrated into the user's clothing or accessories. Wearable device is not only a hardware device, but also can realize powerful intelligent functions through software support, data interaction and cloud interaction, such as: calculation function, positioning function, alarm function, and can also connect scanning pen and various terminals .
  • Wearable devices may include, but are not limited to, wrist-supported watches (such as watches, wrists, etc.), feet-supported shoes (such as shoes, socks, or other leg-wearing products), head-supported Glass (such as glasses, helmets, headbands, etc.) and smart clothing, school bags, crutches, accessories and other non-mainstream product forms.
  • FIG. 1 is a schematic diagram of a scene disclosed in an embodiment of the present application.
  • the schematic diagram shown in FIG. 1 may include a scanning pen 10 and a paper book 20 .
  • FIG. 2 is a schematic flowchart of an image stitching method disclosed in an embodiment of the present application. Can include the following steps:
  • the first image and the second image may be two consecutive or discontinuous images, which is not limited in the embodiment of the present application.
  • the first image and the second image can be obtained by photographing the content of the paper book with a camera installed on the terminal device.
  • an acceleration sensor may be installed on the terminal device, and whether the terminal device moves on the paper book can be detected by the acceleration sensor, and when the terminal device is detected to move, multiple frames of images are collected continuously through the camera.
  • the first image area and the second image area have the same size, the first image area is a partial area of the first image, and the second image area is a partial area of the second image.
  • determining the first image area of the first image and the second image area of the second image may include: taking the center point of the first image as a reference, and aligning the center point of the first image according to a second preset ratio The area is cropped, and the middle area of the first image obtained by cutting is used as the first image area; taking the center point of the second image as a reference, the middle area of the second image is cropped according to the second preset ratio, and the cropped The middle area of the obtained second image is used as the second image area.
  • the second preset ratio may represent the ratio of the first image area to the first image (the ratio of the second image area to the second image).
  • the second preset ratio may be 80%, 90%, 95% and so on.
  • the effective content of the images collected by the terminal device is mostly concentrated in the middle area of the image. Therefore, before matching, the boundary area between the first image and the second image should be removed first. In this way, the matching can effectively reduce the The amount of image data helps to improve matching efficiency.
  • the first matching degree is used to characterize the similarity between the first image region and the second image region.
  • matching the first image area and the second image area to obtain the first matching degree may include but not limited to the following methods:
  • Mode 1 Obtain frequency domain information of the first image region and the second image region, and obtain a first matching degree according to the frequency domain information.
  • the frequency domain information of the first image region may include a spectrogram of the first image region
  • the frequency domain information of the second image region may include a spectrogram of the second image region.
  • acquiring the spectrogram of the first image region may include: transforming the first image region from time domain space to frequency domain space through Fourier transform, so as to obtain the spectrogram of the first image region.
  • acquiring the spectrogram of the second image region may include: transforming the second image region from time-domain space to frequency-domain space by Fourier transform to obtain the spectrogram of the second image region.
  • obtaining the first matching degree according to the frequency domain information may include: obtaining a matching degree between the spectrogram of the first image region and the spectrogram of the second image region.
  • the first feature point information may include coordinates and descriptors of multiple first feature points corresponding to the first image area
  • the second feature point information includes coordinates and descriptors of multiple second feature points corresponding to the second image area
  • the feature points represent points with relatively rich information in the first/second area image, such as edge contour points, bright spots in darker areas, dark points in brighter areas, etc.
  • a descriptor can be a data structure used to characterize feature points, and the dimension of a descriptor can be one-dimensional or multi-dimensional, which is not limited here.
  • the similarity is proportional to the first matching degree, that is, the greater the similarity, the greater the first matching degree.
  • calculating the similarity between the first feature point information and the second feature point information may include: determining a matching feature point pair according to the descriptor of the first feature point and the descriptor of the second feature point; The number of point pairs determines the similarity between the first feature point information and the second feature point information. It should be noted that the number of matching feature point pairs is proportional to the similarity, that is, the greater the number of matching feature point pairs, the greater the similarity.
  • step 204 when the judgment result of step 204 is yes, continue to execute step 207; when the judgment result of step 204 is no, continue to execute step 205.
  • the matching threshold is a value used to define whether the first image area and the second image area are similar. It can be understood that if the first matching degree is greater than the matching threshold, the first image area is similar to the second image area; otherwise, the first image area is not similar to the second image area.
  • the matching degree threshold may be represented by a percentage.
  • the matching degree threshold may be 85%, 90%, 93% or 92%.
  • step 205 when the judgment result of step 205 is yes, continue to execute step 207; when the judgment result of step 205 is no, continue to execute step 206.
  • the number of times threshold can be obtained through a large number of experiments.
  • the number of times threshold may be 5 times, 6 times or 7 times, which is not limited in this embodiment of the present application.
  • step 206 step 203-step 204 are continuously executed.
  • the first image area after each adjustment is smaller than the first image area before adjustment
  • the second image area after each adjustment is smaller than the second image area before adjustment
  • the first image area after each adjustment is the same as the adjusted After the second image area is the same size.
  • the corresponding matching result when the first matching degree is greater than the matching degree threshold, the corresponding matching result is matching success; when the number of matching times is greater than the number threshold, the corresponding matching result is matching failure.
  • the first relative displacement may represent the moving distance and moving direction of the second image relative to the first image in the horizontal direction; or, the movement of the first image relative to the second image in the horizontal direction
  • the distance and moving direction are not limited in this embodiment of the application.
  • stitching the first image and the second image according to the first relative displacement may include: determining the stitching position on the first image according to the first relative displacement; Move to the splicing bit position to realize the splicing of the first image and the second image. It should be noted that the first side edges of the second image are all perpendicular to the horizontal line.
  • a third relative displacement between the third image and the first image may also be obtained, and the third image is an image successfully matched with the first image; according to the third Relative displacement, stitching the first image and the second image.
  • the first matching degree between the first image area and the second image area when the first matching degree between the first image area and the second image area is small, the first matching degree can be adjusted by adjusting the matching area mode of the first image area and the second image area one or more times.
  • the correction is beneficial to improve the accuracy of image stitching and improve the effect of image stitching.
  • FIG. 3A is a schematic flowchart of another image stitching method disclosed in an embodiment of the present application. Can include the following steps:
  • step 301 please refer to the introduction of step 201 in the embodiment shown in FIG. 2 , which will not be repeated here.
  • a preset edge detection operator may be used to perform edge detection on the first image and the second image respectively to obtain detection results.
  • the default edge detection operator can include any of the following: Robert operator, Prewitt operator, Sobel operator (Sobel operator, sobel operator and Canny operator. It should be noted that the Roberts operator is An operator that uses local differential operators to find edges; Prewitt operator is a first-order differential operator; Canny operator is a multi-level edge detection operator.
  • performing edge detection on the first image and the second image may be detecting an outline of effective content in the first image and an outline of effective content in the second image.
  • determining the first image area of the first image and the second image area of the second image may include:
  • determining the first image area of the compressed first image and the second image area of the compressed second image includes: taking the center point of the compressed first image as a reference, according to the first Two preset ratios are used to cut out the middle area of the compressed first image, and use the cut out middle area of the compressed first image as the first image area; taking the center point of the reduced second image as a reference, The middle area of the shrunken second image is cropped according to a second preset ratio, and the cut and compressed middle area of the second image is used as the second image area.
  • step 305 if the judgment result of step 305 is yes, continue to execute step 308 , and if the judgment result of step 305 is no, continue to execute step 306 .
  • step 306 if the judgment result of step 306 is yes, continue to execute step 308 , and if the judgment result of step 306 is no, continue to execute step 307 .
  • step 307 is executed, step 304 is continued to be executed.
  • adjusting the first image area and the second image area respectively to obtain a new first image area and a new second image area may include but not limited to the following methods:
  • Method 1 Cut off the first area from the edge of the first side of the first image area to obtain a new first image area, and cut off the second area from the edge of the second side of the second image area to obtain a new The second image area of ; wherein, the edge of the first side and the edge of the second side are both perpendicular to the horizontal line, and the size of the first area and the second area are the same.
  • FIG. 3B is a schematic diagram of acquiring a new first image area and a new second image area disclosed in an embodiment of the present application. As shown in FIG. 3B , it includes a first image area 01 , a new first image area 02 , a second image area 03 , and a new second image area 04 . It should be noted that the first side may be the left side of the first image area 01, the second side may be the right side of the second image area 03, the height of the first area is the same as the height of the first image area 01, and the second side may be the right side of the second image area 03. The height of the area is the same as the height of the second image area 03 .
  • Method 2 Taking the central point of the first image area as a reference, crop the middle area of the first image area according to a first preset ratio, and use the cut middle area of the first image area as a new first image area ; Based on the center point of the second image area, crop the middle area of the second image area according to the first preset ratio, and use the middle area of the second image area obtained by cropping as a new second image area.
  • FIG. 3C is another schematic diagram of acquiring a new first image area and a new second image area disclosed in an embodiment of the present application. As shown in FIG. 3C , it includes a first image area 05 , a new first image area 06 , a second image area 07 and a new second image area 08 . It should be noted that the first preset ratio may represent the ratio of the new first image area to the first image area before cropping (the ratio of the new second image area to the second image area before cropping).
  • step 305-step 306 and step 308 please refer to the introduction of step 204-step 205 and step 207 in the embodiment shown in FIG. .
  • determining the first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area may include but not limited to the following methods:
  • the acquisition method of the new first image area and the new second image area is the above method (1), then obtain the second relative displacement of the successfully matched first image area and the second image area; according to the second relative displacement, The first area and the number of the first areas determine a first relative displacement between the first image and the second image.
  • the first area needs to be cut out, that is, if the first graphic area is adjusted n times, and n is an integer greater than or equal to 1, then n first image areas need to be cut out.
  • region it should be noted that the size of the first region cropped each time may be the same or different, which is not limited in this embodiment of the present application.
  • adjustment of the second image area it is similar and will not be repeated here.
  • obtaining the second relative displacement of the successfully matched first image area and the second image area may include: obtaining the successfully matched The second relative displacement of the first image area and the second image area.
  • determining the first relative displacement between the first image and the second image according to the second relative displacement, the first area and the number of the first area may include: according to the width of the first area and the number of the first area The first distance value is obtained by the number, and the first relative displacement between the first image and the second image is obtained according to the first distance value and the second distance value indicated by the second relative displacement.
  • the acquisition mode of the new first image area and the new second image area is the above-mentioned mode (2), then obtain the second relative displacement of the first image area and the second image area of the matching success; the second relative displacement is used as A first relative displacement of the first image and the second image.
  • splicing the first image and the second image according to the first relative displacement may include: splicing the first image and the second image according to the first relative displacement to obtain a spliced image to be processed; smoothing the image to be processed , to get the target stitched image.
  • the image to be processed can be smoothed through a preset fusion algorithm to obtain the target spliced image.
  • the preset fusion algorithm may include at least one of the following: a weighted average fusion algorithm, a feathering fusion algorithm, a Laplacian pyramid fusion algorithm, a Gaussian pyramid fusion algorithm, and the like.
  • the spliced image to be processed can also be smoothed, which helps to realize seamless splicing of images, and further improves the splicing effect.
  • the first matching degree between the first image area and the second image area when the first matching degree between the first image area and the second image area is small, the first matching degree can be adjusted by adjusting the matching area mode of the first image area and the second image area for the first time or multiple times. Make corrections to improve the accuracy of image stitching and improve the image stitching effect. Further, before determining the first image area and the second image area, the effective content detection is performed on the first image and the second image, and if there is no effective content in any of the first image and the second image, then no longer Image matching is beneficial to reduce ineffective power consumption.
  • FIG. 4 is a structural block diagram of a terminal device disclosed in an embodiment of the present application. It may include an acquisition unit 401, a matching unit 402, an adjustment unit 403, a determination unit 404, and a splicing unit 405; wherein:
  • An acquiring unit 401 acquiring a first image and a second image, and determining a first image area of the first image and a second image area of the second image;
  • a matching unit 402 configured to match the first image area and the second image area to obtain a first matching degree
  • An adjustment unit 403 configured to adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area if the first matching degree is less than or equal to the matching degree threshold, and continue to execute the The step of matching the first image area and the second image area to obtain the first matching degree, until the number of matching times is greater than the number threshold or the first matching degree is greater than the matching degree threshold, the matching result is obtained; wherein, the adjusted first image area is less than The first image area before adjustment, the second image area after adjustment is smaller than the second image area before adjustment, and the size of the first image area for matching is the same as that of the second image area;
  • a determining unit 404 configured to determine a first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area if the matching result is successful;
  • the stitching unit 405 is configured to stitch the first image and the second image according to the first relative displacement.
  • the adjustment unit 403 is used to adjust the first image area and the second image area respectively, and the manner of obtaining a new first image area and a new second image area may specifically include: the adjustment unit 403 , which is used to crop the first area from the edge of the first side of the first image area to obtain a new first image area, and to crop the second area from the edge of the second side of the second image area to obtain a new The second image area of ; wherein, the edge of the first side and the edge of the second side are both perpendicular to the horizontal line, and the size of the first area and the second area are the same.
  • the manner in which the determining unit 404 is used to determine the first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area may specifically include: the determining unit 404 is configured to obtain a matching successful The second relative displacement of the first image area and the second image area; according to the second relative displacement, the first area and the number of the first area, determine the first relative displacement of the first image and the second image.
  • the adjustment unit 403 is used to adjust the first image area and the second image area respectively, and the manner of obtaining a new first image area and a new second image area may specifically include: the adjustment unit 403 , using the central point of the first image region as a reference, crop the middle region of the first image region according to a first preset ratio, and use the cut middle region of the first image region as a new first Image area; using the central point of the second image area as a reference, crop the middle area of the second image area according to the first preset ratio, and use the middle area of the second image area obtained by cutting as The new second image area.
  • the manner in which the determining unit 404 is used to determine the first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area may specifically include: the determining unit 404 is configured to obtain a matching successful The second relative displacement of the first image area and the second image area; using the second relative displacement as the first relative displacement of the first image and the second image.
  • the determining unit 404 is further configured to acquire a third relative displacement between the third image and the first image if the matching result indicates that the matching fails; the third image is an image successfully matched with the first image ; Stitching the first image and the second image according to the third relative displacement.
  • the manner for the acquiring unit 401 to determine the first image area of the first image and the second image area of the second image may specifically include: the acquiring unit 401 is configured to respectively determine the first image and the second image Perform edge detection to obtain a detection result; when the detection result indicates that both the first image and the second image have valid content, determine the first image area of the first image and the second image area of the second image.
  • the method for determining the first image area of the first image and the second image area of the second image by the acquiring unit 401 when the detection result indicates that both the first image and the second image have valid content may specifically be It includes: an acquisition unit 401, configured to perform a preset compression operation on the first image and the second image respectively when the detection result indicates that both the first image and the second image have valid content; determine the first image of the compressed first image The image area and the second image area of the compressed second image.
  • the stitching unit 405 is configured to stitch the first image and the second image according to the first relative displacement.
  • the stitching unit 405 is configured to stitch the first image and the second image according to the first relative displacement. image to obtain the spliced image to be processed; smoothing the image to be processed to obtain the target spliced image.
  • FIG. 5 it is a schematic diagram of another embodiment of the terminal device in the embodiment of the present application.
  • FIG. 5 shows a block diagram of a partial structure of the scanning pen related to the terminal device provided in the embodiment of the present application.
  • the scanning pen may include: a camera module 510 , a memory 520 , a processor 530 , a sensor 540 and an audio circuit 550 .
  • Those skilled in the art can understand that the structure shown in Figure 5 does not constitute a limitation on the structure of the scanning pen, and the scanning pen may include more or less components than shown in the illustration, or combine some components, or arrange different components .
  • the camera module 510 can be used to collect images, and send the collected images to the processor 530 and the memory 520 .
  • the memory 520 can be used to store software programs and modules, and the processor 530 executes various functional applications and data processing of the scanning pen by running the software programs and modules stored in the memory 520 .
  • the memory 520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); The data created by the use of the scanning pen (such as audio data, phonebook, etc.) and the like.
  • the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the processor 530 is the control center of the scanning pen, which uses various interfaces and lines to connect various parts of the entire scanning pen, runs or executes software programs and/or modules stored in the memory 520, and calls data stored in the memory 520 , execute various functions of the scanning pen and process data, so as to monitor the scanning pen as a whole.
  • the processor 530 may include one or more processing units; preferably, the processor 530 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 530 .
  • the wand may also include at least one sensor 540, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor.
  • Motion sensors may include accelerometer sensors.
  • the scanning pen can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
  • Audio circuitry 550 may provide an audio interface between the user and the wand.
  • the audio circuit 550 can transmit the electrical signal converted from the received audio data to the speaker, and the speaker converts it into an audio signal for output; on the other hand, the microphone converts the collected audio signal into an electrical signal, which is converted by the audio circuit 550
  • the RF circuit 510 sends the audio data to other terminals such as mobile phones, or outputs the audio data to the memory 520 for further processing.
  • the scanning pen may also include a Bluetooth module, etc., which will not be repeated here.
  • the processor 530 included in the scanning pen also has the following functions:
  • the processor 530 also has the following functions:
  • the first matching degree is less than or equal to the matching degree threshold, then adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area, and continue to execute the process of converting the first image area and the second image area.
  • the step of matching the two image areas to obtain the first matching degree until the number of matching times is greater than the number of times threshold or the first matching degree is greater than the matching degree threshold, and the matching result is obtained; wherein, the first image area after adjustment is smaller than the first image before adjustment area, the adjusted second image area is smaller than the pre-adjusted second image area, and the matched first image area is the same size as the second image area;
  • the matching result is that the matching is successful, then according to the successfully matched first image area and the second image area, determine the first relative displacement of the first image and the second image;
  • the first image and the second image are stitched together.
  • the processor 530 also has the following functions:
  • the processor 530 also has the following functions:
  • the processor 530 also has the following functions:
  • the middle area of the first image area is cropped according to a first preset ratio, and the middle area of the first image area obtained by cutting is used as a new first image area;
  • the central point of the second image area is used as a reference, the middle area of the second image area is cropped according to the first preset ratio, and the middle area of the second image area obtained by cutting is used as a new second image area.
  • the processor 530 also has the following functions:
  • the second relative displacement is used as the first relative displacement between the first image and the second image.
  • the processor 530 also has the following functions:
  • the third relative displacement of the third image and the first image is obtained; the third image is an image successfully matched with the first image; according to the third relative displacement, the first image and the first image are stitched together Describe the second image.
  • the processor 530 also has the following functions:
  • the processor 530 also has the following functions:
  • a first image area of the compressed first image and a second image area of the compressed second image are determined.
  • the processor 530 also has the following functions:
  • the image to be processed is smoothed to obtain the target spliced image.
  • FIG. 6 is another structural block diagram of a terminal device disclosed in an embodiment of the present application.
  • Can include:
  • a memory 601 storing executable program codes
  • processor 602 coupled to the memory 601;
  • the processor 602 invokes the executable program code stored in the memory 601, and when the executable program code is executed by the processor 602, the processor 602 implements the image stitching method.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, the methods described in the above-mentioned embodiments are implemented.
  • the embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the methods described in the foregoing embodiments.
  • the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods.
  • the storage medium may be a magnetic disk, an optical disk, a ROM, or the like.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • wired eg, coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless eg, infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
  • the disclosed system, device and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Abstract

An image splicing method, a terminal device, and a computer-readable storage medium. The method comprises: first, obtaining two continuous frames of a first image and a second image, determining a first image region of the first image and a second image region of the second image, and matching the first image region and the second image region to obtain a first matching degree; then, when the first matching degree is less than or equal to a matching degree threshold, correcting the first matching degree by means of one or more adjustments of a matching region of the first image region and the second image region until the first matching degree is corrected successfully or the number of matchings is greater than a threshold of the number of times, and obtaining a matching result; and finally, when the matching result shows that matching is successful, determining first relative displacement of the first image and the second image according to the first image region and the second image region that are matched successfully, and splicing the first image and the second image according to the first relative displacement. The method can improve the image splicing accuracy and the splicing effect.

Description

图像拼接方法、终端设备以及计算机可读存储介质Image stitching method, terminal device and computer-readable storage medium 技术领域technical field
本申请涉及图像处理技术领域,尤其涉及一种图像拼接方法、终端设备以及计算机可读存储介质。The present application relates to the technical field of image processing, and in particular to an image stitching method, a terminal device, and a computer-readable storage medium.
背景技术Background technique
在实践中发现,图像拼接的流程大都包括:匹配待拼接的两张图像,得到匹配度及相对于位移,并在该两张图像的匹配度达到预设匹配度时,按照该相对位移进行拼接。It has been found in practice that the process of image stitching mostly includes: matching the two images to be stitched, obtaining the matching degree and relative displacement, and when the matching degree of the two images reaches the preset matching degree, splicing according to the relative displacement .
在现有技术中,往往基于模板或特征点对待拼接的两张图像进行匹配,所得到匹配结果通常不够准确,拼接效果不佳。In the prior art, the two images to be stitched are often matched based on templates or feature points, and the obtained matching results are usually not accurate enough, and the stitching effect is not good.
发明内容Contents of the invention
本申请实施例提供了一种图像拼接方法、终端设备以及计算机可读存储介质,能够提高图像拼接的准确性,提高了图像拼接效果。Embodiments of the present application provide an image stitching method, a terminal device, and a computer-readable storage medium, which can improve the accuracy of image stitching and improve the effect of image stitching.
本申请实施例第一方面提供了一种图像拼接方法,包括:The first aspect of the embodiment of the present application provides an image stitching method, including:
获取第一图像及第二图像,并确定所述第一图像的第一图像区域及所述第二图像的第二图像区域;acquiring a first image and a second image, and determining a first image area of the first image and a second image area of the second image;
将所述第一图像区域及第二图像区域进行匹配,得到第一匹配度;matching the first image area and the second image area to obtain a first matching degree;
若所述第一匹配度小于或等于匹配度阈值,则分别调整所述第一图像区域及所述第二图像区域,得到新的第一图像区域及新的第二图像区域,并继续执行所述将所述第一图像区域及第二图像区域进行匹配,得到第一匹配度的步骤,直至匹配次数大于次数阈值或所述第一匹配度大于所述匹配度阈值,得到匹配结果;其中,调整后的第一图像区域小于调整前的第一图像区域,调整后的第二图像区域小于调整前的第二图像区域,且进行匹配的第一图像区域与第二图像区域的尺寸相同;If the first matching degree is less than or equal to the matching degree threshold, adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area, and continue to execute the Describe the step of matching the first image area and the second image area to obtain a first matching degree, until the number of matching times is greater than the number threshold or the first matching degree is greater than the matching degree threshold, and a matching result is obtained; wherein, The first image area after adjustment is smaller than the first image area before adjustment, the second image area after adjustment is smaller than the second image area before adjustment, and the first image area for matching is the same size as the second image area;
若所述匹配结果为匹配成功,则根据匹配成功的第一图像区域及第二图像区域,确定所述第一图像和所述第二图像的第一相对位移;If the matching result is a successful match, then determine a first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area;
根据所述第一相对位移,拼接所述第一图像和所述第二图像。Stitching the first image and the second image according to the first relative displacement.
作为一种可选的实施方式,在本申请实施例第一方面中,所述分别调整所述第一图像区域及所述第二图像区域,得到新的第一图像区域及新的第二图像区域,包括:As an optional implementation manner, in the first aspect of the embodiment of the present application, the adjusting of the first image area and the second image area respectively obtains a new first image area and a new second image area, including:
从所述第一图像区域的第一侧的边沿开始裁剪掉第一区域,得到新的第一图像区域,并从所述第二图像区域的第二侧的边沿开始裁剪掉第二区域,得到新的第二图像区域;其中,所述第一侧的边沿和所述第二侧的边沿均垂直于水平线,所述第一区域和所述第二区域的尺寸相同。Cutting off the first area from the edge of the first side of the first image area to obtain a new first image area, and cutting off the second area from the edge of the second side of the second image area to obtain A new second image area; wherein, the edge of the first side and the edge of the second side are both perpendicular to the horizontal line, and the size of the first area and the second area are the same.
作为一种可选的实施方式,在本申请实施例第一方面中,所述根据匹配成功的第一图像区域及第二图像区域,确定所述第一图像和所述第二图像的第一相对位移,包括:As an optional implementation manner, in the first aspect of the embodiment of the present application, according to the successfully matched first image area and the second image area, determining the first image of the first image and the second image Relative displacement, including:
获取匹配成功的第一图像区域及第二图像区域的第二相对位移;Obtaining a second relative displacement of the successfully matched first image area and the second image area;
根据所述第二相对位移及、所述第一区域及所述第一区域的数量,确定所述第一图像和所述第二图像的第一相对位移。A first relative displacement between the first image and the second image is determined according to the second relative displacement and, the first region and the number of the first regions.
作为一种可选的实施方式,在本申请实施例第一方面中,所述分别调整所述第一图像区域及所述第二图像区域,得到新的第一图像区域及新的第二图像区域,包括:As an optional implementation manner, in the first aspect of the embodiment of the present application, the adjusting of the first image area and the second image area respectively obtains a new first image area and a new second image area, including:
以所述第一图像区域的中心点为基准,按照第一预设比例对所述第一图像区域的中间区域进行裁剪,并将裁剪得到的所述第一图像区域的中间区域作为;以所述第二图像区域的中心点为基准,按照所述第一预设比例对所述第二图像区域的中间区域进行裁剪,并将裁剪得到的所述第二图像区域的中间区域作为新的第二图像区域。Taking the central point of the first image area as a reference, cropping the middle area of the first image area according to a first preset ratio, and using the middle area of the first image area obtained by cutting as; The central point of the second image area is used as a reference, the middle area of the second image area is cut according to the first preset ratio, and the middle area of the second image area obtained by cutting is used as the new second image area. Two image areas.
作为一种可选的实施方式,在本申请实施例第一方面中,所述根据匹配成功的第一图像区域及第二图像区域,确定所述第一图像和所述第二图像的第一相对位移,包括:As an optional implementation manner, in the first aspect of the embodiment of the present application, according to the successfully matched first image area and the second image area, determining the first image of the first image and the second image Relative displacement, including:
获取匹配成功的第一图像区域及第二图像区域的第二相对位移;Obtaining a second relative displacement of the successfully matched first image area and the second image area;
将所述第二相对位移作为所述第一图像和所述第二图像的第一相对位移。The second relative displacement is used as a first relative displacement between the first image and the second image.
作为一种可选的实施方式,在本申请实施例第一方面中,所述方法还包 括:As an optional implementation manner, in the first aspect of the embodiments of the present application, the method further includes:
若所述匹配结果指示匹配失败,则获取第三图像和所述第一图像的第三相对位移;所述第三图像为与所述第一图像成功匹配过的图像;If the matching result indicates a matching failure, acquiring a third relative displacement between a third image and the first image; the third image is an image successfully matched with the first image;
根据所述第三相对位移,拼接所述第一图像和所述第二图像。Stitching the first image and the second image according to the third relative displacement.
作为一种可选的实施方式,在本申请实施例第一方面中,所述确定所述第一图像的第一图像区域及所述第二图像的第二图像区域,包括:As an optional implementation manner, in the first aspect of the embodiment of the present application, the determining the first image area of the first image and the second image area of the second image includes:
分别对所述第一图像和所述第二图像进行边缘检测,得到检测结果;respectively performing edge detection on the first image and the second image to obtain detection results;
在所述检测结果指示所述第一图像和所述第二图像均存在有效内容时,确定所述第一图像的第一图像区域及所述第二图像的第二图像区域。When the detection result indicates that both the first image and the second image have valid content, determine a first image area of the first image and a second image area of the second image.
作为一种可选的实施方式,在本申请实施例第一方面中,所述在所述检测结果指示所述第一图像和所述第二图像均存在有效内容时,确定所述第一图像的第一图像区域及所述第二图像的第二图像区域,包括:As an optional implementation manner, in the first aspect of the embodiments of the present application, when the detection result indicates that both the first image and the second image have valid content, determining the first image the first image area and the second image area of the second image, comprising:
在所述检测结果指示所述第一图像和所述第二图像均存在有效内容时,分别对所述第一图像和所述第二图像进行预设压缩操作;When the detection result indicates that both the first image and the second image have valid content, respectively perform preset compression operations on the first image and the second image;
确定压缩后的第一图像的第一图像区域及压缩后的第二图像的第二图像区域。A first image area of the compressed first image and a second image area of the compressed second image are determined.
作为一种可选的实施方式,在本申请实施例第一方面中,所述根据所述第一相对位移,拼接所述第一图像和所述第二图像,包括:As an optional implementation manner, in the first aspect of the embodiments of the present application, the stitching the first image and the second image according to the first relative displacement includes:
根据所述第一相对位移,拼接所述第一图像和所述第二图像,得到待处理拼接图像;Stitching the first image and the second image according to the first relative displacement to obtain a stitched image to be processed;
对所述待处理图像进行平滑处理,得到目标拼接图像。Smoothing is performed on the image to be processed to obtain a target spliced image.
本申请实施例第二方面提供了一种终端设备,包括:The second aspect of the embodiment of the present application provides a terminal device, including:
获取单元,获取第一图像及第二图像,并确定所述第一图像的第一图像区域及所述第二图像的第二图像区域;an acquiring unit, acquiring a first image and a second image, and determining a first image area of the first image and a second image area of the second image;
匹配单元,用于将所述第一图像区域及第二图像区域进行匹配,得到第一匹配度;a matching unit, configured to match the first image area and the second image area to obtain a first matching degree;
调整单元,用于若所述第一匹配度小于或等于匹配度阈值,则分别调整所述第一图像区域及所述第二图像区域,得到新的第一图像区域及新的第二图像区域,并继续执行所述将所述第一图像区域及第二图像区域进行匹配, 得到第一匹配度的步骤,直至匹配次数大于次数阈值或所述第一匹配度大于所述匹配度阈值,得到匹配结果;其中,调整后的第一图像区域小于调整前的第一图像区域,调整后的第二图像区域小于调整前的第二图像区域,且进行匹配的第一图像区域与第二图像区域的尺寸相同;An adjustment unit, configured to adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area if the first matching degree is less than or equal to a matching degree threshold , and continue to execute the step of matching the first image area and the second image area to obtain the first matching degree until the number of matching times is greater than the number threshold or the first matching degree is greater than the matching degree threshold, obtaining Matching result; wherein, the first image area after adjustment is smaller than the first image area before adjustment, the second image area after adjustment is smaller than the second image area before adjustment, and the first image area and the second image area for matching are the same size;
确定单元,用于若所述匹配结果为匹配成功,则根据匹配成功的第一图像区域及第二图像区域,确定所述第一图像和所述第二图像的第一相对位移;A determining unit, configured to determine a first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area if the matching result is successful;
拼接单元,用于根据所述第一相对位移,拼接所述第一图像和所述第二图像。A stitching unit, configured to stitch the first image and the second image according to the first relative displacement.
本申请实施例第三方面提供了一种终端设备,可以包括:The third aspect of the embodiment of the present application provides a terminal device, which may include:
存储有可执行程序代码的存储器;a memory storing executable program code;
以及所述存储器耦合的处理器;and a processor to which the memory is coupled;
所述处理器调用所述存储器中存储的所述可执行程序代码,所述可执行程序代码被所述处理器执行时,使得所述处理器实现如本申请实施例第一方面所述的方法。The processor invokes the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method described in the first aspect of the embodiment of the present application .
本申请实施例第四方面提供一种计算机可读存储介质,其上存储有可执行程序代码,所述可执行程序代码被处理器执行时,实现如本申请实施例第一方面所述的方法。The fourth aspect of the embodiment of the present application provides a computer-readable storage medium, on which executable program code is stored. When the executable program code is executed by a processor, the method as described in the first aspect of the embodiment of the present application is implemented. .
本申请实施例第五方面公开一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得该计算机执行本申请实施例第一方面公开的任意一种所述的方法。The fifth aspect of the embodiment of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is made to execute any one of the methods disclosed in the first aspect of the embodiment of the present application.
本申请实施例第六方面公开一种应用发布平台,该应用发布平台用于发布计算机程序产品,其中,当该计算机程序产品在计算机上运行时,使得该计算机执行本申请实施例第一方面公开的任意一种所述的方法。The sixth aspect of the embodiment of the present application discloses an application distribution platform. The application distribution platform is used to distribute computer program products, wherein, when the computer program product runs on a computer, the computer executes the application disclosed in the first aspect of the embodiment of the present application. any of the described methods.
从以上技术方案可以看出,本申请实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
在本申请实施例中,首先,获取两帧连续的第一图像及第二图像,并确定第一图像的第一图像区域及第二图像的第二图像区域,以及将第一图像区域及第二图像区域进行匹配,得到第一匹配度;然后,在第一匹配度小于或等于匹配度阈值时,分别调整第一图像区域及第二图像区域,得到新的第一图像区域及新的第二图像区域,并继续执行将第一图像区域及第二图像区域 进行匹配,得到第一匹配度的步骤,直至匹配次数大于次数阈值或第一匹配度大于匹配度阈值,得到匹配结果;最后,在匹配结果为匹配成功时,根据匹配成功的第一图像区域及第二图像区域,确定第一图像和第二图像的第一相对位移,并根据第一相对位移,拼接第一图像和第二图像。通过实施该方法,在第一图像区域与第二图像区域的第一匹配度较小时,可以通过一次或多次调整第一图像区域和第二图像区域的匹配区域的方式,进一步修正第一匹配度,能够提高图像拼接的准确性,进一步提高图像拼接效果。In the embodiment of the present application, firstly, two consecutive frames of the first image and the second image are obtained, and the first image area of the first image and the second image area of the second image are determined, and the first image area and the second image area are determined. Two image areas are matched to obtain the first matching degree; then, when the first matching degree is less than or equal to the matching degree threshold, the first image area and the second image area are respectively adjusted to obtain a new first image area and a new second image area. Two image areas, and continue to perform the step of matching the first image area and the second image area to obtain the first matching degree, until the number of matching times is greater than the number threshold or the first matching degree is greater than the matching degree threshold, and the matching result is obtained; finally, When the matching result is a successful match, determine the first relative displacement of the first image and the second image according to the successfully matched first image area and the second image area, and stitch the first image and the second image according to the first relative displacement. image. By implementing this method, when the first matching degree between the first image area and the second image area is small, the first matching can be further corrected by adjusting the matching area between the first image area and the second image area one or more times. The accuracy of image stitching can be improved, and the effect of image stitching can be further improved.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例和现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings that are required in the description of the embodiments and prior art. Obviously, the accompanying drawings in the following description are only some implementations of the present application For example, other drawings can also be obtained from these drawings.
图1是本申请实施例公开的一种场景示意图;FIG. 1 is a schematic diagram of a scene disclosed in an embodiment of the present application;
图2是本申请实施例公开的一种图像拼接方法的流程示意图;FIG. 2 is a schematic flow diagram of an image stitching method disclosed in an embodiment of the present application;
图3A是本申请实施例公开的又一种图像拼接方法的流程示意图;FIG. 3A is a schematic flowchart of another image stitching method disclosed in the embodiment of the present application;
图3B是本申请实施例公开的一种获取新的第一图像区域和新的第二图像区域的示意图;Fig. 3B is a schematic diagram of acquiring a new first image area and a new second image area disclosed in the embodiment of the present application;
图3C是本申请实施例公开的又一种获取新的第一图像区域和新的第二图像区域的示意图;Fig. 3C is another schematic diagram of obtaining a new first image area and a new second image area disclosed in the embodiment of the present application;
图4是本申请实施例公开的一种终端设备的结构框图;FIG. 4 is a structural block diagram of a terminal device disclosed in an embodiment of the present application;
图5是本申请实施例公开的终端设备相关的扫描笔的部分结构的框图;FIG. 5 is a block diagram of a partial structure of a scanning pen related to a terminal device disclosed in an embodiment of the present application;
图6是本申请实施例公开的一种终端设备的另一种结构框图。Fig. 6 is another structural block diagram of a terminal device disclosed in an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种图像拼接方法、终端设备以及计算机可读存储介质,可以提高图像匹配精度及图像拼接效果。Embodiments of the present application provide an image stitching method, a terminal device, and a computer-readable storage medium, which can improve image matching accuracy and image stitching effects.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的 实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be described below in conjunction with the drawings in the embodiment of the application. Obviously, the described embodiment is only a part of the application Examples, but not all examples. Based on the embodiments in this application, all should belong to the protection scope of this application.
可以理解的是,本申请实施例中所涉及的终端设备可以包括一般的手持有屏电子终端设备,诸如扫描笔、智能电话、便携式终端、终端、个人数字助理(Personal Digital Assistant,PDA)、便携式多媒体播放器(Personal Media Player,PMP)装置、笔记本电脑、笔记本(Note Pad)、无线宽带(Wireless Broadband,Wibro)终端、平板电脑(Personal Computer,PC)、智能PC、销售终端(Point of Sales,POS)和车载电脑等。It can be understood that the terminal devices involved in the embodiments of the present application may include general handheld screen electronic terminal devices, such as scanning pens, smart phones, portable terminals, terminals, personal digital assistants (Personal Digital Assistant, PDA), portable Multimedia player (Personal Media Player, PMP) device, notebook computer, notebook (Note Pad), wireless broadband (Wireless Broadband, Wibro) terminal, tablet computer (Personal Computer, PC), smart PC, sales terminal (Point of Sales, POS) and on-board computer, etc.
终端设备也可以包括可穿戴设备。可穿戴设备可以直接穿戴在用户身上,或是整合到用户的衣服或配件的一种便携式电子设备。可穿戴设备不仅仅是一种硬件设备,更可以通过软件支持以及数据交互、云端交互来实现强大的智能功能,比如:计算功能、定位功能、报警功能,同时还可以连接扫描笔及各类终端。可穿戴设备可以包括但不限于以手腕为支撑的watch类(比如手表、手腕等产品),以脚为支撑的shoes类(比如鞋、袜子或者其他腿上佩戴产品),以头部为支撑的Glass类(比如眼镜、头盔、头带等)以及智能服装,书包、拐杖、配饰等各类非主流产品形态。Terminal devices may also include wearable devices. A wearable device is a portable electronic device that can be worn directly on the user, or integrated into the user's clothing or accessories. Wearable device is not only a hardware device, but also can realize powerful intelligent functions through software support, data interaction and cloud interaction, such as: calculation function, positioning function, alarm function, and can also connect scanning pen and various terminals . Wearable devices may include, but are not limited to, wrist-supported watches (such as watches, wrists, etc.), feet-supported shoes (such as shoes, socks, or other leg-wearing products), head-supported Glass (such as glasses, helmets, headbands, etc.) and smart clothing, school bags, crutches, accessories and other non-mainstream product forms.
请参阅图1,图1是本申请实施例公开的一种场景示意图。如图1所示的示意图可以包括扫描笔10及纸质书本20。Please refer to FIG. 1 . FIG. 1 is a schematic diagram of a scene disclosed in an embodiment of the present application. The schematic diagram shown in FIG. 1 may include a scanning pen 10 and a paper book 20 .
请参阅图2,图2是本申请实施例公开的一种图像拼接方法的流程示意图。可以包括以下步骤:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of an image stitching method disclosed in an embodiment of the present application. Can include the following steps:
201、获取第一图像及第二图像。201. Acquire a first image and a second image.
在本申请实施例中,第一图像和第二图像可以是两帧连续或不连续的图像,本申请实施例不做限定。第一图像和第二图像可以通过安装于终端设备上的摄像头拍摄纸质书本内容得到。其中,终端设备上可以安装有加速度传感器,通过该加速度传感器可以检测终端设备在纸质书本上是否发生移动,并在检测到终端设备发生移动时,通过摄像头连续采集多帧图像。In the embodiment of the present application, the first image and the second image may be two consecutive or discontinuous images, which is not limited in the embodiment of the present application. The first image and the second image can be obtained by photographing the content of the paper book with a camera installed on the terminal device. Wherein, an acceleration sensor may be installed on the terminal device, and whether the terminal device moves on the paper book can be detected by the acceleration sensor, and when the terminal device is detected to move, multiple frames of images are collected continuously through the camera.
202、确定第一图像的第一图像区域及第二图像的第二图像区域。202. Determine a first image area of the first image and a second image area of the second image.
在本申请实施例中,第一图像区域和第二图像区域的尺寸相同,第一图像区域是第一图像的部分区域,第二图像区域是第二图像的部分区域。In the embodiment of the present application, the first image area and the second image area have the same size, the first image area is a partial area of the first image, and the second image area is a partial area of the second image.
在一些实施例中,确定第一图像的第一图像区域及第二图像的第二图像 区域,可以包括:以第一图像的中心点为基准,按照第二预设比例对第一图像的中间区域进行裁剪,并将裁剪得到的第一图像的中间区域作为第一图像区域;以第二图像的中心点为基准,按照第二预设比例对第二图像的中间区域进行裁剪,并将裁剪得到的第二图像的中间区域作为第二图像区域。需要说明的是,第二预设比例表征的可以是第一图像区域占第一图像的比例(第二图像区域占第二图像的比例)。示例性的,第二预设比例可以是80%、90%、95%等。在实践中发现,终端设备采集到的图像的有效内容大都集中在图像的中间区域,因此,在匹配之前,先去除第一图像和第二图像的边界区域,这样,在匹配时,可以有效降低图像数据数量,有助于提高匹配效率。In some embodiments, determining the first image area of the first image and the second image area of the second image may include: taking the center point of the first image as a reference, and aligning the center point of the first image according to a second preset ratio The area is cropped, and the middle area of the first image obtained by cutting is used as the first image area; taking the center point of the second image as a reference, the middle area of the second image is cropped according to the second preset ratio, and the cropped The middle area of the obtained second image is used as the second image area. It should be noted that the second preset ratio may represent the ratio of the first image area to the first image (the ratio of the second image area to the second image). Exemplarily, the second preset ratio may be 80%, 90%, 95% and so on. In practice, it is found that the effective content of the images collected by the terminal device is mostly concentrated in the middle area of the image. Therefore, before matching, the boundary area between the first image and the second image should be removed first. In this way, the matching can effectively reduce the The amount of image data helps to improve matching efficiency.
203、将第一图像区域及第二图像区域进行匹配,得到第一匹配度。203. Match the first image area and the second image area to obtain a first matching degree.
在本申请实施例中,第一匹配度用于表征第一图像区域和第二图像区域的相似度。In the embodiment of the present application, the first matching degree is used to characterize the similarity between the first image region and the second image region.
在一些实施例中,将第一图像区域及第二图像区域进行匹配,得到第一匹配度可以包括但不限于以下方式:In some embodiments, matching the first image area and the second image area to obtain the first matching degree may include but not limited to the following methods:
方式1、获取第一图像区域和第二图像区域的频域信息,并根据该频域信息得到第一匹配度。Mode 1. Obtain frequency domain information of the first image region and the second image region, and obtain a first matching degree according to the frequency domain information.
其中,在本申请实施例中,第一图像区域的频域信息可以包括第一图像区域的频谱图,第二图像区域的频域信息可以包括第二图像区域的频谱图。其中,获取第一图像区域的频谱图可以包括:通过傅里叶变换将第一图像区域由时域空间转换到频域空间,以得到第一图像区域的频谱图。同理,获取第二图像区域的频谱图可以包括:通过傅里叶变换将第二图像区域由时域空间转换到频域空间,以第二图像区域的频谱图。进一步的,根据该频域信息得到第一匹配度可以包括:获取第一图像区域的频谱图和第二图像区域的频谱图的匹配度。Wherein, in the embodiment of the present application, the frequency domain information of the first image region may include a spectrogram of the first image region, and the frequency domain information of the second image region may include a spectrogram of the second image region. Wherein, acquiring the spectrogram of the first image region may include: transforming the first image region from time domain space to frequency domain space through Fourier transform, so as to obtain the spectrogram of the first image region. Similarly, acquiring the spectrogram of the second image region may include: transforming the second image region from time-domain space to frequency-domain space by Fourier transform to obtain the spectrogram of the second image region. Further, obtaining the first matching degree according to the frequency domain information may include: obtaining a matching degree between the spectrogram of the first image region and the spectrogram of the second image region.
方式2、提取第一图像区域的第一特征点信息,并提取第二图像的第二特征点信息;计算第一特征点信息和第二特征点信息的相似度,并根据该相似度确定第一匹配度。Mode 2, extracting the first feature point information of the first image area, and extracting the second feature point information of the second image; calculating the similarity between the first feature point information and the second feature point information, and determining the second feature point information according to the similarity A degree of matching.
其中,第一特征点信息可以包括第一图像区域对应的多个第一特征点的坐标和描述子,第二特征点信息包括第二图像区域对应的多个第二特征点的 坐标和描述子。特征点(第一特征点和第二特征点)表征的是第一/第二区域图像中具有比较丰富信息的点,如边缘轮廓点、较暗区域的亮点、较亮区域中的暗点等。描述子可以是用于刻画特征点的数据结构,一个描述子的维数可以是一维或多维,此处不做限定。相似度与第一匹配度呈正比关系,也即相似度越大,则第一匹配度越大。Wherein, the first feature point information may include coordinates and descriptors of multiple first feature points corresponding to the first image area, and the second feature point information includes coordinates and descriptors of multiple second feature points corresponding to the second image area . The feature points (the first feature point and the second feature point) represent points with relatively rich information in the first/second area image, such as edge contour points, bright spots in darker areas, dark points in brighter areas, etc. . A descriptor can be a data structure used to characterize feature points, and the dimension of a descriptor can be one-dimensional or multi-dimensional, which is not limited here. The similarity is proportional to the first matching degree, that is, the greater the similarity, the greater the first matching degree.
在一些实施例中,计算第一特征点信息和第二特征点信息的相似度可以包括:根据第一特征点的描述子及第二特征点的描述子,确定匹配特征点对;根据匹配特征点对的个数,确定第一特征点信息和第二特征点信息的相似度。需要说明的是,匹配特征点对的个数与相似度呈正比关系,也即匹配特征点对的个数越多,相似度越大。In some embodiments, calculating the similarity between the first feature point information and the second feature point information may include: determining a matching feature point pair according to the descriptor of the first feature point and the descriptor of the second feature point; The number of point pairs determines the similarity between the first feature point information and the second feature point information. It should be noted that the number of matching feature point pairs is proportional to the similarity, that is, the greater the number of matching feature point pairs, the greater the similarity.
204、判断第一匹配度是否大于匹配度阈值。204. Determine whether the first matching degree is greater than a matching degree threshold.
需要说明的是,在步骤204的判断结果为是时,继续执行步骤207;在步骤204的判断结果为否时,继续执行步骤205。It should be noted that, when the judgment result of step 204 is yes, continue to execute step 207; when the judgment result of step 204 is no, continue to execute step 205.
在本申请实施例中,匹配阈值是用于界定第一图像区域和第二图像区域是否相似的数值。可以理解的是,若第一匹配度大于该匹配阈值,则第一图像区域和第二图像区域相似,反之,则第一图像区域和第二图像区域不相似。In the embodiment of the present application, the matching threshold is a value used to define whether the first image area and the second image area are similar. It can be understood that if the first matching degree is greater than the matching threshold, the first image area is similar to the second image area; otherwise, the first image area is not similar to the second image area.
在一些实施例中,匹配度阈值可以用百分数来表示,示例性的,该匹配度阈值可以为85%、90%、93%或92%。In some embodiments, the matching degree threshold may be represented by a percentage. Exemplarily, the matching degree threshold may be 85%, 90%, 93% or 92%.
205、判断匹配次数是否大于次数阈值。205. Determine whether the number of matching times is greater than the number of times threshold.
需要说明的是,在步骤205的判断结果为是时,继续执行步骤207;在步骤205的判断结果为否时,继续执行步骤206。It should be noted that, when the judgment result of step 205 is yes, continue to execute step 207; when the judgment result of step 205 is no, continue to execute step 206.
在本申请实施例中,次数阈值可以通过大量实验得到。示例性的,该次数阈值可以是5次、6次或7次,本申请实施例不做限定。In the embodiment of the present application, the number of times threshold can be obtained through a large number of experiments. Exemplarily, the number of times threshold may be 5 times, 6 times or 7 times, which is not limited in this embodiment of the present application.
206、分别调整第一图像区域及第二图像区域,得到新的第一图像区域及新的第二图像区。206. Adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area.
需要说明的是,在步骤206之后,继续执行步骤203-步骤204。It should be noted that after step 206, step 203-step 204 are continuously executed.
其中,每次调整后的第一图像区域小于调整前的第一图像区域,每次调整后的第二图像区域小于调整前的第二图像区域,且每次调整后的第一图像区域与调整后的第二图像区域的尺寸相同。Wherein, the first image area after each adjustment is smaller than the first image area before adjustment, the second image area after each adjustment is smaller than the second image area before adjustment, and the first image area after each adjustment is the same as the adjusted After the second image area is the same size.
207、得到匹配结果。207. Obtain a matching result.
在本申请实施例中,在第一匹配度大于匹配度阈值时,对应的匹配结果为匹配成功;在匹配次数大于次数阈值时,对应的匹配结果为匹配失败。In the embodiment of the present application, when the first matching degree is greater than the matching degree threshold, the corresponding matching result is matching success; when the number of matching times is greater than the number threshold, the corresponding matching result is matching failure.
208、若匹配结果为匹配成功,则根据匹配成功的第一图像区域及第二图像区域,确定第一图像和所述第二图像的第一相对位移。208. If the matching result is successful, determine a first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area.
在本申请实施例中,第一相对位移表征的可以是第二图像相对于第一图像在水平线方向上的移动距离和移动方向;或者,第一图像相对于第二图像在水平线方向上的移动距离和移动方向,本申请实施例不做限定。In the embodiment of the present application, the first relative displacement may represent the moving distance and moving direction of the second image relative to the first image in the horizontal direction; or, the movement of the first image relative to the second image in the horizontal direction The distance and moving direction are not limited in this embodiment of the application.
209、根据第一相对位移,拼接第一图像和第二图像。209. Stitch the first image and the second image according to the first relative displacement.
在本申请实施例中,根据第一相对位移,拼接第一图像和第二图像,可以包括:根据第一相对位移确定位于第一图像上的拼接位置;将第二图像的第一侧的边沿移动至该拼接位位置,以实现对第一图像和第二图像的拼接。需要说明的是,第二图像的第一侧边沿均垂直于水平线。In the embodiment of the present application, stitching the first image and the second image according to the first relative displacement may include: determining the stitching position on the first image according to the first relative displacement; Move to the splicing bit position to realize the splicing of the first image and the second image. It should be noted that the first side edges of the second image are all perpendicular to the horizontal line.
在一些实施例中,在对应的匹配结果指示匹配失败时,还可以获取第三图像和第一图像的第三相对位移,该第三图像为与第一图像成功匹配过的图像;根据第三相对位移,拼接第一图像和第二图像。In some embodiments, when the corresponding matching result indicates that the matching fails, a third relative displacement between the third image and the first image may also be obtained, and the third image is an image successfully matched with the first image; according to the third Relative displacement, stitching the first image and the second image.
其中,在实践中发现,由于终端设备采集到的相邻多帧的图像对应的有效内容往往存在较小差异,因此,在第一图像和第二图像匹配失败时,可以直接利用第一图像及与其成功匹配过的图像的匹配结果,对第一图像和第二图像进行匹配,有利于提高图像拼接的成功率。Among them, it has been found in practice that since there is often a small difference in the effective content corresponding to the images of adjacent multiple frames collected by the terminal device, when the matching between the first image and the second image fails, the first image and the second image can be directly used. Matching the first image and the second image with the matching result of the successfully matched image is beneficial to improve the success rate of image splicing.
通过实施上述方法,在第一图像区域与第二图像区域的第一匹配度较小时,可以通过一次或多次调整第一图像区域和第二图像区域的匹配区域方式,对第一匹配度进行修正,有利于提高图像拼接的准确性,提高了图像拼接效果。By implementing the above method, when the first matching degree between the first image area and the second image area is small, the first matching degree can be adjusted by adjusting the matching area mode of the first image area and the second image area one or more times. The correction is beneficial to improve the accuracy of image stitching and improve the effect of image stitching.
请参阅图3A,图3A是本申请实施例公开的又一种图像拼接方法的流程示意图。可以包括以下步骤:Please refer to FIG. 3A . FIG. 3A is a schematic flowchart of another image stitching method disclosed in an embodiment of the present application. Can include the following steps:
301、获取第一图像及第二图像。301. Acquire a first image and a second image.
其中,关于步骤301的详细描述,请参照图2所示实施例中针对步骤201的介绍,此处不再赘述。Wherein, for the detailed description of step 301, please refer to the introduction of step 201 in the embodiment shown in FIG. 2 , which will not be repeated here.
302、分别对第一图像和第二图像进行边缘检测,得到检测结果。302. Perform edge detection on the first image and the second image respectively to obtain a detection result.
在本申请实施例中,可以使用预设边缘检测算子,分别对第一图像和第二图像进行边缘检测,得到检测结果。其中,预设边缘检测算子可以包括以下中的任一种:Robert算子、Prewitt算子、索贝尔算子(Sobel operator,sobel算子及Canny算子。需要说明的是,Roberts算子是一种利用局部差分算子寻找边缘的算子;Prewitt算子是一种一阶微分算子;Canny算子是一种多级边缘检测算子。In the embodiment of the present application, a preset edge detection operator may be used to perform edge detection on the first image and the second image respectively to obtain detection results. Wherein, the default edge detection operator can include any of the following: Robert operator, Prewitt operator, Sobel operator (Sobel operator, sobel operator and Canny operator. It should be noted that the Roberts operator is An operator that uses local differential operators to find edges; Prewitt operator is a first-order differential operator; Canny operator is a multi-level edge detection operator.
可以理解的是,对第一图像和第二图像进行边缘检测可以是对第一图像的有效内容的轮廓和第二图像的有效内容的轮廓进行检测。It can be understood that, performing edge detection on the first image and the second image may be detecting an outline of effective content in the first image and an outline of effective content in the second image.
303、在检测结果指示第一图像和第二图像均存在有效内容时,确定第一图像的第一图像区域及第二图像的第二图像区域。303. When the detection result indicates that both the first image and the second image have valid content, determine a first image area of the first image and a second image area of the second image.
在一些实施例中,确定第一图像的第一图像区域及第二图像的第二图像区域,可以包括:In some embodiments, determining the first image area of the first image and the second image area of the second image may include:
分别对第一图像和第二图像进行预设压缩操作;确定压缩后的第一图像的第一图像区域及压缩后的第二图像的第二图像区域。Perform preset compression operations on the first image and the second image respectively; determine the compressed first image area of the first image and the compressed second image area of the second image.
进一步的,一些实施例中,确定压缩后的第一图像的第一图像区域及压缩后的第二图像的第二图像区域,包括:以压缩后的第一图像的中心点为基准,按照第二预设比例对压缩后的第一图像的中间区域进行裁剪,并将裁剪得到的压缩后的第一图像的中间区域作为第一图像区域;以缩后的第二图像的中心点为基准,按照第二预设比例对缩后的第二图像的中间区域进行裁剪,并将裁剪得到的压缩后的第二图像的中间区域作为第二图像区域。通过实施该方法,在确定第一图像中的第一图像区域及第二图像中的第二图像区域之前,先对第一图像和第二图像进行压缩操作,这样可以降低确定出的第一图像区域及第二图像区域的图像数据量,进而有利于提高图像匹配效率。Further, in some embodiments, determining the first image area of the compressed first image and the second image area of the compressed second image includes: taking the center point of the compressed first image as a reference, according to the first Two preset ratios are used to cut out the middle area of the compressed first image, and use the cut out middle area of the compressed first image as the first image area; taking the center point of the reduced second image as a reference, The middle area of the shrunken second image is cropped according to a second preset ratio, and the cut and compressed middle area of the second image is used as the second image area. By implementing this method, before determining the first image area in the first image and the second image area in the second image, the first image and the second image are compressed, so that the determined first image can be reduced. The amount of image data in the area and the second image area is beneficial to improve the efficiency of image matching.
304、将第一图像区域及第二图像区域进行匹配,得到第一匹配度。304. Match the first image area and the second image area to obtain a first matching degree.
305、判断第一匹配度是否大于匹配度阈值。305. Determine whether the first matching degree is greater than a matching degree threshold.
需要说明的是,在本申请实施例中,在步骤305的判断结果为是时,继续执行步骤308,在步骤305的判断结果为否时,继续执行步骤306。It should be noted that, in the embodiment of the present application, if the judgment result of step 305 is yes, continue to execute step 308 , and if the judgment result of step 305 is no, continue to execute step 306 .
306、判断匹配次数是否大于次数阈值。306. Determine whether the number of times of matching is greater than the number of times threshold.
需要说明的是,在本申请实施例中,在步骤306的判断结果为是是,继续执行步骤308,在步骤306的判断结果为否时,继续执行步骤307。It should be noted that, in the embodiment of the present application, if the judgment result of step 306 is yes, continue to execute step 308 , and if the judgment result of step 306 is no, continue to execute step 307 .
307、分别调整第一图像区域及第二图像区域,得到新的第一图像区域及新的第二图像区。307. Adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area.
需要说明的是,步骤307执行完毕之后,继续执行步骤304。It should be noted that, after step 307 is executed, step 304 is continued to be executed.
在一些实施例中,分别调整第一图像区域及第二图像区域,得到新的第一图像区域及新的第二图像区可以包括但不限于以下方式:In some embodiments, adjusting the first image area and the second image area respectively to obtain a new first image area and a new second image area may include but not limited to the following methods:
方式1、从第一图像区域的第一侧的边沿开始裁剪掉第一区域,得到新的第一图像区域,并从第二图像区域的第二侧的边沿开始裁剪掉第二区域,得到新的第二图像区域;其中,第一侧的边沿和第二侧的边沿均垂直于水平线,第一区域和第二区域的尺寸相同。Method 1. Cut off the first area from the edge of the first side of the first image area to obtain a new first image area, and cut off the second area from the edge of the second side of the second image area to obtain a new The second image area of ; wherein, the edge of the first side and the edge of the second side are both perpendicular to the horizontal line, and the size of the first area and the second area are the same.
请参阅图3B,图3B是本申请实施例公开的一种获取新的第一图像区域和新的第二图像区域的示意图。如图3B所示包括第一图像区域01、新的第一图像区域02、第二图像区域03、新的第二图像区域04。需要说明的是,第一侧可以是第一图像区域01的左侧,第二侧可以是第二图像区域03的右侧,第一区域的高度与第一图像区域01的高度相同,第二区域的高度与第二图像区域03的高度相同。Please refer to FIG. 3B . FIG. 3B is a schematic diagram of acquiring a new first image area and a new second image area disclosed in an embodiment of the present application. As shown in FIG. 3B , it includes a first image area 01 , a new first image area 02 , a second image area 03 , and a new second image area 04 . It should be noted that the first side may be the left side of the first image area 01, the second side may be the right side of the second image area 03, the height of the first area is the same as the height of the first image area 01, and the second side may be the right side of the second image area 03. The height of the area is the same as the height of the second image area 03 .
方式2、以第一图像区域的中心点为基准,按照第一预设比例对第一图像区域的中间区域进行裁剪,并将裁剪得到的第一图像区域的中间区域作为新的第一图像区域;以第二图像区域的中心点为基准,按照第一预设比例对第二图像区域的中间区域进行裁剪,并将裁剪得到的第二图像区域的中间区域作为新的第二图像区域。Method 2. Taking the central point of the first image area as a reference, crop the middle area of the first image area according to a first preset ratio, and use the cut middle area of the first image area as a new first image area ; Based on the center point of the second image area, crop the middle area of the second image area according to the first preset ratio, and use the middle area of the second image area obtained by cropping as a new second image area.
请参阅图3C,图3C是本申请实施例公开的又一种获取新的第一图像区域和新的第二图像区域的示意图。如图3C所示包括第一图像区域05、新的第一图像区域06、第二图像区域07、新的第二图像区域08。需要说明的是,第一预设比例表征的可以是新的第一图像区域占裁剪前的第一图像区域的比例(新的第二图像区域占裁剪前第二图像区域的比例)。Please refer to FIG. 3C . FIG. 3C is another schematic diagram of acquiring a new first image area and a new second image area disclosed in an embodiment of the present application. As shown in FIG. 3C , it includes a first image area 05 , a new first image area 06 , a second image area 07 and a new second image area 08 . It should be noted that the first preset ratio may represent the ratio of the new first image area to the first image area before cropping (the ratio of the new second image area to the second image area before cropping).
308、得到匹配结果。308. Obtain a matching result.
其中,在本申请实施例中,关于步骤305-步骤306,及步骤308详细描述, 请参照图2所示的实施例中针对步骤204-步骤205,及步骤207的介绍,此处不再赘述。Wherein, in the embodiment of the present application, for the detailed description of step 305-step 306 and step 308, please refer to the introduction of step 204-step 205 and step 207 in the embodiment shown in FIG. .
309、若匹配结果为匹配成功,则根据匹配成功的第一图像区域及第二图像区域,确定第一图像和所述第二图像的第一相对位移。309. If the matching result is successful, determine a first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area.
进一步的,在本申请实施例中,根据匹配成功的第一图像区域及第二图像区域,确定所述第一图像和所述第二图像的第一相对位移,可以包括但不限于以下方式:Further, in this embodiment of the present application, determining the first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area may include but not limited to the following methods:
若新的第一图像区域及新的第二图像区域的获取方式为上述方式(1),则获取匹配成功的第一图像区域及第二图像区域的第二相对位移;根据第二相对位移、第一区域及第一区域的数量,确定第一图像和第二图像的第一相对位移。If the acquisition method of the new first image area and the new second image area is the above method (1), then obtain the second relative displacement of the successfully matched first image area and the second image area; according to the second relative displacement, The first area and the number of the first areas determine a first relative displacement between the first image and the second image.
其中,可以理解的是,每一次调整第一图像区域均需要裁剪掉第一区域,也即,若调整第一图形区域n次,n为大于等于1的整数,则需要裁剪掉n个第一区域,需要说明的是,每一次裁剪的第一区域的尺寸可以相同也可以不同,本申请实施例不做限定。关于第二图像区域的调整,同理,此处不再赘述。Wherein, it can be understood that each time the first image area is adjusted, the first area needs to be cut out, that is, if the first graphic area is adjusted n times, and n is an integer greater than or equal to 1, then n first image areas need to be cut out. region, it should be noted that the size of the first region cropped each time may be the same or different, which is not limited in this embodiment of the present application. Regarding the adjustment of the second image area, it is similar and will not be repeated here.
在一些实施例中,获取匹配成功的第一图像区域和第二图像区域的第二相对位移,可以包括:根据匹配成功的第一图像区域的和第二图像区域的频域信息,得到匹配成功的第一图像区域和第二图像区域的第二相对位移。In some embodiments, obtaining the second relative displacement of the successfully matched first image area and the second image area may include: obtaining the successfully matched The second relative displacement of the first image area and the second image area.
在一些实施例中,根据第二相对位移、第一区域及第一区域的数量,确定第一图像和第二图像的第一相对位移,可以包括:根据第一区域的宽度及第一区域的数量得到第一距离值,根据第一距离值和第二相对位移指示的第二距离值,得到第一图像和第二图像的第一相对位移。In some embodiments, determining the first relative displacement between the first image and the second image according to the second relative displacement, the first area and the number of the first area may include: according to the width of the first area and the number of the first area The first distance value is obtained by the number, and the first relative displacement between the first image and the second image is obtained according to the first distance value and the second distance value indicated by the second relative displacement.
若新的第一图像区域及新的第二图像区域的获取方式为上述方式(2),则获取匹配成功的第一图像区域及第二图像区域的第二相对位移;将第二相对位移作为第一图像和第二图像的第一相对位移。If the acquisition mode of the new first image area and the new second image area is the above-mentioned mode (2), then obtain the second relative displacement of the first image area and the second image area of the matching success; the second relative displacement is used as A first relative displacement of the first image and the second image.
需要说明的是,第二相对位移的获取方式参见上述描述,此处不再赘述。It should be noted that, for the manner of obtaining the second relative displacement, refer to the above description, which will not be repeated here.
310、根据第一相对位移,拼接第一图像和第二图像。310. Stitch the first image and the second image according to the first relative displacement.
在一些实施例中,根据第一相对位移,拼接第一图像和第二图像可以包 括:根据第一相对位移,拼接第一图像和第二图像,得到待处理拼接图像;对待处理图像进行平滑处理,得到目标拼接图像。In some embodiments, splicing the first image and the second image according to the first relative displacement may include: splicing the first image and the second image according to the first relative displacement to obtain a spliced image to be processed; smoothing the image to be processed , to get the target stitched image.
在一些实施例中,可以通过预设融合算法对待处理图像进行平滑处理,得到目标拼接图像。可选的,预设融合算法可以包括以下至少一种:加权平均融合算法、羽化融合算法、拉普拉斯金字塔融合算法及高斯金字塔融合算法等。In some embodiments, the image to be processed can be smoothed through a preset fusion algorithm to obtain the target spliced image. Optionally, the preset fusion algorithm may include at least one of the following: a weighted average fusion algorithm, a feathering fusion algorithm, a Laplacian pyramid fusion algorithm, a Gaussian pyramid fusion algorithm, and the like.
通过实施该方法,在拼接第一图像和第二图像得到待处理拼接图像之后,还可以对待处理拼接图像进行平滑处理,有助于实现图像的无痕拼接,进一步提升了拼接效果。By implementing the method, after the spliced image to be processed is obtained by splicing the first image and the second image, the spliced image to be processed can also be smoothed, which helps to realize seamless splicing of images, and further improves the splicing effect.
通过实施上述方法,在第一图像区域与第二图像区域的第一匹配度较小时,可以通过第一或多次调整第一图像区域和第二图像区域的匹配区域方式,对第一匹配度进行修正,提高图像拼接的准确性,提高了图像拼接效果。进一步的,在确定第一图像区域和第二图像区域之前,先对第一图像和第二图像进行有效内容的检测,若第一图像和第二图像中任一个不存在有效内容,则不再进行图像匹配,有利于降低无效功耗。By implementing the above method, when the first matching degree between the first image area and the second image area is small, the first matching degree can be adjusted by adjusting the matching area mode of the first image area and the second image area for the first time or multiple times. Make corrections to improve the accuracy of image stitching and improve the image stitching effect. Further, before determining the first image area and the second image area, the effective content detection is performed on the first image and the second image, and if there is no effective content in any of the first image and the second image, then no longer Image matching is beneficial to reduce ineffective power consumption.
请参阅图4,图4是本申请实施例公开的一种终端设备的结构框图。可以包括获取单元401、匹配单元402、调整单元403、确定单元404及拼接单元405;其中:Please refer to FIG. 4. FIG. 4 is a structural block diagram of a terminal device disclosed in an embodiment of the present application. It may include an acquisition unit 401, a matching unit 402, an adjustment unit 403, a determination unit 404, and a splicing unit 405; wherein:
获取单元401,获取第一图像及第二图像,并确定第一图像的第一图像区域及第二图像的第二图像区域;An acquiring unit 401, acquiring a first image and a second image, and determining a first image area of the first image and a second image area of the second image;
匹配单元402,用于将第一图像区域及第二图像区域进行匹配,得到第一匹配度;A matching unit 402, configured to match the first image area and the second image area to obtain a first matching degree;
调整单元403,用于若第一匹配度小于或等于匹配度阈值,则分别调整第一图像区域及第二图像区域,得到新的第一图像区域及新的第二图像区域,并继续执行将第一图像区域及第二图像区域进行匹配,得到第一匹配度的步骤,直至匹配次数大于次数阈值或第一匹配度大于匹配度阈值,得到匹配结果;其中,调整后的第一图像区域小于调整前的第一图像区域,调整后的第二图像区域小于调整前的第二图像区域,且进行匹配的第一图像区域与第二图像区域的尺寸相同;An adjustment unit 403, configured to adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area if the first matching degree is less than or equal to the matching degree threshold, and continue to execute the The step of matching the first image area and the second image area to obtain the first matching degree, until the number of matching times is greater than the number threshold or the first matching degree is greater than the matching degree threshold, the matching result is obtained; wherein, the adjusted first image area is less than The first image area before adjustment, the second image area after adjustment is smaller than the second image area before adjustment, and the size of the first image area for matching is the same as that of the second image area;
确定单元404,用于若匹配结果为匹配成功,则根据匹配成功的第一图像区域及第二图像区域,确定第一图像和第二图像的第一相对位移;A determining unit 404, configured to determine a first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area if the matching result is successful;
拼接单元405,用于根据第一相对位移,拼接第一图像和第二图像。The stitching unit 405 is configured to stitch the first image and the second image according to the first relative displacement.
在一些实施例中,调整单元403用于分别调整所述第一图像区域及所述第二图像区域,得到新的第一图像区域及新的第二图像区域的方式具体可以包括:调整单元403,用于从第一图像区域的第一侧的边沿开始裁剪掉第一区域,得到新的第一图像区域,并从第二图像区域的第二侧的边沿开始裁剪掉第二区域,得到新的第二图像区域;其中,第一侧的边沿和第二侧的边沿均垂直于水平线,第一区域和第二区域的尺寸相同。In some embodiments, the adjustment unit 403 is used to adjust the first image area and the second image area respectively, and the manner of obtaining a new first image area and a new second image area may specifically include: the adjustment unit 403 , which is used to crop the first area from the edge of the first side of the first image area to obtain a new first image area, and to crop the second area from the edge of the second side of the second image area to obtain a new The second image area of ; wherein, the edge of the first side and the edge of the second side are both perpendicular to the horizontal line, and the size of the first area and the second area are the same.
进一步的,确定单元404用于根据匹配成功的第一图像区域及第二图像区域,确定第一图像和第二图像的第一相对位移的方式具体可以包括:确定单元404,用于获取匹配成功的第一图像区域及第二图像区域的第二相对位移;根据所述第二相对位移、第一区域及第一区域的数量,确定第一图像和第二图像的第一相对位移。Further, the manner in which the determining unit 404 is used to determine the first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area may specifically include: the determining unit 404 is configured to obtain a matching successful The second relative displacement of the first image area and the second image area; according to the second relative displacement, the first area and the number of the first area, determine the first relative displacement of the first image and the second image.
在一些实施例中,调整单元403用于分别调整所述第一图像区域及所述第二图像区域,得到新的第一图像区域及新的第二图像区域的方式具体可以包括:调整单元403,以所述第一图像区域的中心点为基准,按照第一预设比例对所述第一图像区域的中间区域进行裁剪,并将裁剪得到的第一图像区域的中间区域作为新的第一图像区域;以所述第二图像区域的中心点为基准,按照所述第一预设比例对所述第二图像区域的中间区域进行裁剪,并将裁剪得到的第二图像区域的中间区域作为新的第二图像区域。In some embodiments, the adjustment unit 403 is used to adjust the first image area and the second image area respectively, and the manner of obtaining a new first image area and a new second image area may specifically include: the adjustment unit 403 , using the central point of the first image region as a reference, crop the middle region of the first image region according to a first preset ratio, and use the cut middle region of the first image region as a new first Image area; using the central point of the second image area as a reference, crop the middle area of the second image area according to the first preset ratio, and use the middle area of the second image area obtained by cutting as The new second image area.
进一步的,确定单元404用于根据匹配成功的第一图像区域及第二图像区域,确定第一图像和第二图像的第一相对位移的方式具体可以包括:确定单元404,用于获取匹配成功的第一图像区域及第二图像区域的第二相对位移;将所述第二相对位移作为所述第一图像和所述第二图像的第一相对位移。Further, the manner in which the determining unit 404 is used to determine the first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area may specifically include: the determining unit 404 is configured to obtain a matching successful The second relative displacement of the first image area and the second image area; using the second relative displacement as the first relative displacement of the first image and the second image.
在一些实施例中,确定单元404,还用于若匹配结果指示匹配失败,则获取第三图像和所述第一图像的第三相对位移;第三图像为与第一图像成功匹配过的图像;根据第三相对位移,拼接第一图像和第二图像。In some embodiments, the determining unit 404 is further configured to acquire a third relative displacement between the third image and the first image if the matching result indicates that the matching fails; the third image is an image successfully matched with the first image ; Stitching the first image and the second image according to the third relative displacement.
在一些实施例中,获取单元401用于确定第一图像的第一图像区域及第 二图像的第二图像区域的方式具体可以包括:获取单元401,用于分别对第一图像和第二图像进行边缘检测,得到检测结果;在该检测结果指示第一图像和第二图像均存在有效内容时,确定第一图像的第一图像区域及第二图像的第二图像区域。In some embodiments, the manner for the acquiring unit 401 to determine the first image area of the first image and the second image area of the second image may specifically include: the acquiring unit 401 is configured to respectively determine the first image and the second image Perform edge detection to obtain a detection result; when the detection result indicates that both the first image and the second image have valid content, determine the first image area of the first image and the second image area of the second image.
在一些实施例中,获取单元401用于在检测结果指示第一图像和第二图像均存在有效内容时,确定第一图像的第一图像区域及第二图像的第二图像区域的方式具体可以包括:获取单元401,用于在检测结果指示第一图像和第二图像均存在有效内容时,分别对第一图像和第二图像进行预设压缩操作;确定压缩后的第一图像的第一图像区域及压缩后的第二图像的第二图像区域。In some embodiments, the method for determining the first image area of the first image and the second image area of the second image by the acquiring unit 401 when the detection result indicates that both the first image and the second image have valid content may specifically be It includes: an acquisition unit 401, configured to perform a preset compression operation on the first image and the second image respectively when the detection result indicates that both the first image and the second image have valid content; determine the first image of the compressed first image The image area and the second image area of the compressed second image.
在一些实施例中,拼接单元405用于根据第一相对位移,拼接第一图像和第二图像的方式具体可以包括:拼接单元405,用于根据第一相对位移,拼接第一图像和第二图像,得到待处理拼接图像;对待处理图像进行平滑处理,得到目标拼接图像。In some embodiments, the stitching unit 405 is configured to stitch the first image and the second image according to the first relative displacement. The stitching unit 405 is configured to stitch the first image and the second image according to the first relative displacement. image to obtain the spliced image to be processed; smoothing the image to be processed to obtain the target spliced image.
如图5所示,为本申请实施例中终端设备的另一个实施例示意图,图5示出的是与本申请实施例提供的终端设备相关的扫描笔的部分结构的框图。该扫描笔可以包括:摄像模块510、存储器520、处理器530、传感器540及音频电路550。本领域技术人员可以理解,图5中示出的结构并不构成对扫描笔结构的限定,扫描笔可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 5 , it is a schematic diagram of another embodiment of the terminal device in the embodiment of the present application. FIG. 5 shows a block diagram of a partial structure of the scanning pen related to the terminal device provided in the embodiment of the present application. The scanning pen may include: a camera module 510 , a memory 520 , a processor 530 , a sensor 540 and an audio circuit 550 . Those skilled in the art can understand that the structure shown in Figure 5 does not constitute a limitation on the structure of the scanning pen, and the scanning pen may include more or less components than shown in the illustration, or combine some components, or arrange different components .
下面结合图5对扫描笔的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the scanning pen in combination with Figure 5:
摄像模块510,可用于采集图像,并将采集的图像向处理器530及存储器520发送。The camera module 510 can be used to collect images, and send the collected images to the processor 530 and the memory 520 .
存储器520可用于存储软件程序以及模块,处理器530通过运行存储在存储器520的软件程序以及模块,从而执行扫描笔的各种功能应用以及数据处理。存储器520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据扫描笔的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器520可以包括高速随机存取存储器, 还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 520 can be used to store software programs and modules, and the processor 530 executes various functional applications and data processing of the scanning pen by running the software programs and modules stored in the memory 520 . The memory 520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); The data created by the use of the scanning pen (such as audio data, phonebook, etc.) and the like. In addition, the memory 520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器530是扫描笔的控制中心,利用各种接口和线路连接整个扫描笔的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器520内的数据,执行扫描笔的各种功能和处理数据,从而对扫描笔进行整体监控。可选的,处理器530可包括一个或多个处理单元;优选的,处理器530可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器530中。The processor 530 is the control center of the scanning pen, which uses various interfaces and lines to connect various parts of the entire scanning pen, runs or executes software programs and/or modules stored in the memory 520, and calls data stored in the memory 520 , execute various functions of the scanning pen and process data, so as to monitor the scanning pen as a whole. Optionally, the processor 530 may include one or more processing units; preferably, the processor 530 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 530 .
扫描笔还可包括至少一种传感器540,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器。运动传感器的可以包括加速计传感器。进一步的,扫描笔还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The wand may also include at least one sensor 540, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. Motion sensors may include accelerometer sensors. Furthermore, the scanning pen can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
音频电路550可提供用户与扫描笔之间的音频接口。音频电路550可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路550接收后转换为音频数据,再将音频数据输出处理器530处理后,经RF电路510以发送给比如其他终端例如手机,或者将音频数据输出至存储器520以便进一步处理。 Audio circuitry 550 may provide an audio interface between the user and the wand. The audio circuit 550 can transmit the electrical signal converted from the received audio data to the speaker, and the speaker converts it into an audio signal for output; on the other hand, the microphone converts the collected audio signal into an electrical signal, which is converted by the audio circuit 550 After processing by the audio data output processor 530, the RF circuit 510 sends the audio data to other terminals such as mobile phones, or outputs the audio data to the memory 520 for further processing.
尽管未示出,扫描笔还可以包括蓝牙模块等,在此不再赘述。Although not shown, the scanning pen may also include a Bluetooth module, etc., which will not be repeated here.
在本申请实施例中,该扫描笔所包括的处理器530还具有以下功能:In the embodiment of the present application, the processor 530 included in the scanning pen also has the following functions:
可选的,处理器530还具有以下功能:Optionally, the processor 530 also has the following functions:
获取两帧连续的第一图像及第二图像,并确定第一图像的第一图像区域及第二图像的第二图像区域;Acquiring two consecutive frames of the first image and the second image, and determining the first image area of the first image and the second image area of the second image;
将第一图像区域及第二图像区域进行匹配,得到第一匹配度;matching the first image area and the second image area to obtain a first matching degree;
若第一匹配度小于或等于匹配度阈值,则分别调整第一图像区域及第二图像区域,得到新的第一图像区域及新的第二图像区域,并继续执行将第一图像区域及第二图像区域进行匹配,得到第一匹配度的步骤,直至匹配次数大于次数阈值或第一匹配度大于匹配度阈值,得到匹配结果;其中,调整后 的第一图像区域小于调整前的第一图像区域,调整后的第二图像区域小于调整前的第二图像区域,且进行匹配的第一图像区域与第二图像区域的尺寸相同;If the first matching degree is less than or equal to the matching degree threshold, then adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area, and continue to execute the process of converting the first image area and the second image area. The step of matching the two image areas to obtain the first matching degree, until the number of matching times is greater than the number of times threshold or the first matching degree is greater than the matching degree threshold, and the matching result is obtained; wherein, the first image area after adjustment is smaller than the first image before adjustment area, the adjusted second image area is smaller than the pre-adjusted second image area, and the matched first image area is the same size as the second image area;
若匹配结果为匹配成功,则根据匹配成功的第一图像区域及第二图像区域,确定第一图像和第二图像的第一相对位移;If the matching result is that the matching is successful, then according to the successfully matched first image area and the second image area, determine the first relative displacement of the first image and the second image;
根据第一相对位移,拼接第一图像和第二图像。According to the first relative displacement, the first image and the second image are stitched together.
可选的,处理器530还具有以下功能:Optionally, the processor 530 also has the following functions:
从第一图像区域的第一侧的边沿开始裁剪掉第一区域,得到新的第一图像区域,并从第二图像区域的第二侧的边沿开始裁剪掉第二区域,得到新的第二图像区域;其中,第一侧的边沿和第二侧的边沿均垂直于水平线,第一区域和所述第二区域的尺寸相同。Cut off the first area from the edge of the first side of the first image area to obtain a new first image area, and cut off the second area from the edge of the second side of the second image area to obtain a new second image area Image area; wherein, the edge of the first side and the edge of the second side are both perpendicular to the horizontal line, and the size of the first area and the second area are the same.
可选的,处理器530还具有以下功能:Optionally, the processor 530 also has the following functions:
获取匹配成功的第一图像区域及第二图像区域的第二相对位移;根据第二相对位移、第一区域及第一区域的数量,确定第一图像和第二图像的第一相对位移。Acquire the second relative displacement of the successfully matched first image area and the second image area; determine the first relative displacement of the first image and the second image according to the second relative displacement, the first area, and the number of the first areas.
可选的,处理器530还具有以下功能:Optionally, the processor 530 also has the following functions:
以第一图像区域的中心点为基准,按照第一预设比例对第一图像区域的中间区域进行裁剪,并将裁剪得到的第一图像区域的中间区域作为新的第一图像区域;以第二图像区域的中心点为基准,按照第一预设比例对第二图像区域的中间区域进行裁剪,并将裁剪得到的第二图像区域的中间区域作为新的第二图像区域。Taking the central point of the first image area as a reference, the middle area of the first image area is cropped according to a first preset ratio, and the middle area of the first image area obtained by cutting is used as a new first image area; The central point of the second image area is used as a reference, the middle area of the second image area is cropped according to the first preset ratio, and the middle area of the second image area obtained by cutting is used as a new second image area.
可选的,处理器530还具有以下功能:Optionally, the processor 530 also has the following functions:
获取匹配成功的第一图像区域及第二图像区域的第二相对位移;Obtaining a second relative displacement of the successfully matched first image area and the second image area;
将第二相对位移作为第一图像和所述第二图像的第一相对位移。The second relative displacement is used as the first relative displacement between the first image and the second image.
可选的,处理器530还具有以下功能:Optionally, the processor 530 also has the following functions:
若匹配结果指示匹配失败,则获取第三图像和所述第一图像的第三相对位移;第三图像为与第一图像成功匹配过的图像;根据第三相对位移,拼接第一图像和所述第二图像。If the matching result indicates that the matching fails, the third relative displacement of the third image and the first image is obtained; the third image is an image successfully matched with the first image; according to the third relative displacement, the first image and the first image are stitched together Describe the second image.
可选的,处理器530还具有以下功能:Optionally, the processor 530 also has the following functions:
分别对第一图像和第二图像进行边缘检测,得到检测结果;performing edge detection on the first image and the second image respectively to obtain detection results;
在检测结果指示第一图像和所述第二图像均存在有效内容时,确定第一图像的第一图像区域及第二图像的第二图像区域。When the detection result indicates that both the first image and the second image have valid content, determine the first image area of the first image and the second image area of the second image.
可选的,处理器530还具有以下功能:Optionally, the processor 530 also has the following functions:
在检测结果指示第一图像和第二图像均存在有效内容时,分别对第一图像和第二图像进行预设压缩操作;When the detection result indicates that both the first image and the second image have valid content, respectively perform preset compression operations on the first image and the second image;
确定压缩后的第一图像的第一图像区域及压缩后的第二图像的第二图像区域。A first image area of the compressed first image and a second image area of the compressed second image are determined.
可选的,处理器530还具有以下功能:Optionally, the processor 530 also has the following functions:
根据第一相对位移,拼接第一图像和第二图像,得到待处理拼接图像;Stitching the first image and the second image according to the first relative displacement to obtain the spliced image to be processed;
对待处理图像进行平滑处理,得到目标拼接图像。The image to be processed is smoothed to obtain the target spliced image.
请参阅图6,图6是本申请实施例公开的一种终端设备的另一种结构框图。可以包括:Please refer to FIG. 6. FIG. 6 is another structural block diagram of a terminal device disclosed in an embodiment of the present application. Can include:
存储有可执行程序代码的存储器601;A memory 601 storing executable program codes;
以及存储器601耦合的处理器602;and a processor 602 coupled to the memory 601;
处理器602调用存储器601中存储的可执行程序代码,该可执行程序代码被处理器602执行时,使得处理器602实现图像拼接方法。The processor 602 invokes the executable program code stored in the memory 601, and when the executable program code is executed by the processor 602, the processor 602 implements the image stitching method.
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述实施例描述的方法。The embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, the methods described in the above-mentioned embodiments are implemented.
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的方法。The embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the methods described in the foregoing embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、ROM等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a ROM, or the like.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单 元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions described in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application.

Claims (12)

  1. 一种图像拼接方法,其特征在于,包括:An image mosaic method, characterized in that, comprising:
    获取第一图像及第二图像,并确定所述第一图像的第一图像区域及所述第二图像的第二图像区域;acquiring a first image and a second image, and determining a first image area of the first image and a second image area of the second image;
    将所述第一图像区域及第二图像区域进行匹配,得到第一匹配度;matching the first image area and the second image area to obtain a first matching degree;
    若所述第一匹配度小于或等于匹配度阈值,则分别调整所述第一图像区域及所述第二图像区域,得到新的第一图像区域及新的第二图像区域,并继续执行所述将所述第一图像区域及第二图像区域进行匹配,得到第一匹配度的步骤,直至匹配次数大于次数阈值或所述第一匹配度大于所述匹配度阈值,得到匹配结果;其中,调整后的第一图像区域小于调整前的第一图像区域,调整后的第二图像区域小于调整前的第二图像区域,且进行匹配的第一图像区域与第二图像区域的尺寸相同;If the first matching degree is less than or equal to the matching degree threshold, adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area, and continue to execute the Describe the step of matching the first image area and the second image area to obtain a first matching degree, until the number of matching times is greater than the number threshold or the first matching degree is greater than the matching degree threshold, and a matching result is obtained; wherein, The first image area after adjustment is smaller than the first image area before adjustment, the second image area after adjustment is smaller than the second image area before adjustment, and the first image area for matching is the same size as the second image area;
    若所述匹配结果为匹配成功,则根据匹配成功的第一图像区域及第二图像区域,确定所述第一图像和所述第二图像的第一相对位移;If the matching result is a successful match, then determine a first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area;
    根据所述第一相对位移,拼接所述第一图像和所述第二图像。Stitching the first image and the second image according to the first relative displacement.
  2. 根据权利要求1所述的方法,其特征在于,所述分别调整所述第一图像区域及所述第二图像区域,得到新的第一图像区域及新的第二图像区域,包括:The method according to claim 1, wherein said adjusting said first image area and said second image area respectively to obtain a new first image area and a new second image area comprises:
    从所述第一图像区域的第一侧的边沿开始裁剪掉第一区域,得到新的第一图像区域,并从所述第二图像区域的第二侧的边沿开始裁剪掉第二区域,得到新的第二图像区域;其中,所述第一侧的边沿和所述第二侧的边沿均垂直于水平线,所述第一区域和所述第二区域的尺寸相同。Cutting off the first area from the edge of the first side of the first image area to obtain a new first image area, and cutting off the second area from the edge of the second side of the second image area to obtain A new second image area; wherein, the edge of the first side and the edge of the second side are both perpendicular to the horizontal line, and the size of the first area and the second area are the same.
  3. 根据权利要求2所述的方法,其特征在于,所述根据匹配成功的第一图像区域及第二图像区域,确定所述第一图像和所述第二图像的第一相对位移,包括:The method according to claim 2, wherein the determining the first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area comprises:
    获取匹配成功的第一图像区域及第二图像区域的第二相对位移;Obtaining a second relative displacement of the successfully matched first image area and the second image area;
    根据所述第二相对位移、所述第一区域及所述第一区域的数量,确定所述第一图像和所述第二图像的第一相对位移。A first relative displacement between the first image and the second image is determined according to the second relative displacement, the first region, and the number of the first regions.
  4. 根据权利要求1所述的方法,其特征在于,所述分别调整所述第一图像区域及所述第二图像区域,得到新的第一图像区域及新的第二图像区域, 包括:The method according to claim 1, wherein the adjusting the first image area and the second image area respectively to obtain a new first image area and a new second image area comprises:
    以所述第一图像区域的中心点为基准,按照第一预设比例对所述第一图像区域的中间区域进行裁剪,并将裁剪得到的所述第一图像区域的中间区域作为新的第一图像区域;以所述第二图像区域的中心点为基准,按照所述第一预设比例对所述第二图像区域的中间区域进行裁剪,并将裁剪得到的所述第二图像区域的中间区域作为新的第二图像区域。Taking the central point of the first image area as a reference, cropping the middle area of the first image area according to a first preset ratio, and using the cut out middle area of the first image area as a new second image area. An image area; using the center point of the second image area as a reference, crop the middle area of the second image area according to the first preset ratio, and use the cropped image area of the second image area The middle area serves as a new second image area.
  5. 根据权利要求4所述的方法,其特征在于,所述根据匹配成功的第一图像区域及第二图像区域,确定所述第一图像和所述第二图像的第一相对位移,包括:The method according to claim 4, wherein the determining the first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area comprises:
    获取匹配成功的第一图像区域及第二图像区域的第二相对位移;Obtaining a second relative displacement of the successfully matched first image area and the second image area;
    将所述第二相对位移作为所述第一图像和所述第二图像的第一相对位移。The second relative displacement is used as a first relative displacement between the first image and the second image.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:
    若所述匹配结果指示匹配失败,则获取第三图像和所述第一图像的第三相对位移;所述第三图像为与所述第一图像成功匹配过的图像;If the matching result indicates a matching failure, acquiring a third relative displacement between a third image and the first image; the third image is an image successfully matched with the first image;
    根据所述第三相对位移,拼接所述第一图像和所述第二图像。Stitching the first image and the second image according to the third relative displacement.
  7. 根据权利要求1-5中任一项所述的方法,其特征在于,所述确定所述第一图像的第一图像区域及所述第二图像的第二图像区域,包括:The method according to any one of claims 1-5, wherein the determining the first image area of the first image and the second image area of the second image comprises:
    分别对所述第一图像和所述第二图像进行边缘检测,得到检测结果;respectively performing edge detection on the first image and the second image to obtain detection results;
    在所述检测结果指示所述第一图像和所述第二图像均存在有效内容时,确定所述第一图像的第一图像区域及所述第二图像的第二图像区域。When the detection result indicates that both the first image and the second image have valid content, determine a first image area of the first image and a second image area of the second image.
  8. 根据权利要求7所述的方法,其特征在于,所述在所述检测结果指示所述第一图像和所述第二图像均存在有效内容时,确定所述第一图像的第一图像区域及所述第二图像的第二图像区域,包括:The method according to claim 7, wherein when the detection result indicates that both the first image and the second image have valid content, determining the first image area and the first image area of the first image The second image area of the second image includes:
    在所述检测结果指示所述第一图像和所述第二图像均存在有效内容时,分别对所述第一图像和所述第二图像进行预设压缩操作;When the detection result indicates that both the first image and the second image have valid content, respectively perform preset compression operations on the first image and the second image;
    确定压缩后的第一图像的第一图像区域及压缩后的第二图像的第二图像区域。A first image area of the compressed first image and a second image area of the compressed second image are determined.
  9. 根据权利要求1-5中任一项所述的方法,其特征在于,所述根据所述 第一相对位移,拼接所述第一图像和所述第二图像,包括:The method according to any one of claims 1-5, wherein the splicing the first image and the second image according to the first relative displacement comprises:
    根据所述第一相对位移,拼接所述第一图像和所述第二图像,得到待处理拼接图像;Stitching the first image and the second image according to the first relative displacement to obtain a stitched image to be processed;
    对所述待处理图像进行平滑处理,得到目标拼接图像。Smoothing is performed on the image to be processed to obtain a target spliced image.
  10. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it includes:
    获取单元,获取第一图像及第二图像,并确定所述第一图像的第一图像区域及所述第二图像的第二图像区域;an acquiring unit, acquiring a first image and a second image, and determining a first image area of the first image and a second image area of the second image;
    匹配单元,用于将所述第一图像区域及第二图像区域进行匹配,得到第一匹配度;a matching unit, configured to match the first image area and the second image area to obtain a first matching degree;
    调整单元,用于若所述第一匹配度小于或等于匹配度阈值,则分别调整所述第一图像区域及所述第二图像区域,得到新的第一图像区域及新的第二图像区域,并继续执行所述将所述第一图像区域及第二图像区域进行匹配,得到第一匹配度的步骤,直至匹配次数大于次数阈值或所述第一匹配度大于所述匹配度阈值,得到匹配结果;其中,调整后的第一图像区域小于调整前的第一图像区域,调整后的第二图像区域小于调整前的第二图像区域,且进行匹配的第一图像区域与第二图像区域的尺寸相同;An adjustment unit, configured to adjust the first image area and the second image area respectively to obtain a new first image area and a new second image area if the first matching degree is less than or equal to a matching degree threshold , and continue to execute the step of matching the first image area and the second image area to obtain the first matching degree until the number of matching times is greater than the number threshold or the first matching degree is greater than the matching degree threshold to obtain Matching result; wherein, the first image area after adjustment is smaller than the first image area before adjustment, the second image area after adjustment is smaller than the second image area before adjustment, and the matched first image area and the second image area are the same size;
    确定单元,用于若所述匹配结果为匹配成功,则根据匹配成功的第一图像区域及第二图像区域,确定所述第一图像和所述第二图像的第一相对位移;A determining unit, configured to determine a first relative displacement between the first image and the second image according to the successfully matched first image area and the second image area if the matching result is successful;
    拼接单元,用于根据所述第一相对位移,拼接所述第一图像和所述第二图像。A stitching unit, configured to stitch the first image and the second image according to the first relative displacement.
  11. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it includes:
    存储有可执行程序代码的存储器;a memory storing executable program code;
    以及所述存储器耦合的处理器;and a processor to which the memory is coupled;
    所述处理器调用所述存储器中存储的所述可执行程序代码,所述可执行程序代码被所述处理器执行时,使得所述处理器实现如权利要求1-9中任一所述的方法。The processor invokes the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method described in any one of claims 1-9. method.
  12. 一种计算机可读存储介质,其上存储有可执行程序代码,其特征在于,所述可执行程序代码被处理器执行时,实现如权利要求1-9中任一所述的方法。A computer-readable storage medium, on which executable program codes are stored, wherein, when the executable program codes are executed by a processor, the method according to any one of claims 1-9 is implemented.
PCT/CN2021/119198 2021-08-31 2021-09-18 Image splicing method, terminal device, and computer-readable storage medium WO2023029113A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111008516.7 2021-08-31
CN202111008516.7A CN115760561A (en) 2021-08-31 2021-08-31 Image stitching method, terminal device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2023029113A1 true WO2023029113A1 (en) 2023-03-09

Family

ID=85331929

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119198 WO2023029113A1 (en) 2021-08-31 2021-09-18 Image splicing method, terminal device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN115760561A (en)
WO (1) WO2023029113A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117173071B (en) * 2023-11-02 2024-01-30 青岛天仁微纳科技有限责任公司 Image stitching method of nano-imprinting mold
CN117253234B (en) * 2023-11-20 2024-03-12 深圳市云希谷科技有限公司 Scanning pen continuous image stitching method, scanning pen continuous image stitching device, medium and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103236048A (en) * 2013-04-18 2013-08-07 上海交通大学 Mutual information and interaction-based medical image splicing method
US20180268521A1 (en) * 2017-03-14 2018-09-20 Shanghai Xiaoyi Technology Co., Ltd. System and method for stitching images
CN110544204A (en) * 2019-07-31 2019-12-06 华南理工大学 image splicing method based on block matching
CN111819601A (en) * 2018-02-26 2020-10-23 英特尔公司 Method and system for point cloud registration for image processing
CN111862239A (en) * 2020-07-28 2020-10-30 阿戈斯智能科技(苏州)有限公司 Area-array camera image overlapping area calibration method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103236048A (en) * 2013-04-18 2013-08-07 上海交通大学 Mutual information and interaction-based medical image splicing method
US20180268521A1 (en) * 2017-03-14 2018-09-20 Shanghai Xiaoyi Technology Co., Ltd. System and method for stitching images
CN111819601A (en) * 2018-02-26 2020-10-23 英特尔公司 Method and system for point cloud registration for image processing
CN110544204A (en) * 2019-07-31 2019-12-06 华南理工大学 image splicing method based on block matching
CN111862239A (en) * 2020-07-28 2020-10-30 阿戈斯智能科技(苏州)有限公司 Area-array camera image overlapping area calibration method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115760561A (en) 2023-03-07

Similar Documents

Publication Publication Date Title
TWI683259B (en) Method and related device of determining camera posture information
WO2023029113A1 (en) Image splicing method, terminal device, and computer-readable storage medium
CN108537845B (en) Pose determination method, pose determination device and storage medium
CN108594997B (en) Gesture skeleton construction method, device, equipment and storage medium
JP6154075B2 (en) Object detection and segmentation method, apparatus, and computer program product
WO2021008456A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN110147805B (en) Image processing method, device, terminal and storage medium
US10438086B2 (en) Image information recognition processing method and device, and computer storage medium
US9270899B1 (en) Segmentation approaches for object recognition
CN107566742B (en) Shooting method, shooting device, storage medium and electronic equipment
CN108776822B (en) Target area detection method, device, terminal and storage medium
CN110198413B (en) Video shooting method, video shooting device and electronic equipment
US20180081257A1 (en) Automatic Zooming Method and Apparatus
CN109727212B (en) Image processing method and mobile terminal
CN109684277B (en) Image display method and terminal
CN112488914A (en) Image splicing method, device, terminal and computer readable storage medium
WO2022017006A1 (en) Video processing method and apparatus, and terminal device and computer-readable storage medium
KR102260805B1 (en) Image searching device and method thereof
CN110991457A (en) Two-dimensional code processing method and device, electronic equipment and storage medium
CN110363729B (en) Image processing method, terminal equipment and computer readable storage medium
CN108230372B (en) Image processing method, terminal and computer readable storage medium
CN107705275B (en) Photographing method and mobile terminal
CN110942064B (en) Image processing method and device and electronic equipment
CN111402271A (en) Image processing method and electronic equipment
CN111629242A (en) Image rendering method, device, system, equipment 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: 21955643

Country of ref document: EP

Kind code of ref document: A1