CN111986072A - Image normalization method, device, equipment and storage medium - Google Patents

Image normalization method, device, equipment and storage medium Download PDF

Info

Publication number
CN111986072A
CN111986072A CN201910423344.6A CN201910423344A CN111986072A CN 111986072 A CN111986072 A CN 111986072A CN 201910423344 A CN201910423344 A CN 201910423344A CN 111986072 A CN111986072 A CN 111986072A
Authority
CN
China
Prior art keywords
scale
image
target area
target
sample
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.)
Pending
Application number
CN201910423344.6A
Other languages
Chinese (zh)
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.)
SF Technology Co Ltd
SF Tech Co Ltd
Original Assignee
SF 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 SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN201910423344.6A priority Critical patent/CN111986072A/en
Publication of CN111986072A publication Critical patent/CN111986072A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • G06T3/18
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof

Abstract

The application discloses an image normalization method, an image normalization device, image normalization equipment and a storage medium. The method comprises the following steps: acquiring a target area of an image; scaling the processing target region to a predetermined first scale; and adjusting pixels around the scaled target area so that the image meets a second scale, wherein the first scale is smaller than or equal to the second scale. According to the technical scheme provided by the embodiment of the application, on the premise of ensuring the size of the target area to be consistent, the pixels around the target area are adjusted to prevent the dimension information of the target area from being lost.

Description

Image normalization method, device, equipment and storage medium
Technical Field
The present application relates generally to the field of data processing, and more particularly, to the field of image processing, and more particularly, to a method, an apparatus, a device, and a storage medium for image normalization.
Background
In the field of image processing, it is often necessary to take an image using a camera and then input the taken image into a subsequent network or device for further processing.
However, since the scale of the image captured by the camera may be different from the scale required by the subsequent network or the device, when the image is input to the subsequent network, the subsequent network needs to scale the image. However, the scaling may possibly flatten or elongate the image, which may result in loss of image scale information, and further, may result in loss of scale information in the area of interest in the user in the image, which may affect the use of subsequent networks or devices.
Disclosure of Invention
In view of the problems that the prior art cannot retain the scale information of an image and cannot adapt to network input, the present application provides an image normalization method, apparatus, device and storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides an image normalization method, where the method includes:
acquiring a target area of an image;
scaling the processing target region to a predetermined first scale;
and adjusting pixels around the scaled target area so that the image meets a second scale, wherein the first scale is smaller than or equal to the second scale.
Optionally, adjusting pixels around the scaled target region comprises:
and adjusting pixels around the scaled target area according to the distribution position of the scaled target area in the image.
Optionally, the adjusting comprises: fill pixels or shear pixels.
Optionally, the predetermining the first dimension comprises:
obtaining a plurality of sample target areas, wherein each sample target area corresponds to each frame of sample image one by one;
determining scale information of each sample target region;
a histogram of the scale information is counted to determine a first scale.
Optionally, the histogram of the scale information is counted to determine the first scale, including:
And determining scale information corresponding to the threshold value of the histogram as a first scale.
In a second aspect, an embodiment of the present application provides an image normalization apparatus, including:
the first acquisition module is used for acquiring a target area of an image;
the scaling module is used for scaling the processing target area to a first predetermined scale;
and the adjusting module is used for adjusting pixels around the zoomed target area to enable the image to meet a second scale, wherein the first scale is smaller than or equal to the second scale.
Optionally, the apparatus further comprises means for predetermining the first dimension:
the second acquisition module is used for acquiring a plurality of sample target areas, and each sample target area corresponds to each frame of sample image one by one;
the determining module is used for determining the scale information of each sample target area;
and the statistic determining module is used for counting the histogram of the scale information to determine the first scale.
Optionally, the statistics determining module includes:
and the determining unit is used for determining the scale information corresponding to the threshold value of the histogram as a first scale.
In a third aspect, an embodiment of the present application provides an image normalization apparatus, including:
one or more processors;
A memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform a method that implements the first aspect described above.
In a fourth aspect, embodiments of the present application provide an image normalization computer-readable storage medium, on which a computer program is stored, the computer program being configured to implement the method of the first aspect.
To sum up, in the image normalization method provided in the embodiment of the present application, the target area of the image is first scaled to the first scale, and then the image is adjusted to the second scale, where the first scale is smaller than or equal to the second scale, and the second scale is matched with the scale required by the subsequent network or device. On the premise of keeping the scale information of the target area basically unchanged, pixels around the target area are adjusted to ensure the integrity of the content of the target area. The first scale is obtained according to scale statistics of a large number of target areas, when the target areas are zoomed according to the first scale, only the target areas are subjected to less adjustment, the first scale is limited to be smaller than or equal to the second scale, all content information of the zoomed target areas can be stored in the image, and the integrity of the content information of the zoomed target areas is ensured. The second scale is matched with the scale required by the subsequent network or equipment, so that the image is input to the subsequent network or equipment without scaling the image, the scale information of the image target area is further reserved, and the problem of network input adaptation is also solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments or the prior art are briefly introduced below, and it is apparent that the drawings are only for the purpose of illustrating a preferred implementation method and are not to be considered as limiting the present invention. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present invention are shown in the drawings.
FIG. 1 is a flow chart illustrating an image normalization method according to an embodiment of the present application;
FIG. 2 is a block diagram of an image normalization apparatus according to an embodiment of the present application;
FIG. 3 is a block diagram of another image normalization apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer system according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart illustrating an image normalization method according to an embodiment of the present application. The method shown in fig. 1 may be performed by a terminal, as shown in fig. 1, the method comprising the steps of:
step 101, a target area of an image is acquired.
The images can be obtained by shooting different cameras for the same scene. For example, in the express sorting of commodity circulation, use three camera to shoot simultaneously and sort the scene.
It should be noted that, because the distances from the three cameras to the scene are generally different, the sizes of the captured objects in the images are also different. For example, if the target is a person who is performing violent sorting, the size of the person in the images corresponding to the three cameras will not be the same.
The target region is a region of interest (i.e., ROI region) that is identified in advance by a target detection algorithm. For example, the area of the violent sorting person in the image is the target area. Additionally, the identified target area may be framed with a line in a rectangular or other shape for marking.
In addition, when the image identifying the target area is received, the target area of the image can be acquired by cutting all pixels around the target area. Of course, it is also possible to use only lines for marking, and identify lines marking the target area to achieve the target area of the captured image.
Step 102, scaling the processing target area to a predetermined first scale.
The first scale is a scale of the target region in the normalized image (for convenience of description, an image after all normalization processing procedures are performed is referred to as a normalized image). Taking the example of framing the target area into a rectangle, the first dimension includes the width and height of the target area in units of length, such as centimeters, millimeters, and the like. When the target area is marked by other shapes, the width and height of the target area can also be obtained by taking the corresponding maximum rectangle of the shape and then obtaining the width and height of the target area through the rectangle.
Optionally, the predetermining the first dimension comprises the steps of:
the method comprises the steps of firstly, obtaining a plurality of sample target areas, wherein each sample target area corresponds to each frame of sample image one by one.
Illustratively, 5000 frames of sample images are acquired, then one target area is determined in each frame of 5000 frames of sample images, and 5000 sample target areas are acquired.
It should be noted that, when actually determining the first scale, the number of the acquired target regions is much larger than 5000, and is only 5000 as an example here.
And secondly, determining the scale information of each sample target area.
The scale information may include, among other things, the width and height of the sample region, in units of length. The dimensional information for each sample target region is determined to determine the width and height of each sample region. Illustratively, and again taking the above example as an example, 5000 sample regions are determined to be wide and correspondingly high.
Third, a histogram of the scale information is counted to determine the first scale.
And counting the width of each determined sample area into a width histogram, and counting the height of each determined sample area into a height histogram.
Illustratively, still taking the above example as an example, the obtained 5000 widths and 5000 heights are respectively made into histograms, and a width histogram and a height histogram are respectively obtained.
Further, the scale information corresponding to the threshold values of the two histograms may be determined as the first scale.
The threshold is a value less than or equal to the second scale to ensure that the first scale is less than or equal to the second scale, so that the scaled target area can be completely contained in the normalized image. The second scale is the scale of the normalized image.
Further, acquiring a maximum width value of the width corresponding to the second scale or less from the width histogram as a width threshold of the first scale; and acquiring a maximum height value which is less than or equal to the height corresponding to the second scale from the height histogram as a height threshold value of the first scale. Then the width and height of the first dimension are the width threshold and the height threshold, respectively.
Optionally, in order to avoid that the determined target region is too narrow or flat, a coefficient may be set for the determined height threshold and width threshold, and the product of the coefficient and the height threshold and width threshold is taken as the first dimension. The coefficient can be any value as desired, for example, a coefficient of 1.1, 0.9, or 0.8.
In addition, the scaling process includes filling pixels or clipping pixels. Scaling the target area includes filling the target area with pixels or cropping pixels of the target area. And further, when the scale of the target area is smaller than the first scale, filling pixels for the target area, and when the scale of the target area is larger than the first scale, cutting the scale of the target area.
Alternatively, the number of pixels may be filled in the target area by: acquiring a predetermined first scale; obtaining the scale of a target area; and subtracting the scale of the target area from the first scale to obtain the size of the required filling scale in each direction of the target area and the number of pixels corresponding to the size of the required filling scale. For example, when the first dimension is 200 mm x 100 mm and the target area has a dimension of 150 mm x 80 mm, the dimension of the target area that needs to be filled in the width direction is 50 mm, and the dimension of the target area that needs to be filled in the height direction is 20 mm.
Alternatively, when filling pixels into the target area, one pixel may be filled between every two pixels or one pixel may be filled between a plurality of pixels according to the number of pixels to be filled, and the gray value of the filled pixel is the average of the gray values of the pixels around the filled pixel. Exemplarily, taking the width of the example sub-target area as an example, assuming that the length of one pixel is 1 mm, the width of the target area is 150 pixels in total, 50 pixels need to be filled, the width of the target area is filled by every 3 pixels, and the gray value of the filled pixel is the average of the gray values of the surrounding pixels.
The gray value of the filled pixel may be determined by other methods, but is not limited herein. For example, the intermediate value of the gray values of all the surrounding pixels is taken as the gray value of the filled pixel.
Alternatively, the number of pixels to be clipped in the clipping target region may be determined by the following method: acquiring a predetermined first scale; obtaining the scale of a target area; and subtracting the first scale from the scale of the target area to obtain the scale which needs to be filled in the target area and the number of pixels corresponding to the scale which needs to be filled. For example, when the first dimension is 200 mm × 100 mm, the dimension of the target region is 250 mm × 200 mm, and the length of one pixel is 1 mm, the number of pixels to be cut for the target region width is 50, and the number of pixels to be cut for the target region height is 100.
Alternatively, the pixels of the target region may be clipped in an interval manner. Illustratively, still the above example is taken as an example, the width of the target area is cut by one pixel out of every 5 pixels.
Step 103, adjusting pixels around the scaled target area so that the image satisfies the second scale.
Optionally, adjusting pixels around the scaled target region comprises: and adjusting pixels around the scaled target area according to the distribution position of the scaled target area in the image.
The distribution position of the zoomed target area in the image is a fixed position, so that the positions of the zoomed target area in the image are the same, and the convenience of the image use is improved.
Furthermore, because the scales of the zoomed target areas are the same, and the distribution positions of the target areas in the image are the same, the comparison between the images can be facilitated in the subsequent use, and the use convenience of the image is improved.
Further, the second scale is the same as the scale of the image required by the subsequent network or device, and the image obtained by the method provided by the embodiment does not need to be scaled after being input to the subsequent network or device, so that not only can the scale information of the image target area be kept unchanged, but also the convenience of using the image can be improved.
Optionally, the adjusting comprises: fill pixels or shear pixels.
In addition, the method for filling pixels or clipping pixels in this step is the same as the method in step 102, and is not described herein again.
In addition, when the target area of the image is obtained by cutting pixels around the target area in step 101, the image may satisfy the second scale only by filling pixels around the scaled target area in this step.
Note that the gradation value of the pixel to be filled in this step may be a value determined by averaging, or may be an arbitrary value.
To sum up, in the image normalization method provided in the embodiment of the present application, the target area of the image is first scaled to the first scale, and then the image is adjusted to the second scale, where the first scale is smaller than or equal to the second scale, and the second scale is matched with the scale required by the subsequent network or device. On the premise of keeping the scale information of the target area basically unchanged, pixels around the target area are adjusted to ensure the integrity of the content of the target area. The first scale is obtained according to scale statistics of a large number of target areas, when the target areas are zoomed according to the first scale, only the target areas are subjected to less adjustment, the first scale is limited to be smaller than or equal to the second scale, all content information of the zoomed target areas can be stored in the image, and the integrity of the content information of the zoomed target areas is ensured. The second scale is matched with the scale required by the subsequent network or equipment, so that the image is input to the subsequent network or equipment without scaling the image, the scale information of the image target area is further reserved, and the problem of network input adaptation is also solved.
The embodiments in this specification are described in a progressive manner, and similar parts between the various embodiments are referred to each other. The examples below each step focus on the specific method below that step. The above-described embodiments are merely illustrative, the specific examples are merely illustrative of the present invention, and those skilled in the art can make various modifications and enhancements without departing from the principles of the examples described herein, which should be construed as within the scope of the present invention.
Fig. 2 is a block diagram of an image normalization apparatus according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
a first obtaining module 201, configured to obtain a target area of an image.
A scaling module 202, configured to scale the processing target region to a predetermined first scale.
And the adjusting module 203 is configured to adjust pixels around the scaled target region so that the image satisfies a second scale, where the first scale is smaller than or equal to the second scale.
Optionally, the adjusting module 203 is specifically configured to adjust pixels around the scaled target region according to a distribution position of the scaled target region in the image.
Optionally, the adjusting comprises: fill pixels or shear pixels.
Optionally, the image normalization apparatus further includes a module for predetermining the first scale:
a second obtaining module 204, configured to obtain multiple sample target areas, where each sample target area corresponds to each frame of sample image one to one;
a determining module 205, configured to determine scale information of each sample target region;
a statistics determination module 206 for counting the histogram of scale information to determine the first scale.
Optionally, the statistics determining module includes:
and the determining unit is used for determining the scale information corresponding to the threshold value of the histogram as a first scale.
In addition, please refer to the method embodiment for related contents in the device embodiment, which are not described herein again.
To sum up, the image normalization apparatus provided in the embodiment of the present application first scales a target area of an image to a first scale, and then adjusts the image to a second scale, where the first scale is smaller than or equal to the second scale, and the second scale is matched with a scale required by a subsequent network or device. On the premise of keeping the scale information of the target area basically unchanged, pixels around the target area are adjusted to ensure the integrity of the content of the target area. The first scale is obtained according to scale statistics of a large number of target areas, when the target areas are zoomed according to the first scale, only the target areas are subjected to less adjustment, the first scale is limited to be smaller than or equal to the second scale, all content information of the zoomed target areas can be stored in the image, and the integrity of the content information of the zoomed target areas is ensured. The second scale is matched with the scale required by the subsequent network or equipment, so that the image is input to the subsequent network or equipment without scaling the image, the scale information of the image target area is further reserved, and the problem of network input adaptation is also solved.
Fig. 4 is a schematic structural diagram of a computer system according to an embodiment of the present application, and the computer system includes a Central Processing Unit (CPU)301 that can execute various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage section into a Random Access Memory (RAM) 303. In the RAM303, various programs and data necessary for system operation are also stored. The CPU 301, ROM 302, and RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output section including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 308 including a hard disk and the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. The drives are also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to an embodiment of the invention, the process described above with reference to the flowchart of fig. 1 may be implemented as a computer software program. For example, embodiment 1 of the invention comprises a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 301.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves. The described units or modules may also be provided in a processor, and may be described as: a processor includes a first obtaining module 201, a scaling module 202, and an adjusting module 203. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the image normalization method as described in the above embodiments.
For example, the electronic device may implement the following as shown in fig. 1: step 101, acquiring a target area of an image; step 102, zooming the processing target area to a predetermined first scale; step 103, adjusting pixels around the scaled target area so that the image satisfies the second scale.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware.
To sum up, the image normalization apparatus and the storage medium provided in the embodiment of the present application first scale the target area of the image to a first scale, and then adjust the image to a second scale, where the first scale is smaller than or equal to the second scale, and the second scale is matched with a scale required by a subsequent network or device. On the premise of keeping the scale information of the target area basically unchanged, pixels around the target area are adjusted to ensure the integrity of the content of the target area. The first scale is obtained according to scale statistics of a large number of target areas, when the target areas are zoomed according to the first scale, only the target areas are subjected to less adjustment, the first scale is limited to be smaller than or equal to the second scale, all content information of the zoomed target areas can be stored in the image, and the integrity of the content information of the zoomed target areas is ensured. The second scale is matched with the scale required by the subsequent network or equipment, so that the image is input to the subsequent network or equipment without scaling the image, the scale information of the image target area is further reserved, and the problem of network input adaptation is also solved.
The foregoing is considered as illustrative only of the preferred embodiments of the invention and illustrative only of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A method of image normalization, the method comprising:
acquiring a target area of an image;
scaling the target region to a predetermined first scale;
adjusting pixels around the scaled target region such that the image satisfies a second scale, wherein the first scale is less than or equal to the second scale.
2. The image normalization method of claim 1, wherein the adjusting pixels around the scaled target region comprises:
and adjusting pixels around the scaled target area according to the distribution position of the scaled target area in the image.
3. The image normalization method of claim 2, wherein the adjusting comprises: fill pixels or shear pixels.
4. The image normalization method of claim 1, wherein predetermining the first scale comprises:
obtaining a plurality of sample target areas, wherein each sample target area corresponds to each frame of sample image one by one;
determining scale information for each of the sample target regions;
a histogram of the scale information is counted to determine the first scale.
5. The method of claim 4, wherein the counting the histogram of the scale information to determine the first scale comprises:
and determining scale information corresponding to the threshold value of the histogram as the first scale.
6. An image normalization apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring a target area of an image;
the scaling module is used for scaling the target area to a first predetermined scale;
and the adjusting module is used for adjusting pixels around the zoomed target area to enable the image to meet a second scale, wherein the first scale is smaller than or equal to the second scale.
7. The image normalization apparatus of claim 6, further comprising means for predetermining the first scale:
the second acquisition module is used for acquiring a plurality of sample target areas, and each sample target area corresponds to each frame of sample image one by one;
a determining module for determining scale information of each of the sample target regions;
and the statistic determining module is used for counting the histogram of the scale information to determine the first scale.
8. The image normalization apparatus of claim 7, wherein the statistics determination module comprises:
and the determining unit is used for determining the scale information corresponding to the threshold value of the histogram as the first scale.
9. A computer apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-5.
10. A computer-readable storage medium, having stored thereon a computer program for:
The computer program, when executed by a processor, implements the method of any one of claims 1-5.
CN201910423344.6A 2019-05-21 2019-05-21 Image normalization method, device, equipment and storage medium Pending CN111986072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910423344.6A CN111986072A (en) 2019-05-21 2019-05-21 Image normalization method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910423344.6A CN111986072A (en) 2019-05-21 2019-05-21 Image normalization method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111986072A true CN111986072A (en) 2020-11-24

