CN115456878A - Picture processing method, system, device and storage medium - Google Patents

Picture processing method, system, device and storage medium Download PDF

Info

Publication number
CN115456878A
CN115456878A CN202211128645.4A CN202211128645A CN115456878A CN 115456878 A CN115456878 A CN 115456878A CN 202211128645 A CN202211128645 A CN 202211128645A CN 115456878 A CN115456878 A CN 115456878A
Authority
CN
China
Prior art keywords
screen
size
picture
pixels
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211128645.4A
Other languages
Chinese (zh)
Inventor
赵明喜
钱哲弘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yinniu Microelectronics Wuxi Co ltd
Original Assignee
Yinniu Microelectronics Wuxi Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yinniu Microelectronics Wuxi Co ltd filed Critical Yinniu Microelectronics Wuxi Co ltd
Priority to CN202211128645.4A priority Critical patent/CN115456878A/en
Publication of CN115456878A publication Critical patent/CN115456878A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4023Decimation- or insertion-based scaling, e.g. pixel or line decimation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • G06Q30/0643Graphical representation of items or shoppers

Abstract

The embodiment of the disclosure provides a picture processing method, a system, a device and a storage medium, wherein a size value corresponding to each pixel is calculated by acquiring the number of pixels of a screen and the screen size along at least one size direction, the number of target pixels in the screen to be occupied by the real size of a target object is estimated according to the size value, and a first picture is zoomed based on the number of the target pixels in the size direction to obtain a second picture for displaying. With the adoption of the scheme of the embodiment of the disclosure, the picture size of the second picture is close to the real size of the target object or consistent with the real size of the target object. According to the scheme of the embodiment, the picture of the target object close to the real size can be displayed on the screen according to the actual physical size of the screen.

Description

Picture processing method, system, device and storage medium
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method, a system, an apparatus, and a storage medium for processing an image.
Background
Pictures exist in all aspects of people's life as the most common media, and people can visually and intuitively obtain various information in the pictures. A picture is a flat medium composed of graphics, images, and the like, and can be displayed via a screen.
The picture is displayed on the screen so that the picture can be seen by the naked eye by virtue of the strength of the pixels. In brief, each pixel is composed of three colors, red, green, and blue, which are densely arranged on a screen, and represents any picture by different color values. The process of displaying the picture can be roughly described as converting the image into a series of pixel point arrays and then printing the pixel points on a screen, and the process of converting the image into the pixel points can be also called rasterization, namely, the description of the vector point-line plane is changed into the description of the pixels.
In the related art, the size of the object picture finally displayed on the screen is enlarged or reduced compared with the actual size of the object, and therefore, how to reduce the actual size of the object displayed on the screen is a subject of consideration in the industry.
Invention message
In view of the above disadvantages of the related art, the present disclosure is to provide a method, a system, a device and a storage medium for processing pictures, so as to solve the technical problem that the real size of a displayed object cannot be reduced on a screen in the related art.
A first aspect of the present disclosure provides a method for processing an image, including:
acquiring the number of pixels of a screen and the screen size along at least one size direction, and calculating a size value corresponding to each pixel according to the screen size and the number of the pixels of the screen;
acquiring the size of a target object corresponding to the size direction, and estimating the number of target pixels in a screen to be occupied by the size of the object according to the size value;
and acquiring a first picture of the target object, and zooming the first picture based on the number of target pixels in the size direction to obtain a second picture and displaying the second picture.
In some embodiments, the first picture is a forward projected picture or a three-dimensional image.
In some embodiments, obtaining a first picture of a target object comprises:
receiving a first input of a user;
in response to a first input by a user, pixel value information of a first picture is extracted, and the first picture is displayed on a screen based on the pixel value information.
In some embodiments, in response to a first input by a user, extracting pixel value information of a first picture and displaying on a screen based on the pixel value information, comprises:
and responding to a first input of a user, acquiring an HTML file containing pixel value information of the first picture, performing page rendering by using the HTML file to display a page on a screen, and displaying the first picture obtained based on the pixel value information on the page.
In some embodiments, the second picture is displayed full screen on the screen.
In some embodiments, obtaining the number of pixels of the screen and the size of the screen in at least one dimension direction comprises:
and under the condition that a second input of the user is received, acquiring the pixel number of the screen and the screen size along at least one size direction in response to the second input of the user.
In some embodiments, acquiring the number of pixels of the screen and the screen size in the at least one dimension direction in response to a second input by the user includes:
and responding to a second input of the user, obtaining the action attribute of the second input, and acquiring the picture size of the first picture along at least one target direction and the pixel number of the screen under the condition that the action attribute is matched with the target action attribute.
In some embodiments, the acquiring the number of pixels of the screen and the screen size in the at least one size direction in response to the second input of the user includes:
and responding to a second input of the user, obtaining the position of the second input on the screen, and acquiring the pixel number of the screen and the screen size along at least one size direction under the condition that the position corresponds to the target icon.
An embodiment of the present disclosure further provides a picture processing system, which includes:
the size acquisition module is used for acquiring the number of pixels of a screen and the screen size along at least one size direction and calculating the size value corresponding to each pixel according to the screen size and the number of the pixels of the screen;
the pixel estimation module is used for acquiring the real object size of the target object corresponding to the size direction and estimating the number of target pixels in a screen to be occupied by the real object size according to the size value;
and the zooming module is used for acquiring a first picture of the target object, zooming the first picture based on the number of target pixels in the size direction, and acquiring and displaying a second picture.
A fifth aspect of the present disclosure provides a computer apparatus comprising: a communicator, a memory, and a processor; the communicator is used for communicating with the outside; the memory stores program instructions; the processor is configured to execute the program instructions to perform the picture processing method according to any one of the first aspect.
A fourth aspect of the present disclosure provides a computer-readable storage medium storing program instructions that are executed to perform the picture processing method according to any one of the first aspects.
As described above, in the embodiments of the present disclosure, a method, a system, an apparatus, and a storage medium are provided, where a size value corresponding to each pixel is calculated by obtaining the number of pixels of a screen and a screen size along at least one size direction, the number of target pixels in the screen to be occupied by a real size of a target object is estimated according to the size value, and a scaling process is performed on a first picture based on the number of target pixels in the size direction, so as to obtain a second picture, and the second picture is displayed. With the adoption of the scheme of the embodiment of the disclosure, the picture size of the second picture is close to the real size of the target object or consistent with the real size of the target object. The scheme of the embodiment can display the picture of the target object close to the real size on the screen according to the actual physical size of the screen.
Drawings
Fig. 1 shows a schematic flow chart of a picture processing method according to an embodiment of the disclosure.
Fig. 2 shows a second flowchart of the image processing method according to the embodiment of the disclosure.
Fig. 3 shows a third flowchart of the picture processing method according to the embodiment of the disclosure.
Fig. 4 shows a fourth flowchart of the image processing method according to the embodiment of the disclosure.
FIG. 5 shows a block diagram of a picture processing device according to an embodiment of the present disclosure.
FIG. 6 shows a schematic diagram of a computer device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure are described below with reference to specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure. The disclosure may be carried into practice or applied to various other specific embodiments, and various modifications and changes may be made in the details of the disclosure from the different points of view and application without departing from the spirit thereof. It is to be noted that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings so that those skilled in the art to which the present disclosure pertains can easily carry out the present disclosure. The present disclosure may be embodied in many different forms and is not limited to the embodiments described herein.
Reference in the representation of the present disclosure to the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. Furthermore, the particular features, structures, materials, or characteristics shown may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of different embodiments or examples presented in this disclosure can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the expressions of the present disclosure, "a plurality" means two or more unless explicitly defined otherwise.
In order to clearly explain the present disclosure, components that are not related to the description are omitted, and the same reference numerals are given to the same or similar components throughout the specification.
Throughout the specification, when a device is referred to as being "connected" to another device, this includes not only the case of being "directly connected" but also the case of being "indirectly connected" with another element interposed therebetween. In addition, when a device "includes" a certain constituent element, unless otherwise specified, it means that the other constituent element is not excluded, but may be included.
Although the terms first, second, etc. may be used herein to describe various elements in some instances, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, the first interface and the second interface are represented. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, modules, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, modules, items, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "a, B or C" or "a, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations performed in some manner are inherently mutually exclusive.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used herein, the singular forms "a", "an" and "the" include plural forms as long as the words do not expressly indicate a contrary meaning. The use of "including" in the specification is meant to specify the presence of stated features, regions, integers, steps, elements, and/or components, but does not preclude the presence or addition of other features, regions, integers, steps, elements, components, and/or groups thereof.
Terms representing relative spatial terms such as "lower", "upper", and the like may be used to more readily describe one element's relationship to another element as illustrated in the figures. Such terminology is intended to include not only the meaning indicated in the drawings, but also other meanings or executions of the devices in use. For example, if the device in the figures is turned over, elements described as "below" other elements would then be oriented "above" the other elements. Thus, the exemplary terms "under" and "beneath" all include above and below. The device may be rotated 90 or other angles and the terminology representing relative space is to be interpreted accordingly.
Although not defined differently, including technical and scientific terms used herein, all have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terms defined in commonly used dictionaries are to be additionally interpreted as having meanings consistent with technical documents related to and the message prompted at present, and must not be excessively interpreted as having ideal or very formulaic meanings unless defined otherwise.
Fig. 1 shows a flowchart of a picture processing method provided by an embodiment of the present disclosure, and an execution subject of the method is a picture processing system. As shown in fig. 1, the picture processing method includes the following steps:
step 110: acquiring the number of pixels of a screen and the screen size along at least one size direction, and calculating a size value corresponding to each pixel according to the screen size and the number of the pixels of the screen;
step 120: acquiring the size of a target object corresponding to the size direction, and estimating the number of target pixels in a screen to be occupied by the size of the object according to the size value;
step 130: and acquiring a first picture of the target object, and zooming the first picture based on the number of target pixels in the size direction to obtain a second picture and displaying the second picture.
The method is applicable to screens with any size and resolution and equipment with the screens, the size value of each pixel displayed in a specific size direction of a current screen is calculated, the number of target pixels of the screen required to be occupied by a specific target object in the corresponding size direction is estimated for the specific target object, and therefore a first picture of the target object can be zoomed along the size direction until the first picture occupies the size of the number of the target pixels in the size direction, and a second picture is obtained, wherein the picture size of the second picture is close to the real size of the target object or is consistent with the real size of the target object. Therefore, the embodiment of the disclosure can realize the display of the real size of the target object, such as a specific object, on the screen.
In the disclosed embodiment, the general screen is square, and in this case, the screen can be set to have two dimensions, namely length and width. In this case, the real-size of the target object can be characterized based on two dimensions of the screen length and width, such as the length and width of the target object. Therefore, when zooming is carried out, the first picture is zoomed integrally along two size directions of length and width respectively.
In the embodiment of the present disclosure, the first picture may be a front projection picture, and may also be a three-dimensional 3D image, which is not limited herein.
In the embodiment of the present disclosure, the scaling of the first size may be the same as the overall scaling, or may not be the same. This mainly takes into account that the current first picture itself is not necessarily acquired in the same scale as the target object, or the first picture is a distorted picture.
Wherein the zooming may be a reduction or an enlargement, which is determined according to a size between a picture size of the current first picture and a real size of the target object. And if the size of the picture is smaller than the size of the real object, amplifying the first picture, and otherwise, reducing the first picture.
In the embodiment of the present disclosure, as shown in fig. 2, the screen system obtains parameters such as a screen resolution, a screen physical size, a screen aspect ratio and the like based on an Application Programming Interface API (Application Programming Interface), and calculates a physical size corresponding to each pixel of the screen according to the parameters. Wherein the number of pixels of the screen is available based on the screen resolution.
For example, the current physical length of the screen is Ls (e.g., 67.5cm in length of 27 inches), and the number of pixels of the screen is Lr (e.g., 1920), so that the corresponding physical size Ps = Ls/Lr of each pixel of the current screen is obtained.
Next, the number Px = L/Ps of actual pixels required of the object on the screen is estimated using the physical size (e.g., length L) of the object corresponding to each pixel.
And finally, acquiring a picture to be displayed, zooming the picture to the corresponding pixel number based on the actual pixel number Px, and displaying the picture on a screen, thereby ensuring that the actual sizes of the picture and the object at the moment are consistent.
For the width w or the height h of the target object, refer to the method shown in fig. 2, and perform scaling processing along the corresponding dimension direction, which is not described herein again.
Fig. 3 is a flowchart of an image processing method according to an embodiment of the disclosure, and as shown in fig. 3, the method includes the following steps:
step 310: receiving a first input of a user;
step 320: in response to a first input of a user, extracting pixel value information of a first picture, and displaying the first picture on a screen based on the pixel value information;
step 330: acquiring the number of pixels of a screen and the screen size along at least one size direction, and calculating the size value corresponding to each pixel according to the screen size and the number of the pixels of the screen;
step 340: acquiring the real object size of a target object corresponding to the size direction, and estimating the number of target pixels in a screen to be occupied by the real object size according to the size value;
step 350: and in the size direction, zooming the first picture based on the target pixel number to obtain a second picture and displaying the second picture.
In the present embodiment, the timing sequence between steps 310 and 320 and steps 330 and 340 is not limited by the present embodiment, and steps 310 and 320 may be after step 340.
In the application scenario of this embodiment, in a case that the first picture is displayed on the current screen, the currently displayed first picture may be scaled based on the real-object size of the target object, so that the solution of this embodiment has instantaneity and reliability.
In the embodiment of the present disclosure, the current screen may not display the first picture, and the first picture may be extracted from a local memory or a remote or cloud server.
In an optional embodiment of the present disclosure, the current screen may display a first picture, and then acquiring the first picture of the target object refers to directly extracting the displayed first picture.
In the embodiment of the present disclosure, in response to a first input by a user, extracting pixel value information of a first picture, and displaying on a screen based on the pixel value information includes:
and responding to a first input of a user, acquiring an HTML file containing pixel value information of the first picture, rendering a page by using the HTML file to display the page on a screen, and displaying the first picture obtained based on the pixel value information on the page.
In this embodiment, the first picture belongs to an element in the page. Therefore, the embodiment can be applied to zoom and display the independently displayed picture based on the real size, and also can zoom and display the picture in the page based on the real size.
For example, in an e-commerce shopping platform, a user operates to enter a commodity display page, and a currently displayed commodity picture can be automatically zoomed and displayed on the basis of the real size of a commodity provided by a merchant, so that the user can generate real perception on the commodity, and the interaction experience of the user on the e-commerce shopping platform is improved.
In the embodiment of the present disclosure, the second picture is displayed on the full screen. That is, it is the user's way out of the current page and over the page presentation.
In the embodiment of the present disclosure, the second picture may not be displayed in a full screen.
In the embodiment of the present disclosure, the first input may be an operation on a corresponding element in the current screen, such as a touch or an input using an external device.
Fig. 4 is a flowchart of an image processing method according to an embodiment of the present disclosure, and as shown in fig. 4, the method includes the following steps:
step 410: receiving a second input of the user;
step 420: responding to a second input of a user, and acquiring the number of pixels of a screen and the size of the screen along at least one size direction;
step 430: acquiring the number of pixels of a screen and the screen size along at least one size direction, and calculating a size value corresponding to each pixel according to the screen size and the number of the pixels of the screen;
step 440: acquiring the real object size of a target object corresponding to the size direction, and estimating the number of target pixels in a screen to be occupied by the real object size according to the size value;
step 450: and acquiring a first picture of the target object, and zooming the first picture based on the number of target pixels in the size direction to obtain a second picture and displaying the second picture.
According to the method and the device, the zoom operation of the current picture is triggered and executed based on the interaction between the user and the screen, and the user experience of the embodiment is improved through the user interaction function of the embodiment.
For example, in a shopping scene, a first picture of a commodity is displayed on a current screen, and if a user needs to feel the physical size of the commodity, a second picture consistent with the physical size of a target object can be triggered and displayed through a second input.
In one embodiment of the present disclosure, acquiring the number of pixels of the screen and the screen size in at least one size direction in response to a second input by the user includes:
and responding to a second input of the user, obtaining the action attribute of the second input, and acquiring the picture size of the first picture along at least one target direction and the pixel number of the screen under the condition that the action attribute is matched with the target action attribute.
In this case, the screen system may determine whether to trigger a subsequent zoom process step by the action attribute. At this time, the second input may be a double click, a single click, or other action form.
In another embodiment of the present disclosure, acquiring the number of pixels of the screen and the size of the screen in at least one dimension direction in response to a second input by the user includes:
and responding to a second input of the user, obtaining the position of the second input on the screen, and acquiring the pixel number of the screen and the screen size along at least one size direction under the condition that the position corresponds to the target icon.
In this embodiment, a target icon is displayed on the current interface, and when it is detected that the target icon is triggered, the following zooming processing step is executed.
Fig. 5 is a block diagram of a picture processing system according to an embodiment of the present disclosure. It should be noted that, the principle of the image processing system may refer to the image processing method in the previous embodiment, and therefore, the same technical content is not repeated herein.
The picture processing system 500 may include:
a size obtaining module 510, configured to obtain the number of pixels of a screen and a screen size along at least one size direction, and calculate a size value corresponding to each pixel according to the screen size and the number of pixels of the screen;
the pixel estimation module 520 is used for acquiring the real object size of the target object corresponding to the size direction, and estimating the number of target pixels in the screen to be occupied by the real object size according to the size value;
and the zooming module 530 is used for acquiring a first picture of the target object, zooming the first picture based on the number of the target pixels in the size direction, and acquiring and displaying a second picture.
Optionally, the scaling module 530 is specifically configured to:
receiving a first input of a user;
in response to a first input by a user, pixel value information of a first picture is extracted, and the first picture is displayed on a screen based on the pixel value information.
Optionally, the scaling module 530 is further specifically configured to:
and responding to a first input of a user, acquiring an HTML file containing pixel value information of the first picture, performing page rendering by using the HTML file to display a page on a screen, and displaying the first picture obtained based on the pixel value information on the page.
Optionally, the size obtaining module 510 is specifically configured to:
and under the condition that a second input of the user is received, acquiring the pixel number of the screen and the screen size along at least one size direction in response to the second input of the user.
Optionally, the size obtaining module 510 is specifically configured to:
and responding to a second input of the user, obtaining the action attribute of the second input, and acquiring the pixel number of the screen and the screen size along at least one size direction under the condition that the action attribute is matched with the target action attribute.
Optionally, the size obtaining module 510 is specifically configured to:
and responding to a second input of the user, obtaining the position of the second input on the screen, and acquiring the pixel number of the screen and the screen size along at least one size direction under the condition that the position corresponds to the target icon.
It should be noted that, all or part of the functional blocks in the embodiment of fig. 5 may be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of program instruction products. The program instruction product includes one or more program instructions. The procedures or functions according to the present disclosure are all or partially generated when program instruction instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The program instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
Moreover, the system disclosed in the embodiment of fig. 5 can be implemented by other module division modes. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of modules is merely a logical division, and other divisions may be implemented in practice, for example, a plurality of modules or modules may be combined or may be dynamic to another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in an electrical or other form.
In addition, each functional module and sub-module in the embodiment of fig. 5 may be dynamically in one processing unit, or each module may exist alone physically, or two or more modules may be dynamically in one unit. The dynamic component can be implemented in the form of hardware, or in the form of a software functional module. The dynamic components described above, if implemented in the form of software functional modules and executed as separate products for sale or use, may also be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
A computer-readable storage medium may also be provided in embodiments of the present disclosure, which stores program instructions that, when executed, perform the method steps of the previous embodiments of fig. 1-4.
The method steps in the above-described embodiments are implemented as software or computer code that can be stored in a recording medium such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or as computer code downloaded through a network, originally stored in a remote recording medium or a non-transitory machine-readable medium, and to be stored in a local recording medium, so that the method represented herein can be stored as such software processes on a recording medium using a general purpose computer, a dedicated processor, or programmable or dedicated hardware such as an ASIC or FPGA.
It should be noted that the flowchart or method representations of the flowchart representations of the above-described embodiments of the present disclosure may be understood as representing modules, segments or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved.
For example, the order of the various steps in the embodiments of fig. 1-4 may be varied in particular scenarios and is not limited to the above-described representation.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the disclosure.
In some embodiments, a computer device is used to load program instructions implementing a picture processing method. The computer device may be embodied as, for example, a server, desktop, laptop, mobile terminal, etc., and may be used by an implementer who stores and/or executes such program instructions for commercial purposes such as development, testing, etc.
The computer device 600 illustrated in fig. 6 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present disclosure.
As shown in fig. 6, computer apparatus 600 is embodied in the form of a general purpose computing device. The components of computer device 600 may include, but are not limited to: the at least one processing unit 610, the at least one memory unit 620, and a bus 630 that couples various system components including the memory unit 620 and the processing unit 610.
The storage unit stores program codes, which can be executed by the processing unit 610, so that the computer apparatus is configured to implement the method steps described in the above embodiments (for example, fig. 3) of the present disclosure.
In some embodiments, the storage unit 620 may include a volatile storage unit, such as a random access memory unit (RAM) 621 and/or a cache memory unit 622, and may further include a read only memory unit (ROM) 623.
In some embodiments, the storage unit 620 may also include a program/utility 624 having a set (at least one) of program modules 625, such program modules 625 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
In some embodiments, bus 630 may include a data bus, an address bus, and a control bus.
In some embodiments, computer apparatus 600 may also communicate with one or more external devices 60 (e.g., keyboard, pointing device, bluetooth device, etc.), which may be through input/output (I/O) interface 650. Optionally, the computer arrangement 600 further comprises a display unit 640 connected to the input/output (I/O) interface 650 for display. Moreover, computer device 600 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 660. As shown, network adapter 660 communicates with the other modules of computer device 600 over bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
In summary, the embodiments of the present disclosure provide a method, a system, an apparatus, and a storage medium for processing an image, where a size value corresponding to each pixel is calculated by obtaining the number of pixels of a screen and a screen size along at least one size direction, the number of target pixels in the screen to be occupied by a real size of a target object is estimated according to the size value, and a scaling process is performed on a first image based on the number of target pixels in the size direction, so as to obtain a second image, and the second image is displayed. With the adoption of the scheme of the embodiment of the disclosure, the picture size of the second picture is close to the real size of the target object or consistent with the real size of the target object. The scheme of the embodiment can display the picture of the target object close to the real size on the screen according to the actual physical size of the screen.
The foregoing embodiments are merely illustrative of the principles of the present disclosure and their efficacy, and are not to be construed as limiting the disclosure. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present disclosure. Accordingly, it is intended that all equivalent modifications or changes be made by those skilled in the art without departing from the spirit and technical spirit of the present disclosure and be covered by the claims of the present disclosure.

