CN110381259B - Mural image acquisition method and device, computer equipment and storage medium - Google Patents

Mural image acquisition method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110381259B
CN110381259B CN201910745620.0A CN201910745620A CN110381259B CN 110381259 B CN110381259 B CN 110381259B CN 201910745620 A CN201910745620 A CN 201910745620A CN 110381259 B CN110381259 B CN 110381259B
Authority
CN
China
Prior art keywords
image
mural
parameters
effect
acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910745620.0A
Other languages
Chinese (zh)
Other versions
CN110381259A (en
Inventor
熊友谊
王阳
熊四明
熊爱武
刘鹏
胡小中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Okay Information Technology Co ltd
Original Assignee
Guangzhou Okay Information Technology Co ltd
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 Guangzhou Okay Information Technology Co ltd filed Critical Guangzhou Okay Information Technology Co ltd
Priority to CN201910745620.0A priority Critical patent/CN110381259B/en
Publication of CN110381259A publication Critical patent/CN110381259A/en
Application granted granted Critical
Publication of CN110381259B publication Critical patent/CN110381259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

The embodiment of the application discloses a mural image acquisition method and device, computer equipment and a storage medium. The technical scheme provided by the embodiment of the application screens the mural image shot at the same collection position according to the image quality parameters, calculates the effect factor of the screened mural image, obtains the image effect parameters of the mural image according to the effect factor, determines the mural image at the position if the image effect parameters meet the requirements, otherwise optimizes the shooting parameters on the premise of ensuring that the image quality parameters meet the requirements, re-collects the mural image according to the optimized shooting parameters until the image effect parameters of the collected mural image meet the requirements, then performs mural image collection at the next position until the mural image collection work is completed, adjusts different shooting parameters according to different environments of different collection positions, so as to achieve the effect image of unified standard, and ensures the quality of the mural image at each collection position.

Description

Mural image acquisition method and device, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a full-automatic mural image acquisition method and device, computer equipment and a storage medium.
Background
Ancient Chinese frescoes carry rich historical information, have great aesthetic, artistic and scientific values, but are seriously damaged at present. The phenomena of nail lifting, shortness and alkalinity, hollowing and the like of the mural are caused by natural environmental factors. Meanwhile, the air pollution is serious, and the number of tourists is increased, which brings great threat to the mural. Therefore, the protection and repair of the mural are not slow.
In order to facilitate repair research of murals and real and long-term transmission of information carried by cultural relics, mural images need to be subjected to image data acquisition, storage and transmission. Because the area of the mural is large, a plurality of images of the mural need to be acquired. However, when the mural images are photographed at different positions, the image effect of the mural images is easily affected by the field environment.
Disclosure of Invention
The embodiment of the application provides a mural image acquisition method, a mural image acquisition device, computer equipment and a storage medium, so that whether mural images meet requirements or not is determined according to image quality parameters of the acquired mural images at different positions, and the mural image acquisition quality is improved.
In a first aspect, an embodiment of the present application provides a mural image acquisition method, including:
calculating image quality parameters of a plurality of acquired mural images, and screening the mural images according to the image quality parameters;
calculating the effect factor of the screened mural image, and calculating the image effect parameter of the mural image according to the quality parameter and the effect factor;
if the image effect parameters do not meet the requirements, optimizing shooting parameters according to the image effect parameters, and re-collecting mural images according to the optimized shooting parameters until the image effect parameters meet the requirements;
and if the image effect parameters meet the requirements, acquiring the image of the next acquisition position according to a preset acquisition track.
Further, before calculating the image quality parameters of the collected mural images, the method further includes:
and acquiring a plurality of mural images based on the same acquisition distance, wherein the acquisition distance is the distance between an image acquisition device for acquiring the mural images and the mural.
Further, the screening mural images according to the image quality parameters includes:
comparing the image quality parameter corresponding to each mural image with a preset quality parameter;
judging whether the image quality parameters of the corresponding mural images meet the requirements or not according to the comparison result;
and selecting mural images meeting the requirements.
Further, for the same acquisition position, when the image effect parameter corresponding to the first acquisition time meets the requirement, the environmental parameter, the shooting parameter and the image effect parameter corresponding to the current position form an association relation, and when the environmental parameter corresponding to the second acquisition time changes, the shooting parameter is adjusted according to the association relation so as to meet the requirement of the effect parameter.
Further, the shooting parameters comprise brightness and contrast;
the optimization of the shooting parameters according to the image effect parameters specifically comprises the following steps:
adjusting the brightness and the contrast, wherein the brightness and the contrast satisfy the following formulas in the adjusting process:
IQS=[x-127.5*(1-B)]*tan((45+44*c)/180*pi)+127.5*(1+B);
wherein, the IQS is an image quality parameter and is kept unchanged in the adjusting process; x is a pixel value; k-tan ((45+44 ×/180 ×) pi), arctan (k) takes the value [1, 89 ]; c is contrast, and c takes the value of [ -1, 1 ]; b is brightness, B takes the value of [ -1, 1 ].
Further, the calculation formula of the image quality parameter is as follows:
Figure BDA0002165461210000021
wherein a belongs to 1,2, 3.. r; s, r and s are the height and width of the mural imagery respectively, I (a, b) is the image intensity of the mural imagery at the (a, b) pixel, η (a, b) and δ (a, b) are the local mean and local variance of the mural imagery respectively.
Further, the effect factors include an image average value, an image standard deviation, an image average gradient and an image entropy, wherein:
average value of image
Figure BDA0002165461210000022
Standard deviation of image
Figure BDA0002165461210000023
Mean gradient of image
Figure BDA0002165461210000024
Entropy of images
Figure BDA0002165461210000031
Wherein M and N are height and width of the mural image, Δ xF (a, b) and Δ yF (a, b) respectively represent first order differences of the pixel points (a, b) in x and y directions, and the gray distribution of the mural image is p ═ { p1, p2, …, pi, …, pn }, where p (i) represents the ratio of the number of pixels having a gray value i to the total number of pixels of the image, N is the total number of gray levels, p (L) is the probability of the gray value L appearing in the image, and L is the gray level of the image.
Further, the calculation formula of the image effect parameter is as follows:
Figure BDA0002165461210000032
in a second aspect, an embodiment of the present application provides a mural image capturing device, including:
the screening module is used for calculating image quality parameters of the collected mural images and screening the mural images according to the image quality parameters;
the effect parameter acquisition module is used for calculating the effect factors of the screened mural images and calculating the image effect parameters of the mural images according to the quality parameters and the effect factors;
the parameter optimization module is used for optimizing shooting parameters according to the image effect parameters, re-collecting mural images according to the optimized shooting parameters, and re-verifying the image effect parameters until the image effect parameters meet requirements;
and the acquisition propulsion module is used for acquiring images at the next position according to a preset acquisition track.
In a third aspect, an embodiment of the present application provides a computer, including: a display screen, a memory, and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the mural image acquisition method according to the first aspect.
The embodiment of the application screens the mural images shot at the same acquisition position according to the image quality parameters, and calculating the effect factor of the screened mural image, obtaining the image effect parameter of the mural image according to the effect factor, if the image effect parameter meets the requirement, determining the mural image at the position, otherwise optimizing the shooting parameters on the premise of ensuring the image quality parameters to meet the requirements, thereby adjusting the effect factors influencing the image effect parameters, re-collecting the mural images according to the optimized shooting parameters until the image effect parameters of the collected mural images meet the requirements, then collecting the mural images at the next position until the mural image collection work is completed, adjusting different shooting parameters according to different environments at different collection positions, the effect image of unified standard is reached, and the quality of the mural image of each acquisition position is guaranteed.
Drawings
Fig. 1 is a flowchart of a mural image acquisition method according to an embodiment of the present application;
fig. 2 is a flowchart of another mural image acquisition method according to an embodiment of the present application;
fig. 3 is a flowchart of another mural image acquisition method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a bow-shaped acquisition trajectory provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of an image capturing fixing frame according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a mural image acquisition device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a mural image capturing method according to an embodiment of the present application, where the mural image capturing method according to the embodiment may be implemented by a mural image capturing device, and the mural image capturing device may be implemented by hardware and/or software and integrated in a computer device.
The following description will be given taking a mural image acquisition method performed by the mural image acquisition device as an example. Referring to fig. 1, the mural image acquisition method specifically includes:
s101: and calculating image quality parameters of the collected mural images, and screening the mural images according to the image quality parameters.
Specifically, the murals needing image acquisition are divided into blocks, each block of each mural corresponds to one position, and a part or all of the positions are determined as acquisition positions according to a preset acquisition track, and the acquisition positions are understood as positions where the image acquisition of the murals is needed by a camera device (such as a camera) or a range where the images are needed. The mural images collected at the adjacent collecting positions have overlapping parts, and the mural images collected at all the collecting positions can cover the whole area of the mural needing image collection. It can be understood that the pictures of the whole mural, which need to be subjected to image acquisition, can be obtained after the mural images sequentially acquired at the corresponding acquisition positions according to the acquisition tracks are fused.
Furthermore, when mural images are collected, a plurality of mural images are shot on the mural at the same collecting position, and the image quality parameter of each mural image is calculated. And after the image quality parameters of the plurality of mural images at the acquisition position are obtained, screening the plurality of mural images according to the requirements on the image quality parameters. A plurality of mural images meeting the requirements can be selected according to the requirements on the image quality parameters, the subsequent image effect parameters are verified respectively, and one mural image with the most suitable image quality parameter can be selected for verifying the subsequent image effect parameters. The embodiment of the application specifically screens one mural image with the image quality parameter meeting the requirement (for example, a mural image with the optimal image quality parameter).
Illustratively, the formula for calculating the image quality parameter of the mural image is as follows:
Figure BDA0002165461210000051
where I (a, b) is the image intensity of the mural image at the (a, b) pixel, and η (a, b) and δ (a, b) are the local mean and local variance of the mural image, respectively, and are calculated as:
η=W*I;
Figure BDA0002165461210000052
wherein W is a Gaussian blur window function; a is belonged to 1,2, 3. b e.1, 2,3,.. s (r and s are the height and width, respectively, of the mural image); the local mean η is the gaussian blur of the original image and the local variance δ is the gaussian blur of the square of the original image and the local mean difference.
Figure BDA0002165461210000053
The luminance coefficient of the mural image represents the IQS coefficient when a and b respectively take the height and width r and s of the mural image, and represents the image quality of the whole mural image. The smaller the value of the image quality parameter is, the better the subjective picture quality of the representative mural image is.
S102: and calculating the effect factor of the screened mural image, and calculating the image effect parameter of the mural image according to the quality parameter and the effect factor.
Specifically, after screening out mural images with image quality parameters meeting requirements, calculating effect factors of the mural images, wherein the effect factors include image average values, image standard deviations, image average gradients and image entropies of the mural images.
The image average value is the average value of image pixels, and reflects the average brightness of an image (namely, a mural image), the larger the average value is, the better the image quality effect is, the image to be evaluated is set as I, the height and the width of the image are respectively M and N, and the calculation formula of the image average value is as follows:
Figure BDA0002165461210000061
the image standard deviation refers to the dispersion degree of the gray value of the image pixel relative to the mean value, if the standard deviation is larger, the dispersion of the gray levels in the image is shown, and the image quality effect is better, and the calculation formula of the image standard deviation is as follows:
Figure BDA0002165461210000062
the image average gradient can reflect detail contrast and texture transformation in the image, and reflects the definition degree of the image to a certain extent, and the calculation formula of the image average gradient is as follows:
Figure BDA0002165461210000063
where Δ xF (a, b) and Δ yF (a, b) represent the first order difference of the pixel (a, b) in the x and y directions, respectively.
The image entropy refers to the average information content of an image, the larger the information entropy in the image is, the more information the image contains, and it is assumed that the gray values of the pixels in the image are independent from each other, the gray distribution of the mural image is p { p1, p2, …, pi, …, pn }, where p (i) represents the ratio of the number of pixels whose gray value is i to the total number of pixels in the image, n is the total number of gray levels, p (L) is the probability that the gray value L appears in the image, L is the gray level of the image, and for an image with 256 gray levels, L is 255, and the calculation formula of the image entropy is:
Figure BDA0002165461210000064
and after the effect factor of the mural image is obtained through calculation, calculating the image effect parameter of the mural image according to the quality parameter and the effect factor. Specifically, the calculation formula of the Image Effect Parameter (Image Effect Parameter) is as follows:
Figure BDA0002165461210000065
s103: if the image effect parameters do not meet the requirements, the shooting parameters are optimized according to the image effect parameters, and mural images are collected again according to the optimized shooting parameters until the image effect parameters meet the requirements.
S104: and if the image effect parameters meet the requirements, acquiring the image of the next acquisition position according to a preset acquisition track.
Specifically, after the image effect parameter of the mural image at the acquisition position is calculated, whether the image effect parameter meets the requirement is judged. Illustratively, the requirements for image effect parameters are set to meet the effect accuracy of IEP ≈ 10 or IEP ≈ 50, depending on the acquisition environment and the actual accuracy requirements.
If the image effect parameters do not meet the requirements, the shooting parameters are optimized according to the image effect parameters (information such as adjusting the brightness of a light supplementing device and adjusting the shooting distance of a camera can also be optimized according to the current environment parameters), and therefore the effect factors corresponding to the subsequently shot mural images are adjusted. It is understood that the initial photographing parameters are automatically set by the camera according to the current environment. After the optimization of the shooting parameters is completed, the mural image at the current acquisition position is acquired again according to the optimized shooting parameters, the effect factors are recalculated, and the image effect parameters are judged until the image effect parameters meet the requirements.
And if the image effect parameters meet the requirements, determining the mural image with a proper current acquisition position and storing the mural image, and then acquiring the image of the next acquisition position according to a preset acquisition track until the image acquisition work of the current mural is completed.
The mural images shot at the same acquisition position are screened according to the image quality parameters, the effect factors of the screened mural images are calculated, the image effect parameters of the mural images are obtained according to the effect factors, if the image effect parameters meet the requirements, determining the mural image at the position, otherwise optimizing the shooting parameters on the premise of ensuring the image quality parameters to meet the requirements, thereby adjusting the effect factors influencing the image effect parameters, re-collecting the mural images according to the optimized shooting parameters until the image effect parameters of the collected mural images meet the requirements, then collecting the mural images at the next position until the mural image collection work is completed, adjusting different shooting parameters according to different environments at different collection positions, the effect image of unified standard is reached, and the quality of the mural image of each acquisition position is guaranteed.
In one possible embodiment, when the image effect parameter corresponding to the first acquisition time meets the requirement, an association relationship is formed among the environment parameter corresponding to the current position, the shooting parameter and the image effect parameter, and when the environment parameter corresponding to the second acquisition time changes, the shooting parameter is adjusted according to the association relationship to meet the requirement of the effect parameter. The first acquisition time and the second acquisition time are two different acquisition times of the same acquisition position, the situation that mural images need to be acquired for many times can occur in the acquisition process, and the stability of image effect parameters is ensured through the incidence relation. The key point of forming the association is that the change of the environmental parameter, the shooting parameter and the image effect parameter is mutual, after the image effect parameter is determined, if the environmental parameter is not changed for a while, the image is collected by changing the shooting parameter, and if the environmental parameter is changed, the shooting parameter is adjusted to balance so as to ensure the invariance of the image effect parameter.
In one possible embodiment, an acquisition trajectory graph is synchronously formed in the mural image acquisition process, and information such as an acquisition position, acquisition time, environmental parameters during acquisition, shooting parameters, formed image effect parameters and the like is recorded. And forming association according to the sizes of the murals, the acquisition rules and the acquisition track graphs, storing the association in a database to form automatic rules, and automatically adopting an optimal acquisition scheme when the murals with the same size are encountered.
On the basis of the above embodiments, fig. 2 is a flowchart of another mural image acquisition method according to an embodiment of the present application. The mural image acquisition method is an embodiment of the mural image acquisition method. Referring to fig. 2, the mural image acquisition method includes:
s201: and acquiring a plurality of mural images based on the same acquisition distance, wherein the acquisition distance is the distance between an image acquisition device for acquiring the mural images and the mural.
Exemplarily, when a plurality of mural images are collected at the same collection position, the distance between the camera device and the mural is measured through the distance measuring device, so that the environmental parameters are kept consistent when the mural images are collected at the same position, and the collection distance is kept stable through the distance measuring device when the images are collected at different collection positions of the mural, so that the image collection quality is improved. Distance measuring device can be tape measure, ruler and laser range finder etc. and the preferred laser range finder that is of this embodiment distance measuring device, and laser range finder can carry on camera device to set up towards same direction with camera device, improve the accuracy of gathering apart from measuring.
S202: and calculating image quality parameters of the collected mural images.
S203: and comparing the image quality parameter corresponding to each mural image with a preset quality parameter.
For example, the preset quality parameter may be set to a value according to the currently acquired environment parameter and the image precision requirement (e.g., set the preset quality parameter to 1). After the image quality parameters of a plurality of mural images at the same acquisition position are calculated, the image quality parameters corresponding to each mural image are compared with preset quality parameters, and a quality parameter comparison result is generated.
S204: and judging whether the image quality parameters of the corresponding mural images meet the requirements or not according to the comparison result.
S205: and selecting mural images meeting the requirements.
Illustratively, after the quality parameter comparison result is obtained, whether the mural image meets the requirements of the image quality parameters or not is judged according to the quality parameter comparison result. Specifically, if the image quality parameter is greater than the preset quality parameter, screening out the corresponding mural image; if the image quality parameter is less than or equal to the preset quality parameter or within the deviation allowable range of the preset quality parameter, the corresponding mural image is reserved. And if a plurality of mural images meet the requirement of the image quality parameters, selecting one mural image to calculate the subsequent image effect parameters. Such as selecting a mural image with the smallest image quality parameter or the mural image with the earliest determined image quality parameter meeting the requirement.
In other embodiments, after the quality parameter comparison result is obtained, a mural image with the minimum image quality parameter or close to the preset quality parameter can be selected, whether the mural image meets the requirement of the image quality parameter is verified, if the mural image meets the requirement, the mural image is selected to calculate the subsequent image effect parameter, otherwise, the shooting parameter and the environmental parameter are optimized, the mural image is collected at the current collection position again, and the screening of the mural image is carried out again.
S206: and calculating the effect factor of the screened mural image, and calculating the image effect parameter of the mural image according to the quality parameter and the effect factor.
S207: if the image effect parameters do not meet the requirements, the shooting parameters are optimized according to the image effect parameters, and mural images are collected again according to the optimized shooting parameters until the image effect parameters meet the requirements.
S208: and if the image effect parameters meet the requirements, acquiring the image of the next acquisition position according to a preset acquisition track.
For example, the acquisition trajectory of the mural image may be a bow-shaped, wavy, diagonal, circular, block-shaped, etc., and the shape thereof corresponds to the advancing path of the acquisition position. The following description will be given taking a rectangular acquisition trajectory as an example. As shown in fig. 4, the mural is divided into 28 positions 1-28, and the shooting positions 1, 4, 7, 8, 11, 14, 15, 18, 21, 22, 25 and 28 are respectively the first acquisition position, the second acquisition position and the third acquisition position. Images of a first location are acquired at a first time, images of a second location are acquired at a second time, and so on, respectively. Each acquisition position corresponds to different time, the external environment parameters are kept unchanged as much as possible within the corresponding time, if the environment parameters change, the shooting parameters are adjusted to make up for the change, and the shooting device is ensured to operate in the same shooting environment, for example, the shooting distance, the illumination intensity and the received emission brightness of the mural at each angle are ensured to be the same. The method comprises the steps of obtaining a mural image at the No. 1 shooting position, defining the collection space coordinates of a first collection position, and obtaining shooting parameters (parameter setting set by shooting devices such as a camera and the like during shooting) and environment parameters (distance, illumination intensity, brightness and the like during shooting under the camera parameter setting). And when the calculated effect parameters meet the requirements, determining the shooting parameters and the mural images collected at the first position, and collecting the next shooting position.
The mural images are collected based on the same collection distance, the images of the collected mural images are kept consistent, image quality parameters corresponding to each mural image are compared with preset quality parameters, the mural images with the image quality parameters meeting the requirements are screened and determined, effect factors and image effect parameters of the screened mural images are calculated, if the image effect parameters meet the requirements, the mural images and shooting parameters of the position are determined, otherwise, the mural images are collected again by the optimized shooting parameters until the image effect parameters of the collected mural images meet the requirements, and the quality of the mural images of each collection position is guaranteed.
On the basis of the above embodiments, fig. 3 is a flowchart of another mural image acquisition method according to an embodiment of the present application. The mural image acquisition method is an embodiment of the mural image acquisition method. Referring to fig. 3, the mural image acquisition method includes:
s301: and calculating image quality parameters of the collected mural images, and screening the mural images according to the image quality parameters.
S302: and calculating the effect factor of the screened mural image, and calculating the image effect parameter of the mural image according to the quality parameter and the effect factor.
S303: if the image effect parameters do not meet the requirements, adjusting the brightness and contrast of the mural image shooting according to the image effect parameters to optimize the shooting parameters, and re-collecting the mural image according to the optimized shooting parameters until the image effect parameters meet the requirements.
Illustratively, in this embodiment, the shooting parameters specifically include brightness and contrast, where the adjusting the brightness and contrast of the mural image shooting according to the image effect parameters to optimize the shooting parameters specifically includes:
adjusting the brightness and contrast of the mural image according to the image effect parameters, wherein the brightness and contrast satisfy the following formula in the adjusting process:
IQS=[x-127.5*(1-B)]*tan((45+44*c)/180*pi)+127.5*(1+B);
wherein, the IQS is an image quality parameter and is kept unchanged in the adjusting process; x is a pixel value; k-tan ((45+44 ×/180 ×) pi), arctan (k) takes the value [1, 89 ]; c is contrast, and c takes the value of [ -1, 1 ]; b is brightness, B takes the value of [ -1, 1 ]. The image quality parameter IQS is related to image brightness, image pixel value and contrast, and IQS is equivalent to an equilibrium value for adjusting image brightness and contrast and equivalent to gray scale linear transformation of an image.
As can be seen from the above formula, when B is 0, IQS is (x-127.5) × k +127.5, and then only contrast adjustment can be achieved by setting the value of c; when c is 0, k is 1: if x + 255B, then adjusting only the brightness can be achieved by setting the value of B. In the process of optimizing shooting parameters, brightness and contrast are adjusted according to the formula, the IQS value is kept unchanged, and the image effect parameter IEP obtained by subsequent shooting meets the requirement.
S304: and if the image effect parameters meet the requirements, acquiring the image of the next acquisition position according to a preset acquisition track.
For example, the camera device for capturing the mural image may be fixed and moved by an image capturing fixing frame disposed in front of the mural. As shown in fig. 5, the image capturing fixing frame comprises a supporting frame 1 and a moving frame 2 which are perpendicular to each other, wherein the supporting frame 1 is columnar and vertical, and the number of the supporting frames 1 is two. Remove frame 2 and be the column setting that the level was placed, and set up between two support frames 1, be provided with vertical guide rail (not shown in the figure) along vertical direction on support frame 1, each sliding connection in the both ends of removing frame 2 is on the vertical guide rail of one of them support frame 1, make to remove frame 2 and can slide from top to bottom for support frame 1, and spacing on vertical direction to the removal of removing frame 2, reduce the condition that removes frame 2 and support frame 1 break away from, thereby increase the stability of image acquisition mount.
Further, a vertical driving device 4 is provided on the support frame 1 in order to drive the vertical sliding of the moving frame 2 on the support frame 1. The number of the vertical driving devices 4 in this embodiment is two, and each vertical driving device corresponds to one support frame 1, and the vertical movement of the movable frame 2 is controlled at two ends of the movable frame 2. The vertical driving device 4 specifically comprises a lifting motor and a connecting rope 6, wherein the lifting motor 5 is transversely arranged and fixedly mounted at the top of the support frame 1, and the position of the lifting motor is higher than that of the moving frame 2. One end of the connecting rope 6 is wound on the rotating shaft of the lifting motor 5, and the other end of the connecting rope 6 is fixedly connected to the movable frame 2.
Meanwhile, a mounting base 3 that can horizontally move along the length direction of the moving frame 2 is provided on the moving frame 2, and a lateral driving device (not shown in the figure) for driving the mounting base 3 to horizontally move on the moving frame 2 is connected to the mounting base. The transverse driving device comprises a power motor, a power wheel and a linkage wheel (not shown in the figure), wherein the power motor is fixedly connected to the mounting base 3, the linkage wheel is connected to the moving frame in a transverse rolling mode, the linkage wheel is rotatably connected to the mounting base 3, and the power wheel is coaxially and fixedly connected to an output shaft of the power motor and is in transmission connection with the linkage wheel.
The camera device is mounted on the mounting base 3 and is arranged, in use, towards the mural. The camera device, the vertical driving device and the horizontal driving device are also in communication connection with a control terminal 7, and the control terminal 7 is in communication with and controls the camera device, the vertical driving device and the horizontal driving device respectively.
Control terminal 7 has saved the collection orbit of current image acquisition work to the current position coordinate of real-time recording camera device, when needs move camera device to next collection position in order to continue image acquisition work according to gathering the orbit, control vertical drive arrangement and horizontal drive arrangement through control terminal 7, thereby camera device on the control mount pad removes to next collection position, and control terminal 7 can control camera device's shooting parameter and operating condition. And when the image effect parameters of the mural images collected at the corresponding collecting positions meet the requirements, the control terminal 7 can automatically reach the next collecting position according to the collecting track to continue collecting work.
Still be provided with the light filling device 8 that is used for carrying out the light filling for camera device's image acquisition in one side that the mount is close to the mural painting at image acquisition, light filling device 8 adopts vertical light filling ware, and vertical light filling ware is provided with two, places it in one side that the mount is close to the mural painting at the image acquisition when using to be the splayed that expands to the mural painting both ends and arrange.
In the process of optimizing the shooting parameters, the image quality parameters are kept unchanged, the effect factors of the shot mural images are adjusted by optimizing the shooting parameters, and the quality and the efficiency of mural image collection are improved.
On the basis of the above embodiments, fig. 6 is a schematic structural diagram of a mural image acquisition device according to an embodiment of the present application. Referring to fig. 6, the mural image capturing apparatus provided in this embodiment includes a screening module 61, an effect parameter obtaining module 62, a parameter optimizing module 63, and a capturing and advancing module 64.
The screening module 61 is configured to calculate image quality parameters of the collected mural images, and screen the mural images according to the image quality parameters; an effect parameter obtaining module 62, configured to calculate an effect factor of the screened mural image, and calculate an image effect parameter of the mural image according to the quality parameter and the effect factor; the parameter optimization module 63 is used for optimizing the shooting parameters according to the image effect parameters, re-collecting mural images according to the optimized shooting parameters, and re-verifying the image effect parameters until the image effect parameters meet the requirements; and the acquisition pushing module 64 is used for acquiring the image at the next position according to a preset acquisition track.
The mural images shot at the same acquisition position are screened according to the image quality parameters, the effect factors of the screened mural images are calculated, the image effect parameters of the mural images are obtained according to the effect factors, if the image effect parameters meet the requirements, determining the mural image at the position, otherwise optimizing the shooting parameters on the premise of ensuring the image quality parameters to meet the requirements, thereby adjusting the effect factors influencing the image effect parameters, re-collecting the mural images according to the optimized shooting parameters until the image effect parameters of the collected mural images meet the requirements, then collecting the mural images at the next position until the mural image collection work is completed, adjusting different shooting parameters according to different environments at different collection positions, the effect image of unified standard is reached, and the quality of the mural image of each acquisition position is guaranteed.
In a possible embodiment, the screening module 61 is specifically configured to calculate image quality parameters of the acquired mural images; comparing the image quality parameter corresponding to each mural image with a preset quality parameter; judging whether the image quality parameters of the corresponding mural images meet the requirements or not according to the comparison result; and selecting mural images meeting the requirements.
The mural image acquisition device provided by the embodiment of the application can be used for executing the mural image acquisition method provided by the embodiment, and has corresponding functions and beneficial effects.
The embodiment of the application provides a computer, and the computer can integrate the mural image acquisition device provided by the embodiment of the application. Fig. 7 is a schematic structural diagram of a computer provided in an embodiment of the present application. Referring to fig. 7, the computer includes: a communication module 73, an input device 75, an output device 76, a display 73, a memory 72, and one or more processors 71; the memory 72 for storing one or more programs; when the one or more programs are executed by the one or more processors 71, the one or more processors 71 are enabled to implement the mural image capturing method according to the embodiment of the present application. The processor 71, the memory 72, the communication module 73, the display 73, the input device 75 and the output device 76 of the computer apparatus may be connected by a bus or other means, as exemplified by the bus connection in fig. 7.
The memory 72 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the mural image acquisition method according to any embodiment of the present application (for example, the filtering module 61, the effect parameter acquiring module 62, the parameter optimizing module 63, and the acquisition advancing module 64 in the mural image acquisition device). The memory 72 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 72 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 72 may further include memory located remotely from the processor 71, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Further, the communication device is used for establishing wired and/or wireless connection with other equipment and carrying out data transmission.
The processor 71 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 72, so as to implement the mural image capturing method.
The computer equipment can be used for executing the mural image acquisition method provided by the embodiment, and has corresponding functions and beneficial effects.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a mural image acquisition method, including: calculating image quality parameters of a plurality of acquired mural images, and screening the mural images according to the image quality parameters; calculating the effect factor of the screened mural image, and calculating the image effect parameter of the mural image according to the quality parameter and the effect factor; if the image effect parameters do not meet the requirements, optimizing shooting parameters according to the image effect parameters, and re-collecting mural images according to the optimized shooting parameters until the image effect parameters meet the requirements; and if the image effect parameters meet the requirements, acquiring the image of the next acquisition position according to a preset acquisition track.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the mural image capturing method described above, and may also perform related operations in the mural image capturing method provided in any embodiments of the present application.
The mural image acquisition device and the computer provided in the above embodiments may execute the mural image acquisition method provided in any embodiments of the present application, and reference may be made to the mural image acquisition method provided in any embodiments of the present application without detailed technical details described in the above embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (9)

1. The mural image acquisition method is characterized by comprising the following steps:
calculating image quality parameters of a plurality of acquired mural images, and screening the mural images according to the image quality parameters;
calculating the effect factor of the screened mural image, and calculating the image effect parameter of the mural image according to the quality parameter and the effect factor;
if the image effect parameters do not meet the requirements, optimizing shooting parameters according to the image effect parameters, and re-collecting mural images according to the optimized shooting parameters until the image effect parameters meet the requirements, wherein the shooting parameters comprise brightness and contrast; the optimization of the shooting parameters according to the image effect parameters specifically comprises the following steps: adjusting the brightness and the contrast, wherein the brightness and the contrast satisfy the following formulas in the adjusting process: lqs [ x-127.5 (1-B) ]) tan ((45+44 × c)/180 × pi) +127.5 × (1+ B); wherein, the IQS is an image quality parameter and is kept unchanged in the adjusting process; x is a pixel value; k-tan ((45+44 ×/180 ×) pi), arctan (k) takes the value [1, 89 ]; c is contrast, and c takes the value of [ -1, 1 ]; b is brightness, and B takes the value of [ -1, 1 ];
and if the image effect parameters meet the requirements, acquiring the image of the next acquisition position according to a preset acquisition track.
2. The mural image collection method according to claim 1, wherein before said calculating image quality parameters of the collected mural images, further comprising:
and acquiring a plurality of mural images based on the same acquisition distance, wherein the acquisition distance is the distance between an image acquisition device for acquiring the mural images and the mural.
3. The mural image collection method according to claim 1, wherein said screening mural images according to the image quality parameters comprises:
comparing the image quality parameter corresponding to each mural image with a preset quality parameter;
judging whether the image quality parameters of the corresponding mural images meet the requirements or not according to the comparison result;
and selecting mural images meeting the requirements.
4. The mural image acquisition method according to claim 1, wherein for the same acquisition position, when the image effect parameter corresponding to the first acquisition time meets the requirement, the environmental parameter, the shooting parameter and the image effect parameter corresponding to the current position form an association relationship, and when the environmental parameter corresponding to the second acquisition time changes, the shooting parameter is adjusted according to the association relationship to meet the requirement of the effect parameter.
5. The mural image collection method according to claim 1, wherein the image quality parameter is calculated by the formula:
Figure FDA0003171750690000011
wherein a belongs to 1,2, 3.. r; s, r and s are the height and width of the mural imagery respectively, I (a, b) is the image intensity of the mural imagery at the (a, b) pixel, η (a, b) and δ (a, b) are the local mean and local variance of the mural imagery respectively.
6. The mural image collection method according to claim 5 wherein said effect factors include image mean, image standard deviation, image mean gradient and image entropy, wherein:
average value of image
Figure FDA0003171750690000021
Standard deviation of image
Figure FDA0003171750690000022
Mean gradient of image
Figure FDA0003171750690000023
Entropy of images
Figure FDA0003171750690000024
Wherein M and N are height and width of the mural image, Δ xF (a, b) and Δ yF (a, b) respectively represent first order differences of the pixel points (a, b) in x and y directions, and the gray distribution of the mural image is p ═ { p1, p2, …, pi, …, pn }, where p (i) represents the ratio of the number of pixels having a gray value i to the total number of pixels of the image, N is the total number of gray levels, p (L) is the probability of the gray value L appearing in the image, and L is the gray level of the image.
7. The mural image collection method according to claim 6, wherein the image effect parameter is calculated by the formula:
Figure FDA0003171750690000025
8. mural image acquisition device, its characterized in that includes:
the screening module is used for calculating image quality parameters of the collected mural images and screening the mural images according to the image quality parameters;
the effect parameter acquisition module is used for calculating the effect factors of the screened mural images and calculating the image effect parameters of the mural images according to the quality parameters and the effect factors;
the parameter optimization module is used for optimizing shooting parameters according to the image effect parameters, re-collecting mural images according to the optimized shooting parameters, and re-verifying the image effect parameters until the image effect parameters meet requirements, wherein the shooting parameters comprise brightness and contrast; the optimization of the shooting parameters according to the image effect parameters specifically comprises the following steps: adjusting the brightness and the contrast, wherein the brightness and the contrast satisfy the following formulas in the adjusting process: lqs [ x-127.5 (1-B) ]) tan ((45+44 × c)/180 × pi) +127.5 × (1+ B); wherein, the IQS is an image quality parameter and is kept unchanged in the adjusting process; x is a pixel value; k-tan ((45+44 ×/180 ×) pi), arctan (k) takes the value [1, 89 ]; c is contrast, and c takes the value of [ -1, 1 ]; b is brightness, and B takes the value of [ -1, 1 ];
and the acquisition propulsion module is used for acquiring images at the next position according to a preset acquisition track.
9. A computer, comprising: a display screen, a memory, and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the mural image acquisition method according to any one of claims 1-7.
CN201910745620.0A 2019-08-13 2019-08-13 Mural image acquisition method and device, computer equipment and storage medium Active CN110381259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910745620.0A CN110381259B (en) 2019-08-13 2019-08-13 Mural image acquisition method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910745620.0A CN110381259B (en) 2019-08-13 2019-08-13 Mural image acquisition method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110381259A CN110381259A (en) 2019-10-25
CN110381259B true CN110381259B (en) 2021-08-31

