Body length measuring method based on shot image and related equipment

Through the body length measurement method based on the captured image, OCR technology and proportional calculation, combined with image correction processing, the problems of inefficiency and accuracy error of traditional measurement methods are solved, and fast and accurate measurement of object length is achieved.

CN119509368APending Publication Date: 2025-02-25CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411492793.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The traditional method of measuring object length is inefficient, requires a lot of labor costs, and is prone to accuracy errors.

Method used

Using a body length measurement method based on the captured image, the image side length and body length are extracted by OCR technology, combined with proportion calculation, and the actual body length of the object is calculated, and the measurement is improved through image correction processing. accuracy.

Benefits of technology

It reduces the accuracy error caused by human operation and improves measurement efficiency. Singles can measure quickly and accurately, and is suitable for claims and other scenarios, reducing the risk of inaccurate amount of damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119509368A_ABST
    Figure CN119509368A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of image processing, and relates to a shot image-based body length measurement method and related equipment, and the method comprises the steps: obtaining a to-be-measured image of a to-be-measured object; extracting the image side length a of a reference object in the to-be-measured image and the image body length pw of the to-be-measured object according to the OCR technology; the actual body length x of the to-be-measured object is calculated according to the actual side length w1 of the reference object, the image side length a of the reference object and the image body length pw of the to-be-measured object, and the actual body length x of the to-be-measured object is expressed as x = pw * w1 / a; and outputting the actual body length x to the user terminal. The measurement body length is controlled according to the image acquisition of the object to be measured, the precision error caused by manual operation can be reduced, a single person can work, convenience is provided for measuring the object to be measured by the claim settlement personnel, the claim settlement personnel can quickly and accurately assess the loss, the work claim settlement efficiency is improved, the inaccurate loss assessment amount caused by the measurement body length error is reduced, and the measurement accuracy is improved. And meanwhile, the customer satisfaction degree can also be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a body length measurement method based on captured images and related equipment. Background Art

[0002] Measuring the length of objects is a common practice in people's lives. The existing traditional method is mainly to measure with standard auxiliary tools such as tape measure and ruler.

[0003] However, the applicant has found that the traditional measurement method is not only inefficient but also requires a lot of labor costs. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a body length measurement method based on captured images and related equipment to solve the problem that traditional measurement methods are time-consuming, labor-intensive and inefficient.

[0005] In order to solve the above technical problems, the embodiment of the present application provides a body length measurement method based on captured images, which adopts the following technical solution:

[0006] Acquire a test image of the test object, wherein the test image includes a square reference object disposed vertically below the test object, and an actual length of the square reference object is w1;

[0007] Extracting the image side length a of the reference object and the image body length pw of the object to be measured in the image to be measured according to the OCR technology;

[0008] Calculate the actual body length x of the object to be measured according to the actual side length w1 of the reference object, the image side length a of the reference object and the image body length pw of the object to be measured, wherein the actual body length x of the object to be measured is expressed as: x=pw*w1 / a;

[0009] The actual body length x is output to the user terminal.

[0010] Furthermore, the step of obtaining the image to be tested of the object to be tested specifically includes the following steps:

[0011] Start the camera application and obtain the spatial parameters of the current device based on the gyroscope;

[0012] Adjust the camera of the current device to be parallel to the horizontal plane according to the spatial parameters;

[0013] Controlling the camera to turn horizontally until the square reference object is located at the central vertical line position of the shooting page;

[0014] Adjusting the focal length of the camera until the object to be measured is completely within the shooting page;

[0015] The camera is controlled to perform an image acquisition operation to obtain an image to be measured of the object to be measured.

[0016] After the step of obtaining the image of the object to be tested, the following steps are also included:

[0017] Detecting the tilted edges and texture changes in the image to be tested according to the edge detection algorithm and the texture analysis algorithm to obtain tilt features;

[0018] The tilt features are grouped by a clustering algorithm to determine whether there are multiple object planes with different tilt degrees in the image to be tested;

