WO2021031748A1 - 信息处理方法及装置 - Google Patents

信息处理方法及装置 Download PDF

Info

Publication number
WO2021031748A1
WO2021031748A1 PCT/CN2020/102153 CN2020102153W WO2021031748A1 WO 2021031748 A1 WO2021031748 A1 WO 2021031748A1 CN 2020102153 W CN2020102153 W CN 2020102153W WO 2021031748 A1 WO2021031748 A1 WO 2021031748A1
Authority
WO
WIPO (PCT)
Prior art keywords
target object
line
mobile terminal
image
screen
Prior art date
Application number
PCT/CN2020/102153
Other languages
English (en)
French (fr)
Inventor
潘斌斌
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021031748A1 publication Critical patent/WO2021031748A1/zh

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to an information processing method and device.
  • a hook 2 is nailed to the wall 1, and then the calligraphy and painting 3 are hung on the wall 1 through a rope on the hook 2, but the calligraphy and painting 3 are hung crooked, and the upper and lower edges are not horizontal. Affect the appearance.
  • the present disclosure shows an information processing method and device.
  • the present disclosure shows an information processing method, which includes:
  • the scale line generated based on the gravity sensor is displayed on the image, and the scale line includes a horizontal scale line or a vertical scale line.
  • the displaying a ruler line generated based on a gravity sensor on the image includes:
  • the ruler line is displayed at the position of the operation.
  • the displaying a ruler line generated based on a gravity sensor on the image includes:
  • the ruler line is displayed at a preset position of the edge contour.
  • the identifying the edge contour of the target object in the image includes:
  • the edge contour in the image is detected based on a contour detection algorithm.
  • the identifying the edge contour of the target object in the image includes:
  • the identifying the edge contour of the target object in the image includes:
  • the candidate edge contour is corrected based on the contour detection algorithm to obtain the edge contour of the target object.
  • the displaying a ruler line generated based on a gravity sensor on the image includes:
  • the horizontal ruler line is displayed on the screen.
  • the determining the tilt angle of the mobile terminal relative to a preset direction of gravity on the plane where the screen is located includes:
  • the inclination angle of the mobile terminal relative to the preset gravity direction is determined according to a plurality of candidate inclination angles.
  • the method further includes:
  • contour edges of the target object determine a part of the contour edge of a straight line
  • the adjustment prompt is displayed.
  • the determining a part of the contour edge of a straight line in the contour edge of the target object includes:
  • contour edges of the target object multiple sections of partial contour edges that are straight lines are determined
  • the partial contour edge with the smallest included angle with the scale line is selected.
  • the obtaining the angle difference between the ruler line and the edge of the partial contour includes:
  • the angle difference is determined according to the included angle.
  • the generating an adjustment prompt according to the angle difference includes:
  • An adjustment prompt is generated according to the adjustment direction and the adjustment angle.
  • the method further includes:
  • a completion prompt is generated, and the completion prompt is used to indicate the angle difference between the ruler line and the part of the contour edge Less than the preset angle;
  • the completion prompt is displayed.
  • the method further includes:
  • the adjustment prompt is displayed.
  • the present disclosure shows an information processing device, which is characterized in that the device includes:
  • the first acquisition module is used to acquire an image including the target object
  • the first display module is configured to display the image on the screen of the mobile terminal
  • the second display module is configured to display the scale line generated based on the gravity sensor on the image, and the scale line includes a horizontal scale line or a vertical scale line.
  • the second display module includes:
  • the first acquiring unit is used to acquire user operations on the image
  • the first display unit is configured to display the ruler line at the position of the operation.
  • the second display module includes:
  • a recognition unit for recognizing the edge contour of the target object in the image
  • the second display unit is configured to display the ruler line at the preset position of the edge contour.
  • the identification unit includes:
  • the detection subunit is configured to detect the edge contour in the image based on a contour detection algorithm.
  • the identification unit includes:
  • the acquiring subunit is used to acquire the edge contour of the target object.
  • the identification unit includes:
  • the receiving subunit receives the candidate edge contour of the target object depicted by the user in the image
  • the correction subunit is used to correct the candidate edge contour based on a contour detection algorithm in the image to obtain the edge contour of the target object.
  • the second display module includes:
  • the second acquiring unit is configured to acquire the horizontal line of the screen of the mobile terminal
  • the first determining unit is configured to determine the tilt angle of the mobile terminal relative to the preset direction of gravity on the plane where the screen is located;
  • a second determining unit configured to determine a horizontal ruler line according to the screen horizontal line and the tilt angle
  • the third display unit is configured to display the horizontal ruler line on the screen.
  • the first determining unit includes:
  • a first determining subunit configured to determine multiple candidate tilt angles of the mobile terminal relative to a preset direction of gravity on the plane where the screen is located;
  • the second determining subunit is configured to determine the tilt angle of the mobile terminal relative to the preset gravity direction according to a plurality of candidate tilt angles.
  • the device further includes:
  • the first determining module is configured to determine a part of the contour edge of a straight line among the contour edges of the target object
  • the second acquiring module is configured to acquire the angular difference between the ruler line and the edge of the partial contour
  • the first generating module is configured to generate an adjustment prompt according to the angle difference
  • the third display module is used to display the adjustment prompt.
  • the first determining module includes:
  • the third determining unit is configured to determine multiple segments of partial contour edges that are straight lines among the contour edges of the target object;
  • the selection unit is used to select the part of the contour edge with the smallest included angle with the ruler line among the multiple sections of the partial contour edges that are straight.
  • the second acquisition module includes:
  • a fourth determining unit configured to determine the angle between the ruler line and the edge of the partial contour
  • the fifth determining unit is configured to determine the angle difference according to the included angle.
  • the first generating module includes:
  • a sixth determining unit configured to determine the adjustment direction and the adjustment angle of the target object according to the angle difference
  • the generating unit is configured to generate an adjustment prompt according to the adjustment direction and the adjustment angle.
  • the device further includes:
  • the second generation module is configured to generate a completion prompt when it is detected that the angle difference between the ruler line and the part of the contour edge is less than a preset angle, and the completion prompt is used to indicate that the ruler line is different from the part
  • the angle difference between the contour edges is smaller than the preset angle
  • the fourth display module is used to display or play the completion prompt.
  • the device further includes:
  • the third acquiring module is used to acquire multiple designated edge points on the contour edge of the target object
  • the second determining module is configured to determine a line segment formed by connecting at least two designated edge points among the plurality of designated edge points;
  • a fourth obtaining module configured to obtain the angle difference between the ruler line and the line segment
  • the third generation module is configured to generate an adjustment prompt according to the angle difference
  • the fifth display module is used to display the adjustment prompt.
  • the present disclosure shows a mobile terminal including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • the computer program is executed by the processor, The steps of the information processing method as described in the first aspect are implemented.
  • the present disclosure shows a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the information processing method as described in the first aspect is implemented. step.
  • the target object and the ruler line are displayed on the screen at the same time, and the user can see the target object and the ruler line on the screen at the same time.
  • the ruler line it can be verified whether the target object is skewed, for example, the user is on the screen. It is easy to compare the angle difference between the edge of the target object and the ruler line. According to the angle difference, it can be determined whether the target object is skewed. When the target object is skewed, the user can adjust the target object in real time.
  • the adjusted target object is photographed by the mobile terminal in real time and displayed on the screen, and the ruler line is always displayed on the screen, so that the user is in the process of adjusting the target object
  • the angle difference between the edge of the target object and the ruler line can be compared in real time until the angle difference is less than a predetermined value, for example, until the angle difference is reduced to 0, that is, until the target object is hung upright.
  • the entire process can be implemented by the mobile terminal through software execution, and the user does not need to purchase a level ruler, which can save costs.
  • Fig. 1 is a schematic diagram of a scene shown in the related art.
  • Fig. 2 is a flowchart of the steps of an information processing method shown in the present disclosure.
  • Fig. 3 is a schematic diagram of a scene shown in the present disclosure.
  • Fig. 4 is a schematic diagram of a scene shown in the present disclosure.
  • Fig. 5 is a flow chart of a method for generating a ruler line shown in the present disclosure.
  • Fig. 6 is a flow chart of a method for generating a ruler line shown in the present disclosure.
  • Fig. 7 is a flow chart of the steps of a method for generating a ruler line shown in the present disclosure.
  • FIG. 8 is a schematic diagram of a scene shown in the present disclosure.
  • FIG. 9 is a schematic diagram of a scene shown in the present disclosure.
  • FIG. 10 is a schematic diagram of a scene shown in the present disclosure.
  • FIG. 11 is a schematic diagram of a scene shown in the present disclosure.
  • Fig. 12 is a flowchart of steps of an information processing method shown in the present disclosure.
  • FIG. 13 is a schematic diagram of a scene shown in the present disclosure.
  • FIG. 14 is a flowchart of steps of an information processing method shown in the present disclosure.
  • Fig. 15 is a structural block diagram of an information processing device of the present disclosure.
  • FIG. 16 is a schematic diagram of the hardware structure of a mobile terminal of the present disclosure.
  • step S101 an image including the target object is acquired
  • the user can first hang the target object on the wall, and then determine whether the target object is hung skewed, and in the case that the target object is hung skewed, the target object can be adjusted until the target object is hung upright.
  • the user can control the mobile terminal to take an image that includes the target object. For example, the user holds the mobile terminal in his hand and points the camera of the mobile terminal at the target object, and then the mobile terminal can use the camera The image including the target object is captured, or the mobile terminal is controlled not to capture the image including the target object, but instead previews the image including the target object on the screen, and then performs step S102.
  • step S102 the image is displayed on the screen of the mobile terminal
  • the mobile terminal After the mobile terminal captures the image including the target object, it can display the image on the screen of the mobile terminal, so that the user can see the image on the screen of the mobile terminal.
  • step S103 the scale line generated based on the gravity sensor is displayed on the image, and the scale line includes a horizontal scale line or a vertical scale line.
  • the mobile terminal may generate at least one ruler line, for example, at least one horizontal ruler line, or at least one vertical ruler line, or at least one horizontal ruler line and at least one vertical ruler line on the image displayed on the screen.
  • the target object and the ruler line are displayed on the screen at the same time.
  • the user can see the target object and the ruler line on the screen at the same time.
  • the ruler line it can be verified whether the target object is skewed. Fortunately compare the angle difference between the edge of the target object and the ruler line. According to the angle difference, it can be determined whether the target object is skewed.
  • the user can adjust the target object in real time, for example, Rotate the target object on the plane where the wall is located, the adjusted target object is captured by the mobile terminal in real time and displayed on the screen, and the ruler line is always displayed on the screen, so that the user can compare the target object in real time during the adjustment process
  • the angle difference between the edge of the target object and the scale line until the angle difference is less than a predetermined value, for example, until the angle difference is reduced to 0, that is, until the target object is hung upright.
  • a horizontal ruler line is taken as an example for illustration, but it is not used as a limitation to the protection scope of the present disclosure.
  • the content displayed on the screen of the mobile terminal in FIG. 3 includes the horizontal ruler line 4 and the target object 3.
  • the horizontal ruler line 4 is a dotted line, and the target object 3 is a rectangular picture.
  • the upper rectangular side of the target object 3 is parallel to the horizontal ruler line 4, if the target object 3 is hung skewed, the upper rectangular side of the target object 3 is aligned with the horizontal ruler line 4 It is not parallel.
  • the upper rectangular side of the target object 3 displayed on the screen is not parallel to the horizontal ruler line 4, that is, the target object 3 is hung skewed, and the user can manually adjust the target object 3, for example Rotate the target object 3 counterclockwise on the plane where the wall is located, so as to make the upper rectangular side of the target object 3 parallel to the horizontal ruler line 4 as much as possible.
  • the target object 3 is explained. Was hung up.
  • a user can implement the present disclosure by using a mobile terminal such as a mobile phone or a tablet computer, that is, taking an image including a target object, displaying the image on the screen of the mobile terminal, and then generating a ruler line on the image.
  • a mobile terminal such as a mobile phone or a tablet computer
  • the user can verify whether the target object is hung crooked according to the ruler line. If the target object is hung crooked, the user can manually adjust the target object until it is verified that the target object is hung upright according to the ruler line on the screen, and the mobile terminal passes through the whole process
  • the software can be realized without the user to purchase a level ruler, which can save costs.
  • the user can be supported to specify the generation position of the ruler line on the screen, and the user can specify the convenient location on the mobile terminal according to their own habits and preferences. Compare the position by yourself so that the mobile terminal generates a ruler line at that position.
  • step S103 includes:
  • step S201 obtain the user's operation on the image
  • the user can click a position on the target object displayed on the screen, and the mobile terminal obtains the position clicked by the user and uses it as the designated position.
  • the edge position of the target object can be selected. For example, when the shape of the target object is a rectangular shape, the position of the upper rectangular side of the target object can be selected.
  • step S202 a ruler line is displayed at the position of the operation.
  • the user often needs to hold the mobile terminal all the time during the whole process. If the user is also required to manually specify a location on the mobile terminal, it will increase the user's operational burden, which will cause the user to be unstable in holding the mobile terminal and move The terminal will be shaken, which affects the angle difference between the user's comparison ruler line and the edge of the target object, and may still reduce the accuracy of the comparison result.
  • the mobile terminal can automatically determine the generation position of the ruler line, and the determined generation position is suitable for the user to compare.
  • step S103 includes:
  • step S301 identify the edge contour of the target object in the image
  • the edge contour of the target object in the image can be detected based on a contour detection algorithm.
  • the image is binarized to obtain a binarized image, and then the sobel operator (Sobel operator) is used to detect the edge contour of the target object in the binarized image.
  • sobel operator Sobel operator
  • the target object in the image can be recognized based on an image recognition algorithm, and then the edge contour of the target object can be obtained.
  • the image captured by the mobile terminal may also include other objects.
  • the mobile terminal starts to detect the edge contour, it may sometimes The edge contours of other objects are mistakenly detected as the edge contours of the target object. Then a ruler line will be generated for the edge contours of other objects. This ruler line is convenient for detecting whether other objects are skewed, and is not conducive to comparing whether the target object is hung. crooked.
  • the user can draw the candidate edge contour of the target object in the image, and the mobile terminal receives the candidate edge of the target object drawn by the user in the image Contour, and then in the image, based on the contour detection algorithm, the candidate edge contour is corrected to obtain the edge contour of the target object.
  • step S302 a ruler line is displayed at the preset position of the edge contour.
  • the screen of the mobile terminal is often rectangular, and the horizontal ruler line generated by the mobile terminal may be parallel to the upper rectangular edge of the screen of the mobile terminal.
  • the upper rectangular side of the screen of the mobile terminal is horizontal, and the ruler line is also horizontal, and the ruler line can be used to verify whether the target object is hung upright.
  • the user may tilt the mobile terminal when holding the mobile terminal.
  • the rectangle on the upper side of the screen of the mobile terminal is not horizontal, and the ruler line is also horizontal.
  • the user verifies whether the target object is hung on the correct time according to the ruler line that is not horizontal, and the verification result is often inaccurate.
  • step S103 includes:
  • step S401 obtain the screen horizontal line of the mobile terminal
  • the screen of the mobile terminal is generally rectangular.
  • the horizontal line of the screen of the mobile terminal includes: a rectangular side on the upper side of the screen of the mobile terminal, or a line segment on the screen parallel to the rectangular side on the upper side of the screen .
  • step S402 determine the tilt angle of the mobile terminal relative to the preset direction of gravity on the plane where the screen is located;
  • the preset gravity direction is the direction on the client that points to the center of the earth.
  • a gravity sensor is provided in the mobile terminal.
  • the gravity sensor is usually a three-axis sensor. Referring to FIG. 8, a three-dimensional coordinate system can be drawn in the mobile terminal in advance.
  • the mobile terminal reads the information on the X and Y coordinate axes detected by the gravity sensor, and can then calculate the angle of the mobile terminal relative to the horizontal position.
  • the value of the Y axis is 9.8 and the value of the X axis is 0.
  • the tilt angle is a counterclockwise rotation ⁇ ° on the basis of FIG. 9, then the angle between the positive direction of the Y axis and the direction of gravity is ⁇ .
  • the average value of the two can be used to offset the error.
  • determine multiple candidate tilt angles of the mobile terminal relative to the preset direction of gravity on the plane where the screen is located, determine multiple candidate tilt angles of the mobile terminal relative to the preset direction of gravity; determine the tilt angle of the mobile terminal relative to the preset direction of gravity according to the multiple candidate tilt angles, for example, calculate The average value among the multiple candidate tilt angles is used to obtain the tilt angle of the mobile terminal relative to the preset gravity direction to offset the measurement error.
  • step S403 the horizontal ruler line is determined according to the screen horizontal line and the tilt angle
  • the screen horizontal line 5 can be rotated clockwise by ⁇ ° to obtain the horizontal ruler line 4.
  • step S404 a horizontal ruler line is displayed on the screen.
  • the user can compare on the screen whether there is an angle difference between the edge of the target object and the ruler line, and manually adjust the target object if there is an angle difference.
  • the mobile terminal will shake when the user holds the mobile terminal, which is not convenient for the user to see whether there is an angle difference between the edge of the target object and the ruler line. There may also be inaccurate comparison results.
  • the mobile terminal can automatically verify whether there is an angle difference between the edge of the target object and the ruler line. If there is an angle difference, the user is prompted, so that the user can get whether the target needs to be adjusted without personal verification. The conclusion of the object.
  • the method further includes:
  • step S501 among the contour edges of the target object, a part of the contour edge of a straight line is determined;
  • contour edges of the target object multiple segments of partial contour edges that are straight lines are determined.
  • the target object is a rectangle
  • four straight contour edges can be determined.
  • Hough transform Hough transform
  • Transform technology to determine the part of the contour edge with multiple straight lines; then, among the part of the contour edge with multiple straight lines, select the part of the contour edge with the smallest angle with the ruler line to facilitate the comparison between the ruler line and the contour edge. Angle difference.
  • step S502 obtain the angle difference between the ruler line and the edge of the partial contour
  • the angle between the ruler line and the edge of a part of the contour can be determined, and then the angle difference is determined according to the angle, for example, the angle is regarded as the angle difference.
  • step S503 an adjustment prompt is generated according to the angle difference
  • the adjustment direction and adjustment angle of the target object are determined according to the angle difference; an adjustment prompt is generated according to the adjustment direction and the adjustment angle.
  • step S504 the adjustment prompt is displayed.
  • the mobile terminal can detect the angle difference between the ruler line and part of the contour edge in real time, and when the angle difference is determined to be less than the preset angle, a completion prompt is generated, and the completion prompt It is used to indicate that the angle difference between the ruler line and the part of the contour edge is less than the preset angle, the target object has been hung up, no need to adjust the target object; the completion prompt is displayed, and the user can know that the target object has been hung up according to the completion prompt. This can stop adjusting the target object.
  • the user can compare on the screen whether there is an angle difference between the edge of the target object and the ruler line, and manually adjust the target object if there is an angle difference.
  • the mobile terminal will shake when the user holds the mobile terminal, which is not convenient for the user to see whether there is an angle difference between the edge of the target object and the ruler line. There may also be inaccurate comparison results.
  • the mobile terminal can automatically verify whether there is an angle difference between the edge of the target object and the ruler line. If there is an angle difference, the user is prompted, so that the user can get whether the target needs to be adjusted without personal verification. The conclusion of the object.
  • the method further includes:
  • step S601 multiple designated edge points on the contour edge of the target object are acquired
  • the target object does not have a contour edge that is a straight line.
  • the target object is a rag doll.
  • the user can observe the target object displayed on the screen with the naked eye. If the target object is symmetrical, you can Two symmetrical edge points are selected on the contour of the target object, and the mobile terminal obtains the two edge points selected by the user. When the line of the two edge points is horizontal, the target object is hung upright.
  • step S602 a line segment formed by connecting at least two designated edge points among the plurality of designated edge points is determined
  • step S603 the angle difference between the ruler line and the line segment is acquired
  • the angle between the ruler line and the line segment may be determined, and then the angle difference may be determined according to the angle, for example, the angle may be used as the angle difference.
  • step S604 the adjustment prompt is generated according to the angle difference
  • the adjustment direction and adjustment angle of the target object are determined according to the angle difference; an adjustment prompt is generated according to the adjustment direction and the adjustment angle.
  • step S605 the adjustment prompt is displayed.
  • the mobile terminal can detect the angle difference between the ruler line and the line segment in real time, and when the angle difference is determined to be less than the preset angle, a completion prompt is generated to complete the prompt.
  • the angle difference between the indicator ruler line and the line segment is less than the preset angle, the target object has been hung up, and there is no need to adjust the target object; the completion prompt is displayed or played, and the user can know that the target object has been hung up according to the completion prompt. This can stop adjusting the target object.
  • the device may specifically include the following modules:
  • the first acquisition module 11 is configured to acquire an image including a target object
  • the first display module 12 is configured to display the image on the screen of the mobile terminal
  • the second display module 13 is configured to display a scale line generated based on a gravity sensor on the image, and the scale line includes a horizontal scale line or a vertical scale line.
  • the second display module 13 includes:
  • the first acquiring unit is used to acquire user operations on the image
  • the first display unit is configured to display the ruler line at the position of the operation.
  • the second display module 13 includes:
  • a recognition unit for recognizing the edge contour of the target object in the image
  • the second display unit is configured to display the ruler line at the preset position of the edge contour.
  • the identification unit includes:
  • the detection subunit is configured to detect the edge contour in the image based on a contour detection algorithm.
  • the identification unit includes:
  • the acquiring subunit is used to acquire the edge contour of the target object.
  • the identification unit includes:
  • the receiving subunit receives the candidate edge contour of the target object depicted by the user in the image
  • the correction subunit is used to correct the candidate edge contour based on a contour detection algorithm in the image to obtain the edge contour of the target object.
  • the second display module 13 includes:
  • the second acquiring unit is configured to acquire the horizontal line of the screen of the mobile terminal
  • the first determining unit is configured to determine the tilt angle of the mobile terminal relative to the preset direction of gravity on the plane where the screen is located;
  • a second determining unit configured to determine a horizontal ruler line according to the screen horizontal line and the tilt angle
  • the third display unit is configured to display the horizontal ruler line on the screen.
  • the first determining unit includes:
  • a first determining subunit configured to determine multiple candidate tilt angles of the mobile terminal relative to a preset direction of gravity on the plane where the screen is located;
  • the second determining subunit is configured to determine the tilt angle of the mobile terminal relative to the preset gravity direction according to a plurality of candidate tilt angles.
  • the device further includes:
  • the first determining module is configured to determine a part of the contour edge of a straight line among the contour edges of the target object
  • the second acquiring module is configured to acquire the angular difference between the ruler line and the edge of the partial contour
  • the first generating module is configured to generate an adjustment prompt according to the angle difference
  • the third display module is used to display the adjustment prompt.
  • the first determining module includes:
  • the third determining unit is configured to determine multiple segments of partial contour edges that are straight lines among the contour edges of the target object;
  • the selection unit is used to select the part of the contour edge with the smallest included angle with the ruler line among the multiple sections of the partial contour edges that are straight.
  • the second acquisition module includes:
  • a fourth determining unit configured to determine the angle between the ruler line and the edge of the partial contour
  • the fifth determining unit is configured to determine the angle difference according to the included angle.
  • the first generating module includes:
  • a sixth determining unit configured to determine the adjustment direction and the adjustment angle of the target object according to the angle difference
  • the generating unit is configured to generate an adjustment prompt according to the adjustment direction and the adjustment angle.
  • the device further includes:
  • the second generation module is configured to generate a completion prompt when it is detected that the angle difference between the ruler line and the part of the contour edge is less than a preset angle, and the completion prompt is used to indicate that the ruler line is different from the part
  • the angle difference between the contour edges is smaller than the preset angle
  • the fourth display module is used to display or play the completion prompt.
  • the device further includes:
  • the third acquiring module is used to acquire multiple designated edge points on the contour edge of the target object
  • the second determining module is configured to determine a line segment formed by connecting at least two designated edge points among the plurality of designated edge points;
  • a fourth obtaining module configured to obtain the angle difference between the ruler line and the line segment
  • the third generation module is configured to generate an adjustment prompt according to the angle difference
  • the fifth display module is used to display the adjustment prompt.
  • the target object and the ruler line are displayed on the screen at the same time.
  • the user can see the target object and the ruler line on the screen at the same time.
  • the ruler line it can be verified whether the target object is skewed. Fortunately compare the angle difference between the edge of the target object and the ruler line. According to the angle difference, it can be determined whether the target object is skewed.
  • the user can adjust the target object in real time, for example, Rotate the target object on the plane where the wall is located, the adjusted target object is captured by the mobile terminal in real time and displayed on the screen, and the ruler line is always displayed on the screen, so that the user can compare the target object in real time during the adjustment process
  • the angle difference between the edge of the target object and the scale line until the angle difference is less than a predetermined value, for example, until the angle difference is reduced to 0, that is, until the target object is hung upright.
  • a horizontal ruler line is taken as an example for illustration, but it is not used as a limitation to the protection scope of the present disclosure.
  • the content displayed on the screen of the mobile terminal in FIG. 3 includes the horizontal ruler line 4 and the target object 3.
  • the horizontal ruler line 4 is a dotted line, and the target object 3 is a rectangular picture.
  • the upper rectangular side of the target object 3 is parallel to the horizontal ruler line 4, if the target object 3 is hung skewed, the upper rectangular side of the target object 3 is aligned with the horizontal ruler line 4 It is not parallel.
  • the upper rectangular side of the target object 3 displayed on the screen is not parallel to the horizontal ruler line 4, that is, the target object 3 is hung skewed, and the user can manually adjust the target object 3, for example Rotate the target object 3 counterclockwise on the plane where the wall is located, so as to make the upper rectangular side of the target object 3 parallel to the horizontal ruler line 4 as much as possible.
  • the target object 3 is explained. Was hung up.
  • a user can implement the present disclosure by using a mobile terminal such as a mobile phone or a tablet computer, that is, taking an image including a target object, displaying the image on the screen of the mobile terminal, and then generating a ruler line on the image.
  • a mobile terminal such as a mobile phone or a tablet computer
  • the user can verify whether the target object is hung crooked according to the ruler line. If the target object is hung crooked, the user can manually adjust the target object until it is verified that the target object is hung upright according to the ruler line on the screen, and the mobile terminal passes through the whole process
  • the software can be realized without the user to purchase a level ruler, which can save costs.
  • FIG. 16 it is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present disclosure.
  • the mobile terminal 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
  • a radio frequency unit 501 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
  • Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 16 does not constitute a limitation on the mobile terminal.
  • the mobile terminal may include more or less components than those shown in the figure, or combine certain components, or different components. Layout.
  • mobile terminals include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop
  • the processor 510 is configured to shoot an image including the target object; display the image on the screen of the mobile terminal; generate a ruler line on the image, the ruler line including a horizontal ruler line and a vertical ruler line.
  • the target object and the ruler line are displayed on the screen at the same time.
  • the user can see the target object and the ruler line on the screen at the same time.
  • the ruler line it can be verified whether the target object is skewed. Fortunately compare the angle difference between the edge of the target object and the ruler line. According to the angle difference, it can be determined whether the target object is skewed.
  • the user can adjust the target object in real time, for example, Rotate the target object on the plane where the wall is located, the adjusted target object is captured by the mobile terminal in real time and displayed on the screen, and the ruler line is always displayed on the screen, so that the user can compare the target object in real time during the adjustment process
  • the angle difference between the edge of the target object and the scale line until the angle difference is less than a predetermined value, for example, until the angle difference is reduced to 0, that is, until the target object is hung upright.
  • a horizontal ruler line is taken as an example for illustration, but it is not used as a limitation to the protection scope of the present disclosure.
  • the content displayed on the screen of the mobile terminal in FIG. 3 includes the horizontal ruler line 4 and the target object 3.
  • the horizontal ruler line 4 is a dotted line, and the target object 3 is a rectangular picture.
  • the upper rectangular side of the target object 3 is parallel to the horizontal ruler line 4, if the target object 3 is hung skewed, the upper rectangular side of the target object 3 is aligned with the horizontal ruler line 4 It is not parallel.
  • the upper rectangular side of the target object 3 displayed on the screen is not parallel to the horizontal ruler line 4, that is, the target object 3 is hung skewed, and the user can manually adjust the target object 3, for example Rotate the target object 3 counterclockwise on the plane where the wall is located, so as to make the upper rectangular side of the target object 3 parallel to the horizontal ruler line 4 as much as possible.
  • the target object 3 is explained. Was hung up.
  • a user can implement the present disclosure by using a mobile terminal such as a mobile phone or a tablet computer, that is, taking an image including a target object, displaying the image on the screen of the mobile terminal, and then generating a ruler line on the image.
  • a mobile terminal such as a mobile phone or a tablet computer
  • the user can verify whether the target object is hung crooked according to the ruler line. If the target object is hung crooked, the user can manually adjust the target object until it is verified that the target object is hung upright according to the ruler line on the screen, and the mobile terminal passes through the whole process
  • the software can be realized without the user to purchase a level ruler, which can save costs.
  • the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 510; Uplink data is sent to the base station.
  • the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
  • the mobile terminal provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 503 may convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 504 is used to receive audio or video signals.
  • the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042.
  • the graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 506.
  • the image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502.
  • the microphone 5042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
  • the mobile terminal 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 5061 and the display panel 5061 when the mobile terminal 500 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 506 is used to display information input by the user or information provided to the user.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 507 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile terminal.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072.
  • the touch panel 5071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operating).
  • the touch panel 5071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed.
  • the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 507 may also include other input devices 5072.
  • other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 5071 can be overlaid on the display panel 5061.
  • the touch panel 5071 detects a touch operation on or near it, it transmits it to the processor 510 to determine the type of the touch event.
  • the type of event provides corresponding visual output on the display panel 5061.
  • the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated
  • the implementation of the input and output functions of the mobile terminal is not specifically limited here.
  • the interface unit 508 is an interface for connecting an external device with the mobile terminal 500.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the mobile terminal 500 or can be used to connect to the mobile terminal 500 and external Transfer data between devices.
  • the memory 509 can be used to store software programs and various data.
  • the memory 509 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 510 is the control center of the mobile terminal. It uses various interfaces and lines to connect the various parts of the entire mobile terminal, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
  • the processor 510 may include one or more processing units; optionally, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
  • the mobile terminal 500 may also include a power source 511 (such as a battery) for supplying power to various components.
  • a power source 511 such as a battery
  • the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the mobile terminal 500 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present disclosure further provides a mobile terminal, including a processor 510, a memory 509, a computer program stored in the memory 509 and running on the processor 510, and the computer program is executed by the processor 510
  • a mobile terminal including a processor 510, a memory 509, a computer program stored in the memory 509 and running on the processor 510, and the computer program is executed by the processor 510
  • the embodiments of the present disclosure also provide a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the foregoing information processing method embodiment is realized, and the same technology can be achieved. The effect, to avoid repetition, will not be repeated here.
  • the computer readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk or optical disk, etc.
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
  • the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present disclosure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Analysis (AREA)
  • Telephone Function (AREA)

