Image scaling method and device
By calculating the ratio of image frame height to display screen height in the vehicle voice interaction system, reducing or enlarging image frames, the problem of voice image or dialogue flow interface obstructing application interface content is solved, and the convenience of information acquisition is improved.
Patent Information
- Application Number
- CN202411635899.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-02-18
AI Technical Summary
In the car voice interaction system, the appearance of voice images or dialogue flow interfaces will block the original application interface content, resulting in inconvenient information acquisition or even interruption, affecting the user experience.
By receiving instructions to reduce or enlarge the size of the image frame, calculate the ratio of the image frame height to the display screen height, reduce or enlarge the original image frame of the information included in the dialogue service flow interface, obtain the target image frame, and in the dialogue service flow The target image frame is displayed in the interface.
It avoids the global image covering the display screen, reduces the obstruction of the application interface content, and improves the convenience of users to obtain information.
Smart Images

Figure CN119484737A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an image scaling method and device. Background Art
[0002] With the continuous advancement of intelligent technology, in-vehicle information systems are undergoing unprecedented changes. Among them, the development of in-vehicle voice technology is particularly rapid, and has gradually become an important symbol of the intelligence and convenience of modern automobiles. Voice interaction technology not only improves the driver's operating convenience during driving, but also significantly enhances driving safety by reducing manual operations.
[0003] Currently, the voice image or dialogue flow interface displayed by the vehicle's in-vehicle voice interaction system is often displayed on a display screen by globally covering the vehicle's display screen.
[0004] However, the appearance of voice images or dialogue flow interfaces often obscures the original application interface content, causing inconvenience or even interruption in obtaining information in the application interface content, thereby affecting the convenience of users in obtaining information.
[0005] Therefore, how to reduce the occlusion and interference of application interface content becomes a problem that needs to be solved. Summary of the invention
[0006] In view of this, the present invention provides an image scaling method and device.
[0007] In a first aspect, the present invention provides an image scaling method, the method comprising: receiving an instruction indicating the reduction or enlargement of 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 a display screen of a target vehicle; according to the ratio, reducing or enlarging an original image frame including information that needs to be displayed in a dialogue service flow interface, obtaining a target image frame including information that needs to be displayed in the dialogue service flow interface, and displaying the target image frame in the dialogue service flow interface.
[0008] In one possible implementation, reducing or enlarging an original image frame including information to be displayed in a conversation service flow interface according to a ratio includes: determining a target size corresponding to each zoom operation in multiple zoom operations or a target size corresponding to each zoom operation in multiple zoom operations according to the ratio; performing multiple zoom-out operations or multiple zoom-in operations; wherein the zoom-out operation includes: reducing the image frame targeted by the zoom-out operation, obtaining an image frame or a target image frame targeted by the next zoom-out operation of the zoom-in operation, and displaying the obtained image frame, wherein the image frame targeted by the first zoom-out operation is the original image frame; the zoom-in operation includes: enlarging the image frame targeted by the zoom-in operation, obtaining an image frame or a target image frame targeted by the next zoom-in operation of the zoom-in operation, and displaying the obtained image frame, wherein the image frame targeted by the first zoom-in operation is the original image frame.
[0009] In one possible implementation, reducing or enlarging the original image frame including information that needs to be displayed in the conversation service flow interface according to the ratio includes: acquiring multiple interface elements of the original image frame including information displayed in the conversation service flow interface; reducing or enlarging all interface elements of the original image frame including information that needs to be displayed in the conversation service flow interface according to the ratio.
[0010] In one possible implementation, displaying a target image frame in a dialogue service flow interface includes: displaying a target image frame in a target area of the dialogue service flow interface of a target vehicle; wherein the target area is an area of the dialogue service flow interface of the target vehicle excluding an area displaying task information of a task currently being executed by the target vehicle.
[0011] In one possible implementation, the original image frame including the information that needs to be displayed in the dialogue service flow interface is reduced or enlarged according to the ratio, including: according to the ratio, the original image frame including the information that needs to be displayed in the dialogue service flow interface is reduced or enlarged through the page root element of the system layer.
[0012] In a second aspect, the present invention provides an image scaling device, which includes: a calculation module for receiving an instruction to reduce or enlarge the size of an image frame, and calculating the ratio of the height of the adjusted image frame indicated by the calculation instruction to the height of the display screen of the target vehicle; an operation module for reducing or enlarging the original image frame including information that needs to be displayed in the dialogue service flow interface according to the ratio, obtaining a target image frame including information that needs to be displayed in the dialogue service flow interface, and displaying the target image frame in the dialogue service flow interface.
[0013] In a third aspect, the present invention provides a computer device, comprising: 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 image scaling method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0014] In a fourth aspect, the present invention provides a vehicle comprising a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the image scaling method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0015] In a fifth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the image scaling method of the first aspect or any corresponding embodiment thereof.
[0016] In a sixth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the image scaling method of the first aspect or any corresponding embodiment thereof.
[0017] Beneficial effects of the present invention:
[0018] According to the ratio of the adjusted image frame height indicated by the operation to the height of the display screen of the target vehicle, the original image frame including the target information is reduced or enlarged to obtain the 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, so that the target image frame does not globally cover the vehicle's display screen, thereby not blocking the original application interface content, thereby improving the convenience of users in obtaining information. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 is a schematic flow chart of an image scaling method according to an embodiment of the present invention;
[0021] Figure 2 is an architecture diagram of an image scaling system provided according to an embodiment of the present invention;
[0022] Figure 3is a rendering of an image scaling method provided by an embodiment of the present invention;
[0023] Figure 4 is a structural block diagram of an image scaling device according to an embodiment of the present invention;
[0024] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0026] According to an embodiment of the present invention, an embodiment of an image scaling method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0027] In this embodiment, an image scaling method is provided, which can be used in computer devices, such as computers, cloud servers, mobile terminals, etc. Figure 1 is a flow chart of an image scaling method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0028] In step S101 , an instruction for reducing or enlarging the size of an image frame is received, and a ratio of the height of the image frame adjusted as indicated by the instruction to the height of a display screen of a target vehicle is calculated.
[0029] The instruction to instruct to reduce or enlarge the size of the image frame may be generated by a unit for generating and sending instructions.
[0030] As an example, the user speaks a voice instructing to enlarge or reduce the size of the image frame, and the unit for generating and sending instructions generates an instruction instructing to reduce or enlarge the size of the image frame in response to the voice instructing to enlarge or reduce the size of the image frame.
[0031] As an example, a user indicates on the dialogue service flow interface to reduce or enlarge the size of an image frame, and the unit for generating and sending instructions generates an instruction to reduce or enlarge the size of the image frame in response to the indication to enlarge or reduce the size of the image frame.
[0032] In step S102, the original image frame including the information to be displayed in the dialogue service flow interface is reduced 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.
[0033] The dialogue service flow interface is used to display the relevant information of the dialogue service. The dialogue service flow interface displays the call results corresponding to the atomic service functions used to achieve the target intention, and can also display elements such as a text chat window and a button for sending a message. The original image frame can represent the image screen that needs to be displayed in the dialogue service flow interface; the dialogue service flow interface is displayed by the vehicle screen of the target vehicle.
[0034] The target image frame may represent an image frame that is ultimately displayed to the user on the dialogue service flow interface. Specifically, if the ratio of the height of the adjusted image frame indicated by the operation indicating the reduction or enlargement of the size of the image frame to the height of the display screen of the target vehicle is greater than the ratio of the height of the original image frame to the height of the display screen of the target vehicle, the original image frame including the information to be displayed in the dialogue service flow interface is enlarged.
[0035] If the ratio of the adjusted image frame height to the height of the target vehicle's display screen indicated by the operation indicating reducing or enlarging the size of the image frame is smaller than the ratio of the height of the original image frame to the height of the target vehicle's display screen, the original image frame including the information that needs to be displayed in the dialogue service flow interface is reduced.
[0036] The height of the target image frame of the information to be displayed in the dialogue service flow interface has the adjusted image frame height. The ratio of the width of the target image frame of the information to be displayed in the dialogue service flow interface to the width of the display screen of the target vehicle may be: the ratio of the adjusted image frame height of the operation indication indicating the reduction or enlargement of the size of the image frame to the height of the display screen of the target vehicle.
[0037] In an embodiment of the present invention, based on the ratio of the adjusted image frame height indicated by the operation to the height of the display screen of the target vehicle, the original image frame including the target information 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, so that the target image frame does not globally cover the vehicle's display screen, thereby not blocking the original application interface content, thereby improving the convenience of users in obtaining information.
[0038] In a possible implementation, the step S102 described above of reducing or enlarging the original image frame including the information to be displayed in the dialogue service flow interface according to the ratio includes:
[0039] Step a1: determining, according to the ratio, a target size corresponding to each zoom operation in multiple zoom operations or a target size corresponding to each zoom operation in multiple zoom operations.
[0040] In the process of scaling the original image frame, the target image frame can be reached from the original image frame through one scaling operation or through multiple scaling operations, that is, in the process of reaching the target image frame from the original image frame, the original image frame will be gradually reduced or enlarged to the target image frame. Specifically, since the number of reductions or enlargements can be obtained after determining the ratio, after determining the ratio of the height of the adjusted image frame indicated by the operation to the height of the display screen of the target vehicle, the target size of each reduction or enlargement of the image frame can be determined according to the number of reductions or enlargements.
[0041] In a possible implementation, the target size of the image frame is the same each time it is reduced or enlarged. For example, the ratio of reducing the image frame for the first time is 1 / 6, and the ratio of reducing the image frame for the second time is also 1 / 6. For another example, the ratio of enlarging the image frame for the first time is 1 / 6, and the ratio of enlarging the image frame for the second time is also 1 / 6.
[0042] In a possible implementation, the target size of the image frame is different each time it is reduced or enlarged. For example, the ratio of reducing the image frame for the first time is 1 / 6, and the ratio of reducing the image frame for the second time is 1 / 3. For another example, the ratio of enlarging the image frame for the first time is 1 / 6, and the ratio of enlarging the image frame for the second time is 1 / 3.
[0043] In a possible implementation, there are parts of the same size in the target size of each reduction or enlargement of the image frame. For example, the ratio of the image frame to be reduced for the first time is 1 / 6, the ratio of the image frame to be reduced for the second time is 1 / 3, and the ratio of the image frame to be reduced for the third time is 1 / 6. For another example, the ratio of the image frame to be enlarged for the first time is 1 / 6, the ratio of the image frame to be enlarged for the second time is also 1 / 3, and the ratio of the image frame to be reduced for the third time is 1 / 6.
[0044] Step a2, performing multiple zoom-in operations or multiple zoom-in operations. The zoom-out operation includes: zooming in on the image frame targeted by the zoom-in operation, obtaining the image frame targeted by the next zoom-in operation or the target image frame of the zoom-in operation, and displaying the obtained image frame, wherein the image frame targeted by the first zoom-in operation is the original image frame. The zoom-in operation includes: zooming in on the image frame targeted by the zoom-in operation, obtaining the image frame targeted by the next zoom-in operation or the target image frame of the zoom-in operation, and displaying the obtained image frame, wherein the image frame targeted by the first zoom-in operation is the original image frame.
[0045] After determining the target size of each zoom-in or zoom-out operation, the computer device may perform multiple zoom-in or zoom-out operations. Each time a zoom-out operation is performed, the image frame targeted by the zoom-out operation is zoomed out to obtain the image frame targeted by the next zoom-out operation of the zoom-out operation, and then the zoom-out operation is continued according to the image frame targeted by the next zoom-out operation until the target image frame targeted by the next zoom-out operation of the zoom-out operation is obtained. Each time a zoom-in operation is performed, the image frame targeted by the zoom-in operation is zoomed in to obtain the image frame targeted by the next zoom-in operation of the zoom-in operation, and then the zoom-in operation is continued according to the image frame targeted by the next zoom-in operation until the target image frame targeted by the next zoom-in operation of the zoom-in operation is obtained, and after each zoom-out operation or zoom-in operation is performed, the obtained image frame needs to be displayed.
[0046] As an example, a reduction operation is performed on image frame A, reducing image frame A to 1 / 6 of its original size to obtain image frame B, and then a reduction operation is performed on image frame B, reducing image frame B to 1 / 6 of its original size to obtain image frame C, and then a reduction operation is performed on image frame C, reducing image frame C to 1 / 6 of its original size to obtain the target image frame.
[0047] In one possible implementation, when determining a target size corresponding to each zoom-out operation among multiple zoom-out operations or a target size corresponding to each zoom-in operation among multiple zoom-in operations, the computer device may perform a zoom-out operation or a zoom-in operation according to the original image frame, that is, during each zoom-out operation and zoom-in operation, the original image frame is used as a reference to zoom in or zoom out on the original image frame.
[0048] As an example, a magnification operation is performed on the original image frame M. The first magnification operation may be to magnify the original image frame M by 1 / 6, and the second magnification operation may be to magnify the original image frame M by 1 / 3, to obtain a target image frame.
[0049] In the embodiment of the present invention, by continuously performing multiple reduction or enlargement operations, and each operation is performed in proportion, the changes between image frames are smooth, and sudden changes in image size are avoided, making the entire scaling process look more natural and smooth.
[0050] At the same time, since the resulting image frame is displayed immediately after each zoom-in or zoom-out operation, the user can clearly see the change process of the image size, which enhances visual coherence and enables the user to more easily understand the current operation effect.
[0051] In a possible implementation, the step S102 described above of reducing or enlarging the original image frame including the information to be displayed in the dialogue service flow interface according to the ratio includes:
[0052] Step b1, obtaining multiple interface elements of the original image frame of the information displayed in the dialogue service flow interface.
[0053] The interface elements may be basic components constituting the dialogue service flow interface. First, it is necessary to identify multiple interface elements contained in the dialogue service flow interface. Extract the original image frame containing the information to be displayed from the dialogue service flow interface. Associate the identified interface elements with the extracted original image frame. Specifically, the position and size of each interface element in the image frame may be determined.
[0054] Step b2: reducing or enlarging the interface elements of the original image frame including the information to be displayed in the dialogue service flow interface according to the ratio.
[0055] According to the ratio, calculate the new size of each interface element, and adjust the size of each interface element according to the calculated new size. After adjusting the size, it may be necessary to rearrange the interface elements so that the interface elements are displayed correctly in the dialogue service flow interface.
[0056] In an embodiment of the present invention, by acquiring multiple interface elements of the original image frame and reducing or enlarging them, fine control of the interface layout can be achieved, so that the size and position of each element can be flexibly adjusted according to the specific needs of the dialogue service flow interface to optimize the information display effect.
[0057] In a possible implementation, displaying the target image frame in the dialogue service flow interface in the above step S102 includes:
[0058] The target image frame is displayed 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 excluding the area displaying the task information of the task currently being executed by the target vehicle.
[0059] The currently executed task of the target vehicle may be a navigation task. The task information of the currently executed navigation task of the target vehicle includes a navigation route. The information is displayed as zoomed information in a target area of a display screen of the target vehicle, such as a vehicle screen of the target vehicle. The task information of the currently executed navigation task of the target vehicle is displayed in other areas of the display screen of the target vehicle except the target area.
[0060] In the embodiment of the present invention, the target information displayed by the zoom operation is displayed in the target area of the display screen of the target vehicle, and the task information of the task currently being executed by the target vehicle is displayed in other areas of the display screen of the target vehicle except the target area, so that the user in the target vehicle can see both the information displayed by the zoom operation and the task information of the task currently being executed by the target vehicle. The following situation can be avoided: only the information displayed by the target operation is displayed, and the user in the target vehicle cannot see the task information of the task currently being executed, resulting in a reduction in the user experience of the user in the target vehicle.
[0061] In one possible implementation, displaying the target image frame in the dialogue service flow interface in the above step S102 includes: reducing or enlarging the original image frame including the information to be displayed in the dialogue service flow interface through the page root element of the system layer according to the ratio.
[0062] The page root element of the system layer can be a component shared by all applications (Application, APP). The computer device adds the page element after reducing or enlarging the original image frame of the information displayed in the dialogue service flow interface to the page root element of the system layer, and constructs the target image frame through the page root element.
[0063] Please refer to Figure 2 and Figure 3 , Figure 2 is an architecture diagram of an image scaling system provided according to an embodiment of the present invention, Figure 3 It is a rendering of the image scaling method provided according to an embodiment of the present invention.
[0064] The image scaling method can be applied to the Android system. Among them, the page root element DecorCaptionView of the system layer can be used as the scaling component of the image scaling system. SurfaceControl scales the information displayed in the dialog service flow interface, specifically, it can calculate the scaling ratio. Contentroot is a starting point in the layout or view structure. When its content changes, the application in the dialog service flow interface recalculates the layout and adjusts the size and position of the original image frame. The Android system provides a drawing surface (Surface) for the application, and the application performs drawing operations on it. In the picture, the actual size of the surface remains unchanged, but it is scaled by surfacecontrol to present different visual effects. The size of task is fixed to the screen height, and the height of the task remains unchanged regardless of how the content changes. During the layout process, the size and position of DecorView are calculated and adjusted according to the page root element.
[0065] Specifically, in the Android system, by controlling the information displayed in the dialog service flow interface to perform scaling operations, it can be visually presented in different sizes. The scaling operation does not change the physical size of the surface, but only changes its display size on the screen. According to the content change of the page element, the page element is added to the page root element of the system layer, and the target image frame is formed through the page root element.
[0066] In an embodiment of the present invention, when the size of an image frame to be displayed is adjusted, the module of the application layer for displaying the image frame notifies the module of the kernel of the operating system for adjusting the image frame, and the module of the kernel of the operating system for adjusting the image frame modifies the configuration item of the size of the image frame from the original size to the adjusted size. The overhead of adjusting the size of the image frame to be displayed is relatively large. The notification and modification will cause the page to refresh during the scaling process, resulting in page jumping and the corresponding life cycle method being called back due to the page refresh, which will adversely affect the performance of the vehicle computer.
[0067] In this embodiment, an image scaling device is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0068] This embodiment provides an image scaling device, such as Figure 4 As shown, it includes: a calculation module 401, which is used to receive an instruction indicating to reduce or enlarge the size of an image frame, and calculate the ratio of the height of the adjusted image frame indicated by the calculation instruction to the height of the display screen of the target vehicle; an operation module 402, which is used to reduce or enlarge the original image frame including the information that needs to be displayed in the dialogue service flow interface according to the ratio, obtain the target image frame including the information that needs to be displayed in the dialogue service flow interface, and display the target image frame in the dialogue service flow interface.
[0069] In a possible implementation, the operation module 402 includes: a determination unit, used to determine, according to a ratio, a target size corresponding to each zoom-out operation in multiple zoom-out operations or a target size corresponding to each zoom-in operation in multiple zoom-in operations; an execution unit, used to execute multiple zoom-out operations or multiple zoom-in operations; wherein the zoom-out operation includes: zooming out an image frame targeted by the zoom-out operation, obtaining an image frame or a target image frame targeted by the next zoom-out operation of the zoom-in operation, and displaying the obtained image frame, wherein the image frame targeted by the first zoom-out operation is the original image frame; the zoom-in operation includes: zooming in an image frame targeted by the zoom-in operation, obtaining an image frame or a target image frame targeted by the next zoom-in operation of the zoom-in operation, and displaying the obtained image frame, wherein the image frame targeted by the first zoom-in operation is the original image frame.
[0070] In one possible implementation, the operation module 402 includes: an acquisition unit, used to acquire multiple interface elements of the original image frame of information displayed in the dialogue service flow interface; and a processing unit, used to reduce or enlarge the interface elements of the original image frame including the information that needs to be displayed in the dialogue service flow interface according to the ratio.
[0071] In one possible implementation, the operation module 402 is used to display the target image frame in the 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 except for the area that displays the task information of the task currently being executed by the target vehicle.
[0072] In a possible implementation, the operation module 402 is used to reduce or enlarge the original image frame including the information to be displayed in the dialog service flow interface through the page root element of the system layer according to the ratio.
[0073] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0074] The image scaling device in this embodiment is presented in the form of a functional unit, where the functional unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0075] The embodiment of the present invention also provides a computer device having the above Figure 4 The image scaling device shown.
[0076] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 5As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0077] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0078] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0079] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0080] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0081] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0082] An embodiment of the present invention further provides a vehicle, in which a memory 20 and a processor 10 configured in the vehicle are communicatively connected to each other, the memory 20 stores computer instructions, and the processor 10 can implement the above-mentioned image scaling method by executing the computer instructions.
[0083] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0084] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0085] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. An image scaling method, characterized in that: The method comprises: receiving an instruction to reduce or enlarge the size of the image frame, and calculating a ratio of a height of the image frame adjusted as indicated by the instruction to a height of a display screen of the target vehicle; According to the 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 scaling method according to claim 1, characterized in that: According to the ratio, reducing or enlarging the original image frame including the information to be displayed in the dialogue service flow interface comprises: Determining, according to the ratio, a target size corresponding to each zoom-out operation in the multiple zoom-out operations or a target size corresponding to each zoom-in operation in the multiple zoom-in operations; Perform multiple zoom-out operations 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 of the 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 zooming operation includes: zooming in on the image frame targeted by the zooming operation, obtaining the image frame targeted by the next zooming operation of the zooming operation or the target image frame, and displaying the obtained image frame, wherein the image frame targeted by the first zooming operation is the original image frame.
3. The image scaling method according to claim 1, characterized in that: According to the ratio, reducing or enlarging the original image frame including the information to be displayed in the dialogue service flow interface comprises: Acquire multiple interface elements of the original image frame of information displayed in the dialogue service flow interface; According to the ratio, the interface elements of the original image frame including the information to be displayed in the dialog service flow interface are reduced or enlarged.
4. The image scaling method according to claim 1, characterized in that: The displaying of the target image frame in the dialogue service flow interface includes: The target image frame is displayed in a target area of the dialogue service flow interface of the target vehicle; wherein the target area is an area of the dialogue service flow interface of the target vehicle excluding an area displaying task information of a task currently being executed by the target vehicle.
5. The image scaling method according to claim 1, characterized in that: According to the ratio, reducing or enlarging the original image frame including the information to be displayed in the dialogue service flow interface comprises: According to the ratio, the original image frame including the information to be displayed in the dialog service flow interface is reduced or enlarged through the page root element of the system layer.
6. An image scaling device, characterized in that: The device comprises: A calculation module, configured to receive an instruction to reduce or enlarge the size of the image frame, and calculate a ratio of a height of the image frame adjusted as indicated by the instruction to a height of a display screen of a target vehicle; An operation module is used to reduce or enlarge the original image frame including information that needs to be displayed in the dialogue service flow interface according to the ratio, obtain a target image frame including information that needs to be displayed in the dialogue service flow interface, and display the target image frame in the dialogue service flow interface.
7. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the image scaling method according to any one of claims 1 to 5 by executing the computer instructions.
8. A vehicle, characterized in that: The vehicle includes a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the image scaling method according to any one of claims 1 to 5 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the image scaling method according to any one of claims 1 to 5.
10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the image scaling method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Display method and device for map and vehicle-mounted system
CN103137008A
Dynamic display method of voice interaction window and voice interaction method and device with telescopic interaction window
CN109669754A
Vehicle navigation display method, device and equipment and storage medium
CN116954546A
Split-screen display method and device and storage medium
CN117369676A
Element processing method and device, terminal, medium and program product
CN117631926A
Cited By
Image scaling method and apparatus, and vehicle, computer device, readable storage medium and computer program product
WO2026103378A1