[0019] If there are no multiple object planes with different inclinations in the image to be measured, the step of extracting the image side length a of the reference object and the image body length pw of the object to be measured in the image to be measured according to the OCR technology is performed;

[0020] If there are multiple object planes with different inclinations in the image to be tested, image correction processing is performed on the image to be tested to obtain a standardized image to be tested.

[0021] Furthermore, if there are multiple object planes with different inclinations in the image to be tested, the step of performing image correction processing on the image to be tested to obtain a standardized image to be tested specifically includes the following steps:

[0022] Estimate the tilt angle and transformation matrix parameters of each plane separately;

[0023] According to the perspective transformation model, the tilt angle and the transformation matrix parameters, a geometric transformation relationship between each plane and the correction plane is established to obtain a perspective transformation matrix for image correction;

[0024] Perform perspective transformation on the image area in the plane according to the perspective transformation matrix corresponding to each object plane, and obtain a corrected object plane perpendicular to the horizontal plane;

[0025] The correction object plane is spliced ​​to obtain the standardized image to be tested.

[0026] Furthermore, the step of performing perspective transformation on the image area in the plane according to the perspective transformation matrix corresponding to each object plane to obtain a corrected object plane perpendicular to the horizontal plane specifically includes the following steps:

[0027] The bilinear interpolation algorithm is used to resample the image to reduce the distortion and blur caused by the transformation.

[0028] Furthermore, the step of performing a splicing operation on the correction object plane to obtain the standardized image to be measured specifically includes the following steps:

[0029] The Poisson fusion algorithm is used to perform smooth transition processing on the stitching area to improve the visual quality of the corrected image.

[0030] In order to solve the above technical problems, the embodiment of the present application further provides a body length measurement device based on captured images, which adopts the following technical solution:

[0031] A test image acquisition module, used for acquiring a test image of the test object, wherein the test image includes a square reference object arranged vertically below the test object, and the actual length of the square reference object is w1;

[0032] An image length acquisition module, used for extracting the image side length a of the reference object and the image body length pw of the object to be measured in the image to be measured according to the OCR technology;

[0033] A body length calculation module, used to calculate the actual body length x of the object to be measured according to the actual side length w1 of the reference object, the image side length a of the reference object and the image body length pw of the object to be measured, wherein the actual body length x of the object to be measured is expressed as: x=pw*w1 / a;

[0034] The result output module is used to output the actual body length x to the user terminal.

[0035] Furthermore, the image acquisition module to be tested includes:

[0036] The parameter acquisition submodule is used to start the camera application and obtain the spatial parameters of the current device based on the gyroscope;

[0037] A camera adjustment submodule, used for adjusting the camera of the current device to be parallel to the horizontal plane according to the spatial parameters;

[0038] A steering control submodule, used for controlling the camera to turn horizontally until the square reference object is located at the central vertical line position of the shooting page;

[0039] A focus adjustment submodule, used for adjusting the focus of the camera until the object to be measured is completely within the shooting page;

[0040] The image acquisition submodule is used to control the camera to perform image acquisition operations to obtain the image to be measured of the object to be measured.

[0041] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0042] The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the body length measurement method based on captured images when executing the computer-readable instructions.

[0043] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0044] The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the body length measurement method based on captured images as described above are implemented.

[0045] The present application provides a body length measurement method based on captured images, including: obtaining an image of an object to be measured, wherein the image to be measured includes a square reference object set vertically below the object to be measured, and the actual length of the square reference object is w1; extracting the image side length a of the reference object in the image to be measured and the image body length pw of the object to be measured according to the OCR technology; calculating the actual body length x of the object to be measured according to the actual side length w1 of the reference object, the image side length a of the reference object and the image body length pw of the object to be measured, wherein the actual body length x of the object to be measured is expressed as:; outputting the actual body length x to a user terminal. Compared with the prior art, the present application controls the measurement of body length according to the acquisition of the image of the object to be measured, which can reduce the accuracy error caused by human operation, and can be operated by a single person, providing convenience for the claims adjuster to measure the object to be measured, facilitating the claims adjuster to quickly and accurately determine the loss, improving the efficiency of the claims settlement operation, reducing the inaccurate amount of the loss determination caused by the error in measuring the body length, and the loss caused to the company, and at the same time, it can also improve customer satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0048] Figure 2 is a flow chart of an implementation method of a body length measurement method based on captured images provided in an embodiment of the present application;