Abstract

一种信息处理方法及装置,目标物体和标尺线同时显示在屏幕上,用户在屏幕上可以同时看到目标物体和标尺线,根据标尺线可以验证目标物体是否被挂歪,在目标物体被挂歪的情况下,用户可以实时调整目标物体,实时调整目标物体可以是在墙面所在的平面上旋转目标物体,调整后的目标物体实时被移动终端拍摄并显示在屏幕上,且屏幕上始终显示着标尺线,如此使得用户在调整目标物体的过程中可以实时对比出目标物体的边缘与标尺线之间的角度差异,直至角度差异小于预定的值为止,即,直至目标物体被挂正为止。

Description

信息处理方法及装置
相关申请的交叉引用
本申请主张在2019年08月19日在中国提交的中国专利申请号No.201910765884.2的优先权,其全部内容通过引用包含于此。
技术领域
本公开涉及计算机技术领域,特别是涉及一种信息处理方法及装置。
背景技术
在生活中,当用户需要在家里的墙上挂尺寸较大的字画时,可以在墙上钉一个钩子,然后将字画通过绳子挂在钩子上。
但是,由于人的生理特性的限制以及大部分用户的专业水平有限,仅仅凭借肉眼感觉,大部分用户可能会将字画挂歪,例如图1所示的情形,进而影响美观。
其中,在图1中,在墙1上钉一个钩子2,然后在钩子2上通过绳子将字画3挂在墙1上,但是字画3被挂歪了,其上下两个边缘并不是水平的,影响美观。
为了避免出现这种问题,用户可以购买专业设备,例如水平标尺仪,借助水平标尺仪将字画挂正。但是,购买诸如水平标尺仪等专业设备会增加成本。
发明内容
为了在不增加硬件成本的情况下使得用户能够将字画挂正,本公开示出了一种信息处理方法及装置。
第一方面,本公开示出了一种信息处理方法,所述方法包括:
获取包括目标物体的图像;
在移动终端的屏幕上显示所述图像;
在所述图像上显示基于重力传感器生成的标尺线,所述标尺线包括水平标尺线或垂直标尺线。
在一个可选地实现方式中,所述在所述图像上显示基于重力传感器生成的标尺线,包括:
获取用户在所述图像上的操作;
在所述操作所在的位置显示所述标尺线。
在一个可选地实现方式中,所述在所述图像上显示基于重力传感器生成的标尺线,包括:
识别所述图像中的所述目标物体的边缘轮廓;
在所述边缘轮廓的预设位置处显示所述标尺线。
在一个可选地实现方式中,所述识别所述图像中的所述目标物体的边缘轮廓,包括:
基于轮廓检测算法检测所述图像中的所述边缘轮廓。
在一个可选地实现方式中,所述识别所述图像中的所述目标物体的边缘轮廓,包括:
基于图像识别算法识别所述图像中的所述目标物体;
获取所述目标物体的边缘轮廓。
在一个可选地实现方式中,所述识别图像中的所述目标物体的边缘轮廓,包括:
接收用户在所述图像中描绘的所述目标物体的候选边缘轮廓;
在所述图像中,基于轮廓检测算法对所述候选边缘轮廓修正,得到所述目标物体的边缘轮廓。
在一个可选地实现方式中,所述在所述图像上显示基于重力传感器生成的标尺线,包括:
获取所述移动终端的屏幕水平线;
在所述屏幕所在的平面上,确定所述移动终端相对于预设重力方向的倾斜角度;
根据所述屏幕水平线和所述倾斜角度确定水平标尺线;
在所述屏幕上显示所述水平标尺线。
在一个可选地实现方式中,所述在所述屏幕所在的平面上,确定所述移动终端相对于预设重力方向的倾斜角度,包括:
在所述屏幕所在的平面上,确定所述移动终端相对于预设重力方向的多个候选倾斜角度;
根据多个候选倾斜角度确定所述移动终端相对于预设重力方向的倾斜角度。
在一个可选地实现方式中,所述方法还包括:
在所述目标物体的轮廓边缘中,确定直线的部分轮廓边缘;
获取所述标尺线与所述部分轮廓边缘之间的角度差异;
根据所述角度差异生成调整提示;
显示所述调整提示。
在一个可选地实现方式中,所述在所述目标物体的轮廓边缘中,确定直线的部分轮廓边缘,包括:
在所述目标物体的轮廓边缘中,确定出多段为直线的部分轮廓边缘;
在多段为直线的部分轮廓边缘中,选择与所述标尺线之间夹角最小的部分轮廓边缘。
在一个可选地实现方式中,所述获取所述标尺线与所述部分轮廓边缘之间的角度差异,包括:
确定所述标尺线与所述部分轮廓边缘之间的夹角;
根据所述夹角确定所述角度差异。
在一个可选地实现方式中,所述根据所述角度差异生成调整提示,包括:
根据所述角度差异确定所述目标物体的调整方向以及调整角度;
根据所述调整方向以及所述调整角度生成调整提示。
在一个可选地实现方式中,所述方法还包括:
当检测到所述标尺线与所述部分轮廓边缘之间的角度差异小于预设角度时,生成完成提示,所述完成提示用于指示所述标尺线与所述部分轮廓边缘之间的角度差异小于预设角度;
显示所述完成提示。
在一个可选地实现方式中,所述方法还包括:
获取在所述目标物体的轮廓边缘上的多个指定边缘点;
确定所述多个指定边缘点中的至少两个指定边缘点连接成的线段;
获取所述标尺线与所述线段之间的角度差异;
根据所述角度差异生成调整提示;
显示所述调整提示。
第二方面,本公开示出了一种信息处理装置,其特征在于,所述装置包括:
第一获取模块,用于获取包括目标物体的图像;
第一显示模块,用于在移动终端的屏幕上显示所述图像;
第二显示模块,用于在所述图像上显示基于重力传感器生成的标尺线,所述标尺线包括水平标尺线或垂直标尺线。
在一个可选地实现方式中,所述第二显示模块包括:
第一获取单元,用于获取用户在所述图像上的操作;
第一显示单元,用于在所述操作所在的位置显示所述标尺线。
在一个可选地实现方式中,所述第二显示模块包括:
识别单元,用于识别所述图像中的所述目标物体的边缘轮廓;
第二显示单元,用于在所述边缘轮廓的预设位置处显示所述标尺线。
在一个可选地实现方式中,所述识别单元包括:
检测子单元,用于基于轮廓检测算法检测所述图像中的所述边缘轮廓。
在一个可选地实现方式中,所述识别单元包括:
识别子单元,用于基于图像识别算法识别所述图像中的所述目标物体;
获取子单元,用于获取所述目标物体的边缘轮廓。
在一个可选地实现方式中,所述识别单元包括:
接收子单元接收用户在所述图像中描绘的所述目标物体的候选边缘轮廓;
修正子单元,用于在所述图像中,基于轮廓检测算法对所述候选边缘轮廓修正,得到所述目标物体的边缘轮廓。
在一个可选地实现方式中,所述第二显示模块包括:
第二获取单元,用于获取所述移动终端的屏幕水平线;
第一确定单元,用于在所述屏幕所在的平面上,确定所述移动终端相对于预设重力方向的倾斜角度;
第二确定单元,用于根据所述屏幕水平线和所述倾斜角度确定水平标尺线;
第三显示单元,用于在所述屏幕上显示所述水平标尺线。
在一个可选地实现方式中,所述第一确定单元包括:
第一确定子单元,用于在所述屏幕所在的平面上,确定所述移动终端相对于预设重力方向的多个候选倾斜角度;
第二确定子单元,用于根据多个候选倾斜角度确定所述移动终端相对于预设重力方向的倾斜角度。
在一个可选地实现方式中,所述装置还包括:
第一确定模块,用于在所述目标物体的轮廓边缘中,确定直线的部分轮廓边缘;
第二获取模块,用于获取所述标尺线与所述部分轮廓边缘之间的角度差异;
第一生成模块,用于根据所述角度差异生成调整提示;
第三显示模块,用于显示所述调整提示。
在一个可选地实现方式中,所述第一确定模块包括:
第三确定单元,用于在所述目标物体的轮廓边缘中,确定出多段为直线的部分轮廓边缘;
选择单元,用于在多段为直线的部分轮廓边缘中,选择与所述标尺线之间夹角最小的部分轮廓边缘。
在一个可选地实现方式中,所述第二获取模块包括:
第四确定单元,用于确定所述标尺线与所述部分轮廓边缘之间的夹角;
第五确定单元,用于根据所述夹角确定所述角度差异。
在一个可选地实现方式中,所述第一生成模块包括:
第六确定单元,用于根据所述角度差异确定所述目标物体的调整方向以及调整角度;
生成单元,用于根据所述调整方向以及所述调整角度生成调整提示。
在一个可选地实现方式中,所述装置还包括:
第二生成模块,用于当检测到所述标尺线与所述部分轮廓边缘之间的角度差异小于预设角度时,生成完成提示,所述完成提示用于指示所述标尺线与所述部分轮廓边缘之间的角度差异小于预设角度;
第四显示模块,用于显示或播放所述完成提示。
在一个可选地实现方式中,所述装置还包括:
第三获取模块,用于获取在所述目标物体的轮廓边缘上的多个指定边缘点;
第二确定模块,用于确定所述多个指定边缘点中的至少两个指定边缘点连接成的线段;
第四获取模块,用于获取所述标尺线与所述线段之间的角度差异;
第三生成模块,用于根据所述角度差异生成调整提示;
第五显示模块,用于显示所述调整提示。
第三方面,本公开示出了一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的信息处理方法的步骤。
第四方面,本公开示出了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的信息处理方法的步骤。
在本公开中,目标物体和标尺线同时显示在屏幕上,用户在屏幕上可以同时看到目标物体和标尺线,根据标尺线可以校验验证目标物体是否被挂歪,例如,用户在屏幕上可以很轻易地对比出目标物体的边缘与标尺线之间的角度差异,根据该角度差异角度可以确定出目标物体是否被挂歪,在目标物体被挂歪的情况下,用户可以实时调整目标物体,例如,在墙面所在的平面上旋转目标物体,调整后的目标物体实时被移动终端拍摄并显示在屏幕上,且屏幕上始终显示着标尺线,如此使得用户在调整目标 物体时的过程中可以实时对比对比出目标物体的边缘与标尺线之间的角度差异,直至该角度差异小于预定的值为止,例如,直至该角度差异缩小为0为止,也即,直至目标物体被挂正为止。整个过程中是移动终端通过软件执行的即可实现,无需用户购买水平标尺仪,从而可以节省成本。
附图说明
图1是相关技术示出的一种场景示意图。
图2是本公开示出的一种信息处理方法的步骤流程图。
图3是本公开示出的一种场景示意图。
图4是本公开示出的一种场景示意图。
图5是本公开示出的一种生成标尺线的方法的步骤流程图。
图6是本公开示出的一种生成标尺线的方法的步骤流程图。
图7是本公开示出的一种生成标尺线的方法的步骤流程图。
图8是本公开示出的一种场景示意图。
图9是本公开示出的一种场景示意图。
图10是本公开示出的一种场景示意图。
图11是本公开示出的一种场景示意图。
图12是本公开示出的一种信息处理方法的步骤流程图。
图13是本公开示出的一种场景示意图。
图14是本公开示出的一种信息处理方法的步骤流程图。
图15是本公开的一种信息处理装置的结构框图。
图16是本公开的一种移动终端的硬件结构示意图。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
参照图2,示出了本公开一种信息处理方法的步骤流程图,该方法应用于移动终端中,该方法包括:
在步骤S101中,获取包括目标物体的图像;
在本公开中,用户可以先将目标物体挂在墙上,然后确定目标物体是否被挂歪,在目标物体被挂歪的情况下,可以调整目标物体,直至目标物体被挂正为止。具体地,在确定目标物体是否被挂歪时,用户可以控制移动终端拍摄包括目标物体的图像,例如,用户手握移动终端,并将移动终端的摄像头对准目标物体,之后移动终端可以使用摄像头拍摄包括目标物体的图像,或者,控制移动终端不拍摄包括目标物体的图像,而是在屏幕上预览包括目标物体的图像等,然后执行步骤S102。
在步骤S102中,在移动终端的屏幕上显示该图像;
移动终端在拍摄得到包括目标物体的图像之后,可以在移动终端的屏幕上显示该图像,如此,用户就可以在移动终端的屏幕上看到该图像。
在步骤S103中,在该图像上显示基于重力传感器生成的标尺线,标尺线包括水平 标尺线或垂直标尺线。
移动终端可以在屏幕上显示的该图像上生成至少一条标尺线,例如,至少一条水平标尺线,或者,至少一条垂直标尺线,或者,至少一条水平标尺线以及至少一条垂直标尺线等。
在本公开中,目标物体和标尺线同时显示在屏幕上,用户在屏幕上可以同时看到目标物体和标尺线,根据标尺线可以验证目标物体是否被挂歪,例如,用户在屏幕上可以很轻易地对比出目标物体的边缘与标尺线之间的角度差异,根据该角度差异可以确定出目标物体是否被挂歪,在目标物体被挂歪的情况下,用户可以实时调整目标物体,例如,在墙面所在的平面上旋转目标物体,调整后的目标物体实时被移动终端拍摄并显示在屏幕上,且屏幕上始终显示着标尺线,如此使得用户在调整目标物体的过程中可以实时对比出目标物体的边缘与标尺线之间的角度差异,直至该角度差异小于预定的值为止,例如,直至该角度差异缩小为0为止,也即,直至目标物体被挂正为止。
例如,参见图3,以水平标尺线为例进行举例说明,但不作为对本公开保护范围的限制,其中,图3中的移动终端的屏幕上显示的内容包括水平标尺线4和目标物体3,水平标尺线4为虚线,目标物体3为一副矩形的画。
如果目标物体3被挂正,则目标物体3的上侧的矩形边与水平标尺线4是平行的,如果目标物体3被挂歪,则目标物体3的上侧的矩形边与水平标尺线4是不平行的。
然而,从图3中可以看出,屏幕上显示的目标物体3的上侧的矩形边与水平标尺线4并未平行,即,目标物体3被挂歪,用户可以手动调整目标物体3,例如在墙面所在的平面上逆时针旋转目标物体3,以尽可能使得目标物体3的上侧的矩形边与水平标尺线4平行,例如,得到图4所示的平行状态,则说明目标物体3被挂正。
其中,用户使用手机或者平板电脑等移动终端就可以实现本公开,即拍摄包括目标物体的图像,并在移动终端的屏幕上显示该图像,然后在该图像上生成标尺线。以使用户根据标尺线可以验证目标物体是否被挂歪,如果目标物体被挂歪,用户可以手动调整目标物体,直至在屏幕上根据标尺线验证出目标物体被挂正为止,整个过程中移动终端通过软件即可实现,无需用户购买水平标尺仪,从而可以节省成本。
有时候,用户在屏幕上对比标尺线与目标物体的边缘之间的角度差异时,在标尺线距离屏幕上的目标物体较远的情况下,会增加用户的在对比时的难度,进而可能会降低对比出的结果的准确度。
因此,为了提高对比出的结果的准确度,在本公开另一个实施例中,可以支持用户自己在屏幕上指定标尺线的生成位置,用户可以根据自己的习惯和喜好来在移动终端上指定方便自己对比的位置,以使移动终端在该位置处生成标尺线。
具体的,参见图5,步骤S103包括:
在步骤S201中,获取用户在该图像上的操作;
在本公开中,用户可以在屏幕显示的目标物体上点击一个位置,移动终端获取用户点击的位置,并作为该指定位置。其中,可以选择目标物体的边缘位置,例如,在目标物体的形状为矩形形状时,可以选择目标物体的上侧的矩形边的位置。
在步骤S202中,在该操作所在的位置显示标尺线。
然而,在本公开中,整个过程用户往往都需要一直手持移动终端,如果还需要用户手动在移动终端上指定位置,则会增加用户的操作负担,进而会导致用户拿不稳移动终端,这样移动终端就会被晃动,影响用户对比标尺线与目标物体的边缘之间的角度差异,仍旧可能会降低对比出的结果的准确度。
因此,为了提高对比出的结果的准确度,在申请另一实施例中,移动终端可以自动确定出标尺线的生成位置,且确定出的生成位置适合用户进行对比。
例如,参见图6,步骤S103包括:
在步骤S301中,识别该图像中的目标物体的边缘轮廓;
在一个示例中,可以基于轮廓检测算法检测该图像中的目标物体的边缘轮廓。例如,对将该图像二值化,得到二值化图像,然后使用sobel算子(Sobel operator,索贝尔算子)检测二值化图像中的目标物体的边缘轮廓。
在另一个示例中,可以基于图像识别算法识别该图像中的目标物体,然后获取目标物体的边缘轮廓。
然而,有时候目标物体周边可能还挂着有其他物体,如此,移动终端拍摄的图像中除了包括目标物体之外,还可能包括其他物体,移动终端在启动检测边缘轮廓时,有时候可能会将其他物体的边缘轮廓误检测为目标物体的边缘轮廓,如此之后就会针对其他物体的边缘轮廓生成标尺线,该标尺线便于检测其他物体是否被挂歪,并不利于对比检测目标物体是否被挂歪。
如此,为了使得移动终端能够生成针对目标物体的标尺线,在又一个示例中,用户可以在该图像中描绘目标物体的候选边缘轮廓,移动终端接收用户在该图像中描绘的目标物体的候选边缘轮廓,然后在该图像中,基于轮廓检测算法对候选边缘轮廓修正,得到目标物体的边缘轮廓。
在步骤S302中,在该边缘轮廓的预设位置处显示标尺线。
在本公开中,移动终端的屏幕往往是矩形的,移动终端生成的水平标尺线与移动终端的屏幕的上侧矩形边之间可以是平行的,当用户手握移动终端时如果是移动终端握正,则移动终端的屏幕的上侧矩形边是水平的,标尺线也是水平的,进而可以通过标尺线验证目标物体是否被挂正。
然而,有时候用户手握移动终端时可能会将移动终端拿歪以使移动终端倾斜,此时移动终端的屏幕的上侧的矩形边并不是水平的,标尺线也是水平的,在这种情况下,用户根据并不水平的标尺线来验证目标物体是否被挂正时,往往验证的结果是不准确的。
因此,为了使得验证的结果能够准确,在本公开另一实施例中,参见图7,步骤S103包括:
在步骤S401中,获取移动终端的屏幕水平线;
在本公开中,移动终端的屏幕通常为矩形,如此,移动终端的屏幕水平线包括:移动终端的屏幕的上侧的矩形边,或者,在屏幕上的与屏幕的上侧的矩形边平行的线段。
在步骤S402中,在屏幕所在的平面上,确定移动终端相对于预设重力方向的倾斜 角度;
在本公开中,预设重力方向为客户端上的指向地球的地心的方向。
在本公开中,移动终端中设置有重力传感器,重力传感器通常为三轴传感器,参见图8,事先可以在移动终端中绘制一个三维坐标系,
移动终端读取重力传感器检测出的在X和Y两个坐标轴上的信息,进而可推算出移动终端相对于水平位置的角度。
例如,如图9所示,假设移动终端处于垂直正握位置,受重力影响,Y轴的值为9.8,X轴的值为0。
如图10所示,若移动终端稍有倾斜,例如,倾斜角度为在图9所示的基础上逆时针旋转α°,则Y轴的正方向与重力方向角度为α。根据受力的情况,X轴正方向的值为x=sinα*9.8,Y轴正方向的值为y=cosα*9.8。若x的值为正,则为移动终端是顺时针旋转α度,若x的值为负,则移动终端是逆时针旋转α度。
如此,可以推算出重力线与屏幕水平的角度α的值,α=arcsin(x/9.8),或者α=arccos(y/9.8)。
在一个实现方式中,可以取两者的平均值,以抵消误差。
在本公开中,在屏幕所在的平面上,确定移动终端相对于预设重力方向的多个候选倾斜角度;根据多个候选倾斜角度确定移动终端相对于预设重力方向的倾斜角度,例如,计算多个候选倾斜角度之间的平均值,得到移动终端相对于预设重力方向的倾斜角度,以抵消测量误差。
在步骤S403中,根据屏幕水平线和倾斜角度确定水平标尺线;
例如,参见图11,假设用户手握移动终端是逆时针旋转了α°,则可以将屏幕水平线5顺时针旋转α°,得到水平标尺线4。
在步骤S404中,在屏幕上显示水平标尺线。
在前述实施例中,在该图像上生成标尺线之后,用户可以在屏幕上对比目标物体的边缘与标尺线之间是否存在角度差异,并在存在角度差异的情况下人工调节目标物体。
然而,由于整个过程中用户需要手持移动终端,且由于人的生理特定,用户手持移动终端时会存在抖动移动终端的现象,这样不便于用户目标物体的边缘与标尺线之间是否存在角度差异,也可能出现对比结果不准确的问题。
因此,为了避免出现上述问题,移动终端可以自动验证目标物体的边缘与标尺线之间是否存在角度差异,如果存在角度差异,则对用户提示,如此用户无需自己亲自验证就可以得到是否需要调整目标物体的结论。
具体地,参见图12,该方法还包括:
在步骤S501中,在目标物体的轮廓边缘中,确定直线的部分轮廓边缘;
在本公开中,在目标物体的轮廓边缘中,确定出多段为直线的部分轮廓边缘,例如,目标物体为矩形时,可以确定出四个直线的轮廓边缘,其中,可以使用霍夫变换(Hough Transform)技术来确定出多段为直线的部分轮廓边缘;然后在多段为直线的部分轮廓边缘中,选择与标尺线之间夹角最小的部分轮廓边缘,以方便对比标尺线与轮廓边缘之间的角度差异。
在步骤S502中,获取标尺线与部分轮廓边缘之间的角度差异;
例如,可以确定标尺线与部分轮廓边缘之间的夹角,然后根据该夹角确定角度差异,例如,将该夹角作为该角度差异。
在步骤S503中,根据该角度差异生成调整提示;
在本公开中,根据该角度差异确定目标物体的调整方向以及调整角度;根据该调整方向以及该调整角度生成调整提示。
在步骤S504中,显示该调整提示。
例如,假设角度差异为α°,将目标物体逆时针旋转α°就可以将目标物体的轮廓边缘与标尺线之间的角度差异缩小为0,如此,参见图13,可以在屏幕上显示调整方向和调整角度。
进一步地,在用户根据该调整提示调整目标物体的过程中,移动终端可以实时检测标尺线与部分轮廓边缘之间的角度差异,并判断该角度差异小于预设角度时,生成完成提示,完成提示用于指示标尺线与部分轮廓边缘之间的角度差异小于预设角度,目标物体已经被挂正,无需再调整目标物体;显示完成提示,用户根据完成提示就可以获知目标物体已经被挂正,从而可以停止调整目标物体。
在前述实施例中,在该图像上生成标尺线之后,用户可以在屏幕上对比目标物体的边缘与标尺线之间是否存在角度差异,并在存在角度差异的情况下人工调节目标物体。
然而,由于整个过程中用户需要手持移动终端,且由于人的生理特定,用户手持移动终端时会存在抖动移动终端的现象,这样不便于用户目标物体的边缘与标尺线之间是否存在角度差异,也可能出现对比结果不准确的问题。
因此,为了避免出现上述问题,移动终端可以自动验证目标物体的边缘与标尺线之间是否存在角度差异,如果存在角度差异,则对用户提示,如此用户无需自己亲自验证就可以得到是否需要调整目标物体的结论。
具体地,参见图14,该方法还包括:
在步骤S601中,获取在目标物体的轮廓边缘上的多个指定边缘点;
有时候,目标物体并不具有为直线的轮廓边缘,例如,目标物体是一个布娃娃,在这种情况下,用户可以通过肉眼观察屏幕上显示的目标物体,如果目标物体是对称的,则可以在目标物体的轮廓上选择对称的两个边缘点,移动终端获取用户选择的两个边缘点,在两个边缘点的连线是水平状态的情况下,目标物体是被挂正的。
在步骤S602中,确定多个指定边缘点中的至少两个指定边缘点连接成的线段;
在步骤S603中,获取标尺线与该线段之间的角度差异;
例如,可以确定标尺线与该线段之间的夹角,然后根据该夹角确定角度差异,例如,将该夹角作为该角度差异。
在步骤S604中,根据该角度差异生成该调整提示;
在本公开中,根据该角度差异确定目标物体的调整方向以及调整角度;根据该调整方向以及该调整角度生成调整提示。
在步骤S605中,显示该调整提示。
例如,假设角度差异为α°,将目标物体逆时针旋转α°就可以将该线段与标尺 线之间的角度差异缩小为0,如此,参见图13,可以在屏幕上显示调整方向和调整角度。
进一步地,在用户根据该调整提示调整目标物体的过程中,移动终端可以实时检测标尺线与该线段之间的角度差异,并判断该角度差异小于预设角度时,生成完成提示,完成提示用于指示标尺线与该线段之间的角度差异小于预设角度,目标物体已经被挂正,无需再调整目标物体;显示或播放完成提示,用户根据完成提示就可以获知目标物体已经被挂正,从而可以停止调整目标物体。
参照图15,示出了本公开的一种信息处理装置的结构框图,该装置具体可以包括如下模块:
第一获取模块11,用于获取包括目标物体的图像;
第一显示模块12,用于在移动终端的屏幕上显示所述图像;
第二显示模块13,用于在所述图像上显示基于重力传感器生成的标尺线,所述标尺线包括水平标尺线或垂直标尺线。
在一个可选地实现方式中,所述第二显示模块13包括:
第一获取单元,用于获取用户在所述图像上的操作;
第一显示单元,用于在所述操作所在的位置显示所述标尺线。
在一个可选地实现方式中,所述第二显示模块13包括:
识别单元,用于识别所述图像中的所述目标物体的边缘轮廓;
第二显示单元,用于在所述边缘轮廓的预设位置处显示所述标尺线。
在一个可选地实现方式中,所述识别单元包括:
检测子单元,用于基于轮廓检测算法检测所述图像中的所述边缘轮廓。
在一个可选地实现方式中,所述识别单元包括:
识别子单元,用于基于图像识别算法识别所述图像中的所述目标物体;
获取子单元,用于获取所述目标物体的边缘轮廓。
在一个可选地实现方式中,所述识别单元包括:
接收子单元接收用户在所述图像中描绘的所述目标物体的候选边缘轮廓;
修正子单元,用于在所述图像中,基于轮廓检测算法对所述候选边缘轮廓修正,得到所述目标物体的边缘轮廓。
在一个可选地实现方式中,所述第二显示模块13包括:
第二获取单元,用于获取所述移动终端的屏幕水平线;
第一确定单元,用于在所述屏幕所在的平面上,确定所述移动终端相对于预设重力方向的倾斜角度;
第二确定单元,用于根据所述屏幕水平线和所述倾斜角度确定水平标尺线;
第三显示单元,用于在所述屏幕上显示所述水平标尺线。
在一个可选地实现方式中,所述第一确定单元包括:
第一确定子单元,用于在所述屏幕所在的平面上,确定所述移动终端相对于预设重力方向的多个候选倾斜角度;
第二确定子单元,用于根据多个候选倾斜角度确定所述移动终端相对于预设重力方向的倾斜角度。
在一个可选地实现方式中,所述装置还包括:
第一确定模块,用于在所述目标物体的轮廓边缘中,确定直线的部分轮廓边缘;
第二获取模块,用于获取所述标尺线与所述部分轮廓边缘之间的角度差异;
第一生成模块,用于根据所述角度差异生成调整提示;
第三显示模块,用于显示所述调整提示。
在一个可选地实现方式中,所述第一确定模块包括:
第三确定单元,用于在所述目标物体的轮廓边缘中,确定出多段为直线的部分轮廓边缘;
选择单元,用于在多段为直线的部分轮廓边缘中,选择与所述标尺线之间夹角最小的部分轮廓边缘。
在一个可选地实现方式中,所述第二获取模块包括:
第四确定单元,用于确定所述标尺线与所述部分轮廓边缘之间的夹角;
第五确定单元,用于根据所述夹角确定所述角度差异。
在一个可选地实现方式中,所述第一生成模块包括:
第六确定单元,用于根据所述角度差异确定所述目标物体的调整方向以及调整角度;
生成单元,用于根据所述调整方向以及所述调整角度生成调整提示。
在一个可选地实现方式中,所述装置还包括:
第二生成模块,用于当检测到所述标尺线与所述部分轮廓边缘之间的角度差异小于预设角度时,生成完成提示,所述完成提示用于指示所述标尺线与所述部分轮廓边缘之间的角度差异小于预设角度;
第四显示模块,用于显示或播放所述完成提示。
在一个可选地实现方式中,所述装置还包括:
第三获取模块,用于获取在所述目标物体的轮廓边缘上的多个指定边缘点;
第二确定模块,用于确定所述多个指定边缘点中的至少两个指定边缘点连接成的线段;
第四获取模块,用于获取所述标尺线与所述线段之间的角度差异;
第三生成模块,用于根据所述角度差异生成调整提示;
第五显示模块,用于显示所述调整提示。
在本公开中,目标物体和标尺线同时显示在屏幕上,用户在屏幕上可以同时看到目标物体和标尺线,根据标尺线可以验证目标物体是否被挂歪,例如,用户在屏幕上可以很轻易地对比出目标物体的边缘与标尺线之间的角度差异,根据该角度差异可以确定出目标物体是否被挂歪,在目标物体被挂歪的情况下,用户可以实时调整目标物体,例如,在墙面所在的平面上旋转目标物体,调整后的目标物体实时被移动终端拍摄并显示在屏幕上,且屏幕上始终显示着标尺线,如此使得用户在调整目标物体的过程中可以实时对比出目标物体的边缘与标尺线之间的角度差异,直至该角度差异小于预定的值为止,例如,直至该角度差异缩小为0为止,也即,直至目标物体被挂正为止。
例如,参见图3,以水平标尺线为例进行举例说明,但不作为对本公开保护范围 的限制,其中,图3中的移动终端的屏幕上显示的内容包括水平标尺线4和目标物体3,水平标尺线4为虚线,目标物体3为一副矩形的画。
如果目标物体3被挂正,则目标物体3的上侧的矩形边与水平标尺线4是平行的,如果目标物体3被挂歪,则目标物体3的上侧的矩形边与水平标尺线4是不平行的。
然而,从图3中可以看出,屏幕上显示的目标物体3的上侧的矩形边与水平标尺线4并未平行,即,目标物体3被挂歪,用户可以手动调整目标物体3,例如在墙面所在的平面上逆时针旋转目标物体3,以尽可能使得目标物体3的上侧的矩形边与水平标尺线4平行,例如,得到图4所示的平行状态,则说明目标物体3被挂正。
其中,用户使用手机或者平板电脑等移动终端就可以实现本公开,即拍摄包括目标物体的图像,并在移动终端的屏幕上显示该图像,然后在该图像上生成标尺线。以使用户根据标尺线可以验证目标物体是否被挂歪,如果目标物体被挂歪,用户可以手动调整目标物体,直至在屏幕上根据标尺线验证出目标物体被挂正为止,整个过程中移动终端通过软件即可实现,无需用户购买水平标尺仪,从而可以节省成本。
实施例五
参照图16,为实现本公开各个实施例的一种移动终端的硬件结构示意图。
该移动终端500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图16中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
处理器510,用于拍摄包括目标物体的图像;在移动终端的屏幕上显示所述图像;在所述图像上生成标尺线,所述标尺线包括水平标尺线和垂直标尺线。
在本公开中,目标物体和标尺线同时显示在屏幕上,用户在屏幕上可以同时看到目标物体和标尺线,根据标尺线可以验证目标物体是否被挂歪,例如,用户在屏幕上可以很轻易地对比出目标物体的边缘与标尺线之间的角度差异,根据该角度差异可以确定出目标物体是否被挂歪,在目标物体被挂歪的情况下,用户可以实时调整目标物体,例如,在墙面所在的平面上旋转目标物体,调整后的目标物体实时被移动终端拍摄并显示在屏幕上,且屏幕上始终显示着标尺线,如此使得用户在调整目标物体的过程中可以实时对比出目标物体的边缘与标尺线之间的角度差异,直至该角度差异小于预定的值为止,例如,直至该角度差异缩小为0为止,也即,直至目标物体被挂正为止。
例如,参见图3,以水平标尺线为例进行举例说明,但不作为对本公开保护范围的限制,其中,图3中的移动终端的屏幕上显示的内容包括水平标尺线4和目标物体3,水平标尺线4为虚线,目标物体3为一副矩形的画。
如果目标物体3被挂正,则目标物体3的上侧的矩形边与水平标尺线4是平行的,如果目标物体3被挂歪,则目标物体3的上侧的矩形边与水平标尺线4是不平行的。
然而,从图3中可以看出,屏幕上显示的目标物体3的上侧的矩形边与水平标尺线4并未平行,即,目标物体3被挂歪,用户可以手动调整目标物体3,例如在墙面所在的平面上逆时针旋转目标物体3,以尽可能使得目标物体3的上侧的矩形边与水平标尺线4平行,例如,得到图4所示的平行状态,则说明目标物体3被挂正。
其中,用户使用手机或者平板电脑等移动终端就可以实现本公开,即拍摄包括目标物体的图像,并在移动终端的屏幕上显示该图像,然后在该图像上生成标尺线。以使用户根据标尺线可以验证目标物体是否被挂歪,如果目标物体被挂歪,用户可以手动调整目标物体,直至在屏幕上根据标尺线验证出目标物体被挂正为止,整个过程中移动终端通过软件即可实现,无需用户购买水平标尺仪,从而可以节省成本。
应理解的是,本公开实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。
移动终端通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与移动终端500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。
移动终端500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在移动终端500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光 二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。
用户输入单元507可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图5中,触控面板5071与显示面板5061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现移动终端的输入和输出功能,具体此处不做限定。
接口单元508为外部装置与移动终端500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端500内的一个或多个元件或者可以用于在移动终端500和外部装置之间传输数据。
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器510是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器510可包括一个或多个处理单元;可选地,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。
移动终端500还可以包括给各个部件供电的电源511(比如电池),可选地,电 源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,移动终端500包括一些未示出的功能模块,在此不再赘述。
可选地,本公开实施例还提供一种移动终端,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的计算机程序,该计算机程序被处理器510执行时实现上述信息处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述信息处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。

Claims (10)

  1. 一种信息处理方法,所述方法包括:
    获取包括目标物体的图像;
    在移动终端的屏幕上显示所述图像;
    在所述图像上显示基于重力传感器生成的标尺线,所述标尺线包括水平标尺线或垂直标尺线。
  2. 根据权利要求1所述的方法,其中,所述在所述图像上显示基于重力传感器生成的标尺线,包括:
    获取用户在所述图像上的操作;
    在所述操作所在的位置显示所述标尺线。
  3. 根据权利要求1所述的方法,其中,所述在所述图像上显示基于重力传感器生成的标尺线,包括:
    识别所述图像中的所述目标物体的边缘轮廓;
    在所述边缘轮廓的预设位置处显示所述标尺线。
  4. 根据权利要求1所述的方法,其中,所述在所述图像上显示基于重力传感器生成的标尺线,包括:
    获取所述移动终端的屏幕水平线;
    在所述屏幕所在的平面上,确定所述移动终端相对于预设重力方向的倾斜角度;
    根据所述屏幕水平线和所述倾斜角度确定水平标尺线;
    在所述屏幕上显示所述水平标尺线。
  5. 根据权利要求1所述的方法,其中,所述方法还包括:
    在所述目标物体的轮廓边缘中,确定直线的部分轮廓边缘;
    获取所述标尺线与所述部分轮廓边缘之间的角度差异;
    根据所述角度差异生成调整提示;
    显示所述调整提示。
  6. 根据权利要求5所述的方法,其中,所述方法还包括:
    当检测到所述标尺线与所述部分轮廓边缘之间的角度差异小于预设角度时,生成完成提示,所述完成提示用于指示所述标尺线与所述部分轮廓边缘之间的角度差异小于预设角度;
    显示所述完成提示。
  7. 一种信息处理装置,所述装置包括:
    第一获取模块,用于拍摄包括目标物体的图像;
    第一显示模块,用于在移动终端的屏幕上显示所述图像;
    第二显示模块,用于在所述图像上显示基于重力传感器生成的标尺线,所述标尺线包括水平标尺线或垂直标尺线。
  8. 根据权利要求7所述的装置,其中,所述第二显示模块包括:
    第一获取单元,用于获取用户在所述图像上的操作;
    第一显示单元,用于在所述操作所在的位置显示所述标尺线。
  9. 一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器 上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的信息处理方法的步骤。
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的信息处理方法的步骤。
PCT/CN2020/102153 2019-08-19 2020-07-15 信息处理方法及装置 WO2021031748A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910765884.2 2019-08-19
CN201910765884.2A CN110533680A (zh) 2019-08-19 2019-08-19 一种信息处理方法及装置

Publications (1)

Publication Number Publication Date
WO2021031748A1 true WO2021031748A1 (zh) 2021-02-25

Family

ID=68663637

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/102153 WO2021031748A1 (zh) 2019-08-19 2020-07-15 信息处理方法及装置

Country Status (2)

Country Link
CN (1) CN110533680A (zh)
WO (1) WO2021031748A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110533680A (zh) * 2019-08-19 2019-12-03 维沃移动通信有限公司 一种信息处理方法及装置
CN113781605A (zh) * 2021-09-07 2021-12-10 武汉中旗生物医疗电子有限公司 超声全景图像的标尺绘制方法、装置、设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005109538A (ja) * 2003-09-26 2005-04-21 Nec Access Technica Ltd カメラ付き折畳式携帯電話機
CN1630304A (zh) * 2003-11-29 2005-06-22 Lg电子株式会社 移动终端的倾斜度显示方法
CN103398698A (zh) * 2013-07-31 2013-11-20 深圳市金立通信设备有限公司 一种水平测量方法、装置及移动终端
CN104034309A (zh) * 2014-05-26 2014-09-10 小米科技有限责任公司 角度测量方法、装置及终端
CN104166500A (zh) * 2014-08-12 2014-11-26 Tcl通讯(宁波)有限公司 镜头图像中提供参考坐标系的方法、系统及终端
CN105208278A (zh) * 2015-09-28 2015-12-30 广东欧珀移动通信有限公司 一种拍摄的方法及终端
CN110533680A (zh) * 2019-08-19 2019-12-03 维沃移动通信有限公司 一种信息处理方法及装置

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068309A (zh) * 2007-05-24 2007-11-07 中兴通讯股份有限公司 自动旋转移动终端摄像头拍摄结果的方法和装置
CN101374198A (zh) * 2007-08-24 2009-02-25 鸿富锦精密工业(深圳)有限公司 摄像装置及其影像自动正立方法
DE102008054448A1 (de) * 2008-12-10 2010-06-17 Robert Bosch Gmbh Ortungsgerät
CN101917638B (zh) * 2010-07-07 2012-10-31 深圳超多维光电子有限公司 立体显示装置、移动终端及立体显示跟踪方法
EP2477000A1 (de) * 2011-01-14 2012-07-18 Leica Geosystems AG Vermessungsgerät mit einer automatischen Darstellungswechsel-Funktionalität
CN102353351B (zh) * 2011-06-28 2014-01-15 惠州Tcl移动通信有限公司 偏侧拍摄角度检测方法、倾斜拍摄角度检测方法及手机
CN103945043A (zh) * 2013-01-21 2014-07-23 联想(北京)有限公司 一种拍照方法及电子设备
CN104994273A (zh) * 2015-06-16 2015-10-21 成都西可科技有限公司 一种保持实时拍摄图像竖直的系统和方法
CN105718232A (zh) * 2016-01-20 2016-06-29 昆山龙腾光电有限公司 一种任意角平面旋转显示方法及显示装置
CN108271010B (zh) * 2018-01-29 2020-05-22 维沃移动通信有限公司 一种投影方法及终端设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005109538A (ja) * 2003-09-26 2005-04-21 Nec Access Technica Ltd カメラ付き折畳式携帯電話機
CN1630304A (zh) * 2003-11-29 2005-06-22 Lg电子株式会社 移动终端的倾斜度显示方法
CN103398698A (zh) * 2013-07-31 2013-11-20 深圳市金立通信设备有限公司 一种水平测量方法、装置及移动终端
CN104034309A (zh) * 2014-05-26 2014-09-10 小米科技有限责任公司 角度测量方法、装置及终端
CN104166500A (zh) * 2014-08-12 2014-11-26 Tcl通讯(宁波)有限公司 镜头图像中提供参考坐标系的方法、系统及终端
CN105208278A (zh) * 2015-09-28 2015-12-30 广东欧珀移动通信有限公司 一种拍摄的方法及终端
CN110533680A (zh) * 2019-08-19 2019-12-03 维沃移动通信有限公司 一种信息处理方法及装置

Also Published As

Publication number Publication date
CN110533680A (zh) 2019-12-03

Similar Documents

Publication Publication Date Title
CN109600550B (zh) 一种拍摄提示方法及终端设备
WO2019196863A1 (zh) 内容的显示方法及装置
CN108153422B (zh) 一种显示对象控制方法和移动终端
WO2020020134A1 (zh) 拍摄方法及移动终端
CN107742072B (zh) 人脸识别方法及移动终端
CN108683850B (zh) 一种拍摄提示方法及移动终端
WO2021197121A1 (zh) 图像拍摄方法及电子设备
CN111031234B (zh) 一种图像处理方法及电子设备
CN109241832B (zh) 一种人脸活体检测的方法及终端设备
WO2021031748A1 (zh) 信息处理方法及装置
WO2021104357A1 (zh) 电子设备和拍摄方法
CN110138967B (zh) 一种终端的操作控制方法及终端
WO2019154360A1 (zh) 界面切换方法及移动终端
CN108881721B (zh) 一种显示方法及终端
WO2021082772A1 (zh) 截屏方法及电子设备
WO2019137535A1 (zh) 物距测量方法及终端设备
CN111416935B (zh) 一种拍摄方法及电子设备
CN110312070B (zh) 一种图像处理方法及终端
CN109618055B (zh) 一种位置共享方法及移动终端
CN110457885B (zh) 一种操作方法及电子设备
CN110456923B (zh) 一种姿态传感数据处理方法及电子设备
CN111031246A (zh) 拍摄方法及电子设备
CN108536513B (zh) 一种图片显示方向调整方法及移动终端
WO2021083086A1 (zh) 信息处理方法及设备
CN108965701B (zh) 一种抖动矫正方法及终端设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20854159

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20854159

Country of ref document: EP

Kind code of ref document: A1