Precise picture display positioning method and system, storage medium and program product

By comprehensively considering the device and picture parameters, and combining the gravity sensor to determine the status of the photo frame, the precise positioning of the picture in the digital photo frame is achieved, which solves the problem of inconsistent display effects between mobile phones and digital photo frames, and improves the accuracy and efficiency of display positioning.

CN118708278APending Publication Date: 2024-09-27SHENZHEN EFERCRO ELECTRONIC TECHNOLOGY CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410863918.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-29
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

After users edit pictures on their mobile phones, it is difficult to accurately control the display position of the picture in the digital photo frame, resulting in a display effect that does not meet expectations and reducing the accuracy and efficiency of picture display positioning.

Method used

By comprehensively considering the parameters of the original device, original picture and digital photo frame, a preset calculation function is designed to calculate the size and center coordinates of the output picture, and the gravity sensor is used to determine the status of the digital photo frame to achieve precise positioning of pictures between different devices and across devices. Seamlessly.

Benefits of technology

The display positioning accuracy and efficiency of pictures in the digital photo frame are improved, ensuring that the effect users see on the digital photo frame is highly consistent with the effect previewed on the original device, achieving seamless connection across devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708278A
    Figure CN118708278A
Patent Text Reader

Abstract

The invention discloses a precise picture display positioning method and system, a storage medium and a program product, and the method comprises the steps: determining an original equipment parameter, an original picture parameter selected by a user, and a digital photo frame parameter; receiving original display parameters set by a user on the original equipment; when it is determined that the digital photo frame is in the transverse state, the original equipment parameters, the original display parameters and the digital photo frame parameters are input into a preset calculation function, and output picture parameters are obtained; and sending the output picture parameter to the digital photo frame, so that the digital photo frame displays the output picture according to the output picture parameter. The display effect in the digital photo frame is accurately adjusted according to the changed parameters of the picture and the parameters of the digital photo frame, and the accuracy and efficiency of picture display positioning in the digital photo frame are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing, and in particular, relates to a method, system, storage medium and program product for accurate image display positioning. Background Art

[0002] In the modern information society, it has become a basic function for users to send pictures to digital photo frames through mobile terminals such as mobile phones. The conventional operation process usually includes steps such as selecting pictures, selecting photo frames, editing picture descriptions, and roughly editing the display position of pictures.

[0003] When users edit the original picture through the mobile phone APP, they need to accurately control the display position of the picture in the photo frame, which requires adjusting the size, resolution, etc. of the original picture. After adjustment on the mobile phone, it is sent to the digital photo frame for display.

[0004] However, since it is difficult to accurately control the display position of the image in the photo frame during the sending process, it is difficult to accurately adjust the original image. The original image adjusted on the mobile phone may not achieve the expected effect when displayed in the digital photo frame. In this case, it is necessary to adjust it again on the mobile phone until the image displayed on the digital photo frame meets the user's needs, which reduces the accuracy and efficiency of image display positioning. Summary of the invention

[0005] The present application provides a method, system, storage medium and program product for accurately adjusting the display effect in a digital photo frame according to the changed parameters of the picture and the parameters of the digital photo frame, thereby improving the accuracy and efficiency of the picture display positioning in the digital photo frame.

[0006] In a first aspect, the present application provides a method for accurate image display positioning, which determines original device parameters, original image parameters selected by a user, and digital photo frame parameters, wherein the original image parameters include an initial image size of the original image, and the digital photo frame parameters include a digital display size of the digital photo frame; Receive original display parameters set by the user on the original device, where the original display parameters include original display center coordinates of the original device and a modified image size corresponding to the modified image after the setting; When the digital photo frame is determined to be in a horizontal state, the original device parameters, the original display parameters and the digital photo frame parameters are input into a preset calculation function to obtain output image parameters, the output image parameters including an output image size and an output center coordinate corresponding to the output image displayed in the digital photo frame; The output picture parameters are sent to the digital photo frame, so that the digital photo frame displays the output picture according to the output picture parameters.

[0007] By adopting the above technical solution, firstly, the method comprehensively considers the parameters of the original device, the original picture and the digital photo frame, including the size of the original device, the initial size of the original picture, the display size of the digital photo frame, etc., and provides a complete data basis for subsequent precise positioning. Secondly, the method introduces the original display parameters set by the user, including the original display center coordinates and the modified picture size, so that the user can flexibly adjust the display effect of the picture on the original device according to his or her viewing preferences. Thirdly, the method designs a preset calculation function for the horizontal state of the digital photo frame, inputs the various parameters collected previously, and obtains the key parameters of the final output picture through function calculation, including the size and center coordinates of the output picture. Finally, the digital photo frame accurately positions and displays the picture according to the received output picture parameters, ensuring the display consistency of the picture between different devices, so that the picture effect seen by the user on the digital photo frame is highly consistent with the effect previewed on the original device, achieving seamless connection across devices and scenes. The display effect in the digital photo frame is accurately adjusted according to the changed parameters of the picture and the parameters of the digital photo frame, which improves the accuracy and efficiency of the picture display positioning in the digital photo frame.

[0008] In combination with some embodiments of the first aspect, in some embodiments, when determining that the digital photo frame is in a horizontal state, the method specifically includes: Receiving three-axis acceleration values ​​sent by a gravity sensor installed on the digital photo frame, the three-axis acceleration values ​​including a system axis acceleration value, a y-axis acceleration value, and a z-axis acceleration value; Calculate the differences between the system axis acceleration value, the y-axis acceleration value, and the z-axis acceleration value and the preset acceleration value to obtain a first difference value, a second difference value, and a third difference value; When it is determined that the first difference is less than a preset threshold, determining that the digital photo frame is in a horizontal state; When it is determined that the second difference is less than a preset threshold, determining that the digital photo frame is in a vertical state; When it is determined that the third difference is less than the preset threshold, it is determined that the digital photo frame is in a horizontal state.

