WO2020056690A1 - Method and apparatus for presenting interface associated with video content, and electronic device - Google Patents

Method and apparatus for presenting interface associated with video content, and electronic device Download PDF

Info

Publication number
WO2020056690A1
WO2020056690A1 PCT/CN2018/106785 CN2018106785W WO2020056690A1 WO 2020056690 A1 WO2020056690 A1 WO 2020056690A1 CN 2018106785 W CN2018106785 W CN 2018106785W WO 2020056690 A1 WO2020056690 A1 WO 2020056690A1
Authority
WO
WIPO (PCT)
Prior art keywords
video content
pixel
frame image
image
video frame
Prior art date
Application number
PCT/CN2018/106785
Other languages
French (fr)
Chinese (zh)
Inventor
菲永奥利维尔
李建亿
Original Assignee
太平洋未来科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 太平洋未来科技(深圳)有限公司 filed Critical 太平洋未来科技(深圳)有限公司
Priority to PCT/CN2018/106785 priority Critical patent/WO2020056690A1/en
Priority to CN201811119117.6A priority patent/CN109218697B/en
Publication of WO2020056690A1 publication Critical patent/WO2020056690A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/643Hue control means, e.g. flesh tone control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/04Supports for telephone transmitters or receivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6812Motion detection based on additional sensors, e.g. acceleration sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/685Vibration or motion blur correction performed by mechanical compensation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals

