WO2019090901A1 - 图像显示的选择方法、装置、智能终端及存储介质 - Google Patents
图像显示的选择方法、装置、智能终端及存储介质 Download PDFInfo
- Publication number
- WO2019090901A1 WO2019090901A1 PCT/CN2017/116738 CN2017116738W WO2019090901A1 WO 2019090901 A1 WO2019090901 A1 WO 2019090901A1 CN 2017116738 W CN2017116738 W CN 2017116738W WO 2019090901 A1 WO2019090901 A1 WO 2019090901A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- attribute
- image
- target
- weight vector
- matrix
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
- G06T7/75—Determining position or orientation of objects or cameras using feature-based methods involving models
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/97—Determining parameters from multiple pictures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30168—Image quality inspection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30242—Counting objects in image
Definitions
- the present invention relates to the field of computer application technologies, and in particular, to a method, an apparatus, an intelligent terminal, and a storage medium for selecting an image display.
- Intelligent terminals have been widely used in various fields of life and life, such as smart phones, smart tablets, smart conference machines, and intelligent teaching equipment. With the development of technology and people's demand for image capture of smart terminals, many smart terminals are currently available. Two or more cameras for image capture are provided to effectively improve the image quality of the smart terminal.
- the terminal screen In general, multiple cameras are set to capture the subject from different shooting angles, but the terminal screen often only displays images captured by one of the cameras.
- an image is captured by a multi-camera intelligent terminal, an image captured by a plurality of cameras is analyzed before the image is displayed on the terminal screen, and an image captured by a certain camera is automatically selected for display to ensure the terminal screen. Display images with better shooting angles.
- the prior art scheme evaluates each camera according to a set experience value combined with the target position information. Whether the corresponding image is suitable for display.
- the shortcoming of the existing method is that the setting of the empirical value often participates in more human factors, and thus does not guarantee that the image to be displayed determined according to the set experience value is optimal, thereby affecting the image display on the screen of the terminal. effect.
- the embodiment of the invention provides a method, a device, an intelligent terminal and a storage medium for selecting an image display, which can effectively improve the display effect of the captured image on the multi-camera intelligent terminal device.
- an embodiment of the present invention provides a method for selecting an image display, including:
- an embodiment of the present invention provides a device for selecting an image display, including:
- An attribute matrix determining module configured to acquire a real scene image currently captured by at least two cameras, and determine a target attribute matrix in each of the real scene images
- a shooting score determining module configured to determine a shooting score of each of the real-life images according to the target attribute weight vector and each of the target object attribute matrices;
- the image selection display module is configured to select a real-life image corresponding to the highest shooting score for display.
- an embodiment of the present invention provides an intelligent terminal, including: at least two cameras, and further includes:
- One or more processors are One or more processors;
- a storage device for storing one or more programs
- the one or more programs are executed by the one or more processors, such that the one or more processors implement a method of selecting an image display provided by an embodiment of the present invention.
- an embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, and when the program is executed by the processor, the method for selecting an image display provided by the embodiment of the present invention is implemented.
- device, intelligent terminal and storage medium for image display firstly acquiring real scene images currently captured by at least two cameras, and determining a target target data matrix in each real scene image; and then according to the originally determined target genus weight
- the vector and each of the target attribute matrixes determine the shooting score of each live image, and finally select the live image with the highest shooting score for display.
- the selection method, the device, the intelligent terminal and the storage medium of the image display can determine the attribute feature information of the object to be displayed in the image and thereby form the target matrix, and can also effectively determine the image display selection and evaluation required by the training.
- the attribute weight vector thereby effectively selecting the image to be displayed from the images captured by the plurality of cameras based on the determined attribute weight vector, thereby ensuring the image of the best effect on the terminal screen, thereby improving the shooting of the smart terminal. Functional user experience.
- FIG. 1 is a schematic flowchart of a method for selecting an image display according to Embodiment 1 of the present invention
- FIG. 2 is a schematic flowchart of a method for selecting an image display according to Embodiment 2 of the present invention
- FIG. 2b is a flowchart showing an implementation of updating training of a target attribute weight vector according to Embodiment 2 of the present invention
- FIG. 3 is a structural block diagram of an apparatus for selecting an image display according to Embodiment 3 of the present invention.
- FIG. 4 is a schematic structural diagram of hardware of an intelligent terminal according to Embodiment 4 of the present invention.
- FIG. 1 is a schematic flowchart of a method for selecting an image display according to a first embodiment of the present invention.
- the method is applicable to selecting one of images captured by each camera for displaying based on an intelligent terminal provided with multiple cameras.
- the method can be performed by a selection device for image display, wherein the device can be implemented by software and/or hardware and is generally integrated on a smart terminal having an image capture function.
- the smart terminal may be an electronic device such as a mobile phone, a tablet computer, a notebook, a smart conference machine, or a smart teaching device.
- a method for selecting an image display according to Embodiment 1 of the present invention includes the following operations:
- At least two cameras are disposed on the smart terminal, and can simultaneously start and perform image acquisition in real time after entering the image capturing function.
- the image captured by the camera in real time is recorded as a real scene image, and it can be known that The cameras can capture people or objects in the respective image capturing spaces at the same time, so that this step can acquire the real-life images captured by the cameras at the same time.
- all the physical information of the image capturing space corresponding to the camera may be included in the acquired real-life image, but the physical information contained in the real-life image must be the target object that the user wants to capture, and the embodiment may preferably identify
- the real-time image can be used as a subject to be photographed by the user, and then the attribute information of each subject in the real-life image is determined to form a subject attribute matrix of the real-life image.
- the priority of the person included in the live image face recognition is possible
- the object in the real-life image can be determined by recognizing the physical information in the real-life image, for example, when it is recognized that a person exists in the real-life image, the person can be determined as a real-life image.
- the subject is photographed, and when there is no person present, it is considered to recognize whether or not the animal is present and the animal in the live view image is determined as the subject at the time of existence, and then the scene recognized from the live view image can be considered as the subject.
- the third-party identification library that is acquired in advance may be matched to identify a category to which the physical information included in the real-life image specifically belongs, wherein the third-party identification library may be regarded as a feature information database including feature attribute information possessed by the physical object.
- the feature classification of each physical object in the real-life image can be determined by feature extraction analysis of each physical object in the real-life image, and thereby the target object in the real-life image is determined, for example, if the third-party recognition library is a face recognition library.
- the third-party recognition library is a face recognition library.
- the position attribute information of the object in the real-life image such as the coordinate position in the real-life image and the area occupied in the real-life image, may be determined.
- the step may form a corresponding target data matrix based on the attribute information of each of the captured targets determined in the real-time image, wherein the number of rows in the target attribute matrix represents a possible presence in the live image
- the number of shots, the number of columns mainly indicates the number of specific items used to identify the attribute information of the subject.
- S102 Determine a shooting score of each real-life image according to the target attribute weight vector determined by the training and each of the target attribute matrix, and select a real-life image corresponding to the highest shooting score for display.
- the most basic selection requirement is that the captured angle of the target object included in the real-life image to be displayed is related to the remaining real-life images. Better than its display. Therefore, in this embodiment, it is necessary to filter the subject in each of the real-life images, and select a real-life image including the subject with the best photographing effect as the real-life image to be displayed.
- the embodiment is equivalent to determining position attribute information of each target in the real scene image in the real scene image, thereby being based on the target attribute
- the position attribute information of each target in the matrix is combined with the weight that each attribute item in the position attribute information should occupy to determine the score occupied by the subject in the real-life image, and the result of the score is used to judge the shooting of the corresponding target in the corresponding real-life image. effect.
- the weights that each attribute item in the position attribute information should occupy can be represented by a vector form, and are recorded as an attribute weight vector, and the number of elements in the attribute weight vector and the position attribute information of the target object are included.
- the number of attribute items included is the same, and for the element values in the genus weight vector, it needs to be pre-trained to ensure that the value of each element in the determined genus weight vector can better reflect the proportion of each attribute item in the position attribute information. This ensures the accuracy of the calculated live image capture score.
- the embodiment may perform training learning on the attribute weight vector based on the selected network model in combination with the sample data information, thereby obtaining the target attribute weight vector applicable to the embodiment.
- the determined target attribute matrix is equivalent to the position attribute information based on each of the objects in the live image, and the attribute weight vector given in the embodiment is suitable for judging the shooting score of each live image. Therefore, the pre-trained target attribute weight vector can be directly combined with the target attribute matrix to obtain a shooting score that can judge the quality of the live image.
- the real-time image to be displayed may be selected according to the level of the shooting score. In this embodiment, it is preferable that the shooting target in the real-estimating image with the highest shooting score has the best shooting effect. This selects the live image with the highest shooting score for display.
- a method for selecting an image display according to Embodiment 1 of the present invention firstly acquires a real scene image currently captured by at least two cameras, and determines a target target data matrix in each real scene image; and then according to the originally determined target genus weight vector and Each of the target attribute matrixes determines the shooting score of each live image, and finally selects the live image with the highest shooting score for display.
- the attribute feature information of the object to be displayed in the image can be determined and thus the target object matrix can be formed, and the attribute weight vector required for the image display selection judgment can be effectively determined by training, thereby based on the determined attribute weight
- the vector effectively realizes the operation of selecting an image to be displayed from images captured by a plurality of cameras, thereby ensuring a captured image capable of displaying the best effect on the terminal screen, thereby improving the user experience of the shooting function of the smart terminal.
- FIG. 2 is a schematic flowchart of a method for selecting an image display according to Embodiment 2 of the present invention.
- the embodiment of the present invention is optimized based on the foregoing embodiment. In the embodiment, the optimization is further increased: determining the target attribute weight vector by setting a network model training according to the sample image set.
- the implementation determines the target attribute weight vector by setting a network model training according to the sample image set, and is embodied as: acquiring a set number of sample images including the target, and determining each sample.
- Target attribute information in the image constructing a sample image attribute matrix based on each of the subject attribute information, and determining a standard scoring matrix corresponding to the sample image attribute matrix; according to the sample image attribute matrix and a standard scoring matrix
- the target attribute weight vector corresponding to the sample image attribute matrix is obtained by linear regression model update.
- the embodiment further determines a target attribute matrix in each of the real-life images, and is configured to: identify at least one target included in each of the real-life images according to the selected target information identification library. And determining position attribute information of each of the subject objects in the corresponding real-life image; and forming a target attribute matrix of each of the real-life images based on position attribute information of the subject objects included in each of the real-life images.
- the embodiment further determines, according to the target attribute weight vector determined by the training and each of the target object attribute matrices, a shooting score of each of the real-life images, which is embodied as: a target weight determined according to the training. And a vector and each of the subject attribute matrices, determining a target scoring matrix corresponding to each of the subject attribute matrices; determining a sum of element values in each of the target scoring matrices as a photographing score of the corresponding live image.
- a method for selecting an image display according to Embodiment 2 of the present invention specifically includes the following operations:
- the target attribute weight vector on which the live image to be displayed is to be filtered may be specifically implemented by the following S201 to S203.
- This step specifically implements the acquisition operation of the sample data set required for the target attribute weight vector training.
- the present embodiment determines the sample image including the target as the sample data set. It can be understood that the target attribute weight vector corresponding to different target objects may be different. Therefore, sample images containing different target objects may be selected in advance to form different sample data sets to determine different target objects.
- the target attribute weight vector may be selected in advance to form different sample data sets to determine different target objects.
- this step may select a set number of sample images including person information (including a face that needs to be included, one or more faces may be included), and the above setting
- the quantity can be determined artificially based on historical experience.
- the face recognition algorithm can determine the attribute characteristics of the person (equivalent to the subject) in each sample image through the face recognition library, and regard the determined attribute feature as the target of each target.
- the target attribute information (corresponding to the position attribute information mentioned in the first embodiment).
- the subject attribute information can pass the coordinate position (abscissa and ordinate) of the subject in the live image, and the width value of a certain part of the subject (eg, when the subject is a person) The width of the face) and the angle of deflection of the subject in the horizontal direction (specifically equivalent to the horizontal deflection angle of the subject with respect to the camera), etc., and each information represents an attribute parameter.
- the target attribute information of each target object in each sample image may be identified according to a corresponding identification algorithm through a predetermined third-party identification library.
- S202 Construct a sample image attribute matrix based on each of the target attribute information, and determine a standard scoring matrix corresponding to the sample image attribute matrix.
- the sample image attribute matrix after acquiring the subject attribute information of the subject in each sample image, the sample image attribute matrix can be constructed.
- the column information of the sample image attribute matrix may be considered to be formed by the target attribute information of each of the objects, that is, each column in the sample image attribute matrix represents one attribute parameter, and the assumed target attribute information includes
- the number of columns of the sample image attribute matrix can be regarded as the number of attribute parameters plus one, wherein the added one column can be regarded as an offset attribute parameter, which is specifically used for linear division of data.
- each row in the sample image attribute matrix corresponds to the object attribute information of one subject
- the number of rows of the sample image attribute matrix can be regarded as the number of all the targets in the set number of sample images, exemplary If the set number of sample images is 10 and the target is a person, the number of faces included in the 10 sample images can be determined, and the sum of the number of faces in the 10 sample images can be used as the sample image. The total number of rows in the attribute matrix.
- the target attribute information of each line in the sample image attribute matrix may be scored according to personal preference.
- a scoring criterion given in this embodiment may be: according to personal preference, if According to the personal preference, referring to the target attribute information of the A line, it is considered that the corresponding target is better than the target corresponding to the Bth line in the sample image, and the score of the Ath line higher than the Bth line can be given.
- the range of the scoring is preferably set to be in the range of 1 to 100.
- Another scoring criterion given in this embodiment may be: arbitrarily selecting two sample images, and according to personal preference, if one of the sample images X is considered to be due to another For a sample image Y, it should be ensured that the sum of the scores of all the targets given in the sample image X is higher than the sum of the scores of all the targets of the given sample image Y.
- each row in the sample image attribute matrix has a score value corresponding thereto, thereby forming a standard scoring matrix with the number of rows equal to the number of rows of the sample image attribute matrix and the number of columns being 1.
- the present embodiment preferably uses a linear regression network model update training to obtain a target attribute weight vector.
- the obtained sample image attribute matrix can be regarded as the input data set of the linear regression model, and the standard scoring matrix is used as the standard output of the linear regression model.
- an initial attribute weight vector of the training to be updated is given, and then, based on the initial weight vector and the sample image attribute matrix, the current scoring matrix of the current iteration output is determined by the linear regression model;
- the learning parameters and the set error feedback function perform an iterative update on the current scoring matrix; and the iterative update operation is performed again on the basis of the scoring matrix obtained by the iterative update until the iterative end condition is obtained to obtain the target attribute weight vector.
- FIG. 2b is a flowchart of implementing the update training of the target attribute weight vector in the second embodiment of the present invention.
- the update of the target genus weight vector includes the following operations:
- S2031 Acquire an attribute weight vector to be updated and a set learning parameter in the linear regression model.
- the set initial attribute weight vector may be used as the first iteration of the attribute weight vector to be updated, wherein each vector value in the initial attribute weight vector may be randomly set, and the vector dimension of the attribute weight vector may be considered as being taken.
- the total number of attribute parameters of the target attribute information is the same.
- the learning parameter can be considered as an iterative update operation of the attribute weight vector by using a plurality of different parameter values, and is obtained according to a curve formed by the iterative result of the set error feedback function in each iteration, and generally can be selected. The curve drops faster, and the parameter with the best convergence effect takes the value as the learning parameter.
- the learning parameter is preferably set to 0.3. It can be understood that the obtaining of the above learning parameters may be performed in advance before the step is performed, or a set of learning parameters may be given, and the operation given in FIG. 2b is performed based on each learning parameter, and then the curve result is optimally learned.
- the target attribute weight vector corresponding to the parameter is determined as the final target attribute weight vector.
- S2032 Determine an error feedback gradient value corresponding to the attribute weight vector to be updated according to the attribute weight vector to be updated, the standard scoring matrix, the sample image attribute matrix, and the set error feedback function gradient formula.
- This step is equivalent to an intermediate operation in an iteration, and is specifically used to determine an error feedback gradient value corresponding to the current attribute weight vector to be updated after one calculation.
- the weight update formula is expressed as: Where w ⁇ represents the updated current attribute weight vector; ⁇ represents the set learning parameter.
- the updated current attribute weight vector can be obtained according to the error feedback gradient value obtained by the intermediate calculation, the learning parameter, and the current attribute weight vector to be updated, and the current attribute weight vector is equivalent to one iteration training.
- the update gets the attribute weight vector.
- This step is specifically equivalent to the setting of the loop iteration.
- the current attribute weight vector obtained by the previous iteration is first regarded as the new attribute weight vector to be updated required by the current iteration, and then can be returned to S2302 for re-execution until The iteration end condition is met.
- the iterative end condition may be set according to the number of iterations, or the iteration may be determined according to the convergence of the error feedback function. In this embodiment, it is preferable to set the number of iterations of the end of the iteration to 400.
- the present embodiment determines the current attribute weight vector determined by the update at the end of the iteration as the desired target attribute weight vector.
- the foregoing S201 to S203 are equivalent to a pre-processing operation, and are mainly used to obtain a target attribute weight vector according to the image to be displayed. It can be understood that the target attribute weight vector corresponding to different target objects can be acquired based on the above operation. This step is equivalent to the actual application of the image display selection. First, the real-life image captured by at least two cameras on the smart terminal is acquired.
- the target information identification library in this step is equivalent to the third-party identification library mentioned in the above embodiment, and the specific required third-party identification library can be determined according to the difference of the selected target. It can be understood that when the target is identified, a corresponding recognition algorithm is also needed. Generally, the recognition algorithm can be implemented according to various methods such as image feature extraction and image color analysis or image matching.
- the position attribute information of each subject in the live image is the same as the subject attribute information of the subject in the sample image, and is composed of the same attribute item.
- the target attribute matrix of each live image is formed based on the position attribute information of the object included in each of the live images.
- the present embodiment may separately construct a subject attribute matrix for each real-life image, and the subject-target attribute matrix is specifically composed of position attribute information corresponding to the subject included in the live image. Assuming that the position attribute information is composed of four attribute parameters, an additional set offset parameter is added, and it can be determined that the number of columns of the target attribute matrix is 5, and the number of lines is the number of the objects included in the real image, if If a real-life image contains 4 subjects (such as characters), a 4 ⁇ 5 target attribute matrix can be obtained accordingly.
- This step can determine the target attribute matrix corresponding to each live image based on the above description.
- the target weight vector may be matrix-calculated with all the formed target attribute matrices.
- the dimension of the target weight vector is 5, which is equivalent to a 5 ⁇ 1 matrix, and the target attribute matrix is left-multiplied by the target weight vector.
- An element value in the target scoring matrix corresponds to a score of a target.
- S208 Determine a sum of element values in each target scoring matrix as a shooting score of the corresponding real-life image, and select a real-life image corresponding to the highest shooting score for display.
- the sum of the element values in each target scoring matrix is separately calculated, and determined as the shooting score of the corresponding real-life image, and all the shooting scores are compared, and the real-life image corresponding to the highest shooting score may be preferably selected, and the The live image is displayed on the smart terminal.
- a method for selecting an image display according to the second embodiment of the present invention specifically increases the training determination operation of the target attribute weight vector, and embodies the update training process of the target attribute weight vector; meanwhile, the target attribute is also embodied.
- the target attribute weight vector required for image display can be accurately and effectively trained through the network model, thereby determining the global optimality from the images captured by multiple cameras simply and effectively in the case where the captured image data is linearly separable.
- the image can be displayed to ensure the best possible image on the terminal screen, thereby improving the user experience of the smart terminal shooting function.
- FIG. 3 is a structural block diagram of an apparatus for selecting an image display according to Embodiment 3 of the present invention.
- the device is suitable for selecting one of images captured by each camera for performing image capture based on a smart terminal provided with multiple cameras, wherein the device can be implemented by software and/or hardware, and is generally integrated in an image capturing function.
- the apparatus includes an attribute matrix determination module 31, a shooting score determination module 32, and an image selection display module 33.
- the attribute matrix determining module 31 is configured to acquire a real scene image currently captured by at least two cameras, and determine a target attribute matrix in each of the real scene images;
- the shooting score determining module 32 is configured to determine a shooting score of each of the real-life images according to the target attribute weight vector and each of the target object attribute matrices;
- the image selection display module 33 is configured to select a real-life image corresponding to the highest shooting score for display.
- the device first acquires a real-life image currently captured by at least two cameras through the attribute matrix determining module 31, and determines a target attribute matrix in each of the real-life images; and then passes the shooting score determination module 32 according to the The target attribute weight vector and each of the target object attribute matrices are determined, and the shooting score of each of the real-life images is determined; finally, the real-time image corresponding to the highest shooting score is selected by the image selection display module 33 for display.
- a selection device for image display according to Embodiment 3 of the present invention is capable of determining attribute feature information of a target to be displayed in an image and thereby forming a target object matrix, and is also capable of effectively determining an image display selection criterion by training.
- the attribute weight vector thereby effectively selecting the image to be displayed from the images captured by the plurality of cameras based on the determined attribute weight vector, thereby ensuring the image of the best effect on the terminal screen, thereby improving the shooting of the smart terminal. Functional user experience.
- the apparatus is further optimized to include a target weight determination module 34 for obtaining a target attribute weight vector by setting a network model training according to the sample image set.
- the target weight determination module 34 includes:
- a sample information acquiring unit configured to acquire a sample image of the set target including the target object, and determine target attribute information in each of the sample images
- a sample matrix construction unit constructs a sample image attribute matrix based on each of the target attribute information, and determines a standard score matrix corresponding to the sample image attribute matrix
- a weight update determining unit configured to obtain, by the linear regression model update, a target attribute weight vector corresponding to the sample image attribute matrix according to the sample image attribute matrix and the standard scoring matrix.
- weight update determining unit is specifically configured to:
- a gradient representing the error feedback function J(w) X represents the sample image attribute matrix
- w represents the attribute weight vector to be updated
- y represents a standard scoring matrix
- the weight update formula is expressed as: Where w ⁇ represents the updated current attribute weight vector; ⁇ represents the set learning parameter.
- attribute matrix determining module 31 is specifically configured to:
- the image selection display module 33 is specifically configured to:
- the smart terminal provided in Embodiment 4 of the present invention includes: at least two cameras 41, a processor 42 and a storage device 43. .
- the processor in the smart terminal may be one or more.
- One processor 42 is taken as an example in FIG. 4, and at least two cameras 41 of the smart terminals may be respectively connected to the processor 42 and the storage device by using a bus or other means.
- 43 is connected, and the processor 42 and the storage device 43 are also connected by a bus or the like, and the connection by a bus is taken as an example in FIG.
- the processor 42 in the smart terminal can control at least two cameras 41 to perform image capturing at the same time.
- the live image captured by the at least two cameras 41 can also be stored to the storage device 43 to implement image data. storage.
- the storage device 43 in the smart terminal is used as a computer readable storage medium for storing one or more programs, and the program may be a software program, a computer executable program, and a module, as shown in the embodiment of the present invention.
- the program instructions/modules corresponding to the selection method include: an attribute matrix determination module 31, a shooting score determination module 32, and an image selection display module 33).
- the processor 42 executes various functional applications and data processing of the smart terminal by executing software programs, instructions, and modules stored in the storage device 43, that is, a method for selecting an image display in the above method embodiment.
- the storage device 43 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the device, and the like. Further, the storage device 43 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some examples, storage device 43 may further include memory remotely located relative to processor 42 that 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.
- the program when the smart terminal includes one or more programs executed by the one or more processors 42, the program performs the following operations:
- the embodiment of the present invention further provides a computer readable storage medium, where the computer program is stored, and the program is implemented by the control device to implement the image display selection method provided by Embodiment 1 or Embodiment 2 of the present invention.
- the method includes: acquiring a real-life image currently captured by at least two cameras, and determining a target attribute matrix in each of the real-life images; determining each of the target attribute weight vectors according to the training and each of the target attribute matrixes The shooting score of the real-life image is selected, and the real-life image corresponding to the highest shooting score is selected for display.
- the present invention can be implemented by software and necessary general hardware, and can also be implemented by hardware, but in many cases, the former is a better implementation. .
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk of a computer. , Read-Only Memory (ROM), Random Access Memory (RAM), Flash (FLASH), hard disk or optical disk, etc., including a number of instructions to make a computer device (can be a personal computer)
- the server, or network device, etc. performs the methods described in various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Image Analysis (AREA)
Abstract
本发明公开了图像显示的选择方法、装置、智能终端及存储介质。该方法包括:获取至少两个摄像头当前捕获的实景图像,并确定各所述实景图像中的被摄目标属性矩阵;根据训练确定的目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分,并选择最高拍摄得分对应的实景图像进行显示。利用该方法,能够确定图像中待显示被摄目标的属性特征信息并由此形成被摄目标矩阵,还能通过训练有效确定图像显示选择评判所需的属性权重向量,由此基于确定的属性权重向量有效实现了从多个摄像头所捕获图像中选择待显示图像操作,保证了终端屏幕上能够显示最佳效果的被摄图像,进而提高了智能终端拍摄功能的用户体验。
Description
本发明涉及计算机应用技术领域,尤其涉及图像显示的选择方法、装置、智能终端及存储介质。
智能终端已经广泛应用人生生活的各个领域,常见的如智能手机、智能平板、智能会议机以及智能教学设备等,随着科技的发展及人们对智能终端图像拍摄要求的提升,目前很多智能终端上设置有两个或多个用于图像捕获的摄像头,来有效提高智能终端的图像拍摄质量。
一般情况下,所设置的多个摄像头可以从不同拍摄角度捕获被摄物,但终端屏幕上往往只会显示其中一个摄像头捕获的图像。目前,基于多摄像头的智能终端进行图像捕获时,在终端屏幕上进行图像显示前,会对多个摄像头捕获的图像进行分析,并自动选择某个摄像头捕获的图像进行显示,以保证终端屏幕上显示拍摄角度更佳的图像。
对于待显示图像的选择,现有技术方案在获取到多个摄像头所捕获图像上的被摄目标位置信息后,就根据一个设定好的经验值结合被摄目标位置信息来评判每个摄像头所对应图像是否适合进行显示。现有方法的不足在于:经验值的设定往往参与了更多人为因素,由此并不能保证根据设定的经验值确定的待显示图像是最优的,从而影响了终端屏幕上的图像显示效果。
发明内容
本发明实施例提供了图像显示的选择方法、装置、智能终端及存储介质, 能够有效提高多摄像头智能终端设备上拍摄图像的显示效果。
一方面,本发明实施例提供了一种图像显示的选择方法,包括:
获取至少两个摄像头当前捕获的实景图像,并确定各所述实景图像中的被摄目标属性矩阵;
根据训练确定的目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分,并选择最高拍摄得分对应的实景图像进行显示。
另一方面,本发明实施例提供了一种图像显示的选择装置,包括:
属性矩阵确定模块,用于获取至少两个摄像头当前捕获的实景图像,并确定各所述实景图像中的被摄目标属性矩阵;
拍摄得分确定模块,用于根据所述目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分;
图像选择显示模块,用于选择最高拍摄得分对应的实景图像进行显示。
又一方面,本发明实施例提供了一种智能终端,包括:至少两个摄像头,还包括:
一个或多个处理器;
存储装置,用于存储一个或多个程序;
所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明实施例提供的图像显示的选择方法。
再一方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明实施例提供的图像显示的选择方法。
在上述图像显示的选择方法、装置、智能终端及存储介质中,首先获取至 少两个摄像头当前捕获的实景图像,并确定各实景图像中的被摄目标数据矩阵;然后根据原先确定的目标属相权重向量及各被摄目标属性矩阵,确定各实景图像的拍摄得分,最终选择拍摄得分最高的实景图像进行显示。上述图像显示的选择方法、装置、智能终端及存储介质,能够确定图像中待显示被摄目标的属性特征信息并由此形成被摄目标矩阵,还能通过训练有效确定图像显示选择评判所需的属性权重向量,由此基于确定的属性权重向量有效实现了从多个摄像头所捕获图像中选择待显示图像操作,保证了终端屏幕上能够显示最佳效果的被摄图像,进而提高了智能终端拍摄功能的用户体验。
图1为本发明实施例一提供的一种图像显示的选择方法的流程示意图;
图2a为本发明实施例二提供的一种图像显示的选择方法的流程示意图;
图2b给出了本发明实施例二对目标属性权重向量进行更新训练的实现流程图;
图3为本发明实施例三提供的一种图像显示的选择装置的结构框图;
图4为本发明实施例四提供的一种智能终端的硬件结构示意图。
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。
实施例一
图1为本发明实施例一提供的一种图像显示的选择方法的流程示意图,该方法适用于基于设置有多摄像头的智能终端进行图像捕获时从各摄像头捕获的图像中选择一个进行显示的情况,该方法可以由图像显示的选择装置执行,其中该装置可由软件和/或硬件实现,并一般集成在具有图像拍摄功能的智能终端上。
在本实施例中,所述智能终端具体可以是手机、平板电脑、笔记本、智能会议机、智能教学设备等电子设备。
如图1所示,本发明实施例一提供的一种图像显示的选择方法,包括如下操作:
S101、获取至少两个摄像头当前捕获的实景图像,并确定各实景图像中的被摄目标属性矩阵。
在本实施例中,至少两个摄像头设置于智能终端上,可在进入图像捕获功能后同时启动并实时进行图像采集,本实施将摄像头实时捕获的图像记作实景图像,可以知道的是,多个摄像头可同时对各自图像捕获空间中的人或物进行捕获,由此本步骤在同一时刻可获取到各摄像头捕获的实景图像。
需要说明的是,所获取的实景图像中可以包含摄像头所对应图像捕获空间的所有实物信息,但实景图像中包含的实物信息并一定都是用户想要拍摄的目标实物,本实施例可优选识别实景图像中可作为用户期望拍摄的被摄目标,然后确定各被摄目标在实景图像中的属性信息来形成实景图像的被摄目标属性矩阵。
在本实施例中,对于任一实景图像而言,默认存在一个用于确定被摄目标 的优先级,示例性地,可设定实景图像中所包含人物(可进行人脸识别)的优先级最高,其次是动物(可进行具体动物识别),然后是景物。具体地,可通过对实景图像中实物信息的识别并根据被摄目标优先级确定实景图像中的被摄目标,如,当识别到实景图像中存在人物时,可将人物确定为实景图像中的被摄目标,其次当不存在人物时,才考虑识别是否存在动物并在存在时确定实景图像中的动物作为被摄目标,然后可考虑从实景图像识别出的景物作为被摄目标。
一般地,可以基于预先获取的第三方识别库来匹配识别实景图像中所包含的实物信息具体所属的类别,其中,第三方识别库可认为是包含实物自身具备的特征属性信息的特征信息库,由此通过对实景图像中各实物的特征提取分析可确定实景图像中各实物图像的所属类别,并由此确定实景图像中的被摄目标,如,第三方识别库为人脸识别库时,如果通过人脸识别库中包含的人脸特征信息确定实景图像中存在人物图像,则可将一个人物图像确定为一个被摄目标,若识别存在多个人物图像,则可认为存在多个被摄目标。
在本实施例中,确定出实景图像中的被摄目标后,可以确定出被摄目标在实景图像中的位置属性信息,如在实景图像中所处的坐标位置及在实景图像中所占据区域的大小等,本步骤可基于实景图像中所确定各被摄目标的属性信息形成相应的被摄目标数据矩阵,其中,该被摄目标属性矩阵中的行数表示了实景图像中可能存在的被摄目标的个数,列数则主要表示了用于标识被摄目标的属性信息的具体项数。
S102、根据训练确定的目标属性权重向量及各被摄目标属性矩阵,确定各实景图像的拍摄得分,并选择最高拍摄得分对应的实景图像进行显示。
在本实施例中,从所获取各实景图像中选择任一实景图像进行显示时,其最基本的选择要求就是:待显示的实景图像中所包含被摄目标的被摄角度与其余实景图像相比其显示效果最佳。由此本实施例需要对各实景图像中的被摄目标进行筛选,并选择包含拍摄效果最佳的被摄目标的实景图像为待显示的实景图像。
具体地,本实施例基于上述步骤确定出各实景图像的被摄目标属性矩阵后,相当于确定了实景图像中各被摄目标在实景图像中的位置属性信息,由此可基于被摄目标属性矩阵中各被摄目标的位置属性信息结合位置属性信息中各属性项应当占有的权重来确定被摄目标在实景图像中占据的得分,并由得分结果来评判被摄目标在相应实景图像的拍摄效果。
在本实施例中,位置属性信息中各属性项应当占有的权重可通过向量的形式表示,并记作属性权重向量,且属性权重向量中的元素个数与被摄目标所具备位置属性信息中包含的属性项数相同,而对于属相权重向量中的元素值,则需要预先训练确定,以保证所确定的属相权重向量中各元素值更能体现各属性项在位置属性信息中占据的比重,由此来保证所计算实景图像拍摄得分的准确性。其中,本实施例可基于选定的网络模型结合样本数据信息对属性权重向量进行训练学习,进而获得适用于本实施例的目标属性权重向量。
基于上述S101可知,所确定的被摄目标属性矩阵相当于基于实景图像中各被摄目标的位置属性信息形成,且本实施例给定的属性权重向量适用于对各实景图像的拍摄得分的评判,因此可直接将预先训练的目标属性权重向量与被摄目标属性矩阵相结合,来获得可评判实景图像拍摄质量的拍摄得分。本步骤确定出各实景图像的拍摄得分后,可根据拍摄得分的高低来选择待显示的实景图 像,本实施例优选的认为拍摄得分最高的实景图像中的被摄目标的拍摄效果最好,由此选择拍摄得分最高的实景图像进行显示。
本发明实施例一提供的一种图像显示的选择方法,首先获取至少两个摄像头当前捕获的实景图像,并确定各实景图像中的被摄目标数据矩阵;然后根据原先确定的目标属相权重向量及各被摄目标属性矩阵,确定各实景图像的拍摄得分,最终选择拍摄得分最高的实景图像进行显示。利用该方法,能够确定图像中待显示被摄目标的属性特征信息并由此形成被摄目标矩阵,还能通过训练有效确定图像显示选择评判所需的属性权重向量,由此基于确定的属性权重向量有效实现了从多个摄像头所捕获图像中选择待显示图像操作,保证了终端屏幕上能够显示最佳效果的被摄图像,进而提高了智能终端拍摄功能的用户体验。
实施例二
图2a为本发明实施例二提供的一种图像显示的选择方法的流程示意图。本发明实施例以上述实施例为基础进行优化,在本实施例中,进一步地优化增加了:根据样本图像集通过设定网络模型训练确定所述目标属性权重向量。
在上述优化的基础上,本实施将根据样本图像集通过设定网络模型训练确定所述目标属性权重向量,具体化为:获取设定数量包含被摄目标的样本图像,并确定各所述样本图像中的被摄目标属性信息;基于各所述被摄目标属性信息构建样本图像属性矩阵,并确定对应于所述样本图像属性矩阵的标准评分矩阵;根据所述样本图像属性矩阵和标准评分矩阵,通过线性回归模型更新获得对应于所述样本图像属性矩阵的目标属性权重向量。
进一步地,本实施例还将确定各所述实景图像中的被摄目标属性矩阵,具 体化为:根据选定的被摄目标信息识别库识别各所述实景图像中包含的至少一个被摄目标,并确定各所述被摄目标在相应实景图像中的位置属性信息;基于各所述实景图像中所包含被摄目标的位置属性信息,构成各所述实景图像的被摄目标属性矩阵。
在上述优化的基础上,本实施例进一步将根据训练确定的目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分,具体化为:根据训练确定的目标权重向量及各所述被摄目标属性矩阵,确定对应于各所述被摄目标属性矩阵的目标评分矩阵;将各所述目标评分矩阵中的元素值之和确定为相应实景图像的拍摄得分。
如图2a所示,本发明实施例二提供的一种图像显示的选择方法,具体包括如下操作:
在本实施例中,可认为筛选待显示实景图像所依据的目标属性权重向量具体可通过下述S201至S203实现。
S201、获取设定数量包含被摄目标的样本图像,并确定各样本图像中的被摄目标属性信息。
本步骤具体实现了目标属性权重向量训练所需样本数据集的获取操作,具体地,本实施例将包含被摄目标的样本图像确定为样本数据集。可以理解的是,不同的被摄目标所对应的目标属性权重向量可能存在不同,因此,预先可以选取包含不同被摄目标的样本图像来形成不同的样本数据集,以确定作用于不同被摄目标的目标属性权重向量。
示例性地,以人物作为被摄目标为例,本步骤可以选取设定数量的包含人物信息(需要包含人脸,所包含的人脸可能是一个或多个)的样本图像,且上 述设定数量可基于历史经验人为确定。本实施例可以根据人脸识别算法通过人脸识别库对各样本图像中所具有的人物(相当于被摄目标)属性特征进行确定,并将确定出的属性特征看作各被摄目标的被摄目标属性信息(相当于实施例一提及的位置属性信息)。
具体地,本实施例优选被摄目标属性信息可以通过被摄目标在实景图像中的坐标位置(横坐标和纵坐标)、被摄目标某个部位的宽度值(如被摄目标为人物时人脸的宽度)以及被摄目标在水平方向上的偏转角度(具体相当于被摄目标相对于摄像头的水平偏转角度)等表示,且每个信息表示一个属性参数。本步骤可以通过预先确定的第三方识别库,根据相对应的识别算法,识别出每个样本图像中各被摄目标的被摄目标属性信息。
S202、基于各被摄目标属性信息构建样本图像属性矩阵,并确定对应于样本图像属性矩阵的标准评分矩阵。
在本实施例中,获取各样本图像中被摄目标的被摄目标属性信息后,可以构建样本图像属性矩阵。具体地,可认为所述样本图像属性矩阵的列信息由每个被摄目标的被摄目标属性信息形成,即,样本图像属性矩阵中的每列表示一个属性参数,假设被摄目标属性信息包括4个属性参数,则可认为该样本图像属性矩阵的列数为属性参数个数加1,其中,所增加了1列具体可看作一个偏移属性参数,具体用于数据的线性划分。
同时,样本图像属性矩阵中的每行对应于一个被摄目标的被摄目标属性信息,可认为该样本图像属性矩阵的行数为设定数量样本图像中所有的被摄目标个数,示例性地,若样本图像的设定数量为10,且被摄目标为人物,则可确定10张样本图像中包含的人脸个数,且10张样本图像中人脸个数之和可作为样 本图像属性矩阵的总行数。
此外,在确定样本图像属性矩阵后,可以根据个人喜好为样本图像属性矩阵中的每行被摄目标属性信息打分,具体地,本实施例给出的一个评分标准可以是:根据个人喜好,如果根据个人喜好参照第A行的被摄目标属性信息认为相应被摄目标在样本图像中拍摄位置优于第B行对应的被摄目标,则可给定第A行高于第B行的分数,本实施例优选设定打分的范围为1~100;本实施例给出的另一个评分标准可以是:任意挑选两张样本图像,根据个人喜好如果认为其中一张样本图像X的拍摄效果由于另外一张样本图像Y,则应当保证对样本图像X中给定所有被摄目标的分值之和高于给定样本图像Y所有被摄目标的分值之和。
通过上述打分策略打分之后,样本图像属性矩阵中的每行都对应存在一个分数值,由此可形成行数等同于样本图像属性矩阵的行数,列数为1的标准评分矩阵。
S203、根据样本图像属性矩阵和标准评分矩阵,通过线性回归模型更新获得对应于样本图像属性矩阵的目标属性权重向量。
本实施优选采用线性回归的网络模型更新训练获得目标属性权重向量。本实施例可以将获得的样本图像属性矩阵看作线性回归模型的输入数据集,将标准评分矩阵作为线性回归模型的标准输出。首先给定一个待更新训练的初始属性权重向量,然后,基于该初始权重向量及样本图像属性矩阵,通过该线性回归模型,确定出当前迭代输出的当前评分矩阵;之后基于标准评分矩阵、设定的学习参数以及设定的误差反馈函数等对该当前评分矩阵进行一次迭代更新;并将在迭代更新获得的评分矩阵的基础上再次进行迭代更新操作,直至达到迭 代结束条件获得目标属性权重向量。
进一步地,图2b给出了本发明实施例二对目标属性权重向量进行更新训练的实现流程图。具体地,如图2b所示,对目标属相权重向量的更新包括如下操作:
S2031、获取线性回归模型中的待更新属性权重向量及设定的学习参数。
示例性地,可将设定的初始属性权重向量作为首次迭代的待更新属性权重向量,其中,初始属性权重向量中各向量值可随机设定,且可认为属性权重向量的向量维度与被摄目标属性信息的属性参数总数相同。
本实施例中,可认为学习参数通过多次不同参数取值下进行属性权重向量的迭代更新操作,根据设定误差反馈函数在各次迭代中的迭代结果所形成的曲线对比获得,一般可选取曲线下降较快,收敛效果最好的参数取值作为学习参数,本实施例优选设定学习参数为0.3。可以理解的是,上述学习参数的获得可在执行该步骤之前预先进行,也可给定一组学习参数,并基于每个学习参数执行图2b给定的操作,然后将曲线结果最优的学习参数对应的目标属性权重向量确定为最终的目标属性权重向量。
S2032、根据待更新属性权重向量、标准评分矩阵、样本图像属性矩阵及设定的误差反馈函数梯度公式,确定待更新属性权重向量对应的误差反馈梯度值。
本步骤相当于一次迭代中的一个中间操作,具体用于确定一次计算后当前的待更新属性权重向量对应的误差反馈梯度值。
具体地,所述误差反馈函数梯度公式表示为:
需要说明的是,本实施例中还给出了误差反馈函数的公式表达,具体表示为:J(w)=(Xw)
T(Xw)/(2m),其中,m为样本图像属性矩阵X的行数。通过该误差反馈函数,可以确定每次迭代对应的误差反馈值,且基于每次迭代所获得误差反馈值可形成上述所说的用于确定学习参数的曲线。
S2033、根据待更新属性权重向量、学习参数、误差反馈梯度值及设定的权重更新公式,更新获得的当前属性权重向量。
本步骤可以根据中间计算获得的误差反馈梯度值、学习参数以及当前的待更新属性权重向量结合上述权重更新公式计算获得更新后的当前属性权重向量,该当前属性权重向量就相当于一次迭代训练后更新获得属性权重向量。
S2034、将当前属性权重向量确定为新的待更新属性权重向量,并返回执行S2302,直至满足迭代结束条件。
本步骤具体相当于循环迭代的设定,再循环进行迭代前,首先将前一次迭代获得当前属性权重向量看作当前迭代所需的新的待更新属性权重向量,然后可返回S2302重新执行,直至满足迭代结束条件。本实施例可根据迭代次数设定迭代结束条件,也可根据误差反馈函数的收敛情况决定是否结束迭代。本实施例优选设定迭代结束的迭代次数为400。
S2035、将迭代结束时获得当前属性权重向量确定为样本图像属性矩阵的目标属性权重向量。
示例性地,本实施例将迭代结束时更新确定的当前属性权重向量确定为所 需的目标属性权重向量。
S204、获取至少两个摄像头当前捕获的实景图像。
上述S201至S203相当于一个预处理操作,主要用来获得待显示图像所依据的目标属性权重向量,可以理解的是,基于上述操作可以获取不同被摄目标对应的目标属性权重向量。本步骤相当于图像显示选择的实际应用,首先获取智能终端上至少两个摄像头捕获的实景图像。
S205、根据选定的被摄目标信息识别库识别各实景图像中包含的至少一个被摄目标,并确定各被摄目标在相应实景图像中的位置属性信息。
本步骤中的被摄目标信息识别库相当于上述实施例提及的第三方识别库,可以根据所选定被摄目标的不同确定具体所需的第三方识别库。可以理解的是,在对被摄目标进行识别时,还需要相应的识别算法,一般地,所述识别算法可以根据图像特征提取以及图像色彩分析或图像匹配等多种策略实现。
本实施例中,实景图像中各被摄目标的位置属性信息与样本图像中被摄目标的被摄目标属性信息相同,由相同的属性项构成。通过对被摄目标的识别分析,可以确定被摄目标在实景图像中的位置属性信息。
S206、基于各实景图像中所包含被摄目标的位置属性信息,构成各实景图像的被摄目标属性矩阵。
示例性地,本实施例可分别为每个实景图像构建一个被摄目标属性矩阵,该被摄目标属性矩阵具体由实景图像所包含的被摄目标对应的位置属性信息构成。假设位置属性信息由4个属性参数构成,则加上额外设定的偏移参数,可确定被摄目标属性矩阵的列数为5,行数为实景图像所包含被摄目标的个数,若一个实景图像包含4个被摄目标(如人物),则可相应获得一个4×5的被摄 目标属性矩阵。
本步骤可以基于上述描述确定出各实景图像对应的被摄目标属性矩阵。
S207、根据训练确定的目标权重向量及各被摄目标属性矩阵,确定对应于各被摄目标属性矩阵的目标评分矩阵。
具体地,训练更新获得被摄目标对应的目标权重向量后,可以将该目标权重向量与形成的所有被摄目标属性矩阵进行矩阵计算。
示例性地,就一个4×5的被摄目标属性矩阵而言,其目标权重向量的维度为5,相当于一个5×1的矩阵,将被摄目标属性矩阵左乘该目标权重向量,可获得一个4×1的目标评分矩阵。该目标评分矩阵中的一个元素值对应一个被摄目标的得分。
S208、将各目标评分矩阵中的元素值之和确定为相应实景图像的拍摄得分,并选择最高拍摄得分对应的实景图像进行显示。
本实施例可分别计算每个目标评分矩阵中的元素值之和,并确定为相应实景图像的拍摄得分,将所有拍摄得分进行比对,可优选选择最高拍摄得分对应的实景图像,并将该实景图像在智能终端上进行显示。
本发明实施例二提供的一种图像显示的选择方法,具体增加了目标属性权重向量的训练确定操作,并具体化了目标属性权重向量的更新训练过程;同时,还具体化了被摄目标属性矩阵的确定过程以及待显示实景图像的选择过程。利用该方法,能够通过网络模型准确有效地训练确定图像显示所需的目标属性权重向量,由此在所捕获图像数据线性可分情况下简单有效的从多个摄像头捕获的图像中确定全局最优的可显示图像,从而保证了终端屏幕上能够显示最佳效果的被摄图像,进而提高了智能终端拍摄功能的用户体验。
实施例三
图3为本发明实施例三提供的一种图像显示的选择装置的结构框图。该装置适用于基于设置有多摄像头的智能终端进行图像捕获时从各摄像头捕获的图像中选择一个进行显示的情况,其中该装置可由软件和/或硬件实现,并一般集成在具有图像拍摄功能的智能终端上。如图3所示,该装置包括:属性矩阵确定模块31、拍摄得分确定模块32以及图像选择显示模块33。
其中,属性矩阵确定模块31,用于获取至少两个摄像头当前捕获的实景图像,并确定各所述实景图像中的被摄目标属性矩阵;
拍摄得分确定模块32,用于根据所述目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分;
图像选择显示模块33,用于选择最高拍摄得分对应的实景图像进行显示。
在本实施例中,该装置首先通过属性矩阵确定模块31获取至少两个摄像头当前捕获的实景图像,并确定各所述实景图像中的被摄目标属性矩阵;然后通过拍摄得分确定模块32根据所述目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分;最终通过图像选择显示模块33选择最高拍摄得分对应的实景图像进行显示。
本发明实施例三提供的一种图像显示的选择装置,能够确定图像中待显示被摄目标的属性特征信息并由此形成被摄目标矩阵,还能通过训练有效确定图像显示选择评判所需的属性权重向量,由此基于确定的属性权重向量有效实现了从多个摄像头所捕获图像中选择待显示图像操作,保证了终端屏幕上能够显示最佳效果的被摄图像,进而提高了智能终端拍摄功能的用户体验。
进一步地,该装置还优化包括了:目标权重确定模块34,用于根据样本图 像集通过设定网络模型训练获得目标属性权重向量。
在上述优化的基础上,目标权重确定模块34,包括:
样本信息获取单元,用于获取设定数量包含被摄目标的样本图像,并确定各所述样本图像中的被摄目标属性信息;
样本矩阵构建单元,基于各所述被摄目标属性信息构建样本图像属性矩阵,并确定对应于所述样本图像属性矩阵的标准评分矩阵;
权重更新确定单元,用于根据所述样本图像属性矩阵和标准评分矩阵,通过线性回归模型更新获得对应于所述样本图像属性矩阵的目标属性权重向量。
进一步地,权重更新确定单元,具体用于:
获取线性回归模型中的待更新属性权重向量及设定的学习参数;根据所述待更新属性权重向量、标准评分矩阵、样本图像属性矩阵及设定的误差反馈函数梯度公式,确定所述待更新属性权重向量对应的误差反馈梯度值;根据所述待更新属性权重向量、学习参数、误差反馈梯度值及设定的权重更新公式,更新获得的当前属性权重向量;将所述当前属性权重向量确定为新的待更新属性权重向量,并返回迭代执行权重向量的更新操作,直至满足迭代结束条件;将迭代结束时获得当前属性权重向量确定为所述样本图像属性矩阵的目标属性权重向量。
进一步地,误差反馈函数梯度公式表示为:
进一步地,属性矩阵确定模块31,具体用于:
获取至少两个摄像头当前捕获的实景图像;根据选定的被摄目标信息识别库识别各所述实景图像中包含的至少一个被摄目标,并确定各所述被摄目标在相应实景图像中的位置属性信息;基于各所述实景图像中所包含被摄目标的位置属性信息,构成各所述实景图像的被摄目标属性矩阵。
在上述优化的基础上,图像选择显示模块33,具体用于:
根据所述目标权重向量及各所述被摄目标属性矩阵,确定对应于各所述被摄目标属性矩阵的目标评分矩阵;将各所述目标评分矩阵中的元素值之和确定为相应实景图像的拍摄得分,并选择最高拍摄得分对应的实景图像进行显示。
实施例四
图4为本发明实施例四提供的一种智能终端的硬件结构示意图,如图4所示,本发明实施例四提供的智能终端,包括:至少两个摄像头41,处理器42和存储装置43。该智能终端中的处理器可以是一个或多个,图4中以一个处理器42为例,所述智能终端中的至少两个摄像头41可以通过总线或其他方式分别与处理器42和存储装置43连接,且处理器42和存储装置43也通过总线或其他方式连接,图4中以通过总线连接为例。
在本实施例中,智能终端中的处理器42可以控制至少两个摄像头41同时进行图像捕获,此外,至少两个摄像头41所捕获的实景图像还可以存储至存储装置43,以实现图像数据的存储。
该智能终端中的存储装置43作为一种计算机可读存储介质,可用于存储一 个或多个程序,所述程序可以是软件程序、计算机可执行程序以及模块,如本发明实施例中图像显示的选择方法对应的程序指令/模块(例如,附图3所示的图像显示的选择装置中的模块,包括:属性矩阵确定模块31、拍摄得分确定模块32以及图像选择显示模块33)。处理器42通过运行存储在存储装置43中的软件程序、指令以及模块,从而执行智能终端的各种功能应用以及数据处理,即实现上述方法实施例中图像显示的选择方法。
存储装置43可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储装置43可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储装置43可进一步包括相对于处理器42远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
并且,当上述智能终端所包括一个或者多个程序被所述一个或者多个处理器42执行时,程序进行如下操作:
获取至少两个摄像头当前捕获的实景图像,并确定各所述实景图像中的被摄目标属性矩阵;根据训练确定的目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分,并选择最高拍摄得分对应的实景图像进行显示。
此外,本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被控制装置执行时实现本发明实施例一或实施例二提供的图像显示的选择方法,该方法包括:获取至少两个摄像头当前捕获的实景图像,并确 定各所述实景图像中的被摄目标属性矩阵;根据训练确定的目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分,并选择最高拍摄得分对应的实景图像进行显示。
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。
Claims (10)
- 一种图像显示的选择方法,其特征在于,包括:获取至少两个摄像头当前捕获的实景图像,并确定各所述实景图像中的被摄目标属性矩阵;根据训练确定的目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分,并选择最高拍摄得分对应的实景图像进行显示。
- 根据权利要求1所述的方法,其特征在于,还包括:根据样本图像集通过设定网络模型训练确定所述目标属性权重向量。
- 根据权利要求2所述的方法,其特征在于,所述根据样本图像集通过设定网络模型训练确定所述目标属性权重向量,包括:获取设定数量包含被摄目标的样本图像,并确定各所述样本图像中的被摄目标属性信息;基于各所述被摄目标属性信息构建样本图像属性矩阵,并确定对应于所述样本图像属性矩阵的标准评分矩阵;根据所述样本图像属性矩阵和标准评分矩阵,通过线性回归模型更新获得对应于所述样本图像属性矩阵的目标属性权重向量。
- 根据权利要求3所述的方法,其特征在于,所述根据所述样本图像属性矩阵和标准评分矩阵,通过线性回归模型更新获得对应于所述样本图像属性矩阵的目标属性权重向量,包括:获取线性回归模型中的待更新属性权重向量及设定的学习参数;根据所述待更新属性权重向量、标准评分矩阵、样本图像属性矩阵及设定的误差反馈函数梯度公式,确定所述待更新属性权重向量对应的误差反馈梯度值;根据所述待更新属性权重向量、学习参数、误差反馈梯度值及设定的权重更新公式,更新获得的当前属性权重向量;将所述当前属性权重向量确定为新的待更新属性权重向量,并返回迭代执行权重向量的更新操作,直至满足迭代结束条件;将迭代结束时获得当前属性权重向量确定为所述样本图像属性矩阵的目标属性权重向量。
- 根据权利要求1所述的方法,其特征在于,所述确定各所述实景图像中的被摄目标属性矩阵,包括:根据选定的被摄目标信息识别库识别各所述实景图像中包含的至少一个被摄目标,并确定各所述被摄目标在相应实景图像中的位置属性信息;基于各所述实景图像中所包含被摄目标的位置属性信息,构成各所述实景图像的被摄目标属性矩阵。
- 根据权利要求1-6任一项所述的方法,其特征在于,所述根据训练确定的目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分,包括:根据训练确定的目标权重向量及各所述被摄目标属性矩阵,确定对应于各所述被摄目标属性矩阵的目标评分矩阵;将各所述目标评分矩阵中的元素值之和确定为相应实景图像的拍摄得分。
- 一种图像显示的选择装置,其特征在于,包括:属性矩阵确定模块,用于获取至少两个摄像头当前捕获的实景图像,并确定各所述实景图像中的被摄目标属性矩阵;拍摄得分确定模块,用于根据所述目标属性权重向量及各所述被摄目标属性矩阵,确定各所述实景图像的拍摄得分;图像选择显示模块,用于选择最高拍摄得分对应的实景图像进行显示。
- 一种智能终端,包括:至少两个摄像头,其特征在于,还包括:一个或多个处理器;存储装置,用于存储一个或多个程序;所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一项所述的图像显示的选择方法。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-7中任一项所述的图像显示的选择方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711104297.6 | 2017-11-10 | ||
| CN201711104297.6A CN107844774A (zh) | 2017-11-10 | 2017-11-10 | 图像显示的选择方法、装置、智能终端及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019090901A1 true WO2019090901A1 (zh) | 2019-05-16 |
Family
ID=61682622
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/116738 Ceased WO2019090901A1 (zh) | 2017-11-10 | 2017-12-17 | 图像显示的选择方法、装置、智能终端及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107844774A (zh) |
| WO (1) | WO2019090901A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112948616A (zh) * | 2021-01-25 | 2021-06-11 | 上海微亿智造科技有限公司 | 用于飞拍过程中拍摄位点搜寻的方法和系统 |
| CN114998043A (zh) * | 2022-07-15 | 2022-09-02 | 中国平安财产保险股份有限公司 | 车辆配件定损方法、装置、电子设备及存储介质 |
| CN120238633A (zh) * | 2025-05-30 | 2025-07-01 | 北京云驰未来科技有限公司 | 基于摄像头动态权重的道路摄像头视频选取方法及系统 |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111307798B (zh) * | 2018-12-11 | 2023-03-17 | 成都智叟智能科技有限公司 | 采用多种采集技术的物品查验方法 |
| CN110399848A (zh) * | 2019-07-30 | 2019-11-01 | 北京字节跳动网络技术有限公司 | 视频封面生成方法、装置及电子设备 |
| CN111339811B (zh) * | 2019-08-27 | 2024-02-20 | 杭州海康威视系统技术有限公司 | 图像处理方法、装置、设备及存储介质 |
| CN112735180A (zh) * | 2021-01-15 | 2021-04-30 | 摩拜(北京)信息技术有限公司 | 停车引导方法及装置 |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107025437A (zh) * | 2017-03-16 | 2017-08-08 | 南京邮电大学 | 基于智能构图及微表情分析的智能拍照方法及装置 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6766036B1 (en) * | 1999-07-08 | 2004-07-20 | Timothy R. Pryor | Camera based man machine interfaces |
| JP4260215B1 (ja) * | 2007-08-29 | 2009-04-30 | 任天堂株式会社 | 撮像装置 |
| CN104168418A (zh) * | 2014-06-30 | 2014-11-26 | 宇龙计算机通信科技(深圳)有限公司 | 一种图像获取装置、图像获取方法及终端 |
| CN105491309A (zh) * | 2015-11-30 | 2016-04-13 | 东莞酷派软件技术有限公司 | 一种图像显示方法以及装置 |
| CN107169093B (zh) * | 2017-05-12 | 2019-12-13 | 北京奇艺世纪科技有限公司 | 一种目标图像的获取方法及装置 |
| CN107277427A (zh) * | 2017-05-16 | 2017-10-20 | 广州视源电子科技股份有限公司 | 自动选择摄像头画面的方法、装置及音视频系统 |
-
2017
- 2017-11-10 CN CN201711104297.6A patent/CN107844774A/zh active Pending
- 2017-12-17 WO PCT/CN2017/116738 patent/WO2019090901A1/zh not_active Ceased
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107025437A (zh) * | 2017-03-16 | 2017-08-08 | 南京邮电大学 | 基于智能构图及微表情分析的智能拍照方法及装置 |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112948616A (zh) * | 2021-01-25 | 2021-06-11 | 上海微亿智造科技有限公司 | 用于飞拍过程中拍摄位点搜寻的方法和系统 |
| CN112948616B (zh) * | 2021-01-25 | 2022-08-12 | 上海微亿智造科技有限公司 | 用于飞拍过程中拍摄位点搜寻的方法和系统 |
| CN114998043A (zh) * | 2022-07-15 | 2022-09-02 | 中国平安财产保险股份有限公司 | 车辆配件定损方法、装置、电子设备及存储介质 |
| CN120238633A (zh) * | 2025-05-30 | 2025-07-01 | 北京云驰未来科技有限公司 | 基于摄像头动态权重的道路摄像头视频选取方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107844774A (zh) | 2018-03-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019090901A1 (zh) | 图像显示的选择方法、装置、智能终端及存储介质 | |
| CN113705297B (zh) | 检测模型的训练方法、装置、计算机设备和存储介质 | |
| CN111935479B (zh) | 一种目标图像确定方法、装置、计算机设备及存储介质 | |
| CN111667001B (zh) | 目标重识别方法、装置、计算机设备和存储介质 | |
| CN112734747B (zh) | 一种目标检测方法、装置、电子设备和存储介质 | |
| CN109583509B (zh) | 数据生成方法、装置及电子设备 | |
| WO2019100724A1 (zh) | 训练多标签分类模型的方法和装置 | |
| CN112446270A (zh) | 行人再识别网络的训练方法、行人再识别方法和装置 | |
| CN108710847A (zh) | 场景识别方法、装置及电子设备 | |
| US10650234B2 (en) | Eyeball movement capturing method and device, and storage medium | |
| CN108230395A (zh) | 双视角图像校准及图像处理方法、装置、存储介质和电子设备 | |
| CN109299658B (zh) | 脸部检测方法、脸部图像渲染方法、装置及存储介质 | |
| CN111832561B (zh) | 基于计算机视觉的字符序列识别方法、装置、设备和介质 | |
| WO2019114726A1 (zh) | 图像识别方法、装置、电子设备以及可读存储介质 | |
| WO2019056503A1 (zh) | 门店监控评价方法、装置及存储介质 | |
| CN112232140A (zh) | 人群计数方法、装置、电子设备及计算机存储介质 | |
| CN108875505B (zh) | 基于神经网络的行人再识别方法和装置 | |
| CN113179421B (zh) | 视频封面选择方法、装置、计算机设备和存储介质 | |
| CN112287867A (zh) | 一种多摄像头的人体动作识别方法及装置 | |
| CN115565253A (zh) | 一种动态手势实时识别方法、装置、电子设备和存储介质 | |
| CN109063776A (zh) | 图像再识别网络训练方法、装置和图像再识别方法及装置 | |
| CN110222718A (zh) | 图像处理的方法及装置 | |
| CN111126254A (zh) | 图像识别方法、装置、设备及存储介质 | |
| WO2020172870A1 (zh) | 一种目标对象的移动轨迹确定方法和装置 | |
| CN114511897A (zh) | 一种身份识别方法、系统、存储介质及服务器 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17931241 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/10/2020) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17931241 Country of ref document: EP Kind code of ref document: A1 |