WO2018014517A1 - 一种信息处理方法、装置及存储介质 - Google Patents

一种信息处理方法、装置及存储介质 Download PDF

Info

Publication number
WO2018014517A1
WO2018014517A1 PCT/CN2017/000084 CN2017000084W WO2018014517A1 WO 2018014517 A1 WO2018014517 A1 WO 2018014517A1 CN 2017000084 W CN2017000084 W CN 2017000084W WO 2018014517 A1 WO2018014517 A1 WO 2018014517A1
Authority
WO
WIPO (PCT)
Prior art keywords
target image
boundary
value
area
image region
Prior art date
Application number
PCT/CN2017/000084
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 WO2018014517A1 publication Critical patent/WO2018014517A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • the present invention relates to image processing technologies in the field of information processing, and in particular, to an information processing method, apparatus, and storage medium.
  • the terminal With the development of electronic technology, more and more functions of the terminal, such as shooting functions.
  • shooting functions When watching large football matches, basketball games, star concerts, large-scale performances, and observation of small animals, the user can take pictures or videotape of moving objects through the shooting function of the terminal.
  • shooting a dynamic scene since the subject is in motion, the user needs to track the subject in real time during shooting so that the subject is within the shooting range of the terminal.
  • the subject in the shooting screen may not be clear because the display is too small.
  • the subject can be enlarged and displayed in the shooting screen by manually zooming the focal length, the subject may run out of the shooting screen with a slight motion, and the user needs to constantly track the subject, which is cumbersome to operate. When the subject's movement is faster, it may not be tracked, thus affecting the user's use.
  • the present invention provides an information processing method, device and storage medium, which solves the problem that the shooting is unclear and difficult to track when shooting a moving target object, and improves the user experience.
  • An information processing method comprising:
  • the moving direction is prompted such that the target image region is within the preview image.
  • the acquiring location information of the target image in the preview image includes:
  • N is a natural number greater than or equal to 1.
  • the determining the parameter information of the target image area and the target image area according to the location information of the target image including:
  • first parameter information of the first target image region includes: coordinate information of the first target image region.
  • the determining the parameter information of the target image area and the target image area according to the location information of the target image includes:
  • each of the N target image regions being a minimum circumscribed rectangle of each of the target image regions
  • the determining the second target image region according to the N target image regions includes:
  • the four target image area includes: a target image area other than the third target image area;
  • the target image region where the second value is less than or equal to the second preset value is a fifth target image region
  • the determining the adjustment parameter according to the parameter information of the target image region and the boundary parameter of the preview image includes:
  • a ratio of a value of the first boundary to a value of the third boundary is a third value
  • a ratio of a value of the second boundary to a value of the fourth boundary is a fourth value
  • the adjusting the target image area according to the adjustment parameter comprises:
  • the target image area is enlarged and displayed according to the adjustment parameter.
  • the moving direction is prompted, including:
  • the distance between the fifth boundary of the target image region and the sixth boundary of the preview image is less than or equal to a third preset value, prompting a moving direction, the moving direction indicating moving to the sixth boundary,
  • the fifth boundary is any boundary of the target image region
  • the sixth boundary is parallel to the fifth boundary
  • a distance between the sixth boundary and the fifth boundary is the smallest.
  • the method before the obtaining the location information of the target image in the preview image, the method further includes:
  • An information processing device includes: an obtaining module, a determining module, a processing module, and a prompting module; wherein
  • the acquiring module is configured to acquire a location of the target image in the preview image
  • the determining module is configured to determine parameter information of the target image area and the target image area according to the location information of the target image, and further configured to: according to the parameter information of the target image area and the boundary parameter of the preview image , determining the adjustment parameters;
  • the processing module is configured to adjust the target image area according to the adjustment parameter
  • the prompting module is configured to prompt a moving direction when a distance between a boundary of the target image area and a boundary of the preview image satisfies a preset condition, so that the target image area is within the preview image.
  • the acquiring module is configured to receive an operation instruction of the user within a preset time, and acquire position information of the first target image and the first target image in the preview image;
  • the determining module is configured to determine that all the moving images in the preview image are the second target image if the operation instruction of the user is not received within the preset time;
  • the acquiring module is further configured to acquire location information of the second target image, where the second target image includes N target images, and N is a natural number greater than or equal to 1.
  • the determining module is configured to determine, according to the location information of the first target image, the first target image region, where the first target image region is a minimum circumscribed rectangle of the first target image;
  • the acquiring module is configured to acquire first parameter information of the first target image region, where the first parameter information includes: coordinate information of the first target image region.
  • the determining module is configured to determine N target image regions according to position information of the N target images, wherein each of the N target image regions is a minimum of each of the target image regions. a circumscribed rectangle; further configured to determine a second target image region according to the N target image regions;
  • the acquiring module is configured to acquire second parameter information of the second target image region, where the second parameter information includes coordinate information of the second target image region.
  • the acquiring module is configured to acquire N areas of the N target image regions
  • the determining module is configured to determine a third target image area and a fourth target image area, where the third target image area is a target image area of a largest area among the N areas, and the fourth target image area includes: a target image area other than the third target image area; and configured to determine a ratio of an area of each of the target image areas to the maximum area in the fourth target image area as a first value, determining the fourth The distance between the center position of each target image area and the center position of the third target image area is a second value; and is further configured to determine that the first value is greater than or equal to a first preset value, and The target image area whose second value is less than or equal to the second preset value is the fifth target image area; and is further configured to determine that the minimum circumscribed rectangle of the fifth target image area is the second target image area.
  • the acquiring module is configured to acquire a first boundary of the preview image. a value and a value of the second boundary, the preview image is a rectangle, the first boundary is perpendicular to the second boundary, and a value of the first boundary is greater than or equal to a value of the second boundary;
  • the determining module is configured to determine, according to parameter information of the target image region, a value of a third boundary of the target image region and a value of a fourth boundary, where the target image region is a rectangle, and the third boundary is The first boundary is parallel, and the fourth boundary is parallel to the second boundary; a ratio of a value of the first boundary to a value of the third boundary is a third value, and a value of the second boundary is The ratio of the values of the fourth boundary is a fourth value; and is further configured to determine that the smallest of the third value and the fourth value is the adjustment parameter.
  • the processing module is configured to display the target image area in an enlarged manner according to the adjustment parameter.
  • the prompting module is configured to prompt a moving direction when the distance between the fifth boundary of the target image region and the sixth boundary of the preview image is less than or equal to a third preset value. Instructing to move to the sixth boundary, the fifth boundary being any boundary of the target image region, the sixth boundary being parallel to the fifth boundary, and the sixth boundary and the fifth boundary The distance between them is the smallest.
  • the acquiring module is further configured to acquire the preview image.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the information processing method.
  • the information processing method, device and storage medium provided by the embodiments of the present invention may acquire location information of a target image in a preview image, and determine parameter information of the target image region and the target image region according to the location information of the target image;
  • the parameter information of the image area and the boundary parameter of the preview image determine an adjustment parameter, and the target image area is enlarged and displayed according to the adjustment parameter, when the distance between the boundary of the target image area and the boundary of the preview image satisfies a preset condition, The direction of movement is prompted such that the target image area is within the preview image.
  • the information processing method and apparatus provided by the embodiments of the present invention may determine an adjustment parameter according to a proportional relationship between a preview image and a target image boundary parameter, and enlarge the target image by using the adjustment parameter. Therefore, the target image can be clearly captured, and the user is prompted to move the direction by judging the distance between the boundary of the target image region and the boundary of the preview image, thereby realizing real-time tracking of the target image and solving the problem.
  • the problem of unclear and difficult tracking when shooting moving target objects improves the user experience.
  • FIG. 1 is a schematic flowchart 1 of an information processing method according to an embodiment of the present invention.
  • FIG. 2 is a second schematic flowchart of an information processing method according to an embodiment of the present invention.
  • FIG. 3 is a diagram showing an example of display of a target image area according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram 1 of an enlarged target image area display according to an embodiment of the present invention.
  • FIG. 5 is a diagram showing an example of location information of a target image region according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a moving direction prompt according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart 3 of an information processing method according to an embodiment of the present disclosure.
  • FIG. 8 is a diagram showing an example of displaying a multi-target image area according to an embodiment of the present invention.
  • FIG. 9 is a second example of display of an enlarged target image area according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present invention.
  • An embodiment of the present invention provides an information processing method. As shown in FIG. 1 , the method includes:
  • Step 101 Acquire location information of a target image in the preview image.
  • the execution body of the information processing method provided by the embodiment of the present invention is an information processing device, that is, the information processing device acquires the location information of the target image in the preview image
  • the information processing device may specifically be a device having a shooting function.
  • a mobile phone, a camera, a video camera, etc. having a shooting function for example, a mobile phone, a camera, a video camera, etc. having a shooting function.
  • the shooting function can usually include the functions of taking pictures and recording.
  • the shooting device includes a preview area, and the user can view the image through the preview area during shooting or after the shooting is completed.
  • the preview area can display the image of the current viewing range of the shooting device, and can also play back the picture or image after the shooting is completed.
  • the preview image in the embodiment of the present invention is an image of the current viewing range of the photographing device of the preview area.
  • An image can be understood as a dynamic object in shooting.
  • the information processing device detects whether the user's operation instruction is received within the preset time, and if the user's operation instruction is received within the preset time, the first target image and the first image in the preview image are acquired. Position information of a target image; if the operation instruction of the user is not received within the preset time, determining that all the moving images in the preview image are the second target image, acquiring the position information of the second target image, the second The target image includes N target images, and N is a natural number greater than or equal to 1.
  • Step 102 Determine parameter information of the target image region and the target image region according to the location information of the target image.
  • the information processing device obtains the first target image or obtains location information of the second target image, and the location information may be coordinate information.
  • the information processing apparatus determines, according to the location information of the first target image, the first target image region, where the first target image region is the minimum external moment of the first target image.
  • Forming, and acquiring first parameter information of the first target image region, the first parameter information may include: coordinate information of the first target image region.
  • the information processing apparatus determines N target image regions according to position information of the N target images, where each of the N target image regions is the minimum of each of the target image regions a circumscribed rectangle; determining a second target image region according to the N target image regions; acquiring second parameter information of the second target image region, the second parameter information including coordinate information of the second target image region.
  • Step 103 Determine an adjustment parameter according to parameter information of the target image region and a boundary parameter of the preview image.
  • the information processing apparatus determines the value of the boundary of the target image region, that is, the length value of the four sides of the target image region, according to the coordinate information of the target image region.
  • the boundary parameter of the preview image includes a value of the preview image boundary, that is, a length value of four sides of the preview image.
  • the information processing apparatus acquires a value of a first boundary of the preview image and a value of a second boundary, where the first boundary is perpendicular to the second boundary; according to a parameter of the target image region Information determining a value of a third boundary of the target image region and a value of a fourth boundary, the target image region being a rectangle, the third boundary being parallel to the first boundary, the fourth boundary being The second boundary is parallel; the ratio of the value of the first boundary to the value of the third boundary is a third value, and the ratio of the value of the second boundary to the value of the fourth boundary is a fourth value; The smallest of the third value and the fourth value is the adjustment parameter.
  • Step 104 Adjust the target image area according to the adjustment parameter.
  • the information processing apparatus enlarges and displays the target image area in the preview image according to the adjustment parameter, and the position of the preview image that is not filled with the target image area is filled with the blurred image or the shadow image.
  • Step 105 When the distance between the boundary of the target image region and the boundary of the preview image satisfies a preset condition, prompting a moving direction, so that the target image region is in the preview Inside the image.
  • the moving direction is indicated, and the moving direction indicates moving to the sixth boundary
  • the fifth boundary is any boundary of the target image region
  • the sixth boundary is parallel to the fifth boundary
  • a distance between the sixth boundary and the fifth boundary is the smallest.
  • the third preset value w is set to be equal to 1 cm, and a prompt arrow is displayed in the currently displayed target image area, and the pointing of the arrow is to prompt the user to move the information processing device in the direction of the arrow pointing, so that the target image area is in the preview image.
  • the shooting is stopped, and the preview image in the current framing range is displayed.
  • the adjustment parameter may be determined according to the proportional relationship between the preview image and the target image boundary parameter, and the target image is enlarged and displayed by the adjustment parameter, so that the target image can be clearly captured.
  • the determination of the distance between the boundary of the target image area and the boundary of the preview image prompts the user to move the direction, thereby realizing real-time tracking of the target image, solving the problem of unclear and difficult tracking when shooting the moving target object, and improving The user experience.
  • An embodiment of the present invention provides an information processing method. As shown in FIG. 2, the method includes:
  • Step 201 The information processing device acquires a preview image.
  • the information processing device may be specifically a device having a photographing function.
  • a mobile phone for example, a camera, a video camera, etc. having a shooting function.
  • the image in the current viewing range of the photographing device is a preview image.
  • Step 202 If an operation instruction of the user is received within a preset time, the information processing apparatus acquires location information of the first target image and the first target image in the preview image.
  • the information processing apparatus detects whether the operation instruction of the user is received in the preset time, wherein the preset time may be 5s or 10s, or may be set according to the habit of the user. This is not limited.
  • the operation instruction of the user may be: the user selects the target image in the preview image by pressing the screen; or the user selects the target image in the preview image through the keyboard, and may also select the target image in the preview image for other selections.
  • the operation of the embodiment of the present invention is not specifically limited thereto.
  • the target image selected by the user is identified and tracked in the preview image by using the moving target tracking algorithm, and the position information of the first target image is obtained, and the position of the first target image is obtained.
  • the information includes coordinate information of the first target image.
  • the moving target tracking algorithm may be a background difference method, an optical flow method, a frame difference method, or the like.
  • Step 203 The information processing apparatus determines the first target image area according to the location information of the first target image.
  • the information processing apparatus may determine the position information of the first target image according to the moving target detection algorithm, so that the first target image area may be determined. For example, the information processing apparatus may determine the position information of the first target image according to the background difference between the first target image color information and the background image color information, and may further determine the first target image according to the inter-frame difference of each frame image of the first target image.
  • the contour information that is, the position information of the first target image, is such that the minimum circumscribed rectangle including the first target image can be determined by the contour information of the first target image, and the minimum circumscribed rectangle is the first target image region.
  • Step 204 The information processing device acquires first parameter information of the first target image region.
  • the first parameter information includes coordinate information of the first target image region.
  • Step 205 The information processing device acquires a value of a first boundary of the preview image and a value of a second boundary, and determines a third boundary of the first target image region according to the first parameter information of the first target image region. And a value of the fourth boundary, the value of the first boundary and the third side a ratio of values of the bounds is a third value, a ratio of a value of the second boundary to a value of the fourth boundary is a fourth value, and determining a minimum value of the third value and the fourth value is The adjustment parameters are described.
  • the preview image is a rectangle, and the first boundary is perpendicular to the second boundary.
  • the rectangle composed of the boundary A, the boundary B, the boundary C, and the boundary D is a preview image area
  • the preview image area can be understood as a shooting interface of the photographing device. Therefore, the side length of the preview area is The side length of the shooting interface, the side length of the shooting interface can be stored in the shooting device in advance, or the side length of the shooting interface can be directly obtained.
  • the first target image area is a rectangle
  • the third boundary is parallel to the first boundary
  • the fourth boundary is parallel to the second boundary.
  • a rectangle composed of a boundary a, a boundary b, a boundary c, and a boundary d is a first target image region
  • an intersection of the boundary a and the boundary b is a first coordinate
  • the intersection of the boundary d and the boundary c is the third coordinate
  • the intersection of the boundary c and the boundary b is the fourth coordinate
  • the length of the boundary a can be determined according to the first coordinate and the second coordinate
  • the three coordinates may determine the length of the boundary d
  • the length of the boundary c may be determined according to the third coordinate and the fourth coordinate
  • the length of the boundary b may be determined according to the first coordinate and the fourth coordinate.
  • a rectangle composed of a boundary A, a boundary B, a boundary C, and a boundary D is a preview image region
  • a rectangle composed of a boundary a, a boundary b, a boundary c, and a boundary d is a first target image region.
  • the boundary a and the boundary c are parallel to the boundary A, and the boundary a or the boundary c is the third boundary.
  • the boundary b and the boundary d are parallel to the boundary B, so the boundary b or the boundary d is the fourth boundary.
  • the opposite sides of the rectangle are parallel and equal, so the values of boundary a and boundary c are equal, and the values of boundary b and boundary d are equal.
  • the ratio of the boundary A to the boundary a is r1
  • the ratio of the boundary B to the boundary b is r2
  • Step 206 The information processing apparatus enlarges and displays the first target image area according to the adjustment parameter.
  • the information processing apparatus enlarges and displays the first target image area in the preview image according to the adjustment parameter, and the position of the preview image that is not filled with the target image area is filled with the blurred image or the shadow image, and performs the enlarged display of the first target image area. Take a photo or video.
  • the inner rectangular area is the enlarged first target image area
  • the unfilled first target image area is filled with the blurred image or the shadow image, that is, the enlarged image in FIG. A shaded area on either side of a target image area.
  • Step 207 When the distance between the fifth boundary of the first target image region and the sixth boundary of the preview image is less than or equal to a third preset value, the information processing device prompts a moving direction, and the moving direction indicates to the The sixth boundary moves.
  • the fifth boundary is any boundary of the first target image region
  • the sixth boundary is parallel to the fifth boundary
  • a distance between the sixth boundary and the fifth boundary is the smallest.
  • the information processing device prompts the moving direction
  • the first target image region will move out of the preview image region due to the movement of the first target image, and then the preview image is returned.
  • the third preset value is a value
  • information processing The device prompts a direction of movement that is indicative of movement toward the sixth boundary.
  • the third preset value may be 1 cm, 2 cm or other values, which is not specifically limited in the embodiment of the present invention.
  • the distance between the boundary a and the boundary A is top
  • the distance between the boundary b and the boundary B is left
  • the distance between the boundary c and the boundary C is bottom
  • the distance between the boundary d and the boundary D is right.
  • the values of top, left, bottom, and right can be obtained from the coordinate information of the first target image region. If the third preset value is 1 cm, when the value of left is less than or equal to 1 cm, an arrow moving to the left is displayed on the current screen, as shown in FIG. 6.
  • the shooting device After the user sees the prompt, the shooting device is moved in the direction indicated by the arrow, so that the first target image area is within the preview image, if the user The shooting device is not moved in the direction indicated by the arrow, and the first target image area will move out of the preview image area, at which time the photographing device returns the preview image.
  • the third preset value may be four different preset values, respectively being a first third preset value, a second third preset value, and a third third preset value. And a fourth third preset value, the four different preset values respectively corresponding to four boundaries of the first target image.
  • the preview image is a rectangle, and the four sides of the preview image are a first side, a second side, a third side, and a fourth side, the first side is perpendicular to the second side and the fourth side, and the third side is perpendicular to the second side. Side and fourth side.
  • the first target image area is within the preview image.
  • the first target image area is a rectangle, and the four sides of the first target image area are a fifth side, a sixth side, a seventh side, and an eighth side, the fifth side is parallel to the first side and the third side, and the fifth side is The distance between the side and the first side is smaller than the distance between the fifth side and the third side.
  • the distance between the fifth side and the first side is the first distance.
  • the sixth side is parallel to the second side and the fourth side, and the distance between the sixth side and the second side is smaller than the distance between the sixth side and the fourth side.
  • the distance between the sixth side and the second side is the second distance.
  • the seventh side is parallel to the first side and the third side, and the distance between the seventh side and the third side is smaller than the distance between the seventh side and the first side.
  • the distance between the seventh side and the third side is the third distance.
  • the eighth side is parallel to the second side and the fourth side, and the distance between the eighth side and the fourth side is smaller than the distance between the eighth side and the second side.
  • the distance between the eighth side and the fourth side is the fourth distance.
  • the moving direction is indicated, and the moving direction indicates moving to the fourth side.
  • the boundary A is the first side
  • the boundary B is the second side
  • the boundary C is the third side
  • the boundary D is the fourth side
  • the boundary a is the fifth side
  • the boundary b is the sixth side.
  • Edge, boundary c is the seventh edge
  • boundary d is the eighth edge;
  • the distance between boundary A and boundary a is the first distance, denoted as top;
  • the distance between boundary B and boundary b is the second distance, denoted left; boundary C
  • the distance from the boundary c is the third distance, which is recorded as bottom;
  • the distance between the boundary D and the boundary d is the fourth distance, which is recorded as right.
  • the preset value of the distance between the boundary A and the boundary a is set to 1 cm
  • the preset value of the distance between the boundary B and the boundary b is set to 1.2 cm
  • the preset value of the distance between the boundary C and the boundary c is set.
  • the preset value of the distance between the boundary D and the boundary d is set to 1.1 cm. If the value of left is less than or equal to 1.2 cm, an arrow moving to the left is prompted in the preview area, prompting the user to move the framing range of the photographing device to the left, as shown in FIG. 6. Thereby, the first target image region is caused to be within the preview image, and if the first target image region moves out of the preview image, the shooting is stopped, and the preview image within the current viewing range is displayed.
  • the adjustment parameter may be determined according to the proportional relationship between the preview image and the boundary of the first target image, and the first target image is enlarged and displayed by the adjustment parameter, thereby making the first target image clear.
  • the shooting is performed by judging the distance between the boundary of the first target image area and the boundary of the preview image, prompting the user to move the direction, thereby realizing real-time tracking of the first target image, and solving the shooting when shooting the moving target object Clear and unobtrusive issues improve the user experience.
  • An embodiment of the present invention provides an information processing method. As shown in FIG. 7, the method includes:
  • Step 301 The information processing apparatus acquires a preview image.
  • the information processing device may be a device having a photographing function.
  • a mobile phone for example, a camera, a video camera, etc. having a shooting function.
  • the image of the shooting device can be the preview image within the current viewing range.
  • Step 302 If the operation instruction of the user is not received within the preset time, the information processing apparatus determines that all the moving images in the preview image are the second target image, and acquires the second target image. location information.
  • the information processing apparatus detects whether the operation instruction of the user is received in the preset time, wherein the preset time may be 5s or 10s, or may be set according to the habit of the user. This is not limited.
  • the information processing apparatus uses the multi-motion target detection algorithm to identify all the moving images in the preview image as the second target image, and acquires the position information of the second target image.
  • the multi-moving target detection algorithm includes optical flow method, inter-frame difference method, background subtraction, Kalman filter estimation algorithm and the like.
  • the second target image includes N target images, and N is a natural number greater than or equal to 1.
  • the information processing apparatus determines that all of the moving images A1, A2, A3, A4, and A5 in the preview image are the second target images.
  • Step 303 The information processing apparatus determines N target image regions according to position information of the N target images.
  • the information processing apparatus may determine position information of each of the N target images according to the moving target detection algorithm, thereby determining the target image region according to the position information of the target image.
  • each of the N target image regions is a minimum circumscribed rectangle of each of the target images.
  • the circumscribed rectangular area of the target image A1 in the preview image is the target image area of A1, which is denoted as area A1
  • the circumscribed rectangular area of the target image A2 is the target image area of A2, which is recorded as In the area A2
  • the circumscribed rectangular area of the target image A3 is the target image area of A3, and is referred to as the area A3.
  • the circumscribed rectangular area of the target image A4 is the target image area of A4, and is referred to as the area A4, and the circumscribed rectangular area of the target image A5. That is, the target image area of A5 is denoted as area A5.
  • Step 304 The information processing apparatus acquires N areas of the N target image areas, and determines a third target image area and a fourth target image area.
  • the third target image region is a target image region of a maximum area among the N areas, and the fourth target image region includes: a target image region other than the third target image region.
  • the areas of the area A1, the area A2, the area A3, the area A4, and the area A5 are sequentially SA1, SA2, SA3, SA4, and SA5, and the area A1 is the largest area, and the area A1 is the first.
  • the third target image area, the fourth target image area is an area other than the area A1, and the target image area in the fourth target image area includes: area A2, area A3, area A4, and area A5.
  • Step 305 The information processing apparatus determines that a ratio of an area of each of the target image areas in the fourth target image area to the maximum area is a first value, and determines a center of each target image area in the fourth target image area. The distance between the position and the center position of the third target image area is a second value.
  • the area ratio of the area A2 to the area A1 is S1
  • the area ratio of the area A3 to the area A1 is S2
  • the area ratio of the area A4 to the area A1 is S3, and the area of the area A5 and the area A1.
  • the ratio is S4; the distance between the center position of the area A2 and the center position of the area A1 is L1, the distance between the center position of the area A3 and the center position of the area A1 is L2, and the distance between the center position of the area A4 and the center position of the area A1 is L3, the distance between the center position of the area A5 and the center position of the area A1 is L4.
  • Step 306 The information processing apparatus determines that the first value is greater than or equal to the first preset value, and the target image area where the second value is less than or equal to the second preset value is the fifth target image area.
  • the first preset value is set to S
  • the second preset value is L.
  • the area ratios of the area A2, the area A3, the area A4, the area A5, and the area A1 are sequentially S1, S2, S3, and S4, and S1, S2, and S3 are both greater than the first preset value S, and S4 is smaller than the first a preset value S;
  • the central position of the area A2, the area A3, the area A4, and the area A5 and the center position of the area A1 are L1, L2, L3, and L4, respectively, and the values of L1 and L2 are smaller than the second preset value L.
  • the values of L3 and L4 It is greater than the second preset value L, and thus, it can be determined that the target image region in the fifth target image region includes: the region A1, the region A2, and the region A3.
  • Step 307 The information processing apparatus determines that the minimum circumscribed rectangle of the fifth target image area is the second target image area.
  • the second target image area is a minimum circumscribed rectangle including the area A1, the area A2, and the area A3.
  • Step 308 The information processing apparatus acquires second parameter information of the second target image area.
  • the second parameter information includes coordinate information of the second target image region.
  • Step 309 The information processing device acquires a value of a first boundary of the preview image and a value of a second boundary, and determines a third boundary of the second target image region according to the first parameter information of the second target image region. And a value of the fourth boundary, the ratio of the value of the first boundary to the value of the third boundary is a third value, and the ratio of the value of the second boundary to the value of the fourth boundary is And a fourth value, determining that the smallest of the third value and the fourth value is the adjustment parameter.
  • the preview image is a rectangle
  • the first boundary is perpendicular to the second boundary
  • the second target image region is a rectangle
  • the third boundary is parallel to the first boundary
  • the fourth boundary is opposite to the first boundary
  • a rectangle composed of a boundary A, a boundary B, a boundary C, and a boundary D is a preview image region
  • a rectangle composed of a boundary a, a boundary b, a boundary c, and a boundary d is a second target image region.
  • the boundary a and the boundary c are parallel to the boundary A, and the boundary a or the boundary c is the third boundary.
  • the boundary b and the boundary d are parallel to the boundary B, and the boundary b or the boundary d is the fourth boundary.
  • the opposite sides of the rectangle are parallel and equal, so the values of boundary a and boundary c are equal, and the values of boundary b and boundary d are equal.
  • the ratio of the boundary A to the boundary a is r1
  • the ratio of the boundary B to the boundary b is r2
  • Step 310 The information processing apparatus enlarges the second target image area according to the adjustment parameter display.
  • the information processing apparatus enlarges and displays the second target image area in the preview image according to the adjustment parameter, and the position of the preview image that is not filled with the target image area is filled with the blurred image or the shadow image.
  • the inner rectangular area is the enlarged second target image area, and the unfilled second target image area is filled with the blurred image, that is, enlarged in FIG. 9 .
  • Step 311 When the distance between the fifth boundary of the second target image region and the sixth boundary of the preview image is less than or equal to a third preset value, the information processing device prompts a moving direction, and the moving direction indicates to the The sixth boundary moves.
  • the fifth boundary is any boundary of the second target image region
  • the sixth boundary is parallel to the fifth boundary
  • a distance between the sixth boundary and the fifth boundary is the smallest.
  • the information processing device prompts the moving direction
  • the second target image region will move out of the preview image region due to the movement of the second target image, and then the preview image is returned.
  • step 311 For the description of the step 311, reference may be made to the description of the step 207, which is not described herein.
  • the information processing method provided by the embodiment of the present invention may determine an adjustment parameter according to a proportional relationship between a preview image and a second target image boundary parameter, and perform an enlarged display on the second target image by using the adjustment parameter, so that the second target image may be performed.
  • Clear shooting by judging the distance between the boundary of the second target image area and the boundary of the preview image, prompting the user to move the direction, thereby realizing real-time tracking of the second target image, and solving the problem of shooting the moving target object
  • the problem of unclear and difficult tracking is improved and the user experience is improved.
  • the embodiment of the invention provides an information processing device, as shown in FIG. 10, the information processing
  • the device 1 includes: an obtaining module 10, a determining module 11, a processing module 12, and a prompting module 13;
  • the obtaining module 10 is configured to acquire a location of a target image in the preview image
  • the determining module 11 is configured to determine parameter information of the target image region and the target image region according to the location information of the target image, and further configured to: according to parameter information of the target image region and a boundary of the preview image Parameters to determine adjustment parameters;
  • the processing module 12 is configured to adjust the target image area according to the adjustment parameter
  • the prompting module 13 is configured to prompt a moving direction when a distance between a boundary of the target image area and a boundary of the preview image satisfies a preset condition, so that the target image area is in the preview image. .
  • the acquiring module 10 is configured to receive an operation instruction of the user within a preset time, and acquire location information of the first target image and the first target image in the preview image;
  • the determining module 11 is configured to determine that all the moving images in the preview image are the second target image if the operation instruction of the user is not received within the preset time.
  • the acquiring module 10 is further configured to acquire location information of the second target image, where the second target image includes N target images, and N is a natural number greater than or equal to 1.
  • the determining module 11 is further configured to determine, according to the location information of the first target image, the first target image region, where the first target image region is the first target image. Minimum circumscribed rectangle;
  • the acquiring module 10 is further configured to acquire first parameter information of the first target image region, where the first parameter information includes: coordinate information of the first target image region.
  • the determining module 11 is configured to position information according to N target images. Determining N target image regions, each of the N target image regions being a minimum circumscribed rectangle of each of the target image regions; further configured to determine a second according to the N target image regions Target image area.
  • the acquiring module 10 is configured to acquire second parameter information of the second target image region, and the second parameter information includes coordinate information of the second target image region.
  • the acquiring module 10 is configured to acquire N areas of the N target image regions.
  • the determining module 11 is configured to determine a third target image region and a fourth target image region, wherein the third target image region is a target image region of a largest area among the N areas,
  • the fourth target image region includes: a target image region other than the third target image region; and is further configured to determine that a ratio of an area of each of the target image regions to the maximum area in the fourth target image region is first a value, determining a distance between a center position of each of the target image regions in the fourth target image region and a center position of the third target image region as a second value; and further configured to determine that the first value is greater than or equal to the first value a preset value, and the target image area in which the second value is less than or equal to the second preset value is a fifth target image area; and is further configured to determine that the minimum circumscribed rectangle of the fifth target image area is the second target image area.
  • the acquiring module 10 is configured to acquire a value of a first boundary of the preview image and a value of a second boundary, the preview image is a rectangle, and the first boundary and the second boundary Vertically, the value of the first boundary is greater than or equal to the value of the second boundary.
  • the determining module 11 is configured to determine a value of a third boundary of the target image region and a value of a fourth boundary according to parameter information of the target image region, where the target image region is a rectangle
  • the third boundary is parallel to the first boundary, and the fourth boundary is parallel to the second boundary;
  • a ratio of a value of the first boundary to a value of the third boundary is a third value,
  • the ratio of the value of the second boundary to the value of the fourth boundary is a fourth value;
  • the adjustment parameter is determined to determine the smallest of the third value and the fourth value.
  • the processing module 12 is configured to display the target image area in an enlarged manner according to the adjustment parameter.
  • the prompting module 13 is configured to prompt the moving direction when the distance between the fifth boundary of the target image region and the sixth boundary of the preview image is less than or equal to a third preset value.
  • the moving direction indication moves toward the sixth boundary, the fifth boundary is any boundary of the target image region, the sixth boundary is parallel to the fifth boundary, and the sixth boundary is The distance between the fifth boundaries is the smallest.
  • the obtaining module 10 is further configured to acquire the preview image.
  • the information processing apparatus may determine an adjustment parameter according to a proportional relationship between a preview image and a target image boundary parameter, and perform an enlarged display on the target image by using the adjustment parameter, thereby performing clear shooting on the target image.
  • the determination of the distance between the boundary of the target image area and the boundary of the preview image prompts the user to move the direction, thereby realizing real-time tracking of the target image, solving the problem of unclear and difficult tracking when shooting the moving target object, and improving The user experience.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the information processing method of the embodiment of the present invention.
  • the location information of the target image in the preview image is obtained; the parameter information of the target image region and the target image region is determined according to the location information of the target image; and the parameter information and the location of the target image region are determined according to the location information of the target image region.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明实施例公开了一种信息处理方法,获取预览图像中的目标图像的位置信息,根据目标图像的位置信息,确定目标图像区域和目标图像区域的参数信息;根据目标图像区域的参数信息和预览图像的边界参数确定调节参数,将目标图像区域按调节参数放大显示,当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向,以使得所述目标图像区域在所述预览图像内。本发明实施例同时还公开了一种信息处理装置及存储介质。

Description

一种信息处理方法、装置及存储介质 技术领域
本发明涉及信息处理领域中的图像处理技术,尤其涉及一种信息处理方法、装置及存储介质。
背景技术
随着电子技术的发展,终端的功能越来多,例如拍摄功能。在观看大型足球赛、篮球赛、明星演唱会、大型演出和观察小动物等场景时,用户可以通过终端的拍摄功能为运动对象拍照或者录像。在拍摄动态场景时,由于拍摄对象处于运动状态,用户在拍摄过程中要实时追踪拍摄对象,以使得拍摄对象处于终端的拍摄范围内。
在拍摄过程中,如果拍摄对象在拍摄画面的图像较小,虽然可以追踪拍摄到拍摄对象的整个运动过程,但是,拍摄画面中的拍摄对象可能会因为显示太小而看不清楚。现有技术中,虽然可以通过手动拉大焦距,使拍摄对象放大显示在拍摄画面中,但是拍摄对象稍微动作就有可能跑出拍摄画面,用户需要不断追踪拍摄对象,这样,操作比较繁琐,而且,当拍摄对象的运动较快时,也可能追踪不到,从而,影响用户的使用。
发明内容
为解决现有存在的技术问题,本发明提供一种信息处理方法、装置及存储介质,解决了拍摄运动目标对象时拍摄不清晰和不易跟踪的问题,提高了用户体验。
本发明的技术方案是这样实现的:
一种信息处理方法,所述方法包括:
获取预览图像中目标图像的位置信息;
根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息;
根据所述目标图像区域的参数信息和所述预览图像的边界参数,确定调节参数;
根据所述调节参数调整所述目标图像区域;
当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向,以使得所述目标图像区域在所述预览图像内。
可选的,所述获取预览图像中目标图像的位置信息,包括:
若预设时间内接收到用户的操作指令,获取所述预览图像中第一目标图像和所述第一目标图像的位置信息;
若预设时间内未接收到用户的操作指令,确定所述预览图像中所有运动图像为第二目标图像,获取所述第二目标图像的位置信息,所述第二目标图像包括N个目标图像,N为大于等于1的自然数。
可选的,所述根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息,包括:
根据所述第一目标图像的位置信息,确定所述第一目标图像区域,所述第一目标图像区域为所述第一目标图像的最小外接矩形;
获取所述第一目标图像区域的第一参数信息,所述第一参数信息包括:所述第一目标图像区域的坐标信息。
上述方案中,所述根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息,包括:
根据N个目标图像的位置信息确定N个目标图像区域,所述N个目标图像区域中的每一个目标图像区域为所述每一个目标图像区域的最小外接矩形;
根据所述N个目标图像区域,确定第二目标图像区域;
获取所述第二目标图像区域的第二参数信息,所述第二参数信息包括所述第二目标图像区域的坐标信息。
上述方案中,所述根据所述N个目标图像区域,确定第二目标图像区域,包括:
获取所述N个目标图像区域的N个面积,确定第三目标图像区域和第四目标图像区域,所述第三目标图像区域为所述N个面积中最大面积的目标图像区域,所述第四目标图像区域包括:除所述第三目标图像区域外的目标图像区域;
确定所述第四目标图像区域中每一个目标图像区域的面积与所述最大面积的比值为第一数值,确定所述第四目标图像区域中每一个目标图像区域的中心位置与所述第三目标图像区域的中心位置的距离为第二数值;
确定所述第一数值大于等于第一预设值,且所述第二数值小于等于第二预设值的目标图像区域为第五目标图像区域;
确定所述第五目标图像区域的最小外接矩形为第二目标图像区域。
上述方案中,所述根据所述目标图像区域的参数信息和所述预览图像的边界参数,确定调节参数,包括:
获取所述预览图像的第一边界的值和第二边界的值,所述预览图像为矩形,所述第一边界与所述第二边界垂直;
根据所述目标图像区域的参数信息,确定所述目标图像区域的第三边界的值和第四边界的值,所述目标图像区域为矩形,所述第三边界与所述第一边界平行,所述第四边界与所述第二边界平行;
所述第一边界的值与所述第三边界的值的比值为第三数值,所述第二边界的值与所述第四边界的值的比值为第四数值;
确定所述第三数值和所述第四数值中最小的值为所述调节参数。
上述方案中,所述根据所述调节参数调整所述目标图像区域,包括:
将所述目标图像区域按所述调节参数放大显示。
上述方案中,所述当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向,包括:
所述目标图像区域的第五边界与所述预览图像的第六边界之间的距离小于等于第三预设值时,提示移动方向,所述移动方向指示向所述第六边界移动,所述第五边界为所述目标图像区域的任意一边界,所述第六边界与所述第五边界平行,且所述第六边界与所述第五边界之间的距离最小。
上述方案中,在所述获取预览图像中目标图像的位置信息之前,还包括:
获取所述预览图像。
一种信息处理装置,所述装置包括:获取模块、确定模块、处理模块,提示模块;其中,
所述获取模块,配置为获取预览图像中目标图像的位置;
所述确定模块,配置为根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息;还配置为根据所述目标图像区域的参数信息和所述预览图像的边界参数,确定调节参数;
所述处理模块,配置为根据所述调节参数调整所述目标图像区域;
所述提示模块,配置为当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向,以使得所述目标图像区域在所述预览图像内。
上述方案中,所述获取模块,配置为在预设时间内接收用户的操作指令,获取所述预览图像中的第一目标图像和所述第一目标图像的位置信息;
所述确定模块,配置为若预设时间内未接收到用户的操作指令,确定所述预览图像中所有运动图像为第二目标图像;
所述获取模块,还配置为获取所述第二目标图像的位置信息,所述第二目标图像包括N个目标图像,N为大于等于1的自然数。
上述方案中,所述确定模块,配置为根据所述第一目标图像的位置信息,确定所述第一目标图像区域,所述第一目标图像区域为所述第一目标图像的最小外接矩形;
所述获取模块,配置为获取所述第一目标图像区域的第一参数信息,所述第一参数信息包括:所述第一目标图像区域的坐标信息。
上述方案中,所述确定模块,配置为根据N个目标图像的位置信息确定N个目标图像区域,所述N个目标图像区域中的每一个目标图像区域为所述每一个目标图像区域的最小外接矩形;还配置为根据所述N个目标图像区域,确定第二目标图像区域;
所述获取模块,配置为获取所述第二目标图像区域的第二参数信息,所述第二参数信息包括所述第二目标图像区域的坐标信息。
上述方案中,所述获取模块,配置为获取所述N个目标图像区域的N个面积;
所述确定模块,配置为确定第三目标图像区域和第四目标图像区域,所述第三目标图像区域为所述N个面积中最大面积的目标图像区域,所述第四目标图像区域包括:除所述第三目标图像区域外的目标图像区域;还配置为确定所述第四目标图像区域中每一个目标图像区域的面积与所述最大面积的比值为第一数值,确定所述第四目标图像区域中每一个目标图像区域的中心位置与所述第三目标图像区域的中心位置的距离为第二数值;还配置为确定所述第一数值大于等于第一预设值,且所述第二数值小于等于第二预设值的目标图像区域为第五目标图像区域;还配置为确定所述第五目标图像区域的最小外接矩形为第二目标图像区域。
上述方案中,所述获取模块,配置为获取所述预览图像的第一边界的 值和第二边界的值,所述预览图像为矩形,所述第一边界与所述第二边界垂直,所述第一边界的值大于等于所述第二边界的值;
所述确定模块,配置为根据所述目标图像区域的参数信息,确定所述目标图像区域的第三边界的值和第四边界的值,所述目标图像区域为矩形,所述第三边界与所述第一边界平行,所述第四边界与所述第二边界平行;所述第一边界的值与所述第三边界的值的比值为第三数值,所述第二边界的值与所述第四边界的值的比值为第四数值;还配置为确定所述第三数值和所述第四数值中最小的值为所述调节参数。
上述方案中,所述处理模块,配置为将所述目标图像区域按所述调节参数放大显示。
上述方案中,所述提示模块,配置为所述目标图像区域的第五边界与所述预览图像的第六边界之间的距离小于等于第三预设值时,提示移动方向,所述移动方向指示向所述第六边界移动,所述第五边界为所述目标图像区域的任意一边界,所述第六边界与所述第五边界平行,且所述第六边界与所述第五边界之间的距离最小。
上述方案中,所述获取模块,还配置为获取所述预览图像。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行上述信息处理方法。
本发明的实施例所提供的信息处理方法、装置及存储介质,可以获取预览图像中的目标图像的位置信息,根据目标图像的位置信息,确定目标图像区域和目标图像区域的参数信息;根据目标图像区域的参数信息和预览图像的边界参数确定调节参数,将目标图像区域按调节参数放大显示,当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向,以使得所述目标图像区域在所述预览图像内。本发明的实施例提供的信息处理方法和装置,可以根据预览图像与目标图像边界参数的比例关系确定调节参数,通过该调节参数对目标图像进行放大显 示,从而,可以对目标图像进行清晰的拍摄,通过对目标图像区域的边界与预览图像的边界之间的距离的判断,提示用户移动方向,从而,可以实现对目标图像的实时跟踪,解决了拍摄运动目标对象时拍摄不清晰和不易跟踪的问题,提高了用户体验。
附图说明
在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。
图1为本发明实施例提供的信息处理方法流程示意图一;
图2为本发明实施例提供的信息处理方法流程示意图二;
图3为本发明实施例提供的目标图像区域显示示例图;
图4为本发明实施例提供的放大后的目标图像区域显示示例图一;
图5为本发明实施例提供的目标图像区域位置信息示例图;
图6为本发明实施例提供的移动方向提示示例图;
图7为本发明实施例提供的信息处理方法流程示意图三;
图8为本发明实施例提供的多目标图像区域显示示例图;
图9为本发明实施例提供的放大后的目标图像区域显示示例图二;
图10为本发明实施例提供的信息处理装置结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。
实施例一
本发明实施例提供一种信息处理方法,如图1所示,该方法包括:
步骤101、获取预览图像中目标图像的位置信息。
需要说明的是,本发明实施例提供的信息处理方法的执行主体为信息处理装置,即信息处理装置获取预览图像中目标图像的位置信息,该信息处理装置具体可以为具有拍摄功能的设备。例如,具有拍摄功能的手机、相机、摄像机等。
这里,拍摄功能通常可以包括:拍照和录像的功能。拍摄设备包括预览区,用户可以在拍摄时或者拍摄完成后通过预览区查看图像,预览区可以显示拍摄设备当前取景范围的图像,也可在拍摄完成后对图片或影像进行回放。本发明实施例中的预览图像即为预览区的拍摄设备当前取景范围的图像。
具体的,在日常生活中,用户拍摄的对象有很多为动态对象,如运动场中奔跑的运动员,演唱会时舞台上的明星,还有活动中的小动物等等,本发明实施例中的目标图像可以理解为拍摄中的动态对象。
具体的,在拍摄过程中,信息处理装置检测预设时间内是否接收到用户的操作指令,若预设时间内接收到用户的操作指令,获取所述预览图像中第一目标图像和所述第一目标图像的位置信息;若预设时间内未接收到用户的操作指令,确定所述预览图像中所有运动图像为第二目标图像,获取所述第二目标图像的位置信息,所述第二目标图像包括N个目标图像,N为大于等于1的自然数。
步骤102、根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息。
具体的,信息处理装置获得所述第一目标图像或者获得第二目标图像的位置信息,所述位置信息可以为坐标信息。
一种可能的实现方式中,信息处理装置根据第一目标图像的位置信息,确定第一目标图像区域,第一目标图像区域为第一目标图像的最小外接矩 形,并获取第一目标图像区域的第一参数信息,第一参数信息可以包括:第一目标图像区域的坐标信息。
一种可能的实现方式中,信息处理装置根据N个目标图像的位置信息确定N个目标图像区域,所述N个目标图像区域中的每一个目标图像区域为所述每一个目标图像区域的最小外接矩形;根据所述N个目标图像区域,确定第二目标图像区域;获取所述第二目标图像区域的第二参数信息,第二参数信息包括所述第二目标图像区域的坐标信息。
步骤103、根据所述目标图像区域的参数信息和所述预览图像的边界参数,确定调节参数。
具体的,信息处理装置根据目标图像区域的坐标信息,确定目标图像区域边界的值,即目标图像区域四个边的长度值。所述预览图像的边界参数包括所述预览图像边界的值,即预览图像四个边的长度值。
一种可能的实现方式中,信息处理装置获取所述预览图像的第一边界的值和第二边界的值,所述第一边界与所述第二边界垂直;根据所述目标图像区域的参数信息,确定所述目标图像区域的第三边界的值和第四边界的值,所述目标图像区域为矩形,所述第三边界与所述第一边界平行,所述第四边界与所述第二边界平行;所述第一边界的值与所述第三边界的值的比值为第三数值,所述第二边界的值与所述第四边界的值的比值为第四数值;确定所述第三数值和所述第四数值中最小的值为所述调节参数。
步骤104、根据所述调节参数调整所述目标图像区域。
具体的,信息处理装置根据调节参数将目标图像区域放大显示在预览图像中,预览图像中未填充目标图像区域的位置用模糊图像或阴影图像填充。
步骤105、当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向,以使得所述目标图像区域在所述预览 图像内。
具体的,当目标图像区域的第五边界与预览图像的第六边界之间的距离小于等于第三预设值时,提示移动方向,所述移动方向指示向所述第六边界移动,所述第五边界为所述目标图像区域的任意一边界,所述第六边界与所述第五边界平行,且所述第六边界与所述第五边界之间的距离最小。
示例性的,设定第三预设值w等于1cm,在当前显示的目标图像区域中显示提示箭头,箭头的指向为提示用户将信息处理装置向箭头指向方向移动,使得目标图像区域在预览图像内。
若所述目标图像区域移出取景范围,则停止拍摄,显示当前取景范围内的预览图像。
本发明实施例提供的信息处理方法,可以根据预览图像与目标图像边界参数的比例关系确定调节参数,通过该调节参数对目标图像进行放大显示,从而,可以对目标图像进行清晰的拍摄,通过对目标图像区域的边界与预览图像的边界之间的距离的判断,提示用户移动方向,从而,可以实现对目标图像的实时跟踪,解决了拍摄运动目标对象时拍摄不清晰和不易跟踪的问题,提高了用户体验。
实施例二
本发明实施例提供一种信息处理方法,如图2所示,该方法包括:
步骤201、信息处理装置获取预览图像。
本发明实施例中,信息处理装置具体可以为具有拍摄功能的设备。例如,具有拍摄功能的手机、相机、摄像机等。
具体的,当拍摄设备处于开启状态时,拍摄设备当前取景范围内的图像即为预览图像。
步骤202、若预设时间内接收到用户的操作指令,信息处理装置获取所述预览图像中第一目标图像和所述第一目标图像的位置信息。
具体的,在拍摄开始时,信息处理装置检测预设时间内是否接收到用户的操作指令,其中,预设时间可以为5s、或者10s,也可以根据用户的习惯进行设置,本发明实施例对此不做限定。
其中,用户的操作指令可以为:用户通过按压屏幕的操作选择预览图像中的目标图像;也可以为:用户通过键盘选择预览图像中的目标图像,还可以为其它选择预览图像中的目标图像的操作,本发明实施例对此不做具体限定。
具体的,若预设时间内接收到了用户的操作指令,使用运动目标跟踪算法在预览图像中对用户选择的目标图像进行识别和跟踪,获取第一目标图像的位置信息,第一目标图像的位置信息包括第一目标图像的坐标信息。
其中,运动目标跟踪算法可以为背景差分法、光流法、帧差法等。
步骤203、信息处理装置根据所述第一目标图像的位置信息,确定所述第一目标图像区域。
具体的,信息处理装置可以根据运动目标检测算法确定第一目标图像的位置信息,从而可以确定第一目标图像区域。例如,信息处理装置可以根据第一目标图像颜色信息与背景图像颜色信息的背景差确定第一目标图像的位置信息,还可以根据第一目标图像每帧图像的帧间差确定第一目标图像的轮廓信息,即第一目标图像的位置信息,从而,通过第一目标图像的轮廓信息可确定包含第一目标图像的最小外接矩形,该最小外接矩形即为第一目标图像区域。
步骤204、信息处理装置获取所述第一目标图像区域的第一参数信息。
其中,第一参数信息包括所述第一目标图像区域的坐标信息。
步骤205、信息处理装置获取所述预览图像的第一边界的值和第二边界的值,根据所述第一目标图像区域的第一参数信息,确定所述第一目标图像区域的第三边界的值和第四边界的值,所述第一边界的值与所述第三边 界的值的比值为第三数值,所述第二边界的值与所述第四边界的值的比值为第四数值,确定所述第三数值和所述第四数值中最小的值为所述调节参数。
其中,所述预览图像为矩形,所述第一边界与所述第二边界垂直。
示例性的,如图3所示,边界A、边界B、边界C、边界D组成的矩形为预览图像区域,预览图像区域可以理解为拍摄设备的拍摄界面,因此,预览区域的边长即为拍摄界面的边长,拍摄界面的边长可以预先存储在拍摄设备中,也可以直接获取拍摄界面的边长。
其中,所述第一目标图像区域为矩形,所述第三边界与所述第一边界平行,所述第四边界与所述第二边界平行。
示例性的,如图3所示,边界a、边界b、边界c、边界d组成的矩形为第一目标图像区域,边界a与边界b的交点为第一坐标,边界a与边界d的交点为第二坐标,边界d与边界c的交点为第三坐标,边界c与边界b的交点为第四坐标,根据第一坐标和第二坐标可以确定边界a的长度,根据第二坐标和第三坐标可以确定边界d的长度,根据第三坐标和第四坐标可以确定边界c的长度,根据第一坐标和第四坐标可以确定边界b的长度。
示例性的,如图3所示,边界A、边界B、边界C、边界D组成的矩形为预览图像区域,边界a、边界b、边界c、边界d组成的矩形为第一目标图像区域,边界a和边界c平行于边界A,边界a或边界c为第三边界。边界b与边界d平行于边界B,所以边界b或边界d为所述第四边界。矩形对边平行且相等,所以边界a和边界c的值相等,边界b和边界d的值相等。边界A与边界a的比值为r1,边界B与边界b的比值为r2,调节参数r为r1与r2中的最小值,用公式表示为r=min{r1,r2}。
步骤206、信息处理装置将所述第一目标图像区域按所述调节参数放大显示。
具体的,信息处理装置根据调节参数将第一目标图像区域放大显示在预览图像中,预览图像中未填充目标图像区域的位置用模糊图像或阴影图像填充,对放大显示的第一目标图像区域进行拍照或者录像。
示例性的,如图4所示,内部的矩形区域为放大后的第一目标图像区域,未填充放大后第一目标图像区域的区域用模糊图像或阴影图像填充,即图4中放大后第一目标图像区域两侧的阴影区域。
步骤207、当第一目标图像区域的第五边界与所述预览图像的第六边界之间的距离小于等于第三预设值时,信息处理装置提示移动方向,所述移动方向指示向所述第六边界移动。
其中,第五边界为所述第一目标图像区域的任意一边界,所述第六边界与所述第五边界平行,且所述第六边界与所述第五边界之间的距离最小。
在一实施例中,当信息处理装置提示移动方向后,若用户没有根据移动方向移动,由于第一目标图像的移动,第一目标图像区域将移出预览图像区域,则返回预览图像。
一种可能的实施方式,第三预设值为一个值,当第一目标图像区域的第五边界与所述预览图像的第六边界之间的距离小于等于第三预设值时,信息处理装置提示移动方向,所述移动方向指示向所述第六边界移动。
其中,第三预设值可以为1cm,2cm或其它值,本发明实施例对此不做具体限定。
示例性的,如图5所示,边界a和边界A的距离为top,边界b和边界B的距离为left,边界c和边界C的距离为bottom,边界d和边界D的距离为right。top,left,bottom,right的值可以根据第一目标图像区域的坐标信息获得。若第三预设值为1cm,当left的值小于等于1cm时,则在当前画面上显示向左移动的箭头,如图6所示。用户看到提示后将拍摄设备向箭头所示方向移动,从而,使得第一目标图像区域在预览图像内,若用户 没有将拍摄设备向箭头所示方向移动,第一目标图像区域将移出预览图像区域,此时,拍摄设备返回预览图像。
一种可能的实施方式,第三预设值可以为四个不同的预设值,分别为第一个第三预设值,第二个第三预设值,第三个第三预设值和第四个第三预设值,该四个不同的预设值分别对应第一目标图像的四个边界。
预览图像为矩形,所述预览图像的四条边分别为第一边,第二边,第三边,第四边,第一边垂直于第二边和第四边,第三边垂直于第二边和第四边。第一目标图像区域在预览图像内。第一目标图像区域为矩形,第一目标图像区域的四条边分别为第五边,第六边,第七边和第八边,第五边平行于第一边和第三边,且第五边与第一边之间的距离小于第五边与第三边之间的距离。第五边和第一边之间的距离为第一距离。第六边平行于第二边和第四边,且第六边与第二边之间的距离小于第六边与第四边之间的距离。第六边和第二边之间的距离为第二距离。第七边平行于第一边和第三边,且第七边与第三边之间的距离小于第七边与第一边之间的距离。第七边和第三边之间的距离为第三距离。第八边平行于第二边和第四边,且第八边与第四边之间的距离小于第八边与第二边之间的距离。第八边和第四边之间的距离为第四距离。
当第一距离小于等于第一个第三预设值时,提示移动方向,所述移动方向指示向所述第一边移动;
当第二距离小于等于第二个第三预设值时,提示移动方向,所述移动方向指示向所述第二边移动;
当第三距离小于等于第三个第三预设值时,提示移动方向,所述移动方向指示向所述第三边移动;
当第四距离小于等于第四个第四预设值时,提示移动方向,所述移动方向指示向所述第四边移动。
示例性的,如图5所示,边界A为第一边,边界B为第二边,边界C为第三边,边界D为第四边;边界a为第五边,边界b为第六边,边界c为第七边,边界d为第八边;边界A与边界a的距离为第一距离,记为top;边界B与边界b的距离为第二距离,记为left;边界C与边界c的距离为第三距离,记为bottom;边界D与边界d的距离为第四距离,记为right。设定边界A与边界a之间距离的预设值为1cm,设定边界B与边界b之间距离的预设值为1.2cm,设定边界C与边界c之间距离的预设值为0.9cm,设定边界D与边界d之间距离的预设值为1.1cm。若left的值小于等于1.2cm,则在预览区提示向左移动的箭头,提示用户将拍摄设备的取景范围向左移动,如图6所示。从而,使得第一目标图像区域在预览图像内,若第一目标图像区域移出预览图像,则停止拍摄,显示当前取景范围内的预览图像。
本发明实施例提供的信息处理方法,可以根据预览图像与第一目标图像边界的比例关系确定调节参数,通过该调节参数对第一目标图像进行放大显示,从而,可以对第一目标图像进行清晰的拍摄,通过对第一目标图像区域的边界和预览图像的边界之间的距离判断,提示用户移动方向,从而,可以实现对第一目标图像的实时跟踪,解决了拍摄运动目标对象时拍摄不清晰和不易跟踪的问题,提高了用户体验。
实施例三
本发明实施例提供一种信息处理方法,如图7所示,该方法包括:
步骤301、信息处理装置获取预览图像。
具体的,信息处理装置可以为具有拍摄功能的设备。例如,具有拍摄功能的手机、相机、摄像机等。当拍摄设备处于开启状态时,拍摄设备的可将目前取景范围内的图像即为预览图像。
步骤302、若预设时间内未接收到用户的操作指令,信息处理装置确定所述预览图像中所有运动图像为第二目标图像,获取所述第二目标图像的 位置信息。
具体的,在拍摄开始时,信息处理装置检测预设时间内是否接收到用户的操作指令,其中,预设时间可以为5s、或者10s,也可以根据用户的习惯进行设置,本发明实施例对此不做限定。
具体的,若预设时间内没有收到用户的操作指令,信息处理装置使用多运动目标检测算法识别预览图像中所有运动图像为第二目标图像,并获取第二目标图像的位置信息。其中,多运动目标检测算法包括光流法、帧间差分法、背景减法,卡尔曼滤波估计算法等。
其中,第二目标图像包括N个目标图像,N为大于等于1的自然数。
示例性的,如图8所示,信息处理装置确定预览图像中所有运动图像A1、A2、A3、A4、A5为第二目标图像。
步骤303、信息处理装置根据N个目标图像的位置信息确定N个目标图像区域。
具体的,信息处理装置可以根据运动目标检测算法确定N个目标图像中每一个目标图像的位置信息,从而根据目标图像的位置信息确定目标图像区域。其中,N个目标图像区域中的每一个目标图像区域为该每一个目标图像的最小外接矩形。
示例性的,如图8所示,预览图像中目标图像A1的外接矩形区域即为A1的目标图像区域,记为区域A1,目标图像A2的外接矩形区域即为A2的目标图像区域,记为区域A2,目标图像A3的外接矩形区域即为A3的目标图像区域,记为区域A3,目标图像A4的外接矩形区域即为A4的目标图像区域,记为区域A4,目标图像A5的外接矩形区域即为A5的目标图像区域,记为区域A5。
步骤304、信息处理装置获取所述N个目标图像区域的N个面积,确定第三目标图像区域和第四目标图像区域。
其中,所述第三目标图像区域为所述N个面积中最大面积的目标图像区域,所述第四目标图像区域包括:除所述第三目标图像区域外的目标图像区域。
示例性的,如图8所示,区域A1、区域A2、区域A3、区域A4、区域A5的面积依次为SA1、SA2、SA3、SA4、SA5,面积最大的是区域A1,则区域A1为第三目标图像区域,第四目标图像区域为除区域A1之外的区域,第四目标图像区域中的目标图像区域包括:区域A2、区域A3、区域A4、区域A5。
步骤305、信息处理装置确定所述第四目标图像区域中每一个目标图像区域的面积与所述最大面积的比值为第一数值,确定所述第四目标图像区域中每一个目标图像区域的中心位置与所述第三目标图像区域的中心位置的距离为第二数值。
示例性的,如图8所示,区域A2与区域A1的面积比值为S1,区域A3与区域A1的面积比值为S2,区域A4与区域A1的面积比值为S3,区域A5与区域A1的面积比值为S4;区域A2的中心位置与区域A1的中心位置的距离为L1,区域A3的中心位置与区域A1的中心位置的距离为L2,区域A4的中心位置与区域A1的中心位置的距离为L3,区域A5的中心位置与区域A1的中心位置的距离为L4。
步骤306、信息处理装置确定所述第一数值大于等于第一预设值,且所述第二数值小于等于第二预设值的目标图像区域为第五目标图像区域。
示例性的,设定第一预设值为S,第二预设值为L。如图8所示,区域A2、区域A3、区域A4、区域A5与区域A1的面积比值依次为S1、S2、S3、S4,S1、S2和S3均大于第一预设值S,S4小于第一预设值S;区域A2、区域A3、区域A4、区域A5的中心位置与区域A1的中心位置距离依次为L1、L2、L3、L4,L1和L2的值均小于第二预设值L,L3和L4的值 大于第二预设值L,从而,可以确定第五目标图像区域中的目标图像区域包括:区域A1、区域A2和区域A3。
步骤307、信息处理装置确定所述第五目标图像区域的最小外接矩形为第二目标图像区域。
示例性的,如图8所示,第二目标图像区域为包含区域A1、区域A2和区域A3的最小外接矩形。
步骤308、信息处理装置获取所述第二目标图像区域的第二参数信息。
其中,第二参数信息包括所述第二目标图像区域的坐标信息。
步骤309、信息处理装置获取所述预览图像的第一边界的值和第二边界的值,根据所述第二目标图像区域的第一参数信息,确定所述第二目标图像区域的第三边界的值和第四边界的值,所述第一边界的值与所述第三边界的值的比值为第三数值,所述第二边界的值与所述第四边界的值的比值为第四数值,确定所述第三数值和所述第四数值中最小的值为所述调节参数。
其中,预览图像为矩形,所述第一边界与所述第二边界垂直,第二目标图像区域为矩形,所述第三边界与所述第一边界平行,所述第四边界与所述第二边界平行。
示例性的,如图8所示,边界A、边界B、边界C、边界D组成的矩形为预览图像区域,边界a、边界b、边界c、边界d组成的矩形为第二目标图像区域,边界a和边界c平行于边界A,边界a或边界c为所述第三边界。边界b与边界d平行于边界B,边界b或边界d为所述第四边界。矩形对边平行且相等,所以边界a和边界c的值相等,边界b和边界d的值相等。边界A与边界a的比值为r1,边界B与边界b的比值为r2,调节参数r为r1与r2中的最小值,用公式表示为r=min{r1,r2}。
步骤310、信息处理装置将所述第二目标图像区域按所述调节参数放大 显示。
具体的,信息处理装置根据调节参数将第二目标图像区域放大显示在预览图像中,预览图像中未填充目标图像区域的位置用模糊图像或阴影图像填充。
示例性的,如图9所示,内部的矩形区域为放大后的所述第二目标图像区域,未填充放大后的第二目标图像区域的区域用模糊图像填充,即图9中放大后第二目标图像区域两侧的阴影区域。
步骤311、当第二目标图像区域的第五边界与所述预览图像的第六边界之间的距离小于等于第三预设值时,信息处理装置提示移动方向,所述移动方向指示向所述第六边界移动。
其中,第五边界为所述第二目标图像区域的任意一边界,所述第六边界与所述第五边界平行,且所述第六边界与所述第五边界之间的距离最小。
在一实施例中,当信息处理装置提示移动方向后,若用户没有根据移动方向移动,由于第二目标图像的移动,第二目标图像区域将移出预览图像区域,则返回预览图像。
这里,步骤311的说明可参考步骤207的说明,本发明实施例对此不在赘述。
本发明实施例提供的信息处理方法,可以根据预览图像与第二目标图像边界参数的比例关系确定调节参数,通过该调节参数对第二目标图像进行放大显示,从而,可以对第二目标图像进行清晰的拍摄,通过对第二目标图像区域的边界与预览图像的边界之间的距离的判断,提示用户移动方向,从而,可以实现对第二目标图像的实时跟踪,解决了拍摄运动目标对象时拍摄不清晰和不易跟踪的问题,提高了用户体验。
实施例四
本发明实施例提供了一种信息处理装置,如图10所示,所述信息处理 装置1包括:获取模块10,确定模块11,处理模块12,提示模块13;其中,
所述获取模块10,配置为获取预览图像中目标图像的位置;
所述确定模块11,配置为根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息;还配置为根据所述目标图像区域的参数信息和所述预览图像的边界参数,确定调节参数;
所述处理模块12,配置为根据所述调节参数调整所述目标图像区域;
所述提示模块13,配置为当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向,以使得所述目标图像区域在所述预览图像内。
在一实施例中,所述获取模块10,具体配置为在预设时间内接收用户的操作指令,获取所述预览图像中的第一目标图像和所述第一目标图像的位置信息;
在一实施例中,所述确定模块11,具体配置为若预设时间内未接收到用户的操作指令,确定所述预览图像中所有运动图像为第二目标图像,
在一实施例中,所述获取模块10,还配置为获取所述第二目标图像的位置信息,所述第二目标图像包括N个目标图像,N为大于等于1的自然数。
在一实施例中,所述确定模块11,还配置为根据所述第一目标图像的位置信息,确定所述第一目标图像区域,所述第一目标图像区域为所述第一目标图像的最小外接矩形;
在一实施例中,所述获取模块10,还配置为获取所述第一目标图像区域的第一参数信息,所述第一参数信息包括:所述第一目标图像区域的坐标信息。
在一实施例中,所述确定模块11,配置为根据N个目标图像的位置信 息确定N个目标图像区域,所述N个目标图像区域中的每一个目标图像区域为所述每一个目标图像区域的最小外接矩形;还配置为根据所述N个目标图像区域,确定第二目标图像区域。
在一实施例中,所述获取模块10,配置为获取所述第二目标图像区域的第二参数信息,所述第二参数信息包括所述第二目标图像区域的坐标信息。
在一实施例中,所述获取模块10,配置为获取所述N个目标图像区域的N个面积。
在一实施例中,所述确定模块11,配置为确定第三目标图像区域和第四目标图像区域,所述第三目标图像区域为所述N个面积中最大面积的目标图像区域,所述第四目标图像区域包括:除所述第三目标图像区域外的目标图像区域;还配置为确定所述第四目标图像区域中每一个目标图像区域的面积与所述最大面积的比值为第一数值,确定所述第四目标图像区域中每一个目标图像区域的中心位置与所述第三目标图像区域的中心位置的距离为第二数值;还配置为确定所述第一数值大于等于第一预设值,且所述第二数值小于等于第二预设值的目标图像区域为第五目标图像区域;还配置为确定所述第五目标图像区域的最小外接矩形为第二目标图像区域。
在一实施例中,所述获取模块10,配置为获取所述预览图像的第一边界的值和第二边界的值,所述预览图像为矩形,所述第一边界与所述第二边界垂直,所述第一边界的值大于等于所述第二边界的值。
在一实施例中,所述确定模块11,配置为根据所述目标图像区域的参数信息,确定所述目标图像区域的第三边界的值和第四边界的值,所述目标图像区域为矩形,所述第三边界与所述第一边界平行,所述第四边界与所述第二边界平行;所述第一边界的值与所述第三边界的值的比值为第三数值,所述第二边界的值与所述第四边界的值的比值为第四数值;还配置 为确定所述第三数值和所述第四数值中最小的值为所述调节参数。
在一实施例中,所述处理模块12,配置为将所述目标图像区域按所述调节参数放大显示。
在一实施例中,所述提示模块13,配置为所述目标图像区域的第五边界与所述预览图像的第六边界之间的距离小于等于第三预设值时,提示移动方向,所述移动方向指示向所述第六边界移动,所述第五边界为所述目标图像区域的任意一边界,所述第六边界与所述第五边界平行,且所述第六边界与所述第五边界之间的距离最小。
在一实施例中,所述获取模块10,还配置为获取所述预览图像。
具体的,本发明实施例提供的信息处理装置的理解可以参考实施例一至实施例三的信息处理方法的说明,本实施例在此不再赘述。
本发明实施例提供的信息处理装置,可以根据预览图像与目标图像边界参数的比例关系确定调节参数,通过该调节参数对目标图像进行放大显示,从而,可以对目标图像进行清晰的拍摄,通过对目标图像区域的边界与预览图像的边界之间的距离的判断,提示用户移动方向,从而,可以实现对目标图像的实时跟踪,解决了拍摄运动目标对象时拍摄不清晰和不易跟踪的问题,提高了用户体验。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和 /或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
相应地,本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序,该计算机程序用于执行本发明实施例的上述信息处理方法。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
本发明实施例中,获取预览图像中目标图像的位置信息;根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息;根据所述目标图像区域的参数信息和所述预览图像的边界参数,确定调节参数;根据所述调节参数调整所述目标图像区域;当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向, 以使得所述目标图像区域在所述预览图像内;从而实现了对目标图像的实时跟踪,解决了拍摄运动目标对象时拍摄不清晰和不易跟踪的问题,提高了用户体验。