[0009] By adopting the above technical solution, the acceleration values ​​of the digital photo frame on the three coordinate axes are obtained by using the gravity sensor installed on the digital photo frame, and then the differences between the three acceleration values ​​and the preset acceleration values ​​are calculated respectively, and the three states of the digital photo frame are determined according to the size of the differences: horizontal, vertical and horizontal. The gravity sensor can reflect the spatial posture of the digital photo frame in real time and accurately, providing a reliable data source for state judgment; secondly, by setting the threshold of the acceleration difference, the slight jitter and interference caused by the handheld device can be effectively filtered out, thereby improving the stability of state judgment; furthermore, the method can identify multiple states of the digital photo frame, especially distinguishing between horizontal and vertical, providing a more fine-grained reference basis for the accurate display of subsequent pictures.

[0010] In conjunction with some embodiments of the first aspect, in some embodiments, the preset calculation function is: In the formula, W is the width of the output image, H is the height of the output image, CenterX is the horizontal coordinate of the output center coordinate, CenterY is the vertical coordinate of the output center coordinate, fw is the width of the digital photo frame, fh is the height of the digital photo frame, sw is the width of the modified image, sh is the height of the modified image, pw is the width of the original device, ph is the height of the original device, ow is the width of the original image, oh is the height of the original image, spx is the horizontal coordinate of the original display center coordinate, spy is the vertical coordinate of the original display center coordinate; W and H constitute the output image size, CenterX and CenterY constitute the output center coordinate, fw and fh constitute the digital display size, sw and sh constitute the modified image size, pw and ph constitute the original device parameters, ow and oh constitute the initial image size, spx and spy constitute the original display center coordinate.

[0011] By adopting the above technical solution, the function calculates the width, height, horizontal center coordinates and vertical center coordinates of the output image through four formulas, covering the two core elements of the position and size of the image display. The parameters of multiple dimensions such as the original device, the original image, the modified image, and the digital photo frame are comprehensively considered, and they are organically combined through mathematical operations such as multiplication and division to generate output parameters that are highly matched with the actual display environment of the digital photo frame. Specifically, the function has the following advantages: First, the formula form is concise and clear, and the parameters included are comprehensive, which is convenient for engineering implementation and later maintenance; second, by introducing the size parameters of the modified image, the function can dynamically adapt to the user's cropping and scaling operations on the image to ensure that the output image is consistent with the user's expectations; third, the calculation of the horizontal and vertical coordinates fully considers the size ratio of the original image, ensuring that the output image is displayed in the center of the digital photo frame without stretching deformation or partial content missing. Finally, the parameters output by the function are highly accurate, which can achieve pixel-level accurate mapping of the image on the digital photo frame, so that every detail of the image display can be perfectly restored.

[0012] In combination with some embodiments of the first aspect, in some embodiments, when it is determined that the first difference is less than a preset threshold, determining that the digital photo frame is in a horizontal state specifically includes: When it is determined that the first difference is less than a preset threshold, sending a camera permission opening request message to the digital device; In response to a user's operation of enabling camera authority, receiving a live video captured by a camera of a digital device; When it is determined according to the live video that the central axis of the user's face is in a vertical state, the digital photo frame is determined to be in a horizontal state; When it is determined according to the live video that the central axis of the user's face is in a horizontal state, the digital photo frame is determined to be in a vertical state.

[0013] By adopting the above technical solution, when the gravity sensor detects that the digital photo frame may be in a horizontal state, the method will send a request to the digital device to open the camera permission. After the user authorizes, the real-time video image of the user's face is obtained through the camera, and then the image is analyzed to identify the direction of the central axis of the user's face. If the central axis is in a vertical state, the digital photo frame is determined to be horizontal; if the central axis is in a horizontal state, the digital photo frame is determined to be vertical. The user may lie on his side holding the digital photo frame, and the digital photo frame is in a horizontal state, but the user still watches the digital photo frame in a vertical state. This judgment method can effectively avoid system misjudgment and improve the accuracy of the image display positioning in the digital photo frame.

[0014] In combination with some embodiments of the first aspect, in some embodiments, after sending the output picture parameters to the digital photo frame so that the digital photo frame displays the output picture according to the output picture parameters, the method further includes: Generate a preview control and display the preview control on the original device; In response to the user clicking the preview control, the output image is displayed at a preset position of the digital photo frame, and when the original display parameters are modified, the modified output image is displayed at the preset position.

[0015] By adopting the above technical solution, when the digital photo frame displays the corresponding picture according to the received output picture parameters, the system will generate and display a preview control on the original device. The user can preview the display effect of the picture on the digital photo frame in real time by clicking the control. This preview mechanism provides users with an intuitive and convenient feedback channel. Users can quickly evaluate the display effect after modifying the parameters and further adjust the original display parameters as needed. The introduction of the preview control builds a tight human-computer interaction closed loop, making the debugging and optimization process of the picture display smoother and more efficient. In addition, the preview function also makes it possible to display and control pictures across devices. The user's operations on the original device can be mapped to the digital photo frame in real time, realizing seamless connection and synchronous presentation between devices.

[0016] In combination with some embodiments of the first aspect, in some embodiments, after sending the output picture parameters to the digital photo frame so that the digital photo frame displays the output picture according to the output picture parameters, the method further includes: Get the remaining power of the digital photo frame; When it is determined that the remaining power is less than the preset power, the display brightness of the digital photo frame is reduced.

[0017] By adopting the above technical solution, when the system detects that the remaining power of the digital photo frame is lower than a preset threshold, the overall display brightness of the device will be automatically lowered, thereby reducing screen power consumption and extending battery life.

[0018] In combination with some embodiments of the first aspect, in some embodiments, when it is determined that the remaining power is less than the preset power, after reducing the display brightness of the digital photo frame, the method further includes: Upon receiving brightness adjustment information sent by the original device, sending the output image to the original device; Receiving a selected output image sent by an original device, where the selected output image includes a selected display area divided by a user on the output image; The brightness of other areas in the selected output image except the selected display area is reduced to a preset brightness value to obtain a final output image; The final output image is sent to the digital photo frame, so that the digital photo frame displays the final output image.

[0019] By adopting the above technical solution, users can select a key display area of ​​the picture through the original device, and the system will keep the brightness of the area unchanged, while reducing the brightness of other areas to a lower level. This not only saves overall power consumption, but also highlights the core content of the picture, achieving a balance between energy saving and display quality.

[0020] In a second aspect, an embodiment of the present application provides a precise image display and positioning system, the system comprising: one or more processors and a memory; the memory is coupled to one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and one or more processors call the computer instructions to enable the system to execute the method described in the first aspect and any possible implementation method of the first aspect.

[0021] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a system, causes the system to execute the method described in the first aspect and any possible implementation of the first aspect.

[0022] In a fourth aspect, an embodiment of the present application provides a computer program product, characterized in that when the computer program product runs on a system, the system executes the method described in any possible implementation manner in the first aspect.

[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. The present application provides a method for accurate image display positioning. First, the method comprehensively considers the parameters of the original device, the original image and the digital photo frame, including the size of the original device, the initial size of the original image, the display size of the digital photo frame, etc., providing a complete data basis for subsequent accurate positioning. Secondly, the method introduces the original display parameters set by the user, including the original display center coordinates and the modified image size, so that the user can flexibly adjust the display effect of the image on the original device according to his or her viewing preferences. Thirdly, the method designs a preset calculation function for the horizontal state of the digital photo frame, inputs the various parameters collected previously, and obtains the key parameters of the final output image through function calculation, including the size and center coordinates of the output image. Finally, the digital photo frame accurately positions and displays the image according to the received output image parameters, ensuring the display consistency of the image between different devices, so that the image effect seen by the user on the digital photo frame is highly consistent with the effect previewed on the original device, achieving seamless connection across devices and scenes. The display effect in the digital photo frame is accurately adjusted according to the changed parameters of the image and the parameters of the digital photo frame, improving the accuracy and efficiency of the image display positioning in the digital photo frame.

[0024] 2. The present application provides a precise image display positioning method. The function uses four formulas to calculate the width, height, horizontal center coordinates and vertical center coordinates of the output image, covering the two core elements of the position and size of the image display. The parameters of multiple dimensions such as the original device, the original image, the modified image, and the digital photo frame are comprehensively considered, and they are organically combined through mathematical operations such as multiplication and division to generate output parameters that are highly matched with the actual display environment of the digital photo frame. Specifically, the function has the following advantages: First, the formula form is concise and clear, and the parameters included are comprehensive, which is convenient for engineering implementation and later maintenance; secondly, by introducing the size parameters of the modified image, the function can dynamically adapt to the user's cropping and scaling operations on the image to ensure that the output image is consistent with the user's expectations; thirdly, the calculation of the horizontal and vertical coordinates fully considers the size ratio of the original image, ensuring that the output image is displayed in the center of the digital photo frame without stretching deformation or partial content missing. Finally, the parameters output by the function are highly accurate, which can achieve pixel-level accurate mapping of the image on the digital photo frame, so that every detail of the image display can be perfectly restored.

[0025] 3. The present application provides a method for accurate image display positioning. When the digital photo frame displays the corresponding image according to the received output image parameters, the system will generate and display a preview control on the original device. The user can click the control to preview the display effect of the image on the digital photo frame in real time. This preview mechanism provides users with an intuitive and convenient feedback channel. Users can quickly evaluate the display effect after modifying the parameters and further adjust the original display parameters as needed. The introduction of the preview control builds a tight human-computer interaction closed loop, making the debugging and optimization process of image display smoother and more efficient. In addition, the preview function also makes cross-device image display and control possible. The user's operations on the original device can be mapped to the digital photo frame in real time, realizing seamless connection and synchronous presentation between devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a flow chart of a precise image display positioning method in an embodiment of the present application.

[0027] Figure 2 It is another flow chart of a precise image display positioning method in an embodiment of the present application.

[0028] Figure 3 It is a schematic diagram of the physical device structure of a precise image display and positioning system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.

[0030] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0031] An application scenario of an embodiment of the present application is described below: In today's fast-paced life, people often want to share the wonderful moments of life with their relatives and friends through digital photo frames, a novel way. Users like to record the wonderful moments with their mobile phones when traveling or attending important events, and then send the photos to the digital photo frame at home to reminisce and share with their family.

[0032] However, users have encountered some problems in the process of using digital photo frames. Due to the differences in size, resolution and other parameters between mobile phones and digital photo frames, users have found that the photos they carefully edited on their mobile phones often fail to achieve the expected display effect on digital photo frames. For example, once when traveling, he took a family photo and deliberately enlarged the face of each family member in the center, hoping to show it clearly on the digital photo frame. But when he sent the photo to the digital photo frame, he found that the position and size of the photo display were far different from the preview effect on the mobile phone. Instead of being highlighted, the faces of the family members were blurred because of the small size.

[0033] To solve this problem, users have tried various methods. They repeatedly adjusted the image editing parameters on their mobile phones, and after each adjustment, they had to resend the photos to the digital photo frame to check the display effect, and then further fine-tune according to the feedback of the effect. This process is not only time-consuming and labor-intensive, but also very costly to try and error. Sometimes, after finally adjusting to a relatively satisfactory state, when the user places the digital photo frame horizontally, the previous adjustment loses its effect, and the display of the picture on the photo frame deviates again, requiring another round of adjustments. Over time, users' experience with digital photo frames has become worse and worse, and they have gradually lost the fun of sharing photos.

[0034] In real life, many users face similar problems. They hope to be able to share mobile phone photos on digital photo frames easily and freely, and the display position and size of the pictures can accurately meet their expectations. However, existing technical solutions often make it difficult to achieve seamless connection between mobile phones and digital photo frames, resulting in unsatisfactory picture display effects and greatly reduced user experience. This not only reduces the practical value of digital photo frames, but also limits their application potential in family and social fields.

[0035] In order to solve the above technical problems, the present application provides a method, system, storage medium and program product for accurate image display positioning. Combine the following Figure 1 , a method for accurate image display positioning in an embodiment of the present application is described: See also Figure 1 , which is a flow chart of a precise image display positioning method in an embodiment of the present application.

[0036] S101, determining original device parameters, original picture parameters selected by a user, and digital photo frame parameters; The system determines the original device parameters, the original picture parameters selected by the user, and the digital photo frame parameters. The original picture parameters include the initial picture size of the original picture, and the digital photo frame parameters include the digital display size of the digital photo frame. In this step, the system first obtains the parameters of the original device (such as the user's mobile phone), including the screen size, resolution and other information of the device. These parameters are very important for the subsequent picture display positioning, because the screen size and resolution of different devices may vary greatly, and the system needs to perform corresponding calculations and adjustments based on these differences. At the same time, the system also needs to obtain the parameters of the original picture selected by the user, such as the size and resolution of the picture, which determine the size and clarity of the original picture. In addition, the system also needs to obtain the parameters of the target digital photo frame, such as the screen size and resolution of the photo frame, which determine the final display effect of the picture on the photo frame.

[0037] For example, a user uses an Android phone with a screen size of 6.5 inches and a resolution of 2400×1080 pixels. The user selects a photo with a size of 4000×3000 pixels and hopes to display it on a digital photo frame with a screen size of 10 inches and a resolution of 1280×800 pixels. The system obtains the screen size and resolution parameters of the phone by reading the phone system information. At the same time, the system reads the size parameters of the photo from the metadata of the photo file. Finally, through the communication interface with the digital photo frame, the system obtains the screen parameters of the photo frame. In this way, the system has mastered the original device parameters (6.5 inches, 2400×1080), the original picture parameters (4000×3000) and the digital photo frame parameters (10 inches, 1280×800), laying the foundation for the subsequent picture display positioning.

[0038] S102, receiving original display parameters set by the user on the original device; The system receives original display parameters set by the user on the original device, where the original display parameters include original display center coordinates of the original device and a modified image size corresponding to the modified image after the settings.

[0039] In this step, the system receives the picture display parameters set by the user on the original device (such as a mobile phone). These parameters include the display position of the picture that the user wants on the digital photo frame (i.e., the display center coordinates) and the display size of the picture (i.e., the modified picture size). The user can use the picture editing tool on the mobile phone or a dedicated photo frame control app to intuitively adjust the display position and size of the picture on the photo frame by using gestures such as touch screen dragging and zooming. The system will capture the user's adjustment operations in real time and convert them into specific coordinate and size parameters.

[0040] For example, the user opens the photo frame control app on the phone and selects a previous photo. A rectangular frame that is proportional to the photo frame is displayed on the APP interface, representing the visible area of ​​the photo frame. The user can drag the photo with his fingers to adjust its position in the rectangular frame, or use a two-finger zoom gesture to adjust the display size of the photo. Suppose the user centers the photo in the rectangular frame and enlarges it to 80% of the size of the rectangular frame. The system captures the user's operation and converts it into the original display center coordinates (0.5, 0.5) and the modified image size (1024×640). These parameters indicate that the user wants to center the photo on the photo frame and the display size is 80% of the visible area of ​​the photo frame. The system records these original display parameters for subsequent image display positioning calculations.

[0041] S103, when it is determined that the digital photo frame is in a horizontal state, inputting the original device parameters, the original display parameters and the digital photo frame parameters into a preset calculation function to obtain output picture parameters; When the system determines that the digital photo frame is in a horizontal state, the original device parameters, the original display parameters and the digital photo frame parameters are input into a preset calculation function to obtain output image parameters, which include the output image size and output center coordinates corresponding to the output image displayed in the digital photo frame. When the system determines that the digital photo frame is in a horizontal state, it specifically includes: Receiving three-axis acceleration values ​​sent by a gravity sensor installed on the digital photo frame, the three-axis acceleration values ​​including a system axis acceleration value, a y-axis acceleration value, and a z-axis acceleration value; Calculate the differences between the system axis acceleration value, the y-axis acceleration value, and the z-axis acceleration value and the preset acceleration value to obtain a first difference value, a second difference value, and a third difference value; When it is determined that the first difference is less than a preset threshold, determining that the digital photo frame is in a horizontal state specifically includes: When it is determined that the first difference is less than a preset threshold, sending a camera permission opening request message to the digital device; In response to a user's operation of enabling camera authority, receiving a live video captured by a camera of a digital device; When it is determined according to the live video that the central axis of the user's face is in a vertical state, the digital photo frame is determined to be in a horizontal state; When it is determined according to the live video that the central axis of the user's face is in a horizontal state, the digital photo frame is determined to be in a vertical state; When it is determined that the second difference is less than a preset threshold, determining that the digital photo frame is in a vertical state; When it is determined that the third difference is less than the preset threshold, it is determined that the digital photo frame is in a horizontal state.

[0042] The default calculation function is: In the formula, W is the width of the output image, H is the height of the output image, CenterX is the horizontal coordinate of the output center coordinate, CenterY is the vertical coordinate of the output center coordinate, fw is the width of the digital photo frame, fh is the height of the digital photo frame, sw is the width of the modified image, sh is the height of the modified image, pw is the width of the original device, ph is the height of the original device, ow is the width of the original image, oh is the height of the original image, spx is the horizontal coordinate of the original display center coordinate, spy is the vertical coordinate of the original display center coordinate; W and H constitute the output image size, CenterX and CenterY constitute the output center coordinate, fw and fh constitute the digital display size, sw and sh constitute the modified image size, pw and ph constitute the original device parameters, ow and oh constitute the initial image size, spx and spy constitute the original display center coordinate.

[0043] In this step, the system first needs to determine whether the digital photo frame is placed horizontally. This can be achieved through the gravity sensor built into the photo frame. The system receives the three-axis acceleration value returned by the sensor and compares it with the preset acceleration threshold. If the acceleration value of the X-axis (i.e. the horizontal axis recognized by the system) is less than the threshold, and the acceleration value of the Z-axis (i.e. the vertical axis recognized by the system) is greater than the threshold, it can be determined that the photo frame is in a horizontal state.

[0044] To further improve the accuracy of the judgment, the system can also call the camera of the photo frame or the original device to capture the user's facial image and analyze the direction of the central axis of the user's face through the face recognition algorithm. If the central axis is close to horizontal, it can be determined that the photo frame is horizontal; if the central axis is close to vertical, it can be determined that the photo frame is vertical.

[0045] Once it is determined that the photo frame is in a horizontal position, the system substitutes the original device parameters, original display parameters and digital photo frame parameters obtained previously into a preset calculation function to calculate output image parameters suitable for the horizontal photo frame, including the size of the output image and the display center coordinates.

[0046] For example, substituting the original device parameters (6.5 inches, 2400×1080), original picture parameters (4000×3000), original display parameters (center coordinates (0.5, 0.5), modified size 1024×640) and digital photo frame parameters (10 inches, 1280×800) into the calculation function, the output picture size is 800×500, and the output center coordinates are (0.5, 0.5). This means that the system needs to crop and scale the original picture to a size of 800×500, and then display it in the center of the photo frame to achieve the user's expected centered display and 80% size effect.

[0047] S104, sending the output picture parameters to the digital photo frame, so that the digital photo frame displays the output picture according to the output picture parameters; in this step, the system sends the output picture parameters calculated in the previous step to the digital photo frame through the network. After receiving the parameters, the digital photo frame will perform corresponding cropping, scaling and positioning on the original picture according to the picture size and center coordinates in the parameters, and finally present the display effect expected by the user on the photo frame screen.

[0048] For example, a digital photo frame receives the output image parameters (800×500, (0.5, 0.5)) sent by the system. The built-in image processing unit of the photo frame will crop an 800×500 area from the center of the original image (4000×3000), then scale it to the same size as the photo frame screen (1280×800), and finally display the scaled image in the center of the screen. In this way, the image display position and size set by the user on the mobile phone can be accurately presented on the digital photo frame, realizing the image display positioning across devices. At the same time, because digital photo frames usually use high-resolution screens and have professional image processing capabilities, even cropped and scaled images can maintain a high display quality without obvious distortion or blur.

[0049] S105, generating a preview control and displaying the preview control on the original device; In this step, the system generates a preview control on the screen of the original device (such as a mobile phone) so that the user can view the display effect of the picture on the digital photo frame in real time. This preview control is usually presented in the form of a floating window or widget, which will not interfere with the user's current operation interface.

[0050] For example, when a user adjusts the image display parameters on a mobile phone, the system will generate a thumbnail preview frame in a corner of the mobile phone screen. This preview frame will display the expected display effect of the image on the digital photo frame in real time, including the position, size, cropping area, etc. of the image. The user can observe the preview frame and intuitively judge whether the current parameter settings meet their needs. If they are not satisfied, they can continue to adjust the parameters until the preview effect meets their expectations. At the same time, the preview frame can also provide some interactive functions, such as click to enlarge, double-click to full screen, etc., so that users can carefully view the details of the image.

[0051] This real-time preview mechanism establishes a visual connection between the mobile phone and the digital photo frame. Users can see the display effect of the photo frame on their mobile phone without frequently switching devices, which greatly improves the efficiency and accuracy of picture display positioning. Moreover, the existence of the preview control also makes the entire positioning process more intuitive and easy to use. Users can quickly find the best display parameter combination to obtain a better picture viewing experience.

[0052] S106 : In response to the user clicking the preview control, the output image is displayed at a preset position of the digital photo frame.

[0053] In response to the user clicking the preview control, the system displays the output image at the preset position of the digital photo frame. When the original display parameters are modified, the preset position displays the modified output image. The system provides the user with a confirmation operation associated with the preview control. When the user is satisfied with the preview effect, he can click the preview control (such as pressing the "Confirm" button) to officially send the current preview image state to the digital photo frame, and display the output image at the specified position on the photo frame screen.

[0054] For example, after several adjustments, the user sees a satisfactory picture display effect in the preview box of the mobile phone. At this time, the user clicks the "Confirm Send" button below the preview box. The system captures this operation and immediately sends the picture parameters (size, position, etc.) in the preview box to the digital photo frame. After receiving the parameters, the photo frame will immediately update the screen display and present the picture at the preset specified position. This specified position is usually the center of the photo frame, or any position previously set by the user. During this process, the digital photo frame will maintain the current screen state without flickering or jittering, ensuring the consistency and stability of the picture display.

[0055] Through this confirmation operation, users can "freeze" satisfactory picture display effects on the digital photo frame, forming a lasting visual record. At the same time, this manual confirmation mechanism also further improves the accuracy of picture positioning and avoids display deviations caused by network delays or device differences. When users click on the preview control, they actually establish a synchronization relationship between the mobile phone and the photo frame, allowing the two devices to reach a consensus on picture display and achieve a seamless cross-screen experience.

[0056] The above embodiments have the following beneficial effects: First, the method comprehensively considers the parameters of the original device, the original picture and the digital photo frame, including the size of the original device, the initial size of the original picture, the display size of the digital photo frame, etc., providing a complete data basis for subsequent precise positioning. Secondly, the method introduces the original display parameters set by the user, including the original display center coordinates and the modified picture size, so that the user can flexibly adjust the display effect of the picture on the original device according to his or her viewing preferences. Thirdly, the method designs a preset calculation function for the horizontal state of the digital photo frame, inputs the various parameters collected previously into it, and obtains the key parameters of the final output picture through function calculation, including the size and center coordinates of the output picture. Finally, the digital photo frame accurately positions and displays the picture according to the received output picture parameters, ensuring the display consistency of the picture between different devices, so that the picture effect seen by the user on the digital photo frame is highly consistent with the effect previewed on the original device, achieving seamless connection across devices and scenes. The display effect in the digital photo frame is accurately adjusted according to the changed parameters of the picture and the parameters of the digital photo frame, which improves the accuracy and efficiency of the picture display positioning in the digital photo frame.

[0057] The gravity sensor installed on the digital photo frame is used to obtain the acceleration values ​​of the digital photo frame on the three coordinate axes, and then the differences between the three acceleration values ​​and the preset acceleration values ​​are calculated respectively. According to the size of the difference, the three states of the digital photo frame are determined: horizontal, vertical and horizontal. The gravity sensor can reflect the spatial posture of the digital photo frame in real time and accurately, providing a reliable data source for state judgment; secondly, by setting the threshold of the acceleration difference, the slight jitter and interference caused by the handheld device can be effectively filtered out, improving the stability of state judgment; thirdly, the method can identify multiple states of the digital photo frame, especially distinguishing between horizontal and vertical, providing a more fine-grained reference basis for the accurate display of subsequent pictures.

[0058] This function uses four formulas to calculate the width, height, horizontal center coordinates and vertical center coordinates of the output image, covering the two core elements of the position and size of the image display. It comprehensively considers the parameters of multiple dimensions such as the original device, original image, modified image, digital photo frame, etc., and organically combines them through mathematical operations such as multiplication and division to generate output parameters that are highly matched with the actual display environment of the digital photo frame. Specifically, this function has the following advantages: First, the formula form is concise and clear, and the parameters included are comprehensive, which is convenient for engineering implementation and later maintenance; second, by introducing the size parameters of the modified image, the function can dynamically adapt to the user's cropping and scaling operations on the image to ensure that the output image is consistent with the user's expectations; third, the calculation of the horizontal and vertical coordinates fully considers the size ratio of the original image, ensuring that the output image is displayed in the center of the digital photo frame without stretching deformation or partial content missing. Finally, the parameters output by this function are highly accurate, which can achieve pixel-level accurate mapping of the image on the digital photo frame, so that every detail of the image display can be perfectly restored.

[0059] When the gravity sensor detects that the digital photo frame may be in a horizontal state, the method sends a request to the digital device to open the camera permission. After the user authorizes, the real-time video image of the user's face is obtained through the camera, and then the image is analyzed to identify the direction of the central axis of the user's face. If the central axis is in a vertical state, the digital photo frame is determined to be horizontal; if the central axis is in a horizontal state, the digital photo frame is determined to be vertical. The user may lie sideways holding the digital photo frame, and the digital photo frame is in a horizontal state, but the user still watches the digital photo frame in a vertical state. This judgment method can effectively avoid system misjudgment and improve the accuracy of image display positioning in the digital photo frame.

[0060] When the digital photo frame displays the corresponding image according to the received output image parameters, the system will generate and display a preview control on the original device. Users can click the control to preview the display effect of the image on the digital photo frame in real time. This preview mechanism provides users with an intuitive and convenient feedback channel. Users can quickly evaluate the display effect after modifying the parameters and further adjust the original display parameters as needed. The introduction of the preview control builds a tight human-computer interaction closed loop, making the debugging and optimization process of the image display smoother and more efficient. In addition, the preview function also makes cross-device image display and control possible. The user's operations on the original device can be mapped to the digital photo frame in real time, realizing seamless connection and synchronous presentation between devices.

[0061] In addition, the digital photo frame may be low on power. In this case, it is necessary to meet the basic needs of the user and display the part they want to view. Figure 2 , another accurate image display positioning method in the embodiment of the present application is described: See also Figure 2 , is another flow chart of a precise image display positioning method in an embodiment of the present application.

[0062] S201, obtaining the remaining power of the digital photo frame; In this step, the system obtains the remaining battery power information of the photo frame in real time through the communication interface with the digital photo frame. This information is usually presented in the form of percentage or remaining available time. There will be a special power monitoring circuit inside the digital photo frame, which can accurately measure the battery voltage, current and other parameters, and estimate the current remaining power status based on these parameters. The system can send power query instructions to the photo frame regularly (such as every 5 minutes) to obtain the latest power data, so as to understand the power supply status of the photo frame in a timely manner.

[0063] For example, the system establishes a communication connection with a digital photo frame through the Bluetooth Low Energy (BLE) protocol. The system sends a power query command to the photo frame every 5 minutes. After receiving the command, the photo frame reads the data of the internal power monitoring circuit and sends the current remaining power percentage (such as 80%) to the system. After receiving this data, the system determines whether the photo frame is in a low power state based on the preset warning threshold (such as 20%).

[0064] S202, when it is determined that the remaining power is less than a preset power, reducing the display brightness of the digital photo frame; When the system detects that the remaining power of the digital photo frame is lower than the preset power (such as 20%), it will automatically send a command to the photo frame to reduce the display brightness. Display brightness is the main source of energy consumption for digital photo frames. Reducing the brightness can significantly extend the battery life. After receiving the brightness adjustment command, the digital photo frame will reduce the current supplied to the screen backlight through technologies such as PWM (pulse width modulation) or DC (direct current dimming), thereby reducing the brightness. The preset power is to achieve the set value, which can be any value and is not limited here.

[0065] For example, the original brightness of the digital photo frame display is 300 nits. The system detects that the remaining power of the photo frame is only 15%, which is lower than the 20% warning power. Therefore, the system sends a command to the photo frame to "set the brightness to 50%". After receiving the command, the backlight control circuit of the photo frame reduces the PWM duty cycle supplied to the backlight LED from 100% to 50%, so that the screen brightness drops from 300 nits to 150 nits. Although the decrease in screen brightness will affect the display effect to a certain extent, it can greatly reduce power consumption, allowing the photo frame to maintain operation for a long time in a low-power state. At the same time, the darker screen brightness can also remind users to charge as soon as possible to avoid the photo frame accidentally shutting down and causing interruptions in picture display.

[0066] S203, when receiving the brightness adjustment information sent by the original device, the output image is sent to the original device; when the digital photo frame is in a low power state and the brightness is automatically lowered, the system will send a message to the original device (such as a mobile phone) to prompt the user that the current brightness of the photo frame is insufficient and ask the user whether the display area of ​​the image needs to be adjusted. If the user replies that adjustment is required, the system will first send the output image originally sent to the photo frame for display to the user's mobile phone. The user can view this image on the mobile phone and use a finger to draw an area on the touch screen as the focus display part of the image.

[0067] For example, a user previously set a family photo to be displayed on a digital photo frame, and the photo content includes busts of 5 people. When the photo frame enters a low-battery state and the screen brightness is reduced to 30%, the system sends a message to the user's mobile phone: "Your digital photo frame is low on battery and the display effect may be affected. Do you need to select the key display area of ​​the photo?" After seeing the message, the user replies "Yes". The system then sends the family photo to the user's mobile phone, and the user draws a small box on the photo with his finger, which only contains close-ups of 2 people. Then the user clicks the "OK" button to send the selected area back to the system. The system receives the area data selected by the user and proceeds to the next step of processing.

[0068] S204, receiving the selected output picture sent by the original device; The system receives the selected output image sent by the original device, which contains the selected display area divided by the user on the output image. In this step, the system receives and parses the key display area data selected by the user on the mobile phone. This data usually includes a set of coordinate points, indicating the upper left and lower right corners of the area selected by the user in the original image. The system will perform corresponding captures on the original image based on these coordinate points to obtain a new image containing only the area selected by the user, which is the "selected output image".

[0069] For example, a user selects a rectangular area between (1000, 500) and (3000, 2500) on a 4000×3000 pixel photo as the highlighted content. After receiving the area coordinate data sent back by the mobile phone, the system intercepts the original image and obtains a new image of 2000×2000 pixels. This new image only contains close-ups of the two people circled by the user, and the rest of the image is cropped. The system saves this cropped image as a new file, marked as "Select output image", ready for the next step of brightness processing.

[0070] S205, reducing the brightness of other areas in the selected output image except the selected display area to a preset brightness value to obtain a final output image; After obtaining the key display area selected by the user, the system needs to further optimize the output image so that it can present a clear display effect even in the low brightness state of the digital photo frame. The strategy adopted by the system is to further reduce the brightness of the non-key areas in the image, while keeping the brightness of the key areas unchanged. This can maximize power saving while ensuring that the image content that the user is concerned about can be highlighted.

[0071] Specifically, the system first reduces the brightness of all pixels in the "selected output image" to a preset value (such as 20%), and then increases the brightness of the pixels in the area back to the original value (100%) according to the coordinates of the key area selected by the user. In this process, the system uses some image processing algorithms (such as Alpha blending) to make the key area and the surrounding dark area transition smoothly to avoid harsh edges. The image after brightness adjustment is marked as the "final output image" and is ready to be sent to the digital photo frame for display.

[0072] For example, the coordinate range of the close-up area of ​​two people selected by the user in the picture is (1000, 500) to (3000, 2500). The system first lowers the brightness of the entire 2000×2000 picture to 20%, presenting a gray effect as a whole. Then, based on the coordinates of the close-up area, the system increases the brightness of the pixels in the 2000×2000 area back to 100%. At the edge of the close-up area, the system will also perform a certain blurring process to gradually change the brightness from 100% to 20%, forming a soft transition effect. Finally, in the processed picture, the brightness of the close-up area of ​​the two people remains unchanged, while the background area becomes significantly darker. This differentiated brightness processing allows the user's eyes to naturally focus on the key content of the picture, while also greatly reducing the overall power consumption of the picture display.

[0073] S206: Send the final output picture to the digital photo frame, so that the digital photo frame displays the final output picture.

[0074] After optimizing the brightness of the image, the system sends the "final output image" to the digital photo frame through the network. Considering that the photo frame is in a low-power state at this time, the image transmission process needs to reduce the amount of data as much as possible to save communication power consumption. Therefore, the system will compress the image before sending it, select a high-compression image format (such as WebP), and appropriately reduce the image resolution to minimize the size of the image file while ensuring display quality.

[0075] After receiving the "final output image", the digital photo frame will immediately load it into the memory and render it on the screen through the display control circuit. Since the image itself has been optimized for brightness and the resolution matches the photo frame screen, the actual display effect on the photo frame is consistent with expectations, and the brightness of the key areas can be significantly higher than other areas, attracting the user's attention. At the same time, since the brightness of non-key areas is greatly reduced, the power consumption of the photo frame is also significantly controlled, extending the battery life.

[0076] For example, the system transmits a 2000×2000 pixel "final output image" to a digital photo frame. To save transmission time and power consumption, the system first reduces the image resolution to 1000×1000, and then encodes the image using the WebP format with a compression rate set to 80%. The processed image file size is reduced from the original 12MB to 1.5MB, and the transmission time is shortened from 30 seconds to 5 seconds. After receiving the image data, the digital photo frame decodes and scales it to a size that matches the screen resolution (such as 1280×800), and then displays it on the screen. The final effect seen by the user is a "spotlight" effect photo on the screen, with sufficient brightness and clear details in the close-up area of ​​the two people, while the background area appears dim, but not completely unclear. This brightness difference makes the visual focus of the picture more prominent, while also greatly reducing the power consumption of the photo frame, achieving the best balance between display quality and energy saving.

[0077] The above embodiments have the following beneficial effects: When the system detects that the remaining power of the digital photo frame is lower than a preset threshold, it automatically lowers the overall display brightness of the device, reducing screen power consumption and extending battery life.

[0078] Through the original device, users can select a key display area of ​​the picture, and the system will keep the brightness of the area unchanged, while reducing the brightness of other areas to a lower level. This not only saves overall power consumption, but also highlights the core content of the picture, achieving a balance between energy saving and display quality.

[0079] The following describes the system in the embodiment of the present invention from the perspective of hardware processing. Figure 3 , which is a schematic diagram of the physical device structure of a precise image display and positioning system provided in an embodiment of the present application.

[0080] It should be noted that Figure 3 The structure of the system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0081] like Figure 3As shown, the system includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303, such as executing the method in the above embodiment. In RAM 303, various programs and data required for system operation are also stored. CPU 301, ROM 302 and RAM 303 are connected to each other through a bus 304. Input / output (I / O) interface 305 is also connected to bus 304.

[0082] The following components are connected to the I / O interface 305: an input section 306 including a camera, an infrared sensor, etc.; an output section 307 including a liquid crystal display (LCD) and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.

[0083] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 309, and / or installed from a removable medium 311. When the computer program is executed by a central processing unit (CPU) 301, various functions defined in the present invention are performed.

[0084] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.

[0085] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0086] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the system described in the above embodiment; or may exist independently without being assembled into the system. The above storage medium carries one or more computer programs, and when the above one or more computer programs are executed by a processor of a system, the system implements the method provided in the above embodiment.

[0087] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0088] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0089] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0090] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A precise image display positioning method, characterized in that: include: Determining original device parameters, original picture parameters selected by a user, and digital photo frame parameters, wherein the original picture parameters include an initial picture size of the original picture, and the digital photo frame parameters include a digital display size of the digital photo frame; Receiving original display parameters set by the user on the original device, the original display parameters including original display center coordinates of the original device and a modified picture size corresponding to the set modified picture; When it is determined that the digital photo frame is in a horizontal state, the original device parameters, the original display parameters and the digital photo frame parameters are input into a preset calculation function to obtain output picture parameters, wherein the output picture parameters include an output picture size and an output center coordinate corresponding to an output picture displayed in the digital photo frame; The output picture parameters are sent to the digital photo frame, so that the digital photo frame displays the output picture according to the output picture parameters.

2. The method according to claim 1, characterized in that When determining that the digital photo frame is in a horizontal state, the method specifically includes: Receiving three-axis acceleration values ​​sent by a gravity sensor installed on the digital photo frame, the three-axis acceleration values ​​including a system axis acceleration value, a y-axis acceleration value, and a z-axis acceleration value; Calculating the differences between the system axis acceleration value, the y-axis acceleration value, and the z-axis acceleration value and the preset acceleration value respectively to obtain a first difference value, a second difference value, and a third difference value; When it is determined that the first difference is less than a preset threshold, determining that the digital photo frame is in the horizontal state; When it is determined that the second difference is less than the preset threshold, determining that the digital photo frame is in a vertical state; When it is determined that the third difference is less than the preset threshold, it is determined that the digital photo frame is in a horizontal state.

3. The method according to claim 1, characterized in that The preset calculation function is: In the formula, W is the width of the output image, H is the height of the output image, CenterX is the horizontal coordinate of the output center coordinate, CenterY is the vertical coordinate of the output center coordinate, fw is the width of the digital photo frame, fh is the height of the digital photo frame, sw is the width of the modified image, sh is the height of the modified image, pw is the width of the original device, ph is the height of the original device, ow is the width of the original image, oh is the height of the original image, spx is the horizontal coordinate of the original display center coordinate, and spy is the vertical coordinate of the original display center coordinate; The W and the H constitute the output image size, the CenterX and the CenterY constitute the output center coordinates, the fw and the fh constitute the digital display size, the sw and the sh constitute the modified image size, the pw and the ph constitute the original device parameters, the ow and the oh constitute the initial image size, and the spx and the spy constitute the original display center coordinates.