Family

ID=73435821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910423344.6A Pending CN111986072A (en) 2019-05-21 2019-05-21 Image normalization method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111986072A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222815A (en) * 2021-04-26 2021-08-06 北京奇艺世纪科技有限公司 Image adjusting method and device, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336951A (en) * 2013-06-28 2013-10-02 深圳市智美达科技有限公司 Video monitoring target detection method and device
CN107563350A (en) * 2017-09-21 2018-01-09 深圳市唯特视科技有限公司 A kind of method for detecting human face for suggesting network based on yardstick
CN109118456A (en) * 2018-09-26 2019-01-01 北京字节跳动网络技术有限公司 Image processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336951A (en) * 2013-06-28 2013-10-02 深圳市智美达科技有限公司 Video monitoring target detection method and device
CN107563350A (en) * 2017-09-21 2018-01-09 深圳市唯特视科技有限公司 A kind of method for detecting human face for suggesting network based on yardstick
CN109118456A (en) * 2018-09-26 2019-01-01 北京字节跳动网络技术有限公司 Image processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
林士敏、覃德泽 等: "《计算机辅助教学教程》", 南宁:广西科学技术出版社, pages: 132 - 142 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222815A (en) * 2021-04-26 2021-08-06 北京奇艺世纪科技有限公司 Image adjusting method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109255337B (en) Face key point detection method and device
CN108337505B (en) Information acquisition method and device
CN107220652B (en) Method and device for processing pictures
CN109711508B (en) Image processing method and device
CN109377508B (en) Image processing method and device
CN107908998B (en) Two-dimensional code decoding method and device, terminal equipment and computer readable storage medium
CN111385484B (en) Information processing method and device
CN109255752B (en) Image self-adaptive compression method, device, terminal and storage medium
CN112995535B (en) Method, apparatus, device and storage medium for processing video
CN111757100B (en) Method and device for determining camera motion variation, electronic equipment and medium
CN111882565B (en) Image binarization method, device, equipment and storage medium
CN109272526B (en) Image processing method and system and electronic equipment
CN111986072A (en) Image normalization method, device, equipment and storage medium
CN113158773B (en) Training method and training device for living body detection model
CN111078090A (en) Display method, device, equipment and storage medium
CN112967191B (en) Image processing method, device, electronic equipment and storage medium
WO2019196240A1 (en) Photographing method, apparatus, computer device, and storage medium
CN109523564B (en) Method and apparatus for processing image
CN110348353B (en) Image processing method and device
CN110889470B (en) Method and apparatus for processing image
CN109447911B (en) Image restoration method, device, storage medium and terminal equipment
CN110852250A (en) Vehicle weight removing method and device based on maximum area method and storage medium
CN109118441B (en) Low-illumination image and video enhancement method, computer device and storage medium
CN108256451B (en) Method and device for detecting human face
CN114663418A (en) Image processing method and device, storage medium and electronic equipment

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