Definitions

  • the present invention relates to the field of Internet application technology, and in particular, to a method, a device, and an electronic device for presenting a video content association interface.
  • video applications can be run on mobile terminals to present video content for the convenience of users to watch.
  • users can comment on the content of the application on the user interface associated with presenting video content.
  • the interfaces associated with video content in related technologies are usually presented in a single background.
  • the review interface is generally presented in the form of a whiteboard. Too simple.
  • more and more online videos are completed by taking selfies with mobile devices.
  • the effect of the camera of the mobile device to obtain videos or pictures is not only affected by the surrounding ambient light, but also by the stability of the shooting. The quality is not conducive to the processing of subsequent images or videos, and the use of a mobile device's stand or selfie stick cannot meet the requirements.
  • the presenting method, device, and electronic device of the video content association interface provided by the embodiments of the present invention are used to solve at least the foregoing problems in related technologies.
  • An aspect of the embodiments of the present invention provides a method for presenting a video content association interface, including:
  • the extracting color information from the video frame image includes: calculating a hue average value of the video frame image; traversing pixels of the video frame image, calculating a hue value of the pixel and the hue average value. Determine whether the color difference is greater than a preset threshold; if the color difference is greater than the preset threshold, add the pixel to the main-tone pixel list, and determine all the pixels according to the tone value of the pixel in the main-tone pixel list Mentioned color information.
  • the extracting color information from the video frame image includes: determining a weight value corresponding to the pixel according to a distance between each pixel in the video frame image and the video content association interface; and according to the pixel The hue value and the corresponding weight value to calculate the color information.
  • the extracting the light angle from the video frame image includes: identifying and extracting a target object image in the video frame image, wherein the target object is a person or an animal; extracting a nose in the target object image
  • the sub-image of the partial region is obtained based on the light intensity weighting center of the sub-image and the weighting center of the target object image to obtain the light angle.
  • generating the background of the video content association interface according to the color information and the light signal angle includes: generating a background color of the video content association interface according to the color information; The brightness of the background color is adjusted to obtain the background of the video content association interface.
  • Another aspect of the embodiments of the present invention provides a device for presenting a video content association interface, including:
  • An obtaining module for obtaining a video frame image of a currently playing video content at a preset time; an extracting module for extracting color information and a light angle from the video frame image; a generating module for The light angle generates the background of the video content association interface, wherein the video content and the video content association interface are presented on the same interface.
  • the extraction module includes: a first calculation unit for calculating an average hue of the video frame image; a traversal unit for traversing pixels of the video frame image, calculating a hue value of the pixel and the The color difference of the hue average value; a determining unit for determining whether the color difference is greater than a preset threshold; a first determining unit for adding the pixel to the main-tone pixel list if the color difference is greater than a preset threshold; Tonal values of the pixels in the main-tone pixel list determine the color information.
  • the extraction module includes: a second determination unit, configured to determine a weight value corresponding to the pixel according to a distance between each pixel in the video frame image and the video content association interface; a second calculation unit, And is configured to calculate the color information according to a hue value of the pixel and a corresponding weight value.
  • the extraction module includes: a recognition unit for identifying and extracting a target object image in the video frame image, wherein the target object is a person or an animal; an extraction unit for extracting the target object image
  • the sub-image of the middle nose region is obtained based on the light-weighted center of the sub-image and the weighted center of the target object image to obtain the light angle.
  • the generating module is configured to generate a background color of the video content association interface according to the color information; and adjust the brightness of the background color according to the light angle to obtain the background of the video content association interface.
  • Another aspect of the embodiments of the present invention provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a memory that can be used by the at least one processor And an instruction that is executed by the at least one processor, so that the at least one processor can execute any one of the methods for presenting a video content association interface.
  • the electronic device further includes an image acquisition module including a lens, an auto-focusing voice coil motor, a mechanical image stabilizer, and an image sensor, and the lens is fixed on the auto-focusing voice coil motor.
  • the lens is used to acquire an image
  • the image sensor transmits the image acquired by the lens to the recognition module
  • the autofocus voice coil motor is mounted on the mechanical image stabilizer
  • the processing module is based on the inside of the lens
  • the feedback of the lens shake detected by the gyroscope drives the action of the mechanical image stabilizer to achieve lens shake compensation.
  • the mechanical anti-shake device includes a movable plate, a movable frame, an elastic restoring mechanism, a base plate, and a compensation mechanism; a central portion of the movable plate is provided with a through hole through which the lens passes, and the auto-focusing voice coil motor Installed on the movable plate, the movable plate is installed in the movable frame, and the opposite sides of the movable plate are slidingly fitted with the inner walls of the opposite sides of the movable frame so that the movable plate can be moved along Reciprocating sliding in the first direction; the size of the movable frame is smaller than that of the substrate, and two opposite sides of the movable frame are connected to the substrate through two elastic restoring mechanisms, respectively.
  • the compensation mechanism includes a drive shaft, gears, A gear track and a limit track, the drive shaft is mounted on the base plate, the drive shaft is connected with the gear drive;
  • the gear track is provided on the movable plate, and the gear is mounted In the gear track, when the gear rotates, the gear track enables the movable plate to generate a displacement in a first direction and a displacement in a second direction, wherein the first direction is perpendicular to the second direction;
  • the limit track is disposed on the movable plate or the base plate, and the limit track is used to prevent the gear from detaching from the gear track.
  • a side of the movable plate is provided with a waist-shaped hole, and the waist-shaped hole is provided with a plurality of teeth that mesh with the gear along a circumferential direction thereof, and the waist-shaped hole and the plurality of teeth together constitute the A gear track, wherein the gear is located in the waist-shaped hole and meshes with the teeth; the limit track is disposed on the base plate, and a bottom of the movable plate is provided with a limit position within the limit track Piece, the limit track makes the movement track of the limit piece in a waist shape.
  • the limiting member is a protrusion provided on the bottom surface of the movable plate.
  • the gear track includes a plurality of cylindrical protrusions provided on the movable plate, the plurality of cylindrical protrusions are evenly spaced along the second direction, and the gear is in phase with the plurality of protrusions.
  • the limit track is a first arc-shaped stopper and a second arc-shaped stopper provided on the movable plate, and the first arc-shaped stopper and the second arc-shaped stopper are respectively It is arranged on two opposite sides of the gear track in the first direction, and the first arc-shaped stopper, the second arc-shaped stopper, and a plurality of the protrusions cooperate to make the moving track of the movable plate Waist-shaped.
  • the elastic recovery mechanism includes a telescopic spring.
  • the image acquisition module includes a mobile phone and a bracket for mounting the mobile phone.
  • the bracket includes a mobile phone mounting base and a retractable support rod;
  • the mobile phone mounting base includes a retractable connection plate and a folding plate group installed at opposite ends of the connection plate, and one end of the support rod is connected to the connection The middle portions of the plates are connected by a damping hinge;
  • the folded plate group includes a first plate body, a second plate body, and a third plate body, wherein one of two opposite ends of the first plate body is in phase with the connecting plate.
  • the other end of the opposite ends of the first plate body is hinged to one of the opposite ends of the second plate body; the other end of the opposite ends of the second plate body is connected to the third plate One end of the two opposite ends of the body is hinged; the second plate body is provided with an opening for the corner of the mobile phone to be inserted; when the mobile phone mount is used to install the mobile phone, the first plate body, the second plate body, and the first plate body
  • the three plates are folded in a right triangle state, the second plate is a hypotenuse of a right triangle, and the first plate and the third plate are right angles of a right triangle, wherein the third plate is One side of the side is attached to one side of the connecting plate , One of the opposite ends of the third plate member and the other end opposite ends of the first plate against body.
  • a first connection portion is provided on one side surface of the third plate body, and a first connection portion that is matched with the first connection portion is provided on a side surface where the connection plate is in contact with the third plate body.
  • a second connection portion is provided at one end of the opposite ends of the first plate body, and a second connection is provided at the other end of the opposite ends of the third plate body to cooperate with the second connection portion.
  • the other end of the support rod is detachably connected to a base.
  • the method, device, and electronic device for presenting the video content association interface provided by the embodiments of the present invention.
  • the video content association interface can be switched as the background of the currently played video content changes, making the video content association interface presentation richer , Flexible, convenient, and improve the user's interactive experience.
  • the anti-shake hardware structure of the mobile phone camera and the mobile phone selfie stand also further enhance the shooting effect, which is more conducive to subsequent image or video processing.
  • FIG. 1 is a flowchart of a method for presenting a video content association interface according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for presenting a video content association interface according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for presenting a video content association interface according to an embodiment of the present invention
  • FIG. 4 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device that executes a method for presenting a video content association interface provided by a method embodiment of the present invention
  • FIG. 8 is a schematic structural diagram of an image acquisition module according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a first mechanical vibration stabilizer provided by an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a bottom surface of a first movable board according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a second mechanical vibration stabilizer provided by an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a bottom surface of a second movable board provided by an embodiment of the present invention.
  • FIG. 13 is a structural diagram of a stent provided by an embodiment of the present invention.
  • FIG. 14 is a schematic state diagram of a stent provided by an embodiment of the present invention.
  • FIG. 15 is a schematic view of another state of a stent according to an embodiment of the present invention.
  • FIG. 16 is a structural state diagram when the mounting base and the mobile phone are connected according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for presenting a video content association interface according to an embodiment of the present invention.
  • a method for presenting a video content association interface according to an embodiment of the present invention includes:
  • Step S101 Obtain a video frame image of a currently playing video content at a preset time.
  • the video content association interface may be operated by a user to perform comments and sharing on the played video content, for example, a comment on the video content and an interface for generating a comment; a sharing and interaction identifier related to the played video content The interface where it is located; recommendation interface related to the video content being played, etc.
  • These video content association interfaces and the currently played video content are presented on the same user interface of the mobile terminal. Therefore, the embodiments of the present invention are directed to enabling the background of the video content association interface to be associated with the currently played video content, so that the video content is associated.
  • the interface presentation is more abundant, flexible and convenient, which improves the user's interactive experience.
  • the background of the video content association interface can change according to the background of the video content being played.
  • the background of the video content changes accordingly. Therefore, the video content association interface generated based on the background of the video content being played. The background of the video content will change accordingly. In order to reflect this change in time, when the background of the video content changes, the interface associated with the video content is switched accordingly.
  • the background presented by the video content will also change.
  • each scene is composed of several video frames. Therefore, the current content of the currently playing video can be obtained every preset time.
  • the acquired video frame image can represent a corresponding scene background.
  • the preset time may be determined in advance according to the number of video frames corresponding to each scene, or may be an average time for each scene switch obtained by performing statistical analysis on a large number of videos before. The present invention here No restrictions.
  • step S102 color information and light angle are extracted from the video frame image.
  • the color and light angle in the extracted video frame image can be used as the background that can reflect the currently playing video content.
  • This step can be divided into two parts, one part is to extract color information from the video frame image, and the other part is to extract the light angle from the video frame image. The execution of the two parts is not sequential.
  • color information can be extracted in the following three ways.
  • the first embodiment includes the following sub-steps:
  • S1022 Traverse pixels of the video frame image, and calculate a color difference between a hue value of the pixel and the hue average value.
  • the color information is the main color tone that can best represent the video frame image.
  • the main color tone does not refer to the most colorful color, but refers to the image in the video frame The most eye-catching shade.
  • the hue value may be represented by an RGB value, or may be represented by a hexadecimal color value that is more commonly applicable now.
  • each pixel in the video frame image is traversed, and the color difference between the hue value and the hue average value of each pixel is calculated.
  • the pixel is added to the main hue pixel list. After all pixels are compared with the tone value, an average value of the tone values of the pixels included in the main-tone pixel list is calculated, and the average value is determined as the color information of the video frame image.
  • the second embodiment includes the steps of: determining a weight value corresponding to the pixel according to a distance between each pixel in the video frame image and the video content association interface; and according to a hue value and a corresponding weight value of the pixel To calculate the color information.
  • a weighted average of the hue values of all pixels in the video frame image may be obtained, where the points closer to the video content association interface in the video frame image have greater weights and the farther points The smaller the weight.
  • the obtained hue value is more biased to the color of the video frame image in a part close to the video content association interface, so that the transition of the color of the video content association interface and the color of the currently played video content is more natural.
  • the hue value of each pixel of a video frame image may also be directly covered on the video content association interface. If it cannot be completely covered, the weighted average of the above-mentioned video frame image tone is taken for each pixel of the uncovered video content association interface portion; if it can be completely covered, when the video content association interface is smaller than the video frame image interface, the video can be The frame image interface is reduced to the size of the video content association interface.
  • extracting a light angle from the video frame image includes the following sub-steps:
  • the target object is a person or an animal.
  • the recognition process may use an image recognition technology to identify a target object, such as contour extraction, pattern matching, or feature comparison by using multiple types of target object images stored in a preset database library, etc.
  • Image recognition technology is not limited. After the target object is identified, it can be matted along the outline of the identified target object, or an image keying technique, such as the related matting technology in Photoshop, can be used to extract the target object from the first picture.
  • S1022 ' Extract a sub-image of the nasal region in the target object image, and obtain the light angle based on the light-intensity weighting center of the sub-image and the weight center of the target object image.
  • the facial features of the target object are extracted from the target object image through a human face, animal face detection algorithm, or any CNN-based human face, animal face detection algorithm, etc. that are well known to those skilled in the art. Because the nose is protruding from the face of the target object in the five senses, the light and dark of the nose area are more easily affected by the ambient light when taking pictures. Therefore, in this embodiment, the nose in the target feature is extracted to obtain a sub-image of the nose area.
  • the corresponding light intensity weighting center is determined according to the image moment of the sub-image.
  • An image moment is a set of moments calculated from digital graphics. It usually describes the global features of the image and provides a lot of information about the different types of geometric features of the image, such as size, position, orientation, and shape. For example, a The order moment is related to the shape. The second order moment shows the degree of expansion of the curve around the average value of the line, and the third order moment is a measure of the symmetry of the mean value. From the second and third order moments, a group of 7 constants can be derived. Order moments and invariant order moments are statistical characteristics of images, which can be used to classify images based on this, which are common knowledge in the art, and the present invention will not repeat them here.
  • the light intensity weighting center of the sub-picture is determined, it is compared with the weighting center of the sub-image (the weighting center is the collection center of the image), and the coordinate position of the weighting center of the image is compared with that of the sub-picture.
  • the coordinate position of the light intensity weighted center is compared.
  • the direction from the geometric center to the light intensity weighted center is the direction of the ambient light.
  • we can establish the coordinate system by selecting the coordinate origin and obtain the angle between the vector and the X axis. , As the estimated light angle of the video frame image.
  • the light estimation angle can also be calculated by other non-proprietary algorithms, which is not limited in the present invention. It should be noted that, in the embodiment of the present invention, the ambient light will be considered to be unidirectional and uniform.
  • the sub-image in order to make the light estimation angle more accurate, may be divided into several sub-regions, and a sub-light intensity weighting center of each of the sub-regions is determined;
  • the light intensity weighting center is compared with the weighting center of the target object image to obtain an estimated sub-ray angle of each of the sub-regions; a sub-light intensity of each of the sub-regions is calculated;
  • the sub-images can be divided into four equal parts to obtain four sub-regions, and the sub-light intensity weighting center of each sub-region and the sub-ray estimation angle of each sub-region are determined according to the above method.
  • the light intensity corresponding to the sub-picture is obtained according to the light and dark contrast information therein.
  • the sub-light intensity of each sub-region is used as the weight of the sub-light estimation angle of the sub-region; finally ,
  • the sub-ray estimation angles of the four sub-areas are calculated by adding and averaging according to their corresponding weights to obtain the average ray estimation angle.
  • the calculation of the light angle can be performed for each target object image in the above manner, and then averaged and summed; or the position of each target object image on the video frame image can also be calculated. Determine the corresponding weights with the pose, and then perform weighted summation according to the weights to obtain the final light angle of the video frame image.
  • Step S103 Generate a background of the video content association interface according to the color information and the light angle, wherein the video content and the video content association interface are presented on the same interface.
  • the background of the video content association interface is generated according to the color information and light angle obtained in step S102, so that the video content association interface is presented with a background that is the same as or similar to the background of the video frame image.
  • this step may include: generating a background color of the video content association interface according to the color information; adjusting the brightness of the background color according to the light angle to obtain the background of the video content association interface.
  • step S102 use the hue value obtained in the first or second embodiment in step S102 as the background color of the video content association interface, or perform each step according to the method described in the third embodiment in step S103. Coverage of the pixel tone value; then, the brightness of the background color is adjusted according to the light angle of the video frame image obtained in step S102. Before this, the relative position relationship between the currently playing video content interface and the video content association interface can be adjusted Divide the video content association interface into several parts (for example, if the two interfaces are distributed left and right, the video content association interface is divided into three parts: left, middle, and right; if the two interfaces are distributed up and down, then The video content association interface is divided into four parts: up, down, left, and so on).
  • a method for presenting a video content association interface according to an embodiment of the present invention.
  • the video content association interface can be switched according to the background change of the currently played video content, making the video content association interface presentation richer, more flexible, and convenient, and improving the user's interactive experience. .
  • FIG. 4 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention. As shown in FIG. 3, the device specifically includes: an acquisition module 100, an extraction module 200, and a generation module 300. among them,
  • the obtaining module 100 is configured to obtain a video frame image of a currently playing video content at a preset time
  • An extraction module 200 is configured to extract color information and light angle from the video frame image; a generation module 300 is configured to generate a background of the video content association interface according to the color information and light angle, wherein the video content The interface associated with the video content is presented on the same interface.
  • the presenting device for a video content association interface provided by an embodiment of the present invention is specifically configured to execute the method provided by the embodiment shown in FIG. 1, and its implementation principles, methods, and functional uses are similar to the embodiment shown in FIG. 1, and are not described herein. More details.
  • FIG. 5 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention. As shown in FIG. 5, the device specifically includes: an obtaining module 100, an extracting module 200, and a generating module 300. among them,
  • the obtaining module 100 is configured to obtain a video frame image of a currently playing video content at a preset time
  • An extraction module 200 is configured to extract color information and light angle from the video frame image; a generation module 300 is configured to generate a background of the video content association interface according to the color information and light angle, wherein the video content The interface associated with the video content is presented on the same interface.
  • the extraction module 200 includes: a first calculation unit 210, a traversal unit 220, a determination unit 230, a first determination unit 240, a recognition unit 250, and an extraction unit 260. among them,
  • a first calculation unit 210 is configured to calculate an average hue of the video frame image; a traversal unit 220 is configured to traverse pixels of the video frame image, and calculate a color difference between the hue value of the pixel and the average hue; A determining unit 230 is configured to determine whether the color difference is greater than a preset threshold; a first determination unit 240 is configured to add the pixels to a main color pixel list if the color difference is greater than a preset threshold, The hue value of the pixel in the list determines the color information.
  • a recognition unit 250 is configured to recognize and extract a target object image in the video frame image, where the target object is a person or an animal; an extraction unit 260 is configured to extract a sub-image of a nasal region in the target object image , Obtaining the light angle based on the weighted center of the light intensity of the sub-image and the weighted center of the target object image.
  • the generating module 300 is specifically configured to generate a background color of the video content association interface according to the color information; and adjust the brightness of the background color according to the light angle to obtain the video content association interface. background.
  • the apparatus for presenting a video content association interface provided by the embodiment of the present invention is specifically configured to execute the method provided by the embodiment shown in FIG. 1 to FIG. 3, and its implementation principles, methods, and functional uses are similar to the embodiment shown in FIG. 1 to FIG. 3. Similarly, we will not repeat them here.
  • FIG. 6 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention. As shown in FIG. 6, the device specifically includes: an obtaining module 100, an extracting module 200, and a generating module 300. among them,
  • the obtaining module 100 is configured to obtain a video frame image of a currently playing video content at a preset time
  • An extraction module 200 is configured to extract color information and light angle from the video frame image; a generation module 300 is configured to generate a background of the video content association interface according to the color information and light angle, wherein the video content The interface associated with the video content is presented on the same interface.
  • the extraction module 200 includes: a second determination unit 270, a second calculation unit 280, a recognition unit 250, and an extraction unit 260. among them,
  • a second determining unit 270 is configured to determine a weight value corresponding to the pixel according to a distance between each pixel in the video frame image and the video content association interface; a second calculating unit 280 is configured to determine a weight value according to the pixel The hue value and the corresponding weight value are calculated to obtain the color information.
  • a recognition unit 250 is configured to recognize and extract a target object image in the video frame image, where the target object is a person or an animal; an extraction unit 260 is configured to extract a sub-image of a nasal region in the target object image , Obtaining the light angle based on the weighted center of the light intensity of the sub-image and the weighted center of the target object image.
  • the generating module 300 is specifically configured to generate a background color of the video content association interface according to the color information; and adjust the brightness of the background color according to the light angle to obtain the video content association interface. background.
  • the apparatus for presenting a video content association interface provided by the embodiment of the present invention is specifically configured to execute the method provided by the embodiment shown in FIG. 1 and FIG. 3, and its implementation principles, methods, and functional uses are similar to the embodiments shown in FIG. 1 and FIG. Similarly, we will not repeat them here.
  • the above-mentioned presentation device of the video content association interface in the embodiments of the present invention can be used as one of the software or hardware functional units, which can be independently set in the above-mentioned electronic device, or can be used as one of the functional modules integrated in the processor to implement the implementation of the present invention. Presentation method of video content association interface for example.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device that executes a method for presenting a video content association interface provided by a method embodiment of the present invention.
  • the electronic device includes:
  • One processor 710 is taken as an example in FIG. 7.
  • the device for performing the method for presenting a video content association interface may further include an input device 730 and an output device 730.
  • the processor 710, the memory 720, the input device 730, and the output device 740 may be connected through a bus or in other manners. In FIG. 7, the connection through the bus is taken as an example.
  • the memory 720 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as the video content association interface in the embodiment of the present invention. Program instructions / modules corresponding to the rendering method.
  • the processor 710 executes various functional applications and data processing of the server by running non-volatile software programs, instructions, and modules stored in the memory 720, that is, a method for presenting the video content association interface.
  • the memory 720 may include a storage program area and a storage data area, where the storage program area may store an operating system and application programs required for at least one function; the storage data area may store a presentation device for a video content association interface provided according to an embodiment of the present invention Use of created data, etc.
  • the memory 720 may include a high-speed random access memory 720, and may further include a non-volatile memory 720, such as at least one disk memory 720, a flash memory device, or other non-volatile solid-state memory 720.
  • the memory 720 may optionally include a memory 720 remotely set relative to the processor 77, and these remote memories 720 may be connected to a presentation device of the video content association interface through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input device 730 may receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of a presentation device of a video content association interface.
  • the input device 730 may include a device such as a pressing module.
  • the one or more modules are stored in the memory 720, and when executed by the one or more processors 710, perform a method of presenting the video content association interface.
  • the electronic devices in the embodiments of the present invention exist in various forms, including but not limited to:
  • Mobile communication equipment This type of equipment is characterized by mobile communication functions, and its main goal is to provide voice and data communication.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, feature phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has the characteristics of mobile Internet access.
  • Such terminals include: PDA, MID and UMPC devices, such as iPad.
  • Portable entertainment equipment This type of equipment can display and play multimedia content.
  • Such devices include: audio and video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
  • the electronic device includes an image acquisition module.
  • the image acquisition module in this embodiment includes a lens 1000, an autofocus voice coil motor 2000, a mechanical image stabilizer 3000, and an image sensor 4000.
  • the lens 1000 is fixed on the auto-focusing voice coil motor 2000, and the lens 1000 is fixed on the auto-focusing voice coil motor 2000.
  • the lens 1000 is used to acquire an image, and the image sensor 4000 sets the lens 1000
  • the acquired image is transmitted to the recognition module, the auto-focusing voice coil motor 2000 is mounted on the mechanical image stabilizer 3000, and the processing module drives the camera based on the feedback of the lens 1000 shake detected by the gyroscope in the lens 1000.
  • the operation of the mechanical image stabilizer 3000 is described to realize the shake compensation of the lens 1000.
  • the lens 1000 needs to be driven in at least two directions, which means that multiple coils need to be arranged. It brings certain challenges to the miniaturization of the overall structure, and is easily affected by external magnetic fields, which affects the anti-shake effect. Therefore, the Chinese patent published as CN106131435A provides a miniature optical anti-shake camera module, which realizes memory through temperature changes.
  • the alloy wire is stretched and shortened to pull the auto-focusing voice coil motor 2000 to achieve the shake compensation of the lens 1000.
  • the control chip of the micro memory alloy optical anti-shake actuator can control the change of the driving signal to change the memory alloy wire.
  • the temperature is used to control the elongation and shortening of the memory alloy wire, and the position and moving distance of the actuator are calculated based on the resistance of the memory alloy wire.
  • the micro memory alloy optical image stabilization actuator moves to the specified position, the resistance of the memory alloy wire at this time is fed back. By comparing the deviation of this resistance value and the target value, the movement on the micro memory alloy optical image stabilization actuator can be corrected. deviation.
  • the structure of the above technical solution alone cannot achieve accurate compensation for the lens 1000 in the case of multiple shakes, which is due to the heating of the shape memory alloy It takes a certain time to cool down and cool down.
  • the above technical solution can achieve the compensation of the lens 1000 for the shake in the first direction, but when the subsequent shake in the second direction occurs, due to the memory alloy It is too late to deform in an instant, so it is easy to cause compensation in a timely manner, and it is impossible to accurately achieve 1000-shake compensation for a lens that has multiple shakes and continuous shakes in different directions, so it is necessary to improve its structure.
  • this embodiment improves the optical image stabilizer and design it as a mechanical image stabilizer 3000.
  • the specific structure is as follows:
  • the mechanical image stabilizer 3000 of this embodiment includes a movable plate 3100, a movable frame 3200, an elastic restoring mechanism 3300, a base plate 3400, and a compensation mechanism 3500.
  • the movable plate 3100 and the base plate 3400 are provided in the middle of the plate for the lens to pass through.
  • the auto-focusing voice coil motor is installed on the movable plate 3100, and the movable plate 3100 is installed in the movable frame 3200.
  • the movable plate 3100 of this embodiment The width in the left-to-right direction is substantially the same as the internal width of the movable frame 3200, so that the opposite sides (left and right sides) of the movable plate 3100 and the inner walls of the opposite sides (left and right sides) of the movable frame 3200 slide to fit.
  • the movable plate 3100 can slide back and forth along the first direction within the movable frame 3200.
  • the first direction in this embodiment is the vertical direction in the figure.
  • the size of the movable frame 3200 in this embodiment is smaller than the size of the substrate 3400, and two opposite sides of the movable frame 3200 are connected to the substrate 3400 through two elastic recovery mechanisms 3300, respectively.
  • the elastic restoring mechanism 3300 is a telescopic spring or other elastic member, and it should be noted that the elastic restoring mechanism 3300 of this embodiment only allows it to expand and retract in the left-right direction in the figure (that is, the second direction described below). The ability to move along the first direction cannot be designed.
  • the purpose of designing the elastic recovery mechanism 3300 is also to facilitate the movable frame 3200 to reset the movable plate 3100 after the movable frame 3200 compensates for displacement.
  • the specific action process of this embodiment will be described below. The process is described in detail.
  • the compensation mechanism 3500 of this embodiment drives the movable plate 3100 and the lens on the movable plate 3100 under the driving of the processing module (which may be an action instruction sent by the processing module) to implement lens shake compensation.
  • the compensation mechanism 3500 in this embodiment includes a driving shaft 3510, a gear 3520, a gear track 3530, and a limit track 3540.
  • the driving shaft 3510 is mounted on the substrate 3400, and specifically is mounted on the substrate 3400. On the surface, the drive shaft 3510 is drivingly connected to the gear 3520.
  • the drive shaft 3510 can be driven by a structure such as a micro motor (not shown), and the micro motor is controlled by the processing module described above; the gear track 3530 is provided On the movable plate 3100, the gear 3520 is installed in the gear track 3530 and moves in a preset direction of the gear track 3530.
  • the gear track 3530 makes the movement
  • the plate 3100 can generate a displacement in a first direction and a displacement in a second direction, wherein the first direction is perpendicular to the second direction; the limit track 3540 is disposed on the movable plate 3100 or the base plate 3400 In the above, the limit track 3540 is used to prevent the gear 3520 from leaving the gear track 3530.
  • gear track 3530 and the limit track 3540 of this embodiment have the following two structural forms:
  • a waist-shaped hole 3550 is provided on the lower side of the movable plate 3100 in this embodiment, and a plurality of waist-shaped holes 3550 are provided along the circumferential direction (that is, the surrounding direction of the waist-shaped hole 3550).
  • a tooth 3560 meshing with the gear 3520, the waist-shaped hole 3550 and a plurality of the teeth 3560 together form the gear track 3530, and the gear 3520 is located in the waist-shaped hole 3550 and communicates with the tooth 3560.
  • the meshing makes the gear 3520 move the gear track 3530 when it rotates, and then directly drives the movement of the movable plate 3100.
  • this embodiment describes A limiting rail 3540 is provided on the base plate 3400, and a bottom of the movable plate 3100 is provided with a limiting member 3570 installed in the limiting rail 3540.
  • the limiting rail 3540 enables the limiting member 3570 to be located therein.
  • the movement trajectory is waist-shaped, that is, the movement trajectory of the limiter 3570 in the current track is the same as the movement trajectory of the movable plate 3100.
  • the limiter 3570 of this embodiment is provided on the movable plate 3100. Bulge on the bottom.
  • the gear track 3530 of this embodiment may also be composed of a plurality of cylindrical protrusions 3580 provided on the movable plate 3100.
  • the gears 3520 are arranged at regular intervals in the second direction, and the gears 3520 are engaged with a plurality of the protrusions; and the limit track 3540 is a first arc-shaped stopper 3590 and a second arc provided on the movable plate 3100.
  • Shape limiting member 3600, the first arc-shaped limiting member 3590 and the second arc-shaped limiting member 3600 are respectively disposed on opposite sides of the gear rail 3530 in the first direction to prevent movement on the movable plate 3100
  • the gear 3520 is located on one side of the gear rail 3530.
  • the gear 3520 is easily separated from the gear rail 3530 formed by the cylindrical protrusion 3580.
  • the first arc-shaped stopper 3590 or the second arc-shaped stopper 3600 can Plays a guiding role, so that the movable plate 3100 can move in a preset direction of the gear track 3530, that is, the first arc-shaped limiting member 3590, the second arc-shaped limiting member 3600, and a plurality of the protrusions cooperate
  • the motion trajectory of the movable board 3100 is waist-shaped.
  • the following describes the working process of the mechanical image stabilizer 3000 of this embodiment in detail with reference to the above structure.
  • the two shake directions are opposite, and the movable plate 3100 needs to be compensated once in the first direction. And then motion compensation once in the second direction.
  • the gyroscope feeds back the detected lens 1000 shake direction and distance to the processing module in advance, and the processing module calculates the required moving distance of the movable plate 3100, so that the driving shaft 3510 drives The gear 3520 rotates.
  • the gear 3520 cooperates with the gear track 3530 and the limit track 3540, and the processing module wirelessly sends a driving signal, thereby driving the movable plate 3100 to move to the compensation position in the first direction.
  • the processing module wirelessly sends a driving signal, thereby driving the movable plate 3100 to move to the compensation position in the first direction.
  • the movable plate is driven again by the driving shaft 3510. 3100 reset.
  • the elastic recovery mechanism 3300 also provides a reset force for resetting the movable plate 3100, which is more convenient for the movable plate 3100 to return to the initial position.
  • the processing method is the same as the compensation steps in the first direction described above.
  • the mechanical compensator provided in this embodiment not only does not receive interference from external magnetic fields and has a good anti-shake effect, but also can accurately compensate the lens 1000 in the event of multiple shakes, and the compensation is timely and accurate.
  • the mechanical anti-shake device using this embodiment is not only simple in structure, but also requires small installation space for each component, which facilitates the integration of the entire anti-shake device and has higher compensation accuracy.
  • the electronic device in this embodiment includes a mobile phone and a bracket for mounting the mobile phone.
  • the purpose of the electronic device including a bracket is to support and fix the electronic device due to the uncertainty of the image acquisition environment.
  • the bracket 5000 in this embodiment includes a mobile phone mounting base 5100 and a retractable supporting rod 5200.
  • the supporting rod 5200 and the middle portion of the mobile phone mounting base 5100 pass through a damping hinge.
  • the bracket 5000 may form a selfie stick structure
  • the bracket 5000 may form a mobile phone bracket 5000 structure.
  • the applicant found that the mobile phone mount 5100 combined with the support pole 5200 occupies a large space. Even if the support pole 5200 is retractable, the mobile phone mount 5100 cannot undergo structural changes and the volume will not be further reduced. Putting it in a pocket or a small bag causes the inconvenience of carrying the stent 5000. Therefore, in this embodiment, a second step improvement is made to the stent 5000, so that the overall storability of the stent 5000 is further improved.
  • the mobile phone mounting base 5100 of this embodiment includes a retractable connecting plate 5110 and a folding plate group 5120 installed at opposite ends of the connecting plate 5110.
  • the support rod 5200 and the connecting plate 5110 The middle part is connected by a damping hinge;
  • the folding plate group 5120 includes a first plate body 5121, a second plate body 5122, and a third plate body 5123, wherein one of the two opposite ends of the first plate body 5121 is connected to the first plate body 5121.
  • the connecting plate 5110 is hinged, the other end of the opposite ends of the first plate body 5121 is hinged with one of the opposite ends of the second plate body 5122, and the opposite ends of the second plate body 5122 The other end is hinged to one of opposite ends of the third plate body 5123; the second plate body 5122 is provided with an opening 5130 for a corner of the mobile phone to be inserted.
  • the first plate 5121, the second plate 5122, and the third plate 5123 are folded into a right triangle state, and the second plate 5122 is a hypotenuse of a right-angled triangle, and the first plate body 5121 and the third plate 5123 are right-angled sides of a right triangle, wherein one side surface of the third plate body 5123 and one of the connection plate 5110 are The side is attached side by side, and the other end of the opposite ends of the third plate body 5123 and the one of the opposite ends of the first plate body 5121 are against each other.
  • This structure can make the three folding plates in a self-locking state, and When the two lower corners of the mobile phone are inserted into the two openings 5130 on both sides, the lower sides of the mobile phone 6000 are located in two right-angled triangles.
  • the mobile phone 6000 can be completed through the joint work of the mobile phone, the connecting plate 5110, and the folding plate group 5120.
  • the triangle state cannot be opened under external force.
  • the triangle state of 5120 pieces of folding plate group can only be released after the mobile phone is pulled out from the opening 5130.
  • the connecting plate 5110 When the mobile phone mounting base 5100 is not in working state, the connecting plate 5110 is reduced to a minimum length, and the folding plate group 5120 and the connecting plate 5110 are folded to each other.
  • the user can fold the mobile phone mounting base 5100 to a minimum volume. Due to the scalability of the lever 5200, the entire bracket 5000 can be accommodated in the smallest state, which improves the collection of the bracket 5000. The user can even put the bracket 5000 directly into the pocket or small handbag, which is very convenient.
  • a first connection portion is also provided on one side of the third plate body 5123, and a side surface where the connection plate 5110 is in contact with the third plate body 5123 is provided with the first connection portion.
  • a first mating portion that mates with the connecting portion.
  • the first connecting portion of this embodiment is a convex strip or protrusion (not shown in the figure), and the first matching portion is a card slot (not shown in the figure) opened on the connecting plate 5110.
  • This structure not only improves the stability when the 5120 pieces of the folding plate group are in a triangular state, but also facilitates the connection of the 5120 pieces of the folding plate group and the connecting plate 5110 when the mobile phone mounting base 5100 needs to be folded to a minimum state.
  • a second connection portion is also provided at one end of the opposite ends of the first plate body 5121, and the other end of the opposite ends of the third plate body 5123 is provided with the second connection portion.
  • the second connection portion may be a protrusion (not shown in the figure), and the second mating portion is an opening 5130 or a card slot (not shown in the figure) that cooperates with the protrusion.
  • a base (not shown in the figure) can be detachably connected to the other end of the support rod 5200.
  • the support rod 5200 can be stretched to A certain length, put the bracket 5000 on a plane through the base, and then place the mobile phone in the mobile phone mount 5100 to complete the fixing of the mobile phone; and the detachable connection of the support rod 5200 and the base can make the two can be carried separately, further The accommodating and carrying convenience of the bracket 5000 are improved.
  • the device embodiments described above are only schematic, and the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, which may be located in One place, or can be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment. Those of ordinary skill in the art can understand and implement without creative labor.
  • An embodiment of the present invention provides a non-transitory computer-readable storage storage medium, where the computer storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by an electronic device, the electronic device is caused
  • the method for presenting a video content association interface in any of the foregoing method embodiments is performed on the above.
  • An embodiment of the present invention provides a computer program product, wherein the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions When executed by an electronic device, the electronic device is caused to execute the method for presenting a video content association interface in any of the foregoing method embodiments.
  • each embodiment can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware.
  • the above-mentioned technical solution in essence or a part that contributes to the existing technology may be embodied in the form of a software product, and the computer software product may be stored in a computer-readable storage medium, the computer-readable record A medium includes any mechanism for storing or transmitting information in a form readable by a computer (eg, a computer).
  • machine-readable media include read-only memory (ROM), random-access memory (RAM), magnetic disk storage media, optical storage media, flash storage media, electrical, optical, acoustic, or other forms of propagation signals (e.g., carrier waves , Infrared signals, digital signals, etc.), the computer software product includes a number of instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute various embodiments or certain parts of the embodiments Methods.