4. The method according to claim 2, characterized in that: In the case where it is determined that the first difference is less than a preset threshold, determining that the digital photo frame is in the horizontal state specifically includes: When it is determined that the first difference is less than the preset threshold, sending a camera enabling permission request message to the digital device; In response to the user enabling the camera permission, receiving a live video captured by the camera of the digital device; when it is determined according to the live video that the central axis of the user's face is in a vertical state, determining that the digital photo frame is in the horizontal state; When it is determined according to the live video that the central axis of the user's face is in a horizontal state, the digital photo frame is determined to be in the vertical state.

5. The method according to claim 1, characterized in that After sending the output picture parameters to the digital photo frame so that the digital photo frame displays the output picture according to the output picture parameters, the method further includes: generating a preview control and displaying the preview control on the original device; In response to the user clicking the preview control, the output image is displayed at a preset position of the digital photo frame, and when the original display parameter is modified, the preset position displays the modified output image.

6. The method according to claim 1 or 4, characterized in that: After sending the output picture parameters to the digital photo frame so that the digital photo frame displays the output picture according to the output picture parameters, the method further includes: acquiring the remaining power of the digital photo frame; When it is determined that the remaining power is less than the preset power, the display brightness of the digital photo frame is reduced.

7. The method according to claim 6, characterized in that After reducing the display brightness of the digital photo frame when it is determined that the remaining power is less than the preset power, the method further includes: In case of receiving the brightness adjustment information sent by the original device, sending the output image to the original device; receiving the selected output image sent by the original device, wherein the selected output image includes the selected display area divided by the user on the output image; The brightness of other areas in the selected output image except the selected display area is reduced to a preset brightness value to obtain a final output image; The final output picture is sent to the digital photo frame, so that the digital photo frame displays the final output picture.

8. A precise image display positioning system, characterized in that: The system comprises: One or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the system to execute the method as described in any one of claims 1-7.

9. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a system, the system is caused to execute the method according to any one of claims 1 to 7.

10. A computer program product, characterized in that When the computer program product is run on a system, the system is caused to execute the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • LED lamp strip rhythm flickering control method and system, storage medium and program product

    CN119584367A

  • Method, system, storage medium and program product for controlling rhythmic flashing of LED light strips

    CN119584367B

  • Image display method, processing device, display device and communication system

    CN121560205A