Claims (11)

1. An image processing method, comprising:
acquiring the number of pixels of a screen and the screen size along at least one size direction, and calculating a size value corresponding to each pixel according to the screen size and the number of the pixels of the screen;
acquiring the real object size of the target object corresponding to the size direction, and estimating the number of target pixels in a screen to be occupied by the real object size according to the size value;
and acquiring a first picture of the target object, and zooming the first picture based on the number of the target pixels in the size direction to obtain a second picture and displaying the second picture.
2. The method of claim 1, wherein the first picture is a forward projection picture or a three-dimensional image.
3. The method according to claim 1, wherein obtaining the first picture of the target object comprises:
receiving a first input of a user;
in response to a first input by the user, extracting pixel value information of the first picture, and displaying the first picture on the screen based on the pixel value information.
4. The picture processing method according to claim 3, wherein extracting pixel value information of the first picture in response to a first input by the user and displaying on the screen based on the pixel value information comprises:
and responding to the first input of the user, acquiring an HTML file containing the pixel value information of the first picture, performing page rendering by using the HTML file to display a page on the screen, and displaying the first picture obtained based on the pixel value information on the page.
5. The picture processing method according to claim 4, wherein the second picture is displayed full screen on the screen.
6. The method of claim 1, wherein the acquiring the number of pixels of the screen and the size of the screen along at least one dimension direction comprises:
and under the condition that a second input of the user is received, acquiring the pixel number of the screen and the screen size along at least one size direction in response to the second input of the user.
7. The method of claim 6, wherein the obtaining the number of pixels of the screen and the screen size along at least one dimension direction in response to the second input from the user comprises:
and responding to a second input of the user, obtaining the action attribute of the second input, and under the condition that the action attribute is matched with the target action attribute, obtaining the pixel number of the screen and the screen size along at least one size direction.
8. The method according to claim 6, wherein said obtaining the number of pixels of the screen and the size of the screen in at least one dimension direction in response to the second input of the user comprises:
and responding to a second input of the user, obtaining the position of the second input on the screen, and obtaining the pixel number of the screen and the screen size along at least one size direction under the condition that the position corresponds to the target icon.
9. A picture processing system, comprising:
the size acquisition module is used for acquiring the number of pixels of a screen and the screen size along at least one size direction, and calculating a size value corresponding to each pixel according to the screen size and the number of the pixels of the screen;
the pixel estimation module is used for acquiring the real object size of the target object corresponding to the size direction and estimating the number of target pixels in a screen to be occupied by the real object size according to the size value;
and the zooming module is used for acquiring a first picture of the target object, zooming the first picture based on the number of the target pixels in the size direction to obtain a second picture and displaying the second picture.
10. A computer apparatus, comprising: a communicator, a memory, and a processor; the communicator is used for communicating with the outside; the memory stores program instructions; the processor is configured to execute the program instructions to perform the picture processing method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that program instructions are stored, which are executed to perform the picture processing method according to any one of claims 1 to 8.
CN202211128645.4A 2022-09-16 2022-09-16 Picture processing method, system, device and storage medium Pending CN115456878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211128645.4A CN115456878A (en) 2022-09-16 2022-09-16 Picture processing method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211128645.4A CN115456878A (en) 2022-09-16 2022-09-16 Picture processing method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN115456878A true CN115456878A (en) 2022-12-09

Family

ID=84304629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211128645.4A Pending CN115456878A (en) 2022-09-16 2022-09-16 Picture processing method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN115456878A (en)

Similar Documents

Publication Publication Date Title
CN108363535B (en) Picture display method and device, storage medium, processor and terminal
CN109375983B (en) Method for automatically adjusting input method window in terminal
US20220328019A1 (en) Display terminal adjustment method and display terminal
CN110569013B (en) Image display method and device based on display screen
JP4742051B2 (en) Spatial and temporal motion blur effect generation method
KR20080040614A (en) Method of moving/enlarging/reducing a virtual screen by movement of display device and hand helded information equipment using the same
CN110599564A (en) Image display method and device, computer equipment and storage medium
CN108037904B (en) Visual data pushing method and system
CN108694733B (en) MCU-based display system and display method for overlaying dynamic images on background image
CN103631551A (en) Local display method for remote desktop in medical consultation system
WO2018113220A1 (en) Method and apparatus for displaying large-screen content on small screen
US10403040B2 (en) Vector graphics rendering techniques
KR20160032936A (en) Apparatus and method for decompressing rendering data and recording medium thereof
CN107491289B (en) Window rendering method and device
CN108399058B (en) Signal display control method and device
CN114445525A (en) Virtual object display method and device and electronic equipment
CN115456878A (en) Picture processing method, system, device and storage medium
CN114549303B (en) Image display method, image processing method, image display device, image processing apparatus, image display device, image processing program, and storage medium
WO2023050744A1 (en) Map editing method, system, apparatus, computer device, program product, and storage medium
CN109859328B (en) Scene switching method, device, equipment and medium
CN114020396A (en) Display method of application program and data generation method of application program
CN112799620B (en) Big data visualization system
US11393214B2 (en) Apparatus and method for congestion visualization
CN108920117B (en) Cross-terminal multi-screen display method, client and system
JP5862223B2 (en) Parts catalog creation device, program, and parts catalog creation method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination