WO2022148293A1 - 信息提示方法及装置 - Google Patents
信息提示方法及装置 Download PDFInfo
- Publication number
- WO2022148293A1 WO2022148293A1 PCT/CN2021/143004 CN2021143004W WO2022148293A1 WO 2022148293 A1 WO2022148293 A1 WO 2022148293A1 CN 2021143004 W CN2021143004 W CN 2021143004W WO 2022148293 A1 WO2022148293 A1 WO 2022148293A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- parameters
- connected domain
- target
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/187—Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
Definitions
- the present application belongs to the field of mobile communications, and in particular relates to an information prompting method and device.
- the purpose of the embodiments of the present application is to provide an information prompting method and apparatus.
- an embodiment of the present application provides an information prompting method, the method comprising:
- the image parameters determine a first connected domain in the first image, and extract feature parameters of the first connected domain
- an embodiment of the present application further provides an information prompting device, and the information prompting device includes:
- a parameter acquisition module used for acquiring image parameters of the first image
- a feature extraction module configured to determine a first connected domain in the first image according to the image parameters, and extract feature parameters of the first connected domain
- an area determination module configured to determine the target area in the first connected domain according to the preset correspondence between the characteristic parameter and the target area
- An information prompting module configured to issue prompt information corresponding to the azimuth relationship according to the azimuth relationship between the target area and the target object in the first image.
- an embodiment of the present application further provides an electronic device, the electronic device includes a memory, a processor, and a program or instruction stored in the memory and executable on the processor, where the processor executes the program or When instructing, the steps in the above-mentioned information prompting method are implemented.
- an embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the above-mentioned information prompting method is implemented. step.
- an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement the above method.
- the image parameters of the first image are acquired; the first connected domain in the first image is determined according to the image parameters, and the characteristic parameters of the first connected domain are extracted; according to the characteristic parameters and the preset correspondence between the target areas, to determine the target area in the first connected domain; according to the azimuth relationship between the target area and the target object in the first image, send out the corresponding azimuth relationship.
- the prompt information enables users to understand the orientation relationship between the target object and the target area, enhance the sensory experience of using electronic devices, and enrich the use functions of electronic devices.
- FIG. 1 shows a flowchart of an information prompting method provided by an embodiment of the present application
- FIG. 2 is a schematic diagram of a fifth example provided by an embodiment of the present application.
- FIG. 3 shows a flowchart of a sixth example provided by an embodiment of the present application.
- FIG. 4 shows one of the schematic diagrams of the sixth example provided by the embodiment of the present application.
- FIG. 5 shows the second schematic diagram of the sixth example provided by the embodiment of the present application.
- FIG. 6 shows the third schematic diagram of the sixth example provided by the embodiment of the present application.
- FIG. 7 shows the fourth schematic diagram of the sixth example provided by the embodiment of the present application.
- FIG. 8 shows a block diagram of an information prompting device provided by an embodiment of the present application.
- FIG. 9 shows a block diagram of an electronic device provided by an embodiment of the present application.
- an embodiment of the present application provides a method for prompting information.
- the method may be applied to electronic devices, and the electronic devices include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or Other processing equipment connected to the wireless modem, as well as various forms of mobile stations (Mobile Station, MS), terminal equipment (Terminal Device) and so on.
- the electronic devices include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or Other processing equipment connected to the wireless modem, as well as various forms of mobile stations (Mobile Station, MS), terminal equipment (Terminal Device) and so on.
- the method includes:
- Step 101 acquiring image parameters of the first image.
- the first image may be an image captured from the display interface of the electronic device.
- the first image may be a screenshot of the game interface; or if the electronic device currently runs a video APP, the first image It can be a screenshot of the video interface.
- the image parameters are parameters describing image features, such as RGB parameters, HSV color space parameters or YUV parameters.
- HSV is Hue, Saturation, and Value; wherein, Hue H is measured by an angle, and the value range is 0 degrees to 360 degrees; Saturation S means that the color is close to the spectrum The degree of color; lightness V represents the degree of brightness of the color.
- the initial image parameters of the image are RGB color space parameters. For example, after the first image is obtained by intercepting the display interface of the electronic device, the RGB color space parameters of the first image are extracted, and then the HSV is converted according to the preset conversion relationship. Color space parameter.
- Step 102 Determine a first connected domain in the first image according to the image parameters, and extract feature parameters of the first connected domain.
- the connected region is the connected region, and the connected region usually refers to the image region composed of foreground pixels with the same pixel value and adjacent positions in the image.
- the connected region usually refers to the image region composed of foreground pixels with the same pixel value and adjacent positions in the image.
- a and B are adjacent to each other, and the two have the same or similar pixel values (pixel values such as gray value or HSV color space parameters, RGB parameters in the embodiment of the present application), then A and B are called Connected.
- Connected pixel values such as gray value or HSV color space parameters, RGB parameters in the embodiment of the present application
- a first connected domain with the same or similar pixel values is determined as a candidate region.
- the number of the first connected domains may include one or more.
- the feature parameters of the first connected domain are extracted. Feature parameters such as shape features of connected domains, etc.
- Step 103 Determine the target area in the first connected domain according to the preset correspondence between the feature parameter and the target area.
- the first connected domain is the target area.
- the corresponding relationship may be obtained through training in advance.
- the electronic device intercepts the display interface of the game APP as a template image; take the target area as an area where the opponent attacks in the template image as an example , extract the minimum rotating circumscribed rectangle that appears in the template image by the opponent's attack, and extract the feature parameters of the minimum rotating circumscribed rectangle as template parameters; extract a large number of template parameters, determine the value range of each feature parameter according to the template parameters, and then generate the Correspondence.
- the extracted template parameters may be template parameters of the target area extracted when the opponent's attack occurs in different game modes, so as to improve the accuracy of identifying the target area by the corresponding relationship.
- Step 104 according to the azimuth relationship between the target area and the target object in the first image, send out prompt information corresponding to the azimuth relationship.
- the target object is an object in the first image, such as a virtual character corresponding to an electronic device in a game APP, or a virtual character in a video APP.
- determine the azimuth relationship between the target area and the target object and control the electronic device to send out prompt information corresponding to the azimuth relationship; optionally, the azimuth relationship is the azimuth relationship between the target area and the target object in the first image Orientation relationship; for example, above, below, left, right, etc.
- the control electronic device sends out prompt information corresponding to the azimuth relationship. For example, if the target area is to the left of the target object, the motor on the left side of the target object of the control electronic device will vibrate, or the electronic device will be controlled to vibrate on the left side of the target object.
- the speaker on the left side of the target object sends out a preset reminder message, timely reminding the user that there is a target area on the left side, providing a somatosensory tactile experience and enriching the use functions of the electronic device.
- the azimuth relationship between the opponent's attack and the target object is identified. If the azimuth relationship is that the opponent's attack is to the right of the target object (the virtual character of the user of the electronic device), the motor vibration is provided on the right or the The side speaker emits a tone to alert the user of the electronic device.
- the target area is the preset scene area in the played video, such as the explosion area, the destination area of the trip, etc.; the target object is the subject person in the first image.
- the azimuth relationship between the target area and the target object if the azimuth relationship is that the opponent is attacking above the target object (the virtual character of the user of the electronic device), the motor vibration is provided above or a prompt sound is issued through the right speaker to enrich the electronic device’s performance.
- the image parameters of the first image are acquired; the first connected domain in the first image is determined according to the image parameters, and the characteristic parameters of the first connected domain are extracted; according to the characteristic parameters and the preset correspondence between the target areas, to determine the target area in the first connected domain; according to the azimuth relationship between the target area and the target object in the first image, send out the corresponding azimuth relationship.
- the prompt information enables users to understand the orientation relationship between the target object and the target area, enhance the sensory experience of using electronic devices, and enrich the use functions of electronic devices.
- the embodiments of the present application solve the problem in the related art that the functions provided by the electronic device are relatively single.
- the image parameters include HSV color space parameters; the acquiring the image parameters of the first image includes:
- a square area of 60% of the short side of the image can be selected in the center of the first image.
- the center of the image intercepts a square area with a preset number of pixels of 648 ⁇ 648 as the second image. It can be understood that the preset number of pixels may also be other values.
- the third image is converted from the RGB color space to the HSV color space to obtain image parameters of the first image.
- the following first formula group is used for parameter conversion;
- the first formula group is:
- delta Max(R, G, B)-Min(R, G, B);
- the determining the first connected domain in the first image according to the image parameter includes:
- At least two sets of masks for the image parameters are obtained by filtering according to at least two sets of preset filtering thresholds; wherein each set of the preset filtering thresholds includes a second parameter range corresponding to each of the characteristic parameters;
- a weighted sum is performed on each of the masks to obtain a target mask
- a first connected domain in the target mask is extracted.
- the mask is a binary image composed of 0s and 1s.
- the mask is a binary image composed of 0s and 1s.
- 1-valued regions are processed and masked 0-valued regions are not included in the calculation.
- At least two sets of masks for the image parameters are obtained by filtering according to at least two sets of preset filtering thresholds.
- the preset filtering thresholds are shown as hsvThr1, hsvThr2, hsvThr3, hsvThr4, hsvThr5 in the following second formula group; the second formula group is:
- Each set of preset filtering thresholds filters out a mask; for example, the image parameters of the first image are filtered by hsvThr1 to obtain mask1, filtered by hsvThr2 to obtain mask2, ..., filtered by hsvThr5 to obtain mask5; then for each of the masks The mask is weighted and summed to obtain the target mask, wherein the corresponding weight of each mask can be preset.
- the first connected domain in the target mask is extracted.
- the characteristic parameter is determined according to a minimum rotated circumscribed rectangle of the first connected domain; wherein, the minimum rotated circumscribed rectangle is the smallest rectangle that accommodates the circumscribed rectangles of all the pixels of the first connected domain; Feature parameters such as the aspect ratio of the minimum rotated circumscribed rectangle, the area of the minimum rotated circumscribed rectangle, etc.;
- At least one of the above geometric features is used as an image parameter.
- the corresponding relationship includes a first parameter range corresponding to each of the characteristic parameters; the first parameter range is determined according to a preset corresponding relationship between the characteristic parameters and the target area.
- a target region in a connected domain including:
- the first feature parameter satisfies the second connected domain corresponding to the first parameter range; optionally, the first feature parameter includes the following At least one of the parameters: the aspect ratio, the minimum rotated circumscribed rectangle area, and the Euclidean distance; according to the first parameter range of the first characteristic parameter of the corresponding relationship, first select the second parameter from the first connected domain. connected domain;
- the second feature parameter satisfies the target area of the corresponding first parameter range; optionally, the feature parameter includes at least one of the following parameters: the rotation angle and the area ratio.
- first select the second connected domain that meets the requirements of the first characteristic parameter; then select the target connected domain that meets the second characteristic parameter from the second connected domain.
- sending out prompt information corresponding to the azimuth relationship including:
- a target prompting device corresponding to the azimuth relationship is determined, and the target prompting device is controlled to issue prompting information.
- the target prompting device is such as a linear motor or a speaker; for example, the display interface of the electronic device is divided into N azimuth areas.
- the display interface of the electronic device is divided into 8 azimuth areas, and each azimuth area is arranged A linear motor, after determining the position of the target area, selects the linear motor closest to the target area as the target prompt device, and sends out a prompt message.
- Fig. 3 takes the game APP as an example, and the target area is the area where the attack of the opponent player occurs; wherein, the information prompting method mainly includes the following processes:
- Step 301 Capture the game screen of the game APP as the first image, and capture the second image.
- the interface S1 is a game screen, covering the full screen of the electronic device; S2 with a preset number of pixels is intercepted therefrom as the second image.
- Step 302 Adjust the resolution of the second image to obtain a third image.
- Step 303 Convert the third image from the RGB color space to the HSV color space.
- Image color space conversion converting the RGB color space image of the third image into the HSV color space using the aforementioned first formula group.
- Step 304 Filter to obtain at least two sets of masks for the image parameters according to at least two sets of preset filtering thresholds.
- Multiple groups of narrow threshold combination strategies pre-statistically calculate the range of H, S, and V pixel values of the attack aperture displayed when the virtual character (player) corresponding to the electronic device is attacked by the opponent in different modes in the game APP; for example, select 5
- the color filtering thresholds with a narrow group range are respectively hsvThr1, hsvThr2, hsvThr3, hsvThr4, and hsvThr5, and the specific values are shown in the second formula group above.
- the strategy of using multiple sets of narrow-range filtering thresholds can avoid the problem of false detection of approximate attack areas caused by using a set of wide-range filtering thresholds.
- Step 305 obtaining a first connected domain.
- mask1, mask2, mask3, mask4, and mask5 are obtained by filtering using the preset filtering threshold in step 304; A weighted sum is obtained to obtain a target mask maskMerge; the first connected domain in the target mask is extracted.
- Step 306 Calculate the characteristic parameters of the first connected domain.
- the characteristic parameter is determined according to the minimum rotation circumscribed rectangle of the first connected domain; the characteristic parameter includes at least one of the following parameters: the aspect ratio whRatio of the minimum rotation circumscribed rectangle of the first connected domain, The area of the minimum rotated circumscribed rectangle, the Euclidean distance dist from the center point of the minimum rotated circumscribed rectangle to the center point of the first image, the rotation angle of the minimum rotated circumscribed rectangle, and the connected domain of the first connected domain The ratioMask of the area to the area of the minimum rotated circumscribed rectangle.
- the minimum rotation circumscribed rectangle is shown by the white rectangle R in FIG. 6 .
- Step 307 using the pre-established corresponding relationship as a classification template, select the target connected domain from the first connected domain.
- the third formula group is:
- the image shown in Figure 7 is the third image, where O is the center of the image, and O is the origin of the coordinates, select the X axis and the Y axis, and divide the third image into 4 quadrants, the 1st to 4th quadrants, As shown in Figure 7; center is the center coordinate of the minimum circumscribed rotation rectangle R, and x s is the X-axis data of the center coordinate.
- first filter For each first connected domain, according to the third formula group, first filter three eigenvalues of each first connected domain, such as whRatio, area, dist, etc., to obtain a second connected domain that meets the requirements;
- the angle and ratioMask features of the second connected domain are further screened to obtain the target area, which is the aperture area generated when the player is attacked.
- Step 308 Determine the orientation relationship between the target area and the target object.
- Step 309 control the motor vibration according to the azimuth relationship.
- the motor corresponding to the left side will be controlled to vibrate.
- the direction of the attack is the front, and the control electronic device and the motors on the left and right sides vibrate at the same time.
- the image parameters of the first image are acquired; the first connected domain in the first image is determined according to the image parameters, and the characteristic parameters of the first connected domain are extracted; according to the characteristic parameters and the preset corresponding relationship between the target areas, determine the target area in the first connected domain; according to the azimuth relationship between the target area and the target object in the first image, send out the corresponding azimuth relationship.
- the prompt information enables users to understand the orientation relationship between the target object and the target area, enhance the sensory experience of using electronic devices, and enrich the use functions of electronic devices.
- the execution subject may be an information prompting device, or a control module in the information prompting device for executing the information prompting method.
- the information prompting method provided by the embodiment of the present application is described by taking the information prompting apparatus executing the information prompting method as an example.
- an embodiment of the present application further provides an information prompting apparatus 800, including:
- the parameter obtaining module 801 is configured to obtain image parameters of the first image; wherein, the image parameters include HSV color space parameters.
- the first image may be an image captured from the display interface of the electronic device.
- the first image may be a screenshot of the game interface; or if the electronic device currently runs a video APP, the first image It can be a screenshot of the video interface.
- the image parameters are parameters describing image characteristics, such as RGB parameters, HSV color space parameters or YUV parameters; the image parameters include HSV color space parameters, HSV is Hue, Saturation and Lightness Value; wherein, the hue H Measured by angle, the value ranges from 0 degrees to 360 degrees; saturation S represents the degree to which the color is close to the spectral color; lightness V represents the degree of brightness of the color.
- the initial image parameters of the image are RGB color space parameters. For example, after the first image is obtained by intercepting the display interface of the electronic device, the RGB color space parameters of the first image are extracted, and then the HSV is converted according to the preset conversion relationship. Color space parameter.
- a feature extraction module 802 is configured to determine a first connected domain in the first image according to the image parameters, and extract feature parameters of the first connected domain.
- the connected region is the connected region, and the connected region usually refers to the image region composed of foreground pixels with the same pixel value and adjacent positions in the image.
- the connected region usually refers to the image region composed of foreground pixels with the same pixel value and adjacent positions in the image.
- a and B are adjacent to each other, and the two have the same or similar pixel values (pixel values such as gray value or HSV color space parameters, RGB parameters in the embodiment of the present application), then A and B are called Connected.
- Connected pixel values such as gray value or HSV color space parameters, RGB parameters in the embodiment of the present application
- a first connected domain with the same or similar pixel values is determined as a candidate region.
- the number of the first connected domains may include one or more.
- feature parameters of the first connected domain are extracted; the feature parameters are, for example, the shape feature of the connected domain.
- the area determination module 803 is configured to determine the target area in the first connected domain according to the preset correspondence between the characteristic parameter and the target area.
- the first connected domain is the target area; optionally, the corresponding relationship may be obtained through training in advance; as a first example, Taking the game APP scene as an example, when the user uses the game APP of the electronic device to play the game, the electronic device intercepts the display interface of the game APP as a template image; taking the target area as the area where the opponent's attack appears in the template image as an example, extract the template image. When the opponent attacks the smallest rotating circumscribed rectangle, extract the characteristic parameters of the smallest rotating circumscribed rectangle as template parameters; extract a large number of template parameters, determine the value range of each characteristic parameter according to the template parameters, and then generate the corresponding relationship.
- the extracted template parameters may be template parameters of the target area extracted when the opponent's attack occurs in different game modes, so as to improve the accuracy of identifying the target area by the corresponding relationship.
- the information prompting module 804 is configured to issue prompt information corresponding to the azimuth relationship according to the azimuth relationship between the target area and the target object in the first image.
- the target object is an object in the first image, such as a virtual character corresponding to an electronic device in a game APP, or a virtual character in a video APP; after identifying the target area, determine the azimuth relationship between the target area and the target object, and control the
- the electronic device sends out prompt information corresponding to the orientation relationship; optionally, the orientation relationship is the orientation relationship between the target area and the target object in the first image; for example, up, down, left, and right.
- the control electronic device sends out prompt information corresponding to the azimuth relationship. For example, if the target area is to the left of the target object, the motor on the left side of the target object of the control electronic device will vibrate, or the electronic device will be controlled to vibrate on the left side of the target object.
- the speaker on the left side of the target object sends out a preset reminder message, timely reminding the user that there is a target area on the left side, providing a somatosensory tactile experience and enriching the use functions of electronic devices.
- the azimuth relationship between the opponent's attack and the target object is identified. If the azimuth relationship is that the opponent's attack is to the right of the target object (the virtual character of the user of the electronic device), the motor vibration is provided on the right or the The side speaker emits a tone to alert the user of the electronic device.
- the target area is the preset scene area in the played video, such as the explosion area, the destination area of the trip, etc.; the target object is the subject person in the first image.
- the azimuth relationship between the target area and the target object if the azimuth relationship is that the opponent is attacking above the target object (the virtual character of the user of the electronic device), the motor vibration is provided above or a prompt sound is issued through the right speaker to enrich the electronic device’s performance.
- the image parameters include HSV color space parameters
- the parameter acquisition module 801 includes:
- an acquisition submodule for acquiring a second image with a preset number of pixels in the first image
- an adjustment sub-module used to adjust the resolution of the second image, and adjust the resolution to be the third image of the target resolution
- a conversion submodule configured to convert the third image from the RGB color space to the HSV color space to obtain image parameters of the first image.
- the image parameters include HSV color space parameters;
- the feature extraction module 802 includes:
- a filtering sub-module configured to filter to obtain at least two sets of masks of the image parameters according to at least two sets of preset filtering thresholds; wherein, each set of the preset filtering thresholds includes a second parameter corresponding to each of the characteristic parameters scope;
- a weighted submodule for performing weighted summation on each of the masks to obtain a target mask
- the extraction submodule is used to extract the first connected domain in the target mask.
- the characteristic parameter is determined according to a minimum rotation circumscribed rectangle of the first connected domain; the characteristic parameter includes at least one of the following parameters: the minimum rotation of the first connected domain The aspect ratio of the circumscribed rectangle, the area of the minimum rotated circumscribed rectangle, the Euclidean distance from the center point of the minimum rotated circumscribed rectangle to the center point of the first image, the rotation angle of the minimum rotated circumscribed rectangle, and the first connection The area ratio of the connected domain area of the domain to the area of the minimum rotated circumscribed rectangle.
- the corresponding relationship includes a first parameter range corresponding to each of the characteristic parameters
- the area determination module 803 includes:
- a first screening sub-module configured to screen the characteristic parameters of the first connected domain according to a preset correspondence, where the first characteristic parameter satisfies the second connected domain corresponding to the first parameter range;
- the second screening sub-module is configured to screen, according to the corresponding relationship, the feature parameters of the first connected domain, where the second feature parameter satisfies the target region corresponding to the first parameter range.
- the first characteristic parameter includes at least one of the following parameters: the aspect ratio, the minimum rotated circumscribed rectangle area, and the Euclidean distance;
- the second characteristic parameter includes at least one of the following parameters: the rotation angle and the area ratio.
- the information prompting module 804 includes:
- the prompting sub-module is used to determine the target prompting device corresponding to the azimuth relationship, and control the target prompting device to issue prompting information.
- the parameter acquisition module 801 acquires the image parameters of the first image; the feature extraction module 802 determines the first connected domain in the first image according to the image parameters, and extracts the first connected domain
- the area determination module 803 determines the target area in the first connected domain according to the preset correspondence between the characteristic parameter and the target area; The orientation relationship of the target object in the image, and the prompt information corresponding to the orientation relationship is sent out, so that the user can understand the orientation relationship between the target object and the target area, improve the sensory experience of using the electronic device, and enrich the use function of the electronic device.
- the information prompting device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
- the apparatus may be a mobile electronic device or a non-mobile electronic device.
- the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook, or a personal digital assistant (Personal Digital Assistant).
- UMPC Ultra-Mobile Personal Computer
- netbook or a personal digital assistant (Personal Digital Assistant).
- non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (Personal Computer, PC), television (Television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
- Network Attached Storage NAS
- PC Personal Computer
- TV Television, TV
- teller machine or self-service machine etc.
- the information prompting device in the embodiment of the present application may be a device having an operating system.
- the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
- the information prompting apparatus provided in the embodiments of the present application can implement each process implemented by the information prompting apparatus in the method embodiments of FIG. 1 to FIG. 7 , and to avoid repetition, details are not described here.
- an embodiment of the present application further provides an electronic device, including a processor 910, a memory 909, a program or instruction stored in the memory 909 and executable on the processor 910, the program or instruction being processed by the processor
- an electronic device including a processor 910, a memory 909, a program or instruction stored in the memory 909 and executable on the processor 910, the program or instruction being processed by the processor
- 910 When 910 is executed, each process of the above information prompting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.
- the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
- FIG. 9 is a schematic diagram of a hardware structure of an electronic device 900 implementing various embodiments of the present application.
- the electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and Power supply 911 and other components.
- the electronic device 900 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
- a power supply such as a battery
- the structure of the electronic device shown in FIG. 9 does not constitute a limitation to the electronic device.
- the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
- the processor 910 is used to obtain the image parameters of the first image
- the image parameters determine a first connected domain in the first image, and extract feature parameters of the first connected domain
- the processor 910 is configured to obtain a second image in which the number of pixels is a preset number of pixels in the first image
- the processor 910 is configured to filter to obtain at least two sets of masks of the image parameters according to at least two sets of preset filtering thresholds; wherein, each set of the preset filtering thresholds includes the corresponding values of each feature parameter.
- a weighted sum is performed on each of the masks to obtain a target mask
- a first connected domain in the target mask is extracted.
- the characteristic parameter is determined according to the minimum rotation circumscribed rectangle of the first connected domain; the characteristic parameter includes at least one of the following parameters: the width of the minimum rotation circumscribed rectangle of the first connected domain Height ratio, the area of the minimum rotated circumscribed rectangle, the Euclidean distance from the center point of the minimum rotated circumscribed rectangle to the center point of the first image, the rotation angle of the minimum rotated circumscribed rectangle, and the connected domain of the first connected domain The ratio of the area to the area of the minimum rotated circumscribed rectangle.
- the processor 910 is configured to, according to a preset correspondence, filter the characteristic parameters of the first connected domain, where the first characteristic parameter satisfies the second connected domain corresponding to the first parameter range;
- the second feature parameter satisfies the target region corresponding to the first parameter range.
- the first characteristic parameter includes at least one of the following parameters: the aspect ratio, the minimum rotated circumscribed rectangle area, and the Euclidean distance;
- the second characteristic parameter includes at least one of the following parameters: the rotation angle and the area ratio.
- the processor 910 is configured to determine a target prompting device corresponding to the azimuth relationship, and control the target prompting device to issue prompt information.
- image parameters of the first image are acquired; according to the image parameters, a first connected domain in the first image is determined, and feature parameters of the first connected domain are extracted; according to the features
- the preset corresponding relationship between the parameters and the target area is used to determine the target area in the first connected domain; according to the azimuth relationship between the target area and the target object in the first image, a message corresponding to the azimuth relationship is sent out.
- the prompt information allows users to understand the azimuth relationship between the target object and the target area, enhance the sensory experience of using electronic devices, and enrich the use functions of electronic devices.
- the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042. Such as camera) to obtain still pictures or video image data for processing.
- the display unit 906 may include a display panel 9061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
- the user input unit 907 includes a touch panel 9071 and other input devices 9072 .
- the touch panel 9071 is also called a touch screen.
- the touch panel 9071 may include two parts, a touch detection device and a touch controller.
- Other input devices 9072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
- Memory 909 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
- the processor 910 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 910.
- the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing information prompting method embodiment can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here.
- the processor is the processor in the electronic device described in the foregoing embodiments.
- the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
- An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the above information prompting method embodiment.
- the chip includes a processor and a communication interface
- the communication interface is coupled to the processor
- the processor is used for running a program or an instruction to implement the above information prompting method embodiment.
- the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (13)
- 一种信息提示方法,所述方法包括:获取第一图像的图像参数;根据所述图像参数,确定所述第一图像中的第一连通域,并提取所述第一连通域的特征参数;根据所述特征参数以及目标区域之间预设的对应关系,确定所述第一连通域中的目标区域;根据所述目标区域与所述第一图像中的目标对象的方位关系,发出与所述方位关系对应的提示信息。
- 根据权利要求1所述的信息提示方法,其中,所述图像参数包括HSV颜色空间参数;所述获取第一图像的图像参数,包括:获取第一图像中,像素数目为预设像素数目的第二图像;对第二图像进行分辨率调整,调整分辨率为目标分辨率的第三图像;将第三图像由RGB颜色空间转换至所述HSV颜色空间,得到所述第一图像的图像参数。
- 根据权利要求1所述的信息提示方法,其中,所述根据所述图像参数,确定所述第一图像中的第一连通域,包括:根据至少两组预设过滤阈值,过滤得到所述图像参数的至少两组掩膜;其中,每组所述预设过滤阈值包括每个所述特征参数对应的第二参数范围;对每个所述掩膜进行加权求和,得到目标掩膜;提取所述目标掩膜中的第一连通域。
- 根据权利要求1所述的信息提示方法,其中,所述特征参数为根据所述第一连通域的最小旋转外接矩形确定的;所述特征参数包括以下参数中的至少一种:所述第一连通域的最小旋转外接矩形的宽高比、所述最小旋转外接矩形面积、所述最小旋转外接矩形中心点到所述第一图像中心点的欧式距离、所述最小旋转外接矩形的旋 转角度以及所述第一连通域的连通域面积与所述最小旋转外接矩形面积的面积比值。
- 根据权利要求4所述的信息提示方法,其中,所述对应关系中包括与每个所述特征参数对应的第一参数范围;所述根据所述特征参数以及目标区域之间预设的对应关系,确定所述第一连通域中的目标区域,包括:根据预设的对应关系,筛选所述第一连通域的所述特征参数中,第一特征参数满足对应的第一参数范围的第二连通域;根据所述对应关系,筛选所述第一连通域的所述特征参数中,第二特征参数满足对应的第一参数范围的目标区域。
- 一种信息提示装置,所述装置包括:参数获取模块,用于获取第一图像的图像参数;特征提取模块,用于根据所述图像参数,确定所述第一图像中的第一连通域,并提取所述第一连通域的特征参数;区域确定模块,用于根据所述特征参数以及目标区域之间预设的对应关系,确定所述第一连通域中的目标区域;信息提示模块,用于根据所述目标区域与所述第一图像中的目标对象的方位关系,发出与所述方位关系对应的提示信息。
- 根据权利要求6所述的信息提示装置,其中,所述图像参数包括HSV颜色空间参数;所述参数获取模块包括:获取子模块,用于获取第一图像中,像素数目为预设像素数目的第二图像;调整子模块,用于对第二图像进行分辨率调整,调整分辨率为目标分辨率的第三图像;转换子模块,用于将第三图像由RGB颜色空间转换至所述HSV颜色空间,得到所述第一图像的图像参数。
- 根据权利要求6所述的信息提示装置,其中,所述图像参数包括HSV颜色空间参数;所述特征提取模块包括:过滤子模块,用于根据至少两组预设过滤阈值,过滤得到所述图像参数的至少两组掩膜;其中,每组所述预设过滤阈值包括每个所述特征参数对应的第二参数范围;加权子模块,用于对每个所述掩膜进行加权求和,得到目标掩膜;提取子模块,用于提取所述目标掩膜中的第一连通域。
- 根据权利要求6所述的信息提示装置,其中,所述特征参数为根据所述第一连通域的最小旋转外接矩形确定的;所述特征参数包括以下参数中的至少一种:所述第一连通域的最小旋转外接矩形的宽高比、所述最小旋转外接矩形面积、所述最小旋转外接矩形中心点到所述第一图像中心点的欧式距离、所述最小旋转外接矩形的旋转角度以及所述第一连通域的连通域面积与所述最小旋转外接矩形面积的面积比值。
- 根据权利要求9所述的信息提示装置,其中,所述对应关系中包括与每个所述特征参数对应的第一参数范围;所述区域确定模块包括:第一筛选子模块,用于根据预设的对应关系,筛选所述第一连通域的所述特征参数中,第一特征参数满足对应的第一参数范围的第二连通域;第二筛选子模块,用于根据所述对应关系,筛选所述第一连通域的所述特征参数中,第二特征参数满足对应的第一参数范围的目标区域。
- 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5中任一项所述的信息提示方法的步骤。
- 一种可读存储介质,所述可读存储介质上存储有程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5中任一项所述的信息提示方法的步骤。
- 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至5中任一项所述的信息提示方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110015253.6 | 2021-01-06 | ||
| CN202110015253.6A CN112767430A (zh) | 2021-01-06 | 2021-01-06 | 信息提示方法及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022148293A1 true WO2022148293A1 (zh) | 2022-07-14 |
Family
ID=75700235
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/143004 Ceased WO2022148293A1 (zh) | 2021-01-06 | 2021-12-30 | 信息提示方法及装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN112767430A (zh) |
| WO (1) | WO2022148293A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115187346A (zh) * | 2022-09-14 | 2022-10-14 | 深圳市明源云空间电子商务有限公司 | 租控图展示方法、装置、电子设备及可读存储介质 |
| CN117237442A (zh) * | 2023-11-16 | 2023-12-15 | 宁德时代新能源科技股份有限公司 | 连通域定位方法、图形处理器、设备和生产线 |
| CN117412451A (zh) * | 2023-12-13 | 2024-01-16 | 深圳市千岩科技有限公司 | 氛围灯设备及其映射配色方法和相应的装置、介质 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112767430A (zh) * | 2021-01-06 | 2021-05-07 | 维沃移动通信有限公司 | 信息提示方法及装置 |
| CN113160220A (zh) * | 2021-05-13 | 2021-07-23 | 聚时科技(上海)有限公司 | 一种基于深度学习的检测门把手归位和弯曲的方法 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104517101A (zh) * | 2014-12-19 | 2015-04-15 | 中南大学 | 一种基于像素平方差匹配的游戏扑克牌识别方法 |
| CN106096601A (zh) * | 2016-06-06 | 2016-11-09 | 深圳辰通智能股份有限公司 | 一种自动检测票据中字符类型的方法和系统 |
| US20190126151A1 (en) * | 2017-10-27 | 2019-05-02 | Netease (Hangzhou) Network Co.,Ltd. | Visual display method for compensating sound information, computer readable storage medium and electronic device |
| CN111957032A (zh) * | 2019-02-22 | 2020-11-20 | 网易(杭州)网络有限公司 | 游戏角色控制方法、装置、设备和存储介质 |
| CN112767430A (zh) * | 2021-01-06 | 2021-05-07 | 维沃移动通信有限公司 | 信息提示方法及装置 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107930119B (zh) * | 2017-11-21 | 2021-04-06 | 网易(杭州)网络有限公司 | 信息处理方法、装置、电子设备及存储介质 |
| CN109126120B (zh) * | 2018-08-17 | 2022-06-03 | Oppo广东移动通信有限公司 | 马达控制方法及相关产品 |
| CN109788130A (zh) * | 2018-12-27 | 2019-05-21 | 努比亚技术有限公司 | 终端及其方位提醒方法、及计算机可读存储介质 |
| CN110064196A (zh) * | 2019-03-27 | 2019-07-30 | 努比亚技术有限公司 | 移动终端控制方法、移动终端及计算机可读存储介质 |
-
2021
- 2021-01-06 CN CN202110015253.6A patent/CN112767430A/zh active Pending
- 2021-12-30 WO PCT/CN2021/143004 patent/WO2022148293A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104517101A (zh) * | 2014-12-19 | 2015-04-15 | 中南大学 | 一种基于像素平方差匹配的游戏扑克牌识别方法 |
| CN106096601A (zh) * | 2016-06-06 | 2016-11-09 | 深圳辰通智能股份有限公司 | 一种自动检测票据中字符类型的方法和系统 |
| US20190126151A1 (en) * | 2017-10-27 | 2019-05-02 | Netease (Hangzhou) Network Co.,Ltd. | Visual display method for compensating sound information, computer readable storage medium and electronic device |
| CN111957032A (zh) * | 2019-02-22 | 2020-11-20 | 网易(杭州)网络有限公司 | 游戏角色控制方法、装置、设备和存储介质 |
| CN112767430A (zh) * | 2021-01-06 | 2021-05-07 | 维沃移动通信有限公司 | 信息提示方法及装置 |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115187346A (zh) * | 2022-09-14 | 2022-10-14 | 深圳市明源云空间电子商务有限公司 | 租控图展示方法、装置、电子设备及可读存储介质 |
| CN117237442A (zh) * | 2023-11-16 | 2023-12-15 | 宁德时代新能源科技股份有限公司 | 连通域定位方法、图形处理器、设备和生产线 |
| CN117237442B (zh) * | 2023-11-16 | 2024-04-09 | 宁德时代新能源科技股份有限公司 | 连通域定位方法、图形处理器、设备和生产线 |
| CN117412451A (zh) * | 2023-12-13 | 2024-01-16 | 深圳市千岩科技有限公司 | 氛围灯设备及其映射配色方法和相应的装置、介质 |
| CN117412451B (zh) * | 2023-12-13 | 2024-03-15 | 深圳市千岩科技有限公司 | 氛围灯设备及其映射配色方法和相应的装置、介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112767430A (zh) | 2021-05-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022148293A1 (zh) | 信息提示方法及装置 | |
| US11705160B2 (en) | Method and device for processing video | |
| CN109639982B (zh) | 一种图像降噪方法、装置、存储介质及终端 | |
| CN109191410B (zh) | 一种人脸图像融合方法、装置及存储介质 | |
| CN107256555B (zh) | 一种图像处理方法、装置及存储介质 | |
| CN104866323B (zh) | 一种解锁界面的生成方法、装置及电子设备 | |
| CN113645476B (zh) | 画面处理方法、装置、电子设备及存储介质 | |
| CN106874937A (zh) | 一种文字图像生成方法、装置及终端 | |
| CN113808120B (zh) | 图像处理方法、装置、电子设备及存储介质 | |
| CN113018856B (zh) | 图像处理方法、装置、电子设备及存储介质 | |
| CN111627076A (zh) | 换脸方法、装置及电子设备 | |
| CN115330610B (zh) | 图像处理方法、装置、电子设备以及存储介质 | |
| WO2023056950A1 (zh) | 图像处理方法和电子设备 | |
| CN112473134B (zh) | 视野区域的显示方法、装置、存储介质及计算机设备 | |
| CN112634155B (zh) | 图像处理方法、装置、电子设备及存储介质 | |
| CN113332720A (zh) | 一种游戏地图展示方法、装置、计算机设备和存储介质 | |
| CN111870950A (zh) | 游戏控件的显示控制方法、装置和电子设备 | |
| CN111097169A (zh) | 一种游戏图像的处理方法、装置、设备及存储介质 | |
| CN117455753B (zh) | 特效模板生成方法、特效生成方法、装置及存储介质 | |
| CN113706371B (zh) | 一种特效效果校验方法、装置和电子设备 | |
| CN112435173A (zh) | 一种图像处理和直播方法、装置、设备和存储介质 | |
| CN113703901A (zh) | 图形码显示方法、装置及电子设备 | |
| CN114972009B (zh) | 一种图像处理方法、装置、电子设备及存储介质 | |
| CN116721024B (zh) | 图像处理方法、装置、电子设备及存储介质 | |
| US11011134B2 (en) | Non-transitory storage medium encoded with information processing program readable by computer of information processing apparatus which can enhance zest, information processing apparatus, method of controlling information processing apparatus, and information processing system |
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: 21917332 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: 21917332 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17-01-2024) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 21917332 Country of ref document: EP Kind code of ref document: A1 |