[0049] Figure 3 is a structural schematic diagram of a body length measurement device based on captured images provided in an embodiment of the present application;

[0050] Figure 4It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0052] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0053] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0054] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0055] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0056] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to the laptop computer 1011, tablet computer 1012 or mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.

[0057] The server 103 may be a server that provides various services, such as a background server that provides support for a web page displayed on the terminal device 101 .

[0058] It should be noted that the body length measurement method based on captured images provided in the embodiments of the present application is generally executed by a server / terminal device, and accordingly, the body length measurement device based on captured images is generally arranged in the server / terminal device.

[0059] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0060] Continue to refer Figure 2 , shows a flow chart of an embodiment of a body length measurement method based on captured images according to the present application. The body length measurement method based on captured images comprises: step S201, step S202, step S203 and step S204.

[0061] In step S201 , an image to be measured of the object to be measured is obtained, wherein the image to be measured includes a square reference object disposed vertically below the object to be measured, and the actual length of the square reference object is w1.

[0062] In the embodiment of the present application, first, it is necessary to take or obtain a picture containing the object to be measured, and this picture is called the "image to be measured". In this image to be measured, a square reference object is deliberately set, and this reference object is placed vertically below the object to be measured. The purpose of this is to provide a known actual size (w1, that is, the actual side length of the square reference object) for subsequent proportion calculation.

[0063] In step S202, the image side length a of the reference object and the image body length pw of the object to be measured in the image to be measured are extracted according to the OCR technology.

[0064] In the embodiment of the present application, OCR technology is mainly used to measure the shape and size in the image.

[0065] In the embodiment of the present application, the image side length a of the square reference object and the image body length pw of the object to be measured can be extracted from the image to be measured by OCR technology. Here, "image side length" and "image body length" refer to the side length and length measured on the image.

[0066] In step S203 , the actual body length x of the object to be measured is calculated according to the actual side length w1 of the reference object, the image side length a of the reference object and the image body length pw of the object to be measured, wherein the actual body length x of the object to be measured is expressed as: x=pw*w1 / a.

[0067] In the embodiment of the present application, with the actual side length w1 of the square reference object, the image side length a, and the image body length pw of the object to be measured, the actual body length x of the object to be measured can be obtained by proportional calculation.

[0068] The calculation principle is based on the proportional relationship of similar triangles. Specifically, since the square reference and the object to be measured are on the same picture, their proportional relationship with the picture is the same. Therefore, the actual body length x of the object to be measured can be calculated by the following formula:

[0069] x=(w1 / a)×pw

[0070] In the embodiment of the present application, this formula indicates that the actual length x of the object to be measured is equal to the actual side length w1 of the square reference object divided by its side length a (ie, the scale factor) on the image, and then multiplied by the length pw of the object to be measured on the image.

[0071] In step S204, the actual body length x is output to the user terminal.

[0072] In the embodiment of the present application, OCR technology and proportion calculation principle are utilized to accurately measure the actual length of the object to be measured by taking a picture of the object to be measured containing a reference object of known size.

[0073] In an embodiment of the present application, a body length measurement method based on captured images is provided, including: obtaining an image to be measured of an object to be measured, wherein the image to be measured includes a square reference object set vertically below the object to be measured, and the actual length of the square reference object is w1; extracting the image side length a of the reference object in the image to be measured and the image body length pw of the object to be measured according to the OCR technology; calculating the actual body length x of the object to be measured according to the actual side length w1 of the reference object, the image side length a of the reference object, and the image body length pw of the object to be measured, wherein the actual body length x of the object to be measured is expressed as:; outputting the actual body length x to the user terminal. Compared with the prior art, the present application controls the measurement of body length according to the acquisition of the image of the object to be measured, which can reduce the accuracy error caused by human operation, and a single person can operate, which provides convenience for the claims adjuster to measure the object to be measured, facilitates the claims adjuster to quickly and accurately determine the loss, improves the efficiency of the claims settlement operation, reduces the inaccurate amount of the loss determination caused by the error in measuring the body length, and causes losses to the company, and can also improve customer satisfaction.