Family

ID=68259176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910745620.0A Active CN110381259B (en) 2019-08-13 2019-08-13 Mural image acquisition method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110381259B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110930326A (en) * 2019-11-15 2020-03-27 浙江大华技术股份有限公司 Image and video defogging method and related device
CN116708683B (en) * 2023-08-01 2023-10-10 文博安全科技有限公司 Digital automatic acquisition system and method for wall painting

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685952A (en) * 2013-12-06 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Terminal and image processing method
WO2014065854A1 (en) * 2012-10-26 2014-05-01 Google Inc. Method, system and computer program product for gamifying the process of obtaining panoramic images
CN105049812A (en) * 2015-08-07 2015-11-11 清华大学深圳研究生院 Unmanned aerial vehicle portable ground station processing method and system
CN107146200A (en) * 2017-04-25 2017-09-08 广西大学 A kind of unmanned aerial vehicle remote sensing image split-joint method based on image mosaic quality evaluation
CN108769538A (en) * 2018-08-16 2018-11-06 Oppo广东移动通信有限公司 Atomatic focusing method, device, storage medium and terminal
CN109300082A (en) * 2017-07-25 2019-02-01 中兴通讯股份有限公司 Image-pickup method device, acquisition equipment and computer storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014065854A1 (en) * 2012-10-26 2014-05-01 Google Inc. Method, system and computer program product for gamifying the process of obtaining panoramic images
CN103685952A (en) * 2013-12-06 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Terminal and image processing method
CN105049812A (en) * 2015-08-07 2015-11-11 清华大学深圳研究生院 Unmanned aerial vehicle portable ground station processing method and system
CN107146200A (en) * 2017-04-25 2017-09-08 广西大学 A kind of unmanned aerial vehicle remote sensing image split-joint method based on image mosaic quality evaluation
CN109300082A (en) * 2017-07-25 2019-02-01 中兴通讯股份有限公司 Image-pickup method device, acquisition equipment and computer storage medium
CN108769538A (en) * 2018-08-16 2018-11-06 Oppo广东移动通信有限公司 Atomatic focusing method, device, storage medium and terminal