Claims (19)

  1. 一种信息处理方法,所述方法包括:
    获取预览图像中目标图像的位置信息;
    根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息;
    根据所述目标图像区域的参数信息和所述预览图像的边界参数,确定调节参数;
    根据所述调节参数调整所述目标图像区域;
    当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向,以使得所述目标图像区域在所述预览图像内。
  2. 根据权利要求1所述的方法,其中,所述获取预览图像中目标图像的位置信息,包括:
    若预设时间内接收到用户的操作指令,获取所述预览图像中第一目标图像和所述第一目标图像的位置信息;
    若预设时间内未接收到用户的操作指令,确定所述预览图像中所有运动图像为第二目标图像,获取所述第二目标图像的位置信息,所述第二目标图像包括N个目标图像,N为大于等于1的自然数。
  3. 根据权利要求2所述的方法,其中,所述根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息,包括:
    根据所述第一目标图像的位置信息,确定所述第一目标图像区域,所述第一目标图像区域为所述第一目标图像的最小外接矩形;
    获取所述第一目标图像区域的第一参数信息,所述第一参数信息包括:所述第一目标图像区域的坐标信息。
  4. 根据权利要求2所述的方法,其中,所述根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息,包括:
    根据N个目标图像的位置信息确定N个目标图像区域,所述N个目标图像区域中的每一个目标图像区域为所述每一个目标图像区域的最小外接矩形;
    根据所述N个目标图像区域,确定第二目标图像区域;
    获取所述第二目标图像区域的第二参数信息,所述第二参数信息包括所述第二目标图像区域的坐标信息。
  5. 根据权利要求4所述的方法,其中,所述根据所述N个目标图像区域,确定第二目标图像区域,包括:
    获取所述N个目标图像区域的N个面积,确定第三目标图像区域和第四目标图像区域,所述第三目标图像区域为所述N个面积中最大面积的目标图像区域,所述第四目标图像区域包括:除所述第三目标图像区域外的目标图像区域;
    确定所述第四目标图像区域中每一个目标图像区域的面积与所述最大面积的比值为第一数值,确定所述第四目标图像区域中每一个目标图像区域的中心位置与所述第三目标图像区域的中心位置的距离为第二数值;
    确定所述第一数值大于等于第一预设值,且所述第二数值小于等于第二预设值的目标图像区域为第五目标图像区域;
    确定所述第五目标图像区域的最小外接矩形为第二目标图像区域。
  6. 根据权利要求1所述的方法,其中,所述根据所述目标图像区域的参数信息和所述预览图像的边界参数,确定调节参数,包括:
    获取所述预览图像的第一边界的值和第二边界的值,所述预览图像为矩形,所述第一边界与所述第二边界垂直;
    根据所述目标图像区域的参数信息,确定所述目标图像区域的第三边界的值和第四边界的值,所述目标图像区域为矩形,所述第三边界与所述第一边界平行,所述第四边界与所述第二边界平行;
    所述第一边界的值与所述第三边界的值的比值为第三数值,所述第二边界的值与所述第四边界的值的比值为第四数值;
    确定所述第三数值和所述第四数值中最小的值为所述调节参数。
  7. 根据权利要求1所述方法,其中,所述根据所述调节参数调整所述目标图像区域,包括:
    将所述目标图像区域按所述调节参数放大显示。
  8. 根据权利要求1所述方法,其中,所述当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向,包括:
    所述目标图像区域的第五边界与所述预览图像的第六边界之间的距离 小于等于第三预设值时,提示移动方向,所述移动方向指示向所述第六边界移动,所述第五边界为所述目标图像区域的任意一边界,所述第六边界与所述第五边界平行,且所述第六边界与所述第五边界之间的距离最小。
  9. 根据权利要求1所述方法,其中,在所述获取预览图像中目标图像的位置信息之前,还包括:
    获取所述预览图像。
  10. 一种信息处理装置,所述装置包括:获取模块、确定模块、处理模块,提示模块;其中,
    所述获取模块,配置为获取预览图像中目标图像的位置;
    所述确定模块,配置为根据所述目标图像的位置信息,确定目标图像区域和所述目标图像区域的参数信息;还配置为根据所述目标图像区域的参数信息和所述预览图像的边界参数,确定调节参数;
    所述处理模块,配置为根据所述调节参数调整所述目标图像区域;
    所述提示模块,配置为当所述目标图像区域的边界与所述预览图像的边界之间的距离满足预设条件时,提示移动方向,以使得所述目标图像区域在所述预览图像内。
  11. 根据权利要求10所述的装置,其中,
    所述获取模块,配置为在预设时间内接收用户的操作指令,获取所述预览图像中的第一目标图像和所述第一目标图像的位置信息;
    所述确定模块,配置为若预设时间内未接收到用户的操作指令,确定所述预览图像中所有运动图像为第二目标图像;
    所述获取模块,还配置为获取所述第二目标图像的位置信息,所述第二目标图像包括N个目标图像,N为大于等于1的自然数。
  12. 根据权利要求11所述的装置,其中,
    所述确定模块,配置为根据所述第一目标图像的位置信息,确定所述第一目标图像区域,所述第一目标图像区域为所述第一目标图像的最小外接矩形;
    所述获取模块,配置为获取所述第一目标图像区域的第一参数信息,所述第一参数信息包括:所述第一目标图像区域的坐标信息。
  13. 根据权利要求11所述的装置,其中,
    所述确定模块,配置为根据N个目标图像的位置信息确定N个目标图像区域,所述N个目标图像区域中的每一个目标图像区域为所述每一个目标图像区域的最小外接矩形;还配置为根据所述N个目标图像区域,确定第二目标图像区域;
    所述获取模块,配置为获取所述第二目标图像区域的第二参数信息,所述第二参数信息包括所述第二目标图像区域的坐标信息。
  14. 根据权利要求13所述的装置,其中,
    所述获取模块,配置为获取所述N个目标图像区域的N个面积;
    所述确定模块,配置为确定第三目标图像区域和第四目标图像区域,所述第三目标图像区域为所述N个面积中最大面积的目标图像区域,所述第四目标图像区域包括:除所述第三目标图像区域外的目标图像区域;还配置为确定所述第四目标图像区域中每一个目标图像区域的面积与所述最大面积的比值为第一数值,确定所述第四目标图像区域中每一个目标图像区域的中心位置与所述第三目标图像区域的中心位置的距离为第二数值;还配置为确定所述第一数值大于等于第一预设值,且所述第二数值小于等于第二预设值的目标图像区域为第五目标图像区域;还配置为确定所述第五目标图像区域的最小外接矩形为第二目标图像区域。
  15. 根据权利要求10所述的装置,其中,
    所述获取模块,配置为获取所述预览图像的第一边界的值和第二边界的值,所述预览图像为矩形,所述第一边界与所述第二边界垂直,所述第一边界的值大于等于所述第二边界的值;
    所述确定模块,配置为根据所述目标图像区域的参数信息,确定所述目标图像区域的第三边界的值和第四边界的值,所述目标图像区域为矩形,所述第三边界与所述第一边界平行,所述第四边界与所述第二边界平行;所述第一边界的值与所述第三边界的值的比值为第三数值,所述第二边界的值与所述第四边界的值的比值为第四数值;还配置为确定所述第三数值和所述第四数值中最小的值为所述调节参数。
  16. 根据权利要求10所述的装置,其中,所述处理模块,配置为将所述目标图像区域按所述调节参数放大显示。
  17. 根据权利要求10所述的装置,其中,所述提示模块,配置为所述 目标图像区域的第五边界与所述预览图像的第六边界之间的距离小于等于第三预设值时,提示移动方向,所述移动方向指示向所述第六边界移动,所述第五边界为所述目标图像区域的任意一边界,所述第六边界与所述第五边界平行,且所述第六边界与所述第五边界之间的距离最小。
  18. 根据权利要求10所述装置,其中,所述获取模块,还配置为获取所述预览图像。
  19. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至9任一项所述的信息处理方法。
PCT/CN2017/000084 2016-07-21 2017-01-03 一种信息处理方法、装置及存储介质 WO2018014517A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610578837.3 2016-07-21
CN201610578837.3A CN107645628B (zh) 2016-07-21 2016-07-21 一种信息处理方法及装置

Publications (1)

Publication Number Publication Date
WO2018014517A1 true WO2018014517A1 (zh) 2018-01-25

Family

ID=60991766

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/000084 WO2018014517A1 (zh) 2016-07-21 2017-01-03 一种信息处理方法、装置及存储介质

Country Status (2)

Country Link
CN (1) CN107645628B (zh)
WO (1) WO2018014517A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507935A (zh) * 2019-01-29 2020-08-07 佳能株式会社 信息处理装置、信息处理方法和存储介质
CN113554725A (zh) * 2020-04-24 2021-10-26 西安诺瓦星云科技股份有限公司 多图形移动吸附方法及其装置

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273837A (zh) * 2018-12-04 2020-06-12 浙江宇视科技有限公司 图像处理方法及装置
CN110213611A (zh) * 2019-06-25 2019-09-06 宫珉 一种基于人工智能视觉识别技术的球类赛场摄像实现方法
CN111163261B (zh) * 2019-12-25 2022-03-01 上海肇观电子科技有限公司 目标检测方法、电路、视障辅助设备、电子设备和介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014248A (zh) * 2009-09-04 2011-04-13 华晶科技股份有限公司 自动聚焦方法及模块和应用该方法的影像撷取装置
CN103019537A (zh) * 2012-11-19 2013-04-03 广东欧珀移动通信有限公司 一种图像预览方法及装置
US20150085171A1 (en) * 2013-09-23 2015-03-26 Lg Electronics Inc. Mobile terminal and control method for the mobile terminal
CN105635569A (zh) * 2015-12-26 2016-06-01 宇龙计算机通信科技(深圳)有限公司 拍摄方法、装置以及终端

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6965645B2 (en) * 2001-09-25 2005-11-15 Microsoft Corporation Content-based characterization of video frame sequences
JP5159515B2 (ja) * 2008-08-26 2013-03-06 キヤノン株式会社 画像処理装置およびその制御方法
US9113130B2 (en) * 2012-02-06 2015-08-18 Legend3D, Inc. Multi-stage production pipeline system
JP2013153429A (ja) * 2011-12-27 2013-08-08 Canon Inc 画像処理装置、画像表示システム、画像処理方法および画像処理プログラム
CN103780747B (zh) * 2012-10-23 2017-05-24 联想(北京)有限公司 一种信息处理方法及电子设备
CN103813075A (zh) * 2012-11-07 2014-05-21 联想(北京)有限公司 一种提醒方法和电子设备
CN103139480A (zh) * 2013-02-28 2013-06-05 华为终端有限公司 一种图像采集方法及装置
CN104469121B (zh) * 2013-09-16 2018-08-10 联想(北京)有限公司 信息处理方法及电子设备
CN104008129B (zh) * 2014-04-25 2017-03-15 小米科技有限责任公司 位置信息处理方法、装置及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014248A (zh) * 2009-09-04 2011-04-13 华晶科技股份有限公司 自动聚焦方法及模块和应用该方法的影像撷取装置
CN103019537A (zh) * 2012-11-19 2013-04-03 广东欧珀移动通信有限公司 一种图像预览方法及装置
US20150085171A1 (en) * 2013-09-23 2015-03-26 Lg Electronics Inc. Mobile terminal and control method for the mobile terminal
CN105635569A (zh) * 2015-12-26 2016-06-01 宇龙计算机通信科技(深圳)有限公司 拍摄方法、装置以及终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507935A (zh) * 2019-01-29 2020-08-07 佳能株式会社 信息处理装置、信息处理方法和存储介质
CN113554725A (zh) * 2020-04-24 2021-10-26 西安诺瓦星云科技股份有限公司 多图形移动吸附方法及其装置

Also Published As

Publication number Publication date
CN107645628A (zh) 2018-01-30
CN107645628B (zh) 2021-08-06

Similar Documents

Publication Publication Date Title
WO2018014517A1 (zh) 一种信息处理方法、装置及存储介质
US20200236283A1 (en) Method, system and apparatus for stabilising frames of a captured video sequence
US9591237B2 (en) Automated generation of panning shots
US9654761B1 (en) Computer vision algorithm for capturing and refocusing imagery
JP5710589B2 (ja) 改良されたハンドヘルド画面検知ポインタ
TWI539809B (zh) 用於全景攝影之定位感測器輔助之影像對位方法及用於其之程式儲存器件及電子器件
US20160337593A1 (en) Image presentation method, terminal device and computer storage medium
JP5911846B2 (ja) 肌色領域及び顔領域に基づく視点検出器
JP5769813B2 (ja) 画像生成装置および画像生成方法
JP5865388B2 (ja) 画像生成装置および画像生成方法
KR20150120317A (ko) 리포커싱을 실행하는 방법 및 전자 기기
US11770497B2 (en) Method and device for processing video, and storage medium
CN107710736B (zh) 辅助用户捕获图像或视频的方法和系统
WO2019104569A1 (zh) 一种对焦方法、设备及可读存储介质
CN109451240B (zh) 对焦方法、装置、计算机设备和可读存储介质
WO2016023642A1 (en) Panoramic video
CN102158648A (zh) 影像截取装置及影像处理方法
US10447926B1 (en) Motion estimation based video compression and encoding
US20200099854A1 (en) Image capturing apparatus and image recording method
US10165186B1 (en) Motion estimation based video stabilization for panoramic video from multi-camera capture device
CN113870213A (zh) 图像显示方法、装置、存储介质以及电子设备
US20200128154A1 (en) Method and system for processing image
CN111325674A (zh) 图像处理方法、装置及设备
CN110012208B (zh) 拍照对焦方法、装置、存储介质及电子设备
CN115423692A (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: 17830167

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: 17830167

Country of ref document: EP

Kind code of ref document: A1