[0074] In some optional implementations of the embodiments of the present application, the above step of obtaining the image to be tested of the object to be tested specifically includes the following steps:

[0075] Start the camera application and obtain the spatial parameters of the current device based on the gyroscope;

[0076] Adjust the camera of the current device to be parallel to the horizontal plane according to the spatial parameters;

[0077] Control the camera to turn horizontally until the square reference object is at the central vertical line position of the shooting page;

[0078] Adjust the focus of the camera until the object to be measured is completely within the shooting page;

[0079] The camera is controlled to perform image acquisition operations to obtain the image to be tested of the object to be tested.

[0080] In the embodiment of the present application, when the camera application is started, it reads the data of the gyroscope to obtain the spatial parameters of the current device. These parameters are crucial for the subsequent adjustment of the camera posture.

[0081] In the embodiment of the present application, based on the data provided by the gyroscope, the camera application can calculate the tilt angle of the device relative to the horizontal plane. Then, the application will issue a command to keep the camera parallel to the horizontal plane through the device's motor or software adjustment mechanism, ensuring that the captured image will not be distorted due to the tilt of the device.

[0082] In the embodiment of the present application, there is usually a central vertical line in the shooting page as a composition reference. The camera application controls the camera to rotate horizontally until the square reference object (this reference object may be placed specifically for calibration or measurement) is completely aligned with the central vertical line position of the shooting page. This ensures that the position of the square reference object in the image is accurate, which helps with subsequent image processing and measurement.

[0083] In the embodiment of the present application, the focus is adjusted to ensure that the object to be measured is presented clearly and completely in the image. The camera application will provide a focus adjustment function, and the user or the application itself can adjust the focus by touching the focus adjustment control on the screen or by using the physical buttons of the device. When the focus is adjusted to the optimal state, the object to be measured will be completely within the shooting page, and the image clarity is high.

[0084] In the embodiment of the present application, the camera function of the smart device and the gyroscope sensor technology are combined to ensure that the object to be measured can be clearly and accurately photographed by precisely adjusting the posture and focal length of the camera.

[0085] In some optional implementations of the embodiments of the present application, after the step of acquiring the image to be measured of the object to be measured, the following steps are also included:

[0086] Detecting the tilted edges and texture changes in the image to be tested according to the edge detection algorithm and the texture analysis algorithm to obtain tilt features;

[0087] The tilt features are grouped by a clustering algorithm to determine whether there are multiple object planes with different tilt degrees in the image to be tested;

[0088] If there are no multiple object planes with different inclinations in the image to be measured, the step of extracting the image side length a of the reference object and the image body length pw of the object to be measured in the image to be measured according to the OCR technology is performed;

[0089] If there are multiple object planes with different inclinations in the image to be tested, image correction processing is performed on the image to be tested to obtain a standardized image to be tested.

[0090] In the embodiment of the present application, the edge detection algorithm is mainly used to identify points in the image where the brightness or color changes significantly, which usually correspond to the edges of the object. When processing the image to be tested, the edge detection algorithm can identify the inclined edges in the image, which may indicate the tilt state or shape of the object.

[0091] In the embodiment of the present application, the texture analysis algorithm describes the spatial distribution of pixel gray levels or colors in the image. The texture analysis algorithm can further reveal the characteristics of the object, including the roughness, directionality and repeatability of its surface, by analyzing the texture changes in the image. Here, the texture analysis algorithm is used to detect the texture changes in the image to be tested, which helps to identify the object planes with different texture characteristics.

[0092] In the embodiment of the present application, by applying edge detection algorithm and texture analysis algorithm, the features of tilted edge and texture change can be extracted from the image to be tested, and these features are collectively referred to as tilt features. The tilt features contain important information about the tilt degree of the object in the image.

[0093] In the embodiment of the present application, the clustering algorithm is mainly used to divide the data set into multiple clusters, so that the similarity of data points in the same cluster is high, while the similarity of data points between different clusters is low. The present application groups the tilt features according to the clustering algorithm to determine whether there are multiple object planes with different tilt degrees in the image to be tested. If the tilt features are divided into multiple clusters, it can be inferred that there are multiple object planes with different tilt degrees in the image.

[0094] In the embodiment of the present application, if there are no multiple object planes with different tilt degrees in the image to be tested (i.e., the tilt features are clustered into a single cluster or a small number of similar clusters), the OCR (optical character recognition) technology can be directly performed to extract the image side length a of the reference object and the image body length pw of the object to be tested. This is because in this case, the objects in the image are relatively regular and no additional correction processing is required.

[0095] In the embodiment of the present application, if there are multiple object planes with different tilt degrees in the image to be tested (i.e., the tilt features are clustered into multiple different clusters), the image needs to be corrected. The purpose of the correction process is to adjust the object plane in the image to a unified standard direction, thereby obtaining a standardized image to be tested. This can ensure the accuracy of subsequent OCR technology or other image processing technology.

[0096] In some optional implementations of the embodiments of the present application, if there are multiple object planes with different inclinations in the image to be tested, the step of performing image correction processing on the image to be tested to obtain a standardized image to be tested specifically includes the following steps:

[0097] Estimate the tilt angle and transformation matrix parameters of each plane separately;

[0098] According to the perspective transformation model, the tilt angle and the transformation matrix parameters, a geometric transformation relationship between each plane and the correction plane is established to obtain a perspective transformation matrix for image correction;

[0099] Perform perspective transformation on the image area in the plane according to the perspective transformation matrix corresponding to each object plane, and obtain a corrected object plane perpendicular to the horizontal plane;

[0100] The correction object plane is spliced ​​to obtain the standardized image to be tested.

[0101] In the embodiment of the present application, the tilt angle refers to the tilt degree of the object plane in the image relative to the horizontal plane or the reference plane. The tilt angle of each object plane can be estimated by edge detection, feature point matching, or geometric calculation using known object shapes and sizes.

[0102] In the embodiment of the present application, the transformation matrix is ​​used to describe the geometric transformation from one plane to another plane. In image processing, such transformations usually include rotation, scaling, translation, and perspective transformation. In order to correct the inclined object plane to be perpendicular to the horizontal plane, it is necessary to estimate the transformation matrix parameters from the inclined plane to the correction plane. These parameters can be obtained by solving a series of linear equations or using an optimization algorithm.

[0103] In the present application, a perspective transformation is a projective transformation that maps points in a three-dimensional space onto a two-dimensional plane while maintaining the linearity of straight lines and the parallelism of parallel lines (in the projection plane). In image processing, perspective transformation is often used to simulate a scene observed from a specific perspective.

[0104] In the embodiment of the present application, the geometric transformation relationship between each inclined plane and the correction plane can be established by using the known tilt angle and transformation matrix parameters and the perspective transformation model. This relationship describes how to map points in the inclined plane to corresponding points in the correction plane.

[0105] In the embodiment of the present application, a perspective transformation matrix for image correction can be calculated based on the established geometric transformation relationship. This matrix will be used for subsequent image transformation operations.

[0106] In the embodiment of the present application, once the perspective transformation matrix is ​​determined, it can be applied to the corresponding plane area in the image. By applying the perspective transformation matrix to each pixel in the plane, a corrected image area can be obtained. This process keeps the shape and relative position of the object in the image unchanged, but corrects the tilted object plane to be perpendicular to the horizontal plane.

[0107] In the embodiment of the present application, after correcting all inclined planes in the image, multiple corrected object planes may be obtained, which need to be spliced ​​together to form a complete and standardized image to be measured.

[0108] In the embodiments of the present application, the stitching operation generally involves steps such as image registration, image fusion and image cropping. Registration is the process of ensuring that different planes are correctly aligned when stitching; fusion is the process of seamlessly combining the registered planes; and cropping is the process of removing the redundant parts generated during the stitching process to obtain the final standardized image.

[0109] In the embodiment of the present application, a standardized image to be tested can be obtained by estimating the tilt angle and transformation matrix parameters, establishing a geometric transformation relationship, performing perspective transformation on the image area, and splicing and correcting the object plane. This process has wide application value in the fields of image processing, computer vision, and machine vision.

[0110] In some optional implementations of the embodiments of the present application, the above-mentioned step of performing perspective transformation on the image area in the plane according to the perspective transformation matrix corresponding to each object plane to obtain a corrected object plane perpendicular to the horizontal plane specifically includes the following steps:

[0111] The bilinear interpolation algorithm is used to resample the image to reduce the distortion and blur caused by the transformation.

[0112] In the embodiment of the present application, bilinear interpolation is a method of interpolation in two-dimensional space, which estimates the pixel value of the target position based on the grayscale values ​​of the four nearest pixels. Compared with nearest neighbor interpolation, bilinear interpolation considers more information of neighboring pixels, so the generated image usually has better smoothness and continuity.

[0113] In the embodiment of the present application, in image processing, resampling generally refers to the process of recalculating image pixel values ​​according to a new pixel grid. This generally occurs during image scaling, rotation, transformation, or any other operation that causes a change in pixel position.

[0114] In an embodiment of the present application, a bilinear interpolation algorithm is used to resample the image, which can generate new pixel values ​​during the image transformation process to reduce distortion and blur, thereby improving the quality of the image.

[0115] In some optional implementations of the embodiments of the present application, the step of performing a stitching operation on the correction object plane to obtain the standardized image to be measured specifically includes the following steps:

[0116] The Poisson fusion algorithm is used to perform smooth transition processing on the stitching area to improve the visual quality of the corrected image.

[0117] In an embodiment of the present application, the Poisson fusion algorithm is based on the Poisson equation. It utilizes the gradient information between the source image (i.e., the image area to be spliced) and the target image (i.e., the background or the spliced ​​image area) to generate a transition area by solving a Poisson equation, so that the pixel value of the area can both maintain the detail information in the source image and achieve a smooth transition with the target image.

[0118] In the embodiment of the present application, by utilizing gradient information and solving the Poisson equation, it is possible to generate high-quality fusion results, thereby improving the visual quality of the corrected image.

[0119] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0120] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0121] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0122] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0123] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of a body length measurement device based on captured images, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0124] like Figure 3 As shown, the body length measurement device 200 based on captured images according to an embodiment of the present application includes:

[0125] The image acquisition module 210 is used to acquire the image of the object to be tested, wherein the image to be tested includes a square reference object arranged vertically below the object to be tested, and the actual length of the square reference object is w1;

[0126] An image length acquisition module 220 is used to extract the image side length a of the reference object and the image body length pw of the object to be measured in the image to be measured according to the OCR technology;

[0127] The body length calculation module 230 is used to calculate the actual body length x of the object to be measured according to the actual side length w1 of the reference object, the image side length a of the reference object and the image body length pw of the object to be measured, wherein the actual body length x of the object to be measured is expressed as: x=pw*w1 / a;

[0128] The result output module 240 is used to output the actual body length x to the user terminal.

[0129] In an embodiment of the present application, a body length measurement device 200 based on captured images is provided, including: a test image acquisition module 210, used to acquire a test image of an object to be measured, wherein the test image includes a square reference object arranged vertically below the object to be measured, and the actual length of the square reference object is w1; an image length acquisition module 220, used to extract the image side length a of the reference object in the test image and the image body length pw of the object to be measured according to the OCR technology; a body length calculation module 230, used to calculate the actual body length x of the object to be measured according to the actual side length w1 of the reference object, the image side length a of the reference object and the image body length pw of the object to be measured, wherein the actual body length x of the object to be measured is expressed as: x=pw*w1 / a; a result output module 240, used to output the actual body length x to a user terminal. Compared with the prior art, the present application controls the measurement of body length based on the image collection of the object to be measured, which can reduce the accuracy error caused by human operation, and can be operated by a single person, providing convenience for claims adjusters to measure the objects to be measured, facilitating claims adjusters to quickly and accurately determine the damage, improving the efficiency of claims operations, reducing the losses caused to the company by inaccurate damage amounts due to errors in measuring body length, and at the same time improving customer satisfaction.