Also Published As

Publication number Publication date
CN110381259A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN110381259B (en) Mural image acquisition method and device, computer equipment and storage medium
CN103198488B (en) PTZ surveillance camera realtime posture rapid estimation
CN111401146A (en) Unmanned aerial vehicle power inspection method, device and storage medium
CN103186887B (en) Image demister and image haze removal method
CN105023275A (en) Super-resolution light field acquisition device and three-dimensional reconstruction method thereof
CN103248824A (en) Method and device for determining shooting angle of camera and picture pick-up system
CN106504205A (en) A kind of image defogging method and terminal
CN110009675A (en) Generate method, apparatus, medium and the equipment of disparity map
CN112329846A (en) Laser point cloud data high-precision marking method and system, server and medium
CN109792530A (en) Adapting to image processing in nobody the autonomous vehicles
CN103176668B (en) A kind of shooting method for correcting image for camera location touch system
CN106204554A (en) Depth of view information acquisition methods based on multiple focussing image, system and camera terminal
CN107977985A (en) Unmanned plane hovering method, apparatus, unmanned plane and storage medium
CN112172797A (en) Parking control method, device, equipment and storage medium
CN104836953A (en) Multi-projector screen feature point automatic shooting and de-noising identification method
CN105245805A (en) Projection method and electronic equipment
CN111340942A (en) Three-dimensional reconstruction system based on unmanned aerial vehicle and method thereof
CN114307139A (en) Method and device for generating virtual natural phenomenon in game scene
CN111179322B (en) Material measurement shooting image calibration method and system based on camera light source array
CN109318235B (en) Quick focusing method of robot vision servo system
CN105184809A (en) Moving object detection method and moving object detection device
CN111526297B (en) Curved screen image acquisition method and device and terminal equipment
CN112085799B (en) Autonomous registration method and system for power equipment
CN104463964A (en) Method and equipment for acquiring three-dimensional model of object
US9961305B2 (en) Method and system for video stitching

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant