Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a method for capturing an image according to an embodiment of the present invention, which is applicable to a situation in which, in a game scene, if it is detected that a current video frame meets a preset requirement, a screen capture operation may be automatically performed, so as to obtain a target image.
Before the technical solution of the present embodiment is described, an application scenario may be exemplarily described. The current game can be an application program, the application program can be installed on the intelligent terminal, and when a user triggers the application program installed on the intelligent terminal, a game scene can be entered. The current game scenes are mostly situations of upgrading monster, adventure memory or growth memory, the scenes and the abilities of characters corresponding to different levels of characters and level cards are different, the abilities of the characters can be understood as fighting attributes of the characters, skin attributes of the characters and the like, generally, the higher the level of the characters is, the better the skin is, the larger the fighting value is, and the stronger the fighting ability is. Each game scene is displayed on the terminal device in the form of a video frame in many cases. In order to improve user experience, each video frame picture in a game scene is usually drawn more beautifully, a user can capture the video frame picture for wallpaper, or a displayed video frame is just the highlight moment of each role in the game, and is usually captured and stored. In the actual application process, if a user determines that the video frame picture in the current scene is more enjoyable or has commemorative significance, the current video frame is usually also captured and stored.
However, when the current video frame is captured, a screen capture button on the intelligent terminal needs to be triggered, for example, a combination button carried by a mobile phone system, or a screen capture control is triggered after the mobile phone system returns to a main page. Furthermore, as the game scene is played by video frames, namely one frame by one frame, and the video frames are continuously played while the user triggers the screen capture button, a certain time delay exists between the moment of triggering the screen capture button and the moment of actually capturing the screen, so that a certain difference exists between the video frames of actually capturing the screen and the video frames which the user wants to capture and store, and the user experience is poor.
As shown in fig. 1, the method of this embodiment includes:
s110, obtaining a target object to be shot, and determining the object brightness value of the target object to be shot.
After the object to be shot is a game interface entering a target game, a displayed main character, namely the object to be shot can be a main character in a game scene. The subject character may be, but is not limited to, a hero, monster, other player, etc. in the game scene. The target game can be an application program installed on an intelligent terminal, and the intelligent terminal can be a mobile phone or a PC terminal and the like. When the user triggers the application program corresponding to the target game, the resource corresponding to the target game can be loaded, and meanwhile, the game interface corresponding to the target game can be accessed. At least one target object to be photographed may be included in the game interface. All displayed subjects on the display interface can be called target objects to be shot, and the subject operated by the current terminal equipment can also be used as the target objects to be shot.
Determining whether the target object to be shot is included in the current target video frame (i.e. the video frame picture displayed on the terminal), i.e. determining whether the target object to be shot is included in the video picture displayed on the display interface, may be: when specific game content is displayed, corresponding video frame data can be obtained first, a video frame displayed on the terminal device is obtained after the video frame data is rendered, and whether a target object to be shot is included in the current video frame can be determined according to rendering data in the process of rendering the video frame data of the corresponding video frame. If yes, the target object to be shot can be obtained. It can also be: after the video frame data are rendered and displayed on a display interface of the terminal equipment, detecting whether a target object to be shot is included in each video frame based on a detection module; when the game scene is made, whether the target object to be shot is included in the current scene or not can be determined.
The brightness value may be a value of a brightness degree generated when the surface of the target object to be photographed is irradiated with light. Generally, a surface with higher reflection capability has a higher brightness coefficient, and the higher the brightness coefficient is, the higher the brightness is when the surface is illuminated by the same illumination. In this embodiment, the brightness value may be a pixel value of each pixel point in the current target video frame. The pixel value is usually between 0 and 255, and the closer the pixel value is to 0, the darker the pixel is, and vice versa.
Specifically, when video frame data displayed on a game interface is rendered, whether a target object to be shot is included in the video frame or not can be determined, and if yes, the pixel value of each pixel point in the video frame can be determined, so that the brightness value of the target object to be shot in the current video frame can be determined according to the pixel value; after the video frame data is rendered and displayed on a display screen of the mobile terminal, the pixel value of the target object to be shot in the current target video frame can be determined based on the monitoring module, and then the brightness value of the corresponding target object to be shot is determined according to the pixel value.
It should be further noted that, determining the brightness value of the target object to be photographed in the video frame may also be: determining a relative position relationship between a light source and a target object to be shot in a video frame, and determining a brightness value of the target object to be shot according to the relative position relationship, wherein optionally, the target object to be shot faces the light source, and the distance from the light source is smaller than a preset distance threshold, so that the brightness value is generally higher; if the object to be shot of the target is opposite to the light source and the distance between the object to be shot of the target and the light source is greater than the preset distance threshold, the brightness value of the object to be shot of the target is lower. In this way, the brightness value of the target object to be shot in the current video frame can be determined.
In this embodiment, the obtaining a target object to be photographed and determining an object brightness value of the target object to be photographed includes: acquiring a three-dimensional view of the target object to be shot, and processing the three-dimensional view into a gray scale image; and determining the object brightness value of the target object to be shot based on the gray-scale image.
The object to be shot is usually a three-dimensional view or a color image in a game scene. In order to determine the specific brightness value of the target object to be photographed, the three-dimensional view of the target object to be photographed may be converted into a corresponding gray scale image. The gray scale map is understood as a gray scale map, which means that the white and black are logarithmically divided into several levels, and the gray scale is divided into 256 levels. That is to say, the video frame to which the target object to be shot belongs is composed of three primary colors of red, green and blue, and the gray scale map corresponding to the current video frame can be determined by any one of five methods, namely a floating point method, an integer method, a shift method, an average value method or a green method. After the gray-scale image of the current video frame is obtained, the gray-scale value of each pixel point can be determined, and the object brightness value of the target object to be shot can be determined according to the gray-scale values. That is, the brightness value of the target object to be photographed is the object brightness value.
And S120, determining a scene brightness value of a target scene of the target object to be shot.
The frame on the terminal display interface is played one video frame by one video frame, the video frame to which the target object to be shot belongs can be determined, and meanwhile, the scene corresponding to the video frame can be determined, and optionally, the scene can be a scene corresponding to a certain level. Namely, the scene to which the object to be shot belongs in the current video frame is the target scene. The current video frame can be converted into a gray-scale image, and the scene brightness value of the scene to which the target object to be shot belongs can be determined according to the gray-scale values of all pixel points in the current video frame except the target object to be shot.
It may be understood that a target scene including the target object to be photographed is converted into a two-dimensional view, a gray value of the two-dimensional view is determined, and a scene brightness value of the target scene is determined based on the gray value.
In this embodiment, determining the object luminance value may be: determining each pixel point corresponding to the target object to be shot, determining the gray value corresponding to each pixel point, and averaging the gray values of each pixel point to use the average gray value as the object brightness value of the target object to be shot. Determining the scene luminance value may be: determining all pixel points except for a target object to be shot in a current video frame, determining the gray value of each pixel point, and determining the scene brightness value by averaging the gray values; or, pixel points of edge points of the target object to be shot in the current video frame are obtained, gray values of the pixel points are determined, and an average gray value obtained after the gray values are averaged is used as a scene brightness value. When the scene brightness value is determined based on the edge point pixel information of the target object to be shot in the current video frame, the advantage of whether to capture the screen is that the brightness value of the edge pixel point of the target object to be shot can reflect whether the target object to be shot is highlight display.
S130, triggering to shoot and/or record a target image comprising the target object to be shot according to the object brightness value and the scene brightness value.
After the object brightness value and the scene brightness value are determined, whether the brightness value of the target object to be shot in the current video frame is high or not can be determined, namely whether the target object to be shot is highlighted or not can be determined. If the target object to be shot is determined to be highlighted according to the object brightness value and the scene brightness value, shooting and/or recording of a target image including the target object to be shot can be triggered. Namely, the screen capturing and/or screen recording operation is triggered, and at the moment, the video frame displayed on the display interface of the screen capturing terminal can be captured to obtain the target image.
Specifically, according to the scene brightness value and the object brightness value, it can be determined whether the target object to be shot is highlighted in the current video frame, that is, whether the light is concentrated on the target object to be shot or not, if so, it indicates that the target object to be shot is cool in the current video frame or the highlight moment of the target object to be shot, and at this time, the user may want to capture the stored video frame, so that the screen capture operation can be automatically triggered to capture the current video frame.
In this embodiment, the triggering, capturing and/or recording a target image including the target object to be captured according to the object brightness value and the scene brightness value includes:
and when the brightness ratio between the object brightness value and the scene brightness value is detected to reach a preset brightness ratio threshold, triggering to shoot and/or record a target image including the target object to be shot.
The preset brightness ratio threshold is preset, optionally, the brightness ratio threshold may be one value in [100,128], and when the ratio is closer to the 128 bodies, the brightness value is higher, that is, the target object to be shot is highlighted in the video frame; correspondingly, when the ratio is closer to 0, the brightness of the target object to be shot is closer to the brightness of the target scene, that is, the target object to be shot is not highlighted in the video frame, and then the current video frame may not be required to be captured. The object brightness value is any one gray level value in the gray level image, optionally, the object brightness value can be determined by accumulating and averaging pixel point values of the object to be shot and the target object; the weighted value of each pixel point can also be determined, optionally, the weighted value corresponding to the facial pixel point is higher, the weighted value corresponding to the pixel point occupied by the body is lower, and the object brightness value is obtained by averaging after the product of the weighted value and the corresponding pixel value. The scene brightness value may be obtained by accumulating the pixel values of all the pixels and then averaging the accumulated pixel values, and the obtained pixel value is the scene pixel value.
Specifically, after the object pixel value and the scene pixel value are determined, the brightness ratio between the object brightness value and the scene brightness value may be determined, and when the brightness ratio is closer to the maximum value in the preset brightness ratio threshold, it indicates that the object to be photographed is more prominent in the target scene, which indicates that the user is most likely to want to capture the current video frame. Of course, if the brightness ratio is smaller, it indicates that the target object to be shot is not obvious in the current video frame, and screen capture may not be needed.
It should be noted that, as long as the ratio between the object brightness value and the scene brightness value reaches the brightness ratio threshold, alternatively, 100, the shooting and/or recording of the target image including the target object to be shot, that is, the current video frame is captured.
It is understood that if the brightness ratio is within the preset brightness ratio threshold, the screen can be captured. Of course, to enhance the user experience, the screen may be automatically captured without the user's perception. In order to further improve the user experience, because the content difference between the previous video frame and the next video frame is not particularly large, a plurality of video frames can be continuously intercepted from the current moment and stored, so that the user can subsequently select the video frame with higher matching degree.
Or, if the user starts the function of automatically screening the target image, a plurality of video frames can be continuously captured, and the similarity processing is performed on the content of the video frames, optionally, if the similarity of the plurality of video frames is low, that is, the captured content has a large difference, the video frame captured for the first time can be automatically retained; if the similarity of the video frames is higher, the definition and the richness of the video frames can be further determined, and images with higher richness and definition can be reserved. Richness is understood to mean that more content remains in the video frame. Furthermore, in order to facilitate the user to trace back the captured image, the reserved target image and the deleted target image may be stored in different subfiles of the same main file in the terminal memory or the game memory, respectively, so that the user may further confirm whether the reserved target image and the deleted target image are correct. Of course, in order to avoid the problem of resource occupation, the deleted image may be cleaned regularly.
Of course, if the user does not turn on the function of filtering the target image, the user can confirm the image to be retained by himself. At this time, the target images can all be stored in the subfolders that are desired to be reserved, and the timing is prevented from being cleaned up.
It should be noted that, if the screen recording function is triggered, the corresponding game video frame is recorded according to the preset screen recording duration, optionally 1S. For example, if the screen recording function is called, the screen recording function can be automatically started, and the screen recording can be stopped when the screen recording duration between the current moment and the moment of triggering the screen recording reaches the preset screen recording duration. At this time, a plurality of video frames may be obtained, which video frames are to be specifically reserved or deleted may be determined by the above method, and details are not repeated herein.
The technical scheme of the embodiment of the invention can determine whether to trigger the shooting and/or the recording of the target image comprising the target object to be shot by acquiring the target object to be shot in real time or at intervals, determining the object brightness value of the target object to be shot, determining the scene brightness of the target scene to which the target object to be shot belongs at the same time, and determining whether to trigger the shooting and/or the recording of the target image comprising the target object to be shot according to the object brightness value and the scene brightness value, thereby solving the problem that the current video frame can be shot only by manually triggering a screen capture key by a user in the prior art, and the technical problem that the corresponding video frame can not be shot due to the difference between the image obtained by actual screen capture and the image to be shot by the user when the screen capture key is triggered due to the fast playing of the video frame and the certain time delay of screen capture, and realizing that as long as the object brightness value and the scene brightness value of the, the current video frame can be automatically captured under the condition that the user does not sense the video frame, and the technical effects of screen capturing accuracy, convenience and high efficiency are improved.
On the basis of the above technical solutions, the number of the target objects to be photographed includes at least two, and after determining the object brightness value and the scene brightness value of each target object to be photographed, the method further includes:
when detecting that the brightness ratio relation between the object brightness value and the scene brightness value of the target object to be shot meets a preset brightness ratio threshold, triggering to shoot and/or record a target image comprising the target scene and each target object to be shot; or when the brightness ratio relation between the object brightness value and the scene brightness value of the target object to be shot is detected to exist and the preset brightness ratio threshold value is met, triggering to shoot and/or record a target image of the target object to be shot meeting the preset relation; or when the brightness ratio relation between the object brightness value and the scene brightness value of the stored target object to be shot is detected and meets a preset brightness ratio threshold, respectively determining the target object to be shot meeting the preset relation, respectively determining the target shooting angle of each target object to be shot, and shooting and/or recording a target image comprising the target object to be shot based on the target object to be shot angles.
It should be noted that each video frame may include one target object to be photographed, or may include a plurality of target objects to be photographed. If only one target object to be shot is included, the brightness ratio between the brightness value of the object and the brightness value of the scene can be directly determined, and whether screen capture is performed or not is determined based on the brightness ratio. If the number of the objects to be shot of the targets is multiple, the ratio of the object brightness to the scene brightness of each object to be shot of the targets can be determined simultaneously, and whether the screen capture is triggered or not and the specific screen capture mode is determined.
In this embodiment, after obtaining the luminance ratio between the luminance value of the object and the luminance value of the scene, the specific determination method for determining to trigger the shooting and/or recording of the target image may include at least three methods as follows:
illustratively, if the current video frame includes four objects to be photographed, the four objects to be photographed are a target object a to be photographed, a target object B to be photographed, a target object C to be photographed, and a target object D to be photographed, respectively.
The first embodiment may be: after the object brightness values of the target objects to be photographed A, B, C and D in the current video frame and the brightness value of the scene to which the target objects to be photographed belong are respectively determined, it may be determined whether the brightness ratio satisfies a preset brightness ratio threshold. If the brightness ratio of any one of the object A to be shot, the object B to be shot, the object C to be shot or the object D to be shot reaches the preset brightness ratio threshold, the operation of capturing the current video frame can be triggered, namely, the captured screen comprises a target scene and a target image of each object to be shot.
The second embodiment may be: after the object brightness values of the target objects to be photographed A, B, C and D in the current video frame and the brightness value of the scene to which the target objects to be photographed belong are respectively determined, it may be determined whether the brightness ratio satisfies a preset brightness ratio threshold. If it is determined that the brightness ratio corresponding to the target object to be photographed a satisfies the preset brightness ratio threshold, and the other target objects to be photographed B, C and D do not satisfy the preset brightness ratio threshold relationship, a screen capture instruction may be sent to the screen capture module, so that the screen capture module only captures the target object to be photographed a, and does not capture other target objects to be photographed.
The third implementation manner may be that a role corresponding to the current terminal device is used as a main target object to be photographed, if the current video frame includes a plurality of target objects to be photographed, a brightness ratio of the main target object to be photographed corresponding to the current terminal device may be mainly determined, and if the brightness ratio is within a threshold range of a preset brightness ratio, a screen capture operation may be triggered regardless of whether target angles of other target objects to be photographed are within a preset capture angle range, that is, the current video frame is captured.
That is to say, the technical solution of this embodiment may capture the entire picture displayed on the screen display interface, and may also capture a target object to be photographed in the screen display picture.
It should be noted that the technical solution of the embodiment of the present invention can be applied to the relationship between the brightness value of the object and the brightness value of the scene under a specific light at a specific time, and further determine whether to shoot the current video frame, for example, the brightness value of the object under the spotlight is higher, and the image including the target object to be shot can be shot. Of course, the relationship between the brightness value of the object and the brightness value of the scene may be detected in real time, so as to determine whether to capture the image including the target object to be captured.
Example two
Fig. 2 is a flowchart illustrating a method for capturing an image according to a second embodiment of the present invention. On the basis of the foregoing embodiment, in order to further determine whether to capture a current video frame, when it is determined that the object brightness value and the scene brightness value of the target object to be photographed reach the preset brightness ratio threshold, the role cool value of the target object to be photographed may be further determined, and then it is determined whether to trigger photographing and/or recording of a target image including the target object to be photographed in combination with the role cool value. The same or corresponding terms as those in the above embodiments are not described again.
As shown in fig. 2, the method includes:
s210, obtaining a target object to be shot and determining the object brightness value of the target object to be shot.
S220, determining a scene brightness value of a target scene of the target object to be shot.
And S230, when the brightness ratio between the object brightness value and the scene brightness value is detected to reach a preset brightness ratio threshold, determining the role cool value of the target object to be shot.
Wherein the role cool value can be determined by the role itself and/or attributes associated with the role. The role can be whether the clothes worn by the object to be shot have value-added attributes or not and whether the worn ornaments have value-added attributes or not. The associated attribute may be whether the target object to be photographed has a ride, whether there is a stick, or the like. The correlation attribute may further include whether the target object to be photographed is in a fighting state, if the cool value of the target object to be photographed is increased. The role cool value is simply whether the target object to be photographed is cool in the current video frame. And determining a role cool value according to the configured equipment and the current state, wherein the role state comprises whether the role is a fighting state or not, and if the role is the fighting state, the attribute value is increased by 10.
Specifically, when it is determined that the object brightness value and the scene brightness value of the corresponding target object to be photographed reach the preset brightness value threshold, the role attribute and the associated attribute of the target object to be photographed may be determined, and the role cool value of the target object to be photographed may be obtained according to the role attribute and the associated attribute.
And S240, when the role cool value reaches a preset role cool value threshold value, triggering to shoot and/or record a target image comprising a target object to be shot.
The role cool value threshold is preset, optionally 50, after determining the role cool value of each target object to be shot, it may be determined whether the role cool value reaches the preset role cool value threshold, and if so, it may be determined that shooting needs to be triggered and/or a target image including the target object to be shot may be recorded. Namely, when the role cool value is determined to reach the preset role cool value threshold, the screen capturing signal can be automatically sent to the screen capturing module, so that the screen capturing module calls the screen capturing interface to capture the current video frame according to the received screen capturing signal. Certainly, in order to improve the user experience, the video frame including the target object to be shot, that is, the video frame in which the target object to be shot and the belonging scene satisfy the preset relationship, may be captured without the perception of the user.
That is to say, the object to be shot by the target is cool in the current video frame, and simultaneously, the preset brightness threshold is also met, and it may be the highlight moment of the object to be shot by the target at this time, and at this time, shooting and/or screen recording of the target image including the object to be shot by the target may be triggered.
On the basis of the technical scheme, the target image obtained by screen capturing can be stored in the target storage space, so that when the operation of triggering the acquisition of the target image is detected, the corresponding target image is called from the target storage space.
The target image is an image obtained by screen capture. The screen shot images can be stored in the target storage space. The storage to the storage space has the advantages that: the user can confirm the corresponding scene according to the user, or the screenshot image can be used in other scenes.
On the basis of the technical scheme, after the target image is obtained, the screen capture time of the target image can be determined, and the animation set can be created according to the screen capture time.
Here, the screen capture time may be understood as the time when the screen capture includes the target photographic subject. And storing the shot target image into a storage space so that the user can view the corresponding game picture when the game is finished. Or after the target image is obtained, if it is detected that the rendering effect of the target image does not reach the preset effect, the target image may be called and further rendered, so as to improve the display effect of the image.
The animation set can be directly manufactured after the target image is obtained through screen capture, and can be displayed on a display interface in a small window mode so that a user can enjoy corresponding display effect; of course, it may also be possible to create an animation set when the game is ended, and display the animation set on the display interface, so that the user can enjoy highlight pictures corresponding to the user or other characters at various angles. By the mode, the comprehensiveness of the user in watching the corresponding picture is improved, and therefore the technical effect of user experience is improved.
The technical scheme of the embodiment of the invention can determine whether to trigger the shooting and/or the recording of the target image comprising the target object to be shot by acquiring the target object to be shot in real time or at intervals, determining the object brightness value of the target object to be shot, determining the scene brightness of the target scene to which the target object to be shot belongs at the same time, and determining whether to trigger the shooting and/or the recording of the target image comprising the target object to be shot according to the object brightness value and the scene brightness value, thereby solving the problem that the current video frame can be shot only by manually triggering a screen capture key by a user in the prior art, and the technical problem that the corresponding video frame can not be shot due to the difference between the image obtained by actual screen capture and the image to be shot by the user when the screen capture key is triggered due to the fast playing of the video frame and the certain time delay of screen capture, and realizing that as long as the object brightness value and the scene brightness value of the, the current video frame can be automatically captured under the condition that the user does not sense the video frame, and the technical effects of screen capturing accuracy, convenience and high efficiency are improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an apparatus for capturing an image according to a third embodiment of the present invention, where the apparatus includes: an object luminancevalue determination module 310, a scene luminancevalue determination module 320, and a targetimage capture module 330.
The object brightnessvalue determining module 310 is configured to obtain a target object to be photographed and determine an object brightness value of the target object to be photographed;
a scene brightnessvalue determining module 320, configured to determine a scene brightness value of a target scene to which the target object to be photographed belongs;
and the targetimage shooting module 330 is configured to trigger shooting and/or recording of a target image including the target object to be shot according to the object brightness value and the scene brightness value.
On the basis of the above technical solutions, the object brightness value determining module is further configured to obtain a three-dimensional view of the target object to be photographed, and process the three-dimensional view into a gray scale image; and determining the object brightness value of the target object to be shot based on the gray-scale image.
On the basis of the above technical solutions, the scene brightness value determining module is further configured to convert a target scene including the target object to be photographed into a two-dimensional view, determine a gray value of the two-dimensional view, and determine a scene brightness value of the target scene based on the gray value.
On the basis of the above technical solutions, the target image capturing module is further configured to:
and when the brightness ratio between the object brightness value and the scene brightness value is detected to reach a preset brightness ratio threshold, triggering to shoot and/or record a target image including the target object to be shot.
On the basis of the above technical solutions, the apparatus further includes: the role cool value determination module is further used for: when detecting that the brightness ratio between the object brightness value and the scene brightness value reaches a preset brightness ratio threshold, determining the corresponding role cool value of the target object to be shot at each shooting angle; determining a target angle for shooting and/or recording the target object to be shot according to the role cool value; and triggering to shoot and/or record a target image comprising a target object to be shot based on the target angle.
On the basis of the above technical solutions, the number of the target objects to be photographed includes at least two, and after determining the luminance value and the scene luminance value of each target object to be photographed, the apparatus further includes:
when detecting that the brightness ratio relation between the object brightness value and the scene brightness value of the target object to be shot meets a preset brightness ratio threshold, triggering to shoot and/or record a target image comprising the target scene and each target object to be shot; or when the brightness ratio relation between the object brightness value and the scene brightness value of the target object to be shot is detected to exist and the preset brightness ratio threshold value is met, triggering to shoot and/or record a target image of the target object to be shot meeting the preset relation; or when the brightness ratio relation between the object brightness value and the scene brightness value of the stored target object to be shot is detected and meets a preset brightness ratio threshold, respectively determining the target object to be shot meeting the preset relation, respectively determining the target shooting angle of each target object to be shot, and shooting and/or recording a target image comprising the target object to be shot based on the target object to be shot angles.
On the basis of the above technical solutions, the target image capturing module is further configured to:
and triggering a control for shooting and/or recording the target image, and shooting the target image including the object to be shot.
The technical scheme of the embodiment of the invention can determine whether to trigger the shooting and/or the recording of the target image comprising the target object to be shot by acquiring the target object to be shot in real time or at intervals, determining the object brightness value of the target object to be shot, determining the scene brightness of the target scene to which the target object to be shot belongs at the same time, and determining whether to trigger the shooting and/or the recording of the target image comprising the target object to be shot according to the object brightness value and the scene brightness value, thereby solving the problem that the current video frame can be shot only by manually triggering a screen capture key by a user in the prior art, and the technical problem that the corresponding video frame can not be shot due to the difference between the image obtained by actual screen capture and the image to be shot by the user when the screen capture key is triggered due to the fast playing of the video frame and the certain time delay of screen capture, and realizing that as long as the object brightness value and the scene brightness value of the, the current video frame can be automatically captured under the condition that the user does not sense the video frame, and the technical effects of screen capturing accuracy, convenience and high efficiency are improved.
The device for shooting the image, provided by the embodiment of the invention, can execute the method for shooting the image, provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplaryelectronic device 40 suitable for use in implementing embodiments of the present invention. Theelectronic device 40 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 4,electronic device 40 is embodied in the form of a general purpose computing device. The components ofelectronic device 40 may include, but are not limited to: one or more processors orprocessing units 401, asystem memory 402, and abus 403 that couples the various system components (including thesystem memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible byelectronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
Thesystem memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/orcache memory 405. Theelectronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only,storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to thebus 403 by one or more data media interfaces.Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) ofprogram modules 407 may be stored, for example, inmemory 402,such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment.Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
Theelectronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device,display 410, etc.), with one or more devices that enable a user to interact with theelectronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable theelectronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O)interface 411. Also, theelectronic device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via thenetwork adapter 412. As shown, thenetwork adapter 412 communicates with the other modules of theelectronic device 40 over thebus 403. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction withelectronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Theprocessing unit 401 executes various functional applications and data processing, such as implementing a method of capturing an image provided by an embodiment of the present invention, by executing a program stored in thesystem memory 402.
EXAMPLE five
Embodiments of the present invention also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, perform a method of capturing an image.
The method comprises the following steps: acquiring a target object to be shot and determining an object brightness value of the target object to be shot;
determining a scene brightness value of a target scene to which the target object to be shot belongs;
and triggering to shoot and/or record a target image comprising the target object to be shot according to the object brightness value and the scene brightness value.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.