[0130] In some optional implementations of the embodiments of the present application, the above-mentioned image acquisition module to be tested includes:

[0131] The parameter acquisition submodule is used to start the camera application and obtain the spatial parameters of the current device based on the gyroscope;

[0132] The camera adjustment submodule is used to adjust the camera of the current device to be parallel to the horizontal plane according to the spatial parameters;

[0133] A steering control submodule, used to control the horizontal steering of the camera until the square reference object is at the central vertical line position of the shooting page;

[0134] A focus adjustment submodule is used to adjust the focus of the camera until the object to be measured is completely within the shooting page;

[0135] The image acquisition submodule is used to control the camera to perform image acquisition operations to obtain the image to be measured of the object to be measured.

[0136] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of a computer device according to an embodiment of the present application.

[0137] The computer device 300 includes a memory 310, a processor 320, and a network interface 330 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 300 having components 310-330, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0138] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0139] The memory 310 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 310 can be an internal storage unit of the computer device 300, such as a hard disk or memory of the computer device 300. In other embodiments, the memory 310 can also be an external storage device of the computer device 300, such as a plug-in hard disk equipped on the computer device 300, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Of course, the memory 310 can also include both the internal storage unit of the computer device 300 and its external storage device. In the embodiment of the present application, the memory 310 is generally used to store an operating system and various application software installed on the computer device 300, such as computer-readable instructions for a body length measurement method based on captured images, etc. In addition, the memory 310 can also be used to temporarily store various data that have been output or are to be output.

[0140] The processor 320 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 320 is generally used to control the overall operation of the computer device 300. In the embodiment of the present application, the processor 320 is used to run the computer-readable instructions or process data stored in the memory 310, such as computer-readable instructions for running the body length measurement method based on captured images.

[0141] The network interface 330 may include a wireless network interface or a wired network interface. The network interface 330 is generally used to establish a communication connection between the computer device 300 and other electronic devices.

[0142] The computer equipment provided in this application can control the measurement of body length based on the image collection of the object to be measured, which can reduce the accuracy error caused by human operation, and can be operated by a single person, providing convenience for claims adjusters to measure the objects to be measured, facilitating claims adjusters to quickly and accurately determine the damage, improving the efficiency of claims operations, reducing the losses caused to the company by inaccurate damage amounts due to errors in measuring body length, and at the same time improving customer satisfaction.

[0143] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the body length measurement method based on captured images as described above.

[0144] The computer-readable storage medium provided in the present application can reduce the accuracy error caused by human operation by collecting and controlling the measurement of the body length according to the image of the object to be measured, and can be operated by a single person, providing convenience for the claims adjuster to measure the object to be measured, facilitating the claims adjuster to quickly and accurately determine the damage, improving the efficiency of claims operations, reducing the losses caused to the company by inaccurate damage amounts due to errors in measuring the body length, and at the same time improving customer satisfaction.

[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0146] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A body length measurement method based on captured images, characterized in that: The steps include: Acquire a test image of the test object, wherein the test image includes a square reference object disposed vertically below the test object, and the actual length of the square reference object is w1; Extracting the image side length a of the reference object and the image body length pw of the object to be measured in the image to be measured according to the OCR technology; Calculate the actual body length x of the object to be measured according to the actual side length w1 of the reference object, the image side length a of the reference object and the image body length pw of the object to be measured, wherein the actual body length x of the object to be measured is expressed as: x=pw*w1 / a; The actual body length x is output to the user terminal.