Abstract

Provided in the embodiments of the present invention are a method and apparatus for presenting an interface associated with video content, and an electronic device. The method comprises: acquiring a video frame image of currently played video content every preset time; extracting color information and light ray information from the video frame image; and generating, according to the color information and the light ray information, a background of an interface associated with the video content, wherein the video content and the interface associated with the video content are presented on the same interface. By means of the method and apparatus, and the electronic device mentioned above, the interface associated with the video content can be switched according to a change in the background of the currently played video content, so that the interface associated with the video content is presented in a more enriched manner, more flexibly and more conveniently, and the interactive experience of a user is improved.

Description

一种视频内容关联界面的呈现方法、装置及电子设备Video content association interface presentation method, device and electronic equipment 技术领域Technical field
本发明涉及互联网应用技术领域,尤其涉及一种视频内容关联界面的呈现方法、装置及电子设备。The present invention relates to the field of Internet application technology, and in particular, to a method, a device, and an electronic device for presenting a video content association interface.
背景技术Background technique
目前,对于互联网下的一些应用,比如,视频应用可以在移动终端上运行以呈现视频内容,方便用户观看,同时,用户可以在与呈现视频内容相关联的用户界面上,对应用的内容进行评论和互动。然而,发明人在实现本发明实施例的过程中发现:相关技术中视频内容相关联的界面通常以单一的背景呈现,不论是何种应用,一般都是以白板的方式呈现评论界面,表现形式过于单一。此外,网络视频越来越多的通过移动装置自拍完成,但是移动装置的摄像头获取视频或图片的效果不但受周围环境光的影响,也受到拍摄稳定度的影响,幅度较大的抖动会影响拍摄质量且不利于后续图像或视频的处理,移动装置的支架或自拍杆也使用灵活度也不能满足要求。At present, for some applications on the Internet, for example, video applications can be run on mobile terminals to present video content for the convenience of users to watch. At the same time, users can comment on the content of the application on the user interface associated with presenting video content. And interaction. However, the inventors discovered during the implementation of the embodiments of the present invention that the interfaces associated with video content in related technologies are usually presented in a single background. Regardless of the application, the review interface is generally presented in the form of a whiteboard. Too simple. In addition, more and more online videos are completed by taking selfies with mobile devices. However, the effect of the camera of the mobile device to obtain videos or pictures is not only affected by the surrounding ambient light, but also by the stability of the shooting. The quality is not conducive to the processing of subsequent images or videos, and the use of a mobile device's stand or selfie stick cannot meet the requirements.
发明内容Summary of the Invention
本发明实施例提供的视频内容关联界面的呈现方法、装置及电子设备,用以至少解决相关技术中的上述问题。The presenting method, device, and electronic device of the video content association interface provided by the embodiments of the present invention are used to solve at least the foregoing problems in related technologies.
本发明实施例一方面提供了一种视频内容关联界面的呈现方法,包括:An aspect of the embodiments of the present invention provides a method for presenting a video content association interface, including:
每隔预设时间获取当前播放视频内容的视频帧图像,从所述视频帧图像中提取颜色信息和光线角度;根据所述颜色信息和光线角度生成所述视频内容关联界面的背景,其中,所述视频内容与所述视频内容关联界面在同一界面上呈现。Obtain a video frame image of the currently playing video content every preset time, extract color information and light angle from the video frame image; and generate a background of the video content association interface according to the color information and light angle, where The video content and the video content association interface are presented on the same interface.
进一步地,所述从所述视频帧图像中提取颜色信息包括:计算所述视频帧图像的色调平均值;遍历所述视频帧图像的像素,计算所述像素的色调值与所述色调平均值的色差;判断所述色差是否大于预设阈值;若所述色差大于预设阈值,将所述像素加入到主色调像素列表,根据所述主色调像素列表中所述像素的色调值,确定所述颜色信息。Further, the extracting color information from the video frame image includes: calculating a hue average value of the video frame image; traversing pixels of the video frame image, calculating a hue value of the pixel and the hue average value. Determine whether the color difference is greater than a preset threshold; if the color difference is greater than the preset threshold, add the pixel to the main-tone pixel list, and determine all the pixels according to the tone value of the pixel in the main-tone pixel list Mentioned color information.
进一步地,所述从所述视频帧图像中提取颜色信息包括:根据所述视频帧图像中每个像素与所述视频内容关联界面的距离,确定所述像素对应的权重值;根据所述像素的色调值和对应的权重值,计算得到所述颜色信息。Further, the extracting color information from the video frame image includes: determining a weight value corresponding to the pixel according to a distance between each pixel in the video frame image and the video content association interface; and according to the pixel The hue value and the corresponding weight value to calculate the color information.
进一步地,所述从所述视频帧图像中提取光线角度包括:识别并提取所述视频帧图像中的目标对象图像,其中,所述目标对象为人物或动物;提取所述目标对象图像中鼻 部区域的子图像,基于所述子图像的光强加权中心与所述目标对象图像的加权中心,得到所述光线角度。Further, the extracting the light angle from the video frame image includes: identifying and extracting a target object image in the video frame image, wherein the target object is a person or an animal; extracting a nose in the target object image The sub-image of the partial region is obtained based on the light intensity weighting center of the sub-image and the weighting center of the target object image to obtain the light angle.
进一步地,所述根据所述颜色信息和光线信角度生成所述视频内容关联界面的背景,包括:根据所述颜色信息生成所述视频内容关联界面的背景色;根据所述光线角度对所述背景色的亮度进行调整,得到所述视频内容关联界面的背景。Further, generating the background of the video content association interface according to the color information and the light signal angle includes: generating a background color of the video content association interface according to the color information; The brightness of the background color is adjusted to obtain the background of the video content association interface.
本发明实施例的另一方面提供了一种视频内容关联界面的呈现装置,包括:Another aspect of the embodiments of the present invention provides a device for presenting a video content association interface, including:
获取模块,用于每隔预设时间获取当前播放视频内容的视频帧图像;提取模块,用于从所述视频帧图像中提取颜色信息和光线角度;生成模块,用于根据所述颜色信息和光线角度生成所述视频内容关联界面的背景,其中,所述视频内容与所述视频内容关联界面在同一界面上呈现。An obtaining module for obtaining a video frame image of a currently playing video content at a preset time; an extracting module for extracting color information and a light angle from the video frame image; a generating module for The light angle generates the background of the video content association interface, wherein the video content and the video content association interface are presented on the same interface.
进一步地,所述提取模块包括:第一计算单元,用于计算所述视频帧图像的色调平均值;遍历单元,用于遍历所述视频帧图像的像素,计算所述像素的色调值与所述色调平均值的色差;判断单元,用于判断所述色差是否大于预设阈值;第一确定单元,用于若所述色差大于预设阈值,将所述像素加入到主色调像素列表,根据所述主色调像素列表中所述像素的色调值,确定所述颜色信息。Further, the extraction module includes: a first calculation unit for calculating an average hue of the video frame image; a traversal unit for traversing pixels of the video frame image, calculating a hue value of the pixel and the The color difference of the hue average value; a determining unit for determining whether the color difference is greater than a preset threshold; a first determining unit for adding the pixel to the main-tone pixel list if the color difference is greater than a preset threshold; Tonal values of the pixels in the main-tone pixel list determine the color information.
进一步地,所述提取模块包括:第二确定单元,用于根据所述视频帧图像中每个像素与所述视频内容关联界面的距离,确定所述像素对应的权重值;第二计算单元,用于根据所述像素的色调值和对应的权重值,计算得到所述颜色信息。Further, the extraction module includes: a second determination unit, configured to determine a weight value corresponding to the pixel according to a distance between each pixel in the video frame image and the video content association interface; a second calculation unit, And is configured to calculate the color information according to a hue value of the pixel and a corresponding weight value.
进一步地,所述提取模块包括:识别单元,用于识别并提取所述视频帧图像中的目标对象图像,其中,所述目标对象为人物或动物;提取单元,用于提取所述目标对象图像中鼻部区域的子图像,基于所述子图像的光强加权中心与所述目标对象图像的加权中心,得到所述光线角度。Further, the extraction module includes: a recognition unit for identifying and extracting a target object image in the video frame image, wherein the target object is a person or an animal; an extraction unit for extracting the target object image The sub-image of the middle nose region is obtained based on the light-weighted center of the sub-image and the weighted center of the target object image to obtain the light angle.
进一步地,所述生成模块用于,根据所述颜色信息生成所述视频内容关联界面的背景色;根据所述光线角度对所述背景色的亮度进行调整,得到所述视频内容关联界面的背景。Further, the generating module is configured to generate a background color of the video content association interface according to the color information; and adjust the brightness of the background color according to the light angle to obtain the background of the video content association interface. .
本发明实施例的又一方面提供一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述任一项视频内容关联界面的呈现方法。Another aspect of the embodiments of the present invention provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a memory that can be used by the at least one processor And an instruction that is executed by the at least one processor, so that the at least one processor can execute any one of the methods for presenting a video content association interface.
进一步的,所述电子设备还包括图像获取模块,所述图像获取模块包括镜头、自动聚焦音圈马达、机械防抖器以及图像传感器,所述镜头固装在所述自动聚焦音圈 马达上,所述镜头用于获取图像,所述图像传感器将所述镜头获取的图像传输至所述识别模块,所述自动聚焦音圈马达安装在所述机械防抖器上,所述处理模块根据镜头内的陀螺仪检测到的镜头抖动的反馈驱动所述机械防抖器的动作,实现镜头的抖动补偿。Further, the electronic device further includes an image acquisition module including a lens, an auto-focusing voice coil motor, a mechanical image stabilizer, and an image sensor, and the lens is fixed on the auto-focusing voice coil motor. The lens is used to acquire an image, the image sensor transmits the image acquired by the lens to the recognition module, the autofocus voice coil motor is mounted on the mechanical image stabilizer, and the processing module is based on the inside of the lens The feedback of the lens shake detected by the gyroscope drives the action of the mechanical image stabilizer to achieve lens shake compensation.
进一步的,所述机械防抖器包括活动板、活动框、弹性回复机构、基板以及补偿机构;所述活动板的中部设有供所述镜头穿过的通孔,所述自动聚焦音圈马达安装在所述活动板上,所述活动板安装在所述活动框内,所述活动板的相对两侧与所述活动框相对两侧的内壁滑动配合,以使所述活动板可沿着第一方向往复滑动;所述活动框的尺寸小于所述基板的尺寸,所述活动框的相对两侧分别通过两个弹性回复机构与所述基板相连接,所述基板的中部也设有所述镜头穿过的通孔;所述补偿机构在所述处理模块的驱动下带动所述活动板和活动板上的镜头动作,以实现镜头的抖动补偿;所述补偿机构包括驱动轴、齿轮、齿轮轨道以及限位轨道,所述驱动轴安装在所述基板上,所述驱动轴与所述齿轮传动连接;所述齿轮轨道设置在所述活动板上,所述齿轮安装在所述齿轮轨道内,所述齿轮转动时通过所述齿轮轨道使得所述活动板能够产生向第一方向的位移和第二方向的位移,其中所述第一方向与所述第二方向垂直;所述限位轨道设置在所述活动板上或所述基板上,所述限位轨道用于防止所述齿轮脱离所述齿轮轨道。Further, the mechanical anti-shake device includes a movable plate, a movable frame, an elastic restoring mechanism, a base plate, and a compensation mechanism; a central portion of the movable plate is provided with a through hole through which the lens passes, and the auto-focusing voice coil motor Installed on the movable plate, the movable plate is installed in the movable frame, and the opposite sides of the movable plate are slidingly fitted with the inner walls of the opposite sides of the movable frame so that the movable plate can be moved along Reciprocating sliding in the first direction; the size of the movable frame is smaller than that of the substrate, and two opposite sides of the movable frame are connected to the substrate through two elastic restoring mechanisms, respectively. The through hole through which the lens passes; the compensation mechanism, driven by the processing module, drives the movable plate and the lens movement on the movable plate to achieve lens shake compensation; the compensation mechanism includes a drive shaft, gears, A gear track and a limit track, the drive shaft is mounted on the base plate, the drive shaft is connected with the gear drive; the gear track is provided on the movable plate, and the gear is mounted In the gear track, when the gear rotates, the gear track enables the movable plate to generate a displacement in a first direction and a displacement in a second direction, wherein the first direction is perpendicular to the second direction; The limit track is disposed on the movable plate or the base plate, and the limit track is used to prevent the gear from detaching from the gear track.
进一步的,所述活动板一侧设有一腰型孔,所述腰型孔沿其周向设有多个与所述齿轮相啮合的齿,所述腰型孔和多个所述齿共同构成所述齿轮轨道,所述齿轮位于所述腰型孔内并与所述齿相啮合;所述限位轨道设置在所述基板上,所述活动板底部设有位于所述限位轨道内的限位件,所述限位轨道使所述限位件在其中的运动轨迹呈腰型。Further, a side of the movable plate is provided with a waist-shaped hole, and the waist-shaped hole is provided with a plurality of teeth that mesh with the gear along a circumferential direction thereof, and the waist-shaped hole and the plurality of teeth together constitute the A gear track, wherein the gear is located in the waist-shaped hole and meshes with the teeth; the limit track is disposed on the base plate, and a bottom of the movable plate is provided with a limit position within the limit track Piece, the limit track makes the movement track of the limit piece in a waist shape.
进一步的,所述限位件为设置在所述活动板底面上的凸起。Further, the limiting member is a protrusion provided on the bottom surface of the movable plate.
进一步的,所述齿轮轨道包括设置在所述活动板上的多个圆柱凸起,多个所述圆柱凸起沿所述第二方向均匀间隔布设,所述齿轮与多个所述凸起相啮合;所述限位轨道为设置在所述活动板上的第一弧形限位件和第二弧形限位件,所述第一弧形限位件和第二弧形限位件分别设置在所述齿轮轨道沿第一方向上的相对两侧,所述第一弧形限位件和第二弧形限位件及多个所述凸起相配合使得所述活动板的运动轨迹呈腰型。Further, the gear track includes a plurality of cylindrical protrusions provided on the movable plate, the plurality of cylindrical protrusions are evenly spaced along the second direction, and the gear is in phase with the plurality of protrusions. Meshing; the limit track is a first arc-shaped stopper and a second arc-shaped stopper provided on the movable plate, and the first arc-shaped stopper and the second arc-shaped stopper are respectively It is arranged on two opposite sides of the gear track in the first direction, and the first arc-shaped stopper, the second arc-shaped stopper, and a plurality of the protrusions cooperate to make the moving track of the movable plate Waist-shaped.
进一步的,所述弹性回复机构包括伸缩弹簧。Further, the elastic recovery mechanism includes a telescopic spring.
进一步的,所述图像获取模块包括手机和用于安装所述手机的支架。Further, the image acquisition module includes a mobile phone and a bracket for mounting the mobile phone.
进一步的,所述支架包括手机安装座和可伸缩的支撑杆;所述手机安装座包括可伸缩的连接板和安装于连接板相对两端的折叠板组,所述支撑杆的一端与所述连接板中部通过阻尼铰链相连接;所述折叠板组包括第一板体、第二板体及第三板体,其中,所述第一板体的相对两端中的一端与所述连接板相铰接,所述第一板体的相对两端中的另一端与所述第二板体的相对两端中的一端相铰接;所述第二板体相对两端的另一端与所述第三板体相对两端中的一端相铰接;所述第二板体设有供手机边角插入的开口;所述手机安装座用于安装手机时,所述第一板体、第二板体和第三板体折叠呈直角三角形状态,所述第二板体为直角三角形的斜边,所述第一板体和所述第三板体为直角三角形的直角边,其中,所述第三板体的一个侧面与所述连接板的一个侧面并排贴合,所述第三板体相对两端中的另一端与所述第一板体相对两端中的一端相抵。Further, the bracket includes a mobile phone mounting base and a retractable support rod; the mobile phone mounting base includes a retractable connection plate and a folding plate group installed at opposite ends of the connection plate, and one end of the support rod is connected to the connection The middle portions of the plates are connected by a damping hinge; the folded plate group includes a first plate body, a second plate body, and a third plate body, wherein one of two opposite ends of the first plate body is in phase with the connecting plate. Hinged, the other end of the opposite ends of the first plate body is hinged to one of the opposite ends of the second plate body; the other end of the opposite ends of the second plate body is connected to the third plate One end of the two opposite ends of the body is hinged; the second plate body is provided with an opening for the corner of the mobile phone to be inserted; when the mobile phone mount is used to install the mobile phone, the first plate body, the second plate body, and the first plate body The three plates are folded in a right triangle state, the second plate is a hypotenuse of a right triangle, and the first plate and the third plate are right angles of a right triangle, wherein the third plate is One side of the side is attached to one side of the connecting plate , One of the opposite ends of the third plate member and the other end opposite ends of the first plate against body.
进一步的,所述第三板体的一个侧面设有第一连接部,所述连接板与所述第三板体相贴合的侧面设有与所述第一连接部相配合的第一配合部,所述支架手机安装座用于安装手机时,所述第一连接部和所述第一配合部卡合连接。Further, a first connection portion is provided on one side surface of the third plate body, and a first connection portion that is matched with the first connection portion is provided on a side surface where the connection plate is in contact with the third plate body. When the mobile phone mounting base is used to install a mobile phone, the first connection portion and the first mating portion are snap-connected.
进一步的,所述第一板体相对两端中的一端设有第二连接部,所述第三板体相对两端中的另一端设有与所述第二连接部相配合的第二配合部,所述支架手机安装座用于安装手机时,所述第二连接部和所述第二配合部卡合连接。Further, a second connection portion is provided at one end of the opposite ends of the first plate body, and a second connection is provided at the other end of the opposite ends of the third plate body to cooperate with the second connection portion. When the mobile phone mounting base is used to install a mobile phone, the second connection portion and the second mating portion are snap-connected.
进一步的,所述支撑杆的另一端可拆卸连接有底座。Further, the other end of the support rod is detachably connected to a base.
由以上技术方案可见,本发明实施例提供的视频内容关联界面的呈现方法、装置及电子设备,视频内容关联界面可以随当前播放的视频内容的背景变化而切换,使得视频内容关联界面呈现更加丰富、灵活、方便,提高了用户的交互体验。手机摄像头的防抖动硬件结构和手机自拍支架也进一步增强了拍摄效果,更利于后续的图像或视频处理。As can be seen from the above technical solutions, the method, device, and electronic device for presenting the video content association interface provided by the embodiments of the present invention. The video content association interface can be switched as the background of the currently played video content changes, making the video content association interface presentation richer , Flexible, convenient, and improve the user's interactive experience. The anti-shake hardware structure of the mobile phone camera and the mobile phone selfie stand also further enhance the shooting effect, which is more conducive to subsequent image or video processing.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some of the embodiments described in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to these drawings.
图1为本发明一个实施例提供的视频内容关联界面的呈现方法流程图;FIG. 1 is a flowchart of a method for presenting a video content association interface according to an embodiment of the present invention; FIG.
图2为本发明一个实施例提供的视频内容关联界面的呈现方法流程图;2 is a flowchart of a method for presenting a video content association interface according to an embodiment of the present invention;
图3为本发明一个实施例提供的视频内容关联界面的呈现方法流程图;3 is a flowchart of a method for presenting a video content association interface according to an embodiment of the present invention;
图4为本发明一个实施例提供的视频内容关联界面的呈现装置结构图;4 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention;
图5为本发明一个实施例提供的视频内容关联界面的呈现装置结构图;5 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention;
图6为本发明一个实施例提供的视频内容关联界面的呈现装置结构图;6 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention;
图7为执行本发明方法实施例提供的视频内容关联界面的呈现方法的电子设备的硬件结构示意图;7 is a schematic diagram of a hardware structure of an electronic device that executes a method for presenting a video content association interface provided by a method embodiment of the present invention;
图8为本发明一个实施例提供的图像获取模块的结构示意图;8 is a schematic structural diagram of an image acquisition module according to an embodiment of the present invention;
图9为本发明一个实施例提供的第一种机械防抖器的结构示意图;FIG. 9 is a schematic structural diagram of a first mechanical vibration stabilizer provided by an embodiment of the present invention; FIG.
图10为本发明一个实施例提供的第一种活动板的底面结构示意图;10 is a schematic structural diagram of a bottom surface of a first movable board according to an embodiment of the present invention;
图11为本发明一个实施例提供的第二种机械防抖器的结构示意图;11 is a schematic structural diagram of a second mechanical vibration stabilizer provided by an embodiment of the present invention;
图12为本发明一个实施例提供的第二种活动板的底面结构示意图;12 is a schematic structural diagram of a bottom surface of a second movable board provided by an embodiment of the present invention;
图13为本发明一个实施例提供的支架的结构图;13 is a structural diagram of a stent provided by an embodiment of the present invention;
图14为本发明一个实施例提供的支架的一个状态示意图;FIG. 14 is a schematic state diagram of a stent provided by an embodiment of the present invention; FIG.
图15为本发明一个实施例提供的支架的另一个状态示意图;15 is a schematic view of another state of a stent according to an embodiment of the present invention;
图16为本发明一个实施例提供的安装座与手机相连接时的结构状态图。FIG. 16 is a structural state diagram when the mounting base and the mobile phone are connected according to an embodiment of the present invention.
具体实施方式detailed description
为了使本领域的人员更好地理解本发明实施例中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本发明实施例保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments in the embodiments of the present invention, all other embodiments obtained by those skilled in the art should belong to the protection scope of the embodiments of the present invention.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互结合。图1为本发明实施例提供的视频内容关联界面的呈现方法流程图。如图1所示,本发明实施例提供的视频内容关联界面的呈现方法,包括:Hereinafter, some embodiments of the present invention will be described in detail with reference to the drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other. FIG. 1 is a flowchart of a method for presenting a video content association interface according to an embodiment of the present invention. As shown in FIG. 1, a method for presenting a video content association interface according to an embodiment of the present invention includes:
步骤S101,每隔预设时间获取当前播放视频内容的视频帧图像。Step S101: Obtain a video frame image of a currently playing video content at a preset time.
在发明实施例中,视频内容关联界面可以由用户对播放的视频内容进行评论、分享等操作,比如,针对视频内容进行的评论、生成评论的界面;与播放的视频内容相关的分享、互动标识所在的界面;与播放的视频内容相关的推荐界面等。这些视频内容关联界面与当前播放的视频内容在移动终端的同一用户界面上呈现,因此本发明实施例致力于能够使视频内容关联界面的背景能够与当前播放的视频内容相关联,使得视频内容关联界面呈现更加丰富、灵活、方便,提高了用户的交互体验。In the embodiment of the invention, the video content association interface may be operated by a user to perform comments and sharing on the played video content, for example, a comment on the video content and an interface for generating a comment; a sharing and interaction identifier related to the played video content The interface where it is located; recommendation interface related to the video content being played, etc. These video content association interfaces and the currently played video content are presented on the same user interface of the mobile terminal. Therefore, the embodiments of the present invention are directed to enabling the background of the video content association interface to be associated with the currently played video content, so that the video content is associated. The interface presentation is more abundant, flexible and convenient, which improves the user's interactive experience.
也就是说,视频内容关联界面的背景可以根据播放的视频内容的背景不同而变化,当视频内容变化时,视频内容的背景相应变化,因此,根据播放的视频内容的背景生成的视频内容关联界面的背景也会相应发生变化,为了及时体现出这种变化,当视频内容的背景变化时,则相应地切换与所述视频内容关联的界面。That is, the background of the video content association interface can change according to the background of the video content being played. When the video content changes, the background of the video content changes accordingly. Therefore, the video content association interface generated based on the background of the video content being played. The background of the video content will change accordingly. In order to reflect this change in time, when the background of the video content changes, the interface associated with the video content is switched accordingly.
在本发明实施例中,随着场景的变换,视频内容呈现的背景也会随之变化,一般每个场景都是由若干视频帧构成的,因此可以每个预设时间获取当前播放视频内容的视频帧图像,该获取的视频帧图像能够代表其对应的场景背景。可选地,该预设时间可以是预先根据每个场景对应的视频帧数确定的,也可以是根据之前对大量视频进行统计分析,得到的平均每个场景切换的平均时间,本发明在此不做限制。In the embodiment of the present invention, as the scene changes, the background presented by the video content will also change. Generally, each scene is composed of several video frames. Therefore, the current content of the currently playing video can be obtained every preset time. A video frame image. The acquired video frame image can represent a corresponding scene background. Optionally, the preset time may be determined in advance according to the number of video frames corresponding to each scene, or may be an average time for each scene switch obtained by performing statistical analysis on a large number of videos before. The present invention here No restrictions.
步骤S102,从所述视频帧图像中提取颜色信息和光线角度。In step S102, color information and light angle are extracted from the video frame image.
具体地,可以通过提取的视频帧图像中颜色和光线角度,作为能够体现当前播放的视频内容的背景。本步骤可以分为两部分进行,一部分是从所述视频帧图像中提取颜色信息,另一部分是从所述视频帧图像中提取光线角度。两部分的执行没有先后顺序。Specifically, the color and light angle in the extracted video frame image can be used as the background that can reflect the currently playing video content. This step can be divided into two parts, one part is to extract color information from the video frame image, and the other part is to extract the light angle from the video frame image. The execution of the two parts is not sequential.
作为本发明实施例的可选实施方式,可通过如下三种方式进行颜色信息的提取。As an optional implementation manner of the embodiment of the present invention, color information can be extracted in the following three ways.
如图2所示,第一种实施方式包括如下子步骤:As shown in FIG. 2, the first embodiment includes the following sub-steps:
S1021,计算所述视频帧图像的色调平均值。S1021: Calculate an average hue of the video frame image.
S1022,遍历所述视频帧图像的像素,计算所述像素的色调值与所述色调平均值的色差。S1022: Traverse pixels of the video frame image, and calculate a color difference between a hue value of the pixel and the hue average value.
S1023,判断所述色差是否大于预设阈值。S1023: Determine whether the color difference is greater than a preset threshold.
S1024,将所述像素加入到主色调像素列表,根据所述主色调像素列表中所述像素的色调值,确定所述颜色信息。S1024. Add the pixel to a main-tone pixel list, and determine the color information according to a tone value of the pixel in the main-tone pixel list.
具体地,我们需要提取出该视频帧图像的颜色信息,该颜色信息为只能最能够代表该视频帧图像的主色调,该主色调并不是指颜色最多的,而是指在该视频帧图像中最醒目的色调。可选地,色调值可以用RGB值来表示,也可以由现在比较普遍适用的十六进制颜色值表示。在本实施方式中,遍历视频帧图像中的每一个像素,计算每个像素的色调值与色调平均值的色差。当某个像素的色调值与色调平均值的色差大于预设的阈值时,将该像素加入到主色调像素列表。所有的像素都与色调值比较完成后,计算主色调像素列表中包括的像素的色调值的平均值,将该平均值确定为该视频帧图像的颜色信息。Specifically, we need to extract the color information of the video frame image. The color information is the main color tone that can best represent the video frame image. The main color tone does not refer to the most colorful color, but refers to the image in the video frame The most eye-catching shade. Optionally, the hue value may be represented by an RGB value, or may be represented by a hexadecimal color value that is more commonly applicable now. In this embodiment, each pixel in the video frame image is traversed, and the color difference between the hue value and the hue average value of each pixel is calculated. When the color difference between the hue value and the hue average value of a pixel is greater than a preset threshold, the pixel is added to the main hue pixel list. After all pixels are compared with the tone value, an average value of the tone values of the pixels included in the main-tone pixel list is calculated, and the average value is determined as the color information of the video frame image.
第二种实施方式包括如下步骤:根据所述视频帧图像中每个像素与所述视频内容关联界面的距离,确定所述像素对应的权重值;根据所述像素的色调值和对应的权重值,计算得到所述颜色信息。The second embodiment includes the steps of: determining a weight value corresponding to the pixel according to a distance between each pixel in the video frame image and the video content association interface; and according to a hue value and a corresponding weight value of the pixel To calculate the color information.
具体地,在本实施方式中,可以对视频帧图像中的所有像素的色调值求加权平均值,其中,视频帧图像中距离视频内容关联界面越近的点权重越大,距离越远的点权重越小。根据本方法,得到的色调值更加偏向于与视频内容关联界面相近部分的视频帧图像的颜色,使得视频内容关联界面的颜色与当前播放的视频内容的颜色过渡更加自然。Specifically, in this embodiment, a weighted average of the hue values of all pixels in the video frame image may be obtained, where the points closer to the video content association interface in the video frame image have greater weights and the farther points The smaller the weight. According to this method, the obtained hue value is more biased to the color of the video frame image in a part close to the video content association interface, so that the transition of the color of the video content association interface and the color of the currently played video content is more natural.
作为颜色信息提取的第三种实施方式,也可以直接将视频帧图像每个像素点的色调值直接覆盖到视频内容关联界面。如果不能完全覆盖,则对于未覆盖的视频内容关联界面部分的每一个像素取上述视频帧图像色调的加权平均值;如果可以完全覆盖,对于视频内容关联界面小于视频帧图像界面时,可以对视频帧图像界面进行缩小至视频内容关联界面的大小。As a third embodiment of color information extraction, the hue value of each pixel of a video frame image may also be directly covered on the video content association interface. If it cannot be completely covered, the weighted average of the above-mentioned video frame image tone is taken for each pixel of the uncovered video content association interface portion; if it can be completely covered, when the video content association interface is smaller than the video frame image interface, the video can be The frame image interface is reduced to the size of the video content association interface.
作为本发明实施例的可选实施方式,如图3所示,从所述视频帧图像中提取光线角度包括如下子步骤:As an optional implementation of the embodiment of the present invention, as shown in FIG. 3, extracting a light angle from the video frame image includes the following sub-steps:
S1021’,识别并提取所述视频帧图像中的目标对象图像,其中,所述目标对象为人物或动物。S1021 ', identifying and extracting a target object image in the video frame image, where the target object is a person or an animal.
在视频帧图像中所有对象中,由于人物或者动物是存在五官的,而五官当中鼻子是凸出于人脸的,鼻部区域的明暗更容易受到拍照时环境光的影响,因此本实施例中目标对象为人物或者动物。Among all the objects in the video frame image, because a character or an animal has facial features, and the facial features of the nose are protruding from the human face, the light and darkness of the nose area are more likely to be affected by the ambient light when taking pictures. Therefore, in this embodiment, The target object is a person or an animal.
具体地,识别过程可以采用图像识别技术识别出目标对象,比如采用轮廓提取、模式匹配或通过在预设数据库库中存储的多类型的目标对象图像进行特征比对等等,本发明实施例对图像识别技术不做限定。当识别出目标对象后,可以沿着识别得到的目标对象的轮廓进行抠图,也可以使用图像抠出技术,例如Photoshop中相关的抠图技术,将目标对象从第一图片中提取出来。Specifically, the recognition process may use an image recognition technology to identify a target object, such as contour extraction, pattern matching, or feature comparison by using multiple types of target object images stored in a preset database library, etc. Image recognition technology is not limited. After the target object is identified, it can be matted along the outline of the identified target object, or an image keying technique, such as the related matting technology in Photoshop, can be used to extract the target object from the first picture.
S1022’,提取所述目标对象图像中鼻部区域的子图像,基于所述子图像的光强加权中心与所述目标对象图像的加权中心,得到所述光线角度。S1022 ': Extract a sub-image of the nasal region in the target object image, and obtain the light angle based on the light-intensity weighting center of the sub-image and the weight center of the target object image.
具体地,通过本领域技术人员熟知的人脸、动物脸检测算法、或者任何基于CNN的人脸、动物脸检测算法等,从该目标对象图像中提取目标对象的脸部特征。由于五官当中鼻子是凸出于目标对象脸部的,鼻部区域的明暗更容易受到拍照时环境光的影响,因此本实施例提取目标特征中的鼻子,得鼻部区域的子图像。Specifically, the facial features of the target object are extracted from the target object image through a human face, animal face detection algorithm, or any CNN-based human face, animal face detection algorithm, etc. that are well known to those skilled in the art. Because the nose is protruding from the face of the target object in the five senses, the light and dark of the nose area are more easily affected by the ambient light when taking pictures. Therefore, in this embodiment, the nose in the target feature is extracted to obtain a sub-image of the nose area.
在本步骤中,根据子图像的图像矩来确定其对应的光强加权中心。图像矩是一个从数字图形中计算出来的矩集,通常描述了该图像的全局特征,并提供大量的关于该图像不同类型的几何特征信息,比如大小、位置、方向及形状等,例如,一阶矩与形状有关、二阶矩显示了曲线围绕直线平均值的扩展程度、三阶矩则是关于平均值的对称性测量, 由二阶矩和三阶矩可以导出一组共有7个不变阶矩,不变阶矩是图像统计特征,其可以据此对图像进行分类操作,属于本领域的公知常识,本发明在此不再赘述。In this step, the corresponding light intensity weighting center is determined according to the image moment of the sub-image. An image moment is a set of moments calculated from digital graphics. It usually describes the global features of the image and provides a lot of information about the different types of geometric features of the image, such as size, position, orientation, and shape. For example, a The order moment is related to the shape. The second order moment shows the degree of expansion of the curve around the average value of the line, and the third order moment is a measure of the symmetry of the mean value. From the second and third order moments, a group of 7 constants can be derived. Order moments and invariant order moments are statistical characteristics of images, which can be used to classify images based on this, which are common knowledge in the art, and the present invention will not repeat them here.
可选地,在确定了子图片的光强加权中心之后,将其与子图像的加权中心进行比较(该加权中心即为图像的集合中心),将图像的加权中心的坐标位置与子图片的光强加权中心的坐标位置进行比较,从几何中心到光强加权中心的方向即是环境光的光线方向,同时,我们可以通过选择坐标原点来建立坐标系,得到该向量与X轴的夹角,作为视频帧图像的光线估计角度。此外,也可以通过其他非专有算法来对光线估计角度进行计算,本发明在此不做限制。需要说明的是,在本发明实施例中,环境光将被认为是单向的和均匀的。Optionally, after the light intensity weighting center of the sub-picture is determined, it is compared with the weighting center of the sub-image (the weighting center is the collection center of the image), and the coordinate position of the weighting center of the image is compared with that of the sub-picture. The coordinate position of the light intensity weighted center is compared. The direction from the geometric center to the light intensity weighted center is the direction of the ambient light. At the same time, we can establish the coordinate system by selecting the coordinate origin and obtain the angle between the vector and the X axis. , As the estimated light angle of the video frame image. In addition, the light estimation angle can also be calculated by other non-proprietary algorithms, which is not limited in the present invention. It should be noted that, in the embodiment of the present invention, the ambient light will be considered to be unidirectional and uniform.
作为本发明实施例的一些可选实施方式,为了让光线估计角度更加准确,可以将所述子图像分为若干个子区域,确定各所述子区域的子光强加权中心;将各所述子光强加权中心与所述目标对象图像的加权中心进行比较,得到各所述子区域的子光线估计角度;计算各所述子区域的子光照强度,根据所述子区域的子光照强度确定所述子区域的子光线估计角度的权重;根据各所述子光线估计角度及所述子光线估计角度的权重,计算得到所述视频帧图像的光线角度。As some optional implementations of the embodiment of the present invention, in order to make the light estimation angle more accurate, the sub-image may be divided into several sub-regions, and a sub-light intensity weighting center of each of the sub-regions is determined; The light intensity weighting center is compared with the weighting center of the target object image to obtain an estimated sub-ray angle of each of the sub-regions; a sub-light intensity of each of the sub-regions is calculated; A weight of the sub-ray estimation angle of the sub-area; and calculating a ray angle of the video frame image according to each of the sub-ray estimation angle and the weight of the sub-ray estimation angle.
具体地,首先,可以将子图像平均分成四份,得到四个子区域,按照上述方法确定每个子区域的子光强加权中心、以及每个子区域的子光线估计角度;其次,对于每一张子图片,根据其中的明暗对比度信息等获得该子图片对应的光线强度,在得到每个子区域的子光照强度后,将每个子区域的子光照强度作为该子区域的子光线估计角度的权重;最后,对四个子区域的子光线估计角度根据其分别对应的权重进行加和求平均值的计算,得到平均光线估计角度。Specifically, first, the sub-images can be divided into four equal parts to obtain four sub-regions, and the sub-light intensity weighting center of each sub-region and the sub-ray estimation angle of each sub-region are determined according to the above method. Second, for each sub-region, For the picture, the light intensity corresponding to the sub-picture is obtained according to the light and dark contrast information therein. After obtaining the sub-light intensity of each sub-region, the sub-light intensity of each sub-region is used as the weight of the sub-light estimation angle of the sub-region; finally , The sub-ray estimation angles of the four sub-areas are calculated by adding and averaging according to their corresponding weights to obtain the average ray estimation angle.
当视频帧图像中存在多个目标对象图像时,可以对每个目标对象图像通过上述方式进行光线角度的计算,再进行平均求和;也可以通过每个目标对象图像在视频帧图像上的位置和姿态确定其对应的权重,再根据权重进行加权求和,得到最终确定的视频帧图像的光线角度。When there are multiple target object images in the video frame image, the calculation of the light angle can be performed for each target object image in the above manner, and then averaged and summed; or the position of each target object image on the video frame image can also be calculated. Determine the corresponding weights with the pose, and then perform weighted summation according to the weights to obtain the final light angle of the video frame image.
步骤S103,根据所述颜色信息和光线角度生成所述视频内容关联界面的背景,其中,所述视频内容与所述视频内容关联界面在同一界面上呈现。Step S103: Generate a background of the video content association interface according to the color information and the light angle, wherein the video content and the video content association interface are presented on the same interface.
在本步骤中,根据步骤S102得到的颜色信息和光线角度来生成视频内容关联界面的背景,以使视频内容关联界面以与视频帧图像的背景相同或相近的背景呈现。In this step, the background of the video content association interface is generated according to the color information and light angle obtained in step S102, so that the video content association interface is presented with a background that is the same as or similar to the background of the video frame image.
具体地,本步骤可以包括:根据所述颜色信息生成所述视频内容关联界面的背景色;根据所述光线角度对所述背景色的亮度进行调整,得到所述视频内容关联界面的背景。Specifically, this step may include: generating a background color of the video content association interface according to the color information; adjusting the brightness of the background color according to the light angle to obtain the background of the video content association interface.
也就是说,首先,将步骤S102中第一种实施方式或第二种实施方式得到的色调值作为视频内容关联界面的背景色,或者,根据步骤S103中第三种实施方式叙述的方式进行每个像素色调值的覆盖;然后,根据步骤S102中得到的视频帧图像的光线角度对背景色的亮度进行调整,在此之前,可以依据当前播放视频内容界面与视频内容关联界面之间相对位置关系、将视频内容关联界面分成若干个部分(例如,若两个界面之间是左右分布的,则将视频内容关联界面分成左中右三个部分;若两个界面之间是上下分布的,则将视频内容关联界面分成上下左右四个部分等)。确定每个部分与光线角度的位置关系,若某部分是沿着光线角度的方向,则提高该部分背景色的亮度;若某部分是逆着光线角度的方向,则降低该部分色的亮度;若某部分刚好处于上述两者中间,则维持该部分背景色的亮度不变,作为亮度的过渡部分。That is, first, use the hue value obtained in the first or second embodiment in step S102 as the background color of the video content association interface, or perform each step according to the method described in the third embodiment in step S103. Coverage of the pixel tone value; then, the brightness of the background color is adjusted according to the light angle of the video frame image obtained in step S102. Before this, the relative position relationship between the currently playing video content interface and the video content association interface can be adjusted Divide the video content association interface into several parts (for example, if the two interfaces are distributed left and right, the video content association interface is divided into three parts: left, middle, and right; if the two interfaces are distributed up and down, then The video content association interface is divided into four parts: up, down, left, and so on). Determine the positional relationship between each part and the angle of the light. If a part is along the direction of the light angle, increase the brightness of the background color of the part; if a part is against the direction of the light angle, reduce the brightness of the color of the part; If a part is just in the middle of the above two, the brightness of the background color of the part is maintained as a transition part of the brightness.
下面结合具体应用场景对本发明实施例进行举例说明,假设应用服务器提供视频服务,用户可以在其智能手机或平板电脑上观看该视频,而且,播放界面下存在有用户针对视频内容的评论,其中,当前播放的视频内容的背景主色调为绿色,则播放界面下的评论内容的背景颜色也呈现为绿色,且会根据当前播放视频内容的光线角度进行背景的亮度的调整。The embodiments of the present invention are described below with reference to specific application scenarios. Assuming that an application server provides video services, users can watch the video on their smartphones or tablets, and there are user comments on the video content under the playback interface. Among them, The main color of the background of the currently playing video content is green, so the background color of the comment content under the playback interface also appears green, and the brightness of the background will be adjusted according to the light angle of the currently playing video content.
本发明实施例提供的视频内容关联界面的呈现方法,视频内容关联界面可以随当前播放的视频内容的背景变化而切换,使得视频内容关联界面呈现更加丰富、灵活、方便,提高了用户的交互体验。A method for presenting a video content association interface according to an embodiment of the present invention. The video content association interface can be switched according to the background change of the currently played video content, making the video content association interface presentation richer, more flexible, and convenient, and improving the user's interactive experience. .
图4为本发明实施例提供的视频内容关联界面的呈现装置结构图。如图3所示,该装置具体包括:获取模块100、提取模块200和生成模块300。其中,FIG. 4 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention. As shown in FIG. 3, the device specifically includes: an acquisition module 100, an extraction module 200, and a generation module 300. among them,
获取模块100,用于每隔预设时间获取当前播放视频内容的视频帧图像;The obtaining module 100 is configured to obtain a video frame image of a currently playing video content at a preset time;
提取模块200,用于从所述视频帧图像中提取颜色信息和光线角度;生成模块300,用于根据所述颜色信息和光线角度生成所述视频内容关联界面的背景,其中,所述视频内容与所述视频内容关联界面在同一界面上呈现。An extraction module 200 is configured to extract color information and light angle from the video frame image; a generation module 300 is configured to generate a background of the video content association interface according to the color information and light angle, wherein the video content The interface associated with the video content is presented on the same interface.
本发明实施例提供的视频内容关联界面的呈现装置具体用于执行图1所示实施例提供的所述方法,其实现原理、方法和功能用途等与图1所示实施例类似,在此不再赘述。The presenting device for a video content association interface provided by an embodiment of the present invention is specifically configured to execute the method provided by the embodiment shown in FIG. 1, and its implementation principles, methods, and functional uses are similar to the embodiment shown in FIG. 1, and are not described herein. More details.
图5为本发明实施例提供的视频内容关联界面的呈现装置结构图。如图5所示,该装置具体包括:获取模块100、提取模块200和生成模块300。其中,FIG. 5 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention. As shown in FIG. 5, the device specifically includes: an obtaining module 100, an extracting module 200, and a generating module 300. among them,
获取模块100,用于每隔预设时间获取当前播放视频内容的视频帧图像;The obtaining module 100 is configured to obtain a video frame image of a currently playing video content at a preset time;
提取模块200,用于从所述视频帧图像中提取颜色信息和光线角度;生成模块300,用于根据所述颜色信息和光线角度生成所述视频内容关联界面的背景,其中,所述视频 内容与所述视频内容关联界面在同一界面上呈现。An extraction module 200 is configured to extract color information and light angle from the video frame image; a generation module 300 is configured to generate a background of the video content association interface according to the color information and light angle, wherein the video content The interface associated with the video content is presented on the same interface.
进一步地,提取模块200包括:第一计算单元210、遍历单元220、判断单元230、第一确定单元240、识别单元250和提取单元260。其中,Further, the extraction module 200 includes: a first calculation unit 210, a traversal unit 220, a determination unit 230, a first determination unit 240, a recognition unit 250, and an extraction unit 260. among them,
第一计算单元210,用于计算所述视频帧图像的色调平均值;遍历单元220,用于遍历所述视频帧图像的像素,计算所述像素的色调值与所述色调平均值的色差;判断单元230,用于判断所述色差是否大于预设阈值;第一确定单元240,用于若所述色差大于预设阈值,将所述像素加入到主色调像素列表,根据所述主色调像素列表中所述像素的色调值,确定所述颜色信息。A first calculation unit 210 is configured to calculate an average hue of the video frame image; a traversal unit 220 is configured to traverse pixels of the video frame image, and calculate a color difference between the hue value of the pixel and the average hue; A determining unit 230 is configured to determine whether the color difference is greater than a preset threshold; a first determination unit 240 is configured to add the pixels to a main color pixel list if the color difference is greater than a preset threshold, The hue value of the pixel in the list determines the color information.
识别单元250,用于识别并提取所述视频帧图像中的目标对象图像,其中,所述目标对象为人物或动物;提取单元260,用于提取所述目标对象图像中鼻部区域的子图像,基于所述子图像的光强加权中心与所述目标对象图像的加权中心,得到所述光线角度。A recognition unit 250 is configured to recognize and extract a target object image in the video frame image, where the target object is a person or an animal; an extraction unit 260 is configured to extract a sub-image of a nasal region in the target object image , Obtaining the light angle based on the weighted center of the light intensity of the sub-image and the weighted center of the target object image.
可选地,生成模块300具体用于,根据所述颜色信息生成所述视频内容关联界面的背景色;根据所述光线角度对所述背景色的亮度进行调整,得到所述视频内容关联界面的背景。Optionally, the generating module 300 is specifically configured to generate a background color of the video content association interface according to the color information; and adjust the brightness of the background color according to the light angle to obtain the video content association interface. background.
本发明实施例提供的视频内容关联界面的呈现装置具体用于执行图1-图3所示实施例提供的所述方法,其实现原理、方法和功能用途和图1-图3所示实施例类似,在此不再赘述。The apparatus for presenting a video content association interface provided by the embodiment of the present invention is specifically configured to execute the method provided by the embodiment shown in FIG. 1 to FIG. 3, and its implementation principles, methods, and functional uses are similar to the embodiment shown in FIG. 1 to FIG. 3. Similarly, we will not repeat them here.
图6为本发明实施例提供的视频内容关联界面的呈现装置结构图。如图6所示,该装置具体包括:获取模块100、提取模块200和生成模块300。其中,FIG. 6 is a structural diagram of a presentation device for a video content association interface according to an embodiment of the present invention. As shown in FIG. 6, the device specifically includes: an obtaining module 100, an extracting module 200, and a generating module 300. among them,
获取模块100,用于每隔预设时间获取当前播放视频内容的视频帧图像;The obtaining module 100 is configured to obtain a video frame image of a currently playing video content at a preset time;
提取模块200,用于从所述视频帧图像中提取颜色信息和光线角度;生成模块300,用于根据所述颜色信息和光线角度生成所述视频内容关联界面的背景,其中,所述视频内容与所述视频内容关联界面在同一界面上呈现。An extraction module 200 is configured to extract color information and light angle from the video frame image; a generation module 300 is configured to generate a background of the video content association interface according to the color information and light angle, wherein the video content The interface associated with the video content is presented on the same interface.
进一步地,提取模块200包括:第二确定单元270、第二计算单元280、识别单元250和提取单元260。其中,Further, the extraction module 200 includes: a second determination unit 270, a second calculation unit 280, a recognition unit 250, and an extraction unit 260. among them,
第二确定单元270,用于根据所述视频帧图像中每个像素与所述视频内容关联界面的距离,确定所述像素对应的权重值;第二计算单元280,用于根据所述像素的色调值和对应的权重值,计算得到所述颜色信息。A second determining unit 270 is configured to determine a weight value corresponding to the pixel according to a distance between each pixel in the video frame image and the video content association interface; a second calculating unit 280 is configured to determine a weight value according to the pixel The hue value and the corresponding weight value are calculated to obtain the color information.
识别单元250,用于识别并提取所述视频帧图像中的目标对象图像,其中,所述目标对象为人物或动物;提取单元260,用于提取所述目标对象图像中鼻部区域的子图像,基于所述子图像的光强加权中心与所述目标对象图像的加权中心,得到所述光线角度。A recognition unit 250 is configured to recognize and extract a target object image in the video frame image, where the target object is a person or an animal; an extraction unit 260 is configured to extract a sub-image of a nasal region in the target object image , Obtaining the light angle based on the weighted center of the light intensity of the sub-image and the weighted center of the target object image.
可选地,生成模块300具体用于,根据所述颜色信息生成所述视频内容关联界面的背景色;根据所述光线角度对所述背景色的亮度进行调整,得到所述视频内容关联界面的背景。Optionally, the generating module 300 is specifically configured to generate a background color of the video content association interface according to the color information; and adjust the brightness of the background color according to the light angle to obtain the video content association interface. background.
本发明实施例提供的视频内容关联界面的呈现装置具体用于执行图1和图3所示实施例提供的所述方法,其实现原理、方法和功能用途和图1和图3所示实施例类似,在此不再赘述。The apparatus for presenting a video content association interface provided by the embodiment of the present invention is specifically configured to execute the method provided by the embodiment shown in FIG. 1 and FIG. 3, and its implementation principles, methods, and functional uses are similar to the embodiments shown in FIG. 1 and FIG. Similarly, we will not repeat them here.
上述这些本发明实施例的视频内容关联界面的呈现装置可以作为其中一个软件或者硬件功能单元,独立设置在上述电子设备中,也可以作为整合在处理器中的其中一个功能模块,执行本发明实施例的视频内容关联界面的呈现方法。The above-mentioned presentation device of the video content association interface in the embodiments of the present invention can be used as one of the software or hardware functional units, which can be independently set in the above-mentioned electronic device, or can be used as one of the functional modules integrated in the processor to implement the implementation of the present invention. Presentation method of video content association interface for example.
图7为执行本发明方法实施例提供的视频内容关联界面的呈现方法的电子设备的硬件结构示意图。根据图7所示,该电子设备包括:FIG. 7 is a schematic diagram of a hardware structure of an electronic device that executes a method for presenting a video content association interface provided by a method embodiment of the present invention. According to FIG. 7, the electronic device includes:
一个或多个处理器710以及存储器720,图7中以一个处理器710为例。执行所述的视频内容关联界面的呈现方法的设备还可以包括:输入装置730和输出装置730。One or more processors 710 and a memory 720. One processor 710 is taken as an example in FIG. 7. The device for performing the method for presenting a video content association interface may further include an input device 730 and an output device 730.
处理器710、存储器720、输入装置730和输出装置740可以通过总线或者其他方式连接,图7中以通过总线连接为例。The processor 710, the memory 720, the input device 730, and the output device 740 may be connected through a bus or in other manners. In FIG. 7, the connection through the bus is taken as an example.
存储器720作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本发明实施例中的所述视频内容关联界面的呈现方法对应的程序指令/模块。处理器710通过运行存储在存储器720中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现所述视频内容关联界面的呈现方法。The memory 720 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as the video content association interface in the embodiment of the present invention. Program instructions / modules corresponding to the rendering method. The processor 710 executes various functional applications and data processing of the server by running non-volatile software programs, instructions, and modules stored in the memory 720, that is, a method for presenting the video content association interface.
存储器720可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据本发明实施例提供的视频内容关联界面的呈现装置的使用所创建的数据等。此外,存储器720可以包括高速随机存取存储器720,还可以包括非易失性存储器720,例如至少一个磁盘存储器720件、闪存器件、或其他非易失性固态存储器720件。在一些实施例中,存储器720可选包括相对于处理器77远程设置的存储器720,这些远程存储器720可以通过网络连接至所述视频内容关联界面的呈现装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 720 may include a storage program area and a storage data area, where the storage program area may store an operating system and application programs required for at least one function; the storage data area may store a presentation device for a video content association interface provided according to an embodiment of the present invention Use of created data, etc. In addition, the memory 720 may include a high-speed random access memory 720, and may further include a non-volatile memory 720, such as at least one disk memory 720, a flash memory device, or other non-volatile solid-state memory 720. In some embodiments, the memory 720 may optionally include a memory 720 remotely set relative to the processor 77, and these remote memories 720 may be connected to a presentation device of the video content association interface through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
输入装置730可接收输入的数字或字符信息,以及产生与视频内容关联界面的呈现装置的用户设置以及功能控制有关的键信号输入。输入装置730可包括按压模组等设备。The input device 730 may receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of a presentation device of a video content association interface. The input device 730 may include a device such as a pressing module.
所述一个或者多个模块存储在所述存储器720中,当被所述一个或者多个处理器710 执行时,执行所述视频内容关联界面的呈现方法。The one or more modules are stored in the memory 720, and when executed by the one or more processors 710, perform a method of presenting the video content association interface.
本发明实施例的电子设备以多种形式存在,包括但不限于:The electronic devices in the embodiments of the present invention exist in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication equipment: This type of equipment is characterized by mobile communication functions, and its main goal is to provide voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, feature phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has the characteristics of mobile Internet access. Such terminals include: PDA, MID and UMPC devices, such as iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment equipment: This type of equipment can display and play multimedia content. Such devices include: audio and video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
(4)服务器。(4) The server.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction function.
具体的,电子设备中包括图像获取模块,如图8所示,本实施例的所述图像获取模块包括镜头1000、自动聚焦音圈马达2000、机械防抖器3000以及图像传感器4000,所述镜头1000固装在所述自动聚焦音圈马达2000上,所述镜头1000固装在所述自动聚焦音圈马达2000上,所述镜头1000用于获取图像,所述图像传感器4000将所述镜头1000获取的图像传输至所述识别模块,所述自动聚焦音圈马达2000安装在所述机械防抖器3000上,所述处理模块根据镜头1000内的陀螺仪检测到的镜头1000抖动的反馈驱动所述机械防抖器3000的动作,实现镜头1000的抖动补偿。Specifically, the electronic device includes an image acquisition module. As shown in FIG. 8, the image acquisition module in this embodiment includes a lens 1000, an autofocus voice coil motor 2000, a mechanical image stabilizer 3000, and an image sensor 4000. The lens 1000 is fixed on the auto-focusing voice coil motor 2000, and the lens 1000 is fixed on the auto-focusing voice coil motor 2000. The lens 1000 is used to acquire an image, and the image sensor 4000 sets the lens 1000 The acquired image is transmitted to the recognition module, the auto-focusing voice coil motor 2000 is mounted on the mechanical image stabilizer 3000, and the processing module drives the camera based on the feedback of the lens 1000 shake detected by the gyroscope in the lens 1000. The operation of the mechanical image stabilizer 3000 is described to realize the shake compensation of the lens 1000.
现有的防抖器大多由通电线圈在磁场中产生洛伦磁力驱动镜头1000移动,而要实现光学防抖,需要在至少两个方向上驱动镜头1000,这意味着需要布置多个线圈,会给整体结构的微型化带来一定挑战,而且容易受外界磁场干扰,进而影响防抖效果,因此公开号为CN106131435A的中国专利提供了一种微型光学防抖摄像头模组,其通过温度变化实现记忆合金丝的拉伸和缩短,以此拉动自动聚焦音圈马达2000移动,实现镜头1000的抖动补偿,微型记忆合金光学防抖致动器的控制芯片可以控制驱动信号的变化来改变记忆合金丝的温度,以此控制记忆合金丝的伸长和缩短,并且根据记忆合金丝的电阻来计算致动器的位置和移动距离。当微型记忆合金光学防抖致动器上移动到指定位置后反馈记忆合金丝此时的电阻,通过比较这个电阻值与目标值的偏差,可以校正微型记忆合金光学防抖致动器上的移动偏差。Most of the existing image stabilizers are powered by coils that generate Loren magnetic force in a magnetic field to drive the lens 1000. To achieve optical image stabilization, the lens 1000 needs to be driven in at least two directions, which means that multiple coils need to be arranged. It brings certain challenges to the miniaturization of the overall structure, and is easily affected by external magnetic fields, which affects the anti-shake effect. Therefore, the Chinese patent published as CN106131435A provides a miniature optical anti-shake camera module, which realizes memory through temperature changes. The alloy wire is stretched and shortened to pull the auto-focusing voice coil motor 2000 to achieve the shake compensation of the lens 1000. The control chip of the micro memory alloy optical anti-shake actuator can control the change of the driving signal to change the memory alloy wire. The temperature is used to control the elongation and shortening of the memory alloy wire, and the position and moving distance of the actuator are calculated based on the resistance of the memory alloy wire. When the micro memory alloy optical image stabilization actuator moves to the specified position, the resistance of the memory alloy wire at this time is fed back. By comparing the deviation of this resistance value and the target value, the movement on the micro memory alloy optical image stabilization actuator can be corrected. deviation.
但是申请人发现,由于抖动的随机性和不确定性,仅仅依靠上述技术方案的结构是无法实现在多次抖动发生的情况下能够对镜头1000进行精确的补偿,这是由于形状记忆合金的升温和降温均需要一定的时间,当抖动向第一方向发生时,上述技术 方案可以实现镜头1000对第一方向抖动的补偿,但是当随之而来的第二方向的抖动发生时,由于记忆合金丝来不及在瞬间变形,因此容易造成补偿不及时,无法精准实现对多次抖动和不同方向的连续抖动的镜头1000抖动补偿,因此需要对其结构上进行改进。However, the applicant found that due to the randomness and uncertainty of the shake, the structure of the above technical solution alone cannot achieve accurate compensation for the lens 1000 in the case of multiple shakes, which is due to the heating of the shape memory alloy It takes a certain time to cool down and cool down. When the shake occurs in the first direction, the above technical solution can achieve the compensation of the lens 1000 for the shake in the first direction, but when the subsequent shake in the second direction occurs, due to the memory alloy It is too late to deform in an instant, so it is easy to cause compensation in a timely manner, and it is impossible to accurately achieve 1000-shake compensation for a lens that has multiple shakes and continuous shakes in different directions, so it is necessary to improve its structure.
结合附图9-12所示,本实施例对光学防抖器进行改进,将其设计为机械防抖器3000,其具体结构如下:With reference to Figures 9-12, this embodiment improves the optical image stabilizer and design it as a mechanical image stabilizer 3000. The specific structure is as follows:
本实施例的所述机械防抖器3000包括活动板3100、活动框3200、弹性回复机构3300、基板3400以及补偿机构3500;所述活动板3100和基板3400的中部均设有供所述镜头穿过的通孔3700,所述自动聚焦音圈马达安装在所述活动板3100上,所述活动板3100安装在所述活动框3200内,由图中可以看出,本实施例的活动板3100的左右方向的宽度与活动框3200的内部宽度大致相同,使得所述活动板3100的相对两侧(左右两侧)与所述活动框3200相对两侧(左右两侧)的内壁滑动配合,以使所述活动板3100在活动框3200内可沿着第一方向往复滑动,本实施例的第一方向即图中的上下方向。The mechanical image stabilizer 3000 of this embodiment includes a movable plate 3100, a movable frame 3200, an elastic restoring mechanism 3300, a base plate 3400, and a compensation mechanism 3500. The movable plate 3100 and the base plate 3400 are provided in the middle of the plate for the lens to pass through. Through the through hole 3700, the auto-focusing voice coil motor is installed on the movable plate 3100, and the movable plate 3100 is installed in the movable frame 3200. As can be seen from the figure, the movable plate 3100 of this embodiment The width in the left-to-right direction is substantially the same as the internal width of the movable frame 3200, so that the opposite sides (left and right sides) of the movable plate 3100 and the inner walls of the opposite sides (left and right sides) of the movable frame 3200 slide to fit. The movable plate 3100 can slide back and forth along the first direction within the movable frame 3200. The first direction in this embodiment is the vertical direction in the figure.
具体的,本实施例的所述活动框3200的尺寸小于所述基板3400的尺寸,所述活动框3200的相对两侧分别通过两个弹性回复机构3300与所述基板3400相连接,本实施例的弹性回复机构3300为伸缩弹簧或者其他弹性件,而且需要说明的是,本实施例的弹性回复机构3300只允许其具有沿着图中左右方向(即下述的第二方向)伸缩和回弹的能力,无法沿着第一方向运动,设计弹性回复机构3300的目的也是在于当活动框3200发生补偿位移后便于活动框3200带动活动板3100复位,而具体的动作过程本实施例会在下述的工作过程进行具体描述。Specifically, the size of the movable frame 3200 in this embodiment is smaller than the size of the substrate 3400, and two opposite sides of the movable frame 3200 are connected to the substrate 3400 through two elastic recovery mechanisms 3300, respectively. The elastic restoring mechanism 3300 is a telescopic spring or other elastic member, and it should be noted that the elastic restoring mechanism 3300 of this embodiment only allows it to expand and retract in the left-right direction in the figure (that is, the second direction described below). The ability to move along the first direction cannot be designed. The purpose of designing the elastic recovery mechanism 3300 is also to facilitate the movable frame 3200 to reset the movable plate 3100 after the movable frame 3200 compensates for displacement. The specific action process of this embodiment will be described below. The process is described in detail.
本实施例的所述补偿机构3500在所述处理模块的驱动(可以是处理模块发送的动作指令)下带动所述活动板3100和活动板3100上的镜头动作,以实现镜头的抖动补偿。The compensation mechanism 3500 of this embodiment drives the movable plate 3100 and the lens on the movable plate 3100 under the driving of the processing module (which may be an action instruction sent by the processing module) to implement lens shake compensation.
具体的,本实施例的所述补偿机构3500包括驱动轴3510、齿轮3520、齿轮轨道3530以及限位轨道3540,所述驱动轴3510安装在所述基板3400上,具体是安装在基板3400的上表面,所述驱动轴3510与所述齿轮3520传动连接,驱动轴3510可以通过微型电机(图中未示出)等结构驱动,并且微型电机受控于上述的处理模块;所述齿轮轨道3530设置在所述活动板3100上,所述齿轮3520安装在所述齿轮轨道3530内并沿着所述齿轮轨道3530的预设方向运动,所述齿轮3520转动时通过所述齿轮轨道3530使得所述活动板3100能够产生向第一方向的位移和第二方向的位移, 其中所述第一方向与所述第二方向垂直;所述限位轨道3540设置在所述活动板3100上或所述基板3400上,所述限位轨道3540用于防止所述齿轮3520脱离所述齿轮轨道3530。Specifically, the compensation mechanism 3500 in this embodiment includes a driving shaft 3510, a gear 3520, a gear track 3530, and a limit track 3540. The driving shaft 3510 is mounted on the substrate 3400, and specifically is mounted on the substrate 3400. On the surface, the drive shaft 3510 is drivingly connected to the gear 3520. The drive shaft 3510 can be driven by a structure such as a micro motor (not shown), and the micro motor is controlled by the processing module described above; the gear track 3530 is provided On the movable plate 3100, the gear 3520 is installed in the gear track 3530 and moves in a preset direction of the gear track 3530. When the gear 3520 rotates, the gear track 3530 makes the movement The plate 3100 can generate a displacement in a first direction and a displacement in a second direction, wherein the first direction is perpendicular to the second direction; the limit track 3540 is disposed on the movable plate 3100 or the base plate 3400 In the above, the limit track 3540 is used to prevent the gear 3520 from leaving the gear track 3530.
具体的,本实施例的齿轮轨道3530和限位轨道3540具有以下两种结构形式:Specifically, the gear track 3530 and the limit track 3540 of this embodiment have the following two structural forms:
如图8-10所示,本实施例的所述活动板3100下侧设有一腰型孔3550,所述腰型孔3550沿其周向(即腰型孔3550的环绕方向)设有多个与所述齿轮3520相啮合的齿3560,所述腰型孔3550和多个所述齿3560共同构成所述齿轮轨道3530,所述齿轮3520位于所述腰型孔3550内并与所述齿3560相啮合,使得齿轮3520在转动时能够带动齿轮轨道3530运动,进而直接带动活动板3100的运动;而为了使得齿轮3520在转动时时刻能够保证与齿轮轨道3530时刻保持啮合,本实施例将所述限位轨道3540设置在所述基板3400上,所述活动板3100底部设有安装在所述限位轨道3540内的限位件3570,所述限位轨道3540使所述限位件3570在其中的运动轨迹呈腰型,即限位件3570在现为轨道内的运动轨迹与活动板3100的运动轨迹相同,具体的,本实施例的所述限位件3570为设置在所述活动板3100底面上的凸起。As shown in FIGS. 8-10, a waist-shaped hole 3550 is provided on the lower side of the movable plate 3100 in this embodiment, and a plurality of waist-shaped holes 3550 are provided along the circumferential direction (that is, the surrounding direction of the waist-shaped hole 3550). A tooth 3560 meshing with the gear 3520, the waist-shaped hole 3550 and a plurality of the teeth 3560 together form the gear track 3530, and the gear 3520 is located in the waist-shaped hole 3550 and communicates with the tooth 3560. The meshing makes the gear 3520 move the gear track 3530 when it rotates, and then directly drives the movement of the movable plate 3100. In order to ensure that the gear 3520 keeps meshing with the gear track 3530 at all times during the rotation, this embodiment describes A limiting rail 3540 is provided on the base plate 3400, and a bottom of the movable plate 3100 is provided with a limiting member 3570 installed in the limiting rail 3540. The limiting rail 3540 enables the limiting member 3570 to be located therein. The movement trajectory is waist-shaped, that is, the movement trajectory of the limiter 3570 in the current track is the same as the movement trajectory of the movable plate 3100. Specifically, the limiter 3570 of this embodiment is provided on the movable plate 3100. Bulge on the bottom.
再结合附图11和12所示,本实施例的所述齿轮轨道3530还可以由设置在所述活动板3100上的多个圆柱凸起3580组成,多个所述圆柱凸起3580沿所述第二方向均匀间隔布设,所述齿轮3520与多个所述凸起相啮合;而所述限位轨道3540为设置在所述活动板3100上的第一弧形限位件3590和第二弧形限位件3600,所述第一弧形限位件3590和第二弧形限位件3600分别设置在所述齿轮轨道3530沿第一方向上的相对两侧,防,在活动板3100运动至预设位置时,齿轮3520位于齿轮轨道3530的一侧,齿轮3520容易脱离圆柱凸起3580组成的齿轮轨道3530,因此通过第一弧形限位件3590或第二弧形限位件3600可以起到引导作用,使得活动板3100能够沿着齿轮轨道3530的预设方向运动,即所述第一弧形限位件3590和第二弧形限位件3600及多个所述凸起相配合使得所述活动板3100的运动轨迹呈腰型。In combination with FIGS. 11 and 12, the gear track 3530 of this embodiment may also be composed of a plurality of cylindrical protrusions 3580 provided on the movable plate 3100. The gears 3520 are arranged at regular intervals in the second direction, and the gears 3520 are engaged with a plurality of the protrusions; and the limit track 3540 is a first arc-shaped stopper 3590 and a second arc provided on the movable plate 3100. Shape limiting member 3600, the first arc-shaped limiting member 3590 and the second arc-shaped limiting member 3600 are respectively disposed on opposite sides of the gear rail 3530 in the first direction to prevent movement on the movable plate 3100 When the preset position is reached, the gear 3520 is located on one side of the gear rail 3530. The gear 3520 is easily separated from the gear rail 3530 formed by the cylindrical protrusion 3580. Therefore, the first arc-shaped stopper 3590 or the second arc-shaped stopper 3600 can Plays a guiding role, so that the movable plate 3100 can move in a preset direction of the gear track 3530, that is, the first arc-shaped limiting member 3590, the second arc-shaped limiting member 3600, and a plurality of the protrusions cooperate The motion trajectory of the movable board 3100 is waist-shaped.
下面结合上述结构对本实施例的机械防抖器3000的工作过程进行详细的描述,以镜头1000两次抖动为例,两次抖动方向相反,且需要使得活动板3100向第一方向运动补偿一次,并随后向第二方向运动补偿一次。需要活动板3100向第一方向运动补偿时,陀螺仪事先将检测到的镜头1000抖动方向和距离反馈给所述处理模块,处理模块计算出需要活动板3100的运动距离,进而使得驱动轴3510带动齿轮3520转动,齿轮3520通过与齿轮轨道3530和限位轨道3540的配合,处理模块无线发送驱动信号,进而带动活动板3100向第一方向运动至补偿位置,补偿后再次通过驱动轴 3510带动活动板3100复位,在复位过程中,弹性回复机构3300也为活动板3100的复位提供复位力,更加便于活动板3100恢复到初始位置。需要活动板3100向第二方向运动补偿时,处理方式与上述第一方向的补偿步骤相同,这里不过多赘述。The following describes the working process of the mechanical image stabilizer 3000 of this embodiment in detail with reference to the above structure. Taking the lens 1000 as an example of two shakes, the two shake directions are opposite, and the movable plate 3100 needs to be compensated once in the first direction. And then motion compensation once in the second direction. When the movable plate 3100 needs motion compensation in the first direction, the gyroscope feeds back the detected lens 1000 shake direction and distance to the processing module in advance, and the processing module calculates the required moving distance of the movable plate 3100, so that the driving shaft 3510 drives The gear 3520 rotates. The gear 3520 cooperates with the gear track 3530 and the limit track 3540, and the processing module wirelessly sends a driving signal, thereby driving the movable plate 3100 to move to the compensation position in the first direction. After compensation, the movable plate is driven again by the driving shaft 3510. 3100 reset. During the reset process, the elastic recovery mechanism 3300 also provides a reset force for resetting the movable plate 3100, which is more convenient for the movable plate 3100 to return to the initial position. When the movable plate 3100 needs to be compensated for motion in the second direction, the processing method is the same as the compensation steps in the first direction described above.
当然上述仅仅为简单的两次抖动,当发生多次抖动时,或者抖动的方向并非往复运动时,可以通过驱动多个补偿组件以补偿抖动,其基础工作过程与上述描述原理相同,这里不过多赘述,另外关于陀螺仪的检测反馈、处理模块向驱动轴3510发送控制指令等均为现有技术,这里也不过多描述。Of course, the above is just two simple jitters. When multiple jitters occur or the direction of the jitter is not reciprocating, you can drive multiple compensation components to compensate for the jitter. The basic working process is the same as the principle described above. To repeat, the detection feedback from the gyroscope and the control module sending control instructions to the drive shaft 3510 are all existing technologies, and are not described here too.
结合上述说明可知,本实施例提供的机械补偿器不仅不会受到外界磁场干扰,防抖效果好,而且可以实现在多次抖动发生的情况下能够对镜头1000进行精确的补偿,补偿及时准确。另外,采用本实施例的机械防抖器不仅结构简单,各个部件所需的安装空间小,便于整个防抖器的集成化,而且具有较高的补偿精度。It can be known from the above description that the mechanical compensator provided in this embodiment not only does not receive interference from external magnetic fields and has a good anti-shake effect, but also can accurately compensate the lens 1000 in the event of multiple shakes, and the compensation is timely and accurate. In addition, the mechanical anti-shake device using this embodiment is not only simple in structure, but also requires small installation space for each component, which facilitates the integration of the entire anti-shake device and has higher compensation accuracy.
具体的,本实施例的所述电子设备包括手机和用于安装所述手机的支架。电子设备包含支架的目的是由于图像获取环境的不确定性,因此需要使用支架对电子设备进行支撑和固定。Specifically, the electronic device in this embodiment includes a mobile phone and a bracket for mounting the mobile phone. The purpose of the electronic device including a bracket is to support and fix the electronic device due to the uncertainty of the image acquisition environment.
另外,申请人发现,现有的手机支架仅仅具有支撑手机的功能,而不具有自拍杆的功能,因此申请人对支架做出第一步改进,将手机支架5000和支撑杆5200相结合,结合附图13所示,本实施例的所述支架5000包括手机安装座5100和可伸缩的支撑杆5200,支撑杆5200与手机安装座5100的中部(具体为下述基板3200的中部)通过阻尼铰链相连接,使得支撑杆5200在转动至图13的状态时,支架5000可形成自拍杆结构,而支撑杆5200在转动至图14的状态时,支架5000可形成手机支架5000结构。In addition, the applicant found that the existing mobile phone holder only has the function of supporting the mobile phone, but does not have the function of a selfie stick, so the applicant made the first step improvement to the holder, combining the mobile phone holder 5000 and the support rod 5200, As shown in FIG. 13, the bracket 5000 in this embodiment includes a mobile phone mounting base 5100 and a retractable supporting rod 5200. The supporting rod 5200 and the middle portion of the mobile phone mounting base 5100 (specifically, the middle portion of the substrate 3200 described below) pass through a damping hinge. When the supporting rod 5200 is rotated to the state of FIG. 13, the bracket 5000 may form a selfie stick structure, and when the supporting rod 5200 is rotated to the state of FIG. 14, the bracket 5000 may form a mobile phone bracket 5000 structure.
而结合上述支架结构申请人又发现,手机安装座5100与支撑杆5200结合后占用空间较大,即使支撑杆5200可伸缩,但是手机安装座5100无法进行结构的变化,体积不会进一步缩小,无法将其放入衣兜或者小型的包内,造成支架5000携带不便的问题,因此本实施例对支架5000做出第二步改进,使得支架5000的整体收容性得到进一步的提高。In combination with the above bracket structure, the applicant also found that the mobile phone mount 5100 combined with the support pole 5200 occupies a large space. Even if the support pole 5200 is retractable, the mobile phone mount 5100 cannot undergo structural changes and the volume will not be further reduced. Putting it in a pocket or a small bag causes the inconvenience of carrying the stent 5000. Therefore, in this embodiment, a second step improvement is made to the stent 5000, so that the overall storability of the stent 5000 is further improved.
结合图13-16所示,本实施例的所述手机安装座5100包括可伸缩的连接板5110和安装于连接板5110相对两端的折叠板组5120,所述支撑杆5200与所述连接板5110中部通过阻尼铰链相连接;所述折叠板组5120包括第一板体5121、第二板体5122及第三板体5123,其中,所述第一板体5121的相对两端中的一端与所述连接板5110相铰接,所述第一板体5121的相对两端中的另一端与所述第二板体5122的相对两端 中的一端相铰接;所述第二板体5122相对两端的另一端与所述第三板体5123相对两端中的一端相铰接;所述第二板体5122设有供手机边角插入的开口5130。As shown in FIGS. 13-16, the mobile phone mounting base 5100 of this embodiment includes a retractable connecting plate 5110 and a folding plate group 5120 installed at opposite ends of the connecting plate 5110. The support rod 5200 and the connecting plate 5110 The middle part is connected by a damping hinge; the folding plate group 5120 includes a first plate body 5121, a second plate body 5122, and a third plate body 5123, wherein one of the two opposite ends of the first plate body 5121 is connected to the first plate body 5121. The connecting plate 5110 is hinged, the other end of the opposite ends of the first plate body 5121 is hinged with one of the opposite ends of the second plate body 5122, and the opposite ends of the second plate body 5122 The other end is hinged to one of opposite ends of the third plate body 5123; the second plate body 5122 is provided with an opening 5130 for a corner of the mobile phone to be inserted.
结合附图16所示,所述手机安装座5100用于安装手机时,所述第一板体5121、第二板体5122和第三板体5123折叠呈直角三角形状态,所述第二板体5122为直角三角形的斜边,所述第一板体5121和所述第三板体5123为直角三角形的直角边,其中,所述第三板体5123的一个侧面与所述连接板5110的一个侧面并排贴合,所述第三板体5123相对两端中的另一端与所述第一板体5121相对两端中的一端相抵,该结构可以使得三个折叠板处于自锁状态,并且将手机下部的两个边角插入到两侧的两个开口5130时,手机6000的下部两侧位于两个直角三角形内,通过手机、连接板5110和折叠板组5120件的共同作可以完成手机6000的固定,三角形状态在外力情况下无法打开,只有从开口5130抽出手机后才能解除折叠板组5120件的三角形状态。As shown in FIG. 16, when the mobile phone mounting base 5100 is used to install a mobile phone, the first plate 5121, the second plate 5122, and the third plate 5123 are folded into a right triangle state, and the second plate 5122 is a hypotenuse of a right-angled triangle, and the first plate body 5121 and the third plate 5123 are right-angled sides of a right triangle, wherein one side surface of the third plate body 5123 and one of the connection plate 5110 are The side is attached side by side, and the other end of the opposite ends of the third plate body 5123 and the one of the opposite ends of the first plate body 5121 are against each other. This structure can make the three folding plates in a self-locking state, and When the two lower corners of the mobile phone are inserted into the two openings 5130 on both sides, the lower sides of the mobile phone 6000 are located in two right-angled triangles. The mobile phone 6000 can be completed through the joint work of the mobile phone, the connecting plate 5110, and the folding plate group 5120. The triangle state cannot be opened under external force. The triangle state of 5120 pieces of folding plate group can only be released after the mobile phone is pulled out from the opening 5130.
而在手机安装座5100不处于工作状态时,将连接板5110缩小至最小长度,并且将折叠板组5120件与连接板5110相互折叠,用户可以将手机安装座5100折叠呈最小体积,而由于支撑杆5200的可伸缩性,因此可以将整个支架5000收容呈体积最小的状态,提高了支架5000的收荣幸,用户甚至可以直接将支架5000放入衣兜或小的手包内,十分方便。When the mobile phone mounting base 5100 is not in working state, the connecting plate 5110 is reduced to a minimum length, and the folding plate group 5120 and the connecting plate 5110 are folded to each other. The user can fold the mobile phone mounting base 5100 to a minimum volume. Due to the scalability of the lever 5200, the entire bracket 5000 can be accommodated in the smallest state, which improves the collection of the bracket 5000. The user can even put the bracket 5000 directly into the pocket or small handbag, which is very convenient.
优选的,本实施例还在所述第三板体5123的一个侧面设有第一连接部,所述连接板5110与所述第三板体5123相贴合的侧面设有与所述第一连接部相配合的第一配合部,所述支架5000手机安装座5100用于安装手机时,所述第一连接部和所述第一配合部卡合连接。具体的,本实施例的第一连接部为一个凸条或凸起(图中未示出),第一配合部为开设在连接板5110上的卡槽(图中未示出)。该结构不仅提高了折叠板组5120件处于三角形状态时的稳定性,而且在需要将手机安装座5100折叠至最小状态时也便于折叠板组5120件与连接板5110的连接。Preferably, in this embodiment, a first connection portion is also provided on one side of the third plate body 5123, and a side surface where the connection plate 5110 is in contact with the third plate body 5123 is provided with the first connection portion. A first mating portion that mates with the connecting portion. When the bracket 5000 mobile phone mounting base 5100 is used to install a mobile phone, the first connecting portion and the first mating portion are snap-connected. Specifically, the first connecting portion of this embodiment is a convex strip or protrusion (not shown in the figure), and the first matching portion is a card slot (not shown in the figure) opened on the connecting plate 5110. This structure not only improves the stability when the 5120 pieces of the folding plate group are in a triangular state, but also facilitates the connection of the 5120 pieces of the folding plate group and the connecting plate 5110 when the mobile phone mounting base 5100 needs to be folded to a minimum state.
优选的,本实施例还在所述第一板体5121相对两端中的一端设有第二连接部,所述第三板体5123相对两端中的另一端设有与所述第二连接部相配合的第二配合部,所述支架5000手机安装座5100用于安装手机时,所述第二连接部和所述第二配合部卡合连接。第二连接部可以是凸起(图中未示出),第二配合部为与凸起相配合的开口5130或卡槽(图中未示出)。该结构提高了叠板组件处于三角形状态时的稳定性Preferably, in this embodiment, a second connection portion is also provided at one end of the opposite ends of the first plate body 5121, and the other end of the opposite ends of the third plate body 5123 is provided with the second connection portion. When the mobile phone mounting base 5100 of the bracket 5000 is used for mounting a mobile phone, the second connecting portion is engaged with the second matching portion. The second connection portion may be a protrusion (not shown in the figure), and the second mating portion is an opening 5130 or a card slot (not shown in the figure) that cooperates with the protrusion. This structure improves the stability when the laminated board assembly is in a triangular state
另外,本实施例还可以在所述支撑杆5200的另一端可拆卸连接有底座(图中未示出),在需要固定手机并且使手机6000具有一定高度时,可以将支撑杆5200拉伸呈一定 长度,并通过底座将支架5000置于一个平面上,再将手机放置到手机安装座5100内,完成手机的固定;而支撑杆5200和底座的可拆卸连接可以使得两者可以单独携带,进一步提高了支架5000的收容性和携带的方便性。In addition, in this embodiment, a base (not shown in the figure) can be detachably connected to the other end of the support rod 5200. When the mobile phone needs to be fixed and the mobile phone 6000 has a certain height, the support rod 5200 can be stretched to A certain length, put the bracket 5000 on a plane through the base, and then place the mobile phone in the mobile phone mount 5100 to complete the fixing of the mobile phone; and the detachable connection of the support rod 5200 and the base can make the two can be carried separately, further The accommodating and carrying convenience of the bracket 5000 are improved.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only schematic, and the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, which may be located in One place, or can be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment. Those of ordinary skill in the art can understand and implement without creative labor.
本发明实施例提供了一种非暂态计算机可读存存储介质,所述计算机存储介质存储有计算机可执行指令,其中,当所述计算机可执行指令被电子设备执行时,使所述电子设备上执行上述任意方法实施例中的视频内容关联界面的呈现方法。An embodiment of the present invention provides a non-transitory computer-readable storage storage medium, where the computer storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by an electronic device, the electronic device is caused The method for presenting a video content association interface in any of the foregoing method embodiments is performed on the above.
本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,其中,当所述程序指令被电子设备执行时,使所述电子设备执行上述任意方法实施例中的视频内容关联界面的呈现方法。An embodiment of the present invention provides a computer program product, wherein the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions When executed by an electronic device, the electronic device is caused to execute the method for presenting a video content association interface in any of the foregoing method embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,所述计算机可读记录介质包括用于以计算机(例如计算机)可读的形式存储或传送信息的任何机制。例如,机器可读介质包括只读存储器(ROM)、随机存取存储器(RAM)、磁盘存储介质、光存储介质、闪速存储介质、电、光、声或其他形式的传播信号(例如,载波、红外信号、数字信号等)等,该计算机软件产品包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware. Based on such an understanding, the above-mentioned technical solution in essence or a part that contributes to the existing technology may be embodied in the form of a software product, and the computer software product may be stored in a computer-readable storage medium, the computer-readable record A medium includes any mechanism for storing or transmitting information in a form readable by a computer (eg, a computer). For example, machine-readable media include read-only memory (ROM), random-access memory (RAM), magnetic disk storage media, optical storage media, flash storage media, electrical, optical, acoustic, or other forms of propagation signals (e.g., carrier waves , Infrared signals, digital signals, etc.), the computer software product includes a number of instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute various embodiments or certain parts of the embodiments Methods.
最后应说明的是:以上实施例仅用以说明本发明实施例的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。In the end, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than limiting them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and range.

Claims (10)

  1. 一种视频内容关联界面的呈现方法,其特征在于,包括:A method for presenting a video content association interface, comprising:
    每隔预设时间获取当前播放视频内容的视频帧图像;Acquiring video frame images of currently playing video content every preset time;
    从所述视频帧图像中提取颜色信息和光线角度;Extracting color information and light angle from the video frame image;
    根据所述颜色信息和光线角度生成所述视频内容关联界面的背景,其中,所述视频内容与所述视频内容关联界面在同一界面上呈现。The background of the video content association interface is generated according to the color information and the light angle, wherein the video content and the video content association interface are presented on the same interface.
  2. 根据权利要求1所述的方法,其特征在于,所述从所述视频帧图像中提取颜色信息包括:The method according to claim 1, wherein the extracting color information from the video frame image comprises:
    计算所述视频帧图像的色调平均值;Calculating an average hue of the video frame image;
    遍历所述视频帧图像的像素,计算所述像素的色调值与所述色调平均值的色差;Traverse the pixels of the video frame image, and calculate the color difference between the hue value of the pixel and the hue average value;
    判断所述色差是否大于预设阈值;Determining whether the color difference is greater than a preset threshold;
    若所述色差大于预设阈值,将所述像素加入到主色调像素列表,根据所述主色调像素列表中所述像素的色调值,确定所述颜色信息。If the color difference is greater than a preset threshold, the pixel is added to a main-tone pixel list, and the color information is determined according to a tone value of the pixel in the main-tone pixel list.
  3. 根据权利要求1所述的方法,其特征在于,所述从所述视频帧图像中提取颜色信息包括:The method according to claim 1, wherein the extracting color information from the video frame image comprises:
    根据所述视频帧图像中每个像素与所述视频内容关联界面的距离,确定所述像素对应的权重值;Determining a weight value corresponding to the pixel according to a distance between each pixel in the video frame image and the video content association interface;
    根据所述像素的色调值和对应的权重值,计算得到所述颜色信息。The color information is calculated and obtained according to the hue value of the pixel and the corresponding weight value.
  4. 根据权利要1-3任一项所述的方法,其特征在于,所述从所述视频帧图像中提取光线角度包括:The method according to any one of claims 1 to 3, wherein the extracting a light angle from the video frame image comprises:
    识别并提取所述视频帧图像中的目标对象图像,其中,所述目标对象为人物或动物;Identifying and extracting a target object image in the video frame image, wherein the target object is a person or an animal;
    提取所述目标对象图像中鼻部区域的子图像,基于所述子图像的光强加权中心与所述目标对象图像的加权中心,得到所述光线角度。The sub-image of the nasal region in the target object image is extracted, and the light angle is obtained based on the light intensity weighting center of the sub-image and the weight center of the target object image.
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述颜色信息和光线信角度生成所述视频内容关联界面的背景,包括:The method according to claim 1, wherein the generating a background of the video content association interface according to the color information and the light signal angle comprises:
    根据所述颜色信息生成所述视频内容关联界面的背景色;Generating a background color of the video content association interface according to the color information;
    根据所述光线角度对所述背景色的亮度进行调整,得到所述视频内容关联界面的背景。The brightness of the background color is adjusted according to the light angle to obtain the background of the video content association interface.
  6. 一种视频内容关联界面的呈现装置,其特征在于,包括:A device for presenting a video content association interface is characterized in that it includes:
    获取模块,用于每隔预设时间获取当前播放视频内容的视频帧图像;An acquisition module, configured to acquire a video frame image of a currently playing video content at a preset time;
    提取模块,用于从所述视频帧图像中提取颜色信息和光线角度;An extraction module, configured to extract color information and light angles from the video frame image;
    生成模块,用于根据所述颜色信息和光线角度生成所述视频内容关联界面的背景,其中,所述视频内容与所述视频内容关联界面在同一界面上呈现。A generating module is configured to generate a background of the video content association interface according to the color information and light angle, wherein the video content and the video content association interface are presented on a same interface.
  7. 根据权利要求6所述的装置,其特征在于,所述提取模块包括:The apparatus according to claim 6, wherein the extraction module comprises:
    第一计算单元,用于计算所述视频帧图像的色调平均值;A first calculation unit, configured to calculate an average hue of the video frame image;
    遍历单元,用于遍历所述视频帧图像的像素,计算所述像素的色调值与所述色调平均值的色差;A traversal unit, configured to traverse pixels of the video frame image, and calculate a color difference between a hue value of the pixel and the hue average value;
    判断单元,用于判断所述色差是否大于预设阈值;A judging unit, configured to judge whether the color difference is greater than a preset threshold;
    第一确定单元,用于若所述色差大于预设阈值,将所述像素加入到主色调像素列表,根据所述主色调像素列表中所述像素的色调值,确定所述颜色信息。A first determining unit is configured to add the pixel to a main-tone pixel list if the color difference is greater than a preset threshold, and determine the color information according to a tone value of the pixel in the main-tone pixel list.
  8. 根据权利要求6所述的装置,其特征在于,所述提取模块包括:The apparatus according to claim 6, wherein the extraction module comprises:
    第二确定单元,用于根据所述视频帧图像中每个像素与所述视频内容关联界面的距离,确定所述像素对应的权重值;A second determining unit, configured to determine a weight value corresponding to the pixel according to a distance between each pixel in the video frame image and the video content association interface;
    第二计算单元,用于根据所述像素的色调值和对应的权重值,计算得到所述颜色信息。A second calculation unit is configured to calculate the color information according to a hue value of the pixel and a corresponding weight value.
  9. 根据权利要6-8任一项所述的装置,其特征在于,所述提取模块包括:The apparatus according to any one of claims 6 to 8, wherein the extraction module includes:
    识别单元,用于识别并提取所述视频帧图像中的目标对象图像,其中,所述目标对象为人物或动物;A recognition unit, configured to recognize and extract a target object image in the video frame image, where the target object is a person or an animal;
    提取单元,用于提取所述目标对象图像中鼻部区域的子图像,基于所述子图像的光强加权中心与所述目标对象图像的加权中心,得到所述光线角度。An extraction unit is configured to extract a sub-image of a nasal region in the target object image, and obtain the light angle based on a light intensity weighting center of the sub-image and a weight center of the target object image.
  10. 一种电子设备,其特征在于,包括:至少一个处理器;以及,An electronic device, comprising: at least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,A memory connected in communication with the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1至5中任一项所述的视频内容关联界面的呈现方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any one of claims 1 to 5. Rendering method of video content association interface.
PCT/CN2018/106785 2018-09-20 2018-09-20 Method and apparatus for presenting interface associated with video content, and electronic device WO2020056690A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/106785 WO2020056690A1 (en) 2018-09-20 2018-09-20 Method and apparatus for presenting interface associated with video content, and electronic device
CN201811119117.6A CN109218697B (en) 2018-09-20 2018-09-25 Rendering method, device and the electronic equipment at a kind of video content association interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/106785 WO2020056690A1 (en) 2018-09-20 2018-09-20 Method and apparatus for presenting interface associated with video content, and electronic device

Publications (1)

Publication Number Publication Date
WO2020056690A1 true WO2020056690A1 (en) 2020-03-26

Family

ID=64981382

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/106785 WO2020056690A1 (en) 2018-09-20 2018-09-20 Method and apparatus for presenting interface associated with video content, and electronic device

Country Status (2)

Country Link
CN (1) CN109218697B (en)
WO (1) WO2020056690A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741348B (en) * 2019-05-27 2022-09-06 北京京东尚科信息技术有限公司 Method, system, equipment and storage medium for controlling webpage video playing
CN111414221B (en) * 2020-03-20 2022-06-28 联想(北京)有限公司 Display method and device
CN111679877B (en) * 2020-05-27 2023-08-29 浙江大华技术股份有限公司 Method and device for changing background of terminal equipment and electronic equipment
CN114765692B (en) * 2021-01-13 2024-01-09 北京字节跳动网络技术有限公司 Live broadcast data processing method, device, equipment and medium
CN115145442A (en) * 2022-06-07 2022-10-04 杭州海康汽车软件有限公司 Environment image display method and device, vehicle-mounted terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808908A (en) * 2015-05-21 2015-07-29 北京锤子数码科技有限公司 Display interface processing method and display interface processing device
CN106201161A (en) * 2014-09-23 2016-12-07 北京三星通信技术研究有限公司 The display packing of electronic equipment and system
CN106250077A (en) * 2016-07-18 2016-12-21 乐视控股(北京)有限公司 Content interface rendering method, device and the electronic equipment thereof of a kind of association
US20170364210A1 (en) * 2015-05-20 2017-12-21 Tencent Technology (Shenzhen) Company Limited Method and Apparatus for Displaying Content on Same Screen, and Terminal Device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513946B (en) * 2012-06-26 2018-01-02 腾讯科技(深圳)有限公司 Control the method and device of display
US9397844B2 (en) * 2012-09-11 2016-07-19 Apple Inc. Automated graphical user-interface layout
CN106980381A (en) * 2017-03-31 2017-07-25 联想(北京)有限公司 A kind of information processing method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201161A (en) * 2014-09-23 2016-12-07 北京三星通信技术研究有限公司 The display packing of electronic equipment and system
US20170364210A1 (en) * 2015-05-20 2017-12-21 Tencent Technology (Shenzhen) Company Limited Method and Apparatus for Displaying Content on Same Screen, and Terminal Device
CN104808908A (en) * 2015-05-21 2015-07-29 北京锤子数码科技有限公司 Display interface processing method and display interface processing device
CN106250077A (en) * 2016-07-18 2016-12-21 乐视控股(北京)有限公司 Content interface rendering method, device and the electronic equipment thereof of a kind of association

Also Published As

Publication number Publication date
CN109218697A (en) 2019-01-15
CN109218697B (en) 2019-11-08

Similar Documents

Publication Publication Date Title
WO2020056690A1 (en) Method and apparatus for presenting interface associated with video content, and electronic device
US9866748B2 (en) System and method for controlling a camera based on processing an image captured by other camera
CN108596827B (en) Three-dimensional face model generation method and device and electronic equipment
CN109151340B (en) Video processing method and device and electronic equipment
CN108377398B (en) Infrared-based AR imaging method and system and electronic equipment
CN103428428B (en) Image capturing device and image catching method
CN108614638B (en) AR imaging method and apparatus
CN109285216B (en) Method and device for generating three-dimensional face image based on shielding image and electronic equipment
WO2020056689A1 (en) Ar imaging method and apparatus and electronic device
WO2020037681A1 (en) Video generation method and apparatus, and electronic device
WO2019200718A1 (en) Image processing method, apparatus, and electronic device
CN108573480B (en) Ambient light compensation method and device based on image processing and electronic equipment
US11538138B2 (en) Methods and apparatus for applying motion blur to overcaptured content
CN107395957B (en) Photographing method and device, storage medium and electronic equipment
CN114302214B (en) Virtual reality equipment and anti-jitter screen recording method
JP2014143545A (en) Photographing apparatus
US20110187882A1 (en) Digital image capturing device providing photographing composition and method thereof
WO2020056692A1 (en) Information interaction method and apparatus, and electronic device
WO2020056691A1 (en) Method for generating interactive object, device, and electronic apparatus
CN104702848B (en) Show the method and device of framing information
CN106210701A (en) A kind of mobile terminal for shooting VR image and VR image capturing apparatus thereof
WO2020056693A1 (en) Picture synthesizing method and apparatus, and electronic device
CN113726465B (en) Timestamp synchronization method and device
CN115205964A (en) Image processing method, apparatus, medium, and device for pose prediction
CN113891005A (en) Shooting method and device and electronic equipment

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: 18934493

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18934493

Country of ref document: EP

Kind code of ref document: A1