Image scaling method and apparatus, and vehicle, computer device, readable storage medium and computer program product
By adjusting the image frame size according to the ratio of the image frame to the display screen, the problem of information occlusion in the vehicle voice interaction system is solved, improving the convenience of information acquisition and user experience.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- CHONGQING CHANGAN AUTOMOBILE CO LTD
- Filing Date
- 2025-09-30
- Publication Date
- 2026-05-21
AI Technical Summary
In in-vehicle voice interaction systems, the voice avatar or dialogue flow interface may obscure the original application interface content, affecting the user's convenience in obtaining information.
By receiving instructions to zoom in or out on the size of image frames, the system calculates the ratio of the image frame to the display screen, adjusts the size of the image frame to ensure that the image frame does not completely cover the display screen, and optimizes information display.
It avoids image occlusion, improves the convenience for users to obtain information, and enhances visual coherence and user experience.
Smart Images

Figure CN2025125657_21052026_PF_FP_ABST
Abstract
Description
Image scaling methods, apparatuses, vehicles, computer equipment, readable storage media, and computer program products
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202411635899.4, filed on November 15, 2024, entitled “Image Scaling Method and Apparatus”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of computer technology, and specifically to image scaling methods, apparatus, vehicles, computer equipment, readable storage media, and computer program products. Background Technology
[0004] With the continuous advancement of intelligent technologies, in-vehicle information systems are undergoing unprecedented changes. Among them, the development of in-vehicle voice technology is particularly rapid, gradually becoming an important symbol of the intelligence and convenience of modern automobiles. Voice interaction technology not only improves the convenience of operation for drivers while driving, but also significantly enhances driving safety by reducing manual operation.
[0005] Currently, the voice avatars or dialogue interfaces displayed by in-vehicle voice interaction systems are often shown on the display screen by covering the entire vehicle's screen.
[0006] However, the appearance of voice avatars or dialogue interfaces often obscures the original application interface content, causing inconvenience or even interruption in obtaining information from the application interface content, thereby affecting the user's convenience in obtaining information.
[0007] Therefore, how to reduce the obstruction and interference with application interface content has become a problem that needs to be solved. Summary of the Invention
[0008] In view of this, this application provides an image scaling method, apparatus, vehicle, computer equipment, readable storage medium, and computer program product.
[0009] In a first aspect, this application provides an image scaling method, the method comprising: receiving an instruction to reduce or enlarge the size of an image frame; calculating the ratio between the height of the adjusted image frame indicated by the instruction and the height of the display screen of a target vehicle; reducing or enlarging the original image frame including information to be displayed in a dialog service flow interface according to the ratio, to obtain a target image frame including the information to be displayed in the dialog service flow interface, and displaying the target image frame in the dialog service flow interface.
[0010] In one possible implementation, scaling down or up the original image frame containing information to be displayed in the dialog service flow interface, based on a ratio, includes: determining the target size corresponding to each scaling operation or each zoom-in operation in multiple scaling operations based on a ratio; performing multiple scaling down operations or multiple zoom-in operations; wherein the scaling down operation includes: scaling down the image frame targeted by the scaling down operation to obtain the image frame targeted by the next scaling down operation or the target image frame, and displaying the resulting image frame, wherein the image frame targeted by the first scaling down operation is the original image frame; the zoom-in operation includes: zooming in on the image frame targeted by the zoom-in operation to obtain the image frame targeted by the next zoom-in operation or the target image frame, and displaying the resulting image frame, wherein the image frame targeted by the first zoom-in operation is the original image frame.
[0011] In one possible implementation, scaling down or up the original image frame containing the information to be displayed in the dialog service flow interface, depending on the scale, includes: acquiring multiple interface elements of the original image frame containing the information to be displayed in the dialog service flow interface; and scaling down or up all interface elements of the original image frame containing the information to be displayed in the dialog service flow interface, depending on the scale.
[0012] In one possible implementation, displaying the target image frame in the dialogue service flow interface includes: displaying the target image frame in a target area of the dialogue service flow interface of the target vehicle; wherein, the target area is the area of the dialogue service flow interface of the target vehicle other than the area displaying the task information of the task currently being performed by the target vehicle.
[0013] In one possible implementation, scaling down or up the original image frame containing the information to be displayed in the dialog service flow interface, depending on the scale, includes: scaling down or up the original image frame containing the information to be displayed in the dialog service flow interface via the page root element of the system layer, depending on the scale.
[0014] Secondly, this application provides an image scaling device, comprising: a calculation module for receiving an instruction to reduce or enlarge the size of an image frame, calculating the ratio of the height of the adjusted image frame indicated by the instruction to the height of the display screen of a target vehicle; and an operation module for reducing or enlarging the original image frame, including information to be displayed in a dialog service flow interface, according to the ratio, to obtain a target image frame including the information to be displayed in the dialog service flow interface, and displaying the target image frame in the dialog service flow interface.
[0015] Thirdly, this application provides a computer device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the image scaling method described in the first aspect or any corresponding embodiment.
[0016] Fourthly, this application provides a vehicle including a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the image scaling method described in the first aspect or any corresponding embodiment thereof.
[0017] Fifthly, this application provides a computer-readable storage medium storing computer instructions for causing a computer to perform the image scaling method described in the first aspect or any corresponding embodiment thereof.
[0018] In a sixth aspect, this application provides a computer program product, including computer instructions for causing a computer to execute the image scaling method described in the first aspect or any corresponding embodiment thereof.
[0019] The beneficial effects of this application are:
[0020] Based on the ratio of the adjusted image frame height to the target vehicle's display screen height as indicated by the operation instruction, the original image frame containing the target information is scaled down or enlarged to obtain a target image frame containing the information that needs to be displayed in the dialog service flow interface. The target image frame is then displayed in the dialog service flow interface so that it does not completely cover the vehicle's display screen, thus not obscuring the original application interface content and improving the user's convenience in obtaining information. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0022] Figure 1 is a flowchart illustrating an image scaling method according to an embodiment of this application;
[0023] Figure 2 is an architecture diagram of an image scaling system provided according to an embodiment of this application;
[0024] Figure 3 is a diagram showing the effect of the image scaling method provided according to an embodiment of this application;
[0025] Figure 4 is a structural block diagram of an image scaling device according to an embodiment of this application;
[0026] Figure 5 is a schematic diagram of the hardware structure of a computer device according to an embodiment of this application. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0028] According to an embodiment of this application, an image scaling method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0029] This embodiment provides an image scaling method that can be used in computer devices such as computers, cloud servers, and mobile terminals. Figure 1 is a flowchart illustrating the image scaling method according to an embodiment of this application. As shown in Figure 1, the process includes the following steps:
[0030] In step S101, an instruction to reduce or increase the size of an image frame is received, and the ratio of the height of the adjusted image frame indicated by the instruction to the height of the target vehicle's display screen is calculated.
[0031] Instructions indicating whether to zoom in or out on an image frame can be generated by a unit that generates and sends the instructions.
[0032] As an example, a user speaks a voice indicating whether to zoom in or out on an image frame. The unit that generates and sends the instruction responds to the voice indicating whether to zoom in or out on the image frame and generates an instruction indicating whether to zoom in or out on the image frame.
[0033] As an example, when a user indicates to zoom in or out on an image frame on the dialog service flow interface, the unit for generating and sending instructions generates instructions to zoom in or out on the image frame in response to the indication to zoom in or out.
[0034] In step S102, the original image frame, including the information to be displayed in the dialogue service flow interface, is scaled down or enlarged according to the ratio to obtain a target image frame including the information to be displayed in the dialogue service flow interface, and the target image frame is displayed in the dialogue service flow interface.
[0035] The dialogue service flow interface is used to display relevant information about the dialogue service. Specifically, it displays the call results corresponding to the atomic service functions used to achieve the target intent, and can also display a text chat window, a message send button, and other elements. Raw image frames represent the image content to be displayed in the dialogue service flow interface; this interface is displayed on the target vehicle's infotainment screen.
[0036] The target image frame can represent the image frame that will ultimately be displayed to the user on the dialog service flow interface. Specifically, if the ratio of the height of the adjusted image frame to the height of the target vehicle's display screen, indicated by the operation instruction to zoom in or out, is greater than the ratio of the height of the original image frame to the height of the target vehicle's display screen, then the original image frame, including the information that needs to be displayed in the dialog service flow interface, is zoomed in.
[0037] If the ratio of the height of the adjusted image frame to the height of the target vehicle's display screen in the operation instruction indicating to reduce or enlarge the image frame size is less than the ratio of the height of the original image frame to the height of the target vehicle's display screen, then the original image frame, including the information that needs to be displayed in the dialog service flow interface, is reduced.
[0038] The height of the target image frame for the information to be displayed in the dialogue service flow interface has an adjusted image frame height. The ratio of the width of the target image frame for the information to be displayed in the dialogue service flow interface to the width of the target vehicle's display screen can be: the ratio of the adjusted image frame height to the height of the target vehicle's display screen, which is an operation instruction indicating whether to zoom in or out on the image frame.
[0039] In this embodiment of the application, the original image frame including target information is reduced or enlarged according to the ratio of the adjusted image frame height to the height of the target vehicle's display screen as indicated by the operation instruction, to obtain a target image frame including information that needs to be displayed in the dialogue service flow interface. The target image frame is then displayed in the dialogue service flow interface so that the target image frame does not globally cover the vehicle's display screen, thereby not obscuring the original application interface content and improving the user's convenience in obtaining information.
[0040] In one possible implementation, step S102 above, which involves scaling down or up the original image frame containing the information to be displayed in the dialogue service flow interface according to a scale, includes:
[0041] Step a1: Based on the ratio, determine the target size corresponding to each scaling operation in multiple scaling operations or the target size corresponding to each zoom-in operation in multiple zoom-out operations.
[0042] During the scaling process of the original image frame, the target image frame can be reached through a single scaling operation or through multiple scaling operations. In other words, the process of scaling from the original image frame to the target image frame involves gradually shrinking or enlarging the original image frame. Specifically, since the number of scaling operations can be determined after establishing a specific ratio, and after determining the ratio between the adjusted image frame height indicated by the operation and the height of the target vehicle's display screen, the target size of each scaling operation can be determined based on the number of scaling operations.
[0043] In one possible implementation, the target size of the image frame is the same each time it is scaled down or scaled up. For example, the image frame is scaled down by 1 / 6 the first time, and also by 1 / 6 the second time. As another example, the image frame is scaled up by 1 / 6 the first time, and also by 1 / 6 the second time.
[0044] In one possible implementation, the target size of the image frame is different each time it is scaled down or scaled up. For example, the first time the image frame is scaled down by 1 / 6, and the second time by 1 / 3. Another example: the first time the image frame is scaled up by 1 / 6, and the second time by 1 / 3.
[0045] In one possible implementation, a portion of the target size of the image frame is the same in each scaling down or scaling up. For example: the first scaling down of the image frame is 1 / 6, the second is 1 / 3, and the third is 1 / 6. Another example: the first scaling up of the image frame is 1 / 6, the second is also 1 / 3, and the third scaling down is 1 / 6.
[0046] Step a2 involves performing multiple zoom-out or zoom-in operations. The zoom-out operation includes: zooming out of the image frame targeted by the zoom-out operation, obtaining the next image frame targeted by the zoom-out operation or the target image frame, and displaying the resulting image frame. The image frame targeted by the first zoom-out operation is the original image frame. The zoom-in operation includes: zooming out of the image frame targeted by the zoom-in operation, obtaining the next image frame targeted by the zoom-in operation or the target image frame, and displaying the resulting image frame. The image frame targeted by the first zoom-in operation is the original image frame.
[0047] After determining the target size for each zoom-out or zoom-in operation, the computer device can perform multiple zoom-out or zoom-in operations. Each time a zoom-out operation is performed, the image frame targeted by the previous zoom-out operation is reduced in size to obtain the image frame targeted for the next zoom-out operation. The zoom-out operation continues based on the image frame targeted by the next zoom-out operation until the target image frame for the next zoom-out operation is obtained. Similarly, each time a zoom-out or zoom-in operation is performed, the image frame targeted by the previous zoom-out operation is enlarged to obtain the image frame targeted for the next zoom-in operation. The zoom-in operation continues based on the image frame targeted by the next zoom-in operation until the target image frame for the next zoom-in operation is obtained. After each zoom-out or zoom-in operation, the obtained image frame needs to be displayed.
[0048] As an example, perform a scaling down operation on image frame A, reducing it to 1 / 6 of its original size to obtain image frame B. Then perform a scaling down operation on image frame B, reducing it to 1 / 6 of its original size to obtain image frame C. Finally, perform a scaling down operation on image frame C, reducing it to 1 / 6 of its original size to obtain the target image frame.
[0049] In one possible implementation, the computer device can perform the scaling down or scaling up operation based on the original image frame, after determining the target size corresponding to each scaling down operation or the target size corresponding to each scaling up operation in multiple scaling down operations. That is, in each scaling down and scaling up operation, the original image frame is used as the reference to scale down or scale up the original image frame.
[0050] As an example, a magnification operation is performed on the original image frame M. The first magnification operation can be to magnify the original image frame M by 1 / 6, and the second magnification operation can be to magnify the original image frame M by 1 / 3, thus obtaining the target image frame.
[0051] In the embodiments of this application, by continuously performing multiple zoom-out or zoom-in operations, and each operation is performed proportionally, the changes between image frames are smooth, avoiding sudden changes in image size, and making the entire scaling process look more natural and fluid.
[0052] At the same time, since the resulting image frame is displayed immediately after each zoom-out or zoom-in operation, users can clearly see the process of image size change, enhancing visual continuity and making it easier for users to understand the effect of the current operation.
[0053] In one possible implementation, step S102 above, which involves scaling down or up the original image frame containing the information to be displayed in the dialogue service flow interface according to a scale, includes:
[0054] Step b1: Obtain multiple interface elements of the original image frame of the information displayed in the dialogue service flow interface.
[0055] Interface elements are the basic components that make up the dialog service flow interface. First, it's necessary to identify the multiple interface elements contained within the dialog service flow interface. Then, extract the original image frames containing the information to be displayed from the dialog service flow interface. Finally, associate the identified interface elements with the extracted original image frames. Specifically, the position and size of each interface element within the image frame can be determined.
[0056] Step b2: Based on the scale, zoom in or out on the interface elements of the original image frame, including the information that needs to be displayed in the dialog service flow interface.
[0057] Calculate the new size of each interface element based on the proportions. Adjust the size of each interface element according to the calculated new size. After resizing, it may be necessary to rearrange the interface elements so that they are displayed correctly in the dialog service flow interface.
[0058] In this embodiment of the application, by acquiring multiple interface elements of the original image frame and scaling them down or up, fine control over the interface layout can be achieved, allowing the size and position of each element to be flexibly adjusted according to the specific needs of the dialogue service flow interface, so as to optimize the information display effect.
[0059] In one possible implementation, displaying the target image frame in the dialogue service flow interface in step S102 above includes:
[0060] Display the target image frame in the target area of the target vehicle's dialogue service flow interface; wherein, the target area is the area of the target vehicle's dialogue service flow interface other than the area displaying the task information of the task currently being performed by the target vehicle.
[0061] The target vehicle's current task can be navigation. The task information for this navigation task includes the navigation route. This information is displayed as a scaled-down version in the target area of the target vehicle's display screen, such as the vehicle's infotainment screen. The task information for the target vehicle's current navigation task is also displayed in other areas of the target vehicle's display screen, excluding the target area.
[0062] In this embodiment, target information displayed via zooming is shown in the target area of the target vehicle's display screen, while task information of the currently executing task is displayed in other areas of the target vehicle's display screen. This allows the user inside the target vehicle to see both the information displayed via zooming and the task information of the currently executing task. This avoids the situation where only the information displayed via zooming is shown, preventing the user inside the target vehicle from seeing the task information of the currently executing task, thus degrading the user experience.
[0063] In one possible implementation, displaying the target image frame in the dialog service flow interface in step S102 above includes: scaling down or up the original image frame, including the information to be displayed in the dialog service flow interface, according to the scale, through the page root element of the system layer.
[0064] The root element of the system layer can be a component shared by all applications (APP). The computer device adds the page element after scaling down or enlarging the original image frame of the information displayed in the dialog service flow interface to the root element of the system layer, and the target image frame is formed through the root element.
[0065] Please refer to Figures 2 and 3. Figure 2 is an architecture diagram of an image scaling system provided according to an embodiment of this application, and Figure 3 is an effect diagram of an image scaling method provided according to an embodiment of this application.
[0066] Image scaling methods can be applied to the Android system. The system-level page root element, DecorCaptionView, can act as the scaling component of the image scaling system. SurfaceControl scales the information displayed in the dialog service flow interface, specifically by calculating the scaling ratio. The contentroot is a starting point in the layout or view structure. When its content changes, the application within the dialog service flow interface recalculates the layout and adjusts the size and position of the original image frames. The Android system provides applications with drawing surfaces on which they perform drawing operations. In images, the actual size of the surface remains constant, but scaling is achieved through SurfaceControl to present different visual effects. The size of the task is fixed at the screen height; regardless of content changes, the task's height remains constant. During layout, the size and position of DecorView are calculated and adjusted based on the page root element.
[0067] Specifically, in the Android system, scaling the information displayed in the dialog service flow interface allows it to be visually presented at different sizes. Scaling does not change the physical size of the surface, only its displayed size on the screen. Based on changes in the content of page elements, these elements are added to the root element of the system layer, and the root element is used to construct the target image frame.
[0068] In this embodiment, when the size of the image frame to be displayed is adjusted, the module of the application layer for displaying the image frame notifies the kernel module of the operating system for adjusting the image frame. The kernel module of the operating system then modifies the configuration item of the image frame size from the original size to the adjusted size. Adjusting the size of the image frame to be displayed has a large overhead. This notification and modification will cause the page to refresh during the scaling process, resulting in page jumping and the corresponding lifecycle methods being called back due to the page refresh, which will adversely affect the performance of the vehicle system.
[0069] This embodiment also provides an image scaling device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0070] This embodiment provides an image scaling device, as shown in FIG4, including: a calculation module 401, used to receive an instruction indicating to reduce or enlarge the size of an image frame, calculate the ratio of the height of the adjusted image frame indicated by the instruction to the height of the display screen of the target vehicle; and an operation module 402, used to reduce or enlarge the original image frame including information to be displayed in the dialogue service flow interface according to the ratio, to obtain a target image frame including information to be displayed in the dialogue service flow interface, and to display the target image frame in the dialogue service flow interface.
[0071] In one possible implementation, the operation module 402 includes: a determining unit, configured to determine, based on a ratio, the target size corresponding to each shrinking operation in multiple shrinking operations or the target size corresponding to each magnification operation in multiple magnification operations; and an execution unit, configured to execute multiple shrinking operations or multiple magnification operations; wherein the shrinking operation includes: shrinking the image frame targeted by the shrinking operation to obtain the image frame targeted by the next shrinking operation or the target image frame, and displaying the obtained image frame, wherein the image frame targeted by the first shrinking operation is the original image frame; and the magnification operation includes: magnifying the image frame targeted by the magnification operation to obtain the image frame targeted by the next magnification operation or the target image frame, and displaying the obtained image frame, wherein the image frame targeted by the first magnification operation is the original image frame.
[0072] In one possible implementation, the operation module 402 includes: an acquisition unit for acquiring multiple interface elements of the original image frame containing information to be displayed in the dialogue service flow interface; and a processing unit for scaling down or up the interface elements of the original image frame containing information to be displayed in the dialogue service flow interface according to a scale.
[0073] In one possible implementation, the operation module 402 is used to display a target image frame in a target area of the target vehicle's dialogue service flow interface; wherein, the target area is the area of the target vehicle's dialogue service flow interface other than the area displaying the task information of the task currently being performed by the target vehicle.
[0074] In one possible implementation, operation module 402 is used to scale the original image frame, including the information to be displayed in the dialog service flow interface, by zooming in or out through the page root element of the system layer according to a ratio.
[0075] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0076] In this embodiment, the image scaling device is presented in the form of a functional unit. Here, a functional unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0077] This application also provides a computer device having the image scaling device shown in FIG4 above.
[0078] Please refer to Figure 5, which is a schematic diagram of the structure of a computer device provided in an optional embodiment of this application. As shown in Figure 5, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components communicate with each other using different buses and can be mounted on a common motherboard or otherwise installed as needed. The processor can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 5 uses one processor 10 as an example.
[0079] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0080] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.
[0081] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0082] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0083] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0084] This application embodiment also provides a vehicle in which a memory 20 and a processor 10 are interconnected. The memory 20 stores computer instructions, and the processor 10 can implement the above-mentioned image scaling method by executing the computer instructions.
[0085] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium may also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the methods shown in the above embodiments are implemented.
[0086] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0087] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.
Claims
1. A method of image scaling, characterized by, The method includes: Receive an instruction to reduce or increase the size of an image frame, and calculate the ratio of the adjusted image frame height indicated by the instruction to the height of the target vehicle's display screen; Based on the stated ratio, the original image frame, including the information to be displayed in the dialogue service flow interface, is reduced or enlarged to obtain a target image frame including the information to be displayed in the dialogue service flow interface, and the target image frame is displayed in the dialogue service flow interface.
2. The image zooming method of claim 1, wherein, Based on the stated ratio, scaling down or up the original image frame, which includes information that needs to be displayed in the dialogue service flow interface, includes: Based on the aforementioned ratio, determine the target size corresponding to each shrinking operation in multiple shrinking operations or the target size corresponding to each enlargement operation in multiple enlargement operations; Perform multiple zoom-out or multiple zoom-in operations; The zoom-out operation includes: zooming out the image frame targeted by the zoom-out operation, obtaining the image frame targeted by the next zoom-out operation or the target image frame, and displaying the obtained image frame, wherein the image frame targeted by the first zoom-out operation is the original image frame; The magnification operation includes: magnifying the image frame targeted by the magnification operation, obtaining the image frame targeted by the next magnification operation or the target image frame, and displaying the obtained image frame, wherein the image frame targeted by the first magnification operation is the original image frame.
3. The image zooming method of claim 1, wherein, Based on the stated ratio, scaling down or up the original image frame, which includes information that needs to be displayed in the dialogue service flow interface, includes: Retrieve multiple UI elements of the original image frame from the information displayed in the dialogue service flow interface; Based on the stated scale, interface elements including the original image frame containing information that needs to be displayed in the dialog service flow interface are scaled down or enlarged.
4. The image zooming method of claim 1, wherein, Displaying the target image frame in the dialogue service flow interface includes: The target image frame is displayed in the target area of the target vehicle's dialogue service flow interface; wherein, the target area is the area of the target vehicle's dialogue service flow interface other than the area displaying the task information of the task currently being performed by the target vehicle.
5. The image zooming method of claim 1, wherein, Based on the stated ratio, scaling down or up the original image frame, which includes information that needs to be displayed in the dialogue service flow interface, includes: Based on the stated ratio, the original image frame, including the information that needs to be displayed in the dialog service flow interface, is scaled down or enlarged through the page root element of the system layer.
6. An image scaling apparatus characterized by comprising: The device includes: The calculation module is used to receive instructions to reduce or enlarge the size of an image frame, and to calculate the ratio of the height of the adjusted image frame indicated by the instructions to the height of the target vehicle's display screen. An operation module is used to reduce or enlarge the original image frame, which includes information to be displayed in the dialogue service flow interface, according to the ratio, to obtain a target image frame including information to be displayed in the dialogue service flow interface, and to display the target image frame in the dialogue service flow interface.
7. A computer device, comprising: include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the image scaling method of any one of claims 1 to 5.
8. A vehicle characterized by comprising: The vehicle comprises a memory and a processor, which are connected in communication with each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the image zooming method in any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for causing a computer to perform the image zooming method in any one of claims 1 to 5.
10. A computer program product, characterised in that, The computer readable storage medium stores computer instructions for causing a computer to perform the image zooming method in any one of claims 1 to 5.