2. The body length measurement method based on captured images according to claim 1, characterized in that: The step of obtaining the image of the object to be tested specifically includes the following steps: Start the camera application and obtain the spatial parameters of the current device based on the gyroscope; Adjust the camera of the current device to be parallel to the horizontal plane according to the spatial parameters; Controlling the camera to turn horizontally until the square reference object is located at the central vertical line position of the shooting page; Adjusting the focal length of the camera until the object to be measured is completely within the shooting page; The camera is controlled to perform an image acquisition operation to obtain an image to be measured of the object to be measured.

3. The body length measurement method based on captured images according to claim 1, characterized in that: After the step of obtaining the image of the object to be tested, the following steps are also included: Detecting the tilted edges and texture changes in the image to be tested according to the edge detection algorithm and the texture analysis algorithm to obtain tilt features; The tilt features are grouped by a clustering algorithm to determine whether there are multiple object planes with different tilt degrees in the image to be tested; If there are no multiple object planes with different inclinations in the image to be measured, the step of extracting the image side length a of the reference object and the image body length pw of the object to be measured in the image to be measured according to the OCR technology is performed; If there are multiple object planes with different inclinations in the image to be tested, image correction processing is performed on the image to be tested to obtain a standardized image to be tested.

4. The body length measurement method based on captured images according to claim 3, characterized in that: If there are multiple object planes with different inclinations in the image to be tested, the step of performing image correction processing on the image to be tested to obtain a standardized image to be tested specifically includes the following steps: Estimate the tilt angle and transformation matrix parameters of each plane separately; According to the perspective transformation model, the tilt angle and the transformation matrix parameters, a geometric transformation relationship between each plane and the correction plane is established to obtain a perspective transformation matrix for image correction; Perform perspective transformation on the image area in the plane according to the perspective transformation matrix corresponding to each object plane, and obtain a corrected object plane perpendicular to the horizontal plane; The correction object plane is spliced ​​to obtain the standardized image to be tested.

5. The body length measurement method based on captured images according to claim 4, characterized in that: The step of performing perspective transformation on the image area in the plane according to the perspective transformation matrix corresponding to each object plane to obtain a corrected object plane perpendicular to the horizontal plane specifically includes the following steps: The bilinear interpolation algorithm is used to resample the image to reduce the distortion and blur caused by the transformation.

6. The body length measurement method based on captured images according to claim 4, characterized in that: The step of performing a splicing operation on the correction object plane to obtain the standardized image to be measured specifically includes the following steps: The Poisson fusion algorithm is used to perform smooth transition processing on the stitching area to improve the visual quality of the corrected image.

7. A body length measurement device based on captured images, characterized in that: include: A test image acquisition module, used for acquiring a test image of the test object, wherein the test image includes a square reference object arranged vertically below the test object, and the actual length of the square reference object is w1; An image length acquisition module, used for extracting the image side length a of the reference object and the image body length pw of the object to be measured in the image to be measured according to the OCR technology; A body length calculation module, used to calculate the actual body length x of the object to be measured according to the actual side length w1 of the reference object, the image side length a of the reference object and the image body length pw of the object to be measured, wherein the actual body length x of the object to be measured is expressed as: x=pw*w1 / a; The result output module is used to output the actual body length x to the user terminal.

8. The body length measuring device based on captured images according to claim 7, characterized in that: The image acquisition module to be tested comprises: The parameter acquisition submodule is used to start the camera application and obtain the spatial parameters of the current device based on the gyroscope; A camera adjustment submodule, used for adjusting the camera of the current device to be parallel to the horizontal plane according to the spatial parameters; A steering control submodule, used for controlling the camera to turn horizontally until the square reference object is located at the central vertical line position of the shooting page; A focus adjustment submodule, used for adjusting the focus of the camera until the object to be measured is completely within the shooting page; The image acquisition submodule is used to control the camera to perform image acquisition operations to obtain the image to be measured of the object to be measured.

9. A computer device comprising a memory and a processor, characterized in that: The memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the body length measurement method based on captured images as claimed in any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the body length measurement method based on captured images as claimed in any one of claims 1 to 6 are implemented.