Image processing method and vehicle
By using historical image frames and speed information in the vehicle for image processing and display control, the problem of image capture while the vehicle is driving is solved, and the accurate acquisition and display of detailed external information of the vehicle is achieved.
Patent Information
- Application Number
- CN202410692201.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-24
AI Technical Summary
When a vehicle is driving, due to the high speed and limited user response time, it is difficult to capture the detailed information of the vehicle's external image, and the existing technology cannot effectively control and process the display of image frames.
By obtaining historical image frames and historical speed information, the target display duration is determined based on the display control instructions and speed information, the display time of the image is controlled, and image processing and playback are performed when necessary to ensure that the user can accurately capture the detailed information outside the vehicle. .
It achieves effective display and processing of images while the vehicle is driving, improves the user experience, and ensures that users can accurately obtain detailed information about the exterior of the vehicle.
Smart Images

Figure CN118692168A
Abstract
Description
Technical Field
[0001] The present application relates to image processing technology, and in particular to an image processing method and a vehicle. Background Art
[0002] Currently, vehicles use image acquisition devices such as driving recorders to capture image frames of the outside of the vehicle, which may result in problems such as being unable to display and control the captured image frames and being unable to process the image frames. At the same time, when the vehicle is driving, due to the high speed and limited reaction time of the user, the user may miss the image of the outside of the vehicle that the user wants to obtain information about, making it difficult to capture detailed information on the image of the outside of the vehicle. Summary of the invention
[0003] The embodiments of the present application provide an image processing method and a vehicle to solve one or more problems existing in the related art.
[0004] According to a first aspect of the present application, there is provided an image processing method, comprising: obtaining a historical image frame and historical speed information, wherein the historical image frame is obtained by an image acquisition device on a target object performing image acquisition on the outside of the target object, and the historical speed information is speed information of the target object when the historical image frame is acquired; obtaining a display control instruction; and displaying an image corresponding to the historical image frame according to the display control instruction and the historical speed information.
[0005] According to one embodiment of the present application, displaying the image corresponding to the historical image frame according to the display control instruction and the historical speed information includes: determining a target display duration corresponding to the historical image frame based on the historical speed information, wherein the greater the speed corresponding to the historical speed information, the longer the target display duration; and displaying the image corresponding to the historical image frame based on the target display duration when the display control instruction is received.
[0006] According to one embodiment of the present application, the method also includes: obtaining depth information of the first object in the historical image frame; based on the depth information, determining a target display duration corresponding to the historical image frame, and the target display duration is used to control the display duration of the image corresponding to the historical image frame.
[0007] According to one embodiment of the present application, determining the target display duration corresponding to the historical image frame based on the historical speed information includes: obtaining a target image frame that satisfies an adjacent relationship with the historical image frame; determining depth information of the first object based on the historical speed information, the historical image frame and the target image frame; and determining the target display duration corresponding to the historical image frame based on the depth information.
[0008] According to an embodiment of the present application, determining the target display duration corresponding to the historical image frame based on the historical speed information includes: determining the target display duration according to the historical speed information and the depth information.
[0009] According to one embodiment of the present application, the display control instruction is used to adjust the display progress of the historical video including the historical image frame, and determining the target display duration corresponding to the historical image frame based on the historical speed information includes: obtaining the progress adjustment speed information corresponding to the display control instruction; determining the target display duration corresponding to the historical image frame based on the progress adjustment speed information and the historical speed information.
[0010] According to an embodiment of the present application, displaying the image corresponding to the historical image frame according to the display control instruction and the historical speed information includes: adding the corresponding historical speed information to the historical image frame for display.
[0011] According to an embodiment of the present application, displaying the image corresponding to the historical image frame according to the display control instruction and the historical speed information includes: processing the historical image frame according to the historical speed information to obtain the image corresponding to the historical image frame.
[0012] According to one embodiment of the present application, the processing of the historical image frames according to the historical speed information includes: extracting a target image frame sequence including the historical image frames from historical recordings according to the historical speed information, wherein the interval frame number of each frame in the target image frame sequence is determined according to the historical speed information, wherein the greater the speed corresponding to the historical speed information, the smaller the interval frame number; and processing the target image frame sequence to obtain an image corresponding to the historical image frame.
[0013] According to a second aspect of the present application, a vehicle is provided, which is capable of executing any of the methods described above, including: a first acquisition module, used to obtain historical image frames and historical speed information, wherein the historical image frames are obtained by an image acquisition device on the target object performing image acquisition on the outside of the target object, and the historical speed information is the speed information of the target object when the historical image frames are acquired; a second acquisition module, used to obtain a display control instruction; and a display module, used to display an image corresponding to the historical image frame according to the display control instruction and the historical speed information. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:
[0015] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0016] Figure 1 The processing flow diagram of the image processing method provided in the embodiment of the present application is shown in FIG. Figure 1 ;
[0017] Figure 2 The processing flow diagram of the image processing method provided in the embodiment of the present application is shown in FIG. Figure 2 ;
[0018] Figure 3 The processing flow diagram of the image processing method provided in the embodiment of the present application is shown in FIG. Figure 3 ;
[0019] Figure 4 The processing flow diagram of the image processing method provided in the embodiment of the present application is shown in FIG. Figure 4 ;
[0020] Figure 5 The processing flow diagram of the image processing method provided in the embodiment of the present application is shown in FIG. Figure 5 ;
[0021] Figure 6 The processing flow diagram of the image processing method provided in the embodiment of the present application is shown in FIG. Figure 6 ;
[0022] Figure 7 An application scenario diagram of the image processing method provided by an embodiment of the present application is shown;
[0023] Figure 8 Another application scenario diagram of the image processing method provided in the embodiment of the present application is shown;
[0024] Fig. 9 An optional schematic diagram of a vehicle provided in an embodiment of the present application is shown;
[0025] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0027] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0028] In the following description, the terms "first\second" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0030] The processing flow of the image processing method provided in the embodiment of the present application is described. Figure 1 , Figure 1 The processing flow diagram of the image processing method provided in the embodiment of the present application is as follows: Figure 1 , will combine Figure 1 Steps S101-S103 are shown for explanation.
[0031] Step S101, obtaining historical image frames and historical speed information.
[0032] In some embodiments, the historical image frame can be obtained by capturing images of the outside of the target object through an image capture device on the target object, and the historical speed information may include the speed information of the target object when the historical image frame is captured. The target object may be a vehicle, or other means of transportation, which is not limited in the embodiments of the present application. The image capture device may be a camera, and the image capture device may be arranged on the side of the target object. For example, one or more cameras are arranged on the side of the vehicle for capturing historical image frames. The historical image frame may include a single image frame captured at a certain time node.
[0033] Step S102, obtaining a display control instruction.
[0034] In some embodiments, the display control instruction can be used to control the display device of the target object to display the image corresponding to the historical image frame. The display control instruction may include the format, size and other display-related attributes of the image corresponding to the historical image frame. The display device of the target object may include a display device inside the vehicle, and the embodiments of the present application do not limit the specific display device. For example, the display device of the target object may be a transparent display screen on the window inside the vehicle.
[0035] Step S103: displaying the image corresponding to the historical image frame according to the display control instruction and the historical speed information.
[0036] In some embodiments, the display control instruction may be an instruction generated according to a user's touch operation. The display control instruction may also be an instruction automatically generated by the system. The display control instruction is used to trigger an instruction to display an image corresponding to a historical image frame. The target display duration corresponding to the historical image frame may be controlled according to the historical speed information. The historical image frame may also be image processed according to the historical speed information to obtain an image corresponding to the historical image frame. The corresponding historical speed information may also be added to the historical image frame for display.
[0037] The method of the embodiment of the present application displays the image corresponding to the historical image frame according to the display control instruction and the historical speed information, can perform display control on the collected historical image frame, and can perform image processing on the historical image frame according to the driving speed of the vehicle. When the user misses the image outside the vehicle for which he wants to obtain information, the image corresponding to the historical image frame can be played back and displayed, which improves the user experience and can accurately capture the detailed information of the image outside the vehicle.
[0038] In some embodiments, the processing flow of the image processing method is shown as follows: Figure 2 ,like Figure 2 As shown, including:
[0039] Step S201, obtaining historical image frames and historical speed information.
[0040] Step S202, obtaining a display control instruction.
[0041] The specific description of each step of steps S201-S202 is the same as that of the above steps S101-S102, and will not be repeated here.
[0042] like Figure 2 As shown, the image corresponding to the historical image frame is displayed according to the display control instruction and the historical speed information in step S103, which may specifically include:
[0043] Step S203a, adding corresponding historical speed information to the historical image frame for display.
[0044] In this embodiment, the historical speed information is added to the historical image frame in the form of text, icon or other forms for display. The historical speed information may include the speed information of the target object when the historical image frame is collected, wherein the speed information may include speed information such as instantaneous speed, direction of travel and timestamp, and the speed information may also include other speed information, which is not limited in the embodiment of the present application.
[0045] Step S203b: Process the historical image frame according to the historical speed information to obtain an image corresponding to the historical image frame.
[0046] In this embodiment, the degree of image correction of the historical image frame can be determined according to the historical speed information, and then the historical image frame is corrected according to the determined degree of image correction to obtain an image corresponding to the historical image frame. Among them, image correction may include: image sharpening processing, clarity adjustment, contrast adjustment and other image correction methods, and the embodiment of the present application does not limit the specific image correction method. The degree of image correction may include: sharpening degree, clarity adjustment range, image contrast adjustment level and other image correction degrees, and the embodiment of the present application does not limit the specific image correction degree.
[0047] Step S203c, determining the target display duration corresponding to the historical image frame based on the historical speed information.
[0048] In this embodiment, the target display duration can be used to control the display duration of the image corresponding to the historical image frame. The greater the speed corresponding to the historical speed information of the historical image frame, the longer the target display duration of the image corresponding to the historical image frame.
[0049] As an example, first obtain the progress adjustment speed information corresponding to the display control instruction, and determine the operation displacement corresponding to the display control instruction based on the progress adjustment speed information and the operation type of the display control instruction. Based on the operation displacement and the historical speed information, calculate the display progress playback duration corresponding to the historical video. The historical video may include historical image frames. According to the display progress playback duration, determine the target display duration corresponding to this historical image frame.
[0050] Step S204c: when a display control instruction is received, display the image corresponding to the historical image frame based on the target display duration.
[0051] As an example, the target display duration of the image corresponding to the historical image frame is determined according to the speed of the historical speed information. When a display control instruction is received, the image of the historical image frame is rendered on the transparent screen of the vehicle window according to the target display duration, and its display time is controlled. When the target display duration is reached, the display of the image of the current historical image frame is terminated. During the display of the image of the historical image frame, the image in the historical image frame can be adjusted in real time to control the target display duration.
[0052] The method of the embodiment of the present application adds corresponding historical speed information to the historical image frame for display; processes the historical image frame according to the historical speed information to obtain the image corresponding to the historical image frame; determines the target display duration corresponding to the historical image frame based on the historical speed information, can process the historical image frame in combination with the vehicle's driving speed, and control the display of the image of the historical image frame according to the target display duration corresponding to the historical image frame. When the user misses the image of the outside of the vehicle that he wants to obtain information about, the image corresponding to the historical image frame can be played back and displayed, which improves the user experience and can accurately capture the detailed information of the image outside the vehicle.
[0053] In some embodiments, the processing flow of the image processing method is shown as follows: Figure 3 ,like Figure 3 As shown, including:
[0054] like Figure 3 As shown, the processing of the historical image frame according to the historical speed information in step S203b may specifically include:
[0055] Step S301 , extracting a target image frame sequence including historical image frames from historical video recordings according to historical speed information.
[0056] In this embodiment, the interval frame number of each frame in the target image frame sequence can be determined according to the historical speed information, wherein the greater the speed corresponding to the historical speed information, the smaller the interval frame number. The historical video can be a video stream data composed of a plurality of continuous historical image frames. The target image frame sequence can include historical image frames. The image frames in the target image frame sequence can be continuous or selected according to the interval frame number.
[0057] Step S302: Process the target image frame sequence to obtain an image corresponding to the historical image frame.
[0058] In this embodiment, image fusion processing is performed on each image frame of the target image frame sequence to obtain an image corresponding to the historical image frame. Other image processing can also be performed on the target image frame sequence to obtain an image corresponding to the historical image frame. The embodiment of the present application does not limit the specific image processing method.
[0059] The method of the embodiment of the present application processes the historical image frame according to the historical speed information to obtain the image corresponding to the historical image frame, can process the historical image frame in combination with the vehicle's driving speed, and control the display of the image of the historical image frame according to the target display duration corresponding to the historical image frame. When the user misses the image of the outside of the vehicle for which he wants to obtain information, the image corresponding to the historical image frame can be played back and displayed, which improves the user experience and can accurately capture the detailed information of the image outside the vehicle.
[0060] In some embodiments, the processing flow of the image processing method is shown as follows: Figure 4 ,like Figure 4 As shown, including:
[0061] like Figure 4 As shown, the image processing method may further include:
[0062] Step S401: obtaining depth information of a first object in a historical image frame.
[0063] In this embodiment, the first object may be an object corresponding to the touch position included in the display control instruction. The first object may be an object in an actual scene outside the target object, or the first object may be an object in an image displayed on a display device inside the target object. The depth information may include: a specific position of the first object in an external actual scene space relative to the image acquisition device. The depth information may also include: distance information of the first object relative to the image plane.
[0064] Step S402: determining the target display duration corresponding to the historical image frame based on the depth information.
[0065] In this embodiment, the target display duration is used to control the display duration of the image corresponding to the historical image frame. First, a depth analysis is performed on the historical image frame to identify an object image corresponding to the object and a background image corresponding to the background included in the historical image frame. An object image corresponding to the first object is intercepted from the historical image frame. Based on the depth information of the first object, the display duration of the object image corresponding to the first object in the historical image frame is determined.
[0066] The method of the embodiment of the present application determines the target display duration corresponding to the historical image frame based on the depth information of the object in the historical image frame, can process the historical image frame in combination with the depth information of the object outside the vehicle, and control the display of the image of the historical image frame according to the determined target display duration. When the user misses the image outside the vehicle for which he wants to obtain information, the image corresponding to the historical image frame can be played back and displayed, which improves the user experience and can accurately capture the detailed information of the image outside the vehicle.
[0067] In some embodiments, the processing flow of the image processing method is shown as follows: Figure 5 ,like Figure 5 As shown, including:
[0068] like Figure 5 As shown, determining the target display duration corresponding to the historical image frame based on the historical speed information in step S203c may include:
[0069] Step S501a, obtaining a target image frame that satisfies an adjacent relationship with the historical image frame.
[0070] In this embodiment, the target image frame may include a first object. The target image frame and the historical image frame may be image frames collected at different positions during the vehicle's forward movement. Satisfying the adjacent relationship may be that in the target image frame sequence, the historical image frame and the target image frame are continuous. Satisfying the adjacent relationship may also be that in the target image frame sequence, the number of image frames between the historical image frame and the target image frame is less than a set frame number threshold. The target image frame that satisfies the adjacent relationship with the historical image frame may include multiple target image frames, and the embodiment of the present application does not limit the specific number of target image frames.
[0071] Step S502a: determining depth information of the first object according to the historical speed information, the historical image frames and the target image frames.
[0072] In this embodiment, a depth analysis is performed on the historical image frame and the target image frame to identify the object image corresponding to the object and the background image corresponding to the background included in the historical image frame and the target image frame. The object image corresponding to the first object is intercepted from the historical image frame and the target image frame according to the historical speed information. The depth information of the first object can be determined by performing a depth prediction on the object image corresponding to the first object. The greater the speed corresponding to the historical speed information, the smaller the interval frame number between each two intercepted image frames. The depth prediction may include a binocular depth prediction method.
[0073] Step S503a, determining the target display duration corresponding to the historical image frame based on the depth information.
[0074] The specific description of step S503a is the same as that of the above step S402 and will not be repeated here.
[0075] Step S503b: determining the target display duration according to the historical speed information and depth information.
[0076] In this embodiment, the historical image frame is subjected to depth analysis to identify the object image corresponding to the object and the background image corresponding to the background included in the historical image frame. The object image included in the historical image frame is subjected to depth prediction to determine the depth information of the object included in the historical image frame. The display duration of the image of the historical image frame is determined based on the depth information of the object combined with the historical speed information corresponding to the historical image frame.
[0077] Step S504: when a display control instruction is received, display the image corresponding to the historical image frame based on the target display duration.
[0078] The specific description of step S504 is the same as that of the above step S204c, and will not be repeated here.
[0079] The method of the embodiment of the present application combines the depth information of the object outside the vehicle with the speed information of the vehicle to perform image processing on the historical image frame, and controls the display of the image of the historical image frame according to the determined target display duration. When the user misses the image outside the vehicle for which he wants to obtain information, the image corresponding to the historical image frame can be played back and displayed, which improves the user experience, so that the detailed information of the image outside the vehicle can be accurately captured. When the user performs a touch operation, the display progress of the historical video is adjusted synchronously, and the object corresponding to the user's touch operation is always displayed following the position of the touch operation, which improves the user's operating experience.
[0080] In some embodiments, the processing flow of the image processing method is shown as follows: Figure 6 ,like Figure 6 As shown, including:
[0081] like Figure 6 As shown, determining the target display duration corresponding to the historical image frame based on the historical speed information in step S203c may include:
[0082] Step S601, obtaining progress adjustment speed information corresponding to the display control instruction.
[0083] In this embodiment, the display control instruction can be used to adjust the display progress of the historical video including the historical image frame. The display control instruction may include a variety of different operation types. For example, dragging, long pressing and other operation types. The embodiment of the present application does not limit the specific operation type of the display control instruction. The progress adjustment speed information may include: adjusting the speed of the display progress. The operation displacement corresponding to the display control instruction can be determined according to the progress adjustment speed information and the operation type of the display control instruction.
[0084] Step S602: determining a target display duration corresponding to the historical image frame according to the progress adjustment speed information and the historical speed information.
[0085] In this embodiment, first, based on the progress adjustment speed information and the operation type of the display control instruction, the operation displacement corresponding to the display control instruction is determined. The first scaling ratio corresponding to the image of the display historical image frame is obtained, and the first scaling ratio represents the ratio between the image size of the display historical image frame and the original size when the historical image frame was collected. Based on the first scaling ratio, the operation displacement and the historical speed information, the display progress playback duration corresponding to the historical video is calculated. According to the display progress playback duration, the switching speed between the historical image frames is determined, and then the target display duration corresponding to each historical image frame is determined.
[0086] In this embodiment, based on the first zoom ratio, the operation displacement and the historical speed information, the display progress playback duration corresponding to the historical video is calculated and can be expressed by the following formula (1).
[0087]
[0088] Among them, Δt represents the playback duration of the display progress, n represents the first zoom ratio, d represents the operation displacement, and s represents the historical speed information.
[0089] In this embodiment, the moving direction of the target object is determined, and in response to a first relationship between the direction of the operation displacement and the moving direction, the display progress of the historical video including the historical image frame is adjusted in a first adjustment direction; in response to a second relationship between the direction of the operation displacement and the moving direction, the display progress of the historical video including the historical image frame is adjusted in a second adjustment direction. The first relationship is different from the second relationship, and the first adjustment direction is opposite to the second adjustment direction.
[0090] The method of the embodiment of the present application processes the historical image frame in combination with the vehicle's speed information, and controls the display of the image of the historical image frame according to the determined target display duration. When the user misses the image of the outside of the vehicle for which he wants to obtain information, the image corresponding to the historical image frame can be played back and displayed, which improves the user experience, so that the detailed information of the image outside the vehicle can be accurately captured. When the user performs a touch operation, the display progress of the historical video is synchronously adjusted, and the object corresponding to the user's touch operation is always displayed following the position of the touch operation, which improves the user's operating experience.
[0091] refer to Figure 7, an application scenario diagram of the image processing method provided in an embodiment of the present application, which is applied to image processing on a transparent screen of a car window. Among them, the transparent screen can be a touch screen. Historical image frames and historical speed information are obtained, and the historical image frames are obtained by an image acquisition device on the side of the car to capture images of the outside of the car, and the historical speed information is the speed information of the car when the historical image frames are collected. First, the historical image frame A includes two objects, a house and a tree. The historical image frame C includes the object of the tree. The display time of the historical image frame C is after the historical image frame A. The user can perform a touch operation on the object of the tree in the historical image frame C, and the car system can generate a display control instruction for the touch operation. The display control instruction can be used to adjust the display progress of historical videos including historical image frames A, B, and C. If the touch operation is to drag the tree to the right, the target display duration corresponding to historical image frame A is determined based on the historical speed information of historical image frame A; the target display duration corresponding to historical image frame B is determined based on the historical speed information of historical image frame B; the target display duration corresponding to historical image frame C is determined based on the historical speed information of historical image frame C. When the display control instruction is received, the display progress of the historical videos is adjusted, and the image corresponding to historical image frame B is displayed based on the target display duration. When the user performs a touch operation, the display progress of the historical videos is adjusted synchronously, and the tree object corresponding to the user's touch operation is always displayed following the position of the touch operation.
[0092] refer to Figure 8 , another application scenario diagram of the image processing method provided in an embodiment of the present application is applied to image processing of a display device in a car.
[0093] Step S1, capture images of the exterior of the car to obtain a video stream. First, obtain historical image frames and historical speed information. The historical image frames are obtained by the image capture device on the side of the car capturing images of the exterior of the car, and the historical speed information is the speed information of the car when the historical image frames are captured. Play multiple historical image frames continuously in the order of capture time to form a video stream.
[0094] Step S2, receiving a touch operation performed at any position in the video stream. After receiving the touch operation, generating a corresponding display control instruction. The touch operation may be horizontally dragging a historical image frame. The display control instruction may include progress adjustment speed information and an operation type.
[0095] Step S3, based on the zoom ratio, operation displacement and historical speed information, determine the target display duration corresponding to the historical image frame in the video stream. First, based on the progress adjustment speed information and the operation type of the display control instruction, determine the operation displacement corresponding to the display control instruction. Obtain the zoom ratio corresponding to the image of the display historical image frame, and the zoom ratio represents the ratio between the image size of the display historical image frame and the original size when the historical image frame was collected. Based on the zoom ratio, operation displacement and historical speed information, calculate the display progress playback duration corresponding to the video stream. According to the display progress playback duration, determine the switching speed between the historical image frames, and then determine the target display duration corresponding to each historical image frame.
[0096] Step S4, replaying the video stream, and displaying the image corresponding to the historical image frame based on the target display duration. According to the display progress playback duration, adjusting the display progress of the video stream including the historical image frame for playback. And displaying the image corresponding to the historical image frame based on the target display duration.
[0097] The following is a description of an exemplary structure of a software module included in the vehicle 90 provided in an embodiment of the present application. In some embodiments, for example, Fig. 9 As shown, the vehicle 90 may include: a first acquisition module 901, which can be used to obtain historical image frames and historical speed information, where the historical image frames are obtained by an image acquisition device on the target object capturing images of the outside of the target object, and the historical speed information is the speed information of the target object when the historical image frames are captured; a second acquisition module 902, which can be used to obtain display control instructions; and a display module 903, which can be used to display images corresponding to the historical image frames according to the display control instructions and the historical speed information.
[0098] In some embodiments, the display module 903 is also used to: determine the target display time corresponding to the historical image frame based on the historical speed information, wherein the greater the speed corresponding to the historical speed information, the longer the target display time; and when a display control instruction is received, display the image corresponding to the historical image frame based on the target display time.
[0099] In some embodiments, the display module 903 is also used to: obtain depth information of the first object in the historical image frame; based on the depth information, determine the target display time corresponding to the historical image frame, and the target display time is used to control the display time of the image corresponding to the historical image frame.
[0100] In some embodiments, the display module 903 is also specifically used to: obtain a target image frame that satisfies an adjacent relationship with the historical image frame; determine the depth information of the first object based on the historical speed information, the historical image frame and the target image frame; and determine the target display time corresponding to the historical image frame based on the depth information.
[0101] In some embodiments, the display module 903 is further specifically configured to determine the target display duration according to the historical speed information and the depth information.
[0102] In some embodiments, the display control instruction is used to adjust the display progress of historical recordings including historical image frames, and the display module 903 is also specifically used to: obtain progress adjustment speed information corresponding to the display control instruction; determine the target display time corresponding to the historical image frame based on the progress adjustment speed information and the historical speed information.
[0103] In some embodiments, the display module 903 is further used to add corresponding historical speed information to the historical image frame for display.
[0104] In some embodiments, the display module 903 is further used to: process the historical image frame according to the historical speed information to obtain an image corresponding to the historical image frame.
[0105] In some embodiments, the display module 903 is also specifically used to: extract a target image frame sequence including historical image frames from historical video recordings based on historical speed information, wherein the interval frame number of each frame in the target image frame sequence is determined based on the historical speed information, wherein the greater the speed corresponding to the historical speed information, the smaller the interval frame number; and process the target image frame sequence to obtain images corresponding to the historical image frames.
[0106] It should be noted that the description of the device in the embodiment of the present application is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment, so it will not be repeated. Figures 1 to 8 The present invention can be understood by referring to the description of any one of the accompanying drawings.
[0107] According to an embodiment of the present application, the present application also provides an electronic device and a non-transitory computer-readable storage medium.
[0108] Fig.10 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0109] like Fig.10As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0110] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0111] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as image processing methods. For example, in some embodiments, the image processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the image processing method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the image processing method in any other appropriate manner (e.g., by means of firmware).
[0112] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0113] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0114] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0115] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0116] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0117] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0118] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0119] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An image processing method, comprising: Obtaining historical image frames and historical speed information, wherein the historical image frames are obtained by an image acquisition device on the target object acquiring images of the outside of the target object, and the historical speed information is speed information of the target object when the historical image frames are acquired; Get display control instructions; An image corresponding to the historical image frame is displayed according to the display control instruction and the historical speed information.
2. The method according to claim 1, wherein displaying the image corresponding to the historical image frame according to the display control instruction and the historical speed information comprises: Based on the historical speed information, determining the target display time length corresponding to the historical image frame, wherein the greater the speed corresponding to the historical speed information, the longer the target display time length; When the display control instruction is received, the image corresponding to the historical image frame is displayed based on the target display duration.
3. The method according to claim 1 or 2, further comprising: Obtaining depth information of a first object in the historical image frame; Based on the depth information, a target display duration corresponding to the historical image frame is determined, and the target display duration is used to control a display duration of an image corresponding to the historical image frame.
4. The method according to claim 3, wherein determining the target display duration corresponding to the historical image frame based on the historical speed information comprises: Obtaining a target image frame that satisfies an adjacent relationship with the historical image frame; determining depth information of the first object according to the historical speed information, the historical image frame and the target image frame; Based on the depth information, a target display duration corresponding to the historical image frame is determined.
5. The method according to claim 3, wherein determining the target display duration corresponding to the historical image frame based on the historical speed information comprises: The target display duration is determined according to the historical speed information and the depth information.
6. The method according to claim 2, wherein the display control instruction is used to adjust the display progress of the historical video including the historical image frame, and the determining the target display duration corresponding to the historical image frame based on the historical speed information comprises: Obtaining progress adjustment speed information corresponding to the display control instruction; The target display duration corresponding to the historical image frame is determined according to the progress adjustment speed information and the historical speed information.
7. The method according to claim 1, wherein displaying the image corresponding to the historical image frame according to the display control instruction and the historical speed information comprises: The corresponding historical speed information is added to the historical image frame for display.
8. The method according to claim 1, wherein displaying the image corresponding to the historical image frame according to the display control instruction and the historical speed information comprises: The historical image frame is processed according to the historical speed information to obtain an image corresponding to the historical image frame.
9. The method according to claim 8, wherein the processing of the historical image frame according to the historical speed information comprises: Extracting a target image frame sequence including the historical image frame from the historical video according to the historical speed information, wherein the interval frame number of each frame in the target image frame sequence is determined according to the historical speed information, wherein the greater the speed corresponding to the historical speed information, the smaller the interval frame number; The target image frame sequence is processed to obtain an image corresponding to the historical image frame.
10. A vehicle capable of executing the method according to any one of claims 1 to 9, comprising: A first acquisition module is used to obtain historical image frames and historical speed information, wherein the historical image frames are obtained by an image acquisition device on the target object acquiring images of the outside of the target object, and the historical speed information is the speed information of the target object when the historical image frames are acquired; A second obtaining module is used to obtain a display control instruction; A display module is used to display the image corresponding to the historical image frame according to the display control instruction and the historical speed information.
Citation Information
Patent Citations
Video special effect generation method and terminal
CN112422804A
Intelligent data storage method of automobile data recorder
CN115329126A
Picture-based video playing method and device, electronic equipment and storage medium
CN116033219A
Image recording device
JP2021057634A
Information processing apparatus
JP